onotole 1.1.16 → 1.1.17
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 -0
- data/lib/onotole/add_user_gems/after_install_patch.rb +13 -0
- data/lib/onotole/add_user_gems/before_bundle_patch.rb +4 -0
- data/lib/onotole/add_user_gems/edit_menu_questions.rb +9 -7
- data/lib/onotole/default_scripts.rb +1 -0
- data/lib/onotole/version.rb +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: 0a4e89a7f741f7823b8e1ecb164dc9d792b18feb
|
|
4
|
+
data.tar.gz: 85918bfb8540c82df698285cdab53bbbdd3fca88
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9d6925cf3ad482eda55b12007a1ce06448ef0e8ecab0691b505effda04d51b878e21ec62c371576e69fb16e000a0f0d3b49419d42850d1397af0c12707dfb033
|
|
7
|
+
data.tar.gz: 67f810d4703ab8bce224a7ba89dad7543cb42845a3f48f59c1f9c4b40deb462880af07e7413f51282000b139386b7c23983e3e2883e3b76a4888fd91fa576065
|
data/README.md
CHANGED
|
@@ -78,6 +78,9 @@ creating elegant backends for website administration.
|
|
|
78
78
|
for ActiveAdmin with glyphicons and flattens
|
|
79
79
|
* [active_admin_bootstrap](https://gist.github.com/ball-hayden/2fd4d40b150a39716dec)
|
|
80
80
|
Very simple ActiveAdmin Bootstrap theme
|
|
81
|
+
* [active_admin_simple_life](https://github.com/kvokka/active_admin_simple_life)
|
|
82
|
+
Gem automatize routine with creation simple menus in ActiveAdmin with minimum
|
|
83
|
+
code duplication.
|
|
81
84
|
|
|
82
85
|
#### Pagination
|
|
83
86
|
|
|
@@ -420,6 +423,8 @@ will not run
|
|
|
420
423
|
Please, do not change version or gems for default install.
|
|
421
424
|
Appname `tmp` is preferred for develop. It already added to gitignore.
|
|
422
425
|
|
|
426
|
+
Keep in mind, that tests will need installed [hub](https://github.com/github/hub)
|
|
427
|
+
|
|
423
428
|
If you find some misprints fell free to fix them.
|
|
424
429
|
|
|
425
430
|
Thank you!
|
|
@@ -23,6 +23,7 @@ module Onotole
|
|
|
23
23
|
:flattened_active_admin,
|
|
24
24
|
:face_of_active_admin,
|
|
25
25
|
:active_admin_bootstrap,
|
|
26
|
+
:active_admin_simple_life,
|
|
26
27
|
:rails_admin,
|
|
27
28
|
:guard,
|
|
28
29
|
:guard_rubocop,
|
|
@@ -299,5 +300,17 @@ end
|
|
|
299
300
|
f.write 'Rails.application.config.assets.image_optim = {svgo: false, pngout: false}'
|
|
300
301
|
end
|
|
301
302
|
end
|
|
303
|
+
|
|
304
|
+
def after_install_active_admin_simple_life
|
|
305
|
+
config = <<-DATA
|
|
306
|
+
include ActiveAdminSimpleLife
|
|
307
|
+
ActiveAdmin.setup do |config|
|
|
308
|
+
include ActiveAdminSimpleLife::SimpleElements
|
|
309
|
+
|
|
310
|
+
DATA
|
|
311
|
+
|
|
312
|
+
replace_in_file 'config/initializers/active_admin.rb',
|
|
313
|
+
'ActiveAdmin.setup do |config|', config
|
|
314
|
+
end
|
|
302
315
|
end
|
|
303
316
|
end
|
|
@@ -305,5 +305,9 @@ module Onotole
|
|
|
305
305
|
def add_newrelic_rpm_gem
|
|
306
306
|
inject_into_file('Gemfile', "\ngem 'newrelic_rpm'", after: '# user_choice')
|
|
307
307
|
end
|
|
308
|
+
|
|
309
|
+
def add_active_admin_simple_life_gem
|
|
310
|
+
inject_into_file('Gemfile', "\ngem 'active_admin_simple_life'", after: '# user_choice')
|
|
311
|
+
end
|
|
308
312
|
end
|
|
309
313
|
end
|
|
@@ -40,13 +40,15 @@ module Onotole
|
|
|
40
40
|
|
|
41
41
|
def show_active_admin_plugins_submenu
|
|
42
42
|
return unless user_choose? :activeadmin
|
|
43
|
-
variants = { none:
|
|
44
|
-
active_admin_import:
|
|
45
|
-
active_admin_theme:
|
|
46
|
-
active_skin:
|
|
47
|
-
flattened_active_admin:
|
|
48
|
-
active_admin_bootstrap:
|
|
49
|
-
face_of_active_admin:
|
|
43
|
+
variants = { none: 'None',
|
|
44
|
+
active_admin_import: 'The most efficient way to import for ActiveAdmin',
|
|
45
|
+
active_admin_theme: 'Theme, flat skin',
|
|
46
|
+
active_skin: 'Theme, flat, nice, good maintenance',
|
|
47
|
+
flattened_active_admin: 'Theme, bring your Active Admin up-to-date with this customizable add on',
|
|
48
|
+
active_admin_bootstrap: 'Theme, simple bootstrap (sass) elements',
|
|
49
|
+
face_of_active_admin: 'Theme for ActiveAdmin with glyphicons and flattens',
|
|
50
|
+
active_admin_simple_life: 'Automatize routine with creation simple menus in ActiveAdmin with minimum code duplication.'
|
|
51
|
+
}
|
|
50
52
|
themes = [:active_admin_theme, :active_skin, :flattened_active_admin]
|
|
51
53
|
multiple_choice('Select activeadmin plug-ins (Themes are SASS or SCSS only).', variants).each do |gem|
|
|
52
54
|
add_to_user_choise gem
|
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.17
|
|
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-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|