rack-less 2.0.2 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. data/.gitignore +5 -4
  2. data/Gemfile +3 -0
  3. data/Gemfile.lock +15 -19
  4. data/README.rdoc +9 -7
  5. data/Rakefile +3 -3
  6. data/lib/rack/less/base.rb +1 -1
  7. data/lib/rack/less/config.rb +1 -1
  8. data/lib/rack/less/response.rb +4 -4
  9. data/lib/rack/less/source.rb +6 -1
  10. data/lib/rack/less/version.rb +2 -2
  11. data/rack-less.gemspec +4 -3
  12. data/test/app_helper.rb +3 -3
  13. data/test/bootstrap_test.rb +26 -0
  14. data/test/config_test.rb +112 -150
  15. data/test/fixtures/bootstrap_v1.1.0/bootstrap-1.1.0.css +1894 -0
  16. data/test/fixtures/bootstrap_v1.1.0/bootstrap.less +23 -0
  17. data/test/fixtures/bootstrap_v1.1.0/forms.less +369 -0
  18. data/test/fixtures/bootstrap_v1.1.0/patterns.less +683 -0
  19. data/test/fixtures/bootstrap_v1.1.0/preboot.less +267 -0
  20. data/test/fixtures/bootstrap_v1.1.0/reset.less +21 -0
  21. data/test/fixtures/bootstrap_v1.1.0/scaffolding.less +174 -0
  22. data/test/fixtures/bootstrap_v1.1.0/tables.less +148 -0
  23. data/test/fixtures/bootstrap_v1.1.0/type.less +185 -0
  24. data/test/fixtures/sinatra/app/stylesheets/all_compiled.css +7 -3
  25. data/test/fixtures/sinatra/app/stylesheets/nested/file_compiled.css +6 -2
  26. data/test/fixtures/sinatra/app/stylesheets/nested/nested_import.less +3 -0
  27. data/test/fixtures/sinatra/app/stylesheets/nested/really/really.less +5 -3
  28. data/test/fixtures/sinatra/app/stylesheets/nested/really/really_compiled.css +7 -2
  29. data/test/fixtures/sinatra/app/stylesheets/nested/really/really_nested_import.less +4 -0
  30. data/test/fixtures/sinatra/app/stylesheets/normal.less +1 -1
  31. data/test/fixtures/sinatra/app/stylesheets/normal_compiled.css +6 -2
  32. data/test/helper.rb +35 -38
  33. data/test/irb.rb +9 -0
  34. data/test/options_test.rb +25 -22
  35. data/test/request_test.rb +86 -74
  36. data/test/response_test.rb +6 -4
  37. data/test/sinatra_test.rb +38 -37
  38. data/test/source_test.rb +128 -114
  39. metadata +57 -34
  40. data/.bundle/config +0 -2
  41. data/test/env.rb +0 -9
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-less
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
- - 2
7
+ - 3
8
8
  - 0
9
- - 2
10
- version: 2.0.2
9
+ - 0
10
+ version: 3.0.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kelly Redding
@@ -15,11 +15,11 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-09 00:00:00 Z
18
+ date: 2011-08-26 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
- name: bundler
22
21
  prerelease: false
22
+ type: :development
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
24
  none: false
25
25
  requirements:
@@ -30,27 +30,27 @@ dependencies:
30
30
  - 1
31
31
  - 0
32
32
  version: "1.0"
33
- type: :development
33
+ name: bundler
34
34
  version_requirements: *id001
35
35
  - !ruby/object:Gem::Dependency
36
- name: test-belt
37
36
  prerelease: false
37
+ type: :development
38
38
  requirement: &id002 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
- - - "="
41
+ - - ~>
42
42
  - !ruby/object:Gem::Version
43
- hash: 21
43
+ hash: 19
44
44
  segments:
45
45
  - 0
46
- - 2
47
- - 1
48
- version: 0.2.1
49
- type: :development
46
+ - 3
47
+ - 0
48
+ version: 0.3.0
49
+ name: assert
50
50
  version_requirements: *id002
51
51
  - !ruby/object:Gem::Dependency
52
- name: sinatra
53
52
  prerelease: false
53
+ type: :development
54
54
  requirement: &id003 !ruby/object:Gem::Requirement
55
55
  none: false
56
56
  requirements:
@@ -62,11 +62,11 @@ dependencies:
62
62
  - 9
63
63
  - 4
64
64
  version: 0.9.4
65
- type: :development
65
+ name: sinatra
66
66
  version_requirements: *id003
