rails_apps_composer 2.2.13 → 2.2.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -40,9 +40,9 @@ module RailsWizard
40
40
  @@prefs << {:railsapps=>"rails-prelaunch-signup", :database=>"sqlite", :unit_test=>"rspec", :integration=>"cucumber", :fixtures=>"factory_girl", :frontend=>"bootstrap", :bootstrap=>"sass", :email=>"mandrill", :authentication=>"devise", :devise_modules=>"confirmable", :authorization=>"cancan", :starter_app=>"admin_app", :form_builder=>"simple_form"}
41
41
  @@prefs << {:railsapps=>"rails3-bootstrap-devise-cancan", :database=>"sqlite", :unit_test=>"rspec", :integration=>"cucumber", :fixtures=>"factory_girl", :frontend=>"bootstrap", :bootstrap=>"sass", :email=>"gmail", :authentication=>"devise", :devise_modules=>"default", :authorization=>"cancan", :starter_app=>"admin_app", :form_builder=>"simple_form"}
42
42
  @@prefs << {:railsapps=>"rails3-devise-rspec-cucumber", :database=>"sqlite", :unit_test=>"rspec", :integration=>"cucumber", :fixtures=>"factory_girl", :frontend=>"none", :email=>"gmail", :authentication=>"devise", :devise_modules=>"default", :authorization=>"none", :starter_app=>"users_app", :form_builder=>"none"}
43
- @@prefs << {:railsapps=>"rails3-mongoid-devise", :database=>'mongodb', :orm=>'mongoid', :templates=>'erb', :unit_test=>'rspec', :integration=>'cucumber', :fixtures=>'factory_girl', :frontend=>'none', :email=>'gmail', :authentication=>'devise', :devise_modules=>'default', :authorization=>'none', :starter_app=>'users_app', :form_builder=>'none'}
44
- @@prefs << {:railsapps=>"rails3-mongoid-omniauth", :database=>'mongodb', :orm=>'mongoid', :templates=>'erb', :unit_test=>'rspec', :integration=>'cucumber', :fixtures=>'factory_girl', :frontend=>'none', :email=>'none', :authentication=>'omniauth', :omniauth_provider=>'twitter', :authorization=>'none', :starter_app=>'users_app', :form_builder=>'none'}
45
- @@prefs << {:railsapps=>"rails3-subdomains", :database=>'mongodb', :orm=>'mongoid', :templates=>'haml', :unit_test=>'rspec', :integration=>'cucumber', :fixtures=>'factory_girl', :frontend=>'none', :email=>'gmail', :authentication=>'devise', :devise_modules=>'default', :authorization=>'none', :starter_app=>'subdomains_app', :form_builder=>'none'}
43
+ @@prefs << {:railsapps=>"rails3-mongoid-devise", :database=>'mongodb', :orm=>'mongoid', :unit_test=>'rspec', :integration=>'cucumber', :fixtures=>'factory_girl', :frontend=>'none', :email=>'gmail', :authentication=>'devise', :devise_modules=>'default', :authorization=>'none', :starter_app=>'users_app', :form_builder=>'none'}
44
+ @@prefs << {:railsapps=>"rails3-mongoid-omniauth", :database=>'mongodb', :orm=>'mongoid', :unit_test=>'rspec', :integration=>'cucumber', :fixtures=>'factory_girl', :frontend=>'none', :email=>'none', :authentication=>'omniauth', :omniauth_provider=>'twitter', :authorization=>'none', :starter_app=>'users_app', :form_builder=>'none'}
45
+ @@prefs << {:railsapps=>"rails3-subdomains", :database=>'mongodb', :orm=>'mongoid', :unit_test=>'rspec', :integration=>'cucumber', :fixtures=>'factory_girl', :frontend=>'none', :email=>'gmail', :authentication=>'devise', :devise_modules=>'default', :authorization=>'none', :starter_app=>'subdomains_app', :form_builder=>'none'}
46
46
  @@prefs << {:railsapps=>"none", :database=>"sqlite", :unit_test=>"rspec", :integration=>"rspec-capybara", :fixtures=>"factory_girl", :frontend=>"bootstrap", :bootstrap=>"sass", :email=>"none", :authentication=>"omniauth", :omniauth_provider=>"twitter", :authorization=>"cancan", :form_builder=>"none", :starter_app=>"admin_app"}
47
47
  @@prefs << {:railsapps=>"none", :database=>"sqlite", :unit_test=>"rspec", :integration=>"cucumber", :fixtures=>"none", :frontend=>"bootstrap", :bootstrap=>"sass", :email=>"gmail", :authentication=>"devise", :devise_modules=>"invitable", :authorization=>"cancan", :form_builder=>"simple_form", :starter_app=>"admin_app"}
48
48
  @@prefs << {:railsapps=>"none", :database=>"sqlite", :unit_test=>"rspec", :integration=>"cucumber", :fixtures=>"factory_girl", :frontend=>"bootstrap", :bootstrap=>"sass", :email=>"gmail", :authentication=>"devise", :devise_modules=>"default", :authorization=>"cancan", :form_builder=>"none", :starter_app=>"admin_app"}
data/recipes/gems.rb CHANGED
@@ -22,7 +22,7 @@ end
22
22
 
23
23
  ## Database Adapter
24
24
  gsub_file 'Gemfile', /gem 'sqlite3'\n/, '' unless prefer :database, 'sqlite'
25
- gem 'mongoid', '>= 3.0.6' if prefer :orm, 'mongoid'
25
+ gem 'mongoid', '>= 3.0.9' if prefer :orm, 'mongoid'
26
26
  gem 'pg', '>= 0.14.1' if prefer :database, 'postgresql'
