hanamismith 0.7.0 → 0.8.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/hanamismith.gemspec +1 -1
- data/lib/hanamismith/builders/bundler.rb +0 -1
- data/lib/hanamismith/builders/refinement.rb +2 -2
- data/lib/hanamismith/templates/%project_name%/config/providers/persistence.rb.erb +2 -0
- data/lib/hanamismith/templates/%project_name%/lib/%project_path%/{refinements → refines}/actions/response.rb.erb +1 -1
- data/lib/hanamismith/templates/%project_name%/slices/health/actions/show.rb.erb +1 -1
- data/lib/hanamismith/templates/%project_name%/spec/hanami_helper.rb.erb +1 -1
- data/lib/hanamismith/templates/%project_name%/spec/lib/%project_path%/{refinements → refines}/actions/response_spec.rb.erb +1 -1
- data.tar.gz.sig +0 -0
- metadata +29 -22
- 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: 348ce69b55daf9c8b99f2134b5456d5890245be35d586f70764f0d1120be602d
|
|
4
|
+
data.tar.gz: 15d71f42af5d3cbd0f97d29772db9c67ccdcc68e45a6cc91dab823169df2b4d9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d6ba7f9dc03baf8b2aef871cfad1cb8d7e973c0471db295a0a2f173e70f678a380b3ea31aba6f2ea1d1198f27e2b729a76c800b088c5d755e28fd42e8b86c602
|
|
7
|
+
data.tar.gz: 94d7943e319e841977b23cb249b6d83402eca899a9e8e7fd36ec7a4e69654f7350d2418b1b18ec37ff2dfc29e790c9ab6f3a8546e7688c4224dff458694fda77
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/hanamismith.gemspec
CHANGED
|
@@ -63,7 +63,6 @@ module Hanamismith
|
|
|
63
63
|
.insert_after(/group :test/, %( gem "launchy", "~> 2.5"\n))
|
|
64
64
|
.insert_after(/group :test/, %( gem "rack-test", "~> 2.0"\n))
|
|
65
65
|
.insert_after(/group :test/, %( gem "rom-factory", "~> 0.11"\n))
|
|
66
|
-
.replace(/gem "rspec.+/, %(gem "hanami-rspec", "~> 2.0"))
|
|
67
66
|
end
|
|
68
67
|
|
|
69
68
|
def append_development_group
|
|
@@ -17,8 +17,8 @@ module Hanamismith
|
|
|
17
17
|
|
|
18
18
|
def call
|
|
19
19
|
%w[
|
|
20
|
-
%project_name%/lib/%project_path%/
|
|
21
|
-
%project_name%/spec/lib/%project_path%/
|
|
20
|
+
%project_name%/lib/%project_path%/refines/actions/response.rb.erb
|
|
21
|
+
%project_name%/spec/lib/%project_path%/refines/actions/response_spec.rb.erb
|
|
22
22
|
].each do |path|
|
|
23
23
|
builder.call(configuration.merge(template_path: path)).render
|
|
24
24
|
end
|
|
@@ -5,6 +5,7 @@ Hanami.app.register_provider :persistence, namespace: true do
|
|
|
5
5
|
require "rom/core"
|
|
6
6
|
require "rom/sql"
|
|
7
7
|
|
|
8
|
+
Sequel::Database.extension :constant_sql_override, :pg_enum
|
|
8
9
|
Sequel.database_timezone = :utc
|
|
9
10
|
Sequel.application_timezone = :local
|
|
10
11
|
|
|
@@ -17,6 +18,7 @@ Hanami.app.register_provider :persistence, namespace: true do
|
|
|
17
18
|
configuration.plugin :sql, relations: :auto_restrictions
|
|
18
19
|
|
|
19
20
|
database = configuration.gateways[:default].connection
|
|
21
|
+
database.set_constant_sql Sequel::CURRENT_TIMESTAMP, "(CURRENT_TIMESTAMP AT TIME ZONE 'UTC')"
|
|
20
22
|
|
|
21
23
|
register "config", configuration
|
|
22
24
|
register "db", database
|
|
@@ -2,7 +2,7 @@ module Health
|
|
|
2
2
|
module Actions
|
|
3
3
|
# The show action.
|
|
4
4
|
class Show < <%= configuration.project_namespaced_class %>::Action
|
|
5
|
-
using <%= configuration.project_namespaced_class %>::
|
|
5
|
+
using <%= configuration.project_namespaced_class %>::Refines::Actions::Response
|
|
6
6
|
|
|
7
7
|
handle_exception Exception => :down
|
|
8
8
|
|
|
@@ -22,7 +22,7 @@ end
|
|
|
22
22
|
|
|
23
23
|
DatabaseCleaner[:sequel].strategy = :transaction
|
|
24
24
|
|
|
25
|
-
Pathname.require_tree SPEC_ROOT
|
|
25
|
+
Pathname.require_tree SPEC_ROOT.join("support/factories")
|
|
26
26
|
|
|
27
27
|
RSpec.configure do |config|
|
|
28
28
|
config.include Capybara::DSL, Capybara::RSpecMatchers, :web
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
require "hanami_helper"
|
|
2
2
|
|
|
3
|
-
RSpec.describe <%= configuration.project_namespaced_class %>::
|
|
3
|
+
RSpec.describe <%= configuration.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.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.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brooke Kuhlmann
|
|
@@ -10,25 +10,32 @@ bindir: exe
|
|
|
10
10
|
cert_chain:
|
|
11
11
|
- |
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
13
|
+
MIIEeDCCAuCgAwIBAgIBATANBgk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BhbGNoZW1pc3RzLmlvMB8GA1UdEgQY
|
|
28
|
+
MBaBFGJyb29rZUBhbGNoZW1pc3RzLmlvMA0GCSqGSIb3DQEBCwUAA4IBgQAX+EGY
|
|
29
|
+
9RLYGxF1VLZz+G1ACQc4uyrCB6kXwI06kzUa5dF9tPXqTX9ffnz3/W8ck2IQhKzu
|
|
30
|
+
MKO2FVijzbDWTsZeZGglS4E+4Jxpau1lU9HhOIcKolv6LeC6UdALTFudY+GLb8Xw
|
|
31
|
+
REXgaJkjzzhkUSILmEnRwEbY08dVSl7ZAaxVI679vfI2yapLlIwpbBgmQTiTvPr3
|
|
32
|
+
qyyLUno9flYEOv9fmGHunSrM+gE0/0niGTXa5GgXBXYGS2he4LQGgSBfGp/cTwMU
|
|
33
|
+
rDKJRcusZ12lNBeDfgqACz/BBJF8FLodgk6rGMRZz7+ZmjjHEmpG5bQpR6Q2BuWL
|
|
34
|
+
XMtYk/QzaWuhiR7pWjiF8jbdd7RO6or0ohq7iFkokz/5xrtQ/vPzU2RQ3Qc6YaKw
|
|
35
|
+
3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
|
|
36
|
+
gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
|
|
30
37
|
-----END CERTIFICATE-----
|
|
31
|
-
date: 2023-03-
|
|
38
|
+
date: 2023-03-22 00:00:00.000000000 Z
|
|
32
39
|
dependencies:
|
|
33
40
|
- !ruby/object:Gem::Dependency
|
|
34
41
|
name: cogger
|
|
@@ -255,7 +262,7 @@ files:
|
|
|
255
262
|
- lib/hanamismith/templates/%project_name%/config/settings.rb.erb
|
|
256
263
|
- lib/hanamismith/templates/%project_name%/env.development.erb
|
|
257
264
|
- lib/hanamismith/templates/%project_name%/env.test.erb
|
|
258
|
-
- lib/hanamismith/templates/%project_name%/lib/%project_path%/
|
|
265
|
+
- lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
|
|
259
266
|
- lib/hanamismith/templates/%project_name%/lib/%project_path%/types.rb.erb
|
|
260
267
|
- lib/hanamismith/templates/%project_name%/public/javascripts/htmx.js.erb
|
|
261
268
|
- lib/hanamismith/templates/%project_name%/public/stylesheets/site.css.erb
|
|
@@ -268,7 +275,7 @@ files:
|
|
|
268
275
|
- lib/hanamismith/templates/%project_name%/slices/main/view.rb.erb
|
|
269
276
|
- lib/hanamismith/templates/%project_name%/slices/main/views/home/show.rb.erb
|
|
270
277
|
- lib/hanamismith/templates/%project_name%/spec/hanami_helper.rb.erb
|
|
271
|
-
- lib/hanamismith/templates/%project_name%/spec/lib/%project_path%/
|
|
278
|
+
- lib/hanamismith/templates/%project_name%/spec/lib/%project_path%/refines/actions/response_spec.rb.erb
|
|
272
279
|
- lib/hanamismith/templates/%project_name%/spec/slices/health/actions/show_spec.rb.erb
|
|
273
280
|
- lib/hanamismith/templates/%project_name%/spec/support/database.rb.erb
|
|
274
281
|
- lib/hanamismith/templates/%project_name%/spec/support/factory.rb.erb
|
|
@@ -299,7 +306,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
299
306
|
- !ruby/object:Gem::Version
|
|
300
307
|
version: '0'
|
|
301
308
|
requirements: []
|
|
302
|
-
rubygems_version: 3.4.
|
|
309
|
+
rubygems_version: 3.4.9
|
|
303
310
|
signing_key:
|
|
304
311
|
specification_version: 4
|
|
305
312
|
summary: A command line interface for smithing Hanami projects.
|
metadata.gz.sig
CHANGED
|
Binary file
|