Update to Sass 3.5.6.

epel9
Jun Aruga 7 years ago
parent 5d00043ee6
commit 51587cffaf

1
.gitignore vendored

@ -6,3 +6,4 @@ sass-3.2.3.gem/sass-3.2.6.gem
/sass-3.4.22.gem /sass-3.4.22.gem
/sass-3.4.23.gem /sass-3.4.23.gem
/sass-3.4.25.gem /sass-3.4.25.gem
/sass-3.5.6.gem

@ -1,27 +0,0 @@
From 139e86e32506dbd8c301b1241f9b79aeed9cb696 Mon Sep 17 00:00:00 2001
From: Natalie Weizenbaum <nweiz@google.com>
Date: Wed, 4 Oct 2017 15:20:18 -0700
Subject: [PATCH] Fix custom property interpolation (#2384)
Interpolation that included the full property name (such as --#{foo})
was crashing the parser.
Closes #2383
---
lib/sass/scss/rx.rb | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sass/scss/rx.rb b/lib/sass/scss/rx.rb
index 2c48a77f..16963d1e 100644
--- a/lib/sass/scss/rx.rb
+++ b/lib/sass/scss/rx.rb
@@ -127,7 +127,7 @@
OPTIONAL = /!#{W}optional/i
IDENT_START = /-|#{NMSTART}/
- IDENT_HYPHEN_INTERP = /-(#\{)/
+ IDENT_HYPHEN_INTERP = /-+(#\{)/
STRING1_NOINTERP = /\"((?:[^\n\r\f\\"#]|#(?!\{)|#{ESCAPE})*)\"/
STRING2_NOINTERP = /\'((?:[^\n\r\f\\'#]|#(?!\{)|#{ESCAPE})*)\'/
STRING_NOINTERP = /#{STRING1_NOINTERP}|#{STRING2_NOINTERP}/

@ -0,0 +1,15 @@
diff --git a/lib/sass/plugin/compiler.rb b/lib/sass/plugin/compiler.rb
index f3ae6e3d..3979bf30 100644
--- a/lib/sass/plugin/compiler.rb
+++ b/lib/sass/plugin/compiler.rb
@@ -377,8 +377,8 @@ module Sass::Plugin
# This is mocked out in compiler_test.rb.
def create_listener(*args, &block)
- require 'sass-listen'
- SassListen.to(*args, &block)
+ require 'listen'
+ Listen.to(*args, &block)
end
def remove_redundant_directories(directories)

@ -2,18 +2,20 @@
%global gem_name sass %global gem_name sass
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 3.4.25 Version: 3.5.6
Release: 4%{?dist} Release: 1%{?dist}
Summary: A powerful but elegant CSS compiler that makes CSS fun again Summary: A powerful but elegant CSS compiler that makes CSS fun again
Group: Development/Languages Group: Development/Languages
License: MIT License: MIT
URL: http://sass-lang.com/ URL: http://sass-lang.com/
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# Backported fix for a bug that affects bootstrap # Use listen as a depencency instead of sass-listen.
# https://github.com/sass/ruby-sass/commit/139e86e32506dbd8c301b1241f9b79aeed9cb696 # sass-listen is a fork from original listen v3.0 branch to support Ruby <= 2.1.
Patch0: rubygem-sass-3.4.25-interpolation-crash.patch # https://github.com/sass/ruby-sass/pull/65
Patch0: rubygem-sass-3.5.6-use-listen.patch
BuildRequires: ruby(release) BuildRequires: ruby(release)
BuildRequires: rubygems-devel BuildRequires: rubygems-devel
BuildRequires: rubygem(listen)
BuildRequires: rubygem(minitest) BuildRequires: rubygem(minitest)
BuildArch: noarch BuildArch: noarch
%if 0%{?rhel} == 7 %if 0%{?rhel} == 7
@ -40,9 +42,11 @@ Documentation for %{name}.
gem unpack %{SOURCE0} gem unpack %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version} %setup -q -D -T -n %{gem_name}-%{version}
%patch0 -p1
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%gemspec_remove_dep -g sass-listen -s %{gem_name}.gemspec
%gemspec_add_dep -g listen -s %{gem_name}.gemspec
%patch0 -p1
%build %build
@ -50,12 +54,6 @@ gem build %{gem_name}.gemspec
%gem_install %gem_install
pushd .%{gem_instdir}
# Remove bundled rubygem-listener:
# https://github.com/nex3/sass/issues/458
rm -rf vendor
popd
%install %install
mkdir -p %{buildroot}%{gem_dir} mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \ cp -a .%{gem_dir}/* \
@ -72,12 +70,6 @@ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
find %{buildroot}%{gem_instdir}/bin -type f | \ find %{buildroot}%{gem_instdir}/bin -type f | \
xargs sed -i 's|^#!/usr/bin/env ruby|#!/usr/bin/ruby|' xargs sed -i 's|^#!/usr/bin/env ruby|#!/usr/bin/ruby|'
# Remove uneeded shebang and executable bit
# https://github.com/sass/sass/pull/2342
grep -rl '^#!/usr/bin/env ruby' %{buildroot}%{gem_instdir}/test | \
xargs sed -i '/#!\/usr\/bin\/env ruby/d'
find %{buildroot}%{gem_instdir}/test -type f -perm -u=x | xargs chmod -x
%check %check
pushd .%{gem_instdir} pushd .%{gem_instdir}
ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
@ -111,6 +103,9 @@ popd
%{gem_instdir}/test %{gem_instdir}/test
%changelog %changelog
* Fri Jun 01 2018 Jun Aruga <jaruga@redhat.com> - 3.5.6-1
- Update to Sass 3.5.6.
* Mon May 28 2018 Adam Williamson <awilliam@redhat.com> - 3.4.25-4 * Mon May 28 2018 Adam Williamson <awilliam@redhat.com> - 3.4.25-4
- Backport fix for a parser error that affects bootstrap - Backport fix for a parser error that affects bootstrap

@ -1 +1 @@
SHA512 (sass-3.4.25.gem) = 5ff4bd47857425832c6a39b963ae4465dd91d63774eb35196ec28075082ad231254babe507d7071304ddb73cdfc1168a547bf231225afaeb3b7ddd677c0bd712 SHA512 (sass-3.5.6.gem) = de7ac9598a36e60cdb440b6c8b36fed638ce3384ff078000c4d59eccb76b65d1c944aad8568ee078d6f2ca228d4f4c512143065bc20c5f91d28c2f0a170de96e

Loading…
Cancel
Save