- Published
- Author
- Satya
test your gem locally before publishing.
• STEP 1 - cd into your gem directory and run
• STEP 2 - in the same directory then run
• STEP 3 - Now cd into your project where you want to install this gem.
• STEP 4 - Open Gemfile and add
#ruby-gems , #rails
TIP: you can get your path by running
• STEP 1 - cd into your gem directory and run
gem build your-gem.gemspec• STEP 2 - in the same directory then run
gem install ./your-gem-<version>.gem (<version> will be replaced by the current version of your gem)• STEP 3 - Now cd into your project where you want to install this gem.
• STEP 4 - Open Gemfile and add
gem 'your-gem', path: '/path/to/your-gem' (Replace /path/to/your-gem with the actual path to your gem.#ruby-gems , #rails
TIP: you can get your path by running
pwd in your terminal where you have opened your gem file.