specific_install 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MWNmNjQ1MTg3NDk1OWU0ZmFhYWMwYzE3ZGUyYmQxOTlmOTc1OGFhMQ==
5
- data.tar.gz: !binary |-
6
- NzUxMTM1ZmZhNTM1YmI2OTU0YTIxNzczY2YyYWE5N2FkZDJmNjc5ZQ==
2
+ SHA1:
3
+ metadata.gz: 6a18f0271c11f03231f4b3b95dd2f08a02e3b5a9
4
+ data.tar.gz: b54762de851a4405cac6e6ac9fc7e3b8b87b3676
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ODhlMDE5NjRhNTI1NmZmMmRkMzIwM2JlYzg0OTRmNTc5ZGFiN2Y4MmM0YTg1
10
- YzVjYjAwNTI5ZDIxNzczNDU4YmUzMzE2YTM2MzhiNzE2OTM5ZGRiNzBmMDFl
11
- NThkYjdjMjBhMTYwMjAzNzQyMjIzMTAzYWI1ZWMxOTY0MmI4ZTk=
12
- data.tar.gz: !binary |-
13
- MTI2MzEwYzkwYmNhZWU2ZjlmOGZhZWQyNTAwOTBlZTQ2ZjI0ZTJkMzc0NjM5
14
- NzBlMzQ1NDMzNjMyMjQ3ZjljZjdlODJlMjJhMjRiYjQ0NzNkYWNkMjQwMGFj
15
- Mjk1YmMzOTRkYTdiMjUyMDJkNzRjNDg5Mjc0ODE1N2RmYjJkNDQ=
6
+ metadata.gz: 7d754b1e7420d1085dffd8034b13860865a77a08ed49b7ffca1871fabbf6a63609340012d817f041e261c33df954395e297901af34c8603ac964dafb287c4fa0
7
+ data.tar.gz: bc03960346c726015f371aa0c7775ad511224187943d0b4aeef60c11a22c171c4aeea53234c707bf4c5e171faddee9156ac6423ca206cb84de82e6f4bc170ae2
data/.gitignore CHANGED
@@ -3,4 +3,4 @@ InstalledFiles
3
3
  pkg
4
4
  *.gem
5
5
  .bundle
6
- Gemfile.lock
6
+ coverage
data/Gemfile.lock ADDED
@@ -0,0 +1,41 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ specific_install (0.2.8)
5
+ backports
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ backports (3.3.4)
11
+ diff-lcs (1.2.4)
12
+ multi_json (1.8.0)
13
+ os (0.9.6)
14
+ rake (10.1.0)
15
+ rspec (2.14.1)
16
+ rspec-core (~> 2.14.0)
17
+ rspec-expectations (~> 2.14.0)
18
+ rspec-mocks (~> 2.14.0)
19
+ rspec-core (2.14.5)
20
+ rspec-expectations (2.14.3)
21
+ diff-lcs (>= 1.1.3, < 2.0)
22
+ rspec-mocks (2.14.3)
23
+ sane (0.25.6)
24
+ os
25
+ simplecov (0.7.1)
26
+ multi_json (~> 1.0)
27
+ simplecov-html (~> 0.7.1)
28
+ simplecov-html (0.7.1)
29
+ simplecov-vim (0.0.1)
30
+
31
+ PLATFORMS
32
+ ruby
33
+
34
+ DEPENDENCIES
35
+ bundler (~> 1.3)
36
+ rake
37
+ rspec
38
+ sane
39
+ simplecov
40
+ simplecov-vim
41
+ specific_install!
data/README.md CHANGED
@@ -21,10 +21,41 @@ A Rubygem plugin that allows you to install an "edge" gem straight from its gith
21
21
 
22
22
  ex:
23
23
 
24
+ `
25
+ $ gem specific_install https://github.com/githubsvnclone/rdoc.git
26
+ `
27
+
28
+ Or more explicitly:
29
+
24
30
  `
25
31
  $ gem specific_install -l http://github.com/githubsvnclone/rdoc.git
26
32
  `
27
33
 
