sass 3.3.0.alpha.243 → 3.3.0.alpha.247

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/REVISION CHANGED
@@ -1 +1 @@
1
- 01ca24be4a152901b7caffd7d3eeaf717dda29d4
1
+ 1ce6d0118a8ddca0abb5ee27560d3e4982bdfcaa
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.3.0.alpha.243
1
+ 3.3.0.alpha.247
@@ -1 +1 @@
1
- 29 August 2013 23:26:16 GMT
1
+ 07 September 2013 00:37:00 GMT
@@ -1923,11 +1923,12 @@ module Sass::Script
1923
1923
  end
1924
1924
  declare :call, [:name], :var_args => true, :var_kwargs => true
1925
1925
 
1926
- # This function only exists as a workaround for IE7's [`content:counter`
1927
- # bug](http://jes.st/2013/ie7s-css-breaking-content-counter-bug/).
1928
- # It works identically to any other plain-CSS function, except it
1926
+ # This function only exists as a workaround for IE7's [`content: counter`
1927
+ # bug][bug]. It works identically to any other plain-CSS function, except it
1929
1928
  # avoids adding spaces between the argument commas.
1930
1929
  #
1930
+ # [bug]: http://jes.st/2013/ie7s-css-breaking-content-counter-bug/
1931
+ #
1931
1932
  # @example
1932
1933
  # counter(item, ".") => counter(item,".")
1933
1934
  # @overload counter($args...)
@@ -1937,6 +1938,21 @@ module Sass::Script
1937
1938
  end
1938
1939
  declare :counter, [], :var_args => true
1939
1940
 
1941
+ # This function only exists as a workaround for IE7's [`content: counters`
1942
+ # bug][bug]. It works identically to any other plain-CSS function, except it
1943
+ # avoids adding spaces between the argument commas.
1944
+ #
1945
+ # [bug]: http://jes.st/2013/ie7s-css-breaking-content-counter-bug/
1946
+ #
1947
+ # @example
1948
+ # counters(item, ".") => counters(item,".")
1949
+ # @overload counters($args...)
1950
+ # @return [String]
1951
+ def counters(*args)
1952
+ Sass::Script::String.new("counters(#{args.map {|a| a.to_s(options)}.join(',')})")
1953
+ end
1954
+ declare :counters, [], :var_args => true
1955
+
1940
1956
  private
1941
1957
 
1942
1958
  # This method implements the pattern of transforming a numeric value into
@@ -1097,6 +1097,7 @@ MESSAGE
1097
1097
  :qualified_name => "identifier",
1098
1098
  :expr => "expression (e.g. 1px, bold)",
1099
1099
  :_selector => "selector",
1100
+ :selector_comma_sequence => "selector",
1100
1101
  :simple_selector_sequence => "selector",
1101
1102
  :import_arg => "file to import (string or url())",
1102
1103
  :moz_document_function => "matching function (e.g. url-prefix(), domain())",
@@ -127,7 +127,7 @@ module Sass
127
127
 
128
128
  STATIC_COMPONENT = /#{IDENT}|#{STRING_NOINTERP}|#{HEXCOLOR}|[+-]?#{NUMBER}|\!important/i
129
129
  STATIC_VALUE = /#{STATIC_COMPONENT}(\s*[\s,\/]\s*#{STATIC_COMPONENT})*([;}])/i
130
- STATIC_SELECTOR = /(#{NMCHAR}|[ \t]|[,>+*]|[:#.]#{NMSTART}){0,50}([{])/i
130
+ STATIC_SELECTOR = /(#{NMCHAR}|[ \t]|[,>+*]|[:#.]#{NMSTART}){1,50}([{])/i
131
131
  end
132
132
  end
133
133
  end
@@ -126,7 +126,7 @@ class Sass::Tree::Visitors::Cssize < Sass::Tree::Visitors::Base
126
126
  sel = sseq.members
127
127
  parent.resolved_rules.members.each do |member|
128
128
  if !member.members.last.is_a?(Sass::Selector::SimpleSequence)
129
- raise Sass::SyntaxError.new("#{seq} can't extend: invalid selector")
129
+ raise Sass::SyntaxError.new("#{member} can't extend: invalid selector")
130
130
  end
131
131
 
132
132
  @extends[sel] = Extend.new(member, sel, node, @parent_directives.dup, :not_found)
@@ -1189,6 +1189,12 @@ MSG
1189
1189
  assert_equal('counter(item,".")', evaluate('counter(item,".")'))
1190
1190
  end
1191
1191
 
1192
+ def test_counters
1193
+ assert_equal("counters(foo)", evaluate("counters(foo)"))
1194
+ assert_equal('counters(item,".")', evaluate('counters(item, ".")'))
1195
+ assert_equal('counters(item,".")', evaluate('counters(item,".")'))
1196
+ end
1197
+
1192
1198
  def test_keyword_args_rgb
1193
1199
  assert_equal(%Q{white}, evaluate("rgb($red: 255, $green: 255, $blue: 255)"))
1194
1200
  end
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: 592302827
4
+ hash: 592302819
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 3
8
8
  - 3
9
9
  - 0
10
10
  - alpha
11
- - 243
12
- version: 3.3.0.alpha.243
11
+ - 247
12
+ version: 3.3.0.alpha.247
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: 2013-08-29 00:00:00 -04:00
22
+ date: 2013-09-06 00:00:00 -04:00
23
23
  default_executable:
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency
@@ -126,22 +126,22 @@ files:
126
126
  - lib/sass/script/tree/interpolation.rb
127
127
  - lib/sass/script/tree/list_literal.rb
128
128
  - lib/sass/script/tree/literal.rb
129
+ - lib/sass/script/tree/map_literal.rb
129
130
  - lib/sass/script/tree/node.rb
130
131
  - lib/sass/script/tree/operation.rb
131
132
  - lib/sass/script/tree/string_interpolation.rb
132
133
  - lib/sass/script/tree/unary_operation.rb
133
134
  - lib/sass/script/tree/variable.rb
134
- - lib/sass/script/tree/map_literal.rb
135
135
  - lib/sass/script/value.rb
136
136
  - lib/sass/script/value/arg_list.rb
137
137
  - lib/sass/script/value/base.rb
138
138
  - lib/sass/script/value/bool.rb
139
139
  - lib/sass/script/value/color.rb
140
140
  - lib/sass/script/value/list.rb
141
+ - lib/sass/script/value/map.rb
141
142
  - lib/sass/script/value/null.rb
142
143
  - lib/sass/script/value/number.rb
143
144
  - lib/sass/script/value/string.rb
144
- - lib/sass/script/value/map.rb
145
145
  - lib/sass/scss.rb
146
146
  - lib/sass/scss/css_parser.rb
147
147
  - lib/sass/scss/parser.rb