specific_install 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/ChangeLog +2 -0
- data/lib/rubygems/commands/specific_install_command.rb +15 -1
- data/lib/specific_install/version.rb +1 -1
- data/specific_install.gemspec +0 -1
- metadata +3 -18
- data/Gemfile.lock +0 -44
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34836fbe97d3b0e31d399ed3740fb1066630cda5
|
4
|
+
data.tar.gz: 0d5fe0f2d82e3146f04c12791af9584624181c6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31488875a64212384f74de1acbb9fb624c56d8688b98b174000c8d9e9c012c65a93811f1ebb0160a72d2fc31dfb4e20b7c6cbf9704be19271f991195b4c3edfb
|
7
|
+
data.tar.gz: 79744026b113881e2a776f3e3d3dfbb54edc68d048fb59d513b456d9e61866ad02e1f8449f824fc15079c1322f6c16773e688411fb9f54775c78ac440e7b1073
|
data/.gitignore
CHANGED
data/ChangeLog
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
require 'rubygems/command_manager'
|
2
2
|
require 'rubygems/dependency_installer'
|
3
3
|
require 'tempfile'
|
4
|
-
require 'backports'
|
5
4
|
require 'fileutils'
|
6
5
|
require 'open-uri'
|
7
6
|
|
@@ -27,6 +26,10 @@ class Gem::Commands::SpecificInstallCommand < Gem::Command
|
|
27
26
|
add_option('-d', '--directory DIRECTORY', arguments) do |directory, options|
|
28
27
|
options[:directory] = directory
|
29
28
|
end
|
29
|
+
|
30
|
+
add_option('-r', '--ref COMMIT-ISH', arguments) do |ref, options|
|
31
|
+
options[:ref] = ref
|
32
|
+
end
|
30
33
|
end
|
31
34
|
|
32
35
|
def arguments
|
@@ -42,6 +45,7 @@ class Gem::Commands::SpecificInstallCommand < Gem::Command
|
|
42
45
|
def execute
|
43
46
|
@loc ||= set_location
|
44
47
|
@branch ||= set_branch if set_branch
|
48
|
+
@ref ||= set_ref
|
45
49
|
if @loc.nil?
|
46
50
|
raise ArgumentError, "No location received. Use like `gem specific_install -l http://example.com/rdp/specific_install`"
|
47
51
|
end
|
@@ -135,6 +139,7 @@ class Gem::Commands::SpecificInstallCommand < Gem::Command
|
|
135
139
|
def install_from_git(dir)
|
136
140
|
Dir.chdir @top_dir do
|
137
141
|
change_to_branch(@branch) if @branch
|
142
|
+
reset_to_commit(@ref) if @ref
|
138
143
|
system("git submodule update --init --recursive") # issue 25
|
139
144
|
end
|
140
145
|
|
@@ -165,6 +170,10 @@ class Gem::Commands::SpecificInstallCommand < Gem::Command
|
|
165
170
|
options[:branch] || options[:args][1]
|
166
171
|
end
|
167
172
|
|
173
|
+
def set_ref
|
174
|
+
options[:ref] || options[:args][2]
|
175
|
+
end
|
176
|
+
|
168
177
|
def success_message
|
169
178
|
output.puts 'Successfully installed'
|
170
179
|
end
|
@@ -215,6 +224,11 @@ class Gem::Commands::SpecificInstallCommand < Gem::Command
|
|
215
224
|
system("git branch")
|
216
225
|
end
|
217
226
|
|
227
|
+
def reset_to_commit(ref)
|
228
|
+
system("git reset --hard #{ref}")
|
229
|
+
system("git show -q")
|
230
|
+
end
|
231
|
+
|
218
232
|
DOTDOT_REGEX = /(?:#{File::PATH_SEPARATOR}|\A)\.\.(?:#{File::PATH_SEPARATOR}|\z)/.freeze
|
219
233
|
ABS_REGEX = /\A#{File::PATH_SEPARATOR}/.freeze
|
220
234
|
|
data/specific_install.gemspec
CHANGED
@@ -21,7 +21,6 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.platform = Gem::Platform::RUBY
|
22
22
|
s.rubyforge_project = '[none]'
|
23
23
|
|
24
|
-
s.add_dependency 'backports'
|
25
24
|
s.add_development_dependency 'rspec'
|
26
25
|
s.add_development_dependency 'sane'
|
27
26
|
s.add_development_dependency "bundler", "~> 1.3"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: specific_install
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roger Pack
|
@@ -9,22 +9,8 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-01-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: backports
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
requirements:
|
18
|
-
- - ">="
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version: '0'
|
21
|
-
type: :runtime
|
22
|
-
prerelease: false
|
23
|
-
version_requirements: !ruby/object:Gem::Requirement
|
24
|
-
requirements:
|
25
|
-
- - ">="
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
version: '0'
|
28
14
|
- !ruby/object:Gem::Dependency
|
29
15
|
name: rspec
|
30
16
|
requirement: !ruby/object:Gem::Requirement
|
@@ -121,7 +107,6 @@ files:
|
|
121
107
|
- ".gitignore"
|
122
108
|
- ChangeLog
|
123
109
|
- Gemfile
|
124
|
-
- Gemfile.lock
|
125
110
|
- LICENSE.txt
|
126
111
|
- README.md
|
127
112
|
- Rakefile
|
@@ -152,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
137
|
version: '0'
|
153
138
|
requirements: []
|
154
139
|
rubyforge_project: "[none]"
|
155
|
-
rubygems_version: 2.
|
140
|
+
rubygems_version: 2.5.2
|
156
141
|
signing_key:
|
157
142
|
specification_version: 4
|
158
143
|
summary: rubygems plugin that allows you you to install a gem from from its github
|
data/Gemfile.lock
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
specific_install (0.3.2)
|
5
|
-
backports
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
backports (3.6.8)
|
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!
|
42
|
-
|
43
|
-
BUNDLED WITH
|
44
|
-
1.10.6
|