bake-test-external 0.3.1 → 0.3.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
  SHA256:
3
- metadata.gz: 453029f7e41f7489e46c76929be1f982a2854639bc88c2f308630d855e388b3a
4
- data.tar.gz: b96af1c2bac8cbf518312d3a61cdbd44a67fee9d746a718c2ecb32f6c96dab43
3
+ metadata.gz: 436b2f2def2f96fc9bcb105b293e068bf78b7a1343d4cece9d1c82601260eece
4
+ data.tar.gz: 2311ade76f8454a7cc535e8c7717e21b56ebbe92b4a419072def38c750bd1907
5
5
  SHA512:
6
- metadata.gz: 6ff3b1074516f2f91913bf69a63108b1dec7622cbcdea2e8a31c2414f0a86dd300697c9c4d3fe9f685fd3655d5b8fdfe0b082d8de31db11d9b0bf3ba3d4e74d6
7
- data.tar.gz: 655a8c35193ba74d15ef9cc4eb0a50b8acee24f5f275f9da250229d9f0ac9ca01c8263dad22b32bc4fff9df974cca19319c4035ea665bf6bddcd54923c6555c7
6
+ metadata.gz: 3619f8a89b6a4b7aab0e0962519f0ab28176314e70189d5917ef6008afceeb34dd960bcad22be6cc0569d6f850fe772cee491586d9190439ead1fcdbf6452932
7
+ data.tar.gz: fa462ccd174b03d27d06f368a91048ab50b2e5b0d8f3139598fb53b2dff4f32ebdae880031b89994ce8a495b245c828181f3327ab6b801af43cad8732a9d3e98
checksums.yaml.gz.sig CHANGED
Binary file
@@ -62,6 +62,10 @@ def clone_repository(name, key, config)
62
62
  command << "--branch" << branch
63
63
  end
64
64
 
65
+ if tag = config[:tag]
66
+ command << "--tag" << tag
67
+ end
68
+
65
69
  command << url << path
66
70
  system(*command)
67
71
 
@@ -70,12 +74,13 @@ def clone_repository(name, key, config)
70
74
 
71
75
  gemfile_paths = ["#{path}/Gemfile", "#{path}/gems.rb"]
72
76
  gemfile_path = gemfile_paths.find{|path| File.exist?(path)}
73
-
77
+
74
78
  File.open(gemfile_path, 'r+') do |file|
75
79
  pattern = /gem.*?['"]#{name}['"]/
76
80
  lines = file.grep_v(pattern)
77
81
 
78
82
  file.seek(0)
83
+ file.truncate(0)
79
84
  file.puts(lines)
80
85
  file.puts nil, "# Added by external testing:"
81
86
  file.puts("gem #{name.to_s.dump}, path: '../../'")
@@ -6,7 +6,7 @@
6
6
  module Bake
7
7
  module Test
8
8
  module External
9
- VERSION = "0.3.1"
9
+ VERSION = "0.3.2"
10
10
  end
11
11
  end
12
12
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bake-test-external
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -39,7 +39,7 @@ cert_chain:
39
39
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
40
40
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
41
41
  -----END CERTIFICATE-----
42
- date: 2022-10-12 00:00:00.000000000 Z
42
+ date: 2022-10-13 00:00:00.000000000 Z
43
43
  dependencies:
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: bake
metadata.gz.sig CHANGED
Binary file