rails_apps_composer 1.0.11 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/recipes/cucumber.rb +3 -0
- data/recipes/devise.rb +1 -1
- data/recipes/html5.rb +1 -1
- data/recipes/navigation.rb +8 -5
- data/recipes/rspec.rb +1 -1
- data/version.rb +1 -1
- metadata +4 -4
data/recipes/cucumber.rb
CHANGED
@@ -35,6 +35,9 @@ 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'
|
38
41
|
say_wizard "Copying Cucumber scenarios from the rails3-devise-rspec-cucumber examples"
|
39
42
|
begin
|
40
43
|
# copy all the Cucumber scenario files from the rails3-devise-rspec-cucumber example app
|
data/recipes/devise.rb
CHANGED
data/recipes/html5.rb
CHANGED
@@ -76,7 +76,7 @@ RUBY
|
|
76
76
|
%head
|
77
77
|
%title #{app_name}
|
78
78
|
%meta{:charset => "utf-8"}
|
79
|
-
%meta{
|
79
|
+
%meta{"http-equiv" => "X-UA-Compatible", :content => "IE=edge,chrome=1"}
|
80
80
|
%meta{:name => "viewport", :content => "width=device-width, initial-scale=1, maximum-scale=1"}
|
81
81
|
= stylesheet_link_tag :application
|
82
82
|
= javascript_include_tag :application
|
data/recipes/navigation.rb
CHANGED
@@ -43,16 +43,19 @@ ERB
|
|
43
43
|
if recipes.include? 'haml'
|
44
44
|
# There is Haml code in this script. Changing the indentation is perilous between HAMLs.
|
45
45
|
inject_into_file 'app/views/layouts/application.html.haml', :after => "%header\n" do <<-HAML
|
46
|
-
%
|
47
|
-
|
46
|
+
%nav
|
47
|
+
%ul.hmenu
|
48
|
+
= render 'shared/navigation'
|
48
49
|
HAML
|
49
50
|
end
|
50
51
|
else
|
51
52
|
inject_into_file 'app/views/layouts/application.html.erb', :after => "<header>\n" do
|
52
53
|
<<-ERB
|
53
|
-
<
|
54
|
-
|
55
|
-
|
54
|
+
<nav>
|
55
|
+
<ul class="hmenu">
|
56
|
+
<%= render 'shared/navigation' %>
|
57
|
+
</ul>
|
58
|
+
</nav>
|
56
59
|
ERB
|
57
60
|
end
|
58
61
|
end
|
data/recipes/rspec.rb
CHANGED
data/version.rb
CHANGED
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.
|
5
|
+
version: 1.0.12
|
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-
|
13
|
+
date: 2011-07-09 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: -
|
180
|
+
hash: -1731271717490803066
|
181
181
|
segments:
|
182
182
|
- 0
|
183
183
|
version: "0"
|
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
186
|
requirements:
|
187
187
|
- - ">="
|
188
188
|
- !ruby/object:Gem::Version
|
189
|
-
hash: -
|
189
|
+
hash: -1731271717490803066
|
190
190
|
segments:
|
191
191
|
- 0
|
192
192
|
version: "0"
|