rails_apps_composer 1.0.12 → 1.0.14

Sign up to get free protection for your applications and to get access to all the features.
data/recipes/cucumber.rb CHANGED
@@ -13,7 +13,7 @@ if config['cucumber']
13
13
  gem 'cucumber-rails', '>= 1.0.2', :group => :test
14
14
  gem 'capybara', '>= 1.0.0', :group => :test
15
15
  gem 'database_cleaner', '>= 0.6.7', :group => :test
16
- gem 'launchy', '>= 0.4.0', :group => :test
16
+ gem 'launchy', '>= 2.0.5', :group => :test
17
17
  end
18
18
  else
19
19
  recipes.delete('cucumber')
@@ -35,9 +35,6 @@ end
35
35
  if config['cucumber']
36
36
  if recipes.include? 'devise'
37
37
  after_bundler do
38
- # Cucumber wants to test GET requests not DELETE requests for destroy_user_session_path
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'
41
38
  say_wizard "Copying Cucumber scenarios from the rails3-devise-rspec-cucumber examples"
42
39
  begin
43
40
  # copy all the Cucumber scenario files from the rails3-devise-rspec-cucumber example app
data/recipes/devise.rb CHANGED
@@ -34,6 +34,12 @@ if config['devise']
34
34
  # Prevent logging of password_confirmation
35
35
  gsub_file 'config/application.rb', /:password/, ':password, :password_confirmation'
36
36
 
37
+ if recipes.include? 'cucumber'
38
+ # Cucumber wants to test GET requests not DELETE requests for destroy_user_session_path
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'
41
+ end
42
+
37
43
  end
38
44
 
39
45
  after_everything do
data/recipes/html5.rb CHANGED
@@ -3,11 +3,11 @@
3
3
 
4
4
  if config['html5']
5
5
  if recipes.include? 'rails 3.1'
6
+ gem 'frontend-helpers'
6
7
  after_bundler do
7
8
  say_wizard "HTML5 Boilerplate recipe running 'after bundler'"
8
9
  # Download HTML5 Boilerplate JavaScripts
9
- get "https://raw.github.com/paulirish/html5-boilerplate/master/js/libs/modernizr-2.0.min.js", "app/assets/javascripts/modernizr.js"
10
- get "https://raw.github.com/paulirish/html5-boilerplate/master/js/libs/respond.min.js", "app/assets/javascripts/respond.js"
10
+ get "https://raw.github.com/paulirish/html5-boilerplate/master/js/libs/modernizr-2.0.6.min.js", "app/assets/javascripts/modernizr.js"
11
11
  # Download stylesheet to normalize or reset CSS
12
12
  case config['css_option']
13
13
  when 'skeleton'
@@ -33,38 +33,8 @@ if config['html5']
33
33
  if recipes.include? 'haml'
34
34
  # create some Haml helpers
35
35
  # We have to use single-quote-style-heredoc to avoid interpolation.
36
- inject_into_file 'app/helpers/application_helper.rb', :after => "ApplicationHelper\n" do <<-'RUBY'
37
- # Create a named haml tag to wrap IE conditional around a block
38
- # http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither
39
- def ie_tag(name=:body, attrs={}, &block)
40
- attrs.symbolize_keys!
41
- haml_concat("<!--[if lt IE 7]> #{ tag(name, add_class('ie6', attrs), true) } <![endif]-->".html_safe)
42
- haml_concat("<!--[if IE 7]> #{ tag(name, add_class('ie7', attrs), true) } <![endif]-->".html_safe)
43
- haml_concat("<!--[if IE 8]> #{ tag(name, add_class('ie8', attrs), true) } <![endif]-->".html_safe)
44
- haml_concat("<!--[if gt IE 8]><!-->".html_safe)
45
- haml_tag name, attrs do
46
- haml_concat("<!--<![endif]-->".html_safe)
47
- block.call
48
- end
49
- end
50
-
51
- def ie_html(attrs={}, &block)
52
- ie_tag(:html, attrs, &block)
53
- end
54
-
55
- def ie_body(attrs={}, &block)
56
- ie_tag(:body, attrs, &block)
57
- end
58
-
59
- private
60
-
61
- def add_class(name, attrs)
62
- classes = attrs[:class] || ''
63
- classes.strip!
64
- classes = ' ' + classes if !classes.blank?
65
- classes = name + classes
66
- attrs.merge(:class => classes)
67
- end
36
+ inject_into_file 'app/controllers/application_controller.rb', :after => "protect_from_forgery\n" do <<-'RUBY'
37
+ include FrontendHelpers::Html5Helper
68
38
  RUBY
69
39
  end
70
40
  # Haml version of default application layout
