hanamismith 0.24.0 → 0.26.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 +1 -0
- data/hanamismith.gemspec +11 -11
- data/lib/hanamismith/builders/asset.rb +2 -2
- data/lib/hanamismith/builders/binstub.rb +2 -2
- data/lib/hanamismith/builders/bundler.rb +15 -14
- data/lib/hanamismith/builders/caliber.rb +2 -2
- data/lib/hanamismith/builders/ci/circle.rb +2 -2
- data/lib/hanamismith/builders/ci/git_hub.rb +2 -2
- data/lib/hanamismith/builders/console.rb +2 -2
- data/lib/hanamismith/builders/core.rb +2 -2
- data/lib/hanamismith/builders/documentation/readme.rb +2 -2
- data/lib/hanamismith/builders/environments/development.rb +2 -2
- data/lib/hanamismith/builders/environments/test.rb +2 -2
- data/lib/hanamismith/builders/git/ignore.rb +2 -2
- data/lib/hanamismith/builders/guard.rb +2 -2
- data/lib/hanamismith/builders/icon.rb +2 -2
- data/lib/hanamismith/builders/javascript.rb +2 -2
- data/lib/hanamismith/builders/node.rb +2 -2
- data/lib/hanamismith/builders/providers/persistence.rb +2 -2
- data/lib/hanamismith/builders/providers/yjit.rb +31 -0
- data/lib/hanamismith/builders/puma/configuration.rb +2 -2
- data/lib/hanamismith/builders/puma/procfile.rb +2 -2
- data/lib/hanamismith/builders/pwa.rb +2 -2
- data/lib/hanamismith/builders/rack/attack.rb +2 -2
- data/lib/hanamismith/builders/rack/configuration.rb +2 -2
- data/lib/hanamismith/builders/rack/deflater.rb +2 -2
- data/lib/hanamismith/builders/rake.rb +2 -2
- data/lib/hanamismith/builders/refinement.rb +2 -2
- data/lib/hanamismith/builders/rspec/application_shared_context.rb +2 -2
- data/lib/hanamismith/builders/rspec/database.rb +2 -2
- data/lib/hanamismith/builders/rspec/factory.rb +2 -2
- data/lib/hanamismith/builders/rspec/hanami.rb +2 -2
- data/lib/hanamismith/builders/rspec/helper.rb +2 -2
- data/lib/hanamismith/builders/setup.rb +2 -2
- data/lib/hanamismith/builders/slices/health.rb +2 -2
- data/lib/hanamismith/builders/slices/home.rb +2 -2
- data/lib/hanamismith/builders/stylesheet.rb +2 -2
- data/lib/hanamismith/cli/commands/build.rb +1 -1
- data/lib/hanamismith/extensions/npm.rb +4 -4
- data/lib/hanamismith/templates/%project_name%/config/providers/yjit.rb.erb +3 -0
- data/lib/hanamismith/templates/%project_name%/spec/hanami_helper.rb.erb +1 -1
- data/lib/hanamismith.rb +2 -1
- data.tar.gz.sig +0 -0
- metadata +24 -25
- 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: 22671827d08e75c8a50999ec387b30d8e5f1180d8a041bc02473759bed5510c8
|
4
|
+
data.tar.gz: a00cb2230c7994811c95b4ba82e9ac55c06bf827ddd2b9bb480b6eb8c4dbd541
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1569da4ce6a7a9aa2aea25b8ce78a1a3cab3ce06e26209e530854e69b70106ce1fd8cabbafa45e56333feafca908df56c62198d58d92ce03eb035f7a2b967e50
|
7
|
+
data.tar.gz: 8062f91fb97b419ef6b095d9355f874085b82379921d24b560176bd4c8de988c109bfef91d58cc3f33d53c209cb4f6352a65b4f65bb1f4b223554a7e45a598b6
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
@@ -39,6 +39,7 @@ toc::[]
|
|
39
39
|
* Uses {dotenv_link} for managing your environment configurations.
|
40
40
|
* Provides support for Continuous Integration systems like link:https://circleci.com[Circle CI] (default) and link:https://docs.github.com/en/actions[GitHub Actions].
|
41
41
|
* Provides the `/up` health check endpoint via the `Health` slice.
|
42
|
+
* Uses link:https://github.com/ruby/ruby/blob/master/doc/yjit/yjit.md[YJIT] as a provider so you can deploy with YJIT disabled (i.e. `RUBYOPT=--yjit-disable --yjit-exec-mem-size=192`) and let the application enable upon boot.
|
42
43
|
* Disables link:https://github.com/ruby/irb[IRB] console autocomplete when used in production-like environments. You can re-enable IRB autocomplete by setting `IRB_USE_AUTOCOMPLETE=true` before launching your console in non development or test environments.
|
43
44
|
|
44
45
|
== Screenshots/Screencasts
|
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.26.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://alchemists.io/projects/hanamismith"
|
@@ -22,19 +22,19 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.signing_key = Gem.default_key_path
|
23
23
|
spec.cert_chain = [Gem.default_cert_path]
|
24
24
|
|
25
|
-
spec.required_ruby_version =
|
26
|
-
spec.add_dependency "cogger", "~> 0.
|
25
|
+
spec.required_ruby_version = "~> 3.3"
|
26
|
+
spec.add_dependency "cogger", "~> 0.15"
|
27
27
|
spec.add_dependency "dry-container", "~> 0.11"
|
28
28
|
spec.add_dependency "dry-monads", "~> 1.6"
|
29
29
|
spec.add_dependency "dry-schema", "~> 1.13"
|
30
|
-
spec.add_dependency "etcher", "~> 0
|
31
|
-
spec.add_dependency "htmx", "~> 0
|
32
|
-
spec.add_dependency "infusible", "~>
|
33
|
-
spec.add_dependency "refinements", "~>
|
34
|
-
spec.add_dependency "rubysmith", "~>
|
35
|
-
spec.add_dependency "runcom", "~>
|
36
|
-
spec.add_dependency "sod", "~> 0.
|
37
|
-
spec.add_dependency "spek", "~>
|
30
|
+
spec.add_dependency "etcher", "~> 1.0"
|
31
|
+
spec.add_dependency "htmx", "~> 1.0"
|
32
|
+
spec.add_dependency "infusible", "~> 3.0"
|
33
|
+
spec.add_dependency "refinements", "~> 12.0"
|
34
|
+
spec.add_dependency "rubysmith", "~> 6.1"
|
35
|
+
spec.add_dependency "runcom", "~> 11.0"
|
36
|
+
spec.add_dependency "sod", "~> 0.4"
|
37
|
+
spec.add_dependency "spek", "~> 3.0"
|
38
38
|
spec.add_dependency "zeitwerk", "~> 2.6"
|
39
39
|
|
40
40
|
spec.bindir = "exe"
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
# Builds project skeleton for assets.
|
8
8
|
class Asset
|
9
|
-
using Refinements::
|
9
|
+
using Refinements::Struct
|
10
10
|
|
11
11
|
def self.call(...) = new(...).call
|
12
12
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
# Builds project skeleton binstub.
|
8
8
|
class Binstub
|
9
|
-
using Refinements::
|
9
|
+
using Refinements::Struct
|
10
10
|
|
11
11
|
def self.call(...) = new(...).call
|
12
12
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
# Builds project skeleton with Gemfile configuration.
|
8
8
|
# rubocop:todo Metrics/ClassLength
|
9
9
|
class Bundler < Rubysmith::Builders::Bundler
|
10
|
-
using Refinements::
|
10
|
+
using Refinements::Struct
|
11
11
|
|
12
12
|
# :reek:TooManyStatements
|
13
13
|
def call
|
@@ -15,8 +15,8 @@ module Hanamismith
|
|
15
15
|
insert_main_dependencies
|
16
16
|
insert_persistence_dependencies
|
17
17
|
alter_groups
|
18
|
-
|
19
|
-
|
18
|
+
insert_development_group
|
19
|
+
insert_test_group
|
20
20
|
insert_development_and_test_group
|
21
21
|
remove_zeitwerk
|
22
22
|
configuration
|
@@ -61,9 +61,9 @@ module Hanamismith
|
|
61
61
|
"source",
|
62
62
|
%(gem "hanami-view", github: "hanami/view", branch: "main"\n)
|
63
63
|
)
|
64
|
-
.insert_after("source", %(gem "htmx", "~> 0
|
65
|
-
.insert_after("source", %(gem "puma", "~> 6.
|
66
|
-
.insert_after("source", %(gem "rack-attack", "~> 6.
|
64
|
+
.insert_after("source", %(gem "htmx", "~> 1.0"\n))
|
65
|
+
.insert_after("source", %(gem "puma", "~> 6.4"\n))
|
66
|
+
.insert_after("source", %(gem "rack-attack", "~> 6.7"\n))
|
67
67
|
end
|
68
68
|
# rubocop:enable Metrics/MethodLength
|
69
69
|
|
@@ -71,12 +71,12 @@ module Hanamismith
|
|
71
71
|
with_template.insert_after("source", %(gem "pg", "~> 1.5"\n))
|
72
72
|
.insert_after("source", %(gem "rom", "~> 5.3"\n))
|
73
73
|
.insert_after("source", %(gem "rom-sql", "~> 3.6"\n))
|
74
|
-
.insert_after("source", %(\ngem "sequel", "~> 5.
|
74
|
+
.insert_after("source", %(\ngem "sequel", "~> 5.76"\n))
|
75
75
|
end
|
76
76
|
|
77
77
|
# rubocop:todo Metrics/MethodLength
|
78
78
|
def alter_groups
|
79
|
-
with_template.insert_after(/group :
|
79
|
+
with_template.insert_after(/group :quality/, %( gem "rubocop-sequel", "~> 0.3"\n))
|
80
80
|
.insert_after(
|
81
81
|
/group :development do/,
|
82
82
|
%( gem "hanami-webconsole", github: "hanami/webconsole", branch: "main"\n)
|
@@ -92,10 +92,10 @@ module Hanamismith
|
|
92
92
|
end
|
93
93
|
# rubocop:enable Metrics/MethodLength
|
94
94
|
|
95
|
-
def
|
96
|
-
return if configuration.markdown? || configuration.build_rake
|
95
|
+
def insert_development_group
|
96
|
+
return if configuration.markdown? || configuration.build_rake
|
97
97
|
|
98
|
-
with_template.
|
98
|
+
with_template.insert_before(/group :tools do/, <<~CONTENT)
|
99
99
|
group :development do
|
100
100
|
gem "hanami-webconsole", github: "hanami/webconsole", branch: "main"
|
101
101
|
gem "localhost", "~> 1.1"
|
@@ -106,10 +106,10 @@ module Hanamismith
|
|
106
106
|
end
|
107
107
|
|
108
108
|
# rubocop:todo Metrics/MethodLength
|
109
|
-
def
|
109
|
+
def insert_test_group
|
110
110
|
return if configuration.build_guard || configuration.build_rspec
|
111
111
|
|
112
|
-
with_template.
|
112
|
+
with_template.insert_before(/group :tools do/, <<~CONTENT)
|
113
113
|
group :test do
|
114
114
|
gem "capybara", "~> 3.39"
|
115
115
|
gem "cuprite", "~> 0.14"
|
@@ -119,6 +119,7 @@ module Hanamismith
|
|
119
119
|
gem "rack-test", "~> 2.1"
|
120
120
|
gem "rom-factory", "~> 0.11"
|
121
121
|
end
|
122
|
+
|
122
123
|
CONTENT
|
123
124
|
end
|
124
125
|
# rubocop:enable Metrics/MethodLength
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
# Builds project skeleton with Caliber style support.
|
8
8
|
class Caliber < Rubysmith::Builders::Caliber
|
9
|
-
using Refinements::
|
9
|
+
using Refinements::Struct
|
10
10
|
|
11
11
|
def call
|
12
12
|
return configuration unless configuration.build_caliber
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
module CI
|
8
8
|
# Builds project skeleton Circle CI configuration.
|
9
9
|
class Circle
|
10
|
-
using Refinements::
|
10
|
+
using Refinements::Struct
|
11
11
|
|
12
12
|
def self.call(...) = new(...).call
|
13
13
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
module CI
|
8
8
|
# Builds project skeleton GitHub CI configuration.
|
9
9
|
class GitHub
|
10
|
-
using Refinements::
|
10
|
+
using Refinements::Struct
|
11
11
|
|
12
12
|
def self.call(...) = new(...).call
|
13
13
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
# Builds project skeleton console for object inspection and exploration.
|
8
8
|
class Console < Rubysmith::Builders::Console
|
9
|
-
using Refinements::
|
9
|
+
using Refinements::Struct
|
10
10
|
|
11
11
|
def call
|
12
12
|
return configuration unless configuration.build_console
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
# Builds project skeleton foundation.
|
8
8
|
class Core
|
9
|
-
using Refinements::
|
9
|
+
using Refinements::Struct
|
10
10
|
|
11
11
|
def self.call(...) = new(...).call
|
12
12
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
module Documentation
|
8
8
|
# Builds project skeleton README documentation.
|
9
9
|
class Readme < Rubysmith::Builders::Documentation::Readme
|
10
|
-
using Refinements::
|
10
|
+
using Refinements::Struct
|
11
11
|
|
12
12
|
def call
|
13
13
|
return configuration unless configuration.build_readme
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
module Environments
|
8
8
|
# Builds development environment skeleton.
|
9
9
|
class Development
|
10
|
-
using Refinements::
|
10
|
+
using Refinements::Struct
|
11
11
|
|
12
12
|
def self.call(...) = new(...).call
|
13
13
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
module Environments
|
8
8
|
# Builds test environment skeleton.
|
9
9
|
class Test
|
10
|
-
using Refinements::
|
10
|
+
using Refinements::Struct
|
11
11
|
|
12
12
|
def self.call(...) = new(...).call
|
13
13
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
module Git
|
8
8
|
# Builds project skeleton Git ignore.
|
9
9
|
class Ignore < Rubysmith::Builders::Git::Ignore
|
10
|
-
using Refinements::
|
10
|
+
using Refinements::Struct
|
11
11
|
|
12
12
|
def call
|
13
13
|
return configuration unless configuration.build_git
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
# Builds project skeleton Guard support for a red, green, refactor loop.
|
8
8
|
class Guard < Rubysmith::Builders::Guard
|
9
|
-
using Refinements::
|
9
|
+
using Refinements::Struct
|
10
10
|
|
11
11
|
def call
|
12
12
|
return configuration unless configuration.build_guard
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
# Builds project skeleton SVG icon.
|
8
8
|
class Icon
|
9
|
-
using Refinements::
|
9
|
+
using Refinements::Struct
|
10
10
|
|
11
11
|
def self.call(...) = new(...).call
|
12
12
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
# Builds project skeleton javascript.
|
8
8
|
class Javascript
|
9
|
-
using Refinements::
|
9
|
+
using Refinements::Struct
|
10
10
|
|
11
11
|
def self.call(...) = new(...).call
|
12
12
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
# Builds project skeleton for Node.
|
8
8
|
class Node
|
9
|
-
using Refinements::
|
9
|
+
using Refinements::Struct
|
10
10
|
|
11
11
|
def self.call(...) = new(...).call
|
12
12
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
module Providers
|
8
8
|
# Builds project skeleton for persistence provider.
|
9
9
|
class Persistence
|
10
|
-
using Refinements::
|
10
|
+
using Refinements::Struct
|
11
11
|
|
12
12
|
def self.call(...) = new(...).call
|
13
13
|
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "refinements/struct"
|
4
|
+
|
5
|
+
module Hanamismith
|
6
|
+
module Builders
|
7
|
+
module Providers
|
8
|
+
# Builds project skeleton for YJIT provider.
|
9
|
+
class YJIT
|
10
|
+
using Refinements::Struct
|
11
|
+
|
12
|
+
def self.call(...) = new(...).call
|
13
|
+
|
14
|
+
def initialize configuration, builder: Rubysmith::Builder
|
15
|
+
@configuration = configuration
|
16
|
+
@builder = builder
|
17
|
+
end
|
18
|
+
|
19
|
+
def call
|
20
|
+
path = "%project_name%/config/providers/yjit.rb.erb"
|
21
|
+
builder.call(configuration.merge(template_path: path)).render
|
22
|
+
configuration
|
23
|
+
end
|
24
|
+
|
25
|
+
private
|
26
|
+
|
27
|
+
attr_reader :configuration, :builder
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
module Puma
|
8
8
|
# Builds project skeleton Puma configuration.
|
9
9
|
class Configuration
|
10
|
-
using Refinements::
|
10
|
+
using Refinements::Struct
|
11
11
|
|
12
12
|
def self.call(...) = new(...).call
|
13
13
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
module Puma
|
8
8
|
# Builds project skeleton Puma Procfile for production and development environments.
|
9
9
|
class Procfile
|
10
|
-
using Refinements::
|
10
|
+
using Refinements::Struct
|
11
11
|
|
12
12
|
def self.call(...) = new(...).call
|
13
13
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
# Builds project skeleton Progressive Web Application (PWA) manifest.
|
8
8
|
class PWA
|
9
|
-
using Refinements::
|
9
|
+
using Refinements::Struct
|
10
10
|
|
11
11
|
def self.call(...) = new(...).call
|
12
12
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
module Rack
|
8
8
|
# Builds project skeleton.
|
9
9
|
class Attack
|
10
|
-
using Refinements::
|
10
|
+
using Refinements::Struct
|
11
11
|
|
12
12
|
def self.call(...) = new(...).call
|
13
13
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
module Rack
|
8
8
|
# Builds project skeleton.
|
9
9
|
class Configuration
|
10
|
-
using Refinements::
|
10
|
+
using Refinements::Struct
|
11
11
|
|
12
12
|
def self.call(...) = new(...).call
|
13
13
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
module Rack
|
8
8
|
# Builds project skeleton.
|
9
9
|
class Deflater
|
10
|
-
using Refinements::
|
10
|
+
using Refinements::Struct
|
11
11
|
|
12
12
|
def self.call(...) = new(...).call
|
13
13
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
# Builds project skeleton Rake support.
|
8
8
|
class Rake < Rubysmith::Builders::Rake
|
9
|
-
using Refinements::
|
9
|
+
using Refinements::Struct
|
10
10
|
|
11
11
|
def call
|
12
12
|
return configuration unless configuration.build_rake
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
# Builds project skeleton foundation.
|
8
8
|
class Refinement
|
9
|
-
using Refinements::
|
9
|
+
using Refinements::Struct
|
10
10
|
|
11
11
|
def self.call(...) = new(...).call
|
12
12
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
module RSpec
|
8
8
|
# Builds project skeleton RSpec application shared context.
|
9
9
|
class ApplicationSharedContext
|
10
|
-
using Refinements::
|
10
|
+
using Refinements::Struct
|
11
11
|
|
12
12
|
def self.call(...) = new(...).call
|
13
13
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
module RSpec
|
8
8
|
# Builds project skeleton RSpec application database support.
|
9
9
|
class Database
|
10
|
-
using Refinements::
|
10
|
+
using Refinements::Struct
|
11
11
|
|
12
12
|
def self.call(...) = new(...).call
|
13
13
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
module RSpec
|
8
8
|
# Builds project skeleton RSpec application database support.
|
9
9
|
class Factory
|
10
|
-
using Refinements::
|
10
|
+
using Refinements::Struct
|
11
11
|
|
12
12
|
def self.call(...) = new(...).call
|
13
13
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
module RSpec
|
8
8
|
# Builds project skeleton RSpec helper.
|
9
9
|
class Hanami
|
10
|
-
using Refinements::
|
10
|
+
using Refinements::Struct
|
11
11
|
|
12
12
|
def self.call(...) = new(...).call
|
13
13
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
module RSpec
|
8
8
|
# Builds project skeleton RSpec helper.
|
9
9
|
class Helper < Rubysmith::Builders::RSpec::Helper
|
10
|
-
using Refinements::
|
10
|
+
using Refinements::Struct
|
11
11
|
|
12
12
|
def initialize(...)
|
13
13
|
super
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
# Builds project skeleton setup script.
|
8
8
|
class Setup < Rubysmith::Builders::Setup
|
9
|
-
using Refinements::
|
9
|
+
using Refinements::Struct
|
10
10
|
|
11
11
|
def call
|
12
12
|
return configuration unless configuration.build_setup
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
module Slices
|
8
8
|
# Builds health slice skeleton.
|
9
9
|
class Health
|
10
|
-
using Refinements::
|
10
|
+
using Refinements::Struct
|
11
11
|
|
12
12
|
def self.call(...) = new(...).call
|
13
13
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
module Slices
|
8
8
|
# Builds home slice skeleton.
|
9
9
|
class Home
|
10
|
-
using Refinements::
|
10
|
+
using Refinements::Struct
|
11
11
|
|
12
12
|
def self.call(...) = new(...).call
|
13
13
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/struct"
|
4
4
|
|
5
5
|
module Hanamismith
|
6
6
|
module Builders
|
7
7
|
# Builds project skeleton stylesheet.
|
8
8
|
class Stylesheet
|
9
|
-
using Refinements::
|
9
|
+
using Refinements::Struct
|
10
10
|
|
11
11
|
def self.call(...) = new(...).call
|
12
12
|
|
@@ -14,6 +14,7 @@ module Hanamismith
|
|
14
14
|
Rubysmith::Builders::Init,
|
15
15
|
Builders::Core,
|
16
16
|
Builders::Providers::Persistence,
|
17
|
+
Builders::Providers::YJIT,
|
17
18
|
Builders::Refinement,
|
18
19
|
Builders::Icon,
|
19
20
|
Builders::Stylesheet,
|
@@ -96,7 +97,6 @@ module Hanamismith
|
|
96
97
|
on Rubysmith::CLI::Actions::Setup, input: Container[:input]
|
97
98
|
on Rubysmith::CLI::Actions::SimpleCov, input: Container[:input]
|
98
99
|
on Rubysmith::CLI::Actions::Versions, input: Container[:input]
|
99
|
-
on Rubysmith::CLI::Actions::Yard, input: Container[:input]
|
100
100
|
|
101
101
|
def initialize(builders: BUILDERS, **)
|
102
102
|
super(**)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
4
|
-
require "refinements/
|
3
|
+
require "refinements/io"
|
4
|
+
require "refinements/pathname"
|
5
5
|
require "rubocop"
|
6
6
|
|
7
7
|
module Hanamismith
|
@@ -10,8 +10,8 @@ module Hanamismith
|
|
10
10
|
class NPM
|
11
11
|
include Import[:kernel, :logger]
|
12
12
|
|
13
|
-
using Refinements::
|
14
|
-
using Refinements::
|
13
|
+
using Refinements::IO
|
14
|
+
using Refinements::Pathname
|
15
15
|
|
16
16
|
def self.call(...) = new(...).call
|
17
17
|
|
data/lib/hanamismith.rb
CHANGED
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.26.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:
|
38
|
+
date: 2024-01-23 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: cogger
|
@@ -43,14 +43,14 @@ dependencies:
|
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '0.
|
46
|
+
version: '0.15'
|
47
47
|
type: :runtime
|
48
48
|
prerelease: false
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0.
|
53
|
+
version: '0.15'
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
55
|
name: dry-container
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,112 +99,112 @@ dependencies:
|
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: '0
|
102
|
+
version: '1.0'
|
103
103
|
type: :runtime
|
104
104
|
prerelease: false
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '0
|
109
|
+
version: '1.0'
|
110
110
|
- !ruby/object:Gem::Dependency
|
111
111
|
name: htmx
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '0
|
116
|
+
version: '1.0'
|
117
117
|
type: :runtime
|
118
118
|
prerelease: false
|
119
119
|
version_requirements: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
121
|
- - "~>"
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version: '0
|
123
|
+
version: '1.0'
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: infusible
|
126
126
|
requirement: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: '
|
130
|
+
version: '3.0'
|
131
131
|
type: :runtime
|
132
132
|
prerelease: false
|
133
133
|
version_requirements: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
135
|
- - "~>"
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version: '
|
137
|
+
version: '3.0'
|
138
138
|
- !ruby/object:Gem::Dependency
|
139
139
|
name: refinements
|
140
140
|
requirement: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
142
|
- - "~>"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: '
|
144
|
+
version: '12.0'
|
145
145
|
type: :runtime
|
146
146
|
prerelease: false
|
147
147
|
version_requirements: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
149
|
- - "~>"
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version: '
|
151
|
+
version: '12.0'
|
152
152
|
- !ruby/object:Gem::Dependency
|
153
153
|
name: rubysmith
|
154
154
|
requirement: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
156
|
- - "~>"
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version: '
|
158
|
+
version: '6.1'
|
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: '
|
165
|
+
version: '6.1'
|
166
166
|
- !ruby/object:Gem::Dependency
|
167
167
|
name: runcom
|
168
168
|
requirement: !ruby/object:Gem::Requirement
|
169
169
|
requirements:
|
170
170
|
- - "~>"
|
171
171
|
- !ruby/object:Gem::Version
|
172
|
-
version: '
|
172
|
+
version: '11.0'
|
173
173
|
type: :runtime
|
174
174
|
prerelease: false
|
175
175
|
version_requirements: !ruby/object:Gem::Requirement
|
176
176
|
requirements:
|
177
177
|
- - "~>"
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: '
|
179
|
+
version: '11.0'
|
180
180
|
- !ruby/object:Gem::Dependency
|
181
181
|
name: sod
|
182
182
|
requirement: !ruby/object:Gem::Requirement
|
183
183
|
requirements:
|
184
184
|
- - "~>"
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
version: '0.
|
186
|
+
version: '0.4'
|
187
187
|
type: :runtime
|
188
188
|
prerelease: false
|
189
189
|
version_requirements: !ruby/object:Gem::Requirement
|
190
190
|
requirements:
|
191
191
|
- - "~>"
|
192
192
|
- !ruby/object:Gem::Version
|
193
|
-
version: '0.
|
193
|
+
version: '0.4'
|
194
194
|
- !ruby/object:Gem::Dependency
|
195
195
|
name: spek
|
196
196
|
requirement: !ruby/object:Gem::Requirement
|
197
197
|
requirements:
|
198
198
|
- - "~>"
|
199
199
|
- !ruby/object:Gem::Version
|
200
|
-
version: '
|
200
|
+
version: '3.0'
|
201
201
|
type: :runtime
|
202
202
|
prerelease: false
|
203
203
|
version_requirements: !ruby/object:Gem::Requirement
|
204
204
|
requirements:
|
205
205
|
- - "~>"
|
206
206
|
- !ruby/object:Gem::Version
|
207
|
-
version: '
|
207
|
+
version: '3.0'
|
208
208
|
- !ruby/object:Gem::Dependency
|
209
209
|
name: zeitwerk
|
210
210
|
requirement: !ruby/object:Gem::Requirement
|
@@ -252,6 +252,7 @@ files:
|
|
252
252
|
- lib/hanamismith/builders/javascript.rb
|
253
253
|
- lib/hanamismith/builders/node.rb
|
254
254
|
- lib/hanamismith/builders/providers/persistence.rb
|
255
|
+
- lib/hanamismith/builders/providers/yjit.rb
|
255
256
|
- lib/hanamismith/builders/puma/configuration.rb
|
256
257
|
- lib/hanamismith/builders/puma/procfile.rb
|
257
258
|
- lib/hanamismith/builders/pwa.rb
|
@@ -290,6 +291,7 @@ files:
|
|
290
291
|
- lib/hanamismith/templates/%project_name%/config/assets.js.erb
|
291
292
|
- lib/hanamismith/templates/%project_name%/config/initializers/rack_attack.rb.erb
|
292
293
|
- lib/hanamismith/templates/%project_name%/config/providers/persistence.rb.erb
|
294
|
+
- lib/hanamismith/templates/%project_name%/config/providers/yjit.rb.erb
|
293
295
|
- lib/hanamismith/templates/%project_name%/config/puma.rb.erb
|
294
296
|
- lib/hanamismith/templates/%project_name%/config/routes.rb.erb
|
295
297
|
- lib/hanamismith/templates/%project_name%/config/settings.rb.erb
|
@@ -331,10 +333,7 @@ require_paths:
|
|
331
333
|
- lib
|
332
334
|
required_ruby_version: !ruby/object:Gem::Requirement
|
333
335
|
requirements:
|
334
|
-
- - "
|
335
|
-
- !ruby/object:Gem::Version
|
336
|
-
version: '3.2'
|
337
|
-
- - "<="
|
336
|
+
- - "~>"
|
338
337
|
- !ruby/object:Gem::Version
|
339
338
|
version: '3.3'
|
340
339
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
@@ -343,7 +342,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
343
342
|
- !ruby/object:Gem::Version
|
344
343
|
version: '0'
|
345
344
|
requirements: []
|
346
|
-
rubygems_version: 3.
|
345
|
+
rubygems_version: 3.5.5
|
347
346
|
signing_key:
|
348
347
|
specification_version: 4
|
349
348
|
summary: A command line interface for smithing Hanami projects.
|
metadata.gz.sig
CHANGED
Binary file
|