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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f5a5412c97c904030f4356388ee2a9670b5c7a824e51ecf65a653162b1da648
4
- data.tar.gz: ed995d8a58209b2347e03949d08a7dc14f8c15212bca5d695f9b76fbd3f0c540
3
+ metadata.gz: 442907344ce850e6023700ca3df6a5a5d957ba627f4d67f913ef3b109ab3813d
4
+ data.tar.gz: 067c51a776094c1e442aa016be52cb0249f72337fddec8e2fc2942a7dfe4dff0
5
5
  SHA512:
6
- metadata.gz: 73bc9dece9d50a4cb8254ac9abe296acd22569d628e19458db397a491e4dd589ec1a19716505119f9ee39e0e3d8f7a83beb565f1f76983f14dbdb378e51356c4
7
- data.tar.gz: 27d102cd291a34f34ead1f5f7676f593ee952fdd23c3ac3bc0539984409a050771d2e8896690fb278b486215e0e804ae4156782a11b4759de0a56dca283526dd
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("bundle", "exec", "rails", "g", "bullet:install", chdir: app_dir) || abort("rails g bullet:install failed")
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}")
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rails
4
4
  module Kompot
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  end
@@ -5,3 +5,9 @@ require:
5
5
  AllCops:
6
6
  NewCops: enable
7
7
  TargetRubyVersion: 3.2
8
+
9
+ Style/Documentation:
10
+ Enabled: false
11
+
12
+ Bundler/DuplicatedGroup:
13
+ Enabled: false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-kompot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anatolii Kryvishyn