67
67
  - !ruby/object:Gem::Dependency
68
- name: rack-test
69
68
  prerelease: false
69
+ type: :development
70
70
  requirement: &id004 !ruby/object:Gem::Requirement
71
71
  none: false
72
72
  requirements:
@@ -78,11 +78,11 @@ dependencies:
78
78
  - 5
79
79
  - 3
80
80
  version: 0.5.3
81
- type: :development
81
+ name: rack-test
82
82
  version_requirements: *id004
83
83
  - !ruby/object:Gem::Dependency
84
- name: webrat
85
84
  prerelease: false
85
+ type: :development
86
86
  requirement: &id005 !ruby/object:Gem::Requirement
87
87
  none: false
88
88
  requirements:
@@ -94,11 +94,11 @@ dependencies:
94
94
  - 6
95
95
  - 0
96
96
  version: 0.6.0
97
- type: :development
97
+ name: webrat
98
98
  version_requirements: *id005
99
99
  - !ruby/object:Gem::Dependency
100
- name: yui-compressor
101
100
  prerelease: false
101
+ type: :development
102
102
  requirement: &id006 !ruby/object:Gem::Requirement
103
103
  none: false
104
104
  requirements:
@@ -110,11 +110,11 @@ dependencies:
110
110
  - 9
111
111
  - 1
112
112
  version: 0.9.1
113
- type: :development
113
+ name: yui-compressor
114
114
  version_requirements: *id006
115
115
  - !ruby/object:Gem::Dependency
116
- name: rack
117
116
  prerelease: false
117
+ type: :runtime
118
118
  requirement: &id007 !ruby/object:Gem::Requirement
119
119
  none: false
120
120
  requirements:
@@ -125,24 +125,24 @@ dependencies:
125
125
  - 1
126
126
  - 0
127
127
  version: "1.0"
128
- type: :runtime
128
+ name: rack
129
129
  version_requirements: *id007
130
130
  - !ruby/object:Gem::Dependency
131
- name: less
132
131
  prerelease: false
132
+ type: :runtime
133
133
  requirement: &id008 !ruby/object:Gem::Requirement
134
134
  none: false
135
135
  requirements:
136
136
  - - ~>
137
137
  - !ruby/object:Gem::Version
138
- hash: 11
138
+ hash: 3
139
139
  segments:
140
- - 1
141
140
  - 2
142
- version: "1.2"
143
- type: :runtime
141
+ - 0
142
+ version: "2.0"
143
+ name: less
144
144
  version_requirements: *id008
145
- description: "Use rack middleware to handle LESS CSS preprocessing. Processing happens on requests to LESS resources. This allows you to develop, check in, and deploy unprocessed LESS stylesheets and leave the processing to the middleware. Allows for optimizing by environment: never-cache, always-reprocess in development; cache, process-once in production (for example)."
145
+ description: LESS CSS preprocessing for Rack apps.
146
146
  email:
147
147
  - kelly@kelredd.com
148
148
  executables: []
@@ -152,7 +152,6 @@ extensions: []
152
152
  extra_rdoc_files: []
153
153
 
154
154
  files:
155
- - .bundle/config
156
155
  - .gitignore
157
156
  - Gemfile
158
157
  - Gemfile.lock
@@ -168,8 +167,17 @@ files:
168
167
  - lib/rack/less/version.rb
169
168
  - rack-less.gemspec
170
169
  - test/app_helper.rb
170
+ - test/bootstrap_test.rb
171
171
  - test/config_test.rb
172
- - test/env.rb
172
+ - test/fixtures/bootstrap_v1.1.0/bootstrap-1.1.0.css
173
+ - test/fixtures/bootstrap_v1.1.0/bootstrap.less
174
+ - test/fixtures/bootstrap_v1.1.0/forms.less
175
+ - test/fixtures/bootstrap_v1.1.0/patterns.less
176
+ - test/fixtures/bootstrap_v1.1.0/preboot.less
177
+ - test/fixtures/bootstrap_v1.1.0/reset.less
178
+ - test/fixtures/bootstrap_v1.1.0/scaffolding.less
179
+ - test/fixtures/bootstrap_v1.1.0/tables.less
180
+ - test/fixtures/bootstrap_v1.1.0/type.less
173
181
  - test/fixtures/mock_options.rb
174
182
  - test/fixtures/sinatra/app.rb
175
183
  - test/fixtures/sinatra/app/stylesheets/all_compiled.css
@@ -179,14 +187,17 @@ files:
179
187
  - test/fixtures/sinatra/app/stylesheets/css_compiled.css
