gem-install-branch 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/VERSION +1 -1
- data/lib/gem_install_branch.rb +2 -2
- data/lib/gem_install_branch_test.rb +1 -1
- data/test/gem_install_branch_test.rb +7 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a52e022b54c130c9bdebc6c7cabfc1b0485a725f
|
4
|
+
data.tar.gz: f03214e8a23f760cab78b226674f3d975559c4b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7a7c72923df1b1a7a5bf224849ff88b09a1b3b62b146a5efbcea4f7c050739d71f57df25059d1ae8f772fa47480105f95ffce0f8809315f41e66e0b13c0cd78
|
7
|
+
data.tar.gz: 5be40d2afb687b77b8b6611b4cd0df477c91d20eba0c94a9e39c7e5d12a56518ad140d2706ac26d0fc3c81a9d1a974d15303f55ffd4ee936ba26473a2dce52ee
|
data/Gemfile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/lib/gem_install_branch.rb
CHANGED
@@ -5,9 +5,9 @@ require 'tmpdir'
|
|
5
5
|
module GemInstallBranch
|
6
6
|
def self.install(gem, branch)
|
7
7
|
puts gem + " " + branch
|
8
|
-
command = "git clone --branch #{branch} https://github.com/#{github_repo(gem)}"
|
8
|
+
command = "git clone --branch #{branch} https://github.com/#{github_repo(gem)} #{gem}"
|
9
9
|
Dir.mktmpdir do |dir|
|
10
|
-
system("cd #{dir} ; #{command} ; ls ; cd #{gem} ; gem build #{gem}.gemspec")
|
10
|
+
system("cd #{dir} ; #{command} ; ls ; cd #{gem} ; gem build #{gem}.gemspec ; gem install *.gem")
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
@@ -3,18 +3,21 @@ require 'open3'
|
|
3
3
|
|
4
4
|
describe 'gem install' do
|
5
5
|
it "works with --master" do
|
6
|
-
skip
|
7
6
|
output = command("gem install gem-install-branch-test --master")
|
7
|
+
output.must_include "Successfully built RubyGem"
|
8
|
+
output.must_include "Successfully installed gem-install-branch-test-0.1.x"
|
8
9
|
end
|
9
10
|
|
10
11
|
it "works with --branch" do
|
11
|
-
|
12
|
-
output
|
12
|
+
output = command("gem install gem-install-branch-test --branch 0-2-x")
|
13
|
+
output.must_include "Successfully built RubyGem"
|
14
|
+
output.must_include "Successfully installed gem-install-branch-test-0.2.x"
|
13
15
|
end
|
14
16
|
|
15
17
|
it "works as usual" do
|
16
18
|
output = command("gem install gem-install-branch-test")
|
17
|
-
output.
|
19
|
+
output.wont_include "built"
|
20
|
+
output.must_include "Successfully installed gem-install-branch-test-0.0.1"
|
18
21
|
end
|
19
22
|
|
20
23
|
private
|