Hello community, here is the log from the commit of package rubygem-sass for openSUSE:Factory checked in at 2018-07-18 22:51:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-sass (Old) and /work/SRC/openSUSE:Factory/.rubygem-sass.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-sass" Wed Jul 18 22:51:25 2018 rev:46 rq:621034 version:3.5.6 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-sass/rubygem-sass.changes 2018-03-06 10:45:54.887260424 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-sass.new/rubygem-sass.changes 2018-07-18 22:52:26.559258802 +0200 @@ -1,0 +2,6 @@ +Fri Mar 23 05:31:34 UTC 2018 - factory-a...@kulow.org + +- updated to version 3.5.6 + no changelog found + +------------------------------------------------------------------- Old: ---- sass-3.5.5.gem New: ---- sass-3.5.6.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-sass.spec ++++++ --- /var/tmp/diff_new_pack.xKn2IL/_old 2018-07-18 22:52:27.131256905 +0200 +++ /var/tmp/diff_new_pack.xKn2IL/_new 2018-07-18 22:52:27.135256892 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-sass -Version: 3.5.5 +Version: 3.5.6 Release: 0 %define mod_name sass %define mod_full_name %{mod_name}-%{version} ++++++ sass-3.5.5.gem -> sass-3.5.6.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/VERSION new/VERSION --- old/VERSION 2018-01-05 02:22:10.000000000 +0100 +++ new/VERSION 2018-03-23 01:44:24.000000000 +0100 @@ -1 +1 @@ -3.5.5 +3.5.6 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/VERSION_DATE new/VERSION_DATE --- old/VERSION_DATE 2018-01-05 02:22:10.000000000 +0100 +++ new/VERSION_DATE 2018-03-23 01:44:24.000000000 +0100 @@ -1 +1 @@ -05 January 2018 01:22:10 UTC +23 March 2018 00:44:24 UTC Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/sass/exec/sass_scss.rb new/lib/sass/exec/sass_scss.rb --- old/lib/sass/exec/sass_scss.rb 2018-01-05 02:22:10.000000000 +0100 +++ new/lib/sass/exec/sass_scss.rb 2018-03-23 01:44:24.000000000 +0100 @@ -92,7 +92,7 @@ end opts.on("-v", "--version", "Print the Sass version.") do - puts("Sass #{Sass.version[:string]}") + puts("Ruby Sass #{Sass.version[:string]}") exit end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/sass/script/functions.rb new/lib/sass/script/functions.rb --- old/lib/sass/script/functions.rb 2018-01-05 02:22:10.000000000 +0100 +++ new/lib/sass/script/functions.rb 2018-03-23 01:44:24.000000000 +0100 @@ -653,7 +653,15 @@ # inclusive # @return [Sass::Script::Value::Color] # @raise [ArgumentError] if any parameter is the wrong type or out of bounds - def rgb(red, green, blue) + def rgb(red, green = nil, blue = nil) + if green.nil? + return unquoted_string("rgb(#{red})") if var?(red) + raise ArgumentError.new("wrong number of arguments (1 for 3)") + elsif blue.nil? + return unquoted_string("rgb(#{red}, #{green})") if var?(red) || var?(green) + raise ArgumentError.new("wrong number of arguments (2 for 3)") + end + if special_number?(red) || special_number?(green) || special_number?(blue) return unquoted_string("rgb(#{red}, #{green}, #{blue})") end @@ -677,6 +685,8 @@ Sass::Script::Value::Color.new(color_attrs) end declare :rgb, [:red, :green, :blue] + declare :rgb, [:red, :green] + declare :rgb, [:red] # Creates a {Sass::Script::Value::Color Color} from red, green, blue, and # alpha values. @@ -711,9 +721,22 @@ # is the wrong type def rgba(*args) case args.size + when 1 + return unquoted_string("rgba(#{args.first})") if var?(args.first) + raise ArgumentError.new("wrong number of arguments (1 for 4)") when 2 color, alpha = args + if var?(color) + return unquoted_string("rgba(#{color}, #{alpha})") + elsif var?(alpha) + if color.is_a?(Sass::Script::Value::Color) + return unquoted_string("rgba(#{color.red}, #{color.green}, #{color.blue}, #{alpha})") + else + return unquoted_string("rgba(#{color}, #{alpha})") + end + end + assert_type color, :Color, :color if special_number?(alpha) unquoted_string("rgba(#{color.red}, #{color.green}, #{color.blue}, #{alpha})") @@ -722,6 +745,12 @@ check_alpha_unit alpha, 'rgba' color.with(:alpha => alpha.value) end + when 3 + if var?(args[0]) || var?(args[1]) || var?(args[2]) + unquoted_string("rgba(#{args.join(', ')})") + else + raise ArgumentError.new("wrong number of arguments (3 for 4)") + end when 4 red, green, blue, alpha = args if special_number?(red) || special_number?(green) || @@ -735,7 +764,9 @@ end end declare :rgba, [:red, :green, :blue, :alpha] + declare :rgba, [:red, :green, :blue] declare :rgba, [:color, :alpha] + declare :rgba, [:red] # Creates a {Sass::Script::Value::Color Color} from hue, saturation, and # lightness values. Uses the algorithm from the [CSS3 spec][]. @@ -753,7 +784,15 @@ # @return [Sass::Script::Value::Color] # @raise [ArgumentError] if `$saturation` or `$lightness` are out of bounds # or any parameter is the wrong type - def hsl(hue, saturation, lightness) + def hsl(hue, saturation = nil, lightness = nil) + if saturation.nil? + return unquoted_string("hsl(#{hue})") if var?(hue) + raise ArgumentError.new("wrong number of arguments (1 for 3)") + elsif lightness.nil? + return unquoted_string("hsl(#{hue}, #{saturation})") if var?(hue) || var?(saturation) + raise ArgumentError.new("wrong number of arguments (2 for 3)") + end + if special_number?(hue) || special_number?(saturation) || special_number?(lightness) unquoted_string("hsl(#{hue}, #{saturation}, #{lightness})") else @@ -761,6 +800,8 @@ end end declare :hsl, [:hue, :saturation, :lightness] + declare :hsl, [:hue, :saturation] + declare :hsl, [:hue] # Creates a {Sass::Script::Value::Color Color} from hue, # saturation, lightness, and alpha values. Uses the algorithm from @@ -781,7 +822,21 @@ # @return [Sass::Script::Value::Color] # @raise [ArgumentError] if `$saturation`, `$lightness`, or `$alpha` are out # of bounds or any parameter is the wrong type - def hsla(hue, saturation, lightness, alpha) + def hsla(hue, saturation = nil, lightness = nil, alpha = nil) + if saturation.nil? + return unquoted_string("hsla(#{hue})") if var?(hue) + raise ArgumentError.new("wrong number of arguments (1 for 4)") + elsif lightness.nil? + return unquoted_string("hsla(#{hue}, #{saturation})") if var?(hue) || var?(saturation) + raise ArgumentError.new("wrong number of arguments (2 for 4)") + elsif alpha.nil? + if var?(hue) || var?(saturation) || var?(lightness) + return unquoted_string("hsla(#{hue}, #{saturation}, #{lightness})") + else + raise ArgumentError.new("wrong number of arguments (2 for 4)") + end + end + if special_number?(hue) || special_number?(saturation) || special_number?(lightness) || special_number?(alpha) return unquoted_string("hsla(#{hue}, #{saturation}, #{lightness}, #{alpha})") @@ -803,6 +858,9 @@ :hue => h, :saturation => s, :lightness => l, :alpha => alpha.value) end declare :hsla, [:hue, :saturation, :lightness, :alpha] + declare :hsla, [:hue, :saturation, :lightness] + declare :hsla, [:hue, :saturation] + declare :hsla, [:hue] # Gets the red component of a color. Calculated from HSL where necessary via # [this algorithm][hsl-to-rgb]. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/sass/script/value/helpers.rb new/lib/sass/script/value/helpers.rb --- old/lib/sass/script/value/helpers.rb 2018-01-05 02:22:10.000000000 +0100 +++ new/lib/sass/script/value/helpers.rb 2018-03-23 01:44:24.000000000 +0100 @@ -215,6 +215,14 @@ literal.is_a?(Sass::Script::Value::String) && literal.value =~ /calc\(/ end + # Returns true when the literal is a string containing a var(). + # + # @param literal [Sass::Script::Value::Base] The value to check + # @return Boolean + def var?(literal) + literal.is_a?(Sass::Script::Value::String) && literal.value =~ /var\(/ + end + # Returns whether the literal is a special CSS value that may evaluate to a # number, such as `calc()` or `var()`. # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/sass/script/value/number.rb new/lib/sass/script/value/number.rb --- old/lib/sass/script/value/number.rb 2018-01-05 02:22:10.000000000 +0100 +++ new/lib/sass/script/value/number.rb 2018-03-23 01:44:24.000000000 +0100 @@ -189,6 +189,7 @@ # @raise [Sass::UnitConversionError] if `other` has incompatible units def mod(other) if other.is_a?(Number) + return Number.new(Float::NAN) if other.value == 0 operate(other, :%) else raise NoMethodError.new(nil, :mod) @@ -472,7 +473,7 @@ sans_common_units(@numerator_units, @denominator_units) @denominator_units.each_with_index do |d, i| - next unless convertable?(d) && (u = @numerator_units.find(&method(:convertable?))) + next unless convertable?(d) && (u = @numerator_units.find {|n| convertable?([n, d])}) @value /= conversion_factor(d, u) @denominator_units.delete_at(i) @numerator_units.delete_at(@numerator_units.index(u)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/sass/scss/parser.rb new/lib/sass/scss/parser.rb --- old/lib/sass/scss/parser.rb 2018-01-05 02:22:10.000000000 +0100 +++ new/lib/sass/scss/parser.rb 2018-03-23 01:44:24.000000000 +0100 @@ -898,7 +898,7 @@ (?! url\( ) - [^()\[\]{}"'#/ \t\r\n\f#{top_level ? ";!" : ""}] + [^()\[\]{}"'#/ \t\r\n\f#{top_level ? ";" : ""}] | \#(?!\{) | diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/sass/tree/visitors/to_css.rb new/lib/sass/tree/visitors/to_css.rb --- old/lib/sass/tree/visitors/to_css.rb 2018-01-05 02:22:10.000000000 +0100 +++ new/lib/sass/tree/visitors/to_css.rb 2018-03-23 01:44:24.000000000 +0100 @@ -392,7 +392,8 @@ # @param node [Sass::Script::Tree::PropNode] A custom property node. # @return [String] def format_custom_property_value(node) - if node.style == :compact || node.style == :compressed || !node.resolved_value.include?("\n") + value = node.resolved_value.sub(/\n[ \t\r\f\n]*\Z/, ' ') + if node.style == :compact || node.style == :compressed || !value.include?("\n") # Folding not involving newlines was done in the parser. We can safely # fold newlines here because tokens like strings can't contain literal # newlines, so we know any adjacent whitespace is tokenized as whitespace. @@ -401,7 +402,7 @@ # Find the smallest amount of indentation in the custom property and use # that as the base indentation level. - lines = node.resolved_value.split("\n") + lines = value.split("\n") indented_lines = lines[1..-1] min_indentation = indented_lines. map {|line| line[/^[ \t]*/]}. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/sass/version.rb new/lib/sass/version.rb --- old/lib/sass/version.rb 2018-01-05 02:22:10.000000000 +0100 +++ new/lib/sass/version.rb 2018-03-23 01:44:24.000000000 +0100 @@ -76,7 +76,6 @@ end end - @@version[:string] << " (#{name})" @@version end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2018-01-05 02:22:10.000000000 +0100 +++ new/metadata 2018-03-23 01:44:24.000000000 +0100 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: sass version: !ruby/object:Gem::Version - version: 3.5.5 + version: 3.5.6 platform: ruby authors: - Natalie Weizenbaum @@ -10,76 +10,76 @@ autorequire: bindir: bin cert_chain: [] -date: 2018-01-05 00:00:00.000000000 Z +date: 2018-03-23 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: sass-listen requirement: !ruby/object:Gem::Requirement requirements: - - - ~> + - - "~>" - !ruby/object:Gem::Version version: 4.0.0 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - - ~> + - - "~>" - !ruby/object:Gem::Version version: 4.0.0 - !ruby/object:Gem::Dependency name: yard requirement: !ruby/object:Gem::Requirement requirements: - - - ~> + - - "~>" - !ruby/object:Gem::Version version: 0.8.7.6 type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - - ~> + - - "~>" - !ruby/object:Gem::Version version: 0.8.7.6 - !ruby/object:Gem::Dependency name: redcarpet requirement: !ruby/object:Gem::Requirement requirements: - - - ~> + - - "~>" - !ruby/object:Gem::Version version: '3.3' type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - - ~> + - - "~>" - !ruby/object:Gem::Version version: '3.3' - !ruby/object:Gem::Dependency name: nokogiri requirement: !ruby/object:Gem::Requirement requirements: - - - ~> + - - "~>" - !ruby/object:Gem::Version version: 1.6.0 type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - - ~> + - - "~>" - !ruby/object:Gem::Version version: 1.6.0 - !ruby/object:Gem::Dependency name: minitest requirement: !ruby/object:Gem::Requirement requirements: - - - '>=' + - - ">=" - !ruby/object:Gem::Version version: '5' type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - - '>=' + - - ">=" - !ruby/object:Gem::Version version: '5' description: |2 @@ -95,7 +95,7 @@ extensions: [] extra_rdoc_files: [] files: -- .yardopts +- ".yardopts" - CODE_OF_CONDUCT.md - CONTRIBUTING.md - MIT-LICENSE @@ -376,17 +376,17 @@ - lib required_ruby_version: !ruby/object:Gem::Requirement requirements: - - - '>=' + - - ">=" - !ruby/object:Gem::Version version: 2.0.0 required_rubygems_version: !ruby/object:Gem::Requirement requirements: - - - '>=' + - - ">=" - !ruby/object:Gem::Version version: '0' requirements: [] rubyforge_project: sass -rubygems_version: 2.4.8 +rubygems_version: 2.6.14 signing_key: specification_version: 4 summary: A powerful but elegant CSS compiler that makes CSS fun again. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/sass/functions_test.rb new/test/sass/functions_test.rb --- old/test/sass/functions_test.rb 2018-01-05 02:22:10.000000000 +0100 +++ new/test/sass/functions_test.rb 2018-03-23 01:44:24.000000000 +0100 @@ -1318,7 +1318,7 @@ evaluate("rgb($red: 255, $green: 255)") flunk("Expected exception") rescue Sass::SyntaxError => e - assert_equal("Function rgb requires an argument named $blue", e.message) + assert_equal("wrong number of arguments (2 for 3) for `rgb'", e.message) end def test_keyword_args_with_extra_argument