34
+ Or very tersely:
35
+
36
+ `gem specific_install githubsvnclone/rdoc`
37
+
38
+ Or a specific branch
39
+
40
+ `
41
+ $ gem specific_install http://github.com/githubsvnclone/rdoc.git edge
42
+ `
43
+
44
+ Or a specific branch in an explicit way
45
+
46
+ `
47
+ $ gem specific_install -l http://github.com/githubsvnclone/rdoc.git -b edge
48
+ `
49
+
50
+ The following URI types are accepted:
51
+
52
+ - http(s)://github.com/rdp/specific_install.git
53
+ - http(s)://github.com/rdp/specific_install-current.gem
54
+ - http://github.com/rdp/specific_install.git
55
+ - git@github.com:rdp/specific_install.git
56
+ - rdp/specific_install
57
+
58
+
28
59
  ### Additional Options
29
60
 
30
61
  -l --location URL of resource
@@ -104,6 +104,13 @@ class Gem::Commands::SpecificInstallCommand < Gem::Command
104
104
  def install_from_git(dir)
105
105
  Dir.chdir dir do
106
106
  change_to_branch(@branch) if @branch
107
+ # reliable method
108
+ if install_gemspec
109
+ success_message
110
+ exit 0
111
+ end
112
+
113
+ # legacy method
107
114
  ['', 'rake gemspec', 'rake gem', 'rake build', 'rake package'].each do |command|
108
115
  system command
109
116
  if install_gemspec
@@ -1,3 +1,3 @@
1
1
  module SpecificInstall
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
@@ -0,0 +1,4 @@
1
+ module SpecificInstall
2
+ autoload :SpecificInstallCommand, 'specific_install/specific_install_command'
3
+ autoload :Version, 'specific_install/version'
4
+ end
@@ -50,6 +50,17 @@ describe Gem::Commands::SpecificInstallCommand do
50
50
  end
51
51
  end
52
52
 
53
+ describe "#download" do
54
+ it "downloads a gem" do
55
+ Dir.mktmpdir do |tmpdir|
56
+ url = "https://rubygems.org/downloads/specific_install-0.2.7.gem"
57
+ output_name = "specific_install.gem"
58
+ subject.download(url, output_name)
59
+ expect(File.exists?(output_name)).to be_true
60
+ end
61
+ end
62
+ end
63
+
53
64
  describe "#install_shorthand" do
54
65
  it "formats the shorthand into a git repo" do
55
66
  subject.instance_variable_set(:@loc, "bar/zoz")
@@ -9,8 +9,8 @@ Gem::Specification.new do |s|
9
9
  s.version = SpecificInstall::VERSION
10
10
  s.description = %q{rubygems plugin that allows you you to install a gem from from its github repository (like 'edge'), or from an arbitrary URL}
11
11
  s.summary = "rubygems plugin that allows you you to install a gem from from its github repository (like 'edge'), or from an arbitrary URL"
12
- s.authors = ["Roger Pack"]
13
- s.email = "rogerdpack@gmail.com"
12
+ s.authors = ["Roger Pack", "Zander Hill"]
13
+ s.email = ["rogerdpack@gmail.com", "zander@civet.ws" ]
14
14
  s.homepage = "https://github.com/rdp/specific_install"
15
15
  s.license = "MIT"
16
16
 
@@ -26,7 +26,6 @@ Gem::Specification.new do |s|
26
26
  s.add_development_dependency 'sane'
27
27
  s.add_development_dependency "bundler", "~> 1.3"
28
28
  s.add_development_dependency "rake"
29
- s.add_development_dependency "rspec"
30
29
  s.add_development_dependency "simplecov"
31
30
  s.add_development_dependency "simplecov-vim"
32
31
  end
metadata CHANGED
@@ -1,55 +1,56 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specific_install
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roger Pack
8
+ - Zander Hill
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-09-22 00:00:00.000000000 Z
12
+ date: 2013-11-23 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: backports
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
- - - ! '>='
18
+ - - '>='
18
19
  - !ruby/object:Gem::Version
19
20
  version: '0'
20
21
  type: :runtime
21
22
  prerelease: false
22
23
  version_requirements: !ruby/object:Gem::Requirement
23
24
  requirements:
24
- - - ! '>='
25
+ - - '>='
25
26
  - !ruby/object:Gem::Version
26
27
  version: '0'
27
28
  - !ruby/object:Gem::Dependency
28
29
  name: rspec
29
30
  requirement: !ruby/object:Gem::Requirement
30
31
  requirements:
31
- - - ! '>='
32
+ - - '>='
32
33
  - !ruby/object:Gem::Version
33
34
  version: '0'
34
35
  type: :development
35
36
  prerelease: false
36
37
  version_requirements: !ruby/object:Gem::Requirement
