Hello community,

here is the log from the commit of package rubygem-hitimes for openSUSE:Factory 
checked in at 2018-07-18 22:49:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-hitimes (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-hitimes.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-hitimes"

Wed Jul 18 22:49:56 2018 rev:7 rq:621005 version:1.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-hitimes/rubygem-hitimes.changes  
2017-09-12 19:56:56.825982126 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-hitimes.new/rubygem-hitimes.changes     
2018-07-18 22:49:58.543749577 +0200
@@ -1,0 +2,12 @@
+Fri Jun 15 22:07:51 UTC 2018 - factory-a...@kulow.org
+
+- updated to version 1.3.0
+ see installed HISTORY.md
+
+  ## Version 1.3.0 2018-06-15
+  
+  * Add api method `Hitimes.raw_instant` to expose raw OS instant value
+  * Add api constant `Hitimes::INSTANT_CONVERSION_FACTOR` to expose raw OS 
instant conversion factor
+  * other development cleanup tasks
+
+-------------------------------------------------------------------

Old:
----
  hitimes-1.2.6.gem

New:
----
  hitimes-1.3.0.gem

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

Other differences:
------------------
++++++ rubygem-hitimes.spec ++++++
--- /var/tmp/diff_new_pack.qajHm7/_old  2018-07-18 22:49:59.051747893 +0200
+++ /var/tmp/diff_new_pack.qajHm7/_new  2018-07-18 22:49:59.055747880 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-hitimes
 #
-# Copyright (c) 2017 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,7 +24,7 @@
 #
 
 Name:           rubygem-hitimes
-Version:        1.2.6
+Version:        1.3.0
 Release:        0
 %define mod_name hitimes
 %define mod_full_name %{mod_name}-%{version}
@@ -37,11 +37,12 @@
 Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        rubygem-hitimes-rpmlintrc
 Source2:        gem2rpm.yml
-Summary:        A fast, high resolution timer library for recording peformance
+Summary:        [![Build
 License:        ISC
 Group:          Development/Languages/Ruby
 
 %description
+(https://travis-ci.org/copiousfreetime/hitimes.svg?branch=master)](https://travis-ci.org/copiousfreetime/hitimes)
 A fast, high resolution timer library for recording peformance metrics. *
 (http://github.com/copiousfreetime/hitimes) *
 (http://github.com.org/copiousfreetime/hitimes) * email jeremy at

++++++ hitimes-1.2.6.gem -> hitimes-1.3.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HISTORY.md new/HISTORY.md
--- old/HISTORY.md      2017-08-04 17:17:44.000000000 +0200
+++ new/HISTORY.md      2018-06-15 23:55:01.000000000 +0200
@@ -1,4 +1,10 @@
 # Hitimes Changelog
+## Version 1.3.0 2018-06-15
+
+* Add api method `Hitimes.raw_instant` to expose raw OS instant value
+* Add api constant `Hitimes::INSTANT_CONVERSION_FACTOR` to expose raw OS 
instant conversion factor
+* other development cleanup tasks
+
 ## Version 1.2.6 2017-08-04
 
 * Resolve version number issue (#61) (thanks @anthraxx)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md       2017-08-04 17:17:44.000000000 +0200
+++ new/README.md       2018-06-15 23:55:01.000000000 +0200
@@ -1,5 +1,7 @@
 # Hitimes
 
+[![Build 
Status](https://travis-ci.org/copiousfreetime/hitimes.svg?branch=master)](https://travis-ci.org/copiousfreetime/hitimes)
+
 A fast, high resolution timer library for recording peformance metrics.
 
 * [Homepage](http://github.com/copiousfreetime/hitimes)
@@ -15,6 +17,7 @@
 * [Support](#support)
 * [License](#license)
 
+
 ## Requirements
 
 Hitimes requires the following to run:
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ext/hitimes/c/hitimes.c new/ext/hitimes/c/hitimes.c
--- old/ext/hitimes/c/hitimes.c 2017-08-04 17:17:44.000000000 +0200
+++ new/ext/hitimes/c/hitimes.c 2018-06-15 23:55:01.000000000 +0200
@@ -5,6 +5,20 @@
 VALUE mH;           /* module Hitimes            */
 VALUE eH_Error;     /* class  Hitimes::Error     */
 
+
+/**
+ * call-seq:
+ *    Hitimes.raw_instant -> Integer
+ *
+ * Return the raw instant value from the operating system
+ */
+VALUE hitimes_instant_raw( )
+{
+    unsigned long long i = (unsigned long long)hitimes_get_current_instant( );
+
+    return ULL2NUM(i);
+}
+
 /*
  * Document-class: Hitimes::Error
  *
@@ -13,8 +27,10 @@
 void Init_hitimes( )
 {
     mH = rb_define_module("Hitimes");
-     
+
     eH_Error = rb_define_class_under(mH, "Error", rb_eStandardError);
+    rb_define_const( mH, "INSTANT_CONVERSION_FACTOR", DBL2NUM( 
HITIMES_INSTANT_CONVERSION_FACTOR ));
+    rb_define_module_function( mH, "raw_instant", hitimes_instant_raw, 0 );
 
     Init_hitimes_interval();
     Init_hitimes_stats( );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ext/hitimes/java/src/hitimes/Hitimes.java 
new/ext/hitimes/java/src/hitimes/Hitimes.java
--- old/ext/hitimes/java/src/hitimes/Hitimes.java       2017-08-04 
17:17:44.000000000 +0200
+++ new/ext/hitimes/java/src/hitimes/Hitimes.java       2018-06-15 
23:55:01.000000000 +0200
@@ -4,7 +4,10 @@
 import java.lang.System;
 
 import org.jruby.anno.JRubyClass;
+import org.jruby.anno.JRubyMethod;
 import org.jruby.anno.JRubyModule;
+import org.jruby.anno.JRubyConstant;
+import org.jruby.runtime.Visibility;
 
 import org.jruby.Ruby;
 import org.jruby.RubyClass;
@@ -14,6 +17,8 @@
 
 import org.jruby.exceptions.RaiseException;
 
+import org.jruby.runtime.builtin.IRubyObject;
+
 
 /**
  * @author <a href="mailto:jer...@hinegardner.org";>Jeremy Hinegardner</a>
@@ -21,12 +26,18 @@
 @JRubyModule( name = "Hitimes" )
 public class Hitimes {
 
+    public static final double INSTANT_CONVERSION_FACTOR = 1000000000d;
+
+    private static final Ruby __ruby__ = Ruby.getGlobalRuntime();
+
     public static RubyClass hitimesIntervalClass;
     /**
      * Create the Hitimes module and add it to the Ruby runtime.
      */
-    public static RubyModule createHitimes( Ruby runtime ) {
+    public static RubyModule createHitimesModule( Ruby runtime ) {
         RubyModule mHitimes = runtime.defineModule("Hitimes");
+        mHitimes.defineConstant("INSTANT_CONVERSION_FACTOR", 
__ruby__.newFloat(INSTANT_CONVERSION_FACTOR));
+        mHitimes.defineAnnotatedMethods( Hitimes.class );
 
         RubyClass  cStandardError = runtime.getStandardError();
         RubyClass  cHitimesError  = mHitimes.defineClassUnder("Error", 
cStandardError, cStandardError.getAllocator());
@@ -47,8 +58,9 @@
     }
 
 
-
-    @JRubyClass( name = "Hitimes::Error", parent = "StandardError" )
-    public static class Error {};
+    @JRubyMethod( name = "raw_instant", module = true )
+    public static IRubyObject rawInstant(IRubyObject self) {
+      return __ruby__.newFixnum( System.nanoTime() );
+    }
 
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ext/hitimes/java/src/hitimes/HitimesInterval.java 
new/ext/hitimes/java/src/hitimes/HitimesInterval.java
--- old/ext/hitimes/java/src/hitimes/HitimesInterval.java       2017-08-04 
17:17:44.000000000 +0200
+++ new/ext/hitimes/java/src/hitimes/HitimesInterval.java       2018-06-15 
23:55:01.000000000 +0200
@@ -16,11 +16,6 @@
 @JRubyClass( name = "Hitimes::Interval" )
 public class HitimesInterval extends RubyObject {
 
-    /* this is a double to force all division by the conversion factor
-     * to cast to doubles
-     */
-    private static final double INSTANT_CONVERSION_FACTOR = 1000000000d;
-
     private static final long   INSTANT_NOT_SET  = Long.MIN_VALUE;
     private static final double DURATION_NOT_SET = Double.NaN;
 
@@ -58,7 +53,7 @@
          * if stop has not yet been called, then return the amount of time so 
far
          */
         if ( INSTANT_NOT_SET == this.stop_instant ) {
-            double d = ( System.nanoTime() - this.start_instant ) / 
INSTANT_CONVERSION_FACTOR;
+            double d = ( System.nanoTime() - this.start_instant ) / 
Hitimes.INSTANT_CONVERSION_FACTOR;
             return getRuntime().newFloat( d );
         }
 
@@ -66,7 +61,7 @@
          * if stop has been called, then calculate the duration and return
          */
         if ( DURATION_NOT_SET == this.duration ) {
-            this.duration = (this.stop_instant - this.start_instant) / 
INSTANT_CONVERSION_FACTOR;
+            this.duration = (this.stop_instant - this.start_instant) / 
Hitimes.INSTANT_CONVERSION_FACTOR;
         }
 
         return getRuntime().newFloat( this.duration );
@@ -82,7 +77,7 @@
         }
 
         if ( INSTANT_NOT_SET == this.stop_instant ) {
-            double d = ( System.nanoTime() - this.start_instant ) / 
INSTANT_CONVERSION_FACTOR;
+            double d = ( System.nanoTime() - this.start_instant ) / 
Hitimes.INSTANT_CONVERSION_FACTOR;
             return getRuntime().newFloat( d );
         }
 
@@ -140,7 +135,7 @@
 
         if ( INSTANT_NOT_SET == this.stop_instant ) {
             this.stop_instant = System.nanoTime();
-            this.duration = (this.stop_instant - this.start_instant) / 
INSTANT_CONVERSION_FACTOR;
+            this.duration = (this.stop_instant - this.start_instant) / 
Hitimes.INSTANT_CONVERSION_FACTOR;
             return getRuntime().newFloat( this.duration );
         }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ext/hitimes/java/src/hitimes/HitimesService.java 
new/ext/hitimes/java/src/hitimes/HitimesService.java
--- old/ext/hitimes/java/src/hitimes/HitimesService.java        2017-08-04 
17:17:44.000000000 +0200
+++ new/ext/hitimes/java/src/hitimes/HitimesService.java        2018-06-15 
23:55:01.000000000 +0200
@@ -8,7 +8,7 @@
 
 public class HitimesService implements BasicLibraryService {
     public boolean basicLoad( final Ruby runtime ) throws IOException {
-        Hitimes.createHitimes( runtime );
+        Hitimes.createHitimesModule( runtime );
         return true;
     }
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/hitimes/version.rb new/lib/hitimes/version.rb
--- old/lib/hitimes/version.rb  2017-08-04 17:17:44.000000000 +0200
+++ new/lib/hitimes/version.rb  2018-06-15 23:55:01.000000000 +0200
@@ -4,5 +4,5 @@
 #++
 
 module Hitimes
-  VERSION = "1.2.6"
+  VERSION = "1.3.0"
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2017-08-04 17:17:44.000000000 +0200
+++ new/metadata        2018-06-15 23:55:01.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: hitimes
 version: !ruby/object:Gem::Version
-  version: 1.2.6
+  version: 1.3.0
 platform: ruby
 authors:
 - Jeremy Hinegardner
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2017-08-04 00:00:00.000000000 Z
+date: 2018-06-15 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rake
@@ -108,9 +108,10 @@
     - - "~>"
       - !ruby/object:Gem::Version
         version: '0.14'
-description: A fast, high resolution timer library for recording peformance 
metrics.
-  * (http://github.com/copiousfreetime/hitimes) * 
(http://github.com.org/copiousfreetime/hitimes)
-  * email jeremy at copiousfreetime dot org * `git clone url 
git://github.com/copiousfreetime/hitimes.git`
+description: 
"(https://travis-ci.org/copiousfreetime/hitimes.svg?branch=master)](https://travis-ci.org/copiousfreetime/hitimes)
+  A fast, high resolution timer library for recording peformance metrics. * 
(http://github.com/copiousfreetime/hitimes)
+  * (http://github.com.org/copiousfreetime/hitimes) * email jeremy at 
copiousfreetime
+  dot org * `git clone url git://github.com/copiousfreetime/hitimes.git`"
 email: jer...@copiousfreetime.org
 executables: []
 extensions:
@@ -189,10 +190,10 @@
       version: '0'
 requirements: []
 rubyforge_project: 
-rubygems_version: 2.6.11
+rubygems_version: 2.6.12
 signing_key: 
 specification_version: 4
-summary: A fast, high resolution timer library for recording peformance 
metrics.
+summary: "[![Build 
Status](https://travis-ci.org/copiousfreetime/hitimes.svg?branch=master)](https://travis-ci.org/copiousfreetime/hitimes)"
 test_files:
 - spec/hitimes_spec.rb
 - spec/interval_spec.rb
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spec/hitimes_spec.rb new/spec/hitimes_spec.rb
--- old/spec/hitimes_spec.rb    2017-08-04 17:17:44.000000000 +0200
+++ new/spec/hitimes_spec.rb    2018-06-15 23:55:01.000000000 +0200
@@ -11,4 +11,14 @@
   it "raises an error if measure is called with no block" do
     lambda{ Hitimes.measure }.must_raise( Hitimes::Error )
   end
+
+  it "has the raw instant value" do
+    v = Hitimes.raw_instant
+    v.must_be :>, 0
+  end
+
+  it "has access to the instant conversion factor" do
+    f = Hitimes::INSTANT_CONVERSION_FACTOR
+    f.must_be :>, 0
+  end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasks/default.rake new/tasks/default.rake
--- old/tasks/default.rake      2017-08-04 17:17:44.000000000 +0200
+++ new/tasks/default.rake      2018-06-15 23:55:01.000000000 +0200
@@ -24,7 +24,7 @@
     File.open( "Gemfile", "w+" ) do |f|
       f.puts "# DO NOT EDIT - This file is automatically generated"
       f.puts "# Make changes to Manifest.txt and/or Rakefile and regenerate"
-      f.puts 'source "https://rubygems.org/";'
+      f.puts 'source "https://rubygems.org";'
       f.puts 'gemspec'
     end
   end
@@ -38,7 +38,7 @@
 begin
   require 'rake/testtask'
   Rake::TestTask.new( :test ) do |t|
-    t.ruby_opts    = %w[ -w -rubygems ]
+    t.ruby_opts    = %w[ -w ]
     t.libs         = %w[ lib spec test ]
     t.pattern      = "{test,spec}/**/{test_*,*_spec}.rb"
   end
@@ -80,7 +80,7 @@
     ENV['COVERAGE'] = 'true'
     Rake::Task[:test].execute
   end
-  CLOBBER << 'coverage' if File.directory?('coverage')
+  CLOBBER << 'coverage' if File.directory?( 'coverage' )
 rescue LoadError
   This.task_warning( 'simplecov' )
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasks/extension.rake new/tasks/extension.rake
--- old/tasks/extension.rake    2017-08-04 17:17:44.000000000 +0200
+++ new/tasks/extension.rake    2018-06-15 23:55:01.000000000 +0200
@@ -23,9 +23,9 @@
       ext.lib_dir   = File.join( 'lib', This.name )
       ext.gem_spec  = This.ruby_gemspec
 
-      ext.cross_compile  = true               # enable cross compilation 
(requires cross compile toolchain)
-      ext.cross_platform = 'i386-mingw32'     # forces the Windows platform 
instead of the default one
-                                              # configure options only for 
cross compile
+      ext.cross_compile  = true                         # enable cross 
compilation (requires cross compile toolchain)
+      ext.cross_platform = %w[x86-mingw32 x64-mingw32]  # forces the Windows 
platform instead of the default one
+                                                        # configure options 
only for cross compile
     end
   end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tasks/this.rb new/tasks/this.rb
--- old/tasks/this.rb   2017-08-04 17:17:44.000000000 +0200
+++ new/tasks/this.rb   2018-06-15 23:55:01.000000000 +0200
@@ -194,7 +194,9 @@
   end
 
   def license
-    "ISC"
+    license_file = project_path("LICENSE")
+    line = license_file.readlines.first
+    line.split(/\s+/).first
   end
 
   # Internal: The path to the gemspec file


Reply via email to