gem-homepage 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,7 +35,12 @@ class Gem::Commands::HomepageCommand < Gem::Command
35
35
  spec = t.first if t
36
36
  end
37
37
  if spec
38
- Launchy.open(spec.homepage)
38
+ if spec.homepage and spec.homepage != ""
39
+ Launchy.open(spec.homepage)
40
+ else
41
+ say "No homepage listed in the gemspec for this gem."
42
+ return terminate_interaction
43
+ end
39
44
  else
40
45
  say "The #{gemname.inspect} gem couldn't be found"
41
46
  return terminate_interaction
metadata CHANGED
@@ -1,66 +1,63 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: gem-homepage
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.5
4
5
  prerelease:
5
- version: 0.0.4
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Tony Doan
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-06-22 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2012-04-25 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: launchy
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
19
17
  none: false
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
24
22
  type: :runtime
25
- version_requirements: *id001
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
26
30
  description: Open the homepage of a gem
27
- email:
31
+ email:
28
32
  - tdoan@tdoan.com
29
33
  executables: []
30
-
31
34
  extensions: []
32
-
33
35
  extra_rdoc_files: []
34
-
35
- files:
36
+ files:
36
37
  - lib/rubygems_plugin.rb
37
38
  - lib/rubygems/commands/homepage_command.rb
38
39
  homepage: http://github.com/tdoan/gem-homepage
39
40
  licenses: []
40
-
41
41
  post_install_message:
42
42
  rdoc_options: []
43
-
44
- require_paths:
43
+ require_paths:
45
44
  - lib
46
- required_ruby_version: !ruby/object:Gem::Requirement
45
+ required_ruby_version: !ruby/object:Gem::Requirement
47
46
  none: false
48
- requirements:
49
- - - ">="
50
- - !ruby/object:Gem::Version
51
- version: "0"
52
- required_rubygems_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ! '>='
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
52
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: "0"
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
58
57
  requirements: []
59
-
60
58
  rubyforge_project:
61
- rubygems_version: 1.8.5
59
+ rubygems_version: 1.8.23
62
60
  signing_key:
63
61
  specification_version: 3
64
62
  summary: Open the homepage of a gem
65
63
  test_files: []
66
-