Hello community,

here is the log from the commit of package rubygem-sexp_processor for 
openSUSE:Factory checked in at 2014-10-14 07:11:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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
    2014-09-12 12:22:52.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-sexp_processor.new/rubygem-sexp_processor.changes
       2014-10-14 07:12:21.000000000 +0200
@@ -1,0 +2,7 @@
+Sun Oct 12 16:51:45 UTC 2014 - [email protected]
+
+- updated to version 4.4.4
+ * 1 bug fix:
+   * MethodBasedSexpProcessor#in_klass clears out the method_stack for the 
duration of the block.
+
+-------------------------------------------------------------------

Old:
----
  sexp_processor-4.4.3.gem

New:
----
  sexp_processor-4.4.4.gem

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

Other differences:
------------------
++++++ rubygem-sexp_processor.spec ++++++
--- /var/tmp/diff_new_pack.vzafcW/_old  2014-10-14 07:12:21.000000000 +0200
+++ /var/tmp/diff_new_pack.vzafcW/_new  2014-10-14 07:12:21.000000000 +0200
@@ -17,14 +17,15 @@
 
 
 Name:           rubygem-sexp_processor
-Version:        4.4.3
+Version:        4.4.4
 Release:        0
 %define mod_name sexp_processor
 %define mod_full_name %{mod_name}-%{version}
-
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  ruby-macros >= 3
-BuildRequires:  rubygem(rdoc) > 3.10
+BuildRequires:  %{rubygem gem2rpm}
+BuildRequires:  %{rubygem rdoc > 3.10}
+BuildRequires:  %{ruby}
+BuildRequires:  ruby-macros >= 5
 Url:            https://github.com/seattlerb/sexp_processor
 Source:         http://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml
@@ -37,53 +38,18 @@
 processing tools with it. Sexp, SexpProcessor, Environment, etc... all
 for your language processing pleasure.
 
-%package doc
-Summary:        RDoc documentation for %{mod_name}
-Group:          Development/Languages/Ruby
-Requires:       %{name} = %{version}
-
-%description doc
-Documentation generated at gem installation time.
-Usually in RDoc and RI formats.
-
-%package testsuite
-Summary:        Test suite for %{mod_name}
-Group:          Development/Languages/Ruby
-Requires:       %{name} = %{version}
-
-%description testsuite
-Test::Unit or RSpec files, useful for developers.
-
 %prep
-#gem_unpack
-#if you need patches, apply them here and replace the # with a % sign in the 
surrounding lines
-#gem_build
 
 %build
 
 %install
-%gem_install -f
-mkdir -p %{buildroot}%{_docdir}/%{name}
-ln -s %{gem_base}/gems/%{mod_full_name}/History.txt 
%buildroot/%{_docdir}/%{name}/History.txt
-ln -s %{gem_base}/gems/%{mod_full_name}/README.txt 
%buildroot/%{_docdir}/%{name}/README.txt
+%gem_install \
+  --doc-files="History.txt README.txt" \
+  -f
 # MANUAL
 perl -p -i -e 's|#!\S+|#!/usr/bin/ruby|g' 
%{buildroot}%{_libdir}/*/gems/*/gems/%{mod_full_name}/test/*
 # /MANUAL
 
-%files
-%defattr(-,root,root,-)
-%{_docdir}/%{name}
-%{gem_base}/cache/%{mod_full_name}.gem
-%{gem_base}/gems/%{mod_full_name}/
-%exclude %{gem_base}/gems/%{mod_full_name}/test
-%{gem_base}/specifications/%{mod_full_name}.gemspec
-
-%files doc
-%defattr(-,root,root,-)
-%doc %{gem_base}/doc
-
-%files testsuite
-%defattr(-,root,root,-)
-%{gem_base}/gems/%{mod_full_name}/test
+%gem_packages
 
 %changelog

++++++ sexp_processor-4.4.3.gem -> sexp_processor-4.4.4.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/History.txt new/History.txt
--- old/History.txt     2014-03-25 01:55:13.000000000 +0100
+++ new/History.txt     2014-08-15 02:12:46.000000000 +0200
@@ -1,3 +1,9 @@
+=== 4.4.4 / 2014-08-14
+
+* 1 bug fix:
+
+  * MethodBasedSexpProcessor#in_klass clears out the method_stack for the 
duration of the block.
+
 === 4.4.3 / 2014-03-24
 
 * 1 bug fix:
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   2014-03-25 01:55:13.000000000 +0100
+++ new/lib/sexp_processor.rb   2014-08-15 02:12:46.000000000 +0200
@@ -33,7 +33,7 @@
 
 class SexpProcessor
 
-  VERSION = "4.4.3"
+  VERSION = "4.4.4"
 
   ##
   # Automatically shifts off the Sexp type before handing the
@@ -444,7 +444,10 @@
     end
 
     @class_stack.unshift name
-    yield
+
+    with_new_method_stack do
+      yield
+    end
   ensure
     @class_stack.shift
   end
@@ -467,7 +470,10 @@
 
   def in_sklass
     @sclass.push true
-    yield
+
+    with_new_method_stack do
+      yield
+    end
   ensure
     @sclass.pop
   end
@@ -601,6 +607,18 @@
   def signature
     "#{klass_name}#{method_name}"
   end
+
+  ##
+  # Reset the method stack for the duration of the block. Used for
+  # class scoping.
+
+  def with_new_method_stack
+    old_method_stack, @method_stack = @method_stack, []
+
+    yield
+  ensure
+    @method_stack = old_method_stack
+  end
 end
 
 class Object
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2014-03-25 01:55:13.000000000 +0100
+++ new/metadata        2014-08-15 02:12:46.000000000 +0200
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: sexp_processor
 version: !ruby/object:Gem::Version
-  version: 4.4.3
+  version: 4.4.4
 platform: ruby
 authors:
 - Ryan Davis
@@ -29,7 +29,7 @@
   Y4evBVezr3SjXz08vPqRO5YRdO3zfeMT8gBjRqZjWJGMZ2lD4XNfrs7eky74CyZw
   xx3n58i0lQkBE1EpKE0lFu/y
   -----END CERTIFICATE-----
-date: 2014-03-25 00:00:00.000000000 Z
+date: 2014-08-15 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: minitest
@@ -37,14 +37,14 @@
     requirements:
     - - ~>
       - !ruby/object:Gem::Version
-        version: '5.3'
+        version: '5.4'
   type: :development
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - ~>
       - !ruby/object:Gem::Version
-        version: '5.3'
+        version: '5.4'
 - !ruby/object:Gem::Dependency
   name: rdoc
   requirement: !ruby/object:Gem::Requirement
@@ -65,14 +65,14 @@
     requirements:
     - - ~>
       - !ruby/object:Gem::Version
-        version: '3.9'
+        version: '3.12'
   type: :development
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - ~>
       - !ruby/object:Gem::Version
-        version: '3.9'
+        version: '3.12'
 description: |-
   sexp_processor branches from ParseTree bringing all the generic sexp
   processing tools with it. Sexp, SexpProcessor, Environment, etc... all
@@ -121,7 +121,7 @@
     - !ruby/object:Gem::Version
       version: '0'
 requirements: []
-rubyforge_project: sexp_processor
+rubyforge_project: 
 rubygems_version: 2.2.1
 signing_key: 
 specification_version: 4
Files old/metadata.gz.sig and new/metadata.gz.sig differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/test/test_sexp_processor.rb 
new/test/test_sexp_processor.rb
--- old/test/test_sexp_processor.rb     2014-03-25 01:55:13.000000000 +0100
+++ new/test/test_sexp_processor.rb     2014-08-15 02:12:46.000000000 +0200
@@ -306,8 +306,11 @@
   def test_in_klass
     assert_empty processor.class_stack
 
-    processor.in_klass "xxx::yyy" do
-      assert_equal ["xxx::yyy"], processor.class_stack
+    processor.in_method "method", "file", 42 do
+      processor.in_klass "xxx::yyy" do
+        assert_equal ["xxx::yyy"], processor.class_stack
+        assert_empty processor.method_stack
+      end
     end
 
     assert_empty processor.class_stack

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to