onotole 1.1.10 → 1.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/bin/onotole +1 -0
- data/lib/onotole/add_user_gems/after_install_patch.rb +7 -7
- data/lib/onotole/add_user_gems/before_bundle_patch.rb +5 -0
- data/lib/onotole/add_user_gems/edit_menu_questions.rb +17 -16
- data/lib/onotole/version.rb +1 -1
- data/templates/rack_mini_profiler.rb +7 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 347ed886621839e4b9513a098ad0e714ce093001
|
4
|
+
data.tar.gz: 66e989431ad3fcf0fbf22e3a9ce5e2f3474ccec0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 196aee08a5cde6f7c1c4e1e8a21d7faaf53e5020144a5fff2f3c454ec39c1535563777f9e020936b2489320a23b569e1fc749ad9c2d20122601307b217f66ff7
|
7
|
+
data.tar.gz: 0f8da2e90c62309311b7cf97b4cefec78705a435c60032e8aee8bb9e84e26d4d532b435dc00db99ae556bbec36d0c56c87215d54850e55b404edb520d9d2b29a
|
data/README.md
CHANGED
@@ -129,6 +129,10 @@ Bootstrap kaminari plugin
|
|
129
129
|
optionally lossy) images (jpeg, png, gif, svg) using external utilities
|
130
130
|
* [mailcatcher](https://github.com/sj26/mailcatcher) Catches mail and serves
|
131
131
|
it through a dream. http://mailcatcher.me
|
132
|
+
* `*`[rack-mini-profiler](https://github.com/MiniProfiler/rack-mini-profiler)
|
133
|
+
Middleware that displays speed badge for every html page. Designed to work both
|
134
|
+
in production and in development.
|
135
|
+
|
132
136
|
|
133
137
|
#### Misc
|
134
138
|
|
data/bin/onotole
CHANGED
@@ -207,16 +207,16 @@ end
|
|
207
207
|
def after_install_acive_skin
|
208
208
|
return unless user_choose? :activeadmin
|
209
209
|
File.open('app/assets/stylesheets/active_admin.scss', 'a') do |f|
|
210
|
-
f.write "\n@import 'active_skin
|
210
|
+
f.write "\n@import 'active_skin';\n\\\\$skinLogo: url('admin_logo.png') no-repeat 0 0;"
|
211
211
|
end
|
212
212
|
end
|
213
213
|
|
214
214
|
def after_install_flattened_active_admin
|
215
215
|
return unless user_choose? :activeadmin
|
216
216
|
File.open('app/assets/stylesheets/active_admin.scss', 'w') do |f|
|
217
|
-
f.write "\n@import 'flattened_active_admin/variables;
|
218
|
-
\n@import 'flattened_active_admin/mixins;
|
219
|
-
\n@import 'flattened_active_admin/base;
|
217
|
+
f.write "\n@import 'flattened_active_admin/variables';
|
218
|
+
\n@import 'flattened_active_admin/mixins';
|
219
|
+
\n@import 'flattened_active_admin/base';"
|
220
220
|
end
|
221
221
|
rails_generator 'flattened_active_admin:variables'
|
222
222
|
end
|
@@ -224,9 +224,9 @@ end
|
|
224
224
|
def after_install_face_of_active_admin
|
225
225
|
return unless user_choose? :activeadmin
|
226
226
|
File.open('app/assets/stylesheets/active_admin.scss', 'w') do |f|
|
227
|
-
f.write "\n@import '
|
228
|
-
\n@import 'face_of_active_admin/mixins;
|
229
|
-
\n@import 'face_of_active_admin/base;
|
227
|
+
f.write "\n@import 'face_of_active_admin_variables';
|
228
|
+
\n@import 'face_of_active_admin/mixins';
|
229
|
+
\n@import 'face_of_active_admin/base';"
|
230
230
|
end
|
231
231
|
append_file 'app/assets/javascripts/active_admin.js.coffee',
|
232
232
|
"\n#= require face_of_active_admin/base"
|
@@ -294,5 +294,10 @@ module Onotole
|
|
294
294
|
def add_rack_cors_gem
|
295
295
|
inject_into_file('Gemfile', "\ngem 'rack-cors', :require => 'rack/cors'", after: '# user_choice')
|
296
296
|
end
|
297
|
+
|
298
|
+
def add_rack_mini_profiler_gem
|
299
|
+
inject_into_file('Gemfile', "\n gem 'rack-mini-profiler', require: false", after: '# user_choice')
|
300
|
+
copy_file 'rack_mini_profiler.rb', 'config/initializers/rack_mini_profiler.rb'
|
301
|
+
end
|
297
302
|
end
|
298
303
|
end
|
@@ -70,22 +70,23 @@ module Onotole
|
|
70
70
|
end
|
71
71
|
|
72
72
|
def choose_develoder_tools
|
73
|
-
variants = { none:
|
74
|
-
faker:
|
75
|
-
rubocop:
|
76
|
-
rubycritic:
|
77
|
-
guard:
|
78
|
-
guard_rubocop:
|
79
|
-
bundler_audit:
|
80
|
-
airbrake:
|
81
|
-
annotate:
|
82
|
-
overcommit:
|
83
|
-
railroady:
|
84
|
-
hirbunicode:
|
85
|
-
dotenv_heroku:
|
86
|
-
image_optim:
|
87
|
-
mailcatcher:
|
88
|
-
|
73
|
+
variants = { none: 'None',
|
74
|
+
faker: 'Gem for generate fake data in testing',
|
75
|
+
rubocop: 'Code inspector and code formatting tool',
|
76
|
+
rubycritic: 'A Ruby code quality reporter',
|
77
|
+
guard: 'Guard (with RSpec, livereload, rails, migrate, bundler)',
|
78
|
+
guard_rubocop: 'Auto-declare code miss in guard',
|
79
|
+
bundler_audit: 'Extra possibilities for gems version control',
|
80
|
+
airbrake: 'Airbrake error logging',
|
81
|
+
annotate: 'Annotate Rails classes with schema and routes info',
|
82
|
+
overcommit: 'A fully configurable and extendable Git hook manager',
|
83
|
+
railroady: 'Model and controller UML class diagram generator',
|
84
|
+
hirbunicode: 'Hirb unicode support',
|
85
|
+
dotenv_heroku: 'dotenv-heroku support',
|
86
|
+
image_optim: 'Optimize images (jpeg, png, gif, svg) using external utilities',
|
87
|
+
mailcatcher: 'Catches mail and serves it through a dream. http://mailcatcher.me',
|
88
|
+
rack_mini_profiler: 'Middleware that displays speed badge for every html page.',
|
89
|
+
meta_request: 'Rails meta panel in chrome console.'\
|
89
90
|
" Very usefull in\n#{' ' * 24}AJAX debugging. Link for chrome"\
|
90
91
|
" add-on in Gemfile.\n#{' ' * 24}Do not delete comments if you need this link"
|
91
92
|
}
|
data/lib/onotole/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onotole
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kvokka
|
@@ -162,6 +162,7 @@ files:
|
|
162
162
|
- templates/onotole_overcommit.yml
|
163
163
|
- templates/postgresql_database.yml.erb
|
164
164
|
- templates/puma.rb.erb
|
165
|
+
- templates/rack_mini_profiler.rb
|
165
166
|
- templates/rails_helper.rb
|
166
167
|
- templates/rubocop.yml
|
167
168
|
- templates/secrets.yml
|