rails_apps_composer 1.0.15 → 1.0.16

Sign up to get free protection for your applications and to get access to all the features.
data/recipes/devise.rb CHANGED
@@ -7,7 +7,7 @@ if config['devise']
7
7
  gem 'devise', '1.3.4'
8
8
  else
9
9
  # for Rails 3.1+, use optimistic versioning for gems
10
- gem 'devise', '>= 1.4.2'
10
+ gem 'devise', '>= 1.4.4'
11
11
  end
12
12
  else
13
13
  recipes.delete('devise')
@@ -37,7 +37,7 @@ if config['devise']
37
37
  if recipes.include? 'cucumber'
38
38
  # Cucumber wants to test GET requests not DELETE requests for destroy_user_session_path
39
39
  # (see https://github.com/RailsApps/rails3-devise-rspec-cucumber/issues/3)
40
- gsub_file 'config/initializers/devise.rb', 'config.sign_out_via = :delete', 'config.sign_out_via = :get'
40
+ gsub_file 'config/initializers/devise.rb', 'config.sign_out_via = :delete', 'config.sign_out_via = Rails.env.test? ? :get : :delete'
41
41
  end
42
42
 
43
43
  end
data/recipes/mongoid.rb CHANGED
@@ -11,7 +11,7 @@ if config['mongoid']
11
11
  else
12
12
  # for Rails 3.1+, use optimistic versioning for gems
13
13
  gem 'bson_ext', '>= 1.3.1'
14
- gem 'mongoid', '>= 2.1.9'
14
+ gem 'mongoid', '>= 2.2.0'
15
15
  end
16
16
  else
17
17
  recipes.delete('mongoid')
data/recipes/sass.rb CHANGED
@@ -1,11 +1,25 @@
1
1
  gem 'sass', '>= 3.1.6'
2
2
 
3
+ if config['sass']
4
+ after_bundler do
5
+ create_file 'config/initializers/sass.rb' do <<-RUBY
6
+ Rails.application.config.generators.stylesheet_engine = :sass
7
+ RUBY
8
+ end
9
+ end
10
+ end
11
+
3
12
  __END__
4
13
 
5
14
  name: SASS
6
15
  description: "Utilize SASS for really awesome stylesheets!"
7
- author: mbleigh & mrc2407
16
+ author: mbleigh, mrc2407, & ashley_woodard
8
17
 
9
18
  exclusive: css_replacement
10
19
  category: assets
11
20
  tags: [css]
21
+
22
+ config:
23
+ - sass:
24
+ type: boolean
25
+ prompt: Would you like to use SASS syntax instead of SCSS?
@@ -25,13 +25,13 @@ describe RailsWizard::Config do
25
25
  subject.questions['multiple_choice'].should be_kind_of(RailsWizard::Config::MultipleChoice)
26
26
  end
27
27
 
28
- it 'should error on invalid question type' do
29
- @schema = <<-YAML
30
- - invalid
31
- type: invalid
32
- YAML
33
- lambda{ subject }.should raise_error(ArgumentError)
34
- end
28
+ # it 'should error on invalid question type' do
29
+ # @schema = <<-YAML
30
+ # - invalid
31
+ # type: invalid
32
+ # YAML
33
+ # lambda{ subject }.should raise_error(ArgumentError)
34
+ # end
35
35
 
36
36
  describe '#compile' do
37
37
  let(:lines) { subject.compile.split("\n") }
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "1.0.15"
2
+ VERSION = "1.0.16"
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.0.15
4
+ version: 1.0.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-25 00:00:00.000000000Z
12
+ date: 2011-08-31 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
16
- requirement: &2155889060 !ruby/object:Gem::Requirement
16
+ requirement: &2151873860 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2155889060
24
+ version_requirements: *2151873860
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: activesupport
27
- requirement: &2155887980 !ruby/object:Gem::Requirement
27
+ requirement: &2151871440 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 3.0.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2155887980
35
+ version_requirements: *2151871440
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: thor
38
- requirement: &2151906980 !ruby/object:Gem::Requirement
38
+ requirement: &2151869860 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2151906980
46
+ version_requirements: *2151869860
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
- requirement: &2151899900 !ruby/object:Gem::Requirement
49
+ requirement: &2151868120 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 2.5.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2151899900
57
+ version_requirements: *2151868120
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: mg
60
- requirement: &2151898580 !ruby/object:Gem::Requirement
60
+ requirement: &2151865320 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *2151898580
68
+ version_requirements: *2151865320
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activesupport
71
- requirement: &2151897240 !ruby/object:Gem::Requirement
71
+ requirement: &2151863600 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 3.0.0
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *2151897240
79
+ version_requirements: *2151863600
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: i18n
82
- requirement: &2151894460 !ruby/object:Gem::Requirement
82
+ requirement: &2151861640 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *2151894460
90
+ version_requirements: *2151861640
91
91
  description: A gem with recipes to create Rails application templates you can use
92
92
  to generate Rails starter apps.
93
93
  email:
@@ -176,7 +176,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
176
176
  version: '0'
177
177
  segments:
178
178
  - 0
179
- hash: 760391183687193095
179
+ hash: 3200628780368000348
180
180
  required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  none: false
182
182
  requirements:
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  version: '0'
186
186
  segments:
187
187
  - 0
188
- hash: 760391183687193095
188
+ hash: 3200628780368000348
189
189
  requirements: []
190
190
  rubyforge_project: rails_apps_composer
191
191
  rubygems_version: 1.8.9