hanamismith 0.41.0 → 0.43.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 -0
- data/hanamismith.gemspec +2 -2
- data/lib/hanamismith/builders/docker/file.rb +24 -0
- data/lib/hanamismith/cli/commands/build.rb +16 -1
- data/lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb +6 -1
- data/lib/hanamismith/templates/%project_name%/spec/hanami_helper.rb.erb +1 -0
- data.tar.gz.sig +0 -0
- metadata +5 -4
- 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: 714da4ffe0fdea227763e85a7e306ae0b7b4922a39d55c46d5c5bf3f50b0d40c
|
4
|
+
data.tar.gz: 74bf61c68b7cbad618d382071bb915616f99a38e513d05becdaea3e3cc1b177d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 564d9791ab1bd41a724e07b691089ec84303f9ce81a0368b2a7bac7ded6ada034cf85ecd517a1b3c946bef7e52c9af9ca2d65f7bb0d87bb7142f08258fbacd1c
|
7
|
+
data.tar.gz: 5dfd4cca9b32b4ea58cb057b438f19138c45ccba2c19437891af0716f9d92a9352ae9d911078fe809817fbe87e3b4f1c2a32497b382d8160cf6d1705107a1043
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
@@ -189,6 +189,8 @@ bin/rake
|
|
189
189
|
|
190
190
|
== link:https://alchemists.io/policies/contributions[Contributions]
|
191
191
|
|
192
|
+
== link:https://alchemists.io/policies/developer_certificate_of_origin[Developer Certificate of Origin]
|
193
|
+
|
192
194
|
== link:https://alchemists.io/projects/hanamismith/versions[Versions]
|
193
195
|
|
194
196
|
== link:https://alchemists.io/community[Community]
|
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.43.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://alchemists.io/projects/hanamismith"
|
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.add_dependency "htmx", "~> 1.0"
|
32
32
|
spec.add_dependency "infusible", "~> 3.8"
|
33
33
|
spec.add_dependency "refinements", "~> 12.7"
|
34
|
-
spec.add_dependency "rubysmith", "~> 7.
|
34
|
+
spec.add_dependency "rubysmith", "~> 7.4"
|
35
35
|
spec.add_dependency "runcom", "~> 11.5"
|
36
36
|
spec.add_dependency "sod", "~> 0.14"
|
37
37
|
spec.add_dependency "spek", "~> 3.0"
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "refinements/struct"
|
4
|
+
|
5
|
+
module Hanamismith
|
6
|
+
module Builders
|
7
|
+
module Docker
|
8
|
+
# Builds Dockerfile configuration.
|
9
|
+
class File < Rubysmith::Builders::Docker::File
|
10
|
+
using Refinements::Struct
|
11
|
+
|
12
|
+
def call
|
13
|
+
return false unless settings.build_docker
|
14
|
+
|
15
|
+
super
|
16
|
+
builder.call(settings.merge(template_path: "%project_name%/Dockerfile.erb"))
|
17
|
+
.render
|
18
|
+
.insert_after(/RACK_ENV/, "ENV HANAMI_ENV=production\n")
|
19
|
+
true
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -57,6 +57,14 @@ module Hanamismith
|
|
57
57
|
Builders::Puma::Configuration,
|
58
58
|
Builders::Puma::Procfile,
|
59
59
|
Builders::Caliber,
|
60
|
+
Rubysmith::Builders::DevContainer::Dockerfile,
|
61
|
+
Rubysmith::Builders::DevContainer::Compose,
|
62
|
+
Rubysmith::Builders::DevContainer::Configuration,
|
63
|
+
Rubysmith::Builders::Docker::Build,
|
64
|
+
Rubysmith::Builders::Docker::Console,
|
65
|
+
Rubysmith::Builders::Docker::Entrypoint,
|
66
|
+
Rubysmith::Builders::Docker::File,
|
67
|
+
Rubysmith::Builders::Docker::Ignore,
|
60
68
|
Rubysmith::Extensions::Bundler,
|
61
69
|
Rubysmith::Extensions::Pragmater,
|
62
70
|
Rubysmith::Extensions::Tocer,
|
@@ -74,6 +82,7 @@ module Hanamismith
|
|
74
82
|
|
75
83
|
on Rubysmith::CLI::Actions::Name, settings: Container[:settings]
|
76
84
|
on Rubysmith::CLI::Actions::AmazingPrint, settings: Container[:settings]
|
85
|
+
on Rubysmith::CLI::Actions::Bootsnap, settings: Container[:settings]
|
77
86
|
on Rubysmith::CLI::Actions::Caliber, settings: Container[:settings]
|
78
87
|
on Rubysmith::CLI::Actions::CircleCI, settings: Container[:settings]
|
79
88
|
on Rubysmith::CLI::Actions::Citation, settings: Container[:settings]
|
@@ -81,13 +90,17 @@ module Hanamismith
|
|
81
90
|
on Rubysmith::CLI::Actions::Conduct, settings: Container[:settings]
|
82
91
|
on Rubysmith::CLI::Actions::Console, settings: Container[:settings]
|
83
92
|
on Rubysmith::CLI::Actions::Contributions, settings: Container[:settings]
|
93
|
+
on Rubysmith::CLI::Actions::DCOO, settings: Container[:settings]
|
84
94
|
on Rubysmith::CLI::Actions::Debug, settings: Container[:settings]
|
95
|
+
on Rubysmith::CLI::Actions::DevContainer, settings: Container[:settings]
|
96
|
+
on Rubysmith::CLI::Actions::Docker, settings: Container[:settings]
|
85
97
|
on Rubysmith::CLI::Actions::Funding, settings: Container[:settings]
|
86
98
|
on Rubysmith::CLI::Actions::Git, settings: Container[:settings]
|
87
99
|
on Rubysmith::CLI::Actions::GitHub, settings: Container[:settings]
|
88
100
|
on Rubysmith::CLI::Actions::GitHubCI, settings: Container[:settings]
|
89
101
|
on Rubysmith::CLI::Actions::GitLint, settings: Container[:settings]
|
90
102
|
on Rubysmith::CLI::Actions::Guard, settings: Container[:settings]
|
103
|
+
on Rubysmith::CLI::Actions::IRBKit, settings: Container[:settings]
|
91
104
|
on Rubysmith::CLI::Actions::License, settings: Container[:settings]
|
92
105
|
on Rubysmith::CLI::Actions::Maximum, settings: Container[:settings]
|
93
106
|
on Rubysmith::CLI::Actions::Minimum, settings: Container[:settings]
|
@@ -96,10 +109,12 @@ module Hanamismith
|
|
96
109
|
on Rubysmith::CLI::Actions::Reek, settings: Container[:settings]
|
97
110
|
on Rubysmith::CLI::Actions::Refinements, settings: Container[:settings]
|
98
111
|
on Rubysmith::CLI::Actions::RSpec, settings: Container[:settings]
|
112
|
+
on Rubysmith::CLI::Actions::RTC, settings: Container[:settings]
|
99
113
|
on Rubysmith::CLI::Actions::Security, settings: Container[:settings]
|
100
114
|
on Rubysmith::CLI::Actions::Setup, settings: Container[:settings]
|
101
115
|
on Rubysmith::CLI::Actions::SimpleCov, settings: Container[:settings]
|
102
116
|
on Rubysmith::CLI::Actions::Versions, settings: Container[:settings]
|
117
|
+
on Rubysmith::CLI::Actions::Zeitwerk, settings: Container[:settings]
|
103
118
|
|
104
119
|
def initialize(builders: BUILDERS, **)
|
105
120
|
super(**)
|
@@ -108,7 +123,7 @@ module Hanamismith
|
|
108
123
|
|
109
124
|
def call
|
110
125
|
log_info "Building project skeleton: #{settings.project_name}..."
|
111
|
-
builders.each { |constant| constant.new(settings:).call }
|
126
|
+
builders.each { |constant| constant.new(settings:, logger:).call }
|
112
127
|
log_info "Project skeleton complete!"
|
113
128
|
end
|
114
129
|
|
@@ -24,6 +24,11 @@ jobs:
|
|
24
24
|
--health-retries 5
|
25
25
|
|
26
26
|
steps:
|
27
|
+
- name: System Update
|
28
|
+
run: |
|
29
|
+
sudo apt-get update
|
30
|
+
sudo apt-get install --no-install-recommends -y curl libjemalloc2
|
31
|
+
|
27
32
|
- name: Chromium Setup
|
28
33
|
uses: nanasess/setup-chromedriver@v2
|
29
34
|
|
@@ -41,7 +46,7 @@ jobs:
|
|
41
46
|
bundler-cache: true
|
42
47
|
|
43
48
|
- name: Node Setup
|
44
|
-
uses: actions/setup-node@
|
49
|
+
uses: actions/setup-node@v4
|
45
50
|
with:
|
46
51
|
cache: npm
|
47
52
|
|
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.43.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-08-
|
38
|
+
date: 2024-08-22 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: cogger
|
@@ -155,14 +155,14 @@ dependencies:
|
|
155
155
|
requirements:
|
156
156
|
- - "~>"
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version: '7.
|
158
|
+
version: '7.4'
|
159
159
|
type: :runtime
|
160
160
|
prerelease: false
|
161
161
|
version_requirements: !ruby/object:Gem::Requirement
|
162
162
|
requirements:
|
163
163
|
- - "~>"
|
164
164
|
- !ruby/object:Gem::Version
|
165
|
-
version: '7.
|
165
|
+
version: '7.4'
|
166
166
|
- !ruby/object:Gem::Dependency
|
167
167
|
name: runcom
|
168
168
|
requirement: !ruby/object:Gem::Requirement
|
@@ -241,6 +241,7 @@ files:
|
|
241
241
|
- lib/hanamismith/builders/circle_ci.rb
|
242
242
|
- lib/hanamismith/builders/console.rb
|
243
243
|
- lib/hanamismith/builders/core.rb
|
244
|
+
- lib/hanamismith/builders/docker/file.rb
|
244
245
|
- lib/hanamismith/builders/documentation/readme.rb
|
245
246
|
- lib/hanamismith/builders/environments/development.rb
|
246
247
|
- lib/hanamismith/builders/environments/test.rb
|
metadata.gz.sig
CHANGED
Binary file
|