stylo 0.8.6 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/.rvmrc +1 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +35 -0
- data/features/step_definitions/stylo_steps.rb +2 -3
- data/features/stylo_cannot_serve_asset.feature +2 -2
- data/features/support/env.rb +1 -1
- data/lib/stylo/response.rb +6 -2
- data/lib/stylo/version.rb +1 -1
- metadata +58 -90
data/.gitignore
CHANGED
data/.rvmrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rvm 1.9.2@stylo --create
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
builder (3.0.0)
|
5
|
+
cucumber (0.10.0)
|
6
|
+
builder (>= 2.1.2)
|
7
|
+
diff-lcs (~> 1.1.2)
|
8
|
+
gherkin (~> 2.3.2)
|
9
|
+
json (~> 1.4.6)
|
10
|
+
term-ansicolor (~> 1.0.5)
|
11
|
+
diff-lcs (1.1.2)
|
12
|
+
gherkin (2.3.3)
|
13
|
+
json (~> 1.4.6)
|
14
|
+
json (1.4.6)
|
15
|
+
rack (1.2.1)
|
16
|
+
rack-test (0.5.7)
|
17
|
+
rack (>= 1.0)
|
18
|
+
rspec (2.5.0)
|
19
|
+
rspec-core (~> 2.5.0)
|
20
|
+
rspec-expectations (~> 2.5.0)
|
21
|
+
rspec-mocks (~> 2.5.0)
|
22
|
+
rspec-core (2.5.1)
|
23
|
+
rspec-expectations (2.5.0)
|
24
|
+
diff-lcs (~> 1.1.2)
|
25
|
+
rspec-mocks (2.5.0)
|
26
|
+
term-ansicolor (1.0.5)
|
27
|
+
|
28
|
+
PLATFORMS
|
29
|
+
ruby
|
30
|
+
|
31
|
+
DEPENDENCIES
|
32
|
+
cucumber
|
33
|
+
rack
|
34
|
+
rack-test
|
35
|
+
rspec
|
@@ -28,9 +28,8 @@ When /^the "([^\"]*)" header should be "([^\"]*)"$/ do |header_key, expected_val
|
|
28
28
|
last_response.headers[header_key].should == expected_value
|
29
29
|
end
|
30
30
|
|
31
|
-
Then /^the response should be
|
32
|
-
last_response.status.should ==
|
33
|
-
last_response.body.should include("Hello World!")
|
31
|
+
Then /^the response should be a (\d+)$/ do |expected_status_code|
|
32
|
+
last_response.status.to_s.should == expected_status_code
|
34
33
|
end
|
35
34
|
|
36
35
|
When /^javascript combining is disabled$/ do
|
@@ -1,5 +1,5 @@
|
|
1
1
|
Feature: Stylo cannot serve an asset
|
2
2
|
|
3
|
-
Scenario: Stylo
|
3
|
+
Scenario: Stylo returns a 404 response
|
4
4
|
When a request is made for "javascripts/i-dont-exist.js"
|
5
|
-
Then the response should be
|
5
|
+
Then the response should be a 404
|
data/features/support/env.rb
CHANGED
data/lib/stylo/response.rb
CHANGED
data/lib/stylo/version.rb
CHANGED
metadata
CHANGED
@@ -1,96 +1,74 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: stylo
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.8.7
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 8
|
9
|
-
- 6
|
10
|
-
version: 0.8.6
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Mike Wagg
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-08-28 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: cucumber
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70152538112600 !ruby/object:Gem::Requirement
|
25
17
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
33
22
|
type: :development
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: rspec
|
37
23
|
prerelease: false
|
38
|
-
|
24
|
+
version_requirements: *70152538112600
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rspec
|
27
|
+
requirement: &70152538112100 !ruby/object:Gem::Requirement
|
39
28
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
hash: 11
|
44
|
-
segments:
|
45
|
-
- 2
|
46
|
-
- 1
|
47
|
-
- 0
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
48
32
|
version: 2.1.0
|
49
33
|
type: :development
|
50
|
-
version_requirements: *id002
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
name: bundler
|
53
34
|
prerelease: false
|
54
|
-
|
35
|
+
version_requirements: *70152538112100
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: bundler
|
38
|
+
requirement: &70152538111680 !ruby/object:Gem::Requirement
|
55
39
|
none: false
|
56
|
-
requirements:
|
57
|
-
- -
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
60
|
-
segments:
|
61
|
-
- 0
|
62
|
-
version: "0"
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
63
44
|
type: :development
|
64
|
-
version_requirements: *id003
|
65
|
-
- !ruby/object:Gem::Dependency
|
66
|
-
name: rack-test
|
67
45
|
prerelease: false
|
68
|
-
|
46
|
+
version_requirements: *70152538111680
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rack-test
|
49
|
+
requirement: &70152538139360 !ruby/object:Gem::Requirement
|
69
50
|
none: false
|
70
|
-
requirements:
|
71
|
-
- -
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
|
74
|
-
segments:
|
75
|
-
- 0
|
76
|
-
version: "0"
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
77
55
|
type: :development
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
email:
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *70152538139360
|
58
|
+
description: ! "A rack middleware which does css and javascript combining\n and
|
59
|
+
minification for sites hosted in readonly filesystem environments\n such
|
60
|
+
as heroku.com"
|
61
|
+
email:
|
84
62
|
- michael@guerillatactics.co.uk
|
85
63
|
executables: []
|
86
|
-
|
87
64
|
extensions: []
|
88
|
-
|
89
65
|
extra_rdoc_files: []
|
90
|
-
|
91
|
-
files:
|
66
|
+
files:
|
92
67
|
- .document
|
93
68
|
- .gitignore
|
69
|
+
- .rvmrc
|
70
|
+
- Gemfile
|
71
|
+
- Gemfile.lock
|
94
72
|
- LICENSE
|
95
73
|
- README.rdoc
|
96
74
|
- Rakefile
|
@@ -145,41 +123,31 @@ files:
|
|
145
123
|
- spec/spec_helper.rb
|
146
124
|
- spec/stylo_spec_helpers.rb
|
147
125
|
- stylo.gemspec
|
148
|
-
has_rdoc: true
|
149
126
|
homepage: http://rubygems.org/gems/stylo
|
150
127
|
licenses: []
|
151
|
-
|
152
128
|
post_install_message:
|
153
129
|
rdoc_options: []
|
154
|
-
|
155
|
-
require_paths:
|
130
|
+
require_paths:
|
156
131
|
- lib
|
157
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
132
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
158
133
|
none: false
|
159
|
-
requirements:
|
160
|
-
- -
|
161
|
-
- !ruby/object:Gem::Version
|
162
|
-
|
163
|
-
|
164
|
-
- 0
|
165
|
-
version: "0"
|
166
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ! '>='
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
139
|
none: false
|
168
|
-
requirements:
|
169
|
-
- -
|
170
|
-
- !ruby/object:Gem::Version
|
171
|
-
|
172
|
-
segments:
|
173
|
-
- 0
|
174
|
-
version: "0"
|
140
|
+
requirements:
|
141
|
+
- - ! '>='
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0'
|
175
144
|
requirements: []
|
176
|
-
|
177
145
|
rubyforge_project: stylo
|
178
|
-
rubygems_version: 1.
|
146
|
+
rubygems_version: 1.8.6
|
179
147
|
signing_key:
|
180
148
|
specification_version: 3
|
181
149
|
summary: A javascript and css combining/minifying rack middleware
|
182
|
-
test_files:
|
150
|
+
test_files:
|
183
151
|
- features/fixtures.rb
|
184
152
|
- features/fixtures/child-min.js
|
185
153
|
- features/fixtures/child.css
|