onotole 1.0.7 → 1.0.8

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: 94dbbef24ca6b52a5608611340f959fa47ac95a9
4
- data.tar.gz: b2be95f0998cee6a2162f7c87bbb283f91409a9e
3
+ metadata.gz: ddc9c847f5351269fde4990a5bed9e0ff6cd4623
4
+ data.tar.gz: dbf35516b4a9c84e8e6245a3b17f1acedc8c877b
5
5
  SHA512:
6
- metadata.gz: fca27009eb5b768115a7812cd140aa60961a00fba9adf6ab85527c5e9b7ae1e9740aef4d07a470a111b80a5d45231c665f301ead851e8c3392de9f7bff7da09e
7
- data.tar.gz: 226325a5bc37b4d5fa76effb22a844bbafaab9b7b0fab760e482f0444a4a760a30dc7d53008deeb15d4fca2f07d5cbe02649dfaeb636081acf9879a9178fdc6e
6
+ metadata.gz: bc9b27921b0794e2b0eafc0d9cec8174d9e149a222bff409ee79206cc4b34a59f979994a9b89a454e6cb70fa1d7b5daeafb84bbaf35fcd159d7b7b7c4bbcd37e
7
+ data.tar.gz: 2c47b3194d7b4084cdcfadc0904ad7616812ea7eeb41398ab7dc0f648d278518b903faff31934d759719e8a89f53782ee749ed5e4e54581b08fadf586e3df38d
data/README.md CHANGED
@@ -75,7 +75,10 @@ pack will not be installed with any gem option.
75
75
  creating elegant backends for website administration.
76
76
  * `*`[rubycritic](https://github.com/whitesmith/rubycritic) A Ruby code quality
77
77
  reporter
78
- * [railroady](https://github.com/preston/railroady) Model and controller UML class diagram generator. Originally based on the "railroad" plugin
78
+ * [railroady](https://github.com/preston/railroady) Model and controller UML
79
+ class diagram generator. Originally based on the "railroad" plugin
80
+ * [typus](https://github.com/typus/typus) Ruby on Rails control panel to allow
81
+ trusted users edit structured content. http://docs.typuscmf.com
79
82
 
80
83
 
81
84
  Mandatory installation gem list you will find in `Gemfile` section
@@ -4,10 +4,10 @@ module Onotole
4
4
  def post_init
5
5
  install_queue = [:devise,
6
6
  :responders,
7
+ :typus,
7
8
  :annotate,
8
9
  :overcommit,
9
10
  :activeadmin,
10
- :administrate,
11
11
  :rails_admin,
12
12
  :guard,
13
13
  :guard_rubocop,
@@ -133,5 +133,11 @@ end
133
133
  def after_install_rails_admin
134
134
  rails_generator 'rails_admin:install'
135
135
  end
136
+
137
+ def after_install_typus
138
+ rails_generator 'typus'
139
+ rails_generator 'typus:migration'
140
+ rails_generator 'typus:views'
141
+ end
136
142
  end
137
143
  end
@@ -192,5 +192,9 @@ module Onotole
192
192
  inject_into_file('Gemfile', "\n gem 'railroady', :require => false",
193
193
  after: 'group :development do')
194
194
  end
195
+
196
+ def add_typus_gem
197
+ inject_into_file('Gemfile', "\n gem 'typus', github: 'typus/typus'", after: '# user_choice')
198
+ end
195
199
  end
196
200
  end
@@ -31,9 +31,11 @@ module Onotole
31
31
  variants = { none: 'None',
32
32
  activeadmin: 'Activeadmin CMS',
33
33
  rails_admin: 'Rails admin CMS',
34
- rails_db: 'Rails DB. Simple pretty view in browser & xls export for models' }
35
- gem = choice 'Select CMS: ', variants
34
+ rails_db: 'Rails DB. Simple pretty view in browser & xls export for models',
35
+ typus: 'Typus control panel to allow trusted users edit structured content.' }
36
+ gem = choice 'Select control panel or CMS: ', variants
36
37
  add_to_user_choise(gem) if gem
38
+ puts gem
37
39
  end
38
40
 
39
41
  def choose_undroup_gems
@@ -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.0.7'
5
+ VERSION = '1.0.8'
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.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - kvokka