rails_engine_toolkit 0.6.4 → 0.6.5
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
- data/.github/workflows/ci.yml +21 -15
- data/.github/workflows/release.yml +2 -1
- data/lib/rails_engine_toolkit/config.rb +2 -1
- data/lib/rails_engine_toolkit/templates/engine_toolkit_yml.erb +1 -0
- data/lib/rails_engine_toolkit/version.rb +1 -1
- data/test/fixtures/host_app/config/engine_toolkit.yml +36 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0ab01356b27bc7c983607f824c6424f4d1baa14990f406db778dd517e70ef3f9
|
|
4
|
+
data.tar.gz: 88d88bc28c6769c0447c24d82494024b8e6fa3252e97bb63299be8cf72c33a2d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e690531ad9a2cffe7b25a33bc011d4bb88e70fe435deac750ef2a1355dc629182410057231754932b1fe125061fba35a81d2ae0b314020686569346e294c9d3c
|
|
7
|
+
data.tar.gz: 2a919314dbb87df84fcd4d3e80217c85f960c97a0311005430334701234c6b28f70b82fbb3ba999ef30b7572e8fe376c1b36063980e4d7fe305fc4135215723a
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -14,13 +14,24 @@ jobs:
|
|
|
14
14
|
rails: ["8.1.2"]
|
|
15
15
|
steps:
|
|
16
16
|
- uses: actions/checkout@v4
|
|
17
|
-
|
|
17
|
+
|
|
18
|
+
- name: Setup Ruby
|
|
19
|
+
uses: ruby/setup-ruby@v1
|
|
18
20
|
with:
|
|
19
21
|
ruby-version: ${{ matrix.ruby }}
|
|
20
22
|
bundler-cache: true
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
|
|
23
|
+
|
|
24
|
+
- name: Install dependencies
|
|
25
|
+
run: bundle install
|
|
26
|
+
|
|
27
|
+
- name: Run RSpec
|
|
28
|
+
run: bundle exec rspec
|
|
29
|
+
|
|
30
|
+
- name: Run RuboCop
|
|
31
|
+
run: bundle exec rubocop --cache false lib spec test scripts rails_engine_toolkit.gemspec
|
|
32
|
+
|
|
33
|
+
- name: Run Smoke Test (fast)
|
|
34
|
+
run: bash scripts/smoke.sh
|
|
24
35
|
|
|
25
36
|
host-app-smoke:
|
|
26
37
|
runs-on: ubuntu-latest
|
|
@@ -39,16 +50,11 @@ jobs:
|
|
|
39
50
|
- run: |
|
|
40
51
|
cp -R test/fixtures/host_app /tmp/host_app
|
|
41
52
|
cd /tmp/host_app
|
|
53
|
+
bundle config unset frozen || true
|
|
54
|
+
bundle config unset deployment || true
|
|
42
55
|
bundle config set local.rails_engine_toolkit "$GITHUB_WORKSPACE"
|
|
56
|
+
bundle config set --local frozen false
|
|
57
|
+
bundle config set --local deployment false
|
|
43
58
|
bundle install
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
EOF
|
|
52
|
-
bundle exec engine-toolkit new_engine auth <<'EOF'
|
|
53
|
-
|
|
54
|
-
EOF
|
|
59
|
+
test -f config/engine_toolkit.yml
|
|
60
|
+
printf '\n' | bundle exec engine-toolkit new_engine auth
|
|
@@ -21,7 +21,8 @@ module RailsEngineToolkit
|
|
|
21
21
|
'skip_active_storage' => '--skip-active-storage',
|
|
22
22
|
'skip_hotwire' => '--skip-hotwire',
|
|
23
23
|
'skip_jbuilder' => '--skip-jbuilder',
|
|
24
|
-
'skip_system_test' => '--skip-system-test'
|
|
24
|
+
'skip_system_test' => '--skip-system-test',
|
|
25
|
+
'skip_rubocop' => '--skip-rubocop'
|
|
25
26
|
}.freeze
|
|
26
27
|
|
|
27
28
|
attr_reader :data
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
project:
|
|
2
|
+
name: "Host App"
|
|
3
|
+
slug: "host_app"
|
|
4
|
+
url: "https://example.test/host_app"
|
|
5
|
+
|
|
6
|
+
author:
|
|
7
|
+
name: "CI"
|
|
8
|
+
email: "ci@example.test"
|
|
9
|
+
|
|
10
|
+
defaults:
|
|
11
|
+
database: "sqlite3"
|
|
12
|
+
api_only: true
|
|
13
|
+
skip_asset_pipeline: true
|
|
14
|
+
skip_action_mailbox: true
|
|
15
|
+
skip_action_text: true
|
|
16
|
+
skip_active_storage: true
|
|
17
|
+
skip_hotwire: true
|
|
18
|
+
skip_jbuilder: true
|
|
19
|
+
skip_system_test: true
|
|
20
|
+
skip_rubocop: true
|
|
21
|
+
mount_routes: true
|
|
22
|
+
create_ddd_structure: true
|
|
23
|
+
|
|
24
|
+
metadata:
|
|
25
|
+
license: "MIT"
|
|
26
|
+
ruby_version: ">= 3.2"
|
|
27
|
+
rails_version: ">= 8.1.2"
|
|
28
|
+
|
|
29
|
+
ddd:
|
|
30
|
+
folders:
|
|
31
|
+
- app/use_cases
|
|
32
|
+
- app/services
|
|
33
|
+
- app/policies
|
|
34
|
+
- app/serializers
|
|
35
|
+
- app/repositories
|
|
36
|
+
- app/contracts
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_engine_toolkit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Juan Furattini
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|
|
@@ -108,6 +108,7 @@ files:
|
|
|
108
108
|
- test/fixtures/host_app/Gemfile
|
|
109
109
|
- test/fixtures/host_app/config/application.rb
|
|
110
110
|
- test/fixtures/host_app/config/boot.rb
|
|
111
|
+
- test/fixtures/host_app/config/engine_toolkit.yml
|
|
111
112
|
- test/fixtures/host_app/config/environment.rb
|
|
112
113
|
- test/fixtures/host_app/config/routes.rb
|
|
113
114
|
homepage: https://github.com/juanfurattini/rails_engine_toolkit
|