Hello community,

here is the log from the commit of package rubygem-sassc for openSUSE:Factory 
checked in at 2019-09-11 10:33:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-sassc (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-sassc.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-sassc"

Wed Sep 11 10:33:20 2019 rev:4 rq:729647 version:2.2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-sassc/rubygem-sassc.changes      
2019-08-22 10:57:56.977654977 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-sassc.new.7948/rubygem-sassc.changes    
2019-09-11 10:33:36.631327286 +0200
@@ -1,0 +2,6 @@
+Tue Sep 10 06:07:53 UTC 2019 - Manuel Schnitzer <mschnit...@suse.com>
+
+- updated to version 2.2.0
+  see installed CHANGELOG.md
+
+-------------------------------------------------------------------

Old:
----
  sassc-2.1.0.gem

New:
----
  sassc-2.2.0.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-sassc.spec ++++++
--- /var/tmp/diff_new_pack.Vf5wWF/_old  2019-09-11 10:33:37.163327132 +0200
+++ /var/tmp/diff_new_pack.Vf5wWF/_new  2019-09-11 10:33:37.163327132 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-sassc
-Version:        2.1.0
+Version:        2.2.0
 Release:        0
 %define mod_name sassc
 %define mod_full_name %{mod_name}-%{version}

++++++ sassc-2.1.0.gem -> sassc-2.2.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md    2019-08-19 15:20:28.000000000 +0200
+++ new/CHANGELOG.md    2019-08-27 15:56:05.000000000 +0200
@@ -1,3 +1,5 @@
+- **2.2.0**
+  - [Do not build precompiled gems for 
Linux](https://github.com/sass/sassc-ruby/pull/145)
 - **2.1.0**
   - Equivalent to 2.1.0.pre3
 - **2.1.0.pre3**
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Rakefile new/Rakefile
--- old/Rakefile        2019-08-19 15:20:28.000000000 +0200
+++ new/Rakefile        2019-08-27 15:56:05.000000000 +0200
@@ -18,7 +18,7 @@
   ext.ext_dir = 'ext'
   ext.lib_dir = 'lib/sassc'
   ext.cross_compile = true
-  ext.cross_platform = %w[x86-mingw32 x64-mingw32 x86-linux x86_64-linux]
+  ext.cross_platform = %w[x86-mingw32 x64-mingw32]
 
   # Link C++ stdlib statically when building binary gems.
   ext.cross_config_options << '--enable-static-stdlib'
@@ -38,7 +38,7 @@
   # Only one version should be specified, as the shared library is 
Ruby-agnostic.
   #
   # g++-multilib is installed for 64->32-bit cross-compilation.
-  RakeCompilerDock.sh "sudo apt-get install -y g++-multilib && bundle && gem i 
rake --no-document && "\
+  RakeCompilerDock.sh "sudo apt-get install -y g++-multilib && gem i rake 
bundler --no-document && bundle && "\
                       "rake clean && rake cross native gem MAKE='nice make 
-j`nproc`' "\
                       "RUBY_CC_VERSION=2.6.0 CLEAN=1"
 end
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/sassc/functions_handler.rb 
new/lib/sassc/functions_handler.rb
--- old/lib/sassc/functions_handler.rb  2019-08-19 15:20:29.000000000 +0200
+++ new/lib/sassc/functions_handler.rb  2019-08-27 15:56:05.000000000 +0200
@@ -12,7 +12,11 @@
 
       list = Native.make_function_list(Script.custom_functions.count)
 
-      functions = FunctionWrapper.extend(Script::Functions)
+      # use an anonymous class wrapper to avoid mutations in a threaded 
environment
+      functions = Class.new do
+        attr_accessor :options
+        include Script::Functions
+      end.new
       functions.options = @options
 
       Script.custom_functions.each_with_index do |custom_function, i|
@@ -65,11 +69,5 @@
       $stderr.puts "[SassC::FunctionsHandler] #{message}"
       Native.make_error(message)
     end
-
-    class FunctionWrapper
-      class << self
-        attr_accessor :options
-      end
-    end
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/sassc/script.rb new/lib/sassc/script.rb
--- old/lib/sassc/script.rb     2019-08-19 15:20:29.000000000 +0200
+++ new/lib/sassc/script.rb     2019-08-27 15:56:05.000000000 +0200
@@ -4,9 +4,7 @@
   module Script
 
     def self.custom_functions
-      Functions.instance_methods.select do |function|
-        Functions.public_method_defined?(function)
-      end
+      Functions.public_instance_methods
     end
 
     def self.formatted_function_name(function_name)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/sassc/version.rb new/lib/sassc/version.rb
--- old/lib/sassc/version.rb    2019-08-19 15:20:29.000000000 +0200
+++ new/lib/sassc/version.rb    2019-08-27 15:56:05.000000000 +0200
@@ -1,5 +1,5 @@
 # frozen_string_literal: true
 
 module SassC
-  VERSION = "2.1.0"
+  VERSION = "2.2.0"
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2019-08-19 15:20:28.000000000 +0200
+++ new/metadata        2019-08-27 15:56:05.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: sassc
 version: !ruby/object:Gem::Version
-  version: 2.1.0
+  version: 2.2.0
 platform: ruby
 authors:
 - Ryan Boland
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2019-08-19 00:00:00.000000000 Z
+date: 2019-08-27 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: minitest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/test/functions_test.rb new/test/functions_test.rb
--- old/test/functions_test.rb  2019-08-19 15:20:29.000000000 +0200
+++ new/test/functions_test.rb  2019-08-27 15:56:05.000000000 +0200
@@ -185,6 +185,22 @@
       CSS
     end
 
+    def test_concurrency
+      10.times do
+        threads = []
+        10.times do |i|
+          threads << Thread.new(i) do |id|
+            out = Engine.new("div { url: inspect_options(); }", {test_key1: 
'test_value', test_key2: id}).render
+            assert_match /test_key1/, out
+            assert_match /test_key2/, out
+            assert_match /test_value/, out
+            assert_match /#{id}/, out
+          end
+        end
+        threads.each(&:join)
+      end
+    end
+
     private
 
     def assert_sass(sass, expected_css)
@@ -279,6 +295,10 @@
         return argument
       end
 
+      def inspect_options
+        SassC::Script::Value::String.new(self.options.inspect, :string)
+      end
+
       def returns_sass_value
         return SassC::Script::Value::Color.new(red: 0, green: 0, blue: 0)
       end


Reply via email to