Hello community,

here is the log from the commit of package rubygem-tins for openSUSE:Factory 
checked in at 2019-08-06 15:10:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-tins (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-tins.new.4126 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-tins"

Tue Aug  6 15:10:47 2019 rev:35 rq:717325 version:1.21.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-tins/rubygem-tins.changes        
2019-01-21 10:25:32.849737832 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-tins.new.4126/rubygem-tins.changes      
2019-08-06 15:10:49.875761951 +0200
@@ -1,0 +2,6 @@
+Fri Jul 19 09:42:19 UTC 2019 - Stephan Kulow <co...@suse.com>
+
+- updated to version 1.21.1
+  no changelog found
+
+-------------------------------------------------------------------

Old:
----
  tins-1.20.2.gem

New:
----
  tins-1.21.1.gem

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

Other differences:
------------------
++++++ rubygem-tins.spec ++++++
--- /var/tmp/diff_new_pack.74UN0C/_old  2019-08-06 15:10:51.131761370 +0200
+++ /var/tmp/diff_new_pack.74UN0C/_new  2019-08-06 15:10:51.131761370 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-tins
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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-tins
-Version:        1.20.2
+Version:        1.21.1
 Release:        0
 %define mod_name tins
 %define mod_full_name %{mod_name}-%{version}

++++++ tins-1.20.2.gem -> tins-1.21.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.travis.yml new/.travis.yml
--- old/.travis.yml     2018-11-14 15:47:27.000000000 +0100
+++ new/.travis.yml     2019-07-17 23:44:02.000000000 +0200
@@ -5,6 +5,7 @@
   - 2.3
   - 2.4
   - 2.5
+  - 2.6
   - ruby-head
 matrix:
   allow_failures:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/VERSION new/VERSION
--- old/VERSION 2018-11-14 15:47:27.000000000 +0100
+++ new/VERSION 2019-07-17 23:44:02.000000000 +0200
@@ -1 +1 @@
-1.20.2
+1.21.1
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/tins/duration.rb new/lib/tins/duration.rb
--- old/lib/tins/duration.rb    2018-11-14 15:47:27.000000000 +0100
+++ new/lib/tins/duration.rb    2019-07-17 23:44:02.000000000 +0200
@@ -3,6 +3,8 @@
     include Comparable
 
     def initialize(seconds)
+      @negative = seconds < 0
+      seconds = seconds.abs
       @original_seconds = seconds
       @days, @hours, @minutes, @seconds, @fractional_seconds =
         [ 86_400, 3600, 60, 1, 0 ].inject([ [], seconds ]) {|(r, s), d|
@@ -24,6 +26,10 @@
       to_f <=> other.to_f
     end
 
+    def negative?
+      @negative
+    end
+
     def days?
       @days > 0
     end
@@ -44,9 +50,10 @@
       @fractional_seconds > 0
     end
 
-    def format(template = '%d+%h:%m:%s.%f', precision: nil)
-      result = template.gsub(/%[Ddhms]/) { |directive|
+    def format(template = '%S%d+%h:%m:%s.%f', precision: nil)
+      result = template.gsub(/%[DdhmSs]/) { |directive|
         case directive
+        when '%S' then ?- if negative?
         when '%d' then @days
         when '%h' then '%02u' % @hours
         when '%m' then '%02u' % @minutes
@@ -81,6 +88,7 @@
         template << '.%f'
         precision = 3
       end
+      template.prepend '%S'
       format template, precision: precision
     end
   end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/tins/null.rb new/lib/tins/null.rb
--- old/lib/tins/null.rb        2018-11-14 15:47:27.000000000 +0100
+++ new/lib/tins/null.rb        2019-07-17 23:44:02.000000000 +0200
@@ -81,7 +81,9 @@
     include Tins::Null
   end
 
-  NULL = NullClass.new.freeze
+  NULL = NullClass.new
+
+  NULL.freeze
 
   class NullPlus
     include Tins::Null
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/tins/unit.rb new/lib/tins/unit.rb
--- old/lib/tins/unit.rb        2018-11-14 15:47:27.000000000 +0100
+++ new/lib/tins/unit.rb        2019-07-17 23:44:02.000000000 +0200
@@ -42,7 +42,7 @@
       result %= value
     else
       prefix = prefixes[
-        (first_prefix.fraction ? -1 : 1) * Math.log(value) / 
Math.log(first_prefix.step)
+        (first_prefix.fraction ? -1 : 1) * Math.log(value.abs) / 
Math.log(first_prefix.step)
       ]
       result = format.sub('%U', "#{prefix.name}#{unit}")
       result %= (value / prefix.multiplier.to_f)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/tins/version.rb new/lib/tins/version.rb
--- old/lib/tins/version.rb     2018-11-14 15:47:27.000000000 +0100
+++ new/lib/tins/version.rb     2019-07-17 23:44:02.000000000 +0200
@@ -1,6 +1,6 @@
 module Tins
   # Tins version
-  VERSION         = '1.20.2'
+  VERSION         = '1.21.1'
   VERSION_ARRAY   = VERSION.split('.').map(&:to_i) # :nodoc:
   VERSION_MAJOR   = VERSION_ARRAY[0] # :nodoc:
   VERSION_MINOR   = VERSION_ARRAY[1] # :nodoc:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2018-11-14 15:47:27.000000000 +0100
+++ new/metadata        2019-07-17 23:44:02.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: tins
 version: !ruby/object:Gem::Version
-  version: 1.20.2
+  version: 1.21.1
 platform: ruby
 authors:
 - Florian Frank
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2018-11-14 00:00:00.000000000 Z
+date: 2019-07-17 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: gem_hadar
@@ -400,8 +400,7 @@
     - !ruby/object:Gem::Version
       version: '0'
 requirements: []
-rubyforge_project: 
-rubygems_version: 2.7.7
+rubygems_version: 3.0.3
 signing_key: 
 specification_version: 4
 summary: Useful stuff.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/duration_test.rb new/tests/duration_test.rb
--- old/tests/duration_test.rb  2018-11-14 15:47:27.000000000 +0100
+++ new/tests/duration_test.rb  2019-07-17 23:44:02.000000000 +0200
@@ -68,6 +68,14 @@
       t2 = Tins::Duration.new(666.12345)
       assert_operator t1, :>, t2
     end
+
+    def test_negative_durations
+      duration = Tins::Duration.new(-42)
+      assert_equal '-0+00:00:42.000000', duration.format
+      assert_equal '-00:00:42', duration.to_s
+      assert_true duration.negative?
+      assert_false Tins::Duration.new(42).negative?
+    end
   end
 end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/unit_test.rb new/tests/unit_test.rb
--- old/tests/unit_test.rb      2018-11-14 15:47:27.000000000 +0100
+++ new/tests/unit_test.rb      2019-07-17 23:44:03.000000000 +0200
@@ -26,6 +26,8 @@
     def test_format_multipliers
       assert_equal '23 Kb',
         format(23 * 1024, format: '%d %U')
+      assert_equal '-23 Kb',
+        format(-23 * 1024, format: '%d %U')
       assert_equal '23.1 Kb',
         format(23 * 1024 + 111, format: '%.1f %U')
       assert_equal 'Kbps: 23',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tins.gemspec new/tins.gemspec
--- old/tins.gemspec    2018-11-14 15:47:27.000000000 +0100
+++ new/tins.gemspec    2019-07-17 23:44:03.000000000 +0200
@@ -1,14 +1,14 @@
 # -*- encoding: utf-8 -*-
-# stub: tins 1.20.2 ruby lib
+# stub: tins 1.21.1 ruby lib
 
 Gem::Specification.new do |s|
   s.name = "tins".freeze
-  s.version = "1.20.2"
+  s.version = "1.21.1"
 
   s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if 
s.respond_to? :required_rubygems_version=
   s.require_paths = ["lib".freeze]
   s.authors = ["Florian Frank".freeze]
-  s.date = "2018-11-14"
+  s.date = "2019-07-17"
   s.description = "All the stuff that isn't good/big enough for a real 
library.".freeze
   s.email = "fl...@ping.de".freeze
   s.extra_rdoc_files = ["README.md".freeze, "lib/dslkit.rb".freeze, 
"lib/dslkit/polite.rb".freeze, "lib/dslkit/rude.rb".freeze, 
"lib/spruz.rb".freeze, "lib/tins.rb".freeze, "lib/tins/alias.rb".freeze, 
"lib/tins/annotate.rb".freeze, "lib/tins/ask_and_send.rb".freeze, 
"lib/tins/attempt.rb".freeze, "lib/tins/bijection.rb".freeze, 
"lib/tins/case_predicate.rb".freeze, "lib/tins/complete.rb".freeze, 
"lib/tins/concern.rb".freeze, "lib/tins/count_by.rb".freeze, 
"lib/tins/date_dummy.rb".freeze, "lib/tins/date_time_dummy.rb".freeze, 
"lib/tins/deep_const_get.rb".freeze, "lib/tins/deep_dup.rb".freeze, 
"lib/tins/dslkit.rb".freeze, "lib/tins/duration.rb".freeze, 
"lib/tins/expose.rb".freeze, 
"lib/tins/extract_last_argument_options.rb".freeze, 
"lib/tins/file_binary.rb".freeze, "lib/tins/find.rb".freeze, 
"lib/tins/generator.rb".freeze, "lib/tins/go.rb".freeze, 
"lib/tins/hash_symbolize_keys_recursive.rb".freeze, 
"lib/tins/hash_union.rb".freeze, "lib/tins/if_predicate.rb".freeze, 
"lib/tins/implement.rb".freeze, "lib/tins/limited.rb".freeze, 
"lib/tins/lines_file.rb".freeze, "lib/tins/memoize.rb".freeze, 
"lib/tins/method_description.rb".freeze, "lib/tins/minimize.rb".freeze, 
"lib/tins/module_group.rb".freeze, "lib/tins/named_set.rb".freeze, 
"lib/tins/null.rb".freeze, "lib/tins/once.rb".freeze, "lib/tins/p.rb".freeze, 
"lib/tins/partial_application.rb".freeze, "lib/tins/proc_compose.rb".freeze, 
"lib/tins/proc_prelude.rb".freeze, "lib/tins/range_plus.rb".freeze, 
"lib/tins/require_maybe.rb".freeze, "lib/tins/responding.rb".freeze, 
"lib/tins/secure_write.rb".freeze, "lib/tins/sexy_singleton.rb".freeze, 
"lib/tins/string_byte_order_mark.rb".freeze, 
"lib/tins/string_camelize.rb".freeze, "lib/tins/string_underscore.rb".freeze, 
"lib/tins/string_version.rb".freeze, "lib/tins/subhash.rb".freeze, 
"lib/tins/temp_io.rb".freeze, "lib/tins/temp_io_enum.rb".freeze, 
"lib/tins/terminal.rb".freeze, "lib/tins/thread_local.rb".freeze, 
"lib/tins/time_dummy.rb".freeze, "lib/tins/to.rb".freeze, 
"lib/tins/to_proc.rb".freeze, "lib/tins/token.rb".freeze, 
"lib/tins/uniq_by.rb".freeze, "lib/tins/unit.rb".freeze, 
"lib/tins/version.rb".freeze, "lib/tins/write.rb".freeze, 
"lib/tins/xt.rb".freeze, "lib/tins/xt/annotate.rb".freeze, 
"lib/tins/xt/ask_and_send.rb".freeze, "lib/tins/xt/attempt.rb".freeze, 
"lib/tins/xt/blank.rb".freeze, "lib/tins/xt/case_predicate.rb".freeze, 
"lib/tins/xt/complete.rb".freeze, "lib/tins/xt/concern.rb".freeze, 
"lib/tins/xt/count_by.rb".freeze, "lib/tins/xt/date_dummy.rb".freeze, 
"lib/tins/xt/date_time_dummy.rb".freeze, 
"lib/tins/xt/deep_const_get.rb".freeze, "lib/tins/xt/deep_dup.rb".freeze, 
"lib/tins/xt/dslkit.rb".freeze, "lib/tins/xt/expose.rb".freeze, 
"lib/tins/xt/extract_last_argument_options.rb".freeze, 
"lib/tins/xt/file_binary.rb".freeze, "lib/tins/xt/full.rb".freeze, 
"lib/tins/xt/hash_symbolize_keys_recursive.rb".freeze, 
"lib/tins/xt/hash_union.rb".freeze, "lib/tins/xt/if_predicate.rb".freeze, 
"lib/tins/xt/implement.rb".freeze, "lib/tins/xt/irb.rb".freeze, 
"lib/tins/xt/method_description.rb".freeze, "lib/tins/xt/named.rb".freeze, 
"lib/tins/xt/null.rb".freeze, "lib/tins/xt/p.rb".freeze, 
"lib/tins/xt/partial_application.rb".freeze, 
"lib/tins/xt/proc_compose.rb".freeze, "lib/tins/xt/proc_prelude.rb".freeze, 
"lib/tins/xt/range_plus.rb".freeze, "lib/tins/xt/require_maybe.rb".freeze, 
"lib/tins/xt/responding.rb".freeze, "lib/tins/xt/secure_write.rb".freeze, 
"lib/tins/xt/sexy_singleton.rb".freeze, "lib/tins/xt/string.rb".freeze, 
"lib/tins/xt/string_byte_order_mark.rb".freeze, 
"lib/tins/xt/string_camelize.rb".freeze, 
"lib/tins/xt/string_underscore.rb".freeze, 
"lib/tins/xt/string_version.rb".freeze, "lib/tins/xt/subhash.rb".freeze, 
"lib/tins/xt/temp_io.rb".freeze, "lib/tins/xt/time_dummy.rb".freeze, 
"lib/tins/xt/time_freezer.rb".freeze, "lib/tins/xt/to.rb".freeze, 
"lib/tins/xt/uniq_by.rb".freeze, "lib/tins/xt/write.rb".freeze]
@@ -17,7 +17,7 @@
   s.licenses = ["MIT".freeze]
   s.rdoc_options = ["--title".freeze, "Tins - Useful stuff.".freeze, 
"--main".freeze, "README.md".freeze]
   s.required_ruby_version = Gem::Requirement.new(">= 2.0".freeze)
-  s.rubygems_version = "2.7.7".freeze
+  s.rubygems_version = "3.0.3".freeze
   s.summary = "Useful stuff.".freeze
   s.test_files = ["tests/annotate_test.rb".freeze, 
"tests/ask_and_send_test.rb".freeze, "tests/attempt_test.rb".freeze, 
"tests/bijection_test.rb".freeze, "tests/blank_full_test.rb".freeze, 
"tests/case_predicate_test.rb".freeze, "tests/concern_test.rb".freeze, 
"tests/count_by_test.rb".freeze, "tests/date_dummy_test.rb".freeze, 
"tests/date_time_dummy_test.rb".freeze, "tests/deep_const_get_test.rb".freeze, 
"tests/deep_dup_test.rb".freeze, "tests/delegate_test.rb".freeze, 
"tests/dslkit_test.rb".freeze, "tests/duration_test.rb".freeze, 
"tests/dynamic_scope_test.rb".freeze, "tests/expose_test.rb".freeze, 
"tests/extract_last_argument_options_test.rb".freeze, 
"tests/file_binary_test.rb".freeze, "tests/find_test.rb".freeze, 
"tests/from_module_test.rb".freeze, "tests/generator_test.rb".freeze, 
"tests/go_test.rb".freeze, 
"tests/hash_symbolize_keys_recursive_test.rb".freeze, 
"tests/hash_union_test.rb".freeze, "tests/if_predicate_test.rb".freeze, 
"tests/implement_test.rb".freeze, "tests/limited_test.rb".freeze, 
"tests/lines_file_test.rb".freeze, "tests/memoize_test.rb".freeze, 
"tests/method_description_test.rb".freeze, "tests/minimize_test.rb".freeze, 
"tests/module_group_test.rb".freeze, "tests/named_set_test.rb".freeze, 
"tests/named_test.rb".freeze, "tests/null_test.rb".freeze, 
"tests/p_test.rb".freeze, "tests/partial_application_test.rb".freeze, 
"tests/proc_compose_test.rb".freeze, "tests/proc_prelude_test.rb".freeze, 
"tests/range_plus_test.rb".freeze, "tests/require_maybe_test.rb".freeze, 
"tests/responding_test.rb".freeze, "tests/rotate_test.rb".freeze, 
"tests/scope_test.rb".freeze, "tests/secure_write_test.rb".freeze, 
"tests/sexy_singleton_test.rb".freeze, 
"tests/string_byte_order_mark_test.rb".freeze, 
"tests/string_camelize_test.rb".freeze, 
"tests/string_underscore_test.rb".freeze, 
"tests/string_version_test.rb".freeze, "tests/subhash_test.rb".freeze, 
"tests/temp_io_test.rb".freeze, "tests/test_helper.rb".freeze, 
"tests/time_dummy_test.rb".freeze, "tests/time_freezer_test.rb".freeze, 
"tests/to_test.rb".freeze, "tests/token_test.rb".freeze, 
"tests/uniq_by_test.rb".freeze, "tests/unit_test.rb".freeze, 
"tests/if_predicate_test.rb".freeze, "tests/string_camelize_test.rb".freeze, 
"tests/case_predicate_test.rb".freeze, "tests/sexy_singleton_test.rb".freeze, 
"tests/hash_union_test.rb".freeze, "tests/date_dummy_test.rb".freeze, 
"tests/string_byte_order_mark_test.rb".freeze, "tests/deep_dup_test.rb".freeze, 
"tests/generator_test.rb".freeze, "tests/ask_and_send_test.rb".freeze, 
"tests/hash_symbolize_keys_recursive_test.rb".freeze, 
"tests/memoize_test.rb".freeze, "tests/find_test.rb".freeze, 
"tests/extract_last_argument_options_test.rb".freeze, 
"tests/null_test.rb".freeze, "tests/temp_io_test.rb".freeze, 
"tests/proc_prelude_test.rb".freeze, "tests/token_test.rb".freeze, 
"tests/bijection_test.rb".freeze, "tests/p_test.rb".freeze, 
"tests/dynamic_scope_test.rb".freeze, "tests/lines_file_test.rb".freeze, 
"tests/count_by_test.rb".freeze, "tests/responding_test.rb".freeze, 
"tests/time_freezer_test.rb".freeze, "tests/attempt_test.rb".freeze, 
"tests/concern_test.rb".freeze, "tests/implement_test.rb".freeze, 
"tests/dslkit_test.rb".freeze, "tests/range_plus_test.rb".freeze, 
"tests/deep_const_get_test.rb".freeze, "tests/named_set_test.rb".freeze, 
"tests/proc_compose_test.rb".freeze, "tests/minimize_test.rb".freeze, 
"tests/subhash_test.rb".freeze, "tests/delegate_test.rb".freeze, 
"tests/time_dummy_test.rb".freeze, "tests/limited_test.rb".freeze, 
"tests/duration_test.rb".freeze, "tests/method_description_test.rb".freeze, 
"tests/to_test.rb".freeze, "tests/file_binary_test.rb".freeze, 
"tests/partial_application_test.rb".freeze, 
"tests/date_time_dummy_test.rb".freeze, "tests/expose_test.rb".freeze, 
"tests/rotate_test.rb".freeze, "tests/module_group_test.rb".freeze, 
"tests/unit_test.rb".freeze, "tests/string_underscore_test.rb".freeze, 
"tests/named_test.rb".freeze, "tests/from_module_test.rb".freeze, 
"tests/string_version_test.rb".freeze, "tests/require_maybe_test.rb".freeze, 
"tests/uniq_by_test.rb".freeze, "tests/secure_write_test.rb".freeze, 
"tests/blank_full_test.rb".freeze, "tests/scope_test.rb".freeze, 
"tests/annotate_test.rb".freeze, "tests/go_test.rb".freeze]
 


Reply via email to