180
188
  - test/fixtures/sinatra/app/stylesheets/nested/file.css
181
189
  - test/fixtures/sinatra/app/stylesheets/nested/file_compiled.css
190
+ - test/fixtures/sinatra/app/stylesheets/nested/nested_import.less
182
191
  - test/fixtures/sinatra/app/stylesheets/nested/really/really.less
183
192
  - test/fixtures/sinatra/app/stylesheets/nested/really/really_compiled.css
193
+ - test/fixtures/sinatra/app/stylesheets/nested/really/really_nested_import.less
184
194
  - test/fixtures/sinatra/app/stylesheets/normal.less
185
195
  - test/fixtures/sinatra/app/stylesheets/normal_compiled.css
186
196
  - test/fixtures/sinatra/app/stylesheets/some-styles.less
187
197
  - test/fixtures/sinatra/app/stylesheets/some_styles.less
188
198
  - test/fixtures/sinatra/app/stylesheets/styles1.less
189
199
  - test/helper.rb
200
+ - test/irb.rb
190
201
  - test/options_test.rb
191
202
  - test/request_test.rb
192
203
  - test/response_test.rb
@@ -221,14 +232,23 @@ required_rubygems_version: !ruby/object:Gem::Requirement
221
232
  requirements: []
222
233
 
223
234
  rubyforge_project:
224
- rubygems_version: 1.7.2
235
+ rubygems_version: 1.8.8
225
236
  signing_key:
226
237
  specification_version: 3
227
238
  summary: LESS CSS preprocessing for Rack apps.
228
239
  test_files:
229
240
  - test/app_helper.rb
241
+ - test/bootstrap_test.rb
230
242
  - test/config_test.rb
231
- - test/env.rb
243
+ - test/fixtures/bootstrap_v1.1.0/bootstrap-1.1.0.css
244
+ - test/fixtures/bootstrap_v1.1.0/bootstrap.less
245
+ - test/fixtures/bootstrap_v1.1.0/forms.less
246
+ - test/fixtures/bootstrap_v1.1.0/patterns.less
247
+ - test/fixtures/bootstrap_v1.1.0/preboot.less
248
+ - test/fixtures/bootstrap_v1.1.0/reset.less
249
+ - test/fixtures/bootstrap_v1.1.0/scaffolding.less
250
+ - test/fixtures/bootstrap_v1.1.0/tables.less
251
+ - test/fixtures/bootstrap_v1.1.0/type.less
232
252
  - test/fixtures/mock_options.rb
233
253
  - test/fixtures/sinatra/app.rb
234
254
  - test/fixtures/sinatra/app/stylesheets/all_compiled.css
@@ -238,14 +258,17 @@ test_files:
238
258
  - test/fixtures/sinatra/app/stylesheets/css_compiled.css
239
259
  - test/fixtures/sinatra/app/stylesheets/nested/file.css
240
260
  - test/fixtures/sinatra/app/stylesheets/nested/file_compiled.css
261
+ - test/fixtures/sinatra/app/stylesheets/nested/nested_import.less
241
262
  - test/fixtures/sinatra/app/stylesheets/nested/really/really.less
242
263
  - test/fixtures/sinatra/app/stylesheets/nested/really/really_compiled.css
264
+ - test/fixtures/sinatra/app/stylesheets/nested/really/really_nested_import.less
243
265
  - test/fixtures/sinatra/app/stylesheets/normal.less
244
266
  - test/fixtures/sinatra/app/stylesheets/normal_compiled.css
245
267
  - test/fixtures/sinatra/app/stylesheets/some-styles.less
246
268
  - test/fixtures/sinatra/app/stylesheets/some_styles.less
247
269
  - test/fixtures/sinatra/app/stylesheets/styles1.less
248
270
  - test/helper.rb
271
+ - test/irb.rb
249
272
  - test/options_test.rb
250
273
  - test/request_test.rb
251
274
  - test/response_test.rb
@@ -1,2 +0,0 @@
1
- ---
2
- BUNDLE_DISABLE_SHARED_GEMS: "1"
@@ -1,9 +0,0 @@
1
- # Add test and lib paths to the $LOAD_PATH
2
- [ File.dirname(__FILE__),
3
- File.join(File.dirname(__FILE__), '..', 'lib')
4
- ].each do |path|
5
- full_path = File.expand_path(path)
6
- $LOAD_PATH.unshift(full_path) unless $LOAD_PATH.include?(full_path)
7
- end
8
-
9
- require 'rack/less'