rails-kompot 0.1.1 → 0.1.2
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/CHANGELOG.md +7 -0
- data/exe/rails-kompot +14 -1
- data/lib/rails/kompot/version.rb +1 -1
- data/templates/.rubocop.yml +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 442907344ce850e6023700ca3df6a5a5d957ba627f4d67f913ef3b109ab3813d
|
|
4
|
+
data.tar.gz: 067c51a776094c1e442aa016be52cb0249f72337fddec8e2fc2942a7dfe4dff0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 004a79a802077b351b826578db9c6b349bca82718cdfce75a1f41d43f516b5c6f97695d0aa43b3ec9a6c7a954a086b4b067fb0f582f217dcd7c9bc695b653ddc
|
|
7
|
+
data.tar.gz: 9bf20bdfa02f165145c5acbcc53f3d6adeb23df96d1f8cc88b45f3581771b2856b409df47c97ea37a98a47dda4a38b0ddac7a2c2cdf93470f87ec6a936305916
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.1.2] - 2026-03-02
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Run `rubocop -A` and `rspec` after app generation
|
|
13
|
+
- Run db:prepare after rails app is generated
|
|
14
|
+
|
|
8
15
|
## [0.1.1] - 2026-03-02
|
|
9
16
|
|
|
10
17
|
### Changed
|
data/exe/rails-kompot
CHANGED
|
@@ -59,6 +59,7 @@ end
|
|
|
59
59
|
|
|
60
60
|
gemfile_path = File.join(app_dir, "Gemfile")
|
|
61
61
|
File.open(gemfile_path, "a") do |f|
|
|
62
|
+
f.puts
|
|
62
63
|
f.puts 'gem "factory_bot"'
|
|
63
64
|
f.puts
|
|
64
65
|
f.puts 'group :development do'
|
|
@@ -75,6 +76,9 @@ File.open(gemfile_path, "a") do |f|
|
|
|
75
76
|
f.puts 'end'
|
|
76
77
|
end
|
|
77
78
|
|
|
79
|
+
puts "Running: rails db:prepare"
|
|
80
|
+
system("bundle", "exec", "rails", "db:prepare", chdir: app_dir) || abort("rails db:prepare failed")
|
|
81
|
+
|
|
78
82
|
puts "Running: bundle install"
|
|
79
83
|
system("bundle", "install", chdir: app_dir) || abort("bundle install failed")
|
|
80
84
|
|
|
@@ -88,4 +92,13 @@ if File.exist?(spec_helper_path)
|
|
|
88
92
|
end
|
|
89
93
|
|
|
90
94
|
puts "Running: bundle exec rails g bullet:install"
|
|
91
|
-
system("
|
|
95
|
+
system('printf "y\n" | bundle exec rails g bullet:install', chdir: app_dir) || abort("rails g bullet:install failed")
|
|
96
|
+
|
|
97
|
+
puts "Running: bundle exec rubocop -A"
|
|
98
|
+
system("bundle", "exec", "rubocop", "-A", chdir: app_dir)
|
|
99
|
+
|
|
100
|
+
puts "Running: bundle exec rspec"
|
|
101
|
+
system("bundle", "exec", "rspec", chdir: app_dir)
|
|
102
|
+
|
|
103
|
+
puts "\nDone!"
|
|
104
|
+
system("cd #{app_dir}")
|
data/lib/rails/kompot/version.rb
CHANGED
data/templates/.rubocop.yml
CHANGED