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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3072f589cb8fd6a99e2e45f3791eb8ff6a73cb215251e4e63171de62650cb24b
4
- data.tar.gz: 2a80ff09debdafc85114adf98502f132b429576a4cad85de1eeb3d49df9447a1
3
+ metadata.gz: f3a6b374572b47af82e04f4b26b382a133c593cbcf43897fce5f47b2c3a106a1
4
+ data.tar.gz: bbb34012fb4558a400eeb52cf6286ec946545f6e31aea54c38372e9a0bbc1f48
5
5
  SHA512:
6
- metadata.gz: 5b9ab0dea33134723ae45dbf0d30d796033a0372554668d2605c715aab622cd82f00f086ea8be3d559da858e422a7a8db41d53930b779f864272b1eb53160ebd
7
- data.tar.gz: b99804ca0aa5163d3e12110caba045667e73fe30f7466c25e293cba607305be2d259e563087307fa7be3a203e32e4e3766f6a1253c8770e8b646376ee1ddf109
6
+ metadata.gz: 17f73204c2b1114d44e66146226126d1569938fcaf6cdb072f33bcfe6413d37562330fefb86348052eb2dc73c51e6e7636035409e156f16b7e52162e45548a12
7
+ data.tar.gz: 810a9db3951a515617e8a38b0cb1290b384d7a91abb382ef39441d9d1ec33583e106bd1daa28e4e5a84fb5032eddc698bc680e1d7f8adb907b169d60ec25a89f
checksums.yaml.gz.sig CHANGED
Binary file
@@ -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
- system("git", "clone", "--depth", "1", url, path)
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, "a") do |file|
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
 
@@ -6,7 +6,7 @@
6
6
  module Bake
7
7
  module Test
8
8
  module External
9
- VERSION = "0.2.0"
9
+ VERSION = "0.3.0"
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.2.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-08-28 00:00:00.000000000 Z
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�v�f
2
- K�$�(��cVK�����<�]V�/lC��H�!g���\�EIJ4&3�h��B15��䕻��~\OQ���g
3
- ��.&��ȑ�-e�����
4
- �P�s��7S�X�s 9���*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��Ĭ�s8_�~P='4��ܿ+��X|��+�[�Y�az4��Y�c^Z��h��5��� �����