Sha256: 0f07cfeff3840b17e102277fd5f95bc298bd18f3da9aa600ba0de37dea9ca099
Contents?: true
Size: 1.52 KB
Versions: 3
Compression:
Stored size: 1.52 KB
Contents
= gemline {<img src="https://travis-ci.org/joealba/gemline.svg?branch=master" alt="Build Status" />}[https://travis-ci.org/joealba/gemline] Create a tilde-arrow Gemfile line for a gem on rubygems.org using the latest version number available according to the rubygems api. If possible, we'll also copy that Gemfile line into the clipboard using pbcopy. == Examples === Normal Gemfile usage # gemline rails gem "rails", "~> 4.0.1" Gem line copied to your clipboard. Ready to paste into your Gemfile === Including group designation # gemline rails --group development,test gem "rails", "~> 4.0.1", :group => [:development, :test] Gem line copied to your clipboard. Ready to paste into your Gemfile === Append your Gemfile # gemline rails >> Gemfile === Gemspec style # gemline rails -g gem.add_dependency "rails", "~> 4.0.1" Gem line copied to your clipboard. Ready to paste into your Gemfile # gemline rails -g --group development gem.add_development_dependency "rails", "~> 4.0.1" Gem line copied to your clipboard. Ready to paste into your Gemfile === Gemline -- It's not just for the command line anymore. You can use it in your bootstrapping code too. require 'gemline' puts Gemline.new('rails').gemline puts Gemline.new('rails', :group => :development).gemline == Install # gem install gemline == Usage # gemline [GEM NAME] == Upcoming features * A --pre option to grab the latest prerelease version * An --open option to open the gem's rubygems.org page in the default browser
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gemline-0.5.0 | README.rdoc |
gemline-0.4.5 | README.rdoc |
gemline-0.4.4 | README.rdoc |