hanamismith 0.32.0 → 0.33.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c935fb5a522f7c7ec4ffd460f627ca96d8f31f7677cb18535f802df3b790eb7a
4
- data.tar.gz: 65fdcb3d62a6290078b372004299b5be35847e98aaf65f359ef85deba3750953
3
+ metadata.gz: d98143db2b3786f889d41a6e66542f45c641f221870d662ec8572da74f94b62f
4
+ data.tar.gz: a64f72bfb80b213e667e4ec4496e4d1c53528cbfecbbc7b023bcee6f43c18f56
5
5
  SHA512:
6
- metadata.gz: e750e7579b2a479cdd59955dce969e7cad67c38fcf21a56125f37942a2bf5bdfacc5cb4d0108d7f3ba2894e590109cbb55efb13d0d03c46356915f84081c13b0
7
- data.tar.gz: 82a89bd80ee9c3400bf8f1b5c395c4fb2f271f7357d65b1de24f11950deaab8d22bdbcc050f570af2944e9f7ac732f640c31e15fe4d71e78fb9cdd062f9b80c9
6
+ metadata.gz: 0fba1ccc10b7b9e0c2e577a985b007284880f43bc369ea4eb58f50988be234f35667c9a9c4056e549258ad5c41aab2b8d851f3ae7028628f842f592b3471a0e8
7
+ data.tar.gz: 5ad77c36fac848aec208bfef2be7863329659a7169c21e24a0dd46926b3e3591df4cdb3bf10b46dd6ad176d533ffda7c6840cab257b16128e385ca55251bcdc2
checksums.yaml.gz.sig CHANGED
Binary file
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.32.0"
5
+ spec.version = "0.33.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://alchemists.io/projects/hanamismith"
@@ -27,13 +27,15 @@ module Hanamismith
27
27
 
28
28
  # rubocop:todo Metrics/MethodLength
29
29
  def insert_main_dependencies
30
- with_template.insert_after("source", %(gem "dry-types", "~> 1.7"))
30
+ with_template.insert_after("source", %(gem "dry-monads", "~> 1.6"))
31
+ .insert_after("source", %(gem "dry-schema", "~> 1.13"\n))
32
+ .insert_after("source", %(gem "dry-types", "~> 1.7"\n))
33
+ .insert_after("source", %(gem "dry-validation", "~> 1.10"\n))
31
34
  .insert_after("source", %(gem "hanami", "~> 2.1"\n))
32
35
  .insert_after("source", %(gem "hanami-assets", "~> 2.1"\n))
33
36
  .insert_after("source", %(gem "hanami-cli", "~> 2.1"\n))
34
37
  .insert_after("source", %(gem "hanami-controller", "~> 2.1"\n))
35
38
  .insert_after("source", %(gem "hanami-router", "~> 2.1"\n))
36
- .insert_after("source", %(gem "hanami-utils", "~> 2.1"\n))
37
39
  .insert_after("source", %(gem "hanami-validations", "~> 2.1"\n))
38
40
  .insert_after("source", %(gem "hanami-view", "~> 2.1"\n))
39
41
  .insert_after("source", %(gem "htmx", "~> 1.0"\n))
@@ -60,6 +60,13 @@ module Hanamismith
60
60
  builder.call(configuration.merge(template_path: "%project_name%/db/migrate")).make_path
61
61
  end
62
62
 
63
+ def add_public_http_errors
64
+ %w[404 500].each do |code|
65
+ path = "%project_name%/public/#{code}.html.erb"
66
+ builder.call(configuration.merge(template_path: path)).render
67
+ end
68
+ end
69
+
63
70
  def add_temp_directory
64
71
  builder.call(configuration.merge(template_path: "%project_name%/tmp")).make_path
65
72
  end
@@ -15,7 +15,8 @@ module Hanamismith
15
15
  super
16
16
  builder.call(configuration.merge(template_path: "%project_name%/.gitignore.erb"))
17
17
  .insert_before("tmp\n", "node_modules\n")
18
- .insert_before("tmp\n", "public\n")
18
+ .insert_before("tmp\n", "public/assets\n")
19
+ .insert_before("tmp\n", "public/assets.json\n")
19
20
 
20
21
  configuration
21
22
  end
@@ -16,8 +16,8 @@ module Hanamismith
16
16
  end
17
17
 
18
18
  def call
19
- path = "%project_name%/package.json.erb"
20
- builder.call(configuration.merge(template_path: path)).render
19
+ builder.call(configuration.merge(template_path: "%project_name%/package.json.erb")).render
20
+ builder.call(configuration.merge(template_path: "%project_name%/.node-version.erb")).render
21
21
  configuration
