rails_apps_composer 1.5.3 → 1.5.4

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.
data/README.textile CHANGED
@@ -152,8 +152,7 @@ html5:
152
152
 
153
153
  rspec:
154
154
  rspec: true
155
- factory_girl: true
156
- machinist: false
155
+ fixtures: factory_girl
157
156
 
158
157
  sass:
159
158
  sass: true
data/recipes/compass.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  if config['compass']
2
2
  gem 'compass', :version => '~> 0.12.2', :group => [:assets]
3
- gem 'compass-rails', :version => '~> 1.0.2', :group => [:assets]
3
+ gem 'compass-rails', :version => '~> 1.0.3', :group => [:assets]
4
4
  after_bundler do
5
5
  remove_file 'app/assets/stylesheets/application.css'
6
6
 
data/recipes/guard.rb CHANGED
@@ -39,10 +39,6 @@ end
39
39
  RUBY
40
40
  end
41
41
 
42
- def guards
43
- @guards ||= []
44
- end
45
-
46
42
  def guard(name, version = nil)
47
43
  args = []
48
44
  if version
@@ -50,14 +46,11 @@ end
50
46
  end
51
47
  args << { :group => :development }
52
48
  gem "guard-#{name}", *args
53
- guards << name
54
49
  end
55
50
 
56
51
  guard 'bundler', '>= 0.1.3'
57
52
 
58
- unless recipes.include? 'pow'
59
- guard 'rails', '>= 0.0.3'
60
- end
53
+ guard 'rails', '>= 0.0.3'
61
54
 
62
55
  if recipes.include? 'guard-LiveReload'
63
56
  guard 'livereload', '>= 0.3.0'
@@ -73,9 +66,6 @@ end
73
66
 
74
67
  after_bundler do
75
68
  run 'guard init'
76
- guards.each do |name|
77
- run "guard init #{name}"
78
- end
79
69
  end
80
70
 
81
71
  else
data/recipes/heroku.rb CHANGED
@@ -25,8 +25,7 @@ after_everything do
25
25
  end
26
26
 
27
27
  unless config['domain'].blank?
28
- run "heroku addons:add custom_domains"
29
- run "heroku domains:add #{config['domain']}"
28
+ run "heroku domains:add #{config['domain']} --remote #{config['staging'] ? 'production' : 'heroku'}"
30
29
  end
31
30
 
32
31
  git :push => "#{config['staging'] ? 'staging' : 'heroku'} master" if config['deploy']
data/recipes/html5.rb CHANGED
@@ -5,7 +5,7 @@ case config['css_option']
5
5
 
6
6
  when 'foundation'
7
7
  # https://github.com/zurb/foundation-rails
8
- gem 'zurb-foundation'
8
+ gem 'zurb-foundation', '>= 3.0.2'
9
9
 
10
10
  when 'bootstrap_less'
11
11
  # https://github.com/seyhunak/twitter-bootstrap-rails
@@ -19,7 +19,7 @@ case config['css_option']
19
19
  when 'bootstrap_sass'
20
20
  # https://github.com/thomas-mcdonald/bootstrap-sass
21
21
  # http://rubysource.com/twitter-bootstrap-less-and-sass-understanding-your-options-for-rails-3-1/
22
- gem 'bootstrap-sass', '>= 2.0.3'
22
+ gem 'bootstrap-sass', '>= 2.0.4.0'
23
23
  recipes << 'bootstrap'
24
24
 
25
25
  end
@@ -407,7 +407,7 @@ HAML
407
407
  end
408
408
 
409
409
  # >---------------------------------[ html5 ]---------------------------------<
410
- gem 'bootstrap-sass', '>= 2.0.3'
410
+ gem 'bootstrap-sass', '>= 2.0.4.0'
411
411
  recipes << 'bootstrap'
412
412
  after_bundler do
413
413
  say_wizard "HTML5 recipe running 'after bundler'"
@@ -6,6 +6,14 @@ after_bundler do
6
6
  rake 'admin:ckeditor_download' if config['ckeditor']
7
7
  end
8
8
 
9
+ inject_into_file 'config/routes.rb', :after => "routes.draw do" do
10
+ <<-RUBY
11
+ \n
12
+ mount RailsAdmin::Engine => '/admin', :as => 'rails_admin'
13
+ \n
14
+ RUBY
15
+ end
16
+
9
17
  __END__
10
18
 
11
19
  name: RailsAdmin
data/recipes/rspec.rb CHANGED
@@ -6,14 +6,14 @@ if config['rspec']
6
6
  if recipes.include? 'mongoid'
7
7
  # use the database_cleaner gem to reset the test database
8
8
  gem 'database_cleaner', '>= 0.8.0', :group => :test
