1. About tinpati gem (if this is a custom or less common gem)

926 0
- If it is a gem you develop or in a specific project: Install: -If it is in a RubyGems source (such as the public RubyGems.org or your own private source……

- If it's a gem you developed yourself or in a specific project:

installation

- If it is in a RubyGems source (such as the public RubyGems.org or your own private source), you can use thegem install tinpatiCommand (provided you have the appropriate permissions and correct source configuration).

1. About tinpati gem (if this is a custom or less common gem)

use

- First, you need it in your Ruby coderequire 'tinpati', then its specific function depends on the code structure inside the gem, if it defines a classTinpati::SomeClass, you can use it like this:

       require 'tinpati'
       object = Tinpati::SomeClass.new
       object.some_method

- If this is a spelling error, you may want to look for other common gems, such assinatraWait.

2、Possible development-related steps (if you develop your own gem)

create

- usebundlerTools such as tools can easily create the skeleton structure of a gem.bundle gem tinpaticreates a basictinpatiThe directory structure of gem, includinglibCatalog (used to store code),specCatalog (for testing), etc.

build and release

- After developing the features, you can use thegem build tinpati.gemspecto build a gem package, and then if you want to publish it to sources such as RubyGems.org, you need to register an account and use thegem push tinpati - 1.0.0.gem(Assuming the version is 1.0.0) and other commands.


three cards rules
You might want to see: