bake-modernize 0.52.0 → 0.54.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/modernize/contributing.rb +16 -0
- data/bake/modernize/releases.rb +31 -4
- data/bake/modernize.rb +2 -1
- data/lib/bake/modernize/version.rb +1 -1
- data/readme.md +4 -0
- data/releases.md +4 -0
- data/template/readme/readme.md +16 -0
- data/template/releases/bake.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +16 -2
- metadata.gz.sig +1 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 370197f8715616961268175601d27525b0d142e577ad92ddbe7e19ac0828c11f
|
|
4
|
+
data.tar.gz: 46a5f006fdc008cce89ca7264948f94f834669c9da9c75ac133d08ccec3e3232
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a39017584ea25bb2f45b16ed817047639195c338ce1002118f2bb9ae20e24aaa17250253134fc2ba43cf59b2f23ffe034682af10c9d391d0f27407d4a02192b2
|
|
7
|
+
data.tar.gz: 5b9596fd3010d81778c8eff787a2a9b01435a4b0fd523aea124061f5da7061cdaa4797b26c824901fd36aac596c9f2e6b4365826a2bff1c355020d67a7602ee9
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
|
@@ -27,6 +27,22 @@ We welcome contributions to this project.
|
|
|
27
27
|
4. Push to the branch (`git push origin my-new-feature`).
|
|
28
28
|
5. Create new Pull Request.
|
|
29
29
|
|
|
30
|
+
### Running Tests
|
|
31
|
+
|
|
32
|
+
To run the test suite:
|
|
33
|
+
|
|
34
|
+
``` shell
|
|
35
|
+
bundle exec sus
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Making Releases
|
|
39
|
+
|
|
40
|
+
To make a new release:
|
|
41
|
+
|
|
42
|
+
``` shell
|
|
43
|
+
bundle exec bake gem:release:patch # or minor or major
|
|
44
|
+
```
|
|
45
|
+
|
|
30
46
|
### Developer Certificate of Origin
|
|
31
47
|
|
|
32
48
|
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/bake/modernize/releases.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
# Released under the MIT License.
|
|
4
|
-
# Copyright, 2025, by Samuel Williams.
|
|
4
|
+
# Copyright, 2025-2026, by Samuel Williams.
|
|
5
5
|
|
|
6
6
|
require "bake/modernize"
|
|
7
7
|
require "markly"
|
|
@@ -13,9 +13,8 @@ def releases(root: Dir.pwd)
|
|
|
13
13
|
system("bundle", "add", "bake-releases", "--group", "maintenance", chdir: root)
|
|
14
14
|
|
|
15
15
|
update_releases(File.join(root, "readme.md"))
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
Bake::Modernize.copy_template(template_root, root)
|
|
16
|
+
update_releases_md(File.join(root, "releases.md"))
|
|
17
|
+
update_bake(root)
|
|
19
18
|
end
|
|
20
19
|
|
|
21
20
|
private
|
|
@@ -45,3 +44,31 @@ def update_releases(readme_path)
|
|
|
45
44
|
|
|
46
45
|
File.write(readme_path, root.to_markdown(width: 0))
|
|
47
46
|
end
|
|
47
|
+
|
|
48
|
+
RELEASES_TEMPLATE_ROOT = Bake::Modernize.template_path_for("releases")
|
|
49
|
+
|
|
50
|
+
def update_releases_md(releases_md_path)
|
|
51
|
+
# Don't overwrite an existing releases.md:
|
|
52
|
+
return if File.exist?(releases_md_path)
|
|
53
|
+
|
|
54
|
+
FileUtils.cp(RELEASES_TEMPLATE_ROOT + "releases.md", releases_md_path)
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def update_bake(root)
|
|
58
|
+
require "async/ollama"
|
|
59
|
+
|
|
60
|
+
bake_path = File.join(root, "bake.rb")
|
|
61
|
+
template = File.read(RELEASES_TEMPLATE_ROOT + "bake.rb")
|
|
62
|
+
|
|
63
|
+
if File.exist?(bake_path)
|
|
64
|
+
existing = File.read(bake_path)
|
|
65
|
+
updated = Async::Ollama::Transform.call(existing,
|
|
66
|
+
model: "qwen3-coder:latest",
|
|
67
|
+
instruction: "Merge the template into the existing file. Add any missing methods and update existing method bodies to include any missing calls shown in the template. Do not remove any existing calls.",
|
|
68
|
+
template: template,
|
|
69
|
+
)
|
|
70
|
+
File.write(bake_path, updated)
|
|
71
|
+
else
|
|
72
|
+
File.write(bake_path, template)
|
|
73
|
+
end
|
|
74
|
+
end
|
data/bake/modernize.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
# Released under the MIT License.
|
|
4
|
-
# Copyright, 2020-
|
|
4
|
+
# Copyright, 2020-2026, by Samuel Williams.
|
|
5
5
|
# Copyright, 2025, by Copilot.
|
|
6
6
|
|
|
7
7
|
def modernize
|
|
@@ -17,5 +17,6 @@ def modernize
|
|
|
17
17
|
"modernize:license",
|
|
18
18
|
"modernize:contributing",
|
|
19
19
|
"modernize:copilot",
|
|
20
|
+
"modernize:releases",
|
|
20
21
|
)
|
|
21
22
|
end
|
data/readme.md
CHANGED
|
@@ -12,6 +12,10 @@ Please see the [project documentation](https://ioquatix.github.io/bake-modernize
|
|
|
12
12
|
|
|
13
13
|
Please see the [project releases](https://ioquatix.github.io/bake-modernize/releases/index) for all releases.
|
|
14
14
|
|
|
15
|
+
### v0.53.0
|
|
16
|
+
|
|
17
|
+
- Make `modernize:releases` part of the default `modernize` task.
|
|
18
|
+
|
|
15
19
|
### v0.52.0
|
|
16
20
|
|
|
17
21
|
- Add support for automatic GitHub release generation.
|
data/releases.md
CHANGED
data/template/readme/readme.md
CHANGED
|
@@ -22,6 +22,22 @@ We welcome contributions to this project.
|
|
|
22
22
|
4. Push to the branch (`git push origin my-new-feature`).
|
|
23
23
|
5. Create new Pull Request.
|
|
24
24
|
|
|
25
|
+
### Running Tests
|
|
26
|
+
|
|
27
|
+
To run the test suite:
|
|
28
|
+
|
|
29
|
+
``` shell
|
|
30
|
+
bundle exec sus
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Making Releases
|
|
34
|
+
|
|
35
|
+
To make a new release:
|
|
36
|
+
|
|
37
|
+
``` shell
|
|
38
|
+
bundle exec bake gem:release:patch # or minor or major
|
|
39
|
+
```
|
|
40
|
+
|
|
25
41
|
### Developer Certificate of Origin
|
|
26
42
|
|
|
27
43
|
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/template/releases/bake.rb
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bake-modernize
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.54.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
@@ -54,6 +54,20 @@ dependencies:
|
|
|
54
54
|
- - ">="
|
|
55
55
|
- !ruby/object:Gem::Version
|
|
56
56
|
version: '0'
|
|
57
|
+
- !ruby/object:Gem::Dependency
|
|
58
|
+
name: async-ollama
|
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
|
60
|
+
requirements:
|
|
61
|
+
- - "~>"
|
|
62
|
+
- !ruby/object:Gem::Version
|
|
63
|
+
version: '0.10'
|
|
64
|
+
type: :runtime
|
|
65
|
+
prerelease: false
|
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
67
|
+
requirements:
|
|
68
|
+
- - "~>"
|
|
69
|
+
- !ruby/object:Gem::Version
|
|
70
|
+
version: '0.10'
|
|
57
71
|
- !ruby/object:Gem::Dependency
|
|
58
72
|
name: bake
|
|
59
73
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -168,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
168
182
|
- !ruby/object:Gem::Version
|
|
169
183
|
version: '0'
|
|
170
184
|
requirements: []
|
|
171
|
-
rubygems_version: 4.0.
|
|
185
|
+
rubygems_version: 4.0.6
|
|
172
186
|
specification_version: 4
|
|
173
187
|
summary: Automatically modernize parts of your project/gem.
|
|
174
188
|
test_files: []
|
metadata.gz.sig
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
p
|
|
2
|
-
�!&��,��ha��)>S�3qR�/�{W?O��xq�n�g�kC�o�5O��v#S5���,�
|
|
3
|
-
!����/&8�
|
|
4
|
-
|
|
1
|
+
r[`T�8��m�������u���ѧ��Cw�� m:f���խ�P���ӧK�{$G8^�'a��.�-�́Ai|�'�Y��,2�=�̾�q�Aq�G����8��$s�&�#6G�f�����)�ڇ�|b|^���B��x�{�C�&��LS�?���v�Măq����8�Y@;T�N�9�Iv9��W����Hp�]��"��vB�@C�3�NF�}~�����Ӹ�4���E�yE�x:�էoa"�"�p��Po*�\�L-1��q$����p�gR ɜ��H���ʓ:���b�O��cj�yv������[ξ�꣯��1��^��k�,�%Er��3i�p��pɓ�ϑ�Y_�u
|