akki 0.0.6 → 0.0.61
Sign up to get free protection for your applications and to get access to all the features.
- data/features/feeds.feature +1 -1
- data/lib/akki/application.rb +2 -2
- data/lib/akki/version.rb +1 -1
- data/spec/application_spec.rb +1 -1
- metadata +15 -15
data/features/feeds.feature
CHANGED
@@ -9,7 +9,7 @@ Feature: Feeds
|
|
9
9
|
!!! XML
|
10
10
|
"""
|
11
11
|
When I visit "/index.xml"
|
12
|
-
Then the content type should be "application/
|
12
|
+
Then the content type should be "application/xml;charset=utf-8"
|
13
13
|
|
14
14
|
Scenario: Index page
|
15
15
|
Given I have the page "index.xml.haml" with the contents
|
data/lib/akki/application.rb
CHANGED
@@ -41,8 +41,8 @@ module Akki
|
|
41
41
|
|
42
42
|
def render_page page = :index
|
43
43
|
if page.to_s.end_with? ".xml"
|
44
|
-
content_type
|
45
|
-
haml :"pages/#{page}", :layout => false
|
44
|
+
content_type "application/xml"
|
45
|
+
haml :"pages/#{page}", :layout => false, :format => :xhtml, :escape_html => true
|
46
46
|
else
|
47
47
|
haml :"pages/#{page}"
|
48
48
|
end
|
data/lib/akki/version.rb
CHANGED
data/spec/application_spec.rb
CHANGED
@@ -167,7 +167,7 @@ module Akki
|
|
167
167
|
|
168
168
|
it "sets the content type to xml" do
|
169
169
|
get "/index.xml"
|
170
|
-
last_response.content_type.should == "application/
|
170
|
+
last_response.content_type.should == "application/xml;charset=utf-8"
|
171
171
|
end
|
172
172
|
|
173
173
|
it "does not render the layout" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: akki
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.61
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-09-13 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sinatra
|
16
|
-
requirement: &
|
16
|
+
requirement: &70292526496540 !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: *
|
24
|
+
version_requirements: *70292526496540
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: haml
|
27
|
-
requirement: &
|
27
|
+
requirement: &70292526496020 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70292526496020
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
38
|
-
requirement: &
|
38
|
+
requirement: &70292526495520 !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: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70292526495520
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
|
-
requirement: &
|
49
|
+
requirement: &70292526494980 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70292526494980
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: cucumber
|
60
|
-
requirement: &
|
60
|
+
requirement: &70292526494460 !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: *
|
68
|
+
version_requirements: *70292526494460
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: capybara
|
71
|
-
requirement: &
|
71
|
+
requirement: &70292526493920 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70292526493920
|
80
80
|
description: ''
|
81
81
|
email:
|
82
82
|
- andrew.vos@gmail.com
|
@@ -121,7 +121,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
121
121
|
version: '0'
|
122
122
|
segments:
|
123
123
|
- 0
|
124
|
-
hash:
|
124
|
+
hash: -370343560315998616
|
125
125
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
126
|
none: false
|
127
127
|
requirements:
|
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
version: '0'
|
131
131
|
segments:
|
132
132
|
- 0
|
133
|
-
hash:
|
133
|
+
hash: -370343560315998616
|
134
134
|
requirements: []
|
135
135
|
rubyforge_project: akki
|
136
136
|
rubygems_version: 1.8.10
|