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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/bake/test/external.rb +6 -1
- data/lib/bake/test/external/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 436b2f2def2f96fc9bcb105b293e068bf78b7a1343d4cece9d1c82601260eece
|
4
|
+
data.tar.gz: 2311ade76f8454a7cc535e8c7717e21b56ebbe92b4a419072def38c750bd1907
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3619f8a89b6a4b7aab0e0962519f0ab28176314e70189d5917ef6008afceeb34dd960bcad22be6cc0569d6f850fe772cee491586d9190439ead1fcdbf6452932
|
7
|
+
data.tar.gz: fa462ccd174b03d27d06f368a91048ab50b2e5b0d8f3139598fb53b2dff4f32ebdae880031b89994ce8a495b245c828181f3327ab6b801af43cad8732a9d3e98
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/bake/test/external.rb
CHANGED
@@ -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: '../../'")
|
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.
|
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-
|
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
|