gem-homepage 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,9 +31,14 @@ class Gem::Commands::HomepageCommand < Gem::Command
31
31
  if spec.nil?
32
32
  #try remote if you didn't find it locally
33
33
  fetcher = Gem::SpecFetcher.fetcher
34
- t = fetcher.fetch(dep).first
34
+ if fetcher.respond_to? :spec_for_dependency
35
+ t = fetcher.spec_for_dependency(dep).first.last
36
+ else
37
+ t = fetcher.fetch(dep).first
38
+ end
35
39
  spec = t.first if t
36
40
  end
41
+
37
42
  if spec
38
43
  if spec.homepage and spec.homepage != ""
39
44
  Launchy.open(spec.homepage)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-homepage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-25 00:00:00.000000000 Z
12
+ date: 2013-03-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: launchy
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  version: '0'
57
57
  requirements: []
58
58
  rubyforge_project:
59
- rubygems_version: 1.8.23
59
+ rubygems_version: 1.8.25
60
60
  signing_key:
61
61
  specification_version: 3
62
62
  summary: Open the homepage of a gem