Hello community,

here is the log from the commit of package rubygem-hashdiff for 
openSUSE:Factory checked in at 2017-06-08 15:01:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-hashdiff (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-hashdiff.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-hashdiff"

Thu Jun  8 15:01:40 2017 rev:4 rq:497713 version:0.3.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-hashdiff/rubygem-hashdiff.changes        
2017-01-15 11:18:36.801855124 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-hashdiff.new/rubygem-hashdiff.changes   
2017-06-08 15:01:42.198029968 +0200
@@ -1,0 +2,10 @@
+Tue May 23 09:58:16 UTC 2017 - co...@suse.com
+
+- updated to version 0.3.4
+ see installed changelog.md
+
+  ## v0.3.4 2017-05-01
+  
+  * performance improvement of HashDiff#similar? #31
+
+-------------------------------------------------------------------

Old:
----
  hashdiff-0.3.2.gem

New:
----
  hashdiff-0.3.4.gem

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

Other differences:
------------------
++++++ rubygem-hashdiff.spec ++++++
--- /var/tmp/diff_new_pack.bOg7W9/_old  2017-06-08 15:01:42.913928933 +0200
+++ /var/tmp/diff_new_pack.bOg7W9/_new  2017-06-08 15:01:42.917928368 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-hashdiff
 #
-# 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-hashdiff
-Version:        0.3.2
+Version:        0.3.4
 Release:        0
 %define mod_name hashdiff
 %define mod_full_name %{mod_name}-%{version}

++++++ hashdiff-0.3.2.gem -> hashdiff-0.3.4.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md       2016-12-27 09:50:24.000000000 +0100
+++ new/README.md       2017-05-01 06:02:25.000000000 +0200
@@ -2,6 +2,10 @@
 
 HashDiff is a ruby library to compute the smallest difference between two 
hashes.
 
+It also supports comparing two arrays.
+
+HashDiff does not monkey-patch any existing class. All features are contained 
inside the `HashDiff` module.
+
 **Docs**: [Documentation](http://rubydoc.info/gems/hashdiff)
 
 ## Why HashDiff?
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/changelog.md new/changelog.md
--- old/changelog.md    2016-12-27 09:50:24.000000000 +0100
+++ new/changelog.md    2017-05-01 06:02:25.000000000 +0200
@@ -1,5 +1,9 @@
 # Change Log
 
+## v0.3.4 2017-05-01
+
+* performance improvement of HashDiff#similar? #31
+
 ## v0.3.2 2016-12-27
 
 * replace `Fixnum` by `Integer` #28
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/hashdiff/util.rb new/lib/hashdiff/util.rb
--- old/lib/hashdiff/util.rb    2016-12-27 09:50:24.000000000 +0100
+++ new/lib/hashdiff/util.rb    2017-05-01 06:02:25.000000000 +0200
@@ -4,6 +4,7 @@
   #
   # judge whether two objects are similar
   def self.similar?(a, b, options = {})
+    return compare_values(a, b, options) unless a.is_a?(Array) || 
a.is_a?(Hash) || b.is_a?(Array) || b.is_a?(Hash)
     opts = { :similarity => 0.8 }.merge(options)
 
     count_a = count_nodes(a)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/hashdiff/version.rb new/lib/hashdiff/version.rb
--- old/lib/hashdiff/version.rb 2016-12-27 09:50:24.000000000 +0100
+++ new/lib/hashdiff/version.rb 2017-05-01 06:02:25.000000000 +0200
@@ -1,3 +1,3 @@
 module HashDiff
-  VERSION = '0.3.2'
+  VERSION = '0.3.4'
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2016-12-27 09:50:24.000000000 +0100
+++ new/metadata        2017-05-01 06:02:25.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: hashdiff
 version: !ruby/object:Gem::Version
-  version: 0.3.2
+  version: 0.3.4
 platform: ruby
 authors:
 - Liu Fengyun
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2016-12-27 00:00:00.000000000 Z
+date: 2017-05-01 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rspec


Reply via email to