rack-less 1.5.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/.bundle/config +2 -0
  2. data/.gitignore +5 -0
  3. data/Gemfile +4 -0
  4. data/Gemfile.lock +53 -0
  5. data/Rakefile +5 -43
  6. data/lib/rack/less.rb +6 -12
  7. data/lib/rack/less/config.rb +13 -25
  8. data/lib/rack/less/request.rb +36 -22
  9. data/lib/rack/less/source.rb +7 -7
  10. data/lib/rack/less/version.rb +3 -11
  11. data/rack-less.gemspec +29 -0
  12. data/test/app_helper.rb +25 -0
  13. data/test/config_test.rb +215 -0
  14. data/test/env.rb +9 -0
  15. data/test/fixtures/mock_options.rb +9 -0
  16. data/test/fixtures/sinatra/app.rb +9 -0
  17. data/test/fixtures/sinatra/app/stylesheets/all_compiled.css +7 -0
  18. data/test/fixtures/sinatra/app/stylesheets/all_one.less +10 -0
  19. data/test/fixtures/sinatra/app/stylesheets/all_two.less +4 -0
  20. data/test/fixtures/sinatra/app/stylesheets/css.css +4 -0
  21. data/test/fixtures/sinatra/app/stylesheets/css_compiled.css +4 -0
  22. data/test/fixtures/sinatra/app/stylesheets/nested/file.css +10 -0
  23. data/test/fixtures/sinatra/app/stylesheets/nested/file_compiled.css +2 -0
  24. data/test/fixtures/sinatra/app/stylesheets/nested/really/really.less +10 -0
  25. data/test/fixtures/sinatra/app/stylesheets/nested/really/really_compiled.css +2 -0
  26. data/test/fixtures/sinatra/app/stylesheets/normal.less +10 -0
  27. data/test/fixtures/sinatra/app/stylesheets/normal_compiled.css +2 -0
  28. data/test/fixtures/sinatra/app/stylesheets/some-styles.less +8 -0
  29. data/test/fixtures/sinatra/app/stylesheets/some_styles.less +8 -0
  30. data/test/fixtures/sinatra/app/stylesheets/styles1.less +8 -0
  31. data/test/helper.rb +77 -0
  32. data/test/options_test.rb +60 -0
  33. data/test/request_test.rb +142 -0
  34. data/test/response_test.rb +41 -0
  35. data/test/sinatra_test.rb +54 -0
  36. data/test/source_test.rb +158 -0
  37. metadata +93 -57
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: 3
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
- - 1
8
- - 5
7
+ - 2
9
8
  - 0
10
- version: 1.5.0
9
+ - 0
10
+ version: 2.0.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kelly Redding
@@ -15,39 +15,38 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-25 00:00:00 -05:00
18
+ date: 2011-03-21 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: shoulda
22
+ name: bundler
23
23
  prerelease: false
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ">="
27
+ - - ~>
28
28
  - !ruby/object:Gem::Version
29
- hash: 35
29
+ hash: 15
30
30
  segments:
31
- - 2
32
- - 10
33
- - 2
34
- version: 2.10.2
31
+ - 1
32
+ - 0
33
+ version: "1.0"
35
34
  type: :development
36
35
  version_requirements: *id001
37
36
  - !ruby/object:Gem::Dependency
38
- name: leftright
37
+ name: test-belt
39
38
  prerelease: false
40
39
  requirement: &id002 !ruby/object:Gem::Requirement
41
40
  none: false
42
41
  requirements:
43
- - - ">="
42
+ - - "="
44
43
  - !ruby/object:Gem::Version
45
- hash: 19
44
+ hash: 21
46
45
  segments:
47
46
  - 0
48
- - 0
49
- - 6
50
- version: 0.0.6
47
+ - 2
48
+ - 1
49
+ version: 0.2.1
51
50
  type: :development
52
51
  version_requirements: *id002
53
52
  - !ruby/object:Gem::Dependency
@@ -114,64 +113,53 @@ dependencies:
114
113
  version: 0.9.1
115
114
  type: :development
116
115
  version_requirements: *id006
117
- - !ruby/object:Gem::Dependency
118
- name: kelredd-simple-gem
119
- prerelease: false
120
- requirement: &id007 !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ">="
124
- - !ruby/object:Gem::Version
125
- hash: 3
126
- segments:
127
- - 0
128
- - 7
129
- - 0
130
- version: 0.7.0
131
- type: :development
132
- version_requirements: *id007
133
116
  - !ruby/object:Gem::Dependency
134
117
  name: rack
135
118
  prerelease: false
136
- requirement: &id008 !ruby/object:Gem::Requirement
119
+ requirement: &id007 !ruby/object:Gem::Requirement
137
120
  none: false
138
121
  requirements:
139
- - - ">="
122
+ - - ~>
140
123
  - !ruby/object:Gem::Version
141
- hash: 3
124
+ hash: 15
142
125
  segments:
126
+ - 1
143
127
  - 0
144
- - 4
145
- version: "0.4"
128
+ version: "1.0"
146
129
  type: :runtime
147
- version_requirements: *id008
130
+ version_requirements: *id007
148
131
  - !ruby/object:Gem::Dependency
149
132
  name: less
150
133
  prerelease: false
151
- requirement: &id009 !ruby/object:Gem::Requirement
134
+ requirement: &id008 !ruby/object:Gem::Requirement
152
135
  none: false
153
136
  requirements:
154
- - - ">="
137
+ - - ~>
155
138
  - !ruby/object:Gem::Version
156
- hash: 53
139
+ hash: 11
157
140
  segments:
158
141
  - 1
159
142
  - 2
160
- - 21
161
- version: 1.2.21
143
+ version: "1.2"
162
144
  type: :runtime
163
- version_requirements: *id009
164
- description:
165
- email: kelly@kelredd.com
145
+ version_requirements: *id008
146
+ 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)."
147
+ email:
148
+ - kelly@kelredd.com
166
149
  executables: []
167
150
 
168
151
  extensions: []
169
152
 
170
- extra_rdoc_files:
171
- - README.rdoc
153
+ extra_rdoc_files: []
154
+
172
155
  files:
156
+ - .bundle/config
157
+ - .gitignore
158
+ - Gemfile
159
+ - Gemfile.lock
173
160
  - README.rdoc
174
161
  - Rakefile
162
+ - lib/rack/less.rb
175
163
  - lib/rack/less/base.rb
176
164
  - lib/rack/less/config.rb
177
165
  - lib/rack/less/options.rb
@@ -179,15 +167,39 @@ files:
179
167
  - lib/rack/less/response.rb
180
168
  - lib/rack/less/source.rb
181
169
  - lib/rack/less/version.rb
182
- - lib/rack/less.rb
170
+ - rack-less.gemspec
171
+ - test/app_helper.rb
172
+ - test/config_test.rb
173
+ - test/env.rb
174
+ - test/fixtures/mock_options.rb
175
+ - test/fixtures/sinatra/app.rb
176
+ - test/fixtures/sinatra/app/stylesheets/all_compiled.css
177
+ - test/fixtures/sinatra/app/stylesheets/all_one.less
178
+ - test/fixtures/sinatra/app/stylesheets/all_two.less
179
+ - test/fixtures/sinatra/app/stylesheets/css.css
180
+ - test/fixtures/sinatra/app/stylesheets/css_compiled.css
181
+ - test/fixtures/sinatra/app/stylesheets/nested/file.css
182
+ - test/fixtures/sinatra/app/stylesheets/nested/file_compiled.css
183
+ - test/fixtures/sinatra/app/stylesheets/nested/really/really.less
184
+ - test/fixtures/sinatra/app/stylesheets/nested/really/really_compiled.css
185
+ - test/fixtures/sinatra/app/stylesheets/normal.less
186
+ - test/fixtures/sinatra/app/stylesheets/normal_compiled.css
187
+ - test/fixtures/sinatra/app/stylesheets/some-styles.less
188
+ - test/fixtures/sinatra/app/stylesheets/some_styles.less
189
+ - test/fixtures/sinatra/app/stylesheets/styles1.less
190
+ - test/helper.rb
191
+ - test/options_test.rb
192
+ - test/request_test.rb
193
+ - test/response_test.rb
194
+ - test/sinatra_test.rb
195
+ - test/source_test.rb
183
196
  has_rdoc: true
184
197
  homepage: http://github.com/kelredd/rack-less
185
198
  licenses: []
186
199
 
187
200
  post_install_message:
188
- rdoc_options:
189
- - --main
190
- - README.rdoc
201
+ rdoc_options: []
202
+
191
203
  require_paths:
192
204
  - lib
193
205
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -214,6 +226,30 @@ rubyforge_project:
214
226
  rubygems_version: 1.3.7
215
227
  signing_key:
216
228
  specification_version: 3
217
- summary: A better way to use LESS CSS in Ruby web apps.
218
- test_files: []
219
-
229
+ summary: LESS CSS preprocessing for Rack apps.
230
+ test_files:
231
+ - test/app_helper.rb
232
+ - test/config_test.rb
233
+ - test/env.rb
234
+ - test/fixtures/mock_options.rb
235
+ - test/fixtures/sinatra/app.rb
236
+ - test/fixtures/sinatra/app/stylesheets/all_compiled.css
237
+ - test/fixtures/sinatra/app/stylesheets/all_one.less
238
+ - test/fixtures/sinatra/app/stylesheets/all_two.less
239
+ - test/fixtures/sinatra/app/stylesheets/css.css
240
+ - test/fixtures/sinatra/app/stylesheets/css_compiled.css
241
+ - test/fixtures/sinatra/app/stylesheets/nested/file.css
242
+ - test/fixtures/sinatra/app/stylesheets/nested/file_compiled.css
243
+ - test/fixtures/sinatra/app/stylesheets/nested/really/really.less
244
+ - test/fixtures/sinatra/app/stylesheets/nested/really/really_compiled.css
245
+ - test/fixtures/sinatra/app/stylesheets/normal.less
246
+ - test/fixtures/sinatra/app/stylesheets/normal_compiled.css
247
+ - test/fixtures/sinatra/app/stylesheets/some-styles.less
248
+ - test/fixtures/sinatra/app/stylesheets/some_styles.less
249
+ - test/fixtures/sinatra/app/stylesheets/styles1.less
250
+ - test/helper.rb
251
+ - test/options_test.rb
252
+ - test/request_test.rb
253
+ - test/response_test.rb
254
+ - test/sinatra_test.rb
255
+ - test/source_test.rb