permadeps 1446.1.4 → 1446.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b03699be940d87364b352bc06bad1e4fa1e05fc1117ee7d53df8a707b5751281
4
- data.tar.gz: ad0bf6ac5dbfb8eb6a119aa453c97b833f7e7e7ea2ea48605c42b07447129506
3
+ metadata.gz: 12006177685525856ed3b85de6a6d0a0398e29263524e8dff75adeb88a6a3f4b
4
+ data.tar.gz: 551895427c05ee9fccd89d18ef36bb7a17af7442d5e62167b7f8fefaaeee2c5f
5
5
  SHA512:
6
- metadata.gz: 9ff649e19d3f73ad7d96e27413b6052487f48bbc753f6a4224feaee09641aeee1915060e1c099939be49bdecdfa7921720f60a8365b72c7005c40badcf0c0736
7
- data.tar.gz: 557cc71fbcc1bc402e0340a8da6f177bc8815fbd6a3bc59a18c781c096c8a9c7a44be95639c9d20b328196ae373bf19ab04e528567710163cc55db5bcf797384
6
+ metadata.gz: 613ea79fa698ebf7d7768871a2ef7fb731079e701c7ff00c2803373ebd106dca1b1ff983fc3b5dc74d7a293df17d441f33d7608cc2f8b3faabe5276f6e725fa2
7
+ data.tar.gz: 7b4ec43f68b58c75e24974e9d9c039f13d0afaaaa48b20b9dd9a14df2e245b5e0bedbec26e44bd32c8cd7b4706ce07bf7abd7825d7a79634ea9ab8a3487c3a66
data/README.md CHANGED
@@ -81,41 +81,42 @@ $ rails g permadeps:install
81
81
  This generator will perform the following actions:
82
82
 
83
83
  1. Copy configuration files:
84
- - `.annotaterb.yml`: Configuration for AnnotateRb
85
- - `.better-html.yml`: Configuration for Better HTML
86
- - `.env.example`: Example environment variables file
87
- - `.erb-lint.yml`: Configuration for ERB Lint
88
- - `.rubocop.yml`: Configuration for RuboCop
84
+ - `.annotaterb.yml`: Configuration for AnnotateRb
85
+ - `.better-html.yml`: Configuration for Better HTML
86
+ - `.env.example`: Example environment variables file
87
+ - `.erb-lint.yml`: Configuration for ERB Lint
88
+ - `.rubocop.yml`: Configuration for RuboCop
89
89
 
90
90
  2. Copy initializers:
91
- - `config/initializers/better_html.rb`: Sets up Better HTML
92
- - `config/initializers/blazer.rb`: Configures Blazer
93
- - `config/initializers/rack_mini_profiler.rb`: Sets up Rack Mini Profiler
94
- - `config/initializers/rails_performance.rb`: Sets up Rails Performance
91
+ - `config/initializers/better_html.rb`: Sets up Better HTML
92
+ - `config/initializers/blazer.rb`: Configures Blazer
93
+ - `config/initializers/rack_mini_profiler.rb`: Sets up Rack Mini Profiler
94
+ - `config/initializers/rails_performance.rb`: Sets up Rails Performance
95
95
 
96
96
  3. Add background jobs for PgHero:
97
- - `app/jobs/capture_query_stats_job.rb`: Captures query statistics
98
- - `app/jobs/capture_space_stats_job.rb`: Captures space usage statistics
99
- - `app/jobs/clean_query_stats_job.rb`: Cleans up old query statistics
100
- - `app/jobs/clean_space_stats_job.rb`: Cleans up old space usage statistics
97
+ - `app/jobs/capture_query_stats_job.rb`: Captures query statistics
98
+ - `app/jobs/capture_space_stats_job.rb`: Captures space usage statistics
99
+ - `app/jobs/clean_query_stats_job.rb`: Cleans up old query statistics
100
+ - `app/jobs/clean_space_stats_job.rb`: Cleans up old space usage statistics
101
101
 
102
102
  4. Add a rake task:
103
- - `lib/tasks/annotate_rb.rake`: Task for running Annotate
103
+ - `lib/tasks/annotate_rb.rake`: Task for running Annotate
104
104
 
105
105
  5. Run generators for various gems:
106
- - `ahoy:install`: Sets up Ahoy for analytics
107
- - `blazer:install`: Installs Blazer for business intelligence
108
- - `good_job:install`: Sets up GoodJob
109
- - `notable:requests`: Sets up Notable for request tracking
110
- - `notable:jobs`: Sets up Notable for job tracking
111
- - `pghero:query_stats`: Installs PgHero query stats
112
- - `pghero:space_stats`: Installs PgHero space stats
106
+ - `ahoy:install`: Sets up Ahoy for analytics
107
+ - `blazer:install`: Installs Blazer for business intelligence
108
+ - `bullet:install`: Installs Bullet for N+1 query detection
109
+ - `good_job:install`: Sets up GoodJob
110
+ - `notable:requests`: Sets up Notable for request tracking
111
+ - `notable:jobs`: Sets up Notable for job tracking
112
+ - `pghero:query_stats`: Installs PgHero query stats
113
+ - `pghero:space_stats`: Installs PgHero space stats
113
114
 
114
115
  6. Set up Freezolite:
115
- - Adds `require 'freezolite/auto'` to `config/application.rb` for automatic string freezing
116
+ - Adds `require 'freezolite/auto'` to `config/application.rb` for automatic string freezing
116
117
 
117
118
  7. Run database migrations:
118
- - Executes `rails db:migrate` to apply all pending migrations
119
+ - Executes `rails db:migrate` to apply all pending migrations
119
120
 
120
121
  After running the generator, your Rails application will be configured with all the necessary settings and files to use the gems provided by permadeps. Make sure to review the generated files and adjust them as needed for your specific project requirements.
121
122
 
@@ -32,6 +32,7 @@ module Permadeps
32
32
  def run_generators
33
33
  generate 'ahoy:install'
34
34
  generate 'blazer:install'
35
+ generate 'bullet:install'
35
36
  generate 'good_job:install'
36
37
  generate 'notable:requests'
37
38
  generate 'notable:jobs'
@@ -39,7 +40,7 @@ module Permadeps
39
40
  generate 'pghero:space_stats'
40
41
  end
41
42
 
42
- def setup_good_job # rubocop:disable Metrics/MethodLength
43
+ def setup_good_job_gem # rubocop:disable Metrics/MethodLength
43
44
  append_to_file 'Procfile.dev', "worker: bundle exec good_job start\n"
44
45
 
45
46
  gsub_file(
@@ -87,6 +88,10 @@ module Permadeps
87
88
  )
88
89
  end
89
90
 
91
+ def setup_i18n_tasks_gem
92
+ run 'cp $(i18n-tasks gem-path)/templates/config/i18n-tasks.yml config/'
93
+ end
94
+
90
95
  def insert_engines
91
96
  insert_into_file 'config/routes.rb', before: /^end/ do
92
97
  <<-RUBY
@@ -1,3 +1,3 @@
1
1
  module Permadeps
2
- VERSION = '1446.1.4'
2
+ VERSION = '1446.1.6'
3
3
  end
data/rubocop.yml CHANGED
@@ -11,6 +11,7 @@ AllCops:
11
11
  NewCops: enable
12
12
  Exclude:
13
13
  - '**/._*'
14
+ - 'bin/*'
14
15
  - 'db/schema.rb'
15
16
  - 'lib/tools/*'
16
17
  - 'vendor/bundle/**/*'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: permadeps
3
3
  version: !ruby/object:Gem::Version
4
- version: 1446.1.4
4
+ version: 1446.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ali Hamdi Ali Fadel