37
38
  requirements:
38
- - - ! '>='
39
+ - - '>='
39
40
  - !ruby/object:Gem::Version
40
41
  version: '0'
41
42
  - !ruby/object:Gem::Dependency
42
43
  name: sane
43
44
  requirement: !ruby/object:Gem::Requirement
44
45
  requirements:
45
- - - ! '>='
46
+ - - '>='
46
47
  - !ruby/object:Gem::Version
47
48
  version: '0'
48
49
  type: :development
49
50
  prerelease: false
50
51
  version_requirements: !ruby/object:Gem::Requirement
51
52
  requirements:
52
- - - ! '>='
53
+ - - '>='
53
54
  - !ruby/object:Gem::Version
54
55
  version: '0'
55
56
  - !ruby/object:Gem::Dependency
@@ -70,72 +71,62 @@ dependencies:
70
71
  name: rake
71
72
  requirement: !ruby/object:Gem::Requirement
72
73
  requirements:
73
- - - ! '>='
74
+ - - '>='
74
75
  - !ruby/object:Gem::Version
75
76
  version: '0'
76
77
  type: :development
77
78
  prerelease: false
78
79
  version_requirements: !ruby/object:Gem::Requirement
79
80
  requirements:
80
- - - ! '>='
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: rspec
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ! '>='
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ! '>='
81
+ - - '>='
95
82
  - !ruby/object:Gem::Version
96
83
  version: '0'
97
84
  - !ruby/object:Gem::Dependency
98
85
  name: simplecov
99
86
  requirement: !ruby/object:Gem::Requirement
100
87
  requirements:
101
- - - ! '>='
88
+ - - '>='
102
89
  - !ruby/object:Gem::Version
103
90
  version: '0'
104
91
  type: :development
105
92
  prerelease: false
106
93
  version_requirements: !ruby/object:Gem::Requirement
107
94
  requirements:
108
- - - ! '>='
95
+ - - '>='
109
96
  - !ruby/object:Gem::Version
110
97
  version: '0'
111
98
  - !ruby/object:Gem::Dependency
112
99
  name: simplecov-vim
113
100
  requirement: !ruby/object:Gem::Requirement
114
101
  requirements:
115
- - - ! '>='
102
+ - - '>='
116
103
  - !ruby/object:Gem::Version
117
104
  version: '0'
118
105
  type: :development
119
106
  prerelease: false
120
107
  version_requirements: !ruby/object:Gem::Requirement
121
108
  requirements:
122
- - - ! '>='
109
+ - - '>='
123
110
  - !ruby/object:Gem::Version
124
111
  version: '0'
125
112
  description: rubygems plugin that allows you you to install a gem from from its github
126
113
  repository (like 'edge'), or from an arbitrary URL
127
- email: rogerdpack@gmail.com
114
+ email:
115
+ - rogerdpack@gmail.com
116
+ - zander@civet.ws
128
117
  executables: []
129
118
  extensions: []
130
119
  extra_rdoc_files: []
131
120
  files:
132
121
  - .gitignore
133
122
  - Gemfile
123
+ - Gemfile.lock
134
124
  - LICENSE.txt
135
125
  - README.md
136
126
  - Rakefile
137
127
  - lib/rubygems/commands/specific_install_command.rb
138
128
  - lib/rubygems_plugin.rb
129
+ - lib/specific_install.rb
139
130
  - lib/specific_install/version.rb
140
131
  - spec/spec_helper.rb
141
132
  - spec/specific_install_spec.rb
@@ -150,17 +141,17 @@ require_paths:
150
141
  - lib
151
142
  required_ruby_version: !ruby/object:Gem::Requirement
152
143
  requirements:
153
- - - ! '>='
144
+ - - '>='
154
145
  - !ruby/object:Gem::Version
155
146
  version: '0'
156
147
  required_rubygems_version: !ruby/object:Gem::Requirement
157
148
  requirements:
158
- - - ! '>='
149
+ - - '>='
159
150
  - !ruby/object:Gem::Version
160
151
  version: '0'
161
152
  requirements: []
162
- rubyforge_project: ! '[none]'
163
- rubygems_version: 2.1.1
153
+ rubyforge_project: '[none]'
154
+ rubygems_version: 2.0.3
164
155
  signing_key:
165
156
  specification_version: 4
166
157
  summary: rubygems plugin that allows you you to install a gem from from its github