gem-path 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 342baf0a44960b0378d32eb170cc87d007a2b81a
4
- data.tar.gz: 3a2a037056b005cba6a7553daa0782bd7c70dea4
3
+ metadata.gz: 7c02bbe30c19779d0ed58d7a5d555825cef64ba7
4
+ data.tar.gz: 49cedbebd2932c7600e7bb0abdcb4035ee7d6903
5
5
  SHA512:
6
- metadata.gz: dfd604224e2bd9567fdd24155716dac2689a01adb7d883b2c6fc46628dd054a127b78df5b0f67e1f24e9dff192d4e873c81f4835e7abc2828c7a3c2bc5ce1d38
7
- data.tar.gz: 308897da1285e9fae093dc8de22a31c10ef6cba0e2bd6eb8c1bb4c846b80d2e7e9d3919c67595dbb1a08255007f45396f8f5d66216062b18cf5cf2e7874408f1
6
+ metadata.gz: fde3f4884832c4f263304c5468f5dd91747abfa1c8ba70a12c5df171cfe77cbb6d35f4cf19217b178e3c6de159822ef65007224c47944848ed3587a7c78aaf4f
7
+ data.tar.gz: 35d3470a139d8449d74e348e58445b676eb4de9ffb5f55f29e2bbd60eb10c8d71b5055b86f71393c70e4a8a7452014dbbb76f610e5fb4b0167ac9c780950759a
@@ -0,0 +1,8 @@
1
+ before_install: 'git submodule update --init'
2
+ script: 'ruby -r bundler/setup -S rake test'
3
+
4
+ rvm:
5
+ - 1.9.3
6
+ - 2.0.0
7
+ - rbx-2.1.1
8
+ - jruby-head
@@ -0,0 +1,9 @@
1
+ # CHANGES
2
+
3
+ ## gem-path 0.5.1 -- 2013-11-22
4
+
5
+ * Fixed a bug where it cannot find a gem if the version is not specified.
6
+
7
+ ## gem-path 0.5.0 -- 2013-11-22
8
+
9
+ * Birthday!
data/README.md CHANGED
@@ -35,22 +35,21 @@ Or checkout [gem-cd][], [gem-eit][], [gem-grep][] for shorthands.
35
35
 
36
36
  ### Gem path
37
37
 
38
- gem path gem-path # ~/.gem/ruby/2.0.0/gems/gem-path-1.0.0
38
+ gem path rib # ~/.gem/ruby/2.0.0/gems/rib-1.0.0
39
39
 
40
40
  ### Gem path with specific gem version
41
41
 
42
- gem path gem-path '<1' # ~/.gem/ruby/2.0.0/gems/gem-path-0.9.9
43
- gem path gem-path '~>0.8.2' # ~/.gem/ruby/2.0.0/gems/gem-path-0.8.9
44
- gem path gem-path 0.1.0 # ~/.gem/ruby/2.0.0/gems/gem-path-0.1.0
42
+ gem path rib '<1' # ~/.gem/ruby/2.0.0/gems/rib-0.9.9
43
+ gem path rib '~>0.8.2' # ~/.gem/ruby/2.0.0/gems/rib-0.8.9
44
+ gem path rib 0.1.0 # ~/.gem/ruby/2.0.0/gems/rib-0.1.0
45
45
 
46
46
  ### Find gem path from a require path
47
47
 
48
- # ~/.gem/ruby/2.0.0/gems/gem-path-1.0.0
49
- gem path rubygems/commands/path_command
48
+ gem path rib/config # ~/.gem/ruby/2.0.0/gems/rib-1.0.0
50
49
 
51
50
  ### Find file path from a require path
52
51
 
53
- gem path timeout # /usr/lib/ruby/2.0.0/timeout.rb
52
+ gem path timeout # /usr/lib/ruby/2.0.0/timeout.rb
54
53
 
55
54
  ## CONTRIBUTORS:
56
55
 
data/Rakefile CHANGED
@@ -8,5 +8,5 @@ end
8
8
 
9
9
  Gemgem.init(dir) do |s|
10
10
  s.name = 'gem-path'
11
- s.version = '0.5.0'
11
+ s.version = '0.5.1'
12
12
  end
@@ -1,9 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: gem-path 0.5.0 ruby lib
2
+ # stub: gem-path 0.5.1 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "gem-path"
6
- s.version = "0.5.0"
6
+ s.version = "0.5.1"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.authors = ["Lin Jen-Shin (godfat)"]
@@ -13,6 +13,8 @@ Gem::Specification.new do |s|
13
13
  s.files = [
14
14
  ".gitignore",
15
15
  ".gitmodules",
16
+ ".travis.yml",
17
+ "CHANGES.md",
16
18
  "LICENSE",
17
19
  "README.md",
18
20
  "Rakefile",
@@ -33,11 +33,15 @@ class Gem::Commands::PathCommand < Gem::Command
33
33
 
34
34
  private
35
35
  def extract! args
36
- gem(*args) if args.size > 1 # only gem has versions
36
+ gem(*args)
37
37
  args
38
38
  rescue LoadError => e
39
- alert_error(e.message)
40
- terminate_interaction(1)
39
+ if args.size > 1 # terminate if we're asking a specific gem version
40
+ alert_error(e.message)
41
+ terminate_interaction(1)
42
+ else
43
+ args # this could be a require path, go on searching
44
+ end
41
45
  end
42
46
 
43
47
  def find_path_gem name
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-path
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lin Jen-Shin (godfat)
@@ -32,6 +32,8 @@ extra_rdoc_files: []
32
32
  files:
33
33
  - .gitignore
34
34
  - .gitmodules
35
+ - .travis.yml
36
+ - CHANGES.md
35
37
  - LICENSE
36
38
  - README.md
37
39
  - Rakefile