onotole 1.1.10 → 1.1.12

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
  SHA1:
3
- metadata.gz: 8a131ddfd5be6704a9b71239340e1d8183e41d1f
4
- data.tar.gz: 9c5b52504622c88a393fabe0115d87a849fbae29
3
+ metadata.gz: 347ed886621839e4b9513a098ad0e714ce093001
4
+ data.tar.gz: 66e989431ad3fcf0fbf22e3a9ce5e2f3474ccec0
5
5
  SHA512:
6
- metadata.gz: a489c983b76ec5f2336827196954a88eabe8f3e82568b40888f42bc6b1a8b898c369db61745666d1c71f15bb4623305fcaeb05e7e20b49fed4d4542f7f5ae92b
7
- data.tar.gz: 0633e698e0d6cb0e3fa0dcf473fe2144eac184aeccda58b257a8cffca767e672d38989f348c600f12bc540c7a8977a4f0b2d31568b070c3c2215eecd418c1c0d
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
@@ -20,6 +20,7 @@ DEFAULT_GEMSET = [:slim,
20
20
  :clean_comments,
21
21
  :responders,
22
22
  :annotate,
23
+ :rack_mini_profiler,
23
24
  :overcommit].freeze
24
25
 
25
26
  if ['-v', '--version'].include? ARGV[0]
@@ -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;'\n\\\\$skinLogo: url('admin_logo.png') no-repeat 0 0;"
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 'face_of_active_admin/variables;'
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: '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
- meta_request: 'Rails meta panel in chrome console.'\
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
  }
@@ -2,5 +2,5 @@
2
2
  module Onotole
3
3
  RAILS_VERSION = '~> 4.2.0'
4
4
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
5
- VERSION = '1.1.10'
5
+ VERSION = '1.1.12'
6
6
  end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+ if Rails.env == 'development'
3
+ require 'rack-mini-profiler'
4
+
5
+ # initialization is skipped so trigger it
6
+ Rack::MiniProfilerRails.initialize!(Rails.application)
7
+ end
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.10
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