27
27
  gem 'mysql2', '>= 0.3.11' if prefer :database, 'mysql'
28
28
 
@@ -50,7 +50,7 @@ if prefer :unit_test, 'rspec'
50
50
  gem 'capybara', '>= 1.1.2', :group => :test if prefer :integration, 'rspec-capybara'
51
51
  if prefer :orm, 'mongoid'
52
52
  # use the database_cleaner gem to reset the test database
53
- gem 'database_cleaner', '>= 0.8.0', :group => :test
53
+ gem 'database_cleaner', '>= 0.9.1', :group => :test
54
54
  # include RSpec matchers from the mongoid-rspec gem
55
55
  gem 'mongoid-rspec', '>= 1.4.6', :group => :test
56
56
  end
@@ -63,7 +63,7 @@ if prefer :unit_test, 'minitest'
63
63
  end
64
64
  if prefer :integration, 'cucumber'
65
65
  gem 'cucumber-rails', '>= 1.3.0', :group => :test, :require => false
66
- gem 'database_cleaner', '>= 0.8.0', :group => :test unless prefer :orm, 'mongoid'
66
+ gem 'database_cleaner', '>= 0.9.1', :group => :test unless prefer :orm, 'mongoid'
67
67
  gem 'launchy', '>= 2.1.2', :group => :test
68
68
  gem 'capybara', '>= 1.1.2', :group => :test
69
69
  end
@@ -106,7 +106,7 @@ if prefer :authorization, 'cancan'
106
106
  end
107
107
 
108
108
  ## Form Builder
109
- gem 'simple_form', '>= 2.0.3' if prefer :form_builder, 'simple_form'
109
+ gem 'simple_form', '>= 2.0.4' if prefer :form_builder, 'simple_form'
110
110
 
111
111
  ## Signup App
112
112
  if prefer :railsapps, 'rails-prelaunch-signup'
@@ -164,8 +164,7 @@ after_bundler do
164
164
  gsub_file "config/database.yml", /database: myapp_production/, "database: #{app_name}_production"
165
165
  end
166
166
  unless prefer :database, 'sqlite'
167
- affirm = multiple_choice "Drop any existing databases named #{app_name}?",
168
- [["Yes (continue)",true], ["No (abort)",false]]
167
+ affirm = yes_wizard? "Drop any existing databases named #{app_name}?"
169
168
  if affirm
170
169
  run 'bundle exec rake db:drop'
171
170
  else
data/recipes/init.rb CHANGED
@@ -5,7 +5,7 @@ after_everything do
5
5
  say_wizard "recipe running after everything"
6
6
  ### PREPARE SEED ###
7
7
  if prefer :authentication, 'devise'
8
- if prefer :authorization, 'cancan'
8
+ if (prefer :authorization, 'cancan') && !(prefer :railsapps, 'rails-prelaunch-signup')
9
9
  append_file 'db/seeds.rb' do <<-FILE
10
10
  puts 'CREATING ROLES'
11
11
  Role.create([
@@ -50,6 +50,9 @@ user2.add_role :VIP
50
50
  FILE
51
51
  end
52
52
  end
53
+ if prefer :railsapps, 'rails-prelaunch-signup'
54
+ gsub_file 'db/seeds.rb', /user2.add_role :VIP/, ''
55
+ end
53
56
  ## DEVISE-INVITABLE
54
57
  if prefer :devise_modules, 'invitable'
55
58
  run 'bundle exec rake db:migrate'
data/recipes/setup.rb CHANGED
@@ -49,7 +49,7 @@ case prefs[:database]
49
49
  end
50
50
 
51
51
  ## Template Engine
52
- prefs[:templates] = multiple_choice "Template engine?", [["ERB", "erb"], ["Haml", "haml"], ["Slim", "slim"]] unless prefs.has_key? :templates
52
+ prefs[:templates] = multiple_choice "Template engine?", [["ERB", "erb"], ["Haml", "haml"], ["Slim (experimental)", "slim"]] unless prefs.has_key? :templates
53
53
 
54
54
  ## Testing Framework
55
55
  if recipes.include? 'testing'
data/recipes/views.rb CHANGED
@@ -24,7 +24,9 @@ after_bundler do
24
24
  ## INDEX
25
25
  if prefer :starter_app, 'admin_app'
26
26
  copy_from_repo 'app/views/users/index.html.erb', :repo => 'https://raw.github.com/RailsApps/rails3-bootstrap-devise-cancan/master/'
27
- copy_from_repo 'app/views/users/_user.html.erb', :repo => 'https://raw.github.com/RailsApps/rails3-bootstrap-devise-cancan/master/'
27
+ unless prefer :railsapps, 'rails-prelaunch-signup'
28
+ copy_from_repo 'app/views/users/_user.html.erb', :repo => 'https://raw.github.com/RailsApps/rails3-bootstrap-devise-cancan/master/'
29
+ end
28
30
  else
29
31
  copy_from_repo 'app/views/users/index.html.erb'
30
32
  end
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "2.2.13"
2
+ VERSION = "2.2.14"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_apps_composer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.13
4
+ version: 2.2.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-10 00:00:00.000000000 Z
12
+ date: 2012-10-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
@@ -201,7 +201,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
201
201
  version: '0'
202
202
  segments:
203
203
  - 0
204
- hash: -1175454291727273147
204
+ hash: 3353368250220839575
205
205
  required_rubygems_version: !ruby/object:Gem::Requirement
206
206
  none: false
207
207
  requirements:
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  version: '0'
211
211
  segments:
212
212
  - 0
213
- hash: -1175454291727273147
213
+ hash: 3353368250220839575
214
214
  requirements: []
215
215
  rubyforge_project: rails_apps_composer
216
216
  rubygems_version: 1.8.24