hanamismith 0.23.0 → 0.25.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/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 +8 -8
- 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/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 +0 -1
- data/lib/hanamismith/extensions/npm.rb +4 -4
- data/lib/hanamismith/templates/%project_name%/.circleci/config.yml.erb +30 -7
- data/lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb +20 -8
- data/lib/hanamismith/templates/%project_name%/spec/hanami_helper.rb.erb +1 -1
- data.tar.gz.sig +0 -0
- metadata +22 -25
- metadata.gz.sig +1 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c61e5aa7f51620521b2ebbfb561d27704d821a87848198afee40fa66985ca88f
|
4
|
+
data.tar.gz: daf26bead7227eb20fca744908d7151ece6ba6ed082e6a6efbc19daa659ebc02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86475dfa4e224dd1f14516fc03f99029f8155086963842d26014b8643b978405d33c6e58ddd4985af8b3b55636bddd440650f21df17612454f47a827c93df32d
|
7
|
+
data.tar.gz: c14bab570764e52ab33f9202751f9f57869a5846d67362993c11795d3ff517f85bf5d3a2dfe93e1336f1444b8880dafaff4217006375ac7834cc625baf424f55
|
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.
|
5
|
+
spec.version = "0.25.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.0"
|
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
|
@@ -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)
|
@@ -93,7 +93,7 @@ module Hanamismith
|
|
93
93
|
# rubocop:enable Metrics/MethodLength
|
94
94
|
|
95
95
|
def append_development_group
|
96
|
-
return if configuration.markdown? || configuration.build_rake
|
96
|
+
return if configuration.markdown? || configuration.build_rake
|
97
97
|
|
98
98
|
with_template.append <<~CONTENT
|
99
99
|
group :development do
|
@@ -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
|
|
@@ -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
|
|
@@ -96,7 +96,6 @@ module Hanamismith
|
|
96
96
|
on Rubysmith::CLI::Actions::Setup, input: Container[:input]
|
97
97
|
on Rubysmith::CLI::Actions::SimpleCov, input: Container[:input]
|
98
98
|
on Rubysmith::CLI::Actions::Versions, input: Container[:input]
|
99
|
-
on Rubysmith::CLI::Actions::Yard, input: Container[:input]
|
100
99
|
|
101
100
|
def initialize(builders: BUILDERS, **)
|
102
101
|
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
|
|
@@ -12,48 +12,71 @@ jobs:
|
|
12
12
|
POSTGRES_PASSWORD: postgres
|
13
13
|
steps:
|
14
14
|
- run:
|
15
|
-
name: Install
|
15
|
+
name: Chromium Install
|
16
16
|
command: apk add gcompat glib nss libxcb libgcc chromium
|
17
17
|
|
18
18
|
- run:
|
19
|
-
name: Start
|
19
|
+
name: Chromium Start
|
20
20
|
command: |
|
21
21
|
export DISPLAY=:99
|
22
22
|
chromedriver --url-base=/wd/hub &
|
23
23
|
|
24
|
+
- run:
|
25
|
+
name: Node Install
|
26
|
+
command: apk add nodejs npm
|
27
|
+
|
24
28
|
- checkout
|
25
29
|
|
26
30
|
- restore_cache:
|
27
|
-
name:
|
31
|
+
name: Gems Restore
|
28
32
|
keys:
|
29
33
|
- gem-cache-{{.Branch}}-{{checksum "Gemfile.lock"}}
|
30
34
|
- gem-cache-
|
31
35
|
|
32
36
|
- run:
|
33
|
-
name:
|
37
|
+
name: Gems Install
|
34
38
|
command: |
|
35
39
|
gem update --system
|
36
40
|
bundle config set path "vendor/bundle"
|
37
41
|
bundle install
|
38
42
|
|
39
43
|
- save_cache:
|
40
|
-
name:
|
44
|
+
name: Gems Store
|
41
45
|
key: gem-cache-{{.Branch}}-{{checksum "Gemfile.lock"}}
|
42
46
|
paths:
|
43
47
|
- vendor/bundle
|
44
48
|
|
49
|
+
- restore_cache:
|
50
|
+
name: Packages Restore
|
51
|
+
keys:
|
52
|
+
- package-cache-{{.Branch}}-{{checksum "package.json"}}
|
53
|
+
- package-cache-
|
54
|
+
|
55
|
+
- run:
|
56
|
+
name: Packages Install
|
57
|
+
command: npm install
|
58
|
+
|
59
|
+
- save_cache:
|
60
|
+
name: Packages Store
|
61
|
+
key: package-cache-{{.Branch}}-{{checksum "package.json"}}
|
62
|
+
paths:
|
63
|
+
- node_modules
|
64
|
+
|
45
65
|
- run:
|
46
66
|
name: Database Setup
|
47
67
|
command: |
|
68
|
+
bin/hanami db create
|
48
69
|
bin/hanami db migrate
|
49
70
|
|
50
71
|
- run:
|
51
72
|
name: Build
|
52
|
-
command:
|
73
|
+
command: |
|
74
|
+
bin/hanami assets compile
|
75
|
+
bundle exec rake
|
53
76
|
|
54
77
|
<% if configuration.build_simple_cov %>
|
55
78
|
- store_artifacts:
|
56
|
-
name: SimpleCov
|
79
|
+
name: SimpleCov Archive
|
57
80
|
path: ~/project/coverage
|
58
81
|
destination: coverage
|
59
82
|
<% end %>
|
@@ -6,6 +6,9 @@ jobs:
|
|
6
6
|
build:
|
7
7
|
name: Build
|
8
8
|
runs-on: ubuntu-latest
|
9
|
+
env:
|
10
|
+
HANAMI_ENV: test
|
11
|
+
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
|
9
12
|
|
10
13
|
services:
|
11
14
|
postgres:
|
@@ -21,10 +24,10 @@ jobs:
|
|
21
24
|
--health-retries 5
|
22
25
|
|
23
26
|
steps:
|
24
|
-
- name: Setup
|
27
|
+
- name: Chromium Setup
|
25
28
|
uses: nanasess/setup-chromedriver@v2
|
26
29
|
|
27
|
-
- name: Start
|
30
|
+
- name: Chromium Start
|
28
31
|
run: |
|
29
32
|
export DISPLAY=:99
|
30
33
|
chromedriver --url-base=/wd/hub &
|
@@ -32,22 +35,31 @@ jobs:
|
|
32
35
|
- name: Checkout
|
33
36
|
uses: actions/checkout@v3
|
34
37
|
|
35
|
-
- name: Setup
|
38
|
+
- name: Ruby Setup
|
36
39
|
uses: ruby/setup-ruby@v1
|
37
40
|
with:
|
38
41
|
bundler-cache: true
|
39
42
|
|
40
|
-
- name:
|
41
|
-
|
42
|
-
|
43
|
-
|
43
|
+
- name: Node Setup
|
44
|
+
uses: actions/setup-node@v2
|
45
|
+
with:
|
46
|
+
cache: npm
|
47
|
+
|
48
|
+
- name: Packages Install
|
49
|
+
run: npm install
|
50
|
+
|
51
|
+
- name: Database Setup
|
44
52
|
run: |
|
45
53
|
bin/hanami db create
|
46
54
|
bin/hanami db migrate
|
55
|
+
|
56
|
+
- name: Build
|
57
|
+
run: |
|
58
|
+
bin/hanami assets compile
|
47
59
|
bundle exec rake
|
48
60
|
|
49
61
|
<% if configuration.build_simple_cov %>
|
50
|
-
- name:
|
62
|
+
- name: SimpleCov Archive
|
51
63
|
uses: actions/upload-artifact@v3
|
52
64
|
with:
|
53
65
|
name: coverage
|
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.25.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-06 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.0'
|
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.0'
|
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
|
@@ -331,10 +331,7 @@ require_paths:
|
|
331
331
|
- lib
|
332
332
|
required_ruby_version: !ruby/object:Gem::Requirement
|
333
333
|
requirements:
|
334
|
-
- - "
|
335
|
-
- !ruby/object:Gem::Version
|
336
|
-
version: '3.2'
|
337
|
-
- - "<="
|
334
|
+
- - "~>"
|
338
335
|
- !ruby/object:Gem::Version
|
339
336
|
version: '3.3'
|
340
337
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
@@ -343,7 +340,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
343
340
|
- !ruby/object:Gem::Version
|
344
341
|
version: '0'
|
345
342
|
requirements: []
|
346
|
-
rubygems_version: 3.4
|
343
|
+
rubygems_version: 3.5.4
|
347
344
|
signing_key:
|
348
345
|
specification_version: 4
|
349
346
|
summary: A command line interface for smithing Hanami projects.
|
metadata.gz.sig
CHANGED
@@ -1,4 +1 @@
|
|
1
|
-
|
2
|
-
��
|
3
|
-
�N�L���d+p�,,IR�R��9W[1����"��N�w�,���j��&gV�#���t����G4��-���++5�����d`'"cU�_��zP�ܭB_
|
4
|
-
&��P�H5���t,hvJXRѓY|�!�hC�e��"�Y�zX�*���]y4i)�0|��٘�3���������z�e�a6�9�V�U�I�tT�Ӡ�?I����@����N*P��mF����E��m*"���b�b�:�yI�
|
1
|
+
�e�6\D�2>�����8S�cG� #
|