Hello community, here is the log from the commit of package rubygem-jmespath for openSUSE:Factory checked in at 2018-07-18 22:50:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-jmespath (Old) and /work/SRC/openSUSE:Factory/.rubygem-jmespath.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-jmespath" Wed Jul 18 22:50:05 2018 rev:2 rq:621009 version:1.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-jmespath/rubygem-jmespath.changes 2017-02-03 20:00:27.545618414 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-jmespath.new/rubygem-jmespath.changes 2018-07-18 22:50:06.379723597 +0200 @@ -1,0 +2,6 @@ +Thu Apr 5 04:29:56 UTC 2018 - [email protected] + +- updated to version 1.4.0 + no changelog found + +------------------------------------------------------------------- Old: ---- jmespath-1.3.1.gem New: ---- jmespath-1.4.0.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-jmespath.spec ++++++ --- /var/tmp/diff_new_pack.L5jKz5/_old 2018-07-18 22:50:07.687719260 +0200 +++ /var/tmp/diff_new_pack.L5jKz5/_new 2018-07-18 22:50:07.699719221 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-jmespath # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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,16 +24,16 @@ # Name: rubygem-jmespath -Version: 1.3.1 +Version: 1.4.0 Release: 0 %define mod_name jmespath %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: ruby-macros >= 5 -BuildRequires: %{ruby} BuildRequires: %{rubygem gem2rpm} +BuildRequires: %{ruby} +BuildRequires: ruby-macros >= 5 Url: http://github.com/trevorrowe/jmespath.rb -Source: http://rubygems.org/gems/%{mod_full_name}.gem +Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1: gem2rpm.yml Summary: JMESPath - Ruby Edition License: Apache-2.0 ++++++ jmespath-1.3.1.gem -> jmespath-1.4.0.gem ++++++ Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/jmespath/nodes/comparator.rb new/lib/jmespath/nodes/comparator.rb --- old/lib/jmespath/nodes/comparator.rb 2016-07-19 01:43:42.000000000 +0200 +++ new/lib/jmespath/nodes/comparator.rb 2018-04-05 00:28:20.000000000 +0200 @@ -54,25 +54,41 @@ class Gt < Comparator def check(left_value, right_value) - left_value.is_a?(Integer) && right_value.is_a?(Integer) && left_value > right_value + if left_value.is_a?(Numeric) && right_value.is_a?(Numeric) + left_value > right_value + else + nil + end end end class Gte < Comparator def check(left_value, right_value) - left_value.is_a?(Integer) && right_value.is_a?(Integer) && left_value >= right_value + if left_value.is_a?(Numeric) && right_value.is_a?(Numeric) + left_value >= right_value + else + nil + end end end class Lt < Comparator def check(left_value, right_value) - left_value.is_a?(Integer) && right_value.is_a?(Integer) && left_value < right_value + if left_value.is_a?(Numeric) && right_value.is_a?(Numeric) + left_value < right_value + else + nil + end end end class Lte < Comparator def check(left_value, right_value) - left_value.is_a?(Integer) && right_value.is_a?(Integer) && left_value <= right_value + if left_value.is_a?(Numeric) && right_value.is_a?(Numeric) + left_value <= right_value + else + nil + end end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/jmespath/nodes/function.rb new/lib/jmespath/nodes/function.rb --- old/lib/jmespath/nodes/function.rb 2016-07-19 01:43:42.000000000 +0200 +++ new/lib/jmespath/nodes/function.rb 2018-04-05 00:28:20.000000000 +0200 @@ -107,6 +107,7 @@ return maybe_raise Errors::InvalidArityError, "function avg() expects one argument" end if Array === values + return nil if values.empty? values.inject(0) do |total,n| if Numeric === n total + n @@ -207,7 +208,7 @@ return maybe_raise Errors::InvalidTypeError, "function map() expects the second argument to be an list" end list.map { |value| expr.eval(value) } - end + end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/jmespath/parser.rb new/lib/jmespath/parser.rb --- old/lib/jmespath/parser.rb 2016-07-19 01:43:42.000000000 +0200 +++ new/lib/jmespath/parser.rb 2018-04-05 00:28:20.000000000 +0200 @@ -59,7 +59,7 @@ # @param [Integer] rbp Right binding power def expr(stream, rbp = 0) left = send("nud_#{stream.token.type}", stream) - while rbp < stream.token.binding_power + while rbp < (stream.token.binding_power || 0) left = send("led_#{stream.token.type}", stream, left) end left diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/jmespath/version.rb new/lib/jmespath/version.rb --- old/lib/jmespath/version.rb 2016-07-19 01:43:42.000000000 +0200 +++ new/lib/jmespath/version.rb 2018-04-05 00:28:20.000000000 +0200 @@ -1,3 +1,3 @@ module JMESPath - VERSION = '1.3.1' + VERSION = '1.4.0' end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2016-07-19 01:43:42.000000000 +0200 +++ new/metadata 2018-04-05 00:28:20.000000000 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: jmespath version: !ruby/object:Gem::Version - version: 1.3.1 + version: 1.4.0 platform: ruby authors: - Trevor Rowe autorequire: bindir: bin cert_chain: [] -date: 2016-07-18 00:00:00.000000000 Z +date: 2018-04-04 00:00:00.000000000 Z dependencies: [] description: Implements JMESPath for Ruby email: [email protected] @@ -48,7 +48,7 @@ - lib/jmespath/version.rb homepage: http://github.com/trevorrowe/jmespath.rb licenses: -- Apache 2.0 +- Apache-2.0 metadata: {} post_install_message: rdoc_options: [] @@ -71,4 +71,3 @@ specification_version: 4 summary: JMESPath - Ruby Edition test_files: [] -has_rdoc:
