specific_install 0.2.9 → 0.2.10
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -0
- data/lib/rubygems/commands/specific_install_command.rb +12 -8
- data/lib/specific_install/version.rb +1 -1
- data/spec/spec_helper.rb +8 -6
- data/spec/specific_install_spec.rb +1 -0
- metadata +130 -113
- checksums.yaml +0 -7
data/Rakefile
CHANGED
@@ -16,11 +16,11 @@ class Gem::Commands::SpecificInstallCommand < Gem::Command
|
|
16
16
|
super 'specific_install', description
|
17
17
|
@output = output
|
18
18
|
|
19
|
-
add_option('-l', '--location LOCATION', arguments) do |location|
|
19
|
+
add_option('-l', '--location LOCATION', arguments) do |location, options|
|
20
20
|
options[:location] = location
|
21
21
|
end
|
22
22
|
|
23
|
-
add_option('-b', '--branch LOCATION', arguments) do |branch|
|
23
|
+
add_option('-b', '--branch LOCATION', arguments) do |branch, options|
|
24
24
|
options[:branch] = branch
|
25
25
|
end
|
26
26
|
|
@@ -32,14 +32,14 @@ class Gem::Commands::SpecificInstallCommand < Gem::Command
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def usage
|
35
|
-
"#{program_name} [LOCATION] [BRANCH]"
|
35
|
+
"#{program_name} [LOCATION] [BRANCH] (or command line options for the same)"
|
36
36
|
end
|
37
37
|
|
38
38
|
def execute
|
39
39
|
@loc ||= set_location
|
40
40
|
@branch ||= set_branch if set_branch
|
41
41
|
if @loc.nil?
|
42
|
-
raise ArgumentError, "No location received. Use `gem specific_install -l http://example.com/rdp/specific_install`"
|
42
|
+
raise ArgumentError, "No location received. Use like `gem specific_install -l http://example.com/rdp/specific_install`"
|
43
43
|
end
|
44
44
|
Dir.mktmpdir do |dir|
|
45
45
|
@dir = dir
|
@@ -112,6 +112,7 @@ class Gem::Commands::SpecificInstallCommand < Gem::Command
|
|
112
112
|
|
113
113
|
# legacy method
|
114
114
|
['', 'rake gemspec', 'rake gem', 'rake build', 'rake package'].each do |command|
|
115
|
+
puts "attempting #{command}..."
|
115
116
|
system command
|
116
117
|
if install_gemspec
|
117
118
|
success_message
|
@@ -135,9 +136,12 @@ class Gem::Commands::SpecificInstallCommand < Gem::Command
|
|
135
136
|
|
136
137
|
def install_gemspec
|
137
138
|
gem = find_or_build_gem
|
138
|
-
|
139
|
-
|
140
|
-
|
139
|
+
if gem
|
140
|
+
inst = Gem::DependencyInstaller.new
|
141
|
+
inst.install gem
|
142
|
+
else
|
143
|
+
nil
|
144
|
+
end
|
141
145
|
end
|
142
146
|
|
143
147
|
def find_or_build_gem
|
@@ -147,7 +151,7 @@ class Gem::Commands::SpecificInstallCommand < Gem::Command
|
|
147
151
|
elsif gemfile
|
148
152
|
gemfile
|
149
153
|
else
|
150
|
-
|
154
|
+
nil
|
151
155
|
end
|
152
156
|
end
|
153
157
|
|
data/spec/spec_helper.rb
CHANGED
@@ -1,10 +1,12 @@
|
|
1
|
-
require 'simplecov'
|
2
|
-
require 'simplecov-vim/formatter'
|
3
1
|
require 'rspec'
|
4
2
|
require 'rspec/mocks'
|
5
3
|
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
if RUBY_VERSION > '1.9.0'
|
5
|
+
require 'simplecov'
|
6
|
+
require 'simplecov-vim/formatter'
|
7
|
+
SimpleCov.start do
|
8
|
+
formatter SimpleCov::Formatter::VimFormatter
|
9
|
+
end
|
9
10
|
|
10
|
-
|
11
|
+
end
|
12
|
+
require File.dirname(__FILE__) + "/../lib/rubygems_plugin"
|
metadata
CHANGED
@@ -1,123 +1,133 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: specific_install
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 3
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
- 10
|
10
|
+
version: 0.2.10
|
5
11
|
platform: ruby
|
6
|
-
authors:
|
12
|
+
authors:
|
7
13
|
- Roger Pack
|
8
14
|
- Zander Hill
|
9
15
|
autorequire:
|
10
16
|
bindir: bin
|
11
17
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
18
|
+
|
19
|
+
date: 2014-02-26 00:00:00 Z
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
15
22
|
name: backports
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
requirements:
|
18
|
-
- - '>='
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version: '0'
|
21
|
-
type: :runtime
|
22
23
|
prerelease: false
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
29
36
|
name: rspec
|
30
|
-
requirement: !ruby/object:Gem::Requirement
|
31
|
-
requirements:
|
32
|
-
- - '>='
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: '0'
|
35
|
-
type: :development
|
36
37
|
prerelease: false
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
- - '>='
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: '0'
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
version: "0"
|
49
47
|
type: :development
|
48
|
+
version_requirements: *id002
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: sane
|
50
51
|
prerelease: false
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
- - ~>
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: '1.3'
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
version: "0"
|
63
61
|
type: :development
|
62
|
+
version_requirements: *id003
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: bundler
|
64
65
|
prerelease: false
|
65
|
-
|
66
|
-
|
66
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
68
|
+
requirements:
|
67
69
|
- - ~>
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
- - '>='
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: '0'
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
hash: 9
|
72
|
+
segments:
|
73
|
+
- 1
|
74
|
+
- 3
|
75
|
+
version: "1.3"
|
77
76
|
type: :development
|
77
|
+
version_requirements: *id004
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rake
|
78
80
|
prerelease: false
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
- - '>='
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: '0'
|
81
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
hash: 3
|
87
|
+
segments:
|
88
|
+
- 0
|
89
|
+
version: "0"
|
91
90
|
type: :development
|
91
|
+
version_requirements: *id005
|
92
|
+
- !ruby/object:Gem::Dependency
|
93
|
+
name: simplecov
|
92
94
|
prerelease: false
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
- - '>='
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
version: '0'
|
95
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
96
|
+
none: false
|
97
|
+
requirements:
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
hash: 3
|
101
|
+
segments:
|
102
|
+
- 0
|
103
|
+
version: "0"
|
105
104
|
type: :development
|
105
|
+
version_requirements: *id006
|
106
|
+
- !ruby/object:Gem::Dependency
|
107
|
+
name: simplecov-vim
|
106
108
|
prerelease: false
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
109
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
110
|
+
none: false
|
111
|
+
requirements:
|
112
|
+
- - ">="
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
hash: 3
|
115
|
+
segments:
|
116
|
+
- 0
|
117
|
+
version: "0"
|
118
|
+
type: :development
|
119
|
+
version_requirements: *id007
|
120
|
+
description: rubygems plugin that allows you you to install a gem from from its github repository (like 'edge'), or from an arbitrary URL
|
121
|
+
email:
|
115
122
|
- rogerdpack@gmail.com
|
116
123
|
- zander@civet.ws
|
117
124
|
executables: []
|
125
|
+
|
118
126
|
extensions: []
|
127
|
+
|
119
128
|
extra_rdoc_files: []
|
120
|
-
|
129
|
+
|
130
|
+
files:
|
121
131
|
- .gitignore
|
122
132
|
- Gemfile
|
123
133
|
- Gemfile.lock
|
@@ -132,31 +142,38 @@ files:
|
|
132
142
|
- spec/specific_install_spec.rb
|
133
143
|
- specific_install.gemspec
|
134
144
|
homepage: https://github.com/rdp/specific_install
|
135
|
-
licenses:
|
145
|
+
licenses:
|
136
146
|
- MIT
|
137
|
-
metadata: {}
|
138
147
|
post_install_message:
|
139
148
|
rdoc_options: []
|
140
|
-
|
149
|
+
|
150
|
+
require_paths:
|
141
151
|
- lib
|
142
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ">="
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
hash: 3
|
158
|
+
segments:
|
159
|
+
- 0
|
160
|
+
version: "0"
|
161
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
|
+
none: false
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
hash: 3
|
167
|
+
segments:
|
168
|
+
- 0
|
169
|
+
version: "0"
|
152
170
|
requirements: []
|
153
|
-
|
154
|
-
|
171
|
+
|
172
|
+
rubyforge_project: "[none]"
|
173
|
+
rubygems_version: 1.8.2
|
155
174
|
signing_key:
|
156
|
-
specification_version:
|
157
|
-
summary: rubygems plugin that allows you you to install a gem from from its github
|
158
|
-
|
159
|
-
test_files:
|
175
|
+
specification_version: 3
|
176
|
+
summary: rubygems plugin that allows you you to install a gem from from its github repository (like 'edge'), or from an arbitrary URL
|
177
|
+
test_files:
|
160
178
|
- spec/spec_helper.rb
|
161
179
|
- spec/specific_install_spec.rb
|
162
|
-
has_rdoc:
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 6a18f0271c11f03231f4b3b95dd2f08a02e3b5a9
|
4
|
-
data.tar.gz: b54762de851a4405cac6e6ac9fc7e3b8b87b3676
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 7d754b1e7420d1085dffd8034b13860865a77a08ed49b7ffca1871fabbf6a63609340012d817f041e261c33df954395e297901af34c8603ac964dafb287c4fa0
|
7
|
-
data.tar.gz: bc03960346c726015f371aa0c7775ad511224187943d0b4aeef60c11a22c171c4aeea53234c707bf4c5e171faddee9156ac6423ca206cb84de82e6f4bc170ae2
|