rails_apps_composer 2.4.6 → 2.4.7

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: 97d8113d3d1bea42b32172a4ec80da7104371d93
4
- data.tar.gz: dde1c7158345a9e058e9fb3ad7e2d9675cbc9065
3
+ metadata.gz: 83335ca9fa983c236bf3f23804019e104eb02126
4
+ data.tar.gz: 231e39f49a14d11be0be9b555111754d1416edbc
5
5
  SHA512:
6
- metadata.gz: 77b28c8a85269f83849d59fe7e2b292e02c05c63c2c10ca1b6442241556df486daddb8be4ae967692490c626743f974cdaf76705f653750cd9720ce949623e7a
7
- data.tar.gz: 7c8abdc3d88e5853e884b522353a44635112b384479b8ee24b28a98efad20342c8736fb3921a181686919f6508f89db432f155968aa1906b52da94da8ad3bd6d
6
+ metadata.gz: caefd7cd707a13213c90a19063029c674967e72fec4e649f90354cd50dba3d484d01affe034fc03108cea05d9f70e6c8c0a855cc3acc395298cab4ff628d96b3
7
+ data.tar.gz: 640a4638750ca5eaede69ef0638ae88bacb2847e5ac8430adcbb0dfb27ccefb371c090124ccbe9665b60669b652dfa233236e5d2fb445d13675da8cea729a07f
@@ -22,6 +22,7 @@ module RailsWizard
22
22
  @@recipes << %w(controllers email example extras frontend gems git init models railsapps readme routes setup testing views)
23
23
  @@recipes << %w(controllers email example extras frontend gems git init models prelaunch railsapps readme routes setup testing views)
24
24
  @@recipes << %w(controllers email example extras frontend gems git init models prelaunch railsapps readme routes saas setup testing views)
25
+ @@recipes << %w(apps4 controllers core email extras frontend gems git init models prelaunch railsapps readme routes saas setup testing views)
25
26
 
26
27
  ### collections of preferences that are known to work together
27
28
 
@@ -46,6 +47,7 @@ module RailsWizard
46
47
  @@prefs << {:railsapps=>"rails-stripe-membership-saas", :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"}
47
48
  @@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"}
48
49
  @@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"}
50
+ @@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", :local_env_file=>true, :continuous_testing=>"none"}
49
51
  @@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"}
50
52
  @@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'}
51
53
  @@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'}
data/recipes/gems.rb CHANGED
@@ -100,7 +100,14 @@ add_gem 'machinist', :group => :test if prefer :fixtures, 'machinist'
100
100
 
101
101
  ## Front-end Framework
102
102
  add_gem 'bootstrap-sass' if prefer :bootstrap, 'sass'
103
- add_gem 'compass-rails', :group => assets_group if prefer :frontend, 'foundation'
103
+ if prefer :frontend, 'foundation'
104
+ if rails_4?
105
+ add_gem 'compass-rails', :group => assets_group, "~> 2.0.alpha.0"
106
+ else
107
+ add_gem 'compass-rails', :group => assets_group
108
+ end
109
+ end
110
+ #add_gem 'compass-rails', :group => assets_group if prefer :frontend, 'foundation'
104
111
  add_gem 'zurb-foundation', :group => assets_group if prefer :frontend, 'foundation'
105
112
  if prefer :bootstrap, 'less'
106
113
  add_gem 'less-rails', :group => assets_group
@@ -209,7 +216,7 @@ after_bundler do
209
216
  end
210
217
  unless prefer :database, 'sqlite'
211
218
  if (prefs.has_key? :drop_database) ? prefs[:drop_database] :
212
- (yes_wizard? "Drop any existing databases named #{app_name}?")
219
+ (yes_wizard? "Okay to drop all existing databases named #{app_name}? 'No' will abort immediately!")
213
220
  run 'bundle exec rake db:drop'
214
221
  else
215
222
  raise "aborted at user's request"
data/recipes/routes.rb CHANGED
@@ -19,7 +19,10 @@ after_bundler do
19
19
  gsub_file 'config/routes.rb', /devise_for :users/, 'devise_for :users, :controllers => {:registrations => "registrations"}' if rails_4?
20
20
  end
21
21
  ## OMNIAUTH
22
- copy_from_repo 'config/routes.rb', :repo => 'https://raw.github.com/RailsApps/rails3-mongoid-omniauth/master/' if prefer :authentication, 'omniauth'
22
+ if prefer :authentication, 'omniauth'
23
+ copy_from_repo 'config/routes.rb', :repo => 'https://raw.github.com/RailsApps/rails3-mongoid-omniauth/master/'
24
+ gsub_file 'config/routes.rb', /match/, 'get' if rails_4?
25
+ end
23
26
  end
24
27
  ### SUBDOMAINS ###
25
28
  copy_from_repo 'lib/subdomain.rb', :repo => 'https://raw.github.com/RailsApps/rails3-subdomains/master/' if prefer :starter_app, 'subdomains_app'
data/recipes/setup.rb CHANGED
@@ -89,8 +89,14 @@ if recipes.include? 'models'
89
89
  if prefer :orm, 'mongoid'
90
90
  prefs[:devise_modules] = multiple_choice "Devise modules?", [["Devise with default modules","default"]] unless prefs.has_key? :devise_modules
91
91
  else
92
- prefs[:devise_modules] = multiple_choice "Devise modules?", [["Devise with default modules","default"], ["Devise with Confirmable module","confirmable"],
92
+ if rails_4?
93
+ prefs[:devise_modules] = multiple_choice "Devise modules?", [["Devise with default modules","default"],
94
+ ["Devise with Confirmable module","confirmable"],
93
95
  ["Devise with Confirmable and Invitable modules","invitable"]] unless prefs.has_key? :devise_modules
96
+ else
97
+ prefs[:devise_modules] = multiple_choice "Devise modules?", [["Devise with default modules","default"],
98
+ ["Devise with Confirmable module","confirmable"]] unless prefs.has_key? :devise_modules
99
+ end
94
100
  end
95
101
  when 'omniauth'
96
102
  prefs[:omniauth_provider] = multiple_choice "OmniAuth provider?", [["Facebook", "facebook"], ["Twitter", "twitter"], ["GitHub", "github"],
data/recipes/testing.rb CHANGED
@@ -20,7 +20,7 @@ RUBY
20
20
  say_wizard "recipe installing RSpec"
21
21
  generate 'rspec:install'
22
22
  copy_from_repo 'spec/spec_helper.rb', :repo => 'https://raw.github.com/RailsApps/rails3-devise-rspec-cucumber/master/'
23
- generate 'email_spec:steps'
23
+ generate 'email_spec:steps' if prefer :integration, 'cucumber'
24
24
  inject_into_file 'spec/spec_helper.rb', "require 'email_spec'\n", :after => "require 'rspec/rails'\n"
25
25
  inject_into_file 'spec/spec_helper.rb', :after => "RSpec.configure do |config|\n" do <<-RUBY
26
26
  config.include(EmailSpec::Helpers)
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "2.4.6"
2
+ VERSION = "2.4.7"
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: 2.4.6
4
+ version: 2.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Kehoe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-25 00:00:00.000000000 Z
11
+ date: 2013-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  version: '0'
193
193
  requirements: []
194
194
  rubyforge_project: rails_apps_composer
195
- rubygems_version: 2.0.7
195
+ rubygems_version: 2.0.6
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: A version of the RailsWizard gem with custom recipes for Rails starter apps.