onotole 1.1.16 → 1.1.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a8dd7dd3a3fb81888507b9e11c1bbdc75df569a
4
- data.tar.gz: 96a65d4e644a0b0152d9e53961f3173462f8707e
3
+ metadata.gz: 0a4e89a7f741f7823b8e1ecb164dc9d792b18feb
4
+ data.tar.gz: 85918bfb8540c82df698285cdab53bbbdd3fca88
5
5
  SHA512:
6
- metadata.gz: 6480755542c48aee82f3ff5eed19dbca350baef01308fde0be2eee24ea1cbedcb398a72de7df1336cb5e3447d55ce1c0f6fe2b8c03cfecd3271f7bc561c195f7
7
- data.tar.gz: 71e1114bc65b14ca181c539fad15e8a95bb4c04868e8d26408dc0e1c1955a3251243579a686e6dfcd53d7425a3012683aa2bb2cb78b01b4c9ee627061d3dbff4
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: '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' }
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
@@ -186,6 +186,7 @@ end
186
186
  end
187
187
 
188
188
  def configure_support_path
189
+ run 'mkdir app/support'
189
190
  run 'touch app/support/.keep'
190
191
  copy_file 'support.rb', 'config/initializers/support.rb'
191
192
 
@@ -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.16'
5
+ VERSION = '1.1.17'
6
6
  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.16
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-14 00:00:00.000000000 Z
12
+ date: 2016-04-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler