hanamismith 1.9.0 → 1.10.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 +3 -3
- data/lib/hanamismith/builders/asset.rb +1 -1
- data/lib/hanamismith/builders/binstub.rb +1 -1
- data/lib/hanamismith/builders/bundler.rb +1 -1
- data/lib/hanamismith/builders/caliber.rb +1 -1
- data/lib/hanamismith/builders/circle_ci.rb +1 -1
- data/lib/hanamismith/builders/console.rb +2 -2
- data/lib/hanamismith/builders/core.rb +13 -14
- data/lib/hanamismith/builders/docker/compose.rb +1 -1
- data/lib/hanamismith/builders/docker/file.rb +1 -1
- data/lib/hanamismith/builders/documentation/readme.rb +1 -1
- data/lib/hanamismith/builders/environments/all.rb +1 -1
- data/lib/hanamismith/builders/environments/development.rb +1 -1
- data/lib/hanamismith/builders/environments/test.rb +1 -1
- data/lib/hanamismith/builders/git/ignore.rb +1 -1
- data/lib/hanamismith/builders/git_hub/ci.rb +1 -1
- data/lib/hanamismith/builders/icon.rb +1 -1
- data/lib/hanamismith/builders/javascript.rb +1 -1
- data/lib/hanamismith/builders/layout.rb +1 -1
- data/lib/hanamismith/builders/node.rb +1 -1
- data/lib/hanamismith/builders/puma/configuration.rb +1 -1
- data/lib/hanamismith/builders/puma/procfile.rb +2 -2
- data/lib/hanamismith/builders/pwa.rb +1 -1
- data/lib/hanamismith/builders/rack/attack.rb +2 -2
- data/lib/hanamismith/builders/rack/configuration.rb +1 -1
- data/lib/hanamismith/builders/rack/deflater.rb +1 -1
- data/lib/hanamismith/builders/rake/configuration.rb +1 -1
- data/lib/hanamismith/builders/refinement.rb +1 -1
- data/lib/hanamismith/builders/rspec/application_shared_context.rb +1 -1
- data/lib/hanamismith/builders/rspec/hanami.rb +1 -1
- data/lib/hanamismith/builders/rspec/helper.rb +1 -1
- data/lib/hanamismith/builders/setup.rb +1 -1
- data/lib/hanamismith/builders/slices/health.rb +8 -8
- data/lib/hanamismith/builders/slices/home.rb +9 -9
- data/lib/hanamismith/builders/stylesheet.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +5 -5
- 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: efd67bd6ab9044a59a6c76915a9396ec247ac09c6f9812efc6f3c66b45a8e77a
|
4
|
+
data.tar.gz: 0c89a3ad8ff3dfaba812f6936f28c56c975e3a9f62c74834193fbfc788677bba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3006f6f43b69260f29f203171d266a305d5cfc114d5eb48fb940b1379f86f59df65adad2c6fb299b81f7a75b049106485c76c86801a3ed3f66030c314230bad3
|
7
|
+
data.tar.gz: 55e7b3111ecae05acaac5348255d07394d42353acf0e02b07a1abaa66be25fd1ab0cb01600ccf88f1225ade6339650435cc71fd701b2f0114aba651285282d39
|
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 = "1.
|
5
|
+
spec.version = "1.10.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://alchemists.io/projects/hanamismith"
|
@@ -30,8 +30,8 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_dependency "etcher", "~> 3.0"
|
31
31
|
spec.add_dependency "htmx", "~> 2.0"
|
32
32
|
spec.add_dependency "infusible", "~> 4.0"
|
33
|
-
spec.add_dependency "refinements", "~> 13.
|
34
|
-
spec.add_dependency "rubysmith", "~> 8.
|
33
|
+
spec.add_dependency "refinements", "~> 13.5"
|
34
|
+
spec.add_dependency "rubysmith", "~> 8.7"
|
35
35
|
spec.add_dependency "runcom", "~> 12.0"
|
36
36
|
spec.add_dependency "sod", "~> 1.0"
|
37
37
|
spec.add_dependency "spek", "~> 4.0"
|
@@ -104,7 +104,7 @@ module Hanamismith
|
|
104
104
|
def remove_zeitwerk = with_template.replace(/.+zeitwerk.+\n\n/, "\n")
|
105
105
|
|
106
106
|
def with_template
|
107
|
-
builder.call settings.
|
107
|
+
builder.call settings.with(template_path: "%project_name%/Gemfile.erb")
|
108
108
|
end
|
109
109
|
end
|
110
110
|
end
|
@@ -12,7 +12,7 @@ module Hanamismith
|
|
12
12
|
return false unless settings.build_circle_ci
|
13
13
|
|
14
14
|
path = "%project_name%/.circleci/config.yml.erb"
|
15
|
-
builder.call(settings.
|
15
|
+
builder.call(settings.with(template_path: path)).render.replace(/\n\n\Z/, "\n")
|
16
16
|
true
|
17
17
|
end
|
18
18
|
end
|
@@ -12,7 +12,7 @@ module Hanamismith
|
|
12
12
|
return false unless settings.build_console
|
13
13
|
|
14
14
|
super
|
15
|
-
builder.call(settings.
|
15
|
+
builder.call(settings.with(template_path: "%project_name%/bin/console.erb"))
|
16
16
|
.replace(/require Bundler.root.+/, %(require "hanami/prepare"))
|
17
17
|
|
18
18
|
add_irb_autocomplete
|
@@ -33,7 +33,7 @@ module Hanamismith
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def with_template
|
36
|
-
builder.call settings.
|
36
|
+
builder.call settings.with(template_path: "%project_name%/bin/console.erb")
|
37
37
|
end
|
38
38
|
end
|
39
39
|
end
|
@@ -16,63 +16,62 @@ module Hanamismith
|
|
16
16
|
private
|
17
17
|
|
18
18
|
def add_db_relation
|
19
|
-
builder.call(settings.
|
19
|
+
builder.call(settings.with(template_path: "%project_name%/app/db/relation.rb.erb")).render
|
20
20
|
end
|
21
21
|
|
22
22
|
def add_db_repository
|
23
|
-
builder.call(settings.
|
24
|
-
.render
|
23
|
+
builder.call(settings.with(template_path: "%project_name%/app/db/repository.rb.erb")).render
|
25
24
|
end
|
26
25
|
|
27
26
|
def add_db_struct
|
28
|
-
builder.call(settings.
|
27
|
+
builder.call(settings.with(template_path: "%project_name%/app/db/struct.rb.erb")).render
|
29
28
|
end
|
30
29
|
|
31
30
|
def add_action
|
32
|
-
builder.call(settings.
|
31
|
+
builder.call(settings.with(template_path: "%project_name%/app/action.rb.erb")).render
|
33
32
|
end
|
34
33
|
|
35
34
|
def add_view
|
36
|
-
builder.call(settings.
|
35
|
+
builder.call(settings.with(template_path: "%project_name%/app/view.rb.erb")).render
|
37
36
|
end
|
38
37
|
|
39
38
|
def add_application_configuration
|
40
|
-
builder.call(settings.
|
39
|
+
builder.call(settings.with(template_path: "%project_name%/config/app.rb.erb")).render
|
41
40
|
end
|
42
41
|
|
43
42
|
def add_routes_configuration
|
44
|
-
builder.call(settings.
|
43
|
+
builder.call(settings.with(template_path: "%project_name%/config/routes.rb.erb")).render
|
45
44
|
end
|
46
45
|
|
47
46
|
def add_settings_configuration
|
48
|
-
builder.call(settings.
|
47
|
+
builder.call(settings.with(template_path: "%project_name%/config/settings.rb.erb")).render
|
49
48
|
end
|
50
49
|
|
51
50
|
def add_types
|
52
51
|
path = "%project_name%/lib/%project_path%/types.rb.erb"
|
53
|
-
builder.call(settings.
|
52
|
+
builder.call(settings.with(template_path: path)).render
|
54
53
|
end
|
55
54
|
|
56
55
|
def add_migrate_directory
|
57
|
-
builder.call(settings.
|
56
|
+
builder.call(settings.with(template_path: "%project_name%/db/migrate")).make_path
|
58
57
|
end
|
59
58
|
|
60
59
|
def add_well_known_security_text
|
61
60
|
return unless settings.build_security
|
62
61
|
|
63
62
|
path = "%project_name%/public/.well-known/security.txt.erb"
|
64
|
-
builder.call(settings.
|
63
|
+
builder.call(settings.with(template_path: path)).render
|
65
64
|
end
|
66
65
|
|
67
66
|
def add_public_http_errors
|
68
67
|
%w[404 500].each do |code|
|
69
68
|
path = "%project_name%/public/#{code}.html.erb"
|
70
|
-
builder.call(settings.
|
69
|
+
builder.call(settings.with(template_path: path)).render
|
71
70
|
end
|
72
71
|
end
|
73
72
|
|
74
73
|
def add_temp_directory
|
75
|
-
builder.call(settings.
|
74
|
+
builder.call(settings.with(template_path: "%project_name%/tmp")).make_path
|
76
75
|
end
|
77
76
|
end
|
78
77
|
end
|
@@ -12,7 +12,7 @@ module Hanamismith
|
|
12
12
|
def call
|
13
13
|
return false unless settings.build_docker
|
14
14
|
|
15
|
-
builder.call(settings.
|
15
|
+
builder.call(settings.with(template_path: "%project_name%/compose.yml.erb")).render
|
16
16
|
true
|
17
17
|
end
|
18
18
|
end
|
@@ -12,7 +12,7 @@ module Hanamismith
|
|
12
12
|
def call
|
13
13
|
return false unless settings.build_docker
|
14
14
|
|
15
|
-
builder.call(settings.
|
15
|
+
builder.call(settings.with(template_path: "%project_name%/Dockerfile.erb")).render
|
16
16
|
true
|
17
17
|
end
|
18
18
|
end
|
@@ -13,7 +13,7 @@ module Hanamismith
|
|
13
13
|
return false unless settings.build_readme
|
14
14
|
|
15
15
|
super
|
16
|
-
builder.call(settings.
|
16
|
+
builder.call(settings.with(template_path: "%project_name%/README.#{kind}.erb"))
|
17
17
|
.replace("Rubysmith", "Hanamismith")
|
18
18
|
.replace("rubysmith", "hanamismith")
|
19
19
|
|
@@ -16,7 +16,7 @@ module Hanamismith
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def call
|
19
|
-
builder.call(settings.
|
19
|
+
builder.call(settings.with(template_path: "%project_name%/env.erb"))
|
20
20
|
.render
|
21
21
|
.replace("<password>", generator.hex(15))
|
22
22
|
.rename(".env")
|
@@ -10,7 +10,7 @@ module Hanamismith
|
|
10
10
|
using Refinements::Struct
|
11
11
|
|
12
12
|
def call
|
13
|
-
builder.call(settings.
|
13
|
+
builder.call(settings.with(template_path: "%project_name%/env.development.erb"))
|
14
14
|
.render
|
15
15
|
.rename(".env.development")
|
16
16
|
|
@@ -13,7 +13,7 @@ module Hanamismith
|
|
13
13
|
return false unless settings.build_git
|
14
14
|
|
15
15
|
super
|
16
|
-
builder.call(settings.
|
16
|
+
builder.call(settings.with(template_path: "%project_name%/.gitignore.erb"))
|
17
17
|
.insert_before "tmp\n", <<~CONTENT
|
18
18
|
node_modules
|
19
19
|
public/assets
|
@@ -13,7 +13,7 @@ module Hanamismith
|
|
13
13
|
return false unless settings.build_git_hub_ci
|
14
14
|
|
15
15
|
path = "%project_name%/.github/workflows/ci.yml.erb"
|
16
|
-
builder.call(settings.
|
16
|
+
builder.call(settings.with(template_path: path)).render.replace(/\n\n\Z/, "\n")
|
17
17
|
true
|
18
18
|
end
|
19
19
|
end
|
@@ -10,7 +10,7 @@ module Hanamismith
|
|
10
10
|
|
11
11
|
def call
|
12
12
|
path = "%project_name%/app/templates/layouts/app.html.erb.erb"
|
13
|
-
builder.call(settings.
|
13
|
+
builder.call(settings.with(template_path: path))
|
14
14
|
.render
|
15
15
|
.replace("<!-- title -->", "<%= content_for :title %>")
|
16
16
|
.replace("<!-- icon -->", icon)
|
@@ -10,7 +10,7 @@ module Hanamismith
|
|
10
10
|
using Refinements::Struct
|
11
11
|
|
12
12
|
def call
|
13
|
-
builder.call(settings.
|
13
|
+
builder.call(settings.with(template_path: "%project_name%/config/puma.rb.erb")).render
|
14
14
|
|
15
15
|
true
|
16
16
|
end
|
@@ -10,8 +10,8 @@ module Hanamismith
|
|
10
10
|
using Refinements::Struct
|
11
11
|
|
12
12
|
def call
|
13
|
-
builder.call(settings.
|
14
|
-
builder.call(settings.
|
13
|
+
builder.call(settings.with(template_path: "%project_name%/Procfile.erb")).render
|
14
|
+
builder.call(settings.with(template_path: "%project_name%/Procfile.dev.erb")).render
|
15
15
|
true
|
16
16
|
end
|
17
17
|
end
|
@@ -19,11 +19,11 @@ module Hanamismith
|
|
19
19
|
|
20
20
|
def add_configuration
|
21
21
|
template_path = "%project_name%/config/initializers/rack_attack.rb.erb"
|
22
|
-
builder.call(settings.
|
22
|
+
builder.call(settings.with(template_path:)).render
|
23
23
|
end
|
24
24
|
|
25
25
|
def add_middleware
|
26
|
-
builder.call(settings.
|
26
|
+
builder.call(settings.with(template_path: "%project_name%/config/app.rb.erb"))
|
27
27
|
.insert_after(/require/, %(\nrequire_relative "initializers/rack_attack"\n))
|
28
28
|
.insert_before(/environment/, " config.middleware.use Rack::Attack\n\n")
|
29
29
|
end
|
@@ -10,7 +10,7 @@ module Hanamismith
|
|
10
10
|
using Refinements::Struct
|
11
11
|
|
12
12
|
def call
|
13
|
-
builder.call(settings.
|
13
|
+
builder.call(settings.with(template_path: "%project_name%/config/app.rb.erb"))
|
14
14
|
.insert_after(/Rack::Attack/, " config.middleware.use Rack::Deflater\n")
|
15
15
|
|
16
16
|
true
|
@@ -13,7 +13,7 @@ module Hanamismith
|
|
13
13
|
return false unless settings.build_rake
|
14
14
|
|
15
15
|
super
|
16
|
-
builder.call(settings.
|
16
|
+
builder.call(settings.with(template_path: "%project_name%/Rakefile.erb"))
|
17
17
|
.render
|
18
18
|
.insert_after(%r(bundler/setup), %(require "hanami/rake_tasks"))
|
19
19
|
|
@@ -13,7 +13,7 @@ module Hanamismith
|
|
13
13
|
%project_name%/lib/%project_path%/refines/actions/response.rb.erb
|
14
14
|
%project_name%/spec/lib/%project_path%/refines/actions/response_spec.rb.erb
|
15
15
|
].each do |path|
|
16
|
-
builder.call(settings.
|
16
|
+
builder.call(settings.with(template_path: path)).render
|
17
17
|
end
|
18
18
|
|
19
19
|
true
|
@@ -13,7 +13,7 @@ module Hanamismith
|
|
13
13
|
return false unless settings.build_rspec
|
14
14
|
|
15
15
|
path = "%project_name%/spec/support/shared_contexts/application.rb.erb"
|
16
|
-
builder.call(settings.
|
16
|
+
builder.call(settings.with(template_path: path)).render
|
17
17
|
|
18
18
|
true
|
19
19
|
end
|
@@ -19,7 +19,7 @@ module Hanamismith
|
|
19
19
|
private
|
20
20
|
|
21
21
|
def append
|
22
|
-
builder.call(settings.
|
22
|
+
builder.call(settings.with(template_path: "%project_name%/bin/setup.erb"))
|
23
23
|
.insert_after(%(Runner.call "bundle install"\n), <<~CONTENT.gsub(/^(?=\w)/, " "))
|
24
24
|
|
25
25
|
puts "Installing packages..."
|
@@ -18,23 +18,23 @@ module Hanamismith
|
|
18
18
|
|
19
19
|
def add_configuration
|
20
20
|
path = "%project_name%/config/slices/health.rb.erb"
|
21
|
-
builder.call(settings.
|
21
|
+
builder.call(settings.with(template_path: path)).render
|
22
22
|
end
|
23
23
|
|
24
24
|
def add_action
|
25
25
|
path = "%project_name%/slices/health/action.rb.erb"
|
26
|
-
builder.call(settings.
|
26
|
+
builder.call(settings.with(template_path: path)).render
|
27
27
|
end
|
28
28
|
|
29
29
|
def add_view
|
30
30
|
path = "%project_name%/slices/health/view.rb.erb"
|
31
|
-
builder.call(settings.
|
31
|
+
builder.call(settings.with(template_path: path)).render
|
32
32
|
end
|
33
33
|
|
34
34
|
def add_show_template
|
35
35
|
path = "%project_name%/slices/health/templates/show.html.erb.erb"
|
36
36
|
|
37
|
-
builder.call(settings.
|
37
|
+
builder.call(settings.with(template_path: path))
|
38
38
|
.render
|
39
39
|
.replace(
|
40
40
|
"<!-- title -->",
|
@@ -45,22 +45,22 @@ module Hanamismith
|
|
45
45
|
|
46
46
|
def add_context
|
47
47
|
path = "%project_name%/slices/health/views/context.rb.erb"
|
48
|
-
builder.call(settings.
|
48
|
+
builder.call(settings.with(template_path: path)).render
|
49
49
|
end
|
50
50
|
|
51
51
|
def add_show_view
|
52
52
|
path = "%project_name%/slices/health/views/show.rb.erb"
|
53
|
-
builder.call(settings.
|
53
|
+
builder.call(settings.with(template_path: path)).render
|
54
54
|
end
|
55
55
|
|
56
56
|
def add_show_action
|
57
57
|
path = "%project_name%/slices/health/actions/show.rb.erb"
|
58
|
-
builder.call(settings.
|
58
|
+
builder.call(settings.with(template_path: path)).render
|
59
59
|
end
|
60
60
|
|
61
61
|
def add_show_action_spec
|
62
62
|
path = "%project_name%/spec/slices/health/actions/show_spec.rb.erb"
|
63
|
-
builder.call(settings.
|
63
|
+
builder.call(settings.with(template_path: path)).render
|
64
64
|
end
|
65
65
|
end
|
66
66
|
end
|
@@ -18,33 +18,33 @@ module Hanamismith
|
|
18
18
|
|
19
19
|
def add_configuration
|
20
20
|
path = "%project_name%/config/slices/home.rb.erb"
|
21
|
-
builder.call(settings.
|
21
|
+
builder.call(settings.with(template_path: path)).render
|
22
22
|
end
|
23
23
|
|
24
24
|
def add_action
|
25
25
|
path = "%project_name%/slices/home/action.rb.erb"
|
26
|
-
builder.call(settings.
|
26
|
+
builder.call(settings.with(template_path: path)).render
|
27
27
|
end
|
28
28
|
|
29
29
|
def add_repository
|
30
30
|
path = "%project_name%/slices/home/repository.rb.erb"
|
31
|
-
builder.call(settings.
|
31
|
+
builder.call(settings.with(template_path: path)).render
|
32
32
|
end
|
33
33
|
|
34
34
|
def add_view
|
35
35
|
path = "%project_name%/slices/home/view.rb.erb"
|
36
|
-
builder.call(settings.
|
36
|
+
builder.call(settings.with(template_path: path)).render
|
37
37
|
end
|
38
38
|
|
39
39
|
def add_context
|
40
40
|
path = "%project_name%/slices/home/views/context.rb.erb"
|
41
|
-
builder.call(settings.
|
41
|
+
builder.call(settings.with(template_path: path)).render
|
42
42
|
end
|
43
43
|
|
44
44
|
def add_show_template
|
45
45
|
path = "%project_name%/slices/home/templates/show.html.erb.erb"
|
46
46
|
|
47
|
-
builder.call(settings.
|
47
|
+
builder.call(settings.with(template_path: path))
|
48
48
|
.render
|
49
49
|
.replace(
|
50
50
|
"<!-- title -->",
|
@@ -56,17 +56,17 @@ module Hanamismith
|
|
56
56
|
|
57
57
|
def add_show_view
|
58
58
|
path = "%project_name%/slices/home/views/show.rb.erb"
|
59
|
-
builder.call(settings.
|
59
|
+
builder.call(settings.with(template_path: path)).render
|
60
60
|
end
|
61
61
|
|
62
62
|
def add_show_action
|
63
63
|
path = "%project_name%/slices/home/actions/show.rb.erb"
|
64
|
-
builder.call(settings.
|
64
|
+
builder.call(settings.with(template_path: path)).render
|
65
65
|
end
|
66
66
|
|
67
67
|
def add_request_spec
|
68
68
|
path = "%project_name%/spec/features/home_spec.rb.erb"
|
69
|
-
builder.call(settings.
|
69
|
+
builder.call(settings.with(template_path: path)).render
|
70
70
|
end
|
71
71
|
end
|
72
72
|
end
|
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: 1.
|
4
|
+
version: 1.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -139,28 +139,28 @@ dependencies:
|
|
139
139
|
requirements:
|
140
140
|
- - "~>"
|
141
141
|
- !ruby/object:Gem::Version
|
142
|
-
version: '13.
|
142
|
+
version: '13.5'
|
143
143
|
type: :runtime
|
144
144
|
prerelease: false
|
145
145
|
version_requirements: !ruby/object:Gem::Requirement
|
146
146
|
requirements:
|
147
147
|
- - "~>"
|
148
148
|
- !ruby/object:Gem::Version
|
149
|
-
version: '13.
|
149
|
+
version: '13.5'
|
150
150
|
- !ruby/object:Gem::Dependency
|
151
151
|
name: rubysmith
|
152
152
|
requirement: !ruby/object:Gem::Requirement
|
153
153
|
requirements:
|
154
154
|
- - "~>"
|
155
155
|
- !ruby/object:Gem::Version
|
156
|
-
version: '8.
|
156
|
+
version: '8.7'
|
157
157
|
type: :runtime
|
158
158
|
prerelease: false
|
159
159
|
version_requirements: !ruby/object:Gem::Requirement
|
160
160
|
requirements:
|
161
161
|
- - "~>"
|
162
162
|
- !ruby/object:Gem::Version
|
163
|
-
version: '8.
|
163
|
+
version: '8.7'
|
164
164
|
- !ruby/object:Gem::Dependency
|
165
165
|
name: runcom
|
166
166
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|