gem-browse 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c74e1674c61bef7d012e7363a4d3606ff75f908c502906570dfd6526b000d416
4
+ data.tar.gz: 28f7151aae7e9ac5990d5ffe697cd914a0965b07dabb54859896924648c3b59e
5
+ SHA512:
6
+ metadata.gz: f78b63642630196e13faae3c55577361f1d2c2f0e2606d899953dc52cadb6b38bf83f528709aa40e6fbdb93e28fcf761c5778ecc2f250b09267a074686b3422f
7
+ data.tar.gz: f198d9c5aec292cb856e0ed04defa1c2bf904780d09890590b1886868b22c753461495b2f6dc23779af97f122728da24be95902ce8a2da0fac20434db4cb2482
data/Gemfile CHANGED
@@ -1,2 +1,2 @@
1
- source "http://rubygems.org"
1
+ source "https://rubygems.org"
2
2
  gemspec
data/README.markdown CHANGED
@@ -44,7 +44,7 @@ If you're using RVM, you can put it in the global gemset (relax, it has
44
44
  no dependencies):
45
45
 
46
46
  echo gem-browse >> ~/.rvm/gemsets/global.gems
47
- rvm @global gem install gem-browse
47
+ rvm @global do gem install gem-browse
48
48
 
49
49
  Protip: Install [gem-ctags](https://github.com/tpope/gem-ctags) to
50
50
  automatically invoke [Ctags](http://ctags.sourceforge.net/) on gems as
data/gem-browse.gemspec CHANGED
@@ -3,9 +3,9 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "gem-browse"
6
- s.version = "1.0.0"
6
+ s.version = "1.0.1"
7
7
  s.authors = ["Tim Pope"]
8
- s.email = ["ruby@tpop"+'e.org']
8
+ s.email = ["code@tpop"+'e.net']
9
9
  s.homepage = "https://github.com/tpope/gem-browse"
10
10
  s.summary = %q{gem edit, gem open, gem clone, gem browse}
11
11
  s.description = <<-EOS
@@ -14,11 +14,12 @@ gem open: edit a gem by name.
14
14
  gem clone: clone a gem from GitHub.
15
15
  gem browse: open a gem's homepage in your browser.
16
16
  EOS
17
+ s.license = 'MIT'
17
18
 
18
19
  s.files = `git ls-files`.split("\n")
19
20
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
20
21
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
21
22
  s.require_paths = ["lib"]
22
23
 
23
- s.add_development_dependency('rake', '~> 0.8')
24
+ s.add_development_dependency('rake', '~> 13.0.1')
24
25
  end
@@ -35,7 +35,7 @@ module Gem::Browse
35
35
  def get_json(name)
36
36
  require 'open-uri'
37
37
  begin
38
- open("http://rubygems.org/api/v1/gems/#{name}.json").read
38
+ URI.open("https://rubygems.org/api/v1/gems/#{name}.json").read
39
39
  rescue OpenURI::HTTPError
40
40
  alert_error "Cannot retrieve gem information for #{name} from rubygems.org."
41
41
  terminate_interaction 1
@@ -14,9 +14,8 @@ class Gem::Commands::BrowseCommand < Gem::Browse::Command
14
14
  rescue Gem::LoadError
15
15
  get_json(name)[/"homepage_uri":\s*"([^"]*)"/, 1]
16
16
  end
17
- if homepage.to_s.empty?
18
- alert_warning "Gem '#{name}' lacks a homepage."
19
- elsif !system('git', 'web--browse', homepage)
17
+ homepage = "https://rubygems.org/gems/#{name}" if homepage.to_s.empty?
18
+ unless system('git', 'web--browse', homepage)
20
19
  alert_error('Error starting web browser (using git web--browse).')
21
20
  terminate_interaction 1
22
21
  end
metadata CHANGED
@@ -1,43 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-browse
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
5
- prerelease:
4
+ version: 1.0.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Tim Pope
9
- autorequire:
8
+ autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2011-08-29 00:00:00.000000000Z
11
+ date: 2023-02-23 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
- requirement: &70874650 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: '0.8'
19
+ version: 13.0.1
22
20
  type: :development
23
21
  prerelease: false
24
- version_requirements: *70874650
25
- description: ! 'gem edit: edit a library file you can require.
26
-
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 13.0.1
27
+ description: |
28
+ gem edit: edit a library file you can require.
27
29
  gem open: edit a gem by name.
28
-
29
30
  gem clone: clone a gem from GitHub.
30
-
31
- gem browse: open a gem''s homepage in your browser.
32
-
33
- '
31
+ gem browse: open a gem's homepage in your browser.
34
32
  email:
35
- - ruby@tpope.org
33
+ - code@tpope.net
36
34
  executables: []
37
35
  extensions: []
38
36
  extra_rdoc_files: []
39
37
  files:
40
- - .gitignore
38
+ - ".gitignore"
41
39
  - Gemfile
42
40
  - MIT-LICENSE
43
41
  - README.markdown
@@ -50,27 +48,26 @@ files:
50
48
  - lib/rubygems/commands/open_command.rb
51
49
  - lib/rubygems_plugin.rb
52
50
  homepage: https://github.com/tpope/gem-browse
53
- licenses: []
54
- post_install_message:
51
+ licenses:
52
+ - MIT
53
+ metadata: {}
54
+ post_install_message:
55
55
  rdoc_options: []
56
56
  require_paths:
57
57
  - lib
58
58
  required_ruby_version: !ruby/object:Gem::Requirement
59
- none: false
60
59
  requirements:
61
- - - ! '>='
60
+ - - ">="
62
61
  - !ruby/object:Gem::Version
63
62
  version: '0'
64
63
  required_rubygems_version: !ruby/object:Gem::Requirement
65
- none: false
66
64
  requirements:
67
- - - ! '>='
65
+ - - ">="
68
66
  - !ruby/object:Gem::Version
69
67
  version: '0'
70
68
  requirements: []
71
- rubyforge_project:
72
- rubygems_version: 1.8.6
73
- signing_key:
74
- specification_version: 3
69
+ rubygems_version: 3.1.4
70
+ signing_key:
71
+ specification_version: 4
75
72
  summary: gem edit, gem open, gem clone, gem browse
76
73
  test_files: []