rails_apps_composer 3.0.7 → 3.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: fb01bd5962b4adcede6b8f64251e3e882022b46e
4
- data.tar.gz: 6b9926a1676c9998e5705816581006700dedab3d
3
+ metadata.gz: 4be376481b96041aeb31427ae48854ecdfc86e92
4
+ data.tar.gz: af49d00ba71b84b63241658e90cb883eeff61805
5
5
  SHA512:
6
- metadata.gz: ee19881bae4349d20b178e151ddd506f7ebfb9e38c539ea43c65393fc780adc556144657ee03821ad81f31dff566892d1ae94a9b1179960e42f6438ccf231a68
7
- data.tar.gz: 77ea706f6f990c963e411aef44155d4a93d3d328cc9ee0111a7f04d9eb119db644c2595851ab1e88acbb74c536309d99dd10fdb9f750160a1bb2e61ae16260c4
6
+ metadata.gz: 5c3b0b48ef1f0114eaad23ae10991fce830c1c0673ca8ed5d249f551f438ec7b92ca9d9b8a878c9db431cf45fb5c003c658ad3769cf0e463e9a0442abddc189f
7
+ data.tar.gz: afa42d62759f6f654923c7effb9c04c2208fd862aef010f20fc2240d42097c3ebeb504e882373304ce58a9cf5c4470eaee89076d237c34386f98d697f84c9c68
data/recipes/admin.rb CHANGED
@@ -9,9 +9,10 @@ case config['admin']
9
9
  end
10
10
 
11
11
  if prefer :admin, 'activeadmin'
12
- add_gem 'activeadmin'
12
+ add_gem 'activeadmin', github: 'gregbell/active_admin'
13
+ elsif prefer :admin, 'rails_admin'
14
+ add_gem 'rails_admin'
13
15
  end
14
- add_gem 'rails_admin' if prefer :admin, 'rails_admin'
15
16
 
16
17
  stage_two do
17
18
  say_wizard "recipe stage two"
data/recipes/roles.rb CHANGED
@@ -4,6 +4,10 @@
4
4
  stage_two do
5
5
  say_wizard "recipe stage two"
6
6
  if prefer :authorization, 'pundit'
7
+ if prefer :authentication, 'none'
8
+ generate 'model User email:string'
9
+ run 'bundle exec rake db:migrate'
10
+ end
7
11
  generate 'migration AddRoleToUsers role:integer'
8
12
  role_boilerplate = " enum role: [:user, :vip, :admin]\n after_initialize :set_default_role, :if => :new_record?\n\n"
9
13
  role_boilerplate << " def set_default_role\n self.role ||= :user\n end\n\n" if prefer :authentication, 'devise'
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "3.0.7"
2
+ VERSION = "3.0.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_apps_composer
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.7
4
+ version: 3.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Kehoe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-06 00:00:00.000000000 Z
11
+ date: 2014-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n