onotole 1.1.4 → 1.1.5
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/lib/onotole/add_user_gems/after_install_patch.rb +14 -0
- data/lib/onotole/add_user_gems/before_bundle_patch.rb +12 -0
- data/lib/onotole/add_user_gems/edit_menu_questions.rb +13 -4
- data/lib/onotole/add_user_gems/user_gems_menu_questions.rb +1 -0
- data/lib/onotole/version.rb +1 -1
- data/templates/dotenv.erb +1 -0
- data/templates/smtp.rb.erb +1 -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: 34c06434a6bb762c5d492c91dcb8ff26ac0862b1
|
4
|
+
data.tar.gz: 8f349d7b6f14b849611cff9622a18caed24a32ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 327451f395a647f3b3e171b1535f7c7ba5909761c57bfb056b475bfc081e7e28a0e479814828465de89e2590fae2ea61ad579b2dda6e33947cd228db9522f801
|
7
|
+
data.tar.gz: 6d1085c9cc2fecf70470635d99d3cf7d55ec4fc56d5ba9a0dd1c74be59b7cc43b9fc9bdaee1a14caaa5752bd3ddd0690e7a57eacf4c40a45a61989ae6eb8b434
|
data/README.md
CHANGED
@@ -112,6 +112,10 @@ creating elegant backends for website administration.
|
|
112
112
|
tables in Prawn
|
113
113
|
* [fotoramajs](https://github.com/ai/fotoramajs) Fotorama JS gallery for Ruby
|
114
114
|
on Rails http://fotorama.io/
|
115
|
+
* [geocoder](https://github.com/alexreisner/geocoder) Complete Ruby geocoding
|
116
|
+
solution. http://www.rubygeocoder.com
|
117
|
+
* [Gmaps4rails](https://github.com/apneadiving/Google-Maps-for-Rails) Enables
|
118
|
+
easy Google map + overlays creation in Ruby apps http://apneadiving.github.io/
|
115
119
|
|
116
120
|
|
117
121
|
Mandatory installation gem list you will find in `Gemfile` section
|
@@ -4,6 +4,8 @@ module Onotole
|
|
4
4
|
def post_init
|
5
5
|
install_queue = [
|
6
6
|
:fotoramajs,
|
7
|
+
:underscore_rails,
|
8
|
+
:gmaps4rails,
|
7
9
|
:devise,
|
8
10
|
:validates_timeliness,
|
9
11
|
:paper_trail,
|
@@ -224,5 +226,17 @@ end
|
|
224
226
|
after: '//= require jquery_ujs')
|
225
227
|
append_file(AppBuilder.app_file_scss, "\n@import 'fotorama'")
|
226
228
|
end
|
229
|
+
|
230
|
+
def after_install_underscore_rails
|
231
|
+
return unless user_choose? :underscore_rails
|
232
|
+
inject_into_file(AppBuilder.js_file, "\n//= require underscore",
|
233
|
+
after: '//= require jquery_ujs')
|
234
|
+
end
|
235
|
+
|
236
|
+
def after_install_gmaps4rails
|
237
|
+
return unless user_choose? :gmaps4rails
|
238
|
+
inject_into_file(AppBuilder.js_file, "\n//= require gmaps/google",
|
239
|
+
after: '//= require underscore')
|
240
|
+
end
|
227
241
|
end
|
228
242
|
end
|
@@ -269,5 +269,17 @@ module Onotole
|
|
269
269
|
def add_fotoramajs_gem
|
270
270
|
inject_into_file('Gemfile', "\ngem 'fotoramajs'", after: '# user_choice')
|
271
271
|
end
|
272
|
+
|
273
|
+
def add_geocoder_gem
|
274
|
+
inject_into_file('Gemfile', "\ngem 'geocoder'", after: '# user_choice')
|
275
|
+
end
|
276
|
+
|
277
|
+
def add_gmaps4rails_gem
|
278
|
+
inject_into_file('Gemfile', "\ngem 'gmaps4rails'", after: '# user_choice')
|
279
|
+
end
|
280
|
+
|
281
|
+
def add_underscore_rails_gem
|
282
|
+
inject_into_file('Gemfile', "\ngem 'underscore-rails'", after: '# user_choice')
|
283
|
+
end
|
272
284
|
end
|
273
285
|
end
|
@@ -73,6 +73,7 @@ module Onotole
|
|
73
73
|
variants = { none: 'None',
|
74
74
|
faker: 'Gem for generate fake data in testing',
|
75
75
|
rubocop: 'Code inspector and code formatting tool',
|
76
|
+
rubycritic: 'A Ruby code quality reporter',
|
76
77
|
guard: 'Guard (with RSpec, livereload, rails, migrate, bundler)',
|
77
78
|
guard_rubocop: 'Auto-declare code miss in guard',
|
78
79
|
bundler_audit: 'Extra possibilities for gems version control',
|
@@ -91,24 +92,32 @@ module Onotole
|
|
91
92
|
end
|
92
93
|
end
|
93
94
|
|
95
|
+
def choose_wysiwyg
|
96
|
+
variants = { none: 'None',
|
97
|
+
ckeditor: 'CKEditor is a WYSIWYG text editor designed for web content creation.',
|
98
|
+
tinymce: 'Integration of TinyMCE with the Rails asset pipeline' }
|
99
|
+
gem = choice 'Select wysiwyg: ', variants
|
100
|
+
add_to_user_choise(gem) if gem
|
101
|
+
end
|
102
|
+
|
94
103
|
def choose_undroup_gems
|
95
104
|
variants = { none: 'None',
|
96
|
-
rubycritic: 'A Ruby code quality reporter',
|
97
105
|
responders: 'A set of responders modules to dry up your Rails 4.2+ app.',
|
98
|
-
tinymce: 'Integration of TinyMCE with the Rails asset pipeline',
|
99
106
|
activerecord_import: 'A library for bulk inserting data using ActiveRecord',
|
100
107
|
paper_trail: 'Track changes to your models data. For auditing or versioning',
|
101
108
|
cyrillizer: 'Character conversion from latin to cyrillic and vice versa',
|
102
109
|
validates_timeliness: 'Date and time validation plugin for ActiveModel and Rails',
|
103
110
|
font_awesome_sass: 'Font-Awesome Sass gem for use in Ruby/Rails projects',
|
104
|
-
ckeditor: 'CKEditor is a WYSIWYG text editor designed for web content creation.',
|
105
111
|
fotoramajs: 'Fotorama JS gallery for Rails http://fotorama.io/',
|
106
112
|
prawn: 'Prawn gem for PDF support vs prawn-table for easy tables',
|
107
|
-
axlsx_rails: 'XLS support, cyrillic support, good support at all'
|
113
|
+
axlsx_rails: 'XLS support, cyrillic support, good support at all',
|
114
|
+
geocoder: 'Complete Ruby geocoding solution. http://www.rubygeocoder.com',
|
115
|
+
gmaps4rails: 'Enables easy Google map + overlays creation. http://apneadiving.github.io/'
|
108
116
|
}
|
109
117
|
multiple_choice('Write numbers of all preferred gems.', variants).each do |gem|
|
110
118
|
add_to_user_choise gem
|
111
119
|
end
|
120
|
+
add_to_user_choise :underscore_rails if user_choose?(:gmaps4rails)
|
112
121
|
end
|
113
122
|
|
114
123
|
# template for yes/no question
|
data/lib/onotole/version.rb
CHANGED
data/templates/dotenv.erb
CHANGED
@@ -7,6 +7,7 @@ RACK_ENV=development
|
|
7
7
|
EXECJS_RUNTIME=Node
|
8
8
|
<%= "#{app_name.upcase}_SMTP_ADDRESS=smtp.example.com" %>
|
9
9
|
<%= "#{app_name.upcase}_SMTP_DOMAIN=example.com" %>
|
10
|
+
<%= "#{app_name.upcase}_SMTP_PORT=587" %>
|
10
11
|
<%= "#{app_name.upcase}_SMTP_PASSWORD=password" %>
|
11
12
|
<%= "#{app_name.upcase}_SMTP_USERNAME=username" %>
|
12
13
|
<%= "#{app_name.upcase}_WEB_CONCURRENCY=1" %>
|
data/templates/smtp.rb.erb
CHANGED
@@ -5,6 +5,6 @@ SMTP_SETTINGS = {
|
|
5
5
|
domain: ENV.fetch(<%= "#{app_name.upcase}_SMTP_DOMAIN" %>), # example: "heroku.com"
|
6
6
|
enable_starttls_auto: true,
|
7
7
|
password: ENV.fetch(<%= "#{app_name.upcase}_SMTP_PASSWORD" %>),
|
8
|
-
port:
|
8
|
+
port: ENV.fetch(<%= "#{app_name.upcase}_SMTP_PORT" %>),
|
9
9
|
user_name: ENV.fetch(<%= "#{app_name.upcase}_SMTP_USERNAME" %>)
|
10
10
|
}.freeze
|
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.5
|
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-03-
|
12
|
+
date: 2016-03-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|