onotole 1.2.5 → 1.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.overcommit +77 -0
- data/README.md +3 -2
- data/lib/onotole/add_user_gems/after_install_patch.rb +32 -38
- data/lib/onotole/add_user_gems/before_bundle_patch.rb +8 -1
- data/lib/onotole/add_user_gems/edit_menu_questions.rb +3 -1
- data/lib/onotole/add_user_gems/goodbye_message.rb +1 -1
- data/lib/onotole/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cba30776c63c5220840dec9829dacfb4bddc821c
|
4
|
+
data.tar.gz: f1a229f67bf23a592879ac48f1e66cec772f5534
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 485bb102cd07549c81ac0807e7e98b17b6609e4bc63bfd191015680c12d6d831c7e875d39c46cf16e16cf940a3e4971392256bb60b6cd967e61b14f6ab066a6a
|
7
|
+
data.tar.gz: 7afa3b764db7b01070293b77dae62e6b59e96c629fdf98db456f846129be4425123c727844050f7bc9908d7f90e5b6481922b7d36cd7d670ae27908fac99ce37
|
data/.overcommit
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
CommitMsg:
|
2
|
+
ALL:
|
3
|
+
CapitalizedSubject:
|
4
|
+
enabled: true
|
5
|
+
description: 'Checking subject capitalization'
|
6
|
+
EmptyMessage:
|
7
|
+
enabled: true
|
8
|
+
description: 'Checking for empty commit message'
|
9
|
+
quiet: true
|
10
|
+
HardTabs:
|
11
|
+
enabled: true
|
12
|
+
description: 'Checking for hard tabs'
|
13
|
+
RussianNovel:
|
14
|
+
enabled: true
|
15
|
+
description: 'Checking length of commit message'
|
16
|
+
quiet: true
|
17
|
+
SingleLineSubject:
|
18
|
+
enabled: true
|
19
|
+
description: 'Checking subject line'
|
20
|
+
SpellCheck:
|
21
|
+
enabled: false
|
22
|
+
description: 'Checking for misspelled words'
|
23
|
+
required_executable: 'hunspell'
|
24
|
+
flags: ['-a']
|
25
|
+
TextWidth:
|
26
|
+
enabled: true
|
27
|
+
description: 'Checking text width'
|
28
|
+
max_subject_width: 60
|
29
|
+
max_body_width: 72
|
30
|
+
TrailingPeriod:
|
31
|
+
enabled: true
|
32
|
+
description: 'Checking for trailing periods in subject'
|
33
|
+
PreCommit:
|
34
|
+
ALL:
|
35
|
+
problem_on_unmodified_line: report
|
36
|
+
requires_files: true
|
37
|
+
required: false
|
38
|
+
quiet: false
|
39
|
+
AuthorEmail:
|
40
|
+
enabled: true
|
41
|
+
description: 'Checking author email'
|
42
|
+
requires_files: false
|
43
|
+
required: true
|
44
|
+
quiet: true
|
45
|
+
pattern: '^[^@]+@.*$'
|
46
|
+
AuthorName:
|
47
|
+
enabled: false
|
48
|
+
description: 'Checking for author name'
|
49
|
+
requires_files: false
|
50
|
+
required: true
|
51
|
+
quiet: true
|
52
|
+
BrokenSymlinks:
|
53
|
+
enabled: true
|
54
|
+
description: 'Checking for broken symlinks'
|
55
|
+
quiet: true
|
56
|
+
CaseConflicts:
|
57
|
+
enabled: true
|
58
|
+
description: 'Checking for case-insensitivity conflicts'
|
59
|
+
quiet: true
|
60
|
+
MergeConflicts:
|
61
|
+
enabled: true
|
62
|
+
description: 'Checking for merge conflicts'
|
63
|
+
quiet: true
|
64
|
+
required_executable: 'grep'
|
65
|
+
flags: ['-IHn', "^<<<<<<<[ \t]"]
|
66
|
+
RuboCop:
|
67
|
+
enabled: ture
|
68
|
+
description: 'Analyzing with RuboCop'
|
69
|
+
required_executable: 'rubocop'
|
70
|
+
flags: ['--format=emacs', '--force-exclusion', '--display-cop-names']
|
71
|
+
install_command: 'gem install rubocop'
|
72
|
+
include:
|
73
|
+
- '**/*.gemspec'
|
74
|
+
- '**/*.rake'
|
75
|
+
- '**/*.rb'
|
76
|
+
- '**/Gemfile'
|
77
|
+
- '**/Rakefile'
|
data/README.md
CHANGED
@@ -156,8 +156,6 @@ for ruby 2.1+
|
|
156
156
|
|
157
157
|
#### Misc
|
158
158
|
|
159
|
-
|
160
|
-
|
161
159
|
* [activerecord_import](https://github.com/zdennis/activerecord-import)
|
162
160
|
Activerecord-import is a library for bulk inserting data using ActiveRecord.
|
163
161
|
* `*`[responders](https://github.com/plataformatec/responders) A set of responders
|
@@ -176,6 +174,9 @@ for ruby 2.1+
|
|
176
174
|
* [rack-cors](https://github.com/cyu/rack-cors) Rack Middleware for handling
|
177
175
|
Cross-Origin Resource Sharing (CORS), which makes cross-origin AJAX possible.
|
178
176
|
* [newrelic_rpm](https://github.com/newrelic/rpm) for monitoring performance
|
177
|
+
* [invisible_captcha](https://github.com/markets/invisible_captcha) Unobtrusive
|
178
|
+
and flexible spam protection for RoR apps
|
179
|
+
|
179
180
|
|
180
181
|
##### XLS & PDF
|
181
182
|
|
@@ -2,44 +2,34 @@
|
|
2
2
|
module Onotole
|
3
3
|
module AfterInstallPatch
|
4
4
|
def post_init
|
5
|
-
install_queue = [
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
:guard_rubocop,
|
34
|
-
:bootstrap3_sass,
|
35
|
-
:bootstrap3,
|
36
|
-
:devise_bootstrap_views,
|
37
|
-
:active_admin_theme,
|
38
|
-
:font_awesome_sass,
|
39
|
-
:normalize,
|
40
|
-
:tinymce,
|
41
|
-
:rubocop,
|
42
|
-
:create_github_repo]
|
5
|
+
install_queue = [:redis, :redis_rails, :redis_namespace,
|
6
|
+
:carrierwave,
|
7
|
+
:sitemap_generator,
|
8
|
+
:ckeditor,
|
9
|
+
:fotoramajs,
|
10
|
+
:underscore_rails,
|
11
|
+
:gmaps4rails,
|
12
|
+
:mailcatcher,
|
13
|
+
:rack_cors,
|
14
|
+
:image_optim,
|
15
|
+
:devise,
|
16
|
+
:validates_timeliness,
|
17
|
+
:paper_trail,
|
18
|
+
:responders,
|
19
|
+
:typus,
|
20
|
+
:annotate,
|
21
|
+
:overcommit,
|
22
|
+
:activeadmin, :active_admin_theme, :acive_skin, :flattened_active_admin,
|
23
|
+
:face_of_active_admin, :active_admin_bootstrap, :active_admin_simple_life,
|
24
|
+
:rails_admin,
|
25
|
+
:guard, :guard_rubocop,
|
26
|
+
:bootstrap3_sass, :bootstrap3, :devise_bootstrap_views,
|
27
|
+
:active_admin_theme,
|
28
|
+
:font_awesome_sass,
|
29
|
+
:normalize,
|
30
|
+
:tinymce,
|
31
|
+
:rubocop,
|
32
|
+
:create_github_repo]
|
43
33
|
install_queue.each { |g| send "after_install_#{g}" if user_choose? g }
|
44
34
|
delete_comments
|
45
35
|
end
|
@@ -358,5 +348,9 @@ DATA
|
|
358
348
|
config = "\n include CarrierWave::MiniMagick\n"
|
359
349
|
inject_into_class uploader_path, "#{AppBuilder.file_storage_name.classify}Uploader", config
|
360
350
|
end
|
351
|
+
|
352
|
+
def after_install_sitemap_generator
|
353
|
+
bundle_command 'exec sitemap:install'
|
354
|
+
end
|
361
355
|
end
|
362
356
|
end
|
@@ -153,7 +153,6 @@ module Onotole
|
|
153
153
|
- '**/*.rb'
|
154
154
|
- '**/Gemfile'
|
155
155
|
- '**/Rakefile'
|
156
|
-
|
157
156
|
OVER
|
158
157
|
append_file '.overcommit.yml', rubocop_overcommit if user_choose?(:rubocop)
|
159
158
|
end
|
@@ -335,5 +334,13 @@ module Onotole
|
|
335
334
|
"\ngem 'mini_magick', '~> 4.5.0'",
|
336
335
|
after: '# user_choice') if AppBuilder.file_storage_name
|
337
336
|
end
|
337
|
+
|
338
|
+
def add_invisible_captcha_gem
|
339
|
+
inject_into_file('Gemfile', "\ngem 'invisible_captcha'", after: '# user_choice')
|
340
|
+
end
|
341
|
+
|
342
|
+
def add_sitemap_generator_gem
|
343
|
+
inject_into_file('Gemfile', "\ngem 'sitemap_generator', :require => false", after: 'group :development do')
|
344
|
+
end
|
338
345
|
end
|
339
346
|
end
|
@@ -121,7 +121,9 @@ module Onotole
|
|
121
121
|
geocoder: 'Complete Ruby geocoding solution. http://www.rubygeocoder.com',
|
122
122
|
gmaps4rails: 'Enables easy Google map + overlays creation. http://apneadiving.github.io/',
|
123
123
|
rack_cors: 'Rack Middleware for handling Cross-Origin Resource Sharing (CORS).',
|
124
|
-
newrelic_rpm: 'New Relic RPM Ruby Agent http://www.newrelic.com'
|
124
|
+
newrelic_rpm: 'New Relic RPM Ruby Agent http://www.newrelic.com',
|
125
|
+
invisible_captcha: 'Unobtrusive and flexible spam protection for RoR apps',
|
126
|
+
sitemap_generator: 'SitemapGenerator is the easiest way to generate Sitemaps in Ruby.'
|
125
127
|
}
|
126
128
|
multiple_choice('Write numbers of all preferred gems.', variants).each do |gem|
|
127
129
|
add_to_user_choise gem
|
@@ -43,7 +43,7 @@ module Onotole
|
|
43
43
|
|
44
44
|
def ckeditor_check
|
45
45
|
return unless user_choose? :ckeditor
|
46
|
-
return if user_choose?
|
46
|
+
return if user_choose?(:carrierwave) && AppBuilder.file_storage_name
|
47
47
|
say_color YELLOW, 'Visit ckeditor homepage and install back-end for it.'
|
48
48
|
end
|
49
49
|
|
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.2.
|
4
|
+
version: 1.2.6
|
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-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -67,6 +67,7 @@ extra_rdoc_files:
|
|
67
67
|
- LICENSE
|
68
68
|
files:
|
69
69
|
- ".gitignore"
|
70
|
+
- ".overcommit"
|
70
71
|
- ".overcommit.yml"
|
71
72
|
- ".rubocop.yml"
|
72
73
|
- ".rubocop_todo.yml"
|