Hello community,
here is the log from the commit of package rubygem-sexp_processor for openSUSE:Factory checked in at 2017-04-11 09:31:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-sexp_processor (Old)
and /work/SRC/openSUSE:Factory/.rubygem-sexp_processor.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-sexp_processor"
Tue Apr 11 09:31:40 2017 rev:25 rq:456613 version:4.8.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-sexp_processor/rubygem-sexp_processor.changes 2016-03-07 13:27:53.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-sexp_processor.new/rubygem-sexp_processor.changes 2017-04-11 09:31:43.526975264 +0200
@@ -1,0 +2,13 @@
+Thu Feb 2 05:53:43 UTC 2017 - coolo@suse.com
+
+- updated to version 4.8.0
+ see installed History.txt
+
+ === 4.8.0 / 2017-02-01
+
+ * 2 minor enhancements:
+
+ * Added Sexp#line_max
+ * Extended MethodBasedSexpProcessor#in_method to take line_max and record span.
+
+-------------------------------------------------------------------
Old:
----
sexp_processor-4.7.0.gem
New:
----
sexp_processor-4.8.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-sexp_processor.spec ++++++
--- /var/tmp/diff_new_pack.A8iQzI/_old 2017-04-11 09:31:45.246732379 +0200
+++ /var/tmp/diff_new_pack.A8iQzI/_new 2017-04-11 09:31:45.250731814 +0200
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-sexp_processor
#
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
#
Name: rubygem-sexp_processor
-Version: 4.7.0
+Version: 4.8.0
Release: 0
%define mod_name sexp_processor
%define mod_full_name %{mod_name}-%{version}
++++++ sexp_processor-4.7.0.gem -> sexp_processor-4.8.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/History.txt new/History.txt
--- old/History.txt 2016-02-19 03:08:50.000000000 +0100
+++ new/History.txt 2017-02-01 21:04:33.000000000 +0100
@@ -1,3 +1,10 @@
+=== 4.8.0 / 2017-02-01
+
+* 2 minor enhancements:
+
+ * Added Sexp#line_max
+ * Extended MethodBasedSexpProcessor#in_method to take line_max and record span.
+
=== 4.7.0 / 2016-02-18
* 2 minor enhancements:
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
Binary files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/data.tar.gz.sig new/data.tar.gz.sig
--- old/data.tar.gz.sig 2016-02-19 03:08:50.000000000 +0100
+++ new/data.tar.gz.sig 2017-02-01 21:04:33.000000000 +0100
@@ -1 +1,3 @@
-Z¶O2ßµê·kj¶ÓlzŸâ,£¥Jº°± wJT%ä)Q°
%¯QÎX}ñ6Æ[¡-£ÉµA|#øCpË¿Rãþ¥ôïK^з+ RŽ %~SrkkÅÖ)±¿ÊCÄV
b6,h8ç«Æ
eøIBþ,œâUÝüÔËý°È"õ|ìédÂÑ굊NMª§xÅþôÊCN_ðoU¿<°åî¿PCË2:^5€Ú%žõBTH)VæÁ
<>d wTñô¬ÑµÇZlä ¥Y2ïÔ!i³JÖã\
+rÉ21NÚÇv$KBb£Àj·ìS»&/Ú$PÆ%Žìs£ÿ
+øªAšúá|¢¢3'Œ5;+Ò®ýez`ø©e
V émyÌ
6Ú»°
<°/wîq€/ÛCÔb¯1
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/pt_testcase.rb new/lib/pt_testcase.rb
--- old/lib/pt_testcase.rb 2016-02-19 03:08:50.000000000 +0100
+++ new/lib/pt_testcase.rb 2017-02-01 21:04:33.000000000 +0100
@@ -2,7 +2,7 @@
$TESTING = true
-require 'minitest/unit'
+require 'minitest/test'
require 'sexp_processor' # for deep_clone
# key:
@@ -111,6 +111,8 @@
if tversions then
cversion = self.class.name[/#{VER_RE}/]
+ assert true # shut up prove_it!
+
# can't push this up because it may be generating into an
# abstract test class and the actual subclass is versioned.
return "version specific test" unless tversions.include? cversion if cversion
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/sexp.rb new/lib/sexp.rb
--- old/lib/sexp.rb 2016-02-19 03:08:50.000000000 +0100
+++ new/lib/sexp.rb 2017-02-01 21:04:33.000000000 +0100
@@ -200,6 +200,13 @@
end
##
+ # Returns the maximum line number of the children of self.
+
+ def line_max
+ self.deep_each.map(&:line).max
+ end
+
+ ##
# Returns the size of the sexp, flattened.
def mass
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 2016-02-19 03:08:50.000000000 +0100
+++ new/lib/sexp_processor.rb 2017-02-01 21:04:33.000000000 +0100
@@ -33,7 +33,7 @@
class SexpProcessor
- VERSION = "4.7.0"
+ VERSION = "4.8.0"
##
# Automatically shifts off the Sexp type before handing the
@@ -488,10 +488,11 @@
##
# Adds name to the method stack, for the duration of the block
- def in_method(name, file, line)
+ def in_method name, file, line, line_max=nil
method_name = Regexp === name ? name.inspect : name.to_s
@method_stack.unshift method_name
- @method_locations[signature] = "#{file}:#{line}"
+ line_max = "-#{line_max}" if line_max
+ @method_locations[signature] = "#{file}:#{line}#{line_max}"
yield
ensure
@method_stack.shift
@@ -562,7 +563,8 @@
def process_defn(exp)
exp.shift unless auto_shift_type # node type
name = @sclass.empty? ? exp.shift : "::#{exp.shift}"
- in_method name, exp.file, exp.line do
+
+ in_method name, exp.file, exp.line, exp.line_max do
if block_given? then
yield
else
@@ -580,7 +582,7 @@
def process_defs(exp)
exp.shift unless auto_shift_type # node type
process exp.shift # recv
- in_method "::#{exp.shift}", exp.file, exp.line do
+ in_method "::#{exp.shift}", exp.file, exp.line, exp.line_max do
if block_given? then
yield
else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2016-02-19 03:08:50.000000000 +0100
+++ new/metadata 2017-02-01 21:04:33.000000000 +0100
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: sexp_processor
version: !ruby/object:Gem::Version
- version: 4.7.0
+ version: 4.8.0
platform: ruby
authors:
- Ryan Davis
@@ -10,9 +10,9 @@
cert_chain:
- |
-----BEGIN CERTIFICATE-----
- MIIDPjCCAiagAwIBAgIBAzANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
+ MIIDijCCAnKgAwIBAgIBATANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
- GRYDY29tMB4XDTE1MDkxOTIwNTEyMloXDTE2MDkxODIwNTEyMlowRTETMBEGA1UE
+ GRYDY29tMB4XDTE2MDkyNjAxNTczNVoXDTE3MDkyNjAxNTczNVowRTETMBEGA1UE
AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
@@ -20,59 +20,46 @@
oOvjtt5P8+GSK9zLzxQP0gVLS/D0FmoE44XuDr3iQkVS2ujU5zZL84mMNqNB1znh
GiadM9GHRaDiaxuX0cIUBj19T01mVE2iymf9I6bEsiayK/n6QujtyCbTWsAS9R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olaE3NRGUzGVOUSptZppAKiavY
+ fO6tdKQc/5RfA8oQEkg8hrxA5PQSz4TOFJGLpFvIapEk6tMruQ0bHgkhr9auXg==
-----END CERTIFICATE-----
-date: 2016-02-19 00:00:00.000000000 Z
+date: 2017-02-01 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
- name: minitest
- requirement: !ruby/object:Gem::Requirement
- requirements:
- - - ~>
- - !ruby/object:Gem::Version
- version: '5.8'
- type: :development
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - ~>
- - !ruby/object:Gem::Version
- version: '5.8'
-- !ruby/object:Gem::Dependency
name: rdoc
requirement: !ruby/object:Gem::Requirement
requirements:
- - - ~>
+ - - "~>"
- !ruby/object:Gem::Version
version: '4.0'
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - - ~>
+ - - "~>"
- !ruby/object:Gem::Version
version: '4.0'
- !ruby/object:Gem::Dependency
name: hoe
requirement: !ruby/object:Gem::Requirement
requirements:
- - - ~>
+ - - "~>"
- !ruby/object:Gem::Version
- version: '3.14'
+ version: '3.16'
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - - ~>
+ - - "~>"
- !ruby/object:Gem::Version
- version: '3.14'
+ version: '3.16'
description: |-
sexp_processor branches from ParseTree bringing all the generic sexp
processing tools with it. Sexp, SexpProcessor, Environment, etc... all
@@ -105,23 +92,23 @@
metadata: {}
post_install_message:
rdoc_options:
-- --main
+- "--main"
- README.txt
require_paths:
- lib
required_ruby_version: !ruby/object:Gem::Requirement
requirements:
- - - '>='
+ - - ">="
- !ruby/object:Gem::Version
version: '0'
required_rubygems_version: !ruby/object:Gem::Requirement
requirements:
- - - '>='
+ - - ">="
- !ruby/object:Gem::Version
version: '0'
requirements: []
rubyforge_project:
-rubygems_version: 2.4.5
+rubygems_version: 2.6.8
signing_key:
specification_version: 4
summary: sexp_processor branches from ParseTree bringing all the generic sexp processing
Binary 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.rb new/test/test_sexp.rb
--- old/test/test_sexp.rb 2016-02-19 03:08:50.000000000 +0100
+++ new/test/test_sexp.rb 2017-02-01 21:04:33.000000000 +0100
@@ -48,8 +48,15 @@
@sexp_class = Object.const_get(self.class.name[4..-1])
@processor = SexpProcessor.new
@sexp = @sexp_class.new(1, 2, 3)
- @basic_sexp = s(:lasgn, :var, s(:lit, 42))
- @complex_sexp = s(:block, s(:lasgn, :foo, s(:str, "foo")), s(:if, s(:and, s(:true), s(:lit, 1)), s(:if, s(:lvar, :foo), s(:str, "bar"), nil), s(:true)))
+ @basic_sexp = s(:lasgn, :var, s(:lit, 42).line(1)).line(1)
+ @complex_sexp = s(:block,
+ s(:lasgn, :foo, s(:str, "foo").line(1)).line(1),
+ s(:if, s(:and, s(:true).line(2), s(:lit, 1).line(2)).line(2),
+ s(:if, s(:lvar, :foo).line(3),
+ s(:str, "bar").line(3),
+ nil).line(3),
+ s(:true).line(5)).line(2)).line(1)
+
@re = s(:lit, 42)
@bad1 = s(:lit, 24)
@bad1 = s(:blah, 42)
@@ -193,6 +200,18 @@
k.new(:a, k.new(:b)).inspect)
end
+ def test_line
+ assert_nil @sexp.line
+ assert_equal 1, @basic_sexp.line
+ assert_equal 1, @complex_sexp.line
+ end
+
+ def test_line_max
+ assert_nil @sexp.line_max
+ assert_equal 1, @basic_sexp.line_max
+ assert_equal 5, @complex_sexp.line_max
+ end
+
def test_mass
assert_equal 1, s(:a).mass
assert_equal 3, s(:a, s(:b), s(:c)).mass
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 2016-02-19 03:08:50.000000000 +0100
+++ new/test/test_sexp_processor.rb 2017-02-01 21:04:33.000000000 +0100
@@ -327,6 +327,19 @@
assert_equal expected, processor.method_locations
end
+ def test_in_method_line_max
+ assert_empty processor.method_stack
+
+ processor.in_method "xxx", "file.rb", 42, 44 do
+ assert_equal ["xxx"], processor.method_stack
+ end
+
+ assert_empty processor.method_stack
+
+ expected = {"main#xxx" => "file.rb:42-44"}
+ assert_equal expected, processor.method_locations
+ end
+
def test_klass_name
assert_equal :main, processor.klass_name