sass 3.2.0.alpha.277 → 3.2.0.alpha.278
Sign up to get free protection for your applications and to get access to all the features.
- data/REVISION +1 -1
- data/Rakefile +11 -2
- data/VERSION +1 -1
- data/VERSION_DATE +1 -0
- data/lib/sass/selector/sequence.rb +3 -3
- data/lib/sass/version.rb +14 -0
- data/test/sass/scss/scss_test.rb +21 -0
- data/test/test_helper.rb +1 -0
- metadata +13 -12
data/REVISION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
daf44b6e5e3a25e1fadb77a4161ffe27edea74ab
|
data/Rakefile
CHANGED
@@ -24,7 +24,7 @@ end
|
|
24
24
|
# Don't use Rake::GemPackageTast because we want prerequisites to run
|
25
25
|
# before we load the gemspec.
|
26
26
|
desc "Build all the packages."
|
27
|
-
task :package => [:revision_file, :submodules, :permissions] do
|
27
|
+
task :package => [:revision_file, :date_file, :submodules, :permissions] do
|
28
28
|
version = get_version
|
29
29
|
File.open(scope('VERSION'), 'w') {|f| f.puts(version)}
|
30
30
|
load scope('sass.gemspec')
|
@@ -63,8 +63,17 @@ task :revision_file do
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
+
task :date_file do
|
67
|
+
File.open(scope('VERSION_DATE'), 'w') do |f|
|
68
|
+
f.puts Time.now.utc.strftime('%d %B %Y %T %Z')
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
66
72
|
# We also need to get rid of this file after packaging.
|
67
|
-
at_exit
|
73
|
+
at_exit do
|
74
|
+
File.delete(scope('REVISION')) rescue nil
|
75
|
+
File.delete(scope('VERSION_DATE')) rescue nil
|
76
|
+
end
|
68
77
|
|
69
78
|
desc "Install Sass as a gem. Use SUDO=1 to install with sudo."
|
70
79
|
task :install => [:package] do
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.2.0.alpha.
|
1
|
+
3.2.0.alpha.278
|
data/VERSION_DATE
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
04 August 2012 00:02:51 GMT
|
@@ -46,15 +46,15 @@ module Sass
|
|
46
46
|
# @return [Sequence] This selector, with parent references resolved
|
47
47
|
# @raise [Sass::SyntaxError] If a parent selector is invalid
|
48
48
|
def resolve_parent_refs(super_seq)
|
49
|
-
members = @members
|
49
|
+
members = @members.dup
|
50
50
|
nl = (members.first == "\n" && members.shift)
|
51
51
|
unless members.any? do |seq_or_op|
|
52
52
|
seq_or_op.is_a?(SimpleSequence) && seq_or_op.members.first.is_a?(Parent)
|
53
53
|
end
|
54
|
-
members = []
|
54
|
+
old_members, members = members, []
|
55
55
|
members << nl if nl
|
56
56
|
members << SimpleSequence.new([Parent.new], false)
|
57
|
-
members +=
|
57
|
+
members += old_members
|
58
58
|
end
|
59
59
|
|
60
60
|
Sequence.new(
|
data/lib/sass/version.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'date'
|
2
|
+
|
1
3
|
# This is necessary for loading Sass when Haml is required in Rails 3.
|
2
4
|
# Once the split is complete, we can remove it.
|
3
5
|
require File.dirname(__FILE__) + '/../sass'
|
@@ -16,6 +18,7 @@ module Sass
|
|
16
18
|
# The `:name` key has the name of the version.
|
17
19
|
# The `:string` key contains a human-readable string representation of the version.
|
18
20
|
# The `:number` key is the major, minor, and teeny keys separated by periods.
|
21
|
+
# The `:date` key, which is not guaranteed to be defined, is the [DateTime] at which this release was cut.
|
19
22
|
# If Sass is checked out from Git, the `:rev` key will have the revision hash.
|
20
23
|
# For example:
|
21
24
|
#
|
@@ -23,6 +26,7 @@ module Sass
|
|
23
26
|
# :string => "2.1.0.9616393",
|
24
27
|
# :rev => "9616393b8924ef36639c7e82aa88a51a24d16949",
|
25
28
|
# :number => "2.1.0",
|
29
|
+
# :date => DateTime.parse("Apr 30 13:52:01 2009 -0700"),
|
26
30
|
# :major => 2, :minor => 1, :teeny => 0
|
27
31
|
# }
|
28
32
|
#
|
@@ -36,6 +40,7 @@ module Sass
|
|
36
40
|
# {
|
37
41
|
# :string => "3.0.beta.1",
|
38
42
|
# :number => "3.0.beta.1",
|
43
|
+
# :date => DateTime.parse("Mar 31 00:38:04 2010 -0700"),
|
39
44
|
# :major => 3, :minor => 0, :teeny => -1,
|
40
45
|
# :prerelease => "beta",
|
41
46
|
# :prerelease_number => 1
|
@@ -55,6 +60,10 @@ module Sass
|
|
55
60
|
:name => name
|
56
61
|
}
|
57
62
|
|
63
|
+
if date = version_date
|
64
|
+
@@version[:date] = date
|
65
|
+
end
|
66
|
+
|
58
67
|
if numbers[3].is_a?(String)
|
59
68
|
@@version[:teeny] = -1
|
60
69
|
@@version[:prerelease] = numbers[3]
|
@@ -101,6 +110,11 @@ module Sass
|
|
101
110
|
end
|
102
111
|
return nil
|
103
112
|
end
|
113
|
+
|
114
|
+
def version_date
|
115
|
+
return unless File.exists?(scope('VERSION_DATE'))
|
116
|
+
return DateTime.parse(File.read(scope('VERSION_DATE')).strip)
|
117
|
+
end
|
104
118
|
end
|
105
119
|
|
106
120
|
extend Sass::Version
|
data/test/sass/scss/scss_test.rb
CHANGED
@@ -1357,6 +1357,27 @@ a {& /foo/ b {c: d}}
|
|
1357
1357
|
SCSS
|
1358
1358
|
end
|
1359
1359
|
|
1360
|
+
def test_newline_selector_rendered_multiple_times
|
1361
|
+
assert_equal <<CSS, render(<<SCSS)
|
1362
|
+
form input,
|
1363
|
+
form select {
|
1364
|
+
color: white; }
|
1365
|
+
|
1366
|
+
form input,
|
1367
|
+
form select {
|
1368
|
+
color: white; }
|
1369
|
+
CSS
|
1370
|
+
@for $i from 1 through 2 {
|
1371
|
+
form {
|
1372
|
+
input,
|
1373
|
+
select {
|
1374
|
+
color: white;
|
1375
|
+
}
|
1376
|
+
}
|
1377
|
+
}
|
1378
|
+
SCSS
|
1379
|
+
end
|
1380
|
+
|
1360
1381
|
def test_prop_name_interpolation_after_hyphen
|
1361
1382
|
assert_equal <<CSS, render(<<SCSS)
|
1362
1383
|
a {
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 592302385
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 2
|
9
9
|
- 0
|
10
10
|
- alpha
|
11
|
-
-
|
12
|
-
version: 3.2.0.alpha.
|
11
|
+
- 278
|
12
|
+
version: 3.2.0.alpha.278
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Nathan Weizenbaum
|
@@ -19,7 +19,7 @@ autorequire:
|
|
19
19
|
bindir: bin
|
20
20
|
cert_chain: []
|
21
21
|
|
22
|
-
date: 2012-
|
22
|
+
date: 2012-08-03 00:00:00 -04:00
|
23
23
|
default_executable:
|
24
24
|
dependencies:
|
25
25
|
- !ruby/object:Gem::Dependency
|
@@ -132,7 +132,7 @@ files:
|
|
132
132
|
- lib/sass/selector/simple.rb
|
133
133
|
- lib/sass/selector/simple_sequence.rb
|
134
134
|
- lib/sass/shared.rb
|
135
|
-
- lib/sass/
|
135
|
+
- lib/sass/version.rb
|
136
136
|
- lib/sass/tree/charset_node.rb
|
137
137
|
- lib/sass/tree/comment_node.rb
|
138
138
|
- lib/sass/tree/directive_node.rb
|
@@ -169,7 +169,7 @@ files:
|
|
169
169
|
- lib/sass/tree/trace_node.rb
|
170
170
|
- lib/sass/util/multibyte_string_scanner.rb
|
171
171
|
- lib/sass/util/subset_map.rb
|
172
|
-
- lib/sass/
|
172
|
+
- lib/sass/supports.rb
|
173
173
|
- vendor/listen/CHANGELOG.md
|
174
174
|
- vendor/listen/Gemfile
|
175
175
|
- vendor/listen/Guardfile
|
@@ -242,7 +242,7 @@ files:
|
|
242
242
|
- test/sass/results/import_charset.css
|
243
243
|
- test/sass/results/import_charset_1_8.css
|
244
244
|
- test/sass/results/import_charset_ibm866.css
|
245
|
-
- test/sass/results/
|
245
|
+
- test/sass/results/filename_fn.css
|
246
246
|
- test/sass/results/line_numbers.css
|
247
247
|
- test/sass/results/mixins.css
|
248
248
|
- test/sass/results/multiline.css
|
@@ -257,7 +257,7 @@ files:
|
|
257
257
|
- test/sass/results/units.css
|
258
258
|
- test/sass/results/warn.css
|
259
259
|
- test/sass/results/warn_imported.css
|
260
|
-
- test/sass/results/
|
260
|
+
- test/sass/results/import_content.css
|
261
261
|
- test/sass/script_conversion_test.rb
|
262
262
|
- test/sass/test_helper.rb
|
263
263
|
- test/sass/scss/css_test.rb
|
@@ -267,7 +267,7 @@ files:
|
|
267
267
|
- test/sass/templates/_double_import_loop2.sass
|
268
268
|
- test/sass/templates/_imported_charset_ibm866.sass
|
269
269
|
- test/sass/templates/_imported_charset_utf8.sass
|
270
|
-
- test/sass/templates/
|
270
|
+
- test/sass/templates/_filename_fn_import.scss
|
271
271
|
- test/sass/templates/_partial.sass
|
272
272
|
- test/sass/templates/alt.sass
|
273
273
|
- test/sass/templates/basic.sass
|
@@ -285,7 +285,7 @@ files:
|
|
285
285
|
- test/sass/templates/import_charset.sass
|
286
286
|
- test/sass/templates/import_charset_1_8.sass
|
287
287
|
- test/sass/templates/import_charset_ibm866.sass
|
288
|
-
- test/sass/templates/
|
288
|
+
- test/sass/templates/filename_fn.scss
|
289
289
|
- test/sass/templates/importee.less
|
290
290
|
- test/sass/templates/importee.sass
|
291
291
|
- test/sass/templates/line_numbers.sass
|
@@ -311,8 +311,8 @@ files:
|
|
311
311
|
- test/sass/templates/units.sass
|
312
312
|
- test/sass/templates/warn.sass
|
313
313
|
- test/sass/templates/warn_imported.sass
|
314
|
-
- test/sass/templates/
|
315
|
-
- test/sass/templates/
|
314
|
+
- test/sass/templates/_imported_content.sass
|
315
|
+
- test/sass/templates/import_content.sass
|
316
316
|
- test/sass/util_test.rb
|
317
317
|
- test/sass/util/multibyte_string_scanner_test.rb
|
318
318
|
- test/sass/util/subset_map_test.rb
|
@@ -327,6 +327,7 @@ files:
|
|
327
327
|
- VERSION
|
328
328
|
- VERSION_NAME
|
329
329
|
- REVISION
|
330
|
+
- VERSION_DATE
|
330
331
|
has_rdoc: true
|
331
332
|
homepage: http://sass-lang.com/
|
332
333
|
licenses: []
|