bake-test-external 0.5.2 → 0.6.1
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 +1 -3
- data/bake/test/external.rb +19 -10
- data/lib/bake/test/external/controller.rb +5 -5
- data/lib/bake/test/external/version.rb +1 -1
- data/lib/bake/test/external.rb +3 -3
- data/license.md +1 -1
- data/readme.md +3 -3
- data.tar.gz.sig +0 -0
- metadata +3 -8
- 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: 83d6a1fb7ef56e5b61adfc9d5a87b3a98f8f1b4501698f17cf612807c08b9f78
|
4
|
+
data.tar.gz: 149e4159a1172cd93b98e034384dbe4b75a8602aac2a910cad4efe0d4bc251f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ab4c9d5b99f0299a8e55982fc3e9f5448c04042f4c51b0b14a7cb6c2fa7caab52af4fb9506747d2d523cc24077b9dcd3aec3817536b9a51eae647888e053a3d
|
7
|
+
data.tar.gz: b504d53c82c6d03a56eb0b3f4aceb4bf6ed831d5939913549fbc4c937748ecbd9c239e92e4dd21be1192750f21c47291b9be862874d1e8814887f858785b2bef
|
checksums.yaml.gz.sig
CHANGED
@@ -1,3 +1 @@
|
|
1
|
-
|
2
|
-
JZid�6;�)ee �_���1Έ�*$A��'�
|
3
|
-
K���:x�Χ�t�֦�Ԁ�
|
1
|
+
X!�8r��ŵ�FҚvK����hH6AhL֖.�[HoK"���4$P�f��K��1�Bo8�Eǡ�O� v��6�湛|�a�S*7���kp�Է���R�x���G現&�t���V��\���5kPꨐ���b^�Zp=�ןAlEH��0��������ϤU��J�3�����,߂�i�7Zf�:1���r�3�#~�i����U�W"�����|��)��-�4d9�foL9Pك��o�;��F���-����V������!��r2��)-�Y'��ٓ�W7������0>�����J8��3��/�{U�m�g"@�ʦ}o���r��s����L�K���j�˲(��&�҅���e9L@��7����=�
|
data/bake/test/external.rb
CHANGED
@@ -1,26 +1,29 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright, 2022-
|
4
|
+
# Copyright, 2022-2025, by Samuel Williams.
|
5
5
|
# Copyright, 2022, by Akshay Birajdar.
|
6
6
|
# Copyright, 2022, by Hiroaki Osawa.
|
7
7
|
|
8
8
|
def initialize(context)
|
9
9
|
super
|
10
10
|
|
11
|
-
require
|
12
|
-
require
|
13
|
-
require
|
11
|
+
require "bake/test/external"
|
12
|
+
require "bundler"
|
13
|
+
require "yaml"
|
14
14
|
end
|
15
15
|
|
16
|
-
DEFAULT_EXTERNALS_PATH =
|
16
|
+
DEFAULT_EXTERNALS_PATH = "config/external.yaml"
|
17
17
|
|
18
18
|
# Run external tests.
|
19
|
-
#
|
19
|
+
#
|
20
|
+
# @parameter input [Hash] The input hash containing external repository configurations.
|
21
|
+
# @parameter gemspec [String | Nil] The input gemspec path.
|
20
22
|
def external(input: nil, gemspec: nil)
|
21
|
-
|
23
|
+
# Prepare the project for testing, e.g. build native extensions, etc.
|
24
|
+
context["before_test"]&.call
|
22
25
|
|
23
|
-
|
26
|
+
input ||= default_input
|
24
27
|
gemspec ||= controller.find_gemspec
|
25
28
|
|
26
29
|
input&.each do |key, config|
|
@@ -33,10 +36,12 @@ def external(input: nil, gemspec: nil)
|
|
33
36
|
end
|
34
37
|
end
|
35
38
|
|
39
|
+
# Clone external repositories.
|
40
|
+
#
|
41
|
+
# @parameter input [Hash] The input hash containing external repository configurations.
|
42
|
+
# @parameter gemspec [String | Nil] The input gemspec path.
|
36
43
|
def clone(input: nil, gemspec: nil)
|
37
44
|
input ||= default_input
|
38
|
-
|
39
|
-
controller = Bake::Test::External::Controller.new
|
40
45
|
gemspec ||= controller.find_gemspec
|
41
46
|
|
42
47
|
input&.each do |key, config|
|
@@ -49,6 +54,10 @@ end
|
|
49
54
|
|
50
55
|
private
|
51
56
|
|
57
|
+
def controller
|
58
|
+
@controller ||= Bake::Test::External::Controller.new
|
59
|
+
end
|
60
|
+
|
52
61
|
def default_input
|
53
62
|
if File.exist?(DEFAULT_EXTERNALS_PATH)
|
54
63
|
YAML.load_file(DEFAULT_EXTERNALS_PATH)
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright,
|
4
|
+
# Copyright, 2024-2025, by Samuel Williams.
|
5
5
|
|
6
|
-
require
|
7
|
-
require
|
6
|
+
require "fileutils"
|
7
|
+
require "pathname"
|
8
8
|
|
9
9
|
module Bake
|
10
10
|
module Test
|
@@ -71,7 +71,7 @@ module Bake
|
|
71
71
|
gemfile_path = self.gemfile_path(path, config)
|
72
72
|
relative_root = @root.relative_path_from(gemfile_path.dirname)
|
73
73
|
|
74
|
-
File.open(gemfile_path,
|
74
|
+
File.open(gemfile_path, "r+") do |file|
|
75
75
|
pattern = /gem.*?['"]#{name}['"]/
|
76
76
|
lines = file.grep_v(pattern)
|
77
77
|
|
@@ -136,7 +136,7 @@ module Bake
|
|
136
136
|
|
137
137
|
# Custom gemfile paths should be set explicitly:
|
138
138
|
unless default
|
139
|
-
config[:env][
|
139
|
+
config[:env]["BUNDLE_GEMFILE"] = path
|
140
140
|
end
|
141
141
|
|
142
142
|
path = Pathname.new(path)
|
data/lib/bake/test/external.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright,
|
4
|
+
# Copyright, 2024-2025, by Samuel Williams.
|
5
5
|
|
6
|
-
require_relative
|
7
|
-
require_relative
|
6
|
+
require_relative "external/version"
|
7
|
+
require_relative "external/controller"
|
data/license.md
CHANGED
data/readme.md
CHANGED
@@ -22,8 +22,8 @@ We welcome contributions to this project.
|
|
22
22
|
|
23
23
|
### Developer Certificate of Origin
|
24
24
|
|
25
|
-
|
25
|
+
In order to protect users of this project, we require all contributors to comply with the [Developer Certificate of Origin](https://developercertificate.org/). This ensures that all contributions are properly licensed and attributed.
|
26
26
|
|
27
|
-
###
|
27
|
+
### Community Guidelines
|
28
28
|
|
29
|
-
This project is
|
29
|
+
This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
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.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
- Akshay Birajdar
|
9
9
|
- Hiroaki Osawa
|
10
|
-
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain:
|
13
12
|
- |
|
@@ -39,7 +38,7 @@ cert_chain:
|
|
39
38
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
40
39
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
41
40
|
-----END CERTIFICATE-----
|
42
|
-
date:
|
41
|
+
date: 2025-04-15 00:00:00.000000000 Z
|
43
42
|
dependencies:
|
44
43
|
- !ruby/object:Gem::Dependency
|
45
44
|
name: bake
|
@@ -55,8 +54,6 @@ dependencies:
|
|
55
54
|
- - ">="
|
56
55
|
- !ruby/object:Gem::Version
|
57
56
|
version: '0'
|
58
|
-
description:
|
59
|
-
email:
|
60
57
|
executables: []
|
61
58
|
extensions: []
|
62
59
|
extra_rdoc_files: []
|
@@ -74,7 +71,6 @@ metadata:
|
|
74
71
|
documentation_uri: https://ioquatix.github.io/bake-test-external/
|
75
72
|
funding_uri: https://github.com/sponsors/ioquatix/
|
76
73
|
source_code_uri: https://github.com/ioquatix/bake-test-external.git
|
77
|
-
post_install_message:
|
78
74
|
rdoc_options: []
|
79
75
|
require_paths:
|
80
76
|
- lib
|
@@ -89,8 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
85
|
- !ruby/object:Gem::Version
|
90
86
|
version: '0'
|
91
87
|
requirements: []
|
92
|
-
rubygems_version: 3.
|
93
|
-
signing_key:
|
88
|
+
rubygems_version: 3.6.2
|
94
89
|
specification_version: 4
|
95
90
|
summary: Run external test suites to check for breakage.
|
96
91
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|