hanamismith 0.10.0 → 0.12.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 +4 -3
- data/lib/hanamismith/builders/bundler.rb +21 -13
- data/lib/hanamismith/templates/%project_name%/app/view.rb.erb +0 -1
- data/lib/hanamismith/templates/%project_name%/slices/main/templates/layouts/app.html.erb.erb +0 -2
- data.tar.gz.sig +0 -0
- metadata +21 -7
- 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: e1f5cbb4d713cfc1a7150d1005ee9cc8b1e6641f4a1ec96367ea3a45da966e9e
|
4
|
+
data.tar.gz: 3b53d34b677f9485c725121d5de2a4097b2d0b433a297db76456dc24c523acbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad47edf81a8e17cd5402703ba82a0290847e6664b2f7ef7070223e87df812b1fe9b6694a3bd513bf7cfc397bbf240e4f8a7fe76e26b9b491b31386404726ce1f
|
7
|
+
data.tar.gz: fd59aa6a491e24ff2360b47179e9bf15575bb324e257c4b76d4c4ff1af69730b960d28e051978c4bccccadfc1f581edba802fb66c15d6bca217df70052513762
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
:dotenv_link: link:https://github.com/bkeepers/dotenv[Dotenv]
|
9
9
|
:dotfiles_link: link:https://alchemists.io/projects/dotfiles[Dotfiles]
|
10
10
|
:hanami_link: link:https://hanamirb.org[Hanami]
|
11
|
-
:htmx_link: link:https://htmx
|
11
|
+
:htmx_link: link:https://alchemists.io/projects/htmx[HTMX]
|
12
12
|
:pg_link: link:https://github.com/ged/ruby-pg[pg]
|
13
13
|
:puma_link: link:https://puma.io[Puma]
|
14
14
|
:rack_link: link:https://github.com/rack/rack[Rack]
|
@@ -33,7 +33,7 @@ toc::[]
|
|
33
33
|
* Built atop {rubysmith_link} for building project skeleton.
|
34
34
|
* Uses {dry_link} for functional programming.
|
35
35
|
* Uses {hanami_link} for web application development.
|
36
|
-
* Uses {htmx_link} for proper REST
|
36
|
+
* Uses {htmx_link} for proper Hypermedia REST APIs (i.e. HTML over the wire) so you can write less code and avoid bloated JavaScript stacks.
|
37
37
|
* Uses {pg_link} coupled with {rom_link} for database management.
|
38
38
|
* Uses {rack_link}, specifically: `Rack::Deflater`, `Rack::Static`, and link:https://github.com/rack/rack-attack[Rack::Attack].
|
39
39
|
* Uses {puma_link} as the default web server and fully configured for local and production environments.
|
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.12.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://alchemists.io/projects/hanamismith"
|
@@ -28,11 +28,12 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_dependency "dry-container", "~> 0.11"
|
29
29
|
spec.add_dependency "dry-monads", "~> 1.6"
|
30
30
|
spec.add_dependency "hanami", "~> 2.0"
|
31
|
+
spec.add_dependency "htmx", "~> 0.0"
|
31
32
|
spec.add_dependency "infusible", "~> 1.0"
|
32
33
|
spec.add_dependency "refinements", "~> 10.0"
|
33
|
-
spec.add_dependency "rubysmith", "~> 4.
|
34
|
+
spec.add_dependency "rubysmith", "~> 4.9"
|
34
35
|
spec.add_dependency "runcom", "~> 9.0"
|
35
|
-
spec.add_dependency "spek", "~> 1.
|
36
|
+
spec.add_dependency "spek", "~> 1.1"
|
36
37
|
spec.add_dependency "zeitwerk", "~> 2.6"
|
37
38
|
|
38
39
|
spec.bindir = "exe"
|
@@ -28,40 +28,48 @@ module Hanamismith
|
|
28
28
|
# rubocop:todo Metrics/MethodLength
|
29
29
|
def insert_main_dependencies
|
30
30
|
with_template.insert_after("source", %(gem "dry-types", "~> 1.7"))
|
31
|
-
.insert_after("source", %(gem "erbse", "~> 0.1"\n))
|
32
|
-
.insert_after("source", %(gem "hanami", "~> 2.0"\n))
|
33
|
-
.insert_after("source", %(gem "hanami-controller", "~> 2.0"\n))
|
34
31
|
.insert_after(
|
35
32
|
"source",
|
36
|
-
%(gem "hanami
|
33
|
+
%(gem "hanami", github: "hanami/hanami", branch: "main"\n)
|
34
|
+
)
|
35
|
+
.insert_after(
|
36
|
+
"source",
|
37
|
+
%(gem "hanami-controller", github: "hanami/controller", branch: "main"\n)
|
38
|
+
)
|
39
|
+
.insert_after(
|
40
|
+
"source",
|
41
|
+
%(gem "hanami-router", github: "hanami/router", branch: "main"\n)
|
42
|
+
)
|
43
|
+
.insert_after(
|
44
|
+
"source",
|
45
|
+
%(gem "hanami-validations", github: "hanami/validations", branch: "main"\n)
|
37
46
|
)
|
38
|
-
.insert_after("source", %(gem "hanami-router", "~> 2.0"\n))
|
39
|
-
.insert_after("source", %(gem "hanami-validations", "~> 2.0"\n))
|
40
47
|
.insert_after(
|
41
48
|
"source",
|
42
49
|
%(gem "hanami-view", github: "hanami/view", branch: "main"\n)
|
43
50
|
)
|
44
|
-
.insert_after("source", %(gem "
|
51
|
+
.insert_after("source", %(gem "htmx", "~> 0.1"\n))
|
52
|
+
.insert_after("source", %(gem "puma", "~> 6.2"\n))
|
45
53
|
.insert_after("source", %(gem "rack-attack", "~> 6.6"\n))
|
46
54
|
end
|
47
55
|
# rubocop:enable Metrics/MethodLength
|
48
56
|
|
49
57
|
def insert_persistence_dependencies
|
50
|
-
with_template.insert_after("source", %(gem "pg", "~> 1.
|
58
|
+
with_template.insert_after("source", %(gem "pg", "~> 1.5"\n))
|
51
59
|
.insert_after("source", %(gem "rom", "~> 5.3"\n))
|
52
60
|
.insert_after("source", %(gem "rom-sql", "~> 3.6"\n))
|
53
|
-
.insert_after("source", %(\ngem "sequel", "~> 5.
|
61
|
+
.insert_after("source", %(\ngem "sequel", "~> 5.68"\n))
|
54
62
|
end
|
55
63
|
|
56
64
|
def alter_groups
|
57
65
|
with_template.insert_after(/group :code_quality/, %( gem "rubocop-sequel", "~> 0.3"\n))
|
58
66
|
.insert_after(/group :development do/, %( gem "localhost", "~> 1.1"\n))
|
59
67
|
.insert_after(/group :development do/, %( gem "rerun", "~> 0.14"\n))
|
60
|
-
.insert_after(/group :test/, %( gem "capybara", "~> 3.
|
68
|
+
.insert_after(/group :test/, %( gem "capybara", "~> 3.39"\n))
|
61
69
|
.insert_after(/group :test/, %( gem "cuprite", "~> 0.14"\n))
|
62
70
|
.insert_after(/group :test/, %( gem "database_cleaner-sequel", "~> 2.0"\n))
|
63
71
|
.insert_after(/group :test/, %( gem "launchy", "~> 2.5"\n))
|
64
|
-
.insert_after(/group :test/, %( gem "rack-test", "~> 2.
|
72
|
+
.insert_after(/group :test/, %( gem "rack-test", "~> 2.1"\n))
|
65
73
|
.insert_after(/group :test/, %( gem "rom-factory", "~> 0.11"\n))
|
66
74
|
end
|
67
75
|
|
@@ -82,12 +90,12 @@ module Hanamismith
|
|
82
90
|
|
83
91
|
with_template.append <<~CONTENT
|
84
92
|
group :test do
|
85
|
-
gem "capybara", "~> 3.
|
93
|
+
gem "capybara", "~> 3.39"
|
86
94
|
gem "cuprite", "~> 0.14"
|
87
95
|
gem "database_cleaner-sequel", "~> 2.0"
|
88
96
|
gem "hanami-rspec", "~> 2.0"
|
89
97
|
gem "launchy", "~> 2.5"
|
90
|
-
gem "rack-test", "~> 2.
|
98
|
+
gem "rack-test", "~> 2.1"
|
91
99
|
gem "rom-factory", "~> 0.11"
|
92
100
|
end
|
93
101
|
CONTENT
|
data/lib/hanamismith/templates/%project_name%/slices/main/templates/layouts/app.html.erb.erb
CHANGED
@@ -3,9 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<title><%= configuration.project_label %></title>
|
5
5
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
|
7
6
|
<link title="<%= configuration.project_label %> - Stylesheet" rel="stylesheet" href="/stylesheets/site.css" type="text/css">
|
8
|
-
|
9
7
|
<script src="/javascripts/htmx.js"></script>
|
10
8
|
</head>
|
11
9
|
|
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.12.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: 2023-
|
38
|
+
date: 2023-05-30 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: cogger
|
@@ -107,6 +107,20 @@ dependencies:
|
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '2.0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: htmx
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0.0'
|
117
|
+
type: :runtime
|
118
|
+
prerelease: false
|
119
|
+
version_requirements: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0.0'
|
110
124
|
- !ruby/object:Gem::Dependency
|
111
125
|
name: infusible
|
112
126
|
requirement: !ruby/object:Gem::Requirement
|
@@ -141,14 +155,14 @@ dependencies:
|
|
141
155
|
requirements:
|
142
156
|
- - "~>"
|
143
157
|
- !ruby/object:Gem::Version
|
144
|
-
version: '4.
|
158
|
+
version: '4.9'
|
145
159
|
type: :runtime
|
146
160
|
prerelease: false
|
147
161
|
version_requirements: !ruby/object:Gem::Requirement
|
148
162
|
requirements:
|
149
163
|
- - "~>"
|
150
164
|
- !ruby/object:Gem::Version
|
151
|
-
version: '4.
|
165
|
+
version: '4.9'
|
152
166
|
- !ruby/object:Gem::Dependency
|
153
167
|
name: runcom
|
154
168
|
requirement: !ruby/object:Gem::Requirement
|
@@ -169,14 +183,14 @@ dependencies:
|
|
169
183
|
requirements:
|
170
184
|
- - "~>"
|
171
185
|
- !ruby/object:Gem::Version
|
172
|
-
version: '1.
|
186
|
+
version: '1.1'
|
173
187
|
type: :runtime
|
174
188
|
prerelease: false
|
175
189
|
version_requirements: !ruby/object:Gem::Requirement
|
176
190
|
requirements:
|
177
191
|
- - "~>"
|
178
192
|
- !ruby/object:Gem::Version
|
179
|
-
version: '1.
|
193
|
+
version: '1.1'
|
180
194
|
- !ruby/object:Gem::Dependency
|
181
195
|
name: zeitwerk
|
182
196
|
requirement: !ruby/object:Gem::Requirement
|
@@ -306,7 +320,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
306
320
|
- !ruby/object:Gem::Version
|
307
321
|
version: '0'
|
308
322
|
requirements: []
|
309
|
-
rubygems_version: 3.4.
|
323
|
+
rubygems_version: 3.4.13
|
310
324
|
signing_key:
|
311
325
|
specification_version: 4
|
312
326
|
summary: A command line interface for smithing Hanami projects.
|
metadata.gz.sig
CHANGED
Binary file
|