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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 914938cd2d9ad2474b2767e37a06e87062d5a09cb172929644863f491015a14d
4
- data.tar.gz: 5e72d50145236a804e241732a506a3a1631852088a25e5839a9622b6ccc04bd7
3
+ metadata.gz: 83d6a1fb7ef56e5b61adfc9d5a87b3a98f8f1b4501698f17cf612807c08b9f78
4
+ data.tar.gz: 149e4159a1172cd93b98e034384dbe4b75a8602aac2a910cad4efe0d4bc251f3
5
5
  SHA512:
6
- metadata.gz: 57628693871c5822d21b6372b4b5403253288d349cb32b07d14011ce477aec5d40beee94624343a123dc96c7aabb96159d6727686ef3be53d022b11e5453f5f4
7
- data.tar.gz: 9b9c64f316652ad17c10a8ef65e14d5bd8f313f772914708d25cd00bceb87a2a9eb6be80e2f847cf2f4baa0d3a65cf4bc59071877476881cdedb21f99083d0dd
6
+ metadata.gz: 1ab4c9d5b99f0299a8e55982fc3e9f5448c04042f4c51b0b14a7cb6c2fa7caab52af4fb9506747d2d523cc24077b9dcd3aec3817536b9a51eae647888e053a3d
7
+ data.tar.gz: b504d53c82c6d03a56eb0b3f4aceb4bf6ed831d5939913549fbc4c937748ecbd9c239e92e4dd21be1192750f21c47291b9be862874d1e8814887f858785b2bef
checksums.yaml.gz.sig CHANGED
@@ -1,3 +1 @@
1
- B�hN7����Q��_ǁ��*��F�h wM,���>�R��e7gk����ld7��I�/�t7��xU��iham�7�sM��xn�$��"TB�@<3_��s k>�(� auUfD��=�*� hݡ�0'��K�r���$���yK�X�.����U%TŰ'�4~D>�"��������N��6k�� M]�ЂS���h��jջ[+@v(���" �ҒF�燢3l���
2
- JZid�6;�)ee �_���1Έ�*$A��'�
3
- K���:x�Χ�t�֦�Ԁ�
1
+ X!�8r��ŵ�FҚvK����hH6AhL֖.�[HoK"���4$Pf��K��1Bo8Eǡ�O� v��6�湛|�a�S*7���kp�Է���R�x���G現&�t���V��\���5kPꨐ���b^�Zp=�ןAlEH��0��������ϤU��J3�����,߂�i�7Zf�:1���r3�#~�i����U�W"�����|��)��-�4d9foL9Pك��o�՗;��F���-����V������!��r2��)-�Y'��ٓ�W7������0>�����J8��3��/�{U�m�g"@�ʦ}o���r��s����LK���j�˲(��&�҅���e9L@��7����=�
@@ -1,26 +1,29 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2022-2024, by Samuel Williams.
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 'bake/test/external'
12
- require 'bundler'
13
- require 'yaml'
11
+ require "bake/test/external"
12
+ require "bundler"
13
+ require "yaml"
14
14
  end
15
15
 
16
- DEFAULT_EXTERNALS_PATH = 'config/external.yaml'
16
+ DEFAULT_EXTERNALS_PATH = "config/external.yaml"
17
17
 
18
18
  # Run external tests.
19
- # @parameter gemspec [String] The input gemspec path.
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
- input ||= default_input
23
+ # Prepare the project for testing, e.g. build native extensions, etc.
24
+ context["before_test"]&.call
22
25
 
23
- controller = Bake::Test::External::Controller.new
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, 2022, by Samuel Williams.
4
+ # Copyright, 2024-2025, by Samuel Williams.
5
5
 
6
- require 'fileutils'
7
- require 'pathname'
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, 'r+') do |file|
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]['BUNDLE_GEMFILE'] = path
139
+ config[:env]["BUNDLE_GEMFILE"] = path
140
140
  end
141
141
 
142
142
  path = Pathname.new(path)
@@ -6,7 +6,7 @@
6
6
  module Bake
7
7
  module Test
8
8
  module External
9
- VERSION = "0.5.2"
9
+ VERSION = "0.6.1"
10
10
  end
11
11
  end
12
12
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2022, by Samuel Williams.
4
+ # Copyright, 2024-2025, by Samuel Williams.
5
5
 
6
- require_relative 'external/version'
7
- require_relative 'external/controller'
6
+ require_relative "external/version"
7
+ require_relative "external/controller"
data/license.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MIT License
2
2
 
3
- Copyright, 2022-2024, by Samuel Williams.
3
+ Copyright, 2022-2025, by Samuel Williams.
4
4
  Copyright, 2022, by Akshay Birajdar.
5
5
  Copyright, 2022, by Hiroaki Osawa.
6
6
 
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
- This project uses the [Developer Certificate of Origin](https://developercertificate.org/). All contributors to this project must agree to this document to have their contributions accepted.
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
- ### Contributor Covenant
27
+ ### Community Guidelines
28
28
 
29
- This project is governed by the [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms.
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.5.2
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: 2024-06-21 00:00:00.000000000 Z
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.5.11
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