rack-less 2.0.2 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +5 -4
- data/Gemfile +3 -0
- data/Gemfile.lock +15 -19
- data/README.rdoc +9 -7
- data/Rakefile +3 -3
- data/lib/rack/less/base.rb +1 -1
- data/lib/rack/less/config.rb +1 -1
- data/lib/rack/less/response.rb +4 -4
- data/lib/rack/less/source.rb +6 -1
- data/lib/rack/less/version.rb +2 -2
- data/rack-less.gemspec +4 -3
- data/test/app_helper.rb +3 -3
- data/test/bootstrap_test.rb +26 -0
- data/test/config_test.rb +112 -150
- data/test/fixtures/bootstrap_v1.1.0/bootstrap-1.1.0.css +1894 -0
- data/test/fixtures/bootstrap_v1.1.0/bootstrap.less +23 -0
- data/test/fixtures/bootstrap_v1.1.0/forms.less +369 -0
- data/test/fixtures/bootstrap_v1.1.0/patterns.less +683 -0
- data/test/fixtures/bootstrap_v1.1.0/preboot.less +267 -0
- data/test/fixtures/bootstrap_v1.1.0/reset.less +21 -0
- data/test/fixtures/bootstrap_v1.1.0/scaffolding.less +174 -0
- data/test/fixtures/bootstrap_v1.1.0/tables.less +148 -0
- data/test/fixtures/bootstrap_v1.1.0/type.less +185 -0
- data/test/fixtures/sinatra/app/stylesheets/all_compiled.css +7 -3
- data/test/fixtures/sinatra/app/stylesheets/nested/file_compiled.css +6 -2
- data/test/fixtures/sinatra/app/stylesheets/nested/nested_import.less +3 -0
- data/test/fixtures/sinatra/app/stylesheets/nested/really/really.less +5 -3
- data/test/fixtures/sinatra/app/stylesheets/nested/really/really_compiled.css +7 -2
- data/test/fixtures/sinatra/app/stylesheets/nested/really/really_nested_import.less +4 -0
- data/test/fixtures/sinatra/app/stylesheets/normal.less +1 -1
- data/test/fixtures/sinatra/app/stylesheets/normal_compiled.css +6 -2
- data/test/helper.rb +35 -38
- data/test/irb.rb +9 -0
- data/test/options_test.rb +25 -22
- data/test/request_test.rb +86 -74
- data/test/response_test.rb +6 -4
- data/test/sinatra_test.rb +38 -37
- data/test/source_test.rb +128 -114
- metadata +57 -34
- data/.bundle/config +0 -2
- 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:
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
|
-
-
|
7
|
+
- 3
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version:
|
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-
|
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
|
-
|
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:
|
43
|
+
hash: 19
|
44
44
|
segments:
|
45
45
|
- 0
|
46
|
-
-
|
47
|
-
-
|
48
|
-
version: 0.
|
49
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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:
|
138
|
+
hash: 3
|
139
139
|
segments:
|
140
|
-
- 1
|
141
140
|
- 2
|
142
|
-
|
143
|
-
|
141
|
+
- 0
|
142
|
+
version: "2.0"
|
143
|
+
name: less
|
144
144
|
version_requirements: *id008
|
145
|
-
description:
|
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/
|
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.
|
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/
|
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
|
data/.bundle/config
DELETED
data/test/env.rb
DELETED
@@ -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'
|