@@ -72,7 +42,7 @@ RUBY
72
42
  remove_file 'app/views/layouts/application.html.haml'
73
43
  # There is Haml code in this script. Changing the indentation is perilous between HAMLs.
74
44
  create_file 'app/views/layouts/application.html.haml' do <<-HAML
75
- - ie_html :lang => 'en', :class => 'no-js' do
45
+ - html_tag class: 'no-js' do
76
46
  %head
77
47
  %title #{app_name}
78
48
  %meta{:charset => "utf-8"}
@@ -81,7 +51,7 @@ RUBY
81
51
  = stylesheet_link_tag :application
82
52
  = javascript_include_tag :application
83
53
  = csrf_meta_tags
84
- %body
54
+ %body{:class => params[:controller]}
85
55
  #container.container
86
56
  %header
87
57
  - flash.each do |name, msg|
@@ -112,7 +82,7 @@ HAML
112
82
  <%= javascript_include_tag "application" %>
113
83
  <%= csrf_meta_tags %>
114
84
  </head>
115
- <body>
85
+ <body class="<%= params[:controller] %>">
116
86
  <div id="container" class="container">
117
87
  <header>
118
88
  </header>
@@ -141,6 +111,7 @@ ERB
141
111
  say_wizard "Don't know what to do for Rails version #{Rails::VERSION::STRING}. HTML5 Boilerplate recipe skipped."
142
112
  end
143
113
  else
114
+ say_wizard "HTML5 Boilerplate recipe skipped. No CSS styles added."
144
115
  recipes.delete('html5')
145
116
  end
146
117
 
@@ -159,6 +130,6 @@ config:
159
130
  prompt: Would you like to install HTML5 Boilerplate?
160
131
  - css_option:
161
132
  type: multiple_choice
162
- prompt: "How do you like your CSS?"
163
- choices: [["Normalize CSS and add Skeleton styling", skeleton], ["Normalize CSS for consistent styling across browsers", normalize], ["Completely reset all CSS to eliminate styling", reset]]
133
+ prompt: "If you've chosen HTML5 Boilerplate, how do you like your CSS?"
134
+ choices: [["Do nothing", nothing], ["Normalize CSS and add Skeleton styling", skeleton], ["Normalize CSS for consistent styling across browsers", normalize], ["Completely reset all CSS to eliminate styling", reset]]
164
135
 
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.0.2'
14
+ gem 'mongoid', '>= 2.1.5'
15
15
  end
16
16
  else
17
17
  recipes.delete('mongoid')
data/recipes/rspec.rb CHANGED
@@ -28,7 +28,7 @@ if config['rspec']
28
28
  end
29
29
  if config['factory_girl']
30
30
  # use the factory_girl gem for test fixtures
31
- gem 'factory_girl_rails', '>= 1.1.rc1', :group => :test
31
+ gem 'factory_girl_rails', '>= 1.1.0', :group => :test
32
32
  end
33
33
  end
34
34
  else
data/recipes/sass.rb CHANGED
@@ -1,13 +1,11 @@
1
- unless recipes.include? 'haml'
2
- gem 'haml', '>= 3.0.0'
3
- end
1
+ gem 'sass', '>= 3.1.6'
4
2
 
5
3
  __END__
6
4
 
7
5
  name: SASS
8
- description: "Utilize SASS (through the HAML gem) for really awesome stylesheets!"
9
- author: mbleigh
6
+ description: "Utilize SASS for really awesome stylesheets!"
7
+ author: mbleigh & mrc2407
10
8
 
11
- exclusive: css_replacement
9
+ exclusive: css_replacement
12
10
  category: assets
13
11
  tags: [css]
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "1.0.12"
2
+ VERSION = "1.0.14"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rails_apps_composer
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.12
5
+ version: 1.0.14
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel Kehoe
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-09 00:00:00 Z
13
+ date: 2011-08-05 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: i18n
@@ -177,7 +177,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - ">="
179
179
  - !ruby/object:Gem::Version
180
- hash: -1731271717490803066
180
+ hash: 1501726947205474913
181
181
  segments:
182
182
  - 0
183
183
  version: "0"
@@ -186,14 +186,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  requirements:
187
187
  - - ">="
188
188
  - !ruby/object:Gem::Version
189
- hash: -1731271717490803066
189
+ hash: 1501726947205474913
190
190
  segments:
191
191
  - 0
192
192
  version: "0"
193
193
  requirements: []
194
194
 
195
195
  rubyforge_project: rails_apps_composer
196
- rubygems_version: 1.8.5
196
+ rubygems_version: 1.8.6
197
197
  signing_key:
198
198
  specification_version: 3
199
199
  summary: A version of the RailsWizard gem with custom recipes for Rails starter apps.