hanamismith 0.7.0 → 0.9.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/README.adoc +10 -1
- data/hanamismith.gemspec +2 -2
- 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 +31 -24
- metadata.gz.sig +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7a8dadfc9a91b217981aff9cb25ef1a114d61268701e92db092f8a180e977e00
|
|
4
|
+
data.tar.gz: 9a8367d43a3e86260e5080bcfb2759bb1ecbc4623182e9e7b85270372c6e6399
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a15dd454ca51ad23bc1e448873dd784789ddd7795ddd826378e58794f3e082c271c9af593e87c4f0b677c9c991c61e2ce64b2ad16923b169a7acc3c4719839a4
|
|
7
|
+
data.tar.gz: 0d896d588e7ef49bce9dd3a7861e93a1d4bf736e9ed4548217f3fa1915c202f3d5dd475e504020b73ab5eab0ded6cafbd0e1e9306d7776935dc36d9f5d1a33c1
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/README.adoc
CHANGED
|
@@ -49,7 +49,16 @@ toc::[]
|
|
|
49
49
|
|
|
50
50
|
== Setup
|
|
51
51
|
|
|
52
|
-
To install, run:
|
|
52
|
+
To install _with_ security, run:
|
|
53
|
+
|
|
54
|
+
[source,bash]
|
|
55
|
+
----
|
|
56
|
+
# 💡 Skip this line if you already have the public certificate installed.
|
|
57
|
+
gem cert --add <(curl --compressed --location https://alchemists.io/gems.pem)
|
|
58
|
+
gem install hanamismith --trust-policy HighSecurity
|
|
59
|
+
----
|
|
60
|
+
|
|
61
|
+
To install _without_ security, run:
|
|
53
62
|
|
|
54
63
|
[source,bash]
|
|
55
64
|
----
|
data/hanamismith.gemspec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |spec|
|
|
4
4
|
spec.name = "hanamismith"
|
|
5
|
-
spec.version = "0.
|
|
5
|
+
spec.version = "0.9.0"
|
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
|
8
8
|
spec.homepage = "https://alchemists.io/projects/hanamismith"
|
|
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
|
30
30
|
spec.add_dependency "hanami", "~> 2.0"
|
|
31
31
|
spec.add_dependency "infusible", "~> 1.0"
|
|
32
32
|
spec.add_dependency "refinements", "~> 10.0"
|
|
33
|
-
spec.add_dependency "rubysmith", "~> 4.
|
|
33
|
+
spec.add_dependency "rubysmith", "~> 4.7"
|
|
34
34
|
spec.add_dependency "runcom", "~> 9.0"
|
|
35
35
|
spec.add_dependency "spek", "~> 1.0"
|
|
36
36
|
spec.add_dependency "zeitwerk", "~> 2.6"
|
|
@@ -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.9.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
|
+
MIIEeDCCAuCgAwIBAgIBATANBgkqhkiG9w0BAQsFADBBMQ8wDQYDVQQDDAZicm9v
|
|
14
|
+
a2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQBGRYC
|
|
15
|
+
aW8wHhcNMjMwMzIyMTYxNDQxWhcNMjU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dF9tPXqTX9ffnz3/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-
|
|
38
|
+
date: 2023-04-10 00:00:00.000000000 Z
|
|
32
39
|
dependencies:
|
|
33
40
|
- !ruby/object:Gem::Dependency
|
|
34
41
|
name: cogger
|
|
@@ -134,14 +141,14 @@ dependencies:
|
|
|
134
141
|
requirements:
|
|
135
142
|
- - "~>"
|
|
136
143
|
- !ruby/object:Gem::Version
|
|
137
|
-
version: '4.
|
|
144
|
+
version: '4.7'
|
|
138
145
|
type: :runtime
|
|
139
146
|
prerelease: false
|
|
140
147
|
version_requirements: !ruby/object:Gem::Requirement
|
|
141
148
|
requirements:
|
|
142
149
|
- - "~>"
|
|
143
150
|
- !ruby/object:Gem::Version
|
|
144
|
-
version: '4.
|
|
151
|
+
version: '4.7'
|
|
145
152
|
- !ruby/object:Gem::Dependency
|
|
146
153
|
name: runcom
|
|
147
154
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -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.10
|
|
303
310
|
signing_key:
|
|
304
311
|
specification_version: 4
|
|
305
312
|
summary: A command line interface for smithing Hanami projects.
|
metadata.gz.sig
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Q����w"Θz^�+���du 3W ����vP����>�fF3nnE�j�_E�� \��j�w�Z���:��t.��<1��=�7�"��M$AU�H3�t���
|
|
2
|
+
$�b�-$.C�7��j1��嬷����=�t�N�d��\)�R���Zm�M���z@�_�O$���ȣ� ���Ə� �'wn+4^�Yq�bl,�}�s�2<�J'u��2Qo�/���o��Σ?:�M�V_7�}o$��ڿ�b�|�v���J�R�F� �"U)�Ó�MgBx����FX~�v6
|
|
3
|
+
/WoB8�n��P(
|