22
22
  end
23
23
 
@@ -8,6 +8,6 @@
8
8
  "type": "module",
9
9
  "keywords": ["ruby", "hanami"],
10
10
  "dependencies": {
11
- "hanami-assets": "^2.1.0"
11
+ "hanami-assets": "^2.1.1"
12
12
  }
13
13
  }
@@ -0,0 +1,57 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html lang="en">
4
+ <head>
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+
8
+ <title>404: Not Found</title>
9
+
10
+ <style>
11
+ * {
12
+ box-sizing: border-box;
13
+ margin: 0;
14
+ padding: 0;
15
+ }
16
+
17
+ body,
18
+ html {
19
+ font-size: 100%;
20
+ max-width: 100vw;
21
+ overflow-x: hidden;
22
+ }
23
+
24
+ body {
25
+ color: whitesmoke;
26
+ background: darkred;
27
+ font-family: Roboto,Arial,sans-serif,Emoji;
28
+ font-style: normal;
29
+ }
30
+
31
+ main {
32
+ align-items: center;
33
+ display: flex;
34
+ flex-direction: column;
35
+ height: 100vh;
36
+ justify-content: center;
37
+ padding: 0 4vw;
38
+ }
39
+
40
+ .message {
41
+ display: flex;
42
+ flex-direction: column;
43
+ gap: 1rem;
44
+ text-align: center;
45
+ }
46
+ </style>
47
+ </head>
48
+
49
+ <body>
50
+ <main>
51
+ <div class="message">
52
+ <h1>404</h1>
53
+ <p>The page you are looking for doesn’t exist.</p>
54
+ </div>
55
+ </main>
56
+ </body>
57
+ </html>
@@ -0,0 +1,57 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html lang="en">
4
+ <head>
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+
8
+ <title>500: Internal Server Error</title>
9
+
10
+ <style>
11
+ * {
12
+ box-sizing: border-box;
13
+ margin: 0;
14
+ padding: 0;
15
+ }
16
+
17
+ body,
18
+ html {
19
+ font-size: 100%;
20
+ max-width: 100vw;
21
+ overflow-x: hidden;
22
+ }
23
+
24
+ body {
25
+ color: whitesmoke;
26
+ background: darkred;
27
+ font-family: Roboto,Arial,sans-serif,Emoji;
28
+ font-style: normal;
29
+ }
30
+
31
+ main {
32
+ align-items: center;
33
+ display: flex;
34
+ flex-direction: column;
35
+ height: 100vh;
36
+ justify-content: center;
37
+ padding: 0 4vw;
38
+ }
39
+
40
+ .message {
41
+ display: flex;
42
+ flex-direction: column;
43
+ gap: 1rem;
44
+ text-align: center;
45
+ }
46
+ </style>
47
+ </head>
48
+
49
+ <body>
50
+ <main>
51
+ <div class="message">
52
+ <h1>500</h1>
53
+ <p>We’re sorry, but something went wrong.</p>
54
+ </div>
55
+ </main>
56
+ </body>
57
+ </html>
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.32.0
4
+ version: 0.33.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-04-04 00:00:00.000000000 Z
38
+ date: 2024-04-08 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: cogger
@@ -278,6 +278,7 @@ files:
278
278
  - lib/hanamismith/import.rb
279
279
  - lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb
280
280
  - lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
281
+ - lib/hanamismith/templates/%project_name%/.node-version.erb
281
282
  - lib/hanamismith/templates/%project_name%/Guardfile.erb
282
283
  - lib/hanamismith/templates/%project_name%/Procfile.dev.erb
283
284
  - lib/hanamismith/templates/%project_name%/Procfile.erb
@@ -303,6 +304,8 @@ files:
303
304
  - lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
304
305
  - lib/hanamismith/templates/%project_name%/lib/%project_path%/types.rb.erb
305
306
  - lib/hanamismith/templates/%project_name%/package.json.erb
307
+ - lib/hanamismith/templates/%project_name%/public/404.html.erb
308
+ - lib/hanamismith/templates/%project_name%/public/500.html.erb
306
309
  - lib/hanamismith/templates/%project_name%/slices/health/action.rb.erb
307
310
  - lib/hanamismith/templates/%project_name%/slices/health/actions/show.rb.erb
308
311
  - lib/hanamismith/templates/%project_name%/slices/health/templates/layouts/app.html.erb.erb
metadata.gz.sig CHANGED
Binary file