bake-test-external 0.2.0 → 0.3.0
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
- checksums.yaml.gz.sig +0 -0
- data/bake/test/external.rb +17 -5
- data/lib/bake/test/external/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +2 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3a6b374572b47af82e04f4b26b382a133c593cbcf43897fce5f47b2c3a106a1
|
4
|
+
data.tar.gz: bbb34012fb4558a400eeb52cf6286ec946545f6e31aea54c38372e9a0bbc1f48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17f73204c2b1114d44e66146226126d1569938fcaf6cdb072f33bcfe6413d37562330fefb86348052eb2dc73c51e6e7636035409e156f16b7e52162e45548a12
|
7
|
+
data.tar.gz: 810a9db3951a515617e8a38b0cb1290b384d7a91abb382ef39441d9d1ec33583e106bd1daa28e4e5a84fb5032eddc698bc680e1d7f8adb907b169d60ec25a89f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/bake/test/external.rb
CHANGED
@@ -51,23 +51,35 @@ def clone_and_test(name, key, config)
|
|
51
51
|
|
52
52
|
unless File.directory?(path)
|
53
53
|
FileUtils.mkdir_p path
|
54
|
-
|
54
|
+
command = ["git", "clone", "--depth", "1"]
|
55
|
+
|
56
|
+
if branch = config[:branch]
|
57
|
+
command << "--branch" << branch
|
58
|
+
end
|
59
|
+
|
60
|
+
command << url << path
|
61
|
+
system(*command)
|
55
62
|
|
56
63
|
# I tried using `bundle config --local local.async ../` but it simply doesn't work.
|
57
64
|
# system("bundle", "config", "--local", "local.async", __dir__, chdir: path)
|
58
65
|
|
59
66
|
gemfile_paths = ["#{path}/Gemfile", "#{path}/gems.rb"]
|
60
67
|
gemfile_path = gemfile_paths.find{|path| File.exist?(path)}
|
61
|
-
|
62
|
-
File.open(gemfile_path,
|
68
|
+
|
69
|
+
File.open(gemfile_path, 'r+') do |file|
|
70
|
+
pattern = /gem.*?['"]#{name}['"]/
|
71
|
+
lines = file.grep_v(pattern)
|
72
|
+
|
73
|
+
file.seek(0)
|
74
|
+
file.puts(lines)
|
63
75
|
file.puts nil, "# Added by external testing:"
|
64
76
|
file.puts("gem #{name.to_s.dump}, path: '../../'")
|
65
|
-
|
77
|
+
|
66
78
|
config[:extra]&.each do |line|
|
67
79
|
file.puts(line)
|
68
80
|
end
|
69
81
|
end
|
70
|
-
|
82
|
+
|
71
83
|
system("bundle", "install", chdir: path)
|
72
84
|
end
|
73
85
|
|
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.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -38,7 +38,7 @@ cert_chain:
|
|
38
38
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
39
39
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
40
40
|
-----END CERTIFICATE-----
|
41
|
-
date: 2022-
|
41
|
+
date: 2022-10-12 00:00:00.000000000 Z
|
42
42
|
dependencies:
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: bake
|
metadata.gz.sig
CHANGED
@@ -1,6 +1,2 @@
|
|
1
|
-
8�
|
2
|
-
|
3
|
-
��.&��ȑ�-e�����
|
4
|
-
�P�s��7S�X�s9���*C+]����Y��m�sSc����`��I�܀�@�f�������n�w�t/?U�6H��g�
|
5
|
-
f����r�55��J�W G�\53��U��kƝ��b��^��,��**%����������;r�MX�qҗ�پh���fe��aHE4n�*�����\�PZ�;i�%�dl�.c��D3Ip��߂K�2Ү~�l�3���ШYBj�Q*
|
6
|
-
�-f����M��[�25'q��4��\��O q�䍍���b���
|
1
|
+
U3�����L��0&Tt�X_4��*0nQ���,�#��f�������mO����gw�J�I+P���7��H�er�Qu����83��.�rq#�K�')J�#9��%�ǫ�=q�(�WE�,�O����0��{c��g,���J��Ȕ����%$~�Z�n��?��ʛ#7+!_+8�$l��U��~�k�^�ţ�0�(Rcjҥ>i�����
|
2
|
+
��%B�/�a��u��Ĭ�s�8_�~P='4��ܿ+��X|��+�[�Y�az4��Y�c^Z��h��5��������
|