9
- # include RSpec matchers from the mongoid-rspec gem
10
- gem 'mongoid-rspec', '>= 1.4.6', :group => :test
9
+ # include RSpec matchers from the mongoid-rspec gem, 1.4.6 requires mongoid 3.0.0.rc making it impossible to resolve dependencies
10
+ gem 'mongoid-rspec', '1.4.5', :group => :test
11
11
  end
12
- if config['machinist']
13
- gem 'machinist', :group => :test
14
- end
15
- if config['factory_girl']
16
- gem 'factory_girl_rails', '>= 3.5.0', :group => [:development, :test]
12
+ case config['fixtures']
13
+ when 'machinist'
14
+ gem 'machinist', :group => :test
15
+ when 'factory_girl'
16
+ gem 'factory_girl_rails', '>= 3.5.0', :group => [:development, :test]
17
17
  end
18
18
  # add a collection of RSpec matchers and Cucumber steps to make testing email easy
19
19
  gem 'email_spec', '>= 1.2.1', :group => :test
@@ -38,7 +38,7 @@ if config['rspec']
38
38
  config.include(EmailSpec::Matchers)
39
39
  RUBY
40
40
  end
41
- if config['machinist']
41
+ if config['fixtures'] === 'machinist'
42
42
  say_wizard "Generating blueprints file for Machinist"
43
43
  generate 'machinist:install'
44
44
  end
@@ -52,7 +52,7 @@ RUBY
52
52
  config.generators do |g|
53
53
  g.view_specs false
54
54
  g.helper_specs false
55
- #{"g.fixture_replacement :machinist" if config['machinist']}
55
+ #{"g.fixture_replacement :machinist" if config['fixtures'] === 'machinist'}
56
56
  end
57
57
 
58
58
  RUBY
@@ -125,9 +125,7 @@ config:
125
125
  - rspec:
126
126
  type: boolean
127
127
  prompt: Would you like to use RSpec instead of TestUnit?
128
- - factory_girl:
129
- type: boolean
130
- prompt: Would you like to use factory_girl for test fixtures with RSpec?
131
- - machinist:
132
- type: boolean
133
- prompt: Would you like to use machinist for test fixtures with RSpec?
128
+ - fixtures:
129
+ type: multiple_choice
130
+ prompt: Which library would you like to use for test fixtures with RSpec?
131
+ choices: [["None", none], ["factory_girl", factory_girl], ["machinist", machinist]]
@@ -0,0 +1,29 @@
1
+ # Application template recipe for the rails_apps_composer. Check for a newer version here:
2
+ # https://github.com/RailsApps/rails_apps_composer/blob/master/recipes/unicorn.rb
3
+
4
+ case config['unicorn']
5
+ when 'development'
6
+ say_wizard "Adding 'unicorn'"
7
+ gem "unicorn-rails", :platform => :ruby, :group => [:development, :test]
8
+ when 'production'
9
+ say_wizard "Adding 'unicorn'"
10
+ gem "unicorn-rails", :platform => :ruby, :group => :production
11
+ when 'both'
12
+ say_wizard "Adding 'unicorn'"
13
+ gem "unicorn-rails", :platform => :ruby
14
+ end
15
+
16
+ __END__
17
+
18
+ name: Unicorn
19
+ description: "Use Unicorn as your default server (works on Heroku with the Celadon Cedar stack)."
20
+ author: mmacedo
21
+
22
+ category: server
23
+ tags: [server]
24
+
25
+ config:
26
+ - unicorn:
27
+ type: multiple_choice
28
+ prompt: Would you like to use unicorn as your server?
29
+ choices: [["No", no], ["In development only", development], ["In production only", production], ["Both development and production", both]]
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "1.5.3"
2
+ VERSION = "1.5.4"
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: 1.5.3
4
+ version: 1.5.4
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-06-26 00:00:00.000000000 Z
12
+ date: 2012-07-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
@@ -197,6 +197,7 @@ files:
197
197
  - recipes/slim.rb
198
198
  - recipes/static_page.rb
199
199
  - recipes/subdomains.rb
200
+ - recipes/unicorn.rb
200
201
  - recipes/users_page.rb
201
202
  - README.textile
202
203
  - version.rb
@@ -226,7 +227,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
226
227
  version: '0'
227
228
  segments:
228
229
  - 0
229
- hash: -260435814497186721
230
+ hash: -215979203623829965
230
231
  required_rubygems_version: !ruby/object:Gem::Requirement
231
232
  none: false
232
233
  requirements:
@@ -235,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
235
236
  version: '0'
236
237
  segments:
237
238
  - 0
238
- hash: -260435814497186721
239
+ hash: -215979203623829965
239
240
  requirements: []
240
241
  rubyforge_project: rails_apps_composer
241
242
  rubygems_version: 1.8.24