rails_apps_composer 3.0.15 → 3.0.16

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a136ee091832246647bf96e11cd30c71e0ff9cb2
4
- data.tar.gz: a3971e52bd9affe9193480f57ffa172c82e65798
3
+ metadata.gz: 8bf5f3c677f7b089185fdab6832e6e30e152d2cf
4
+ data.tar.gz: f6966cc5dac42836889f4a0e076e8b4b250fc138
5
5
  SHA512:
6
- metadata.gz: b1fe943c65c6b9fe3a3dda1da4ca3095810fd10638f9737ec094322e47d845bbcd17361f0b9028196aac1b8ce4364f25d070c659c21673f0400a13162b90186e
7
- data.tar.gz: 58084249b4805c9b7a7296455cc9f6d5e1f94dad51b813c895a7bb718ec2e51c8897b51f56ea48ade80ea4000295d5eb22ea42a5cf8547fc29a838af0ac71fcc
6
+ metadata.gz: 067712b4678e1c5c870e1f3243f865cf759fdf9170eb3977118738c45f369ca6eb1d5296b8eec62052b4d476902c5f8fff1cb4ae535fde6a14cfee79f4752448
7
+ data.tar.gz: 3c4d5beef38d0d75e3903003aee3e80972aed2ce279dfea1dd1eb4e21dae62138cd036fbcf508eda20197d78c3a0a5da91426252571e6bda2cd8c16878bd179d
@@ -109,6 +109,9 @@ if prefer :authentication, 'devise'
109
109
  end
110
110
  add_gem 'devise_invitable' if prefer :devise_modules, 'invitable'
111
111
 
112
+ ## Administratative Interface (Upmin)
113
+ add_gem 'upmin-admin' if prefer :dashboard, 'upmin'
114
+
112
115
  ## Authentication (OmniAuth)
113
116
  add_gem 'omniauth' if prefer :authentication, 'omniauth'
114
117
  add_gem 'omniauth-twitter' if prefer :omniauth_provider, 'twitter'
@@ -6,6 +6,7 @@ if prefer :apps4, 'learn-rails'
6
6
  # preferences
7
7
  prefs[:authentication] = false
8
8
  prefs[:authorization] = false
9
+ prefs[:dashboard] = 'none'
9
10
  prefs[:ban_spiders] = false
10
11
  prefs[:better_errors] = true
11
12
  prefs[:database] = 'default'
@@ -18,6 +18,7 @@ stage_two do
18
18
  generate 'pages:roles -f' if prefer :authorization, 'roles'
19
19
  generate 'pages:authorized -f' if prefer :authorization, 'pundit'
20
20
  end
21
+ generate 'pages:upmin -f' if prefer :dashboard, 'upmin'
21
22
  generate 'layout:navigation -f'
22
23
  ### GIT ###
23
24
  git :add => '-A' if prefer :git, true
@@ -4,6 +4,7 @@
4
4
  if prefer :apps4, 'rails-bootstrap'
5
5
  prefs[:authentication] = false
6
6
  prefs[:authorization] = false
7
+ prefs[:dashboard] = 'none'
7
8
  prefs[:better_errors] = true
8
9
  prefs[:database] = 'default'
9
10
  prefs[:deployment] = 'none'
@@ -4,6 +4,7 @@
4
4
  if prefer :apps4, 'rails-devise'
5
5
  prefs[:authentication] = 'devise'
6
6
  prefs[:authorization] = false
7
+ prefs[:dashboard] = 'none'
7
8
  prefs[:better_errors] = true
8
9
  prefs[:deployment] = 'none'
9
10
  prefs[:git] = true
@@ -4,6 +4,7 @@
4
4
  if prefer :apps4, 'rails-foundation'
5
5
  prefs[:authentication] = false
6
6
  prefs[:authorization] = false
7
+ prefs[:dashboard] = 'none'
7
8
  prefs[:better_errors] = true
8
9
  prefs[:database] = 'default'
9
10
  prefs[:deployment] = 'none'
@@ -4,6 +4,7 @@
4
4
  if prefer :apps4, 'rails-mailinglist-signup'
5
5
  prefs[:authentication] = false
6
6
  prefs[:authorization] = false
7
+ prefs[:dashboard] = 'none'
7
8
  prefs[:better_errors] = true
8
9
  prefs[:deployment] = 'none'
9
10
  prefs[:devise_modules] = false
@@ -4,6 +4,7 @@
4
4
  if prefer :apps4, 'rails-omniauth'
5
5
  prefs[:authentication] = 'omniauth'
6
6
  prefs[:authorization] = 'none'
7
+ prefs[:dashboard] = 'none'
7
8
  prefs[:better_errors] = true
8
9
  prefs[:deployment] = 'none'
9
10
  prefs[:email] = 'none'
@@ -83,6 +83,11 @@ if (recipes.include? 'devise') || (recipes.include? 'omniauth')
83
83
  ["LinkedIn", "linkedin"], ["Google-Oauth-2", "google_oauth2"], ["Tumblr", "tumblr"]] unless prefs.has_key? :omniauth_provider
84
84
  end
85
85
  prefs[:authorization] = multiple_choice "Authorization?", [["None", "none"], ["Simple role-based", "roles"], ["Pundit", "pundit"]] unless prefs.has_key? :authorization
86
+ if prefer :authentication, 'devise'
87
+ if (prefer :authorization, 'roles') || (prefer :authorization, 'pundit')
88
+ prefs[:dashboard] = multiple_choice "Admin interface for database?", [["None", "none"], ["Upmin", "upmin"]] unless prefs.has_key? :dashboard
89
+ end
90
+ end
86
91
  end
87
92
 
88
93
  ## Form Builder
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "3.0.15"
2
+ VERSION = "3.0.16"
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.15
4
+ version: 3.0.16
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-09-08 00:00:00.000000000 Z
11
+ date: 2014-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n