Hello community,

here is the log from the commit of package rubygem-sexp_processor for 
openSUSE:Factory checked in at 2015-05-02 21:34:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-sexp_processor (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-sexp_processor.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-sexp_processor"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-sexp_processor/rubygem-sexp_processor.changes
    2015-03-18 13:04:57.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-sexp_processor.new/rubygem-sexp_processor.changes
       2015-05-02 21:34:39.000000000 +0200
@@ -1,0 +2,12 @@
+Tue Apr 28 07:48:12 UTC 2015 - co...@suse.com
+
+- updated to version 4.5.1
+ see installed History.txt
+
+  === 4.5.1 / 2015-04-27
+  
+  * 1 minor enhancement:
+  
+    * Cache processors and rewriters. Significant speedup. (presidentbeef)
+
+-------------------------------------------------------------------

Old:
----
  sexp_processor-4.5.0.gem

New:
----
  sexp_processor-4.5.1.gem

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

Other differences:
------------------
++++++ rubygem-sexp_processor.spec ++++++
--- /var/tmp/diff_new_pack.1tUnjZ/_old  2015-05-02 21:34:39.000000000 +0200
+++ /var/tmp/diff_new_pack.1tUnjZ/_new  2015-05-02 21:34:39.000000000 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-sexp_processor
-Version:        4.5.0
+Version:        4.5.1
 Release:        0
 %define mod_name sexp_processor
 %define mod_full_name %{mod_name}-%{version}

++++++ sexp_processor-4.5.0.gem -> sexp_processor-4.5.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/History.txt new/History.txt
--- old/History.txt     2015-03-10 00:26:05.000000000 +0100
+++ new/History.txt     2015-04-28 01:39:39.000000000 +0200
@@ -1,3 +1,9 @@
+=== 4.5.1 / 2015-04-27
+
+* 1 minor enhancement:
+
+  * Cache processors and rewriters. Significant speedup. (presidentbeef)
+
 === 4.5.0 / 2015-03-09
 
 * 1 minor enhancement:
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
Files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ
Files old/data.tar.gz.sig and new/data.tar.gz.sig differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/sexp_processor.rb new/lib/sexp_processor.rb
--- old/lib/sexp_processor.rb   2015-03-10 00:26:05.000000000 +0100
+++ new/lib/sexp_processor.rb   2015-04-28 01:39:39.000000000 +0200
@@ -33,7 +33,7 @@
 
 class SexpProcessor
 
-  VERSION = "4.5.0"
+  VERSION = "4.5.1"
 
   ##
   # Automatically shifts off the Sexp type before handing the
@@ -110,6 +110,20 @@
   end
 
   ##
+  # Cache processor methods per class.
+
+  def self.processors
+    @processors ||= {}
+  end
+
+  ##
+  # Cache rewiter methods per class.
+
+  def self.rewriters
+    @rewriters ||= {}
+  end
+
+  ##
   # Creates a new SexpProcessor.  Use super to invoke this
   # initializer from SexpProcessor subclasses, then use the
   # attributes above to customize the functionality of the
@@ -130,16 +144,18 @@
 
     # we do this on an instance basis so we can subclass it for
     # different processors.
-    @processors = {}
-    @rewriters  = {}
+    @processors = self.class.processors
+    @rewriters  = self.class.rewriters
     @context    = []
 
-    public_methods.each do |name|
-      case name
-      when /^process_(.*)/ then
-        @processors[$1.to_sym] = name.to_sym
-      when /^rewrite_(.*)/ then
-        @rewriters[$1.to_sym]  = name.to_sym
+    if @processors.empty?
+      public_methods.each do |name|
+        case name
+        when /^process_(.*)/ then
+          @processors[$1.to_sym] = name.to_sym
+        when /^rewrite_(.*)/ then
+          @rewriters[$1.to_sym]  = name.to_sym
+        end
       end
     end
   end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2015-03-10 00:26:05.000000000 +0100
+++ new/metadata        2015-04-28 01:39:39.000000000 +0200
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: sexp_processor
 version: !ruby/object:Gem::Version
-  version: 4.5.0
+  version: 4.5.1
 platform: ruby
 authors:
 - Ryan Davis
@@ -29,7 +29,7 @@
   xJcC6UN6NHMOVMyAXsr2HR0gRRx4ofN1LoP2KhXzSr8UMvQYlwPmE0N5GQv1b5AO
   VpzF30vNaJK6ZT7xlIsIlwmH
   -----END CERTIFICATE-----
-date: 2015-03-09 00:00:00.000000000 Z
+date: 2015-04-27 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: minitest
@@ -37,14 +37,14 @@
     requirements:
     - - ~>
       - !ruby/object:Gem::Version
-        version: '5.5'
+        version: '5.6'
   type: :development
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - ~>
       - !ruby/object:Gem::Version
-        version: '5.5'
+        version: '5.6'
 - !ruby/object:Gem::Dependency
   name: rdoc
   requirement: !ruby/object:Gem::Requirement
Files old/metadata.gz.sig and new/metadata.gz.sig differ


Reply via email to