rubysmith 6.4.0 → 6.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/rubysmith/container.rb +10 -13
- data/lib/rubysmith/import.rb +1 -1
- data/lib/rubysmith/templates/%project_name%/.github/workflows/ci.yml.erb +2 -2
- data/lib/rubysmith/templates/%project_name%/bin/setup.erb +16 -6
- data/rubysmith.gemspec +9 -9
- data.tar.gz.sig +0 -0
- metadata +20 -20
- 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: 87c03d33ec72f5cd69aa269dc4f6fc62907e66d5e7a235c720a76eba2f3acb7f
|
4
|
+
data.tar.gz: 60e4c496c0b9f8838bc75c6d4071ab04766a1dd407f8684fb37036c9feabd398
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d15ef7a7b55431fa7eec128afc77361804954916d9245bdd27c81b683efbe8e6e54813eeed31996a972098f1dd091bd29f42b79fcd2d23c964875a47ca0fd69c
|
7
|
+
data.tar.gz: d48e0e0d331031342d9279acbc3e4130b65785061b83a27d70bf9d46a0ecb59e77b41594749b3b62ce118ae22e3899dd55dea9b0cb9774ffd45d68afac02b1b0
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/rubysmith/container.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "cogger"
|
4
|
-
require "
|
4
|
+
require "containable"
|
5
5
|
require "etcher"
|
6
6
|
require "gitt"
|
7
7
|
require "runcom"
|
@@ -10,14 +10,14 @@ require "spek"
|
|
10
10
|
module Rubysmith
|
11
11
|
# Provides a global gem container for injection into other objects.
|
12
12
|
module Container
|
13
|
-
extend
|
13
|
+
extend Containable
|
14
14
|
|
15
|
-
register :configuration
|
15
|
+
register :configuration do
|
16
16
|
self[:defaults].add_loader(Etcher::Loaders::YAML.new(self[:xdg_config].active))
|
17
17
|
.then { |registry| Etcher.call registry }
|
18
18
|
end
|
19
19
|
|
20
|
-
register :defaults
|
20
|
+
register :defaults do
|
21
21
|
Etcher::Registry.new(contract: Configuration::Contract, model: Configuration::Model)
|
22
22
|
.add_loader(Etcher::Loaders::YAML.new(self[:defaults_path]))
|
23
23
|
.add_transformer(Configuration::Transformers::CurrentTime)
|
@@ -28,15 +28,12 @@ module Rubysmith
|
|
28
28
|
.add_transformer(Configuration::Transformers::TargetRoot)
|
29
29
|
end
|
30
30
|
|
31
|
-
register
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
register(:
|
36
|
-
register(:
|
37
|
-
register(:xdg_config, memoize: true) { Runcom::Config.new "rubysmith/configuration.yml" }
|
38
|
-
register(:git, memoize: true) { Gitt::Repository.new }
|
39
|
-
register(:logger, memoize: true) { Cogger.new id: :rubysmith }
|
31
|
+
register(:specification) { Spek::Loader.call "#{__dir__}/../../rubysmith.gemspec" }
|
32
|
+
register(:input) { self[:configuration].dup }
|
33
|
+
register(:defaults_path) { Pathname(__dir__).join("configuration/defaults.yml") }
|
34
|
+
register(:xdg_config) { Runcom::Config.new "rubysmith/configuration.yml" }
|
35
|
+
register(:git) { Gitt::Repository.new }
|
36
|
+
register(:logger) { Cogger.new id: :rubysmith }
|
40
37
|
register :kernel, Kernel
|
41
38
|
end
|
42
39
|
end
|
data/lib/rubysmith/import.rb
CHANGED
@@ -9,7 +9,7 @@ jobs:
|
|
9
9
|
|
10
10
|
steps:
|
11
11
|
- name: Checkout
|
12
|
-
uses: actions/checkout@
|
12
|
+
uses: actions/checkout@v4
|
13
13
|
|
14
14
|
- name: Ruby Setup
|
15
15
|
uses: ruby/setup-ruby@v1
|
@@ -21,7 +21,7 @@ jobs:
|
|
21
21
|
|
22
22
|
<% if configuration.build_simple_cov %>
|
23
23
|
- name: SimpleCov Report
|
24
|
-
uses: actions/upload-artifact@
|
24
|
+
uses: actions/upload-artifact@v4
|
25
25
|
with:
|
26
26
|
name: coverage
|
27
27
|
path: coverage
|
@@ -1,8 +1,18 @@
|
|
1
|
-
#! /usr/bin/env
|
1
|
+
#! /usr/bin/env ruby
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
<% if configuration.build_debug %>
|
4
|
+
require "debug"
|
5
|
+
<% end %>
|
6
|
+
require "fileutils"
|
7
|
+
require "pathname"
|
7
8
|
|
8
|
-
|
9
|
+
APP_ROOT = Pathname(__dir__).join("..").expand_path
|
10
|
+
|
11
|
+
Runner = lambda do |*arguments, kernel: Kernel|
|
12
|
+
kernel.system(*arguments) || kernel.abort("\nERROR: Command #{arguments.inspect} failed.")
|
13
|
+
end
|
14
|
+
|
15
|
+
FileUtils.chdir APP_ROOT do
|
16
|
+
puts "Installing dependencies..."
|
17
|
+
Runner.call "bundle install"
|
18
|
+
end
|
data/rubysmith.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "rubysmith"
|
5
|
-
spec.version = "6.
|
5
|
+
spec.version = "6.5.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://alchemists.io/projects/rubysmith"
|
@@ -24,20 +24,20 @@ Gem::Specification.new do |spec|
|
|
24
24
|
|
25
25
|
spec.required_ruby_version = "~> 3.3"
|
26
26
|
spec.add_dependency "cogger", "~> 0.16"
|
27
|
-
spec.add_dependency "
|
27
|
+
spec.add_dependency "containable", "~> 0.0"
|
28
28
|
spec.add_dependency "dry-monads", "~> 1.6"
|
29
29
|
spec.add_dependency "dry-schema", "~> 1.13"
|
30
|
-
spec.add_dependency "etcher", "~> 1.
|
30
|
+
spec.add_dependency "etcher", "~> 1.3"
|
31
31
|
spec.add_dependency "gitt", "~> 3.2"
|
32
|
-
spec.add_dependency "infusible", "~> 3.
|
33
|
-
spec.add_dependency "milestoner", "~> 17.
|
34
|
-
spec.add_dependency "pragmater", "~> 14.
|
32
|
+
spec.add_dependency "infusible", "~> 3.5"
|
33
|
+
spec.add_dependency "milestoner", "~> 17.5"
|
34
|
+
spec.add_dependency "pragmater", "~> 14.4"
|
35
35
|
spec.add_dependency "refinements", "~> 12.1"
|
36
|
-
spec.add_dependency "rubocop", "~> 1.
|
36
|
+
spec.add_dependency "rubocop", "~> 1.62"
|
37
37
|
spec.add_dependency "runcom", "~> 11.0"
|
38
|
-
spec.add_dependency "sod", "~> 0.
|
38
|
+
spec.add_dependency "sod", "~> 0.8"
|
39
39
|
spec.add_dependency "spek", "~> 3.0"
|
40
|
-
spec.add_dependency "tocer", "~> 17.
|
40
|
+
spec.add_dependency "tocer", "~> 17.3"
|
41
41
|
spec.add_dependency "tone", "~> 1.0"
|
42
42
|
spec.add_dependency "zeitwerk", "~> 2.6"
|
43
43
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubysmith
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
|
36
36
|
gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2024-03
|
38
|
+
date: 2024-04-03 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: cogger
|
@@ -52,19 +52,19 @@ dependencies:
|
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '0.16'
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
|
-
name:
|
55
|
+
name: containable
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '0.
|
60
|
+
version: '0.0'
|
61
61
|
type: :runtime
|
62
62
|
prerelease: false
|
63
63
|
version_requirements: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '0.
|
67
|
+
version: '0.0'
|
68
68
|
- !ruby/object:Gem::Dependency
|
69
69
|
name: dry-monads
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,14 +99,14 @@ dependencies:
|
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: '1.
|
102
|
+
version: '1.3'
|
103
103
|
type: :runtime
|
104
104
|
prerelease: false
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '1.
|
109
|
+
version: '1.3'
|
110
110
|
- !ruby/object:Gem::Dependency
|
111
111
|
name: gitt
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
@@ -127,42 +127,42 @@ dependencies:
|
|
127
127
|
requirements:
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: '3.
|
130
|
+
version: '3.5'
|
131
131
|
type: :runtime
|
132
132
|
prerelease: false
|
133
133
|
version_requirements: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
135
|
- - "~>"
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version: '3.
|
137
|
+
version: '3.5'
|
138
138
|
- !ruby/object:Gem::Dependency
|
139
139
|
name: milestoner
|
140
140
|
requirement: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
142
|
- - "~>"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: '17.
|
144
|
+
version: '17.5'
|
145
145
|
type: :runtime
|
146
146
|
prerelease: false
|
147
147
|
version_requirements: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
149
|
- - "~>"
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version: '17.
|
151
|
+
version: '17.5'
|
152
152
|
- !ruby/object:Gem::Dependency
|
153
153
|
name: pragmater
|
154
154
|
requirement: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
156
|
- - "~>"
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version: '14.
|
158
|
+
version: '14.4'
|
159
159
|
type: :runtime
|
160
160
|
prerelease: false
|
161
161
|
version_requirements: !ruby/object:Gem::Requirement
|
162
162
|
requirements:
|
163
163
|
- - "~>"
|
164
164
|
- !ruby/object:Gem::Version
|
165
|
-
version: '14.
|
165
|
+
version: '14.4'
|
166
166
|
- !ruby/object:Gem::Dependency
|
167
167
|
name: refinements
|
168
168
|
requirement: !ruby/object:Gem::Requirement
|
@@ -183,14 +183,14 @@ dependencies:
|
|
183
183
|
requirements:
|
184
184
|
- - "~>"
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
version: '1.
|
186
|
+
version: '1.62'
|
187
187
|
type: :runtime
|
188
188
|
prerelease: false
|
189
189
|
version_requirements: !ruby/object:Gem::Requirement
|
190
190
|
requirements:
|
191
191
|
- - "~>"
|
192
192
|
- !ruby/object:Gem::Version
|
193
|
-
version: '1.
|
193
|
+
version: '1.62'
|
194
194
|
- !ruby/object:Gem::Dependency
|
195
195
|
name: runcom
|
196
196
|
requirement: !ruby/object:Gem::Requirement
|
@@ -211,14 +211,14 @@ dependencies:
|
|
211
211
|
requirements:
|
212
212
|
- - "~>"
|
213
213
|
- !ruby/object:Gem::Version
|
214
|
-
version: '0.
|
214
|
+
version: '0.8'
|
215
215
|
type: :runtime
|
216
216
|
prerelease: false
|
217
217
|
version_requirements: !ruby/object:Gem::Requirement
|
218
218
|
requirements:
|
219
219
|
- - "~>"
|
220
220
|
- !ruby/object:Gem::Version
|
221
|
-
version: '0.
|
221
|
+
version: '0.8'
|
222
222
|
- !ruby/object:Gem::Dependency
|
223
223
|
name: spek
|
224
224
|
requirement: !ruby/object:Gem::Requirement
|
@@ -239,14 +239,14 @@ dependencies:
|
|
239
239
|
requirements:
|
240
240
|
- - "~>"
|
241
241
|
- !ruby/object:Gem::Version
|
242
|
-
version: '17.
|
242
|
+
version: '17.3'
|
243
243
|
type: :runtime
|
244
244
|
prerelease: false
|
245
245
|
version_requirements: !ruby/object:Gem::Requirement
|
246
246
|
requirements:
|
247
247
|
- - "~>"
|
248
248
|
- !ruby/object:Gem::Version
|
249
|
-
version: '17.
|
249
|
+
version: '17.3'
|
250
250
|
- !ruby/object:Gem::Dependency
|
251
251
|
name: tone
|
252
252
|
requirement: !ruby/object:Gem::Requirement
|
@@ -426,7 +426,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
426
426
|
- !ruby/object:Gem::Version
|
427
427
|
version: '0'
|
428
428
|
requirements: []
|
429
|
-
rubygems_version: 3.5.
|
429
|
+
rubygems_version: 3.5.7
|
430
430
|
signing_key:
|
431
431
|
specification_version: 4
|
432
432
|
summary: A command line interface for smithing Ruby projects.
|
metadata.gz.sig
CHANGED
Binary file
|