gem-install-branch 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9fe514525cb01bc1c3ec8e5d2a5c733dd8f6ec6
4
- data.tar.gz: 6f4a4ece841e4cc4727f82fb893aa929de4e7c02
3
+ metadata.gz: a52e022b54c130c9bdebc6c7cabfc1b0485a725f
4
+ data.tar.gz: f03214e8a23f760cab78b226674f3d975559c4b6
5
5
  SHA512:
6
- metadata.gz: b0179da253caca60fbdcfb8ac2f2ceb6dc24081c4566ae2f4c9a03c20877187fa33ee69510a85585f546b7b2af2dfa6eb1cb932a0c0608c5f316f056a7cfa157
7
- data.tar.gz: 72671cd9e9116d3fb7e177e1d31e7e4980408b624a2a1abd58450d415667ce66e2adb96aac249d4c6e0119575bad55f323e00406787c0a66011e2cba85d86d94
6
+ metadata.gz: b7a7c72923df1b1a7a5bf224849ff88b09a1b3b62b146a5efbcea4f7c050739d71f57df25059d1ae8f772fa47480105f95ffce0f8809315f41e66e0b13c0cd78
7
+ data.tar.gz: 5be40d2afb687b77b8b6611b4cd0df477c91d20eba0c94a9e39c7e5d12a56518ad140d2706ac26d0fc3c81a9d1a974d15303f55ffd4ee936ba26473a2dce52ee
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gemspec
3
+ gemspec name: 'gem-install-branch'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module GemInstallBranchTest
2
- VERSION = '0.0.1'
2
+ VERSION = '0.1.x'
3
3
  end
@@ -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
- skip
12
- output = command("gem install gem-install-branch-test --branch 1-0-stable")
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.must_include "Successfully installed gem-install-branch-test"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-install-branch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wojciech Mach