bake 0.24.1 → 0.25.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: 9a0b7eec81f6d689857dc2b652d8cabcb1f35ed73eaec9f0cbb3aa43b268b7b3
4
- data.tar.gz: 0c07c5778454e1797eddc1b0d5e6e70174a41da5281b04ffcb8af774142335fe
3
+ metadata.gz: 35fbfcdd142968a59a5538452f25fac07eb911eb090951bcf71b427258d54cce
4
+ data.tar.gz: 4b6a66ed1b0eab7916d8dd866f232e7e7780b3d5cabf1faac91754e11a39f974
5
5
  SHA512:
6
- metadata.gz: dafb2ca73a16b74b16cc745750086069fe967be75dd465de60f0d6a1de49c837971389687a314a13c4866289db858dea40d8176337129764b2e77896a90b6921
7
- data.tar.gz: 2d7e5b903233db1b99ed9bd6c81162dc759397d181f887f0e8448608a27eb52ee8f868c55193a741e313f7428f629eaaa3f373640d61e42f3558282df0dafd27
6
+ metadata.gz: 24dd4b66f92ae00e311fde00ad12a3162ca743ca08aa5cb37462faa0d30054f1a74cb10ff93d2d5efdd32b3bf6e2372a9a4aa148f278a29a348f27cfb7cc4b62
7
+ data.tar.gz: 4383b3c84f2a91bbd80412f736683b297c0d9f07a2c33e121ec9267a2239f892eba741e2da2c04bc5d2484f8ab346d3b84e69e28e32ffd4be74c2f76e7d707a6
checksums.yaml.gz.sig CHANGED
Binary file
@@ -44,6 +44,12 @@ module Bake
44
44
 
45
45
  # Extract the trailing arguments:
46
46
  @options[name] = extract_arguments(name, arguments)
47
+ elsif @ordered.size < @arity
48
+ _, name = @parameters.shift
49
+ value = arguments.shift
50
+
51
+ # Consume it:
52
+ @ordered << extract_argument(name, value)
47
53
  elsif /^(?<name>.*?)=(?<value>.*)$/ =~ argument
48
54
  # Consume the argument:
49
55
  arguments.shift
@@ -52,12 +58,6 @@ module Bake
52
58
 
53
59
  # Extract the single argument:
54
60
  @options[name] = extract_argument(name, value)
55
- elsif @ordered.size < @arity
56
- _, name = @parameters.shift
57
- value = arguments.shift
58
-
59
- # Consume it:
60
- @ordered << extract_argument(name, value)
61
61
  else
62
62
  break
63
63
  end
@@ -50,7 +50,7 @@ module Bake
50
50
 
51
51
  unless printed
52
52
  yield
53
-
53
+
54
54
  printed = true
55
55
  end
56
56
 
@@ -84,7 +84,7 @@ module Bake
84
84
  # Enumerate all loaded gems and add them.
85
85
  def append_from_gems
86
86
  ::Gem.loaded_specs.each do |name, spec|
87
- Console.debug(self) {"Checking gem #{name}: #{spec.full_gem_path}..."}
87
+ Console.debug(self){"Checking gem #{name}: #{spec.full_gem_path}..."}
88
88
 
89
89
  if path = spec.full_gem_path and File.directory?(path)
90
90
  append_path(path, name: spec.full_name)
@@ -96,12 +96,12 @@ module Bake
96
96
 
97
97
  def insert(directory, **options)
98
98
  unless @roots.key?(directory)
99
- Console.debug(self) {"Adding #{directory.inspect}"}
100
-
99
+ Console.debug(self){"Adding #{directory.inspect}"}
100
+
101
101
  loader = DirectoryLoader.new(directory, **options)
102
102
  @roots[directory] = loader
103
103
  @ordered << loader
104
-
104
+
105
105
  return true
106
106
  end
107
107
 
data/lib/bake/version.rb CHANGED
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2020-2025, by Samuel Williams.
5
5
 
6
6
  module Bake
7
- VERSION = "0.24.1"
7
+ VERSION = "0.25.0"
8
8
  end
data/readme.md CHANGED
@@ -33,6 +33,10 @@ Please see the [project documentation](https://ioquatix.github.io/bake/) for mor
33
33
 
34
34
  Please see the [project releases](https://ioquatix.github.io/bake/releases/index) for all releases.
35
35
 
36
+ ### v0.25.0
37
+
38
+ - Prefer positional arguments before interpreting `name=value` optional arguments.
39
+
36
40
  ### v0.24.1
37
41
 
38
42
  - Add agent context.
@@ -57,6 +61,22 @@ We welcome contributions to this project.
57
61
  4. Push to the branch (`git push origin my-new-feature`).
58
62
  5. Create new Pull Request.
59
63
 
64
+ ### Running Tests
65
+
66
+ To run the test suite:
67
+
68
+ ``` shell
69
+ bundle exec sus
70
+ ```
71
+
72
+ ### Making Releases
73
+
74
+ To make a new release:
75
+
76
+ ``` shell
77
+ bundle exec bake gem:release:patch # or minor or major
78
+ ```
79
+
60
80
  ### Developer Certificate of Origin
61
81
 
62
82
  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.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.25.0
4
+
5
+ - Prefer positional arguments before interpreting `name=value` optional arguments.
6
+
3
7
  ## v0.24.1
4
8
 
5
9
  - Add agent context.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.1
4
+ version: 0.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -133,14 +133,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
133
133
  requirements:
134
134
  - - ">="
135
135
  - !ruby/object:Gem::Version
136
- version: '3.2'
136
+ version: '3.3'
137
137
  required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  requirements:
139
139
  - - ">="
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  requirements: []
143
- rubygems_version: 3.6.9
143
+ rubygems_version: 4.0.3
144
144
  specification_version: 4
145
145
  summary: A replacement for rake with a simpler syntax.
146
146
  test_files: []
metadata.gz.sig CHANGED
Binary file