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 CHANGED
@@ -23,3 +23,5 @@ pkg
23
23
 
24
24
  ## PROJECT::SPECIFIC
25
25
  tmp
26
+
27
+ .bundle
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm 1.9.2@stylo --create
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'http://rubygems.org'
2
+
3
+ gem 'cucumber'
4
+ gem 'rspec'
5
+ gem 'rack'
6
+ gem 'rack-test'
@@ -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 from a call back into rack$/ do
32
- last_response.status.should == 200
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 calls back into rack
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 from a call back into rack
5
+ Then the response should be a 404
@@ -10,7 +10,7 @@ World do
10
10
  def app
11
11
  @app ||= Rack::Builder.new do
12
12
  use Stylo::Rack
13
- run Proc.new {|env| [200, {"Content-Type" => "text/html"}, "Hello World!"]}
13
+ run Rack::File.new temp_path
14
14
  end
15
15
  end
16
16
 
@@ -34,8 +34,12 @@ module Stylo
34
34
  end
35
35
 
36
36
  def build
37
- [200, headers, body]
37
+ [200, headers, self]
38
+ end
39
+
40
+ def each(&block)
41
+ block.call(body)
38
42
  end
39
43
  end
40
44
 
41
- end
45
+ end
@@ -1,3 +1,3 @@
1
1
  module Stylo
2
- VERSION = "0.8.6"
2
+ VERSION = "0.8.7"
3
3
  end
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
- hash: 51
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
- date: 2011-01-26 00:00:00 +00:00
19
- default_executable:
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
- prerelease: false
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
- hash: 3
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
- requirement: &id002 !ruby/object:Gem::Requirement
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
- requirement: &id003 !ruby/object:Gem::Requirement
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
- hash: 3
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
- requirement: &id004 !ruby/object:Gem::Requirement
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
- hash: 3
74
- segments:
75
- - 0
76
- version: "0"
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
77
55
  type: :development
78
- version_requirements: *id004
79
- description: |-
80
- A rack middleware which does css and javascript combining
81
- and minification for sites hosted in readonly filesystem environments
82
- such as heroku.com
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
- hash: 3
163
- segments:
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
- hash: 3
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.4.2
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