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 +4 -4
- data/recipes/admin.rb +3 -2
- data/recipes/roles.rb +4 -0
- data/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: 4be376481b96041aeb31427ae48854ecdfc86e92
|
4
|
+
data.tar.gz: af49d00ba71b84b63241658e90cb883eeff61805
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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.
|
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-
|
11
|
+
date: 2014-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|