gemline 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/gemline.gemspec +1 -1
  2. data/lib/gemline.rb +2 -1
  3. metadata +3 -3
data/gemline.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
12
12
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
13
13
  gem.name = "gemline"
14
14
  gem.require_paths = ["lib"]
15
- gem.version = '0.0.2'
15
+ gem.version = '0.0.3'
16
16
 
17
17
  gem.add_dependency('crack')
18
18
  # gem.add_development_dependency(%q<rspec>, [">= 2.7.0"])
data/lib/gemline.rb CHANGED
@@ -5,8 +5,9 @@ class Gemline
5
5
 
6
6
  def self.query(gem)
7
7
  gem = gem.to_s.gsub(/[^\w\-]+/,'')
8
- if (gem.empty?)
8
+ if (gem.empty? || ['-h','--help','help'].include?(gem))
9
9
  puts "Usage: gemline [GEM NAME]"
10
+ puts " Prints a Gemfile require line for a Ruby gem on Rubygems.org"
10
11
  exit
11
12
  end
12
13
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-10-28 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: crack
16
- requirement: &70320116070580 !ruby/object:Gem::Requirement
16
+ requirement: &70095766739220 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70320116070580
24
+ version_requirements: *70095766739220
25
25
  description: Grab the latest Gemfile 'gem' line for a specific Ruby gem
26
26
  email:
27
27
  - joe@joealba.com