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.
- data/.bundle/config +2 -0
- data/.gitignore +5 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +53 -0
- data/Rakefile +5 -43
- data/lib/rack/less.rb +6 -12
- data/lib/rack/less/config.rb +13 -25
- data/lib/rack/less/request.rb +36 -22
- data/lib/rack/less/source.rb +7 -7
- data/lib/rack/less/version.rb +3 -11
- data/rack-less.gemspec +29 -0
- data/test/app_helper.rb +25 -0
- data/test/config_test.rb +215 -0
- data/test/env.rb +9 -0
- data/test/fixtures/mock_options.rb +9 -0
- data/test/fixtures/sinatra/app.rb +9 -0
- data/test/fixtures/sinatra/app/stylesheets/all_compiled.css +7 -0
- data/test/fixtures/sinatra/app/stylesheets/all_one.less +10 -0
- data/test/fixtures/sinatra/app/stylesheets/all_two.less +4 -0
- data/test/fixtures/sinatra/app/stylesheets/css.css +4 -0
- data/test/fixtures/sinatra/app/stylesheets/css_compiled.css +4 -0
- data/test/fixtures/sinatra/app/stylesheets/nested/file.css +10 -0
- data/test/fixtures/sinatra/app/stylesheets/nested/file_compiled.css +2 -0
- data/test/fixtures/sinatra/app/stylesheets/nested/really/really.less +10 -0
- data/test/fixtures/sinatra/app/stylesheets/nested/really/really_compiled.css +2 -0
- data/test/fixtures/sinatra/app/stylesheets/normal.less +10 -0
- data/test/fixtures/sinatra/app/stylesheets/normal_compiled.css +2 -0
- data/test/fixtures/sinatra/app/stylesheets/some-styles.less +8 -0
- data/test/fixtures/sinatra/app/stylesheets/some_styles.less +8 -0
- data/test/fixtures/sinatra/app/stylesheets/styles1.less +8 -0
- data/test/helper.rb +77 -0
- data/test/options_test.rb +60 -0
- data/test/request_test.rb +142 -0
- data/test/response_test.rb +41 -0
- data/test/sinatra_test.rb +54 -0
- data/test/source_test.rb +158 -0
- 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:
|
4
|
+
hash: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
|
-
-
|
8
|
-
- 5
|
7
|
+
- 2
|
9
8
|
- 0
|
10
|
-
|
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:
|
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:
|
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:
|
29
|
+
hash: 15
|
30
30
|
segments:
|
31
|
-
-
|
32
|
-
-
|
33
|
-
|
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:
|
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:
|
44
|
+
hash: 21
|
46
45
|
segments:
|
47
46
|
- 0
|
48
|
-
-
|
49
|
-
-
|
50
|
-
version: 0.
|
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: &
|
119
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
137
120
|
none: false
|
138
121
|
requirements:
|
139
|
-
- -
|
122
|
+
- - ~>
|
140
123
|
- !ruby/object:Gem::Version
|
141
|
-
hash:
|
124
|
+
hash: 15
|
142
125
|
segments:
|
126
|
+
- 1
|
143
127
|
- 0
|
144
|
-
|
145
|
-
version: "0.4"
|
128
|
+
version: "1.0"
|
146
129
|
type: :runtime
|
147
|
-
version_requirements: *
|
130
|
+
version_requirements: *id007
|
148
131
|
- !ruby/object:Gem::Dependency
|
149
132
|
name: less
|
150
133
|
prerelease: false
|
151
|
-
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:
|
139
|
+
hash: 11
|
157
140
|
segments:
|
158
141
|
- 1
|
159
142
|
- 2
|
160
|
-
|
161
|
-
version: 1.2.21
|
143
|
+
version: "1.2"
|
162
144
|
type: :runtime
|
163
|
-
version_requirements: *
|
164
|
-
description:
|
165
|
-
email:
|
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
|
-
|
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
|
-
-
|
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
|
-
|
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:
|
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
|