onotole 1.1.14 → 1.1.15
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 +4 -4
- data/README.md +5 -4
- data/lib/onotole/add_user_gems/after_install_patch.rb +7 -0
- data/lib/onotole/add_user_gems/before_bundle_patch.rb +6 -2
- data/lib/onotole/add_user_gems/edit_menu_questions.rb +2 -1
- data/lib/onotole/add_user_gems/goodbye_message.rb +1 -0
- data/lib/onotole/default_scripts.rb +5 -0
- data/lib/onotole/generators/app_generator.rb +1 -0
- data/lib/onotole/version.rb +1 -1
- data/templates/Gemfile.erb +1 -2
- data/templates/gitignore_file +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6ff42ba06b4286a0f01b1bc40141b0bedad666a
|
4
|
+
data.tar.gz: c470f375a1dc97127b247bb944f008c3d7e228b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa5cb35fc96f5b948fd9639528ba3f15db15c8da18d91f65f97d85eb7df6c9fa42771f109bbefd48c4875eb44c2e62467998e6792348bcd0387d61c45a6d574f
|
7
|
+
data.tar.gz: 78efe3f6ba31f82c34adc7d468d8800fb7dd0d969d9ef2411a49c9728f01afc10c35a98a7aed63c14a71c7d6b8c45cfab981d7f8692650848060d79b620ad8d5
|
data/README.md
CHANGED
@@ -155,6 +155,7 @@ it through a dream. http://mailcatcher.me
|
|
155
155
|
on Rails http://fotorama.io/
|
156
156
|
* [rack-cors](https://github.com/cyu/rack-cors) Rack Middleware for handling
|
157
157
|
Cross-Origin Resource Sharing (CORS), which makes cross-origin AJAX possible.
|
158
|
+
* [newrelic_rpm](https://github.com/newrelic/rpm) for monitoring performance
|
158
159
|
|
159
160
|
##### XLS & PDF
|
160
161
|
|
@@ -229,7 +230,6 @@ generated projectname/Gemfile. This gem will be installed anyway.
|
|
229
230
|
helpers
|
230
231
|
* [High Voltage](https://github.com/thoughtbot/high_voltage) for static pages
|
231
232
|
* [jQuery Rails](https://github.com/rails/jquery-rails) for jQuery
|
232
|
-
* [New Relic RPM](https://github.com/newrelic/rpm) for monitoring performance
|
233
233
|
* [Normalize](https://necolas.github.io/normalize.css/) for resetting browser styles
|
234
234
|
* [Postgres](https://github.com/ged/ruby-pg) for access to the Postgres database
|
235
235
|
* [Rack Canonical Host](https://github.com/tylerhunt/rack-canonical-host) to
|
@@ -286,9 +286,10 @@ And testing gems like:
|
|
286
286
|
All variables are stored in `.env` file and calls with project name prefix. It
|
287
287
|
made for avoid name space problems with placing more than 1 of Onotole created
|
288
288
|
app on 1 server. Onotole prefix all `env` variables with `#{app_name}` and now
|
289
|
-
you will not have any problems with export variables in production.
|
290
|
-
|
291
|
-
|
289
|
+
you will not have any problems with export variables in production. In
|
290
|
+
production environment you can make `.env.production` file and put all consants
|
291
|
+
there. Also with this thick you can easy use ENV export tool or just put ENV
|
292
|
+
variables in `.bashrc` without name space conflicts.
|
292
293
|
|
293
294
|
## Other goodies
|
294
295
|
|
@@ -9,6 +9,7 @@ module Onotole
|
|
9
9
|
:gmaps4rails,
|
10
10
|
:mailcatcher,
|
11
11
|
:rack_cors,
|
12
|
+
:image_optim,
|
12
13
|
:devise,
|
13
14
|
:validates_timeliness,
|
14
15
|
:paper_trail,
|
@@ -290,5 +291,11 @@ end
|
|
290
291
|
def after_install_ckeditor
|
291
292
|
append_file(AppBuilder.js_file, "\n#= require ckeditor/init")
|
292
293
|
end
|
294
|
+
|
295
|
+
def after_install_image_optim
|
296
|
+
file.open('config/initializers/image_optim.rb', 'w') do |f|
|
297
|
+
f.write 'Rails.application.config.assets.image_optim = {svgo: false, pngout: false}'
|
298
|
+
end
|
299
|
+
end
|
293
300
|
end
|
294
301
|
end
|
@@ -283,8 +283,8 @@ module Onotole
|
|
283
283
|
end
|
284
284
|
|
285
285
|
def add_image_optim_gem
|
286
|
-
inject_into_file('Gemfile', "\ngem 'image_optim_pack'", after: '
|
287
|
-
inject_into_file('Gemfile', "\ngem 'image_optim'", after: '
|
286
|
+
inject_into_file('Gemfile', "\ngem 'image_optim_pack'", after: 'group :development do')
|
287
|
+
inject_into_file('Gemfile', "\ngem 'image_optim'", after: 'group :development do')
|
288
288
|
end
|
289
289
|
|
290
290
|
def add_mailcatcher_gem
|
@@ -299,5 +299,9 @@ module Onotole
|
|
299
299
|
inject_into_file('Gemfile', "\n gem 'rack-mini-profiler', require: false", after: '# user_choice')
|
300
300
|
copy_file 'rack_mini_profiler.rb', 'config/initializers/rack_mini_profiler.rb'
|
301
301
|
end
|
302
|
+
|
303
|
+
def add_newrelic_rpm_gem
|
304
|
+
inject_into_file('Gemfile', "\ngem 'newrelic_rpm'", after: '# user_choice')
|
305
|
+
end
|
302
306
|
end
|
303
307
|
end
|
@@ -116,7 +116,8 @@ module Onotole
|
|
116
116
|
axlsx_rails: 'XLS support, cyrillic support, good support at all',
|
117
117
|
geocoder: 'Complete Ruby geocoding solution. http://www.rubygeocoder.com',
|
118
118
|
gmaps4rails: 'Enables easy Google map + overlays creation. http://apneadiving.github.io/',
|
119
|
-
rack_cors: 'Rack Middleware for handling Cross-Origin Resource Sharing (CORS).'
|
119
|
+
rack_cors: 'Rack Middleware for handling Cross-Origin Resource Sharing (CORS).',
|
120
|
+
newrelic_rpm: 'New Relic RPM Ruby Agent http://www.newrelic.com'
|
120
121
|
}
|
121
122
|
multiple_choice('Write numbers of all preferred gems.', variants).each do |gem|
|
122
123
|
add_to_user_choise gem
|
@@ -32,6 +32,7 @@ module Onotole
|
|
32
32
|
return unless user_choose? :image_optim
|
33
33
|
say_color YELLOW, "You may install 'svgo' for 'image_optim' by `npm install -g svgo`"
|
34
34
|
say_color YELLOW, "You may install 'pngout' for 'image_optim' from http://www.jonof.id.au/kenutils"
|
35
|
+
say_color YELLOW, 'By default this tools are switch off in image_optim.rb'
|
35
36
|
end
|
36
37
|
|
37
38
|
def rack_cors_check
|
@@ -108,6 +108,7 @@ end
|
|
108
108
|
def copy_dotfiles
|
109
109
|
directory 'dotfiles', '.', force: true
|
110
110
|
template 'dotenv.erb', '.env'
|
111
|
+
run 'touch .env.production'
|
111
112
|
end
|
112
113
|
|
113
114
|
def setup_spring
|
@@ -195,5 +196,9 @@ end
|
|
195
196
|
def apply_vendorjs_folder
|
196
197
|
inject_into_file(AppBuilder.js_file, "//= require_tree ../../../vendor/assets/javascripts/.\n", before: '//= require_tree .')
|
197
198
|
end
|
199
|
+
|
200
|
+
def add_dotenv_to_startup
|
201
|
+
inject_into_file('config/application.rb', "\nDotenv::Railtie.load\n", after: 'Bundler.require(*Rails.groups)')
|
202
|
+
end
|
198
203
|
end
|
199
204
|
end
|
data/lib/onotole/version.rb
CHANGED
data/templates/Gemfile.erb
CHANGED
@@ -9,7 +9,6 @@ gem "flutie"
|
|
9
9
|
gem "high_voltage"
|
10
10
|
gem "jquery-rails"
|
11
11
|
gem 'normalize-rails', '~> 3.0.0'
|
12
|
-
gem 'newrelic_rpm'
|
13
12
|
gem "pg"
|
14
13
|
gem "puma"
|
15
14
|
gem "rack-canonical-host"
|
@@ -21,6 +20,7 @@ gem "uglifier"
|
|
21
20
|
gem "therubyracer"
|
22
21
|
gem 'rake', '~> 10.5.0'
|
23
22
|
gem "awesome_print", :require=>"ap"
|
23
|
+
gem "dotenv-rails"
|
24
24
|
# user_choice
|
25
25
|
|
26
26
|
group :development do
|
@@ -42,7 +42,6 @@ end
|
|
42
42
|
group :development, :test do
|
43
43
|
gem "factory_girl_rails"
|
44
44
|
gem "bundler-audit", require: false
|
45
|
-
gem "dotenv-rails"
|
46
45
|
gem "rspec-rails", "~> 3.4.0"
|
47
46
|
end
|
48
47
|
|
data/templates/gitignore_file
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.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kvokka
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-04-
|
12
|
+
date: 2016-04-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|