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 +4 -4
- data/README.md +24 -23
- data/lib/generators/permadeps/install/install_generator.rb +6 -1
- data/lib/permadeps/version.rb +1 -1
- data/rubocop.yml +1 -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: 12006177685525856ed3b85de6a6d0a0398e29263524e8dff75adeb88a6a3f4b
|
4
|
+
data.tar.gz: 551895427c05ee9fccd89d18ef36bb7a17af7442d5e62167b7f8fefaaeee2c5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
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
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
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
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
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
|
-
|
103
|
+
- `lib/tasks/annotate_rb.rake`: Task for running Annotate
|
104
104
|
|
105
105
|
5. Run generators for various gems:
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
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
|
-
|
116
|
+
- Adds `require 'freezolite/auto'` to `config/application.rb` for automatic string freezing
|
116
117
|
|
117
118
|
7. Run database migrations:
|
118
|
-
|
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
|
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
|
data/lib/permadeps/version.rb
CHANGED
data/rubocop.yml
CHANGED