hanamismith 0.38.0 → 0.39.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/README.adoc +2 -2
- data/hanamismith.gemspec +8 -8
- data/lib/hanamismith/builders/asset.rb +2 -2
- data/lib/hanamismith/builders/binstub.rb +2 -2
- data/lib/hanamismith/builders/bundler.rb +3 -3
- data/lib/hanamismith/builders/caliber.rb +3 -3
- data/lib/hanamismith/builders/circle_ci.rb +20 -0
- data/lib/hanamismith/builders/console.rb +4 -4
- data/lib/hanamismith/builders/core.rb +11 -14
- data/lib/hanamismith/builders/documentation/readme.rb +3 -3
- data/lib/hanamismith/builders/environments/development.rb +2 -2
- data/lib/hanamismith/builders/environments/test.rb +2 -2
- data/lib/hanamismith/builders/git/ignore.rb +3 -3
- data/lib/hanamismith/builders/{ci/git_hub.rb → git_hub/ci.rb} +5 -5
- data/lib/hanamismith/builders/guard.rb +3 -3
- data/lib/hanamismith/builders/icon.rb +2 -2
- data/lib/hanamismith/builders/javascript.rb +2 -2
- data/lib/hanamismith/builders/node.rb +3 -3
- data/lib/hanamismith/builders/providers/persistence.rb +2 -2
- data/lib/hanamismith/builders/providers/yjit.rb +2 -2
- data/lib/hanamismith/builders/puma/configuration.rb +2 -3
- data/lib/hanamismith/builders/puma/procfile.rb +3 -3
- data/lib/hanamismith/builders/pwa.rb +2 -2
- data/lib/hanamismith/builders/rack/attack.rb +3 -3
- data/lib/hanamismith/builders/rack/configuration.rb +2 -2
- data/lib/hanamismith/builders/rack/deflater.rb +2 -2
- data/lib/hanamismith/builders/rake/configuration.rb +25 -0
- data/lib/hanamismith/builders/refinement.rb +2 -2
- data/lib/hanamismith/builders/rspec/application_shared_context.rb +3 -3
- data/lib/hanamismith/builders/rspec/database.rb +3 -3
- data/lib/hanamismith/builders/rspec/factory.rb +3 -3
- data/lib/hanamismith/builders/rspec/hanami.rb +3 -3
- data/lib/hanamismith/builders/rspec/helper.rb +4 -4
- data/lib/hanamismith/builders/setup.rb +3 -3
- data/lib/hanamismith/builders/slices/health.rb +12 -12
- data/lib/hanamismith/builders/slices/home.rb +15 -15
- data/lib/hanamismith/builders/stylesheet.rb +2 -2
- data/lib/hanamismith/cli/commands/build.rb +37 -35
- data/lib/hanamismith/container.rb +31 -21
- data/lib/hanamismith/extensions/asset.rb +3 -12
- data/lib/hanamismith/extensions/npm.rb +3 -12
- data/lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb +1 -1
- data/lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb +1 -1
- data/lib/hanamismith/templates/%project_name%/.node-version.erb +1 -1
- data/lib/hanamismith/templates/%project_name%/app/assets/pwa/manifest.webmanifest.erb +2 -2
- data/lib/hanamismith/templates/%project_name%/config/providers/persistence.rb.erb +2 -2
- data/lib/hanamismith/templates/%project_name%/env.development.erb +1 -1
- data/lib/hanamismith/templates/%project_name%/env.test.erb +1 -1
- data/lib/hanamismith/templates/%project_name%/package.json.erb +4 -4
- data/lib/hanamismith/templates/%project_name%/slices/health/action.rb.erb +1 -1
- data/lib/hanamismith/templates/%project_name%/slices/health/templates/layouts/app.html.erb.erb +2 -2
- data/lib/hanamismith/templates/%project_name%/slices/health/view.rb.erb +1 -1
- data/lib/hanamismith/templates/%project_name%/slices/home/action.rb.erb +1 -1
- data/lib/hanamismith/templates/%project_name%/slices/home/repository.rb.erb +1 -1
- data/lib/hanamismith/templates/%project_name%/slices/home/templates/layouts/app.html.erb.erb +2 -2
- data/lib/hanamismith/templates/%project_name%/slices/home/templates/show.html.erb.erb +1 -1
- data/lib/hanamismith/templates/%project_name%/slices/home/view.rb.erb +1 -1
- data/lib/hanamismith/templates/%project_name%/spec/features/home_spec.rb.erb +1 -1
- data/lib/hanamismith/templates/%project_name%/spec/lib/%project_path%/refines/actions/response_spec.rb.erb +1 -1
- data/lib/hanamismith.rb +1 -0
- data.tar.gz.sig +0 -0
- metadata +20 -20
- metadata.gz.sig +0 -0
- data/lib/hanamismith/builders/ci/circle.rb +0 -22
- data/lib/hanamismith/builders/rake.rb +0 -23
@@ -1,6 +1,6 @@
|
|
1
1
|
require "hanami_helper"
|
2
2
|
|
3
|
-
RSpec.describe <%=
|
3
|
+
RSpec.describe <%= settings.project_namespaced_class %>::Refines::Actions::Response do
|
4
4
|
using described_class
|
5
5
|
|
6
6
|
subject(:response) { Hanami::Action::Response.new request:, config: {} }
|
data/lib/hanamismith.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hanamismith
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.39.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-
|
38
|
+
date: 2024-07-11 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: cogger
|
@@ -57,14 +57,14 @@ dependencies:
|
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '0.
|
60
|
+
version: '0.2'
|
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.2'
|
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: '2.1'
|
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: '2.1'
|
110
110
|
- !ruby/object:Gem::Dependency
|
111
111
|
name: htmx
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
@@ -127,70 +127,70 @@ dependencies:
|
|
127
127
|
requirements:
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: '3.
|
130
|
+
version: '3.8'
|
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.8'
|
138
138
|
- !ruby/object:Gem::Dependency
|
139
139
|
name: refinements
|
140
140
|
requirement: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
142
|
- - "~>"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: '12.
|
144
|
+
version: '12.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: '12.
|
151
|
+
version: '12.5'
|
152
152
|
- !ruby/object:Gem::Dependency
|
153
153
|
name: rubysmith
|
154
154
|
requirement: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
156
|
- - "~>"
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version: '
|
158
|
+
version: '7.0'
|
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: '
|
165
|
+
version: '7.0'
|
166
166
|
- !ruby/object:Gem::Dependency
|
167
167
|
name: runcom
|
168
168
|
requirement: !ruby/object:Gem::Requirement
|
169
169
|
requirements:
|
170
170
|
- - "~>"
|
171
171
|
- !ruby/object:Gem::Version
|
172
|
-
version: '11.
|
172
|
+
version: '11.5'
|
173
173
|
type: :runtime
|
174
174
|
prerelease: false
|
175
175
|
version_requirements: !ruby/object:Gem::Requirement
|
176
176
|
requirements:
|
177
177
|
- - "~>"
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: '11.
|
179
|
+
version: '11.5'
|
180
180
|
- !ruby/object:Gem::Dependency
|
181
181
|
name: sod
|
182
182
|
requirement: !ruby/object:Gem::Requirement
|
183
183
|
requirements:
|
184
184
|
- - "~>"
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
version: '0.
|
186
|
+
version: '0.12'
|
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: '0.
|
193
|
+
version: '0.12'
|
194
194
|
- !ruby/object:Gem::Dependency
|
195
195
|
name: spek
|
196
196
|
requirement: !ruby/object:Gem::Requirement
|
@@ -238,8 +238,7 @@ files:
|
|
238
238
|
- lib/hanamismith/builders/binstub.rb
|
239
239
|
- lib/hanamismith/builders/bundler.rb
|
240
240
|
- lib/hanamismith/builders/caliber.rb
|
241
|
-
- lib/hanamismith/builders/
|
242
|
-
- lib/hanamismith/builders/ci/git_hub.rb
|
241
|
+
- lib/hanamismith/builders/circle_ci.rb
|
243
242
|
- lib/hanamismith/builders/console.rb
|
244
243
|
- lib/hanamismith/builders/core.rb
|
245
244
|
- lib/hanamismith/builders/documentation/readme.rb
|
@@ -247,6 +246,7 @@ files:
|
|
247
246
|
- lib/hanamismith/builders/environments/test.rb
|
248
247
|
- lib/hanamismith/builders/git/commit.rb
|
249
248
|
- lib/hanamismith/builders/git/ignore.rb
|
249
|
+
- lib/hanamismith/builders/git_hub/ci.rb
|
250
250
|
- lib/hanamismith/builders/guard.rb
|
251
251
|
- lib/hanamismith/builders/icon.rb
|
252
252
|
- lib/hanamismith/builders/javascript.rb
|
@@ -259,7 +259,7 @@ files:
|
|
259
259
|
- lib/hanamismith/builders/rack/attack.rb
|
260
260
|
- lib/hanamismith/builders/rack/configuration.rb
|
261
261
|
- lib/hanamismith/builders/rack/deflater.rb
|
262
|
-
- lib/hanamismith/builders/rake.rb
|
262
|
+
- lib/hanamismith/builders/rake/configuration.rb
|
263
263
|
- lib/hanamismith/builders/refinement.rb
|
264
264
|
- lib/hanamismith/builders/rspec/application_shared_context.rb
|
265
265
|
- lib/hanamismith/builders/rspec/database.rb
|
@@ -356,7 +356,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
356
356
|
- !ruby/object:Gem::Version
|
357
357
|
version: '0'
|
358
358
|
requirements: []
|
359
|
-
rubygems_version: 3.5.
|
359
|
+
rubygems_version: 3.5.15
|
360
360
|
signing_key:
|
361
361
|
specification_version: 4
|
362
362
|
summary: A command line interface for smithing Hanami projects.
|
metadata.gz.sig
CHANGED
Binary file
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "refinements/struct"
|
4
|
-
|
5
|
-
module Hanamismith
|
6
|
-
module Builders
|
7
|
-
module CI
|
8
|
-
# Builds project skeleton Circle CI configuration.
|
9
|
-
class Circle < Rubysmith::Builders::Abstract
|
10
|
-
using Refinements::Struct
|
11
|
-
|
12
|
-
def call
|
13
|
-
return configuration unless configuration.build_circle_ci
|
14
|
-
|
15
|
-
path = "%project_name%/.circleci/config.yml.erb"
|
16
|
-
builder.call(configuration.merge(template_path: path)).render.replace(/\n\n\Z/, "\n")
|
17
|
-
configuration
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "refinements/struct"
|
4
|
-
|
5
|
-
module Hanamismith
|
6
|
-
module Builders
|
7
|
-
# Builds project skeleton Rake support.
|
8
|
-
class Rake < Rubysmith::Builders::Rake
|
9
|
-
using Refinements::Struct
|
10
|
-
|
11
|
-
def call
|
12
|
-
return configuration unless configuration.build_rake
|
13
|
-
|
14
|
-
super
|
15
|
-
builder.call(configuration.merge(template_path: "%project_name%/Rakefile.erb"))
|
16
|
-
.render
|
17
|
-
.insert_after(%r(bundler/setup), %(require "hanami/rake_tasks"))
|
18
|
-
|
19
|
-
configuration
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|