Hello community, here is the log from the commit of package rubygem-hitimes for openSUSE:Factory checked in at 2015-09-27 08:39:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-hitimes (Old) and /work/SRC/openSUSE:Factory/.rubygem-hitimes.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-hitimes" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-hitimes/rubygem-hitimes.changes 2014-11-10 17:28:11.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-hitimes.new/rubygem-hitimes.changes 2015-09-27 08:38:50.000000000 +0200 @@ -1,0 +2,12 @@ +Mon Sep 14 04:31:27 UTC 2015 - co...@suse.com + +- updated to version 1.2.3 + see installed HISTORY.md + + ## Version 1.2.3 2015-09-13 + + * Release new fatbinary version for windows + * Update README to indicate duration units + * Provide a more friendly error message if the gem is not installed correctly + +------------------------------------------------------------------- Old: ---- hitimes-1.2.2.gem New: ---- hitimes-1.2.3.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-hitimes.spec ++++++ --- /var/tmp/diff_new_pack.oFxRUv/_old 2015-09-27 08:38:51.000000000 +0200 +++ /var/tmp/diff_new_pack.oFxRUv/_new 2015-09-27 08:38:51.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-hitimes # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 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,15 +24,15 @@ # Name: rubygem-hitimes -Version: 1.2.2 +Version: 1.2.3 Release: 0 %define mod_name hitimes %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: ruby-macros >= 5 -BuildRequires: %{rubydevel} +BuildRequires: %{rubydevel >= 1.9.3} BuildRequires: %{rubygem gem2rpm} BuildRequires: %{rubygem rdoc > 3.10} +BuildRequires: ruby-macros >= 5 Url: http://github.com/copiousfreetime/hitimes Source: http://rubygems.org/gems/%{mod_full_name}.gem Source1: gem2rpm.yml @@ -43,9 +43,9 @@ %description Hitimes is a fast, high resolution timer library for recording performance metrics. It uses the appropriate low method calls for each system to get the -highest granularity time increments possible. It currently supports any of -the following systems: * any system with the POSIX call `clock_gettime()` * -Mac OS X * Windows * JRuby Using Hitimes can be faster than using a series of +highest granularity time increments possible. It currently supports any of the +following systems: * any system with the POSIX call `clock_gettime()` * Mac OS +X * Windows * JRuby Using Hitimes can be faster than using a series of `Time.new` calls, and it will have a much higher granularity. It is definitely faster than using `Process.times`. @@ -62,7 +62,6 @@ find %{buildroot}%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/ -name "*.[h|c]" -exec rm {} \; # /MANUAL - %gem_packages %changelog ++++++ hitimes-1.2.2.gem -> hitimes-1.2.3.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml --- old/.travis.yml 2014-07-09 23:23:05.000000000 +0200 +++ new/.travis.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,11 +0,0 @@ -language: ruby -rvm: - - "1.8.7" - - "1.9.2" - - "1.9.3" - - "2.0.0" - - "2.1.0" - - jruby-18mode # JRuby in 1.8 mode - - jruby-19mode # JRuby in 1.9 mode - - rbx -install: rake develop diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HISTORY.md new/HISTORY.md --- old/HISTORY.md 2014-07-09 23:23:05.000000000 +0200 +++ new/HISTORY.md 2015-09-13 09:49:36.000000000 +0200 @@ -1,5 +1,11 @@ # Hitimes Changelog +## Version 1.2.3 2015-09-13 + +* Release new fatbinary version for windows +* Update README to indicate duration units +* Provide a more friendly error message if the gem is not installed correctly + ## Version 1.2.2 2014-07-09 * fix compilation issue with clock_gettime in libc (reported by eradman and virtualfunction) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/LICENSE new/LICENSE --- old/LICENSE 2014-07-09 23:23:05.000000000 +0200 +++ new/LICENSE 2015-09-13 09:49:36.000000000 +0200 @@ -1,6 +1,6 @@ ISC LICENSE - http://opensource.org/licenses/isc-license.txt -Copyright (c) 2008-2012 Jeremy Hinegardner +Copyright (c) 2008-2015 Jeremy Hinegardner Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Manifest.txt new/Manifest.txt --- old/Manifest.txt 2014-07-09 23:23:05.000000000 +0200 +++ new/Manifest.txt 2015-09-13 09:49:36.000000000 +0200 @@ -1,4 +1,3 @@ -.travis.yml CONTRIBUTING.md HISTORY.md LICENSE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2014-07-09 23:23:05.000000000 +0200 +++ new/README.md 2015-09-13 09:49:36.000000000 +0200 @@ -13,7 +13,7 @@ Hitimes is a fast, high resolution timer library for recording performance metrics. It uses the appropriate low method calls for each -system to get the highest granularity time increments possible. +system to get the highest granularity time increments possible. It currently supports any of the following systems: @@ -30,14 +30,17 @@ ### Interval -Use Hitimes::Interval to calculate only the duration of a block of code +Use Hitimes::Interval to calculate only the duration of a block of code. Returns +the time as seconds. ``` ruby duration = Hitimes::Interval.measure do - # some operation ... + 1_000_000.times do |x| + 2 + 2 + end end -puts duration +puts duration # => 0.047414297 (seconds) ``` ### TimedMetric @@ -126,21 +129,14 @@ ## BUILDING FOR WINDOWS -[rake-compiler](https://github.com/luislavena/rake-compiler) is use for building -the windows version. For me, on OSX to cross compile the process is: +This is done using https://github.com/rake-compiler/rake-compiler-dock -``` -% gem install rake-compiler # in each rvm instance, 1.8.7, 1.9.3 -% rvm use 2.0.0@hitimes -% rake-compiler cross-ruby VERSION=2.0.0-p0 # or latest -% rvm use 1.9.3@hitimes -% rake-compiler cross-ruby VERSION=1.9.3-p374 # or latest -% rvm use 1.8.7@hitimes -% rake-compiler cross-ruby VERSION=1.8.7-p371 - -# This only works via 1.8.7 at the current moment -% rake cross native gem RUBY_CC_VERSION=1.8.7:1.9.3:2.0.0 -``` +1. have VirtualBox installed +2. Install boot2docker `brew install boot2docker` +3. `gem install rake-compiler-dock` +4. `rake-compiler-dock` +5. `bundle` +6 `rake cross native gem` ## CREDITS @@ -148,7 +144,7 @@ ## ISC License -Copyright (c) 2008-2012 Jeremy Hinegardner +Copyright (c) 2008-2015 Jeremy Hinegardner Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Rakefile new/Rakefile --- old/Rakefile 2014-07-09 23:23:05.000000000 +0200 +++ new/Rakefile 2015-09-13 09:49:36.000000000 +0200 @@ -7,11 +7,12 @@ This.homepage = "http://github.com/copiousfreetime/#{ This.name }" This.ruby_gemspec do |spec| - spec.add_development_dependency( 'rake' , '~> 10.0') - spec.add_development_dependency( 'minitest' , '~> 5.3' ) - spec.add_development_dependency( 'rdoc' , '~> 4.1' ) - spec.add_development_dependency( 'json' , '~> 1.7.7' ) + spec.add_development_dependency( 'rake' , '~> 10.4') + spec.add_development_dependency( 'minitest' , '~> 5.5' ) + spec.add_development_dependency( 'rdoc' , '~> 4.2' ) + spec.add_development_dependency( 'json' , '~> 1.8' ) spec.add_development_dependency( 'rake-compiler', '~> 0.9' ) + spec.add_development_dependency( 'simplecov' , '~> 0.9' ) spec.extensions.concat This.extension_conf_files spec.license = "ISC" @@ -19,6 +20,7 @@ This.java_gemspec( This.ruby_gemspec ) do |spec| spec.extensions.clear + spec.files << "lib/hitimes/hitimes.jar" end load 'tasks/default.rake' 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/extconf.rb new/ext/hitimes/c/extconf.rb --- old/ext/hitimes/c/extconf.rb 2014-07-09 23:23:05.000000000 +0200 +++ new/ext/hitimes/c/extconf.rb 2015-09-13 09:49:36.000000000 +0200 @@ -4,7 +4,7 @@ if RbConfig::CONFIG['host_os'] =~ /darwin/ then $CFLAGS += " -DUSE_INSTANT_OSX=1 -Wall" $LDFLAGS += " -framework CoreServices" -elsif RbConfig::CONFIG['host_os'] =~ /win32/ or RbConfig::CONFIG['host_os'] =~ /mingw/ then +elsif RbConfig::CONFIG['host_os'] =~ /win(32|64)/ or RbConfig::CONFIG['host_os'] =~ /mingw/ then $CFLAGS += " -DUSE_INSTANT_WINDOWS=1" else if have_library("rt", "clock_gettime") then 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 2014-07-09 23:23:05.000000000 +0200 +++ new/lib/hitimes/version.rb 2015-09-13 09:49:36.000000000 +0200 @@ -4,5 +4,5 @@ #++ module Hitimes - VERSION = "1.2.2" + VERSION = "1.2.3" end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/hitimes.rb new/lib/hitimes.rb --- old/lib/hitimes.rb 2014-07-09 23:23:05.000000000 +0200 +++ new/lib/hitimes.rb 2015-09-13 09:49:36.000000000 +0200 @@ -29,13 +29,21 @@ # Load the binary extension, try loading one for the specific version of ruby # and if that fails, then fall back to one in the top of the library. # this is the method recommended by rake-compiler -begin - # this will be for windows - require "hitimes/#{RUBY_VERSION.sub(/\.\d$/,'')}/hitimes" -rescue LoadError - # everyone else. - require 'hitimes/hitimes' + +attempts = [ + "hitimes/#{RUBY_VERSION.sub(/\.\d$/,'')}/hitimes", + "hitimes/hitimes" +] +loaded = false + +attempts.each do |path| + begin + require path + loaded = true + rescue LoadError + end end +raise LoadError, "Unable to find binary extension, was hitimes installed correctly?" unless loaded require 'hitimes/stats' require 'hitimes/mutexed_stats' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2014-07-09 23:23:05.000000000 +0200 +++ new/metadata 2015-09-13 09:49:36.000000000 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: hitimes version: !ruby/object:Gem::Version - version: 1.2.2 + version: 1.2.3 platform: ruby authors: - Jeremy Hinegardner autorequire: bindir: bin cert_chain: [] -date: 2014-07-09 00:00:00.000000000 Z +date: 2015-09-13 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: rake @@ -16,56 +16,56 @@ requirements: - - "~>" - !ruby/object:Gem::Version - version: '10.0' + version: '10.4' type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - "~>" - !ruby/object:Gem::Version - version: '10.0' + version: '10.4' - !ruby/object:Gem::Dependency name: minitest requirement: !ruby/object:Gem::Requirement requirements: - - "~>" - !ruby/object:Gem::Version - version: '5.3' + version: '5.5' type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - "~>" - !ruby/object:Gem::Version - version: '5.3' + version: '5.5' - !ruby/object:Gem::Dependency name: rdoc requirement: !ruby/object:Gem::Requirement requirements: - - "~>" - !ruby/object:Gem::Version - version: '4.1' + version: '4.2' type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - "~>" - !ruby/object:Gem::Version - version: '4.1' + version: '4.2' - !ruby/object:Gem::Dependency name: json requirement: !ruby/object:Gem::Requirement requirements: - - "~>" - !ruby/object:Gem::Version - version: 1.7.7 + version: '1.8' type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - "~>" - !ruby/object:Gem::Version - version: 1.7.7 + version: '1.8' - !ruby/object:Gem::Dependency name: rake-compiler requirement: !ruby/object:Gem::Requirement @@ -80,9 +80,23 @@ - - "~>" - !ruby/object:Gem::Version version: '0.9' +- !ruby/object:Gem::Dependency + name: simplecov + requirement: !ruby/object:Gem::Requirement + requirements: + - - "~>" + - !ruby/object:Gem::Version + version: '0.9' + type: :development + prerelease: false + version_requirements: !ruby/object:Gem::Requirement + requirements: + - - "~>" + - !ruby/object:Gem::Version + version: '0.9' description: 'Hitimes is a fast, high resolution timer library for recording performance metrics. It uses the appropriate low method calls for each system to get the highest - granularity time increments possible. It currently supports any of the following + granularity time increments possible. It currently supports any of the following systems: * any system with the POSIX call `clock_gettime()` * Mac OS X * Windows * JRuby Using Hitimes can be faster than using a series of `Time.new` calls, and it will have a much higher granularity. It is definitely faster than using `Process.times`.' @@ -96,7 +110,6 @@ - Manifest.txt - README.md files: -- ".travis.yml" - CONTRIBUTING.md - HISTORY.md - LICENSE @@ -157,7 +170,7 @@ requirements: - - ">=" - !ruby/object:Gem::Version - version: '0' + version: 1.9.3 required_rubygems_version: !ruby/object:Gem::Requirement requirements: - - ">=" @@ -165,7 +178,7 @@ version: '0' requirements: [] rubyforge_project: -rubygems_version: 2.2.2 +rubygems_version: 2.4.5 signing_key: specification_version: 4 summary: Hitimes is a fast, high resolution timer library for recording performance diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tasks/default.rake new/tasks/default.rake --- old/tasks/default.rake 2014-07-09 23:23:05.000000000 +0200 +++ new/tasks/default.rake 2015-09-13 09:49:36.000000000 +0200 @@ -10,21 +10,12 @@ # Install all the development and runtime dependencies of this gem using the # gemspec. - task :default do + task :default => 'Gemfile' do require 'rubygems/dependency_installer' installer = ::Gem::DependencyInstaller.new - - This.set_coverage_gem - - puts "Installing gem depedencies needed for development" - This.platform_gemspec.dependencies.each do |dep| - if dep.matching_specs.empty? then - puts "Installing : #{dep}" - installer.install dep - else - puts "Skipping : #{dep} -> already installed #{dep.matching_specs.first.full_name}" - end - end + puts "Installing bundler..." + installer.install 'bundler' + sh 'bundle install' puts "\n\nNow run 'rake test'" end @@ -37,14 +28,6 @@ f.puts 'gemspec' end end - - desc "Create a bundler Gemfile" - task :using_bundler => 'Gemfile' do - puts "Now you can 'bundle'" - end - - # Gemfiles are build artifacts - CLOBBER << FileList['Gemfile*'] end desc "Boostrap development" task :develop => "develop:default" @@ -90,31 +73,16 @@ # Coverage - optional code coverage, rcov for 1.8 and simplecov for 1.9, so # for the moment only rcov is listed. #------------------------------------------------------------------------------ -if RUBY_VERSION < "1.9.0" - begin - require 'rcov/rcovtask' - Rcov::RcovTask.new( 'coverage' ) do |t| - t.libs << 'spec' - t.pattern = 'spec/**/*_spec.rb' - t.verbose = true - t.rcov_opts << "-x ^/" # remove all the global files - t.rcov_opts << "--sort coverage" # so we see the worst files at the top - end - rescue LoadError - This.task_warning( 'rcov' ) - end -else - begin - require 'simplecov' - desc 'Run tests with code coverage' - task :coverage do - ENV['COVERAGE'] = 'true' - Rake::Task[:test].invoke - end - CLOBBER << FileList["coverage"] if File.directory?( "coverage" ) - rescue LoadError - This.task_warning( 'simplecov' ) +begin + require 'simplecov' + desc 'Run tests with code coverage' + task :coverage do + ENV['COVERAGE'] = 'true' + Rake::Task[:test].execute end + CLOBBER << 'coverage' if File.directory?('coverage') +rescue LoadError + This.task_warning( 'simplecov' ) end #------------------------------------------------------------------------------ @@ -179,9 +147,10 @@ end def outdated_fixme_files - local_fixme_files.reject do |local| + local_fixme_files.select do |local| upstream = fixme_project_path( local ) - Digest::SHA256.file( local ) == Digest::SHA256.file( upstream ) + upstream.exist? && + ( Digest::SHA256.file( local ) != Digest::SHA256.file( upstream ) ) end end @@ -231,9 +200,6 @@ end end -# the gemspec is also a dev artifact and should not be kept around. -CLOBBER << This.gemspec_file.to_s - # .rbc files from ruby 2.0 CLOBBER << FileList["**/*.rbc"] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tasks/extension.rake new/tasks/extension.rake --- old/tasks/extension.rake 2014-07-09 23:23:05.000000000 +0200 +++ new/tasks/extension.rake 2015-09-13 09:49:36.000000000 +0200 @@ -24,7 +24,7 @@ ext.gem_spec = This.ruby_gemspec ext.cross_compile = true # enable cross compilation (requires cross compile toolchain) - ext.cross_platform = 'i386-mswin32' # forces the Windows platform instead of the default one + ext.cross_platform = 'i386-mingw32' # forces the Windows platform instead of the default one # configure options only for cross compile end end @@ -35,4 +35,4 @@ end CLOBBER << FileList["lib/**/*.{jar,so,bundle}"] -CLOBBER << FileList["lib/#{This.name}/{1.8,1.9,2.0}/"] +CLOBBER << FileList["lib/#{This.name}/{1.8,1.9,2.0,2.1,2.2}/"] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tasks/this.rb new/tasks/this.rb --- old/tasks/this.rb 2014-07-09 23:23:05.000000000 +0200 +++ new/tasks/this.rb 2015-09-13 09:49:36.000000000 +0200 @@ -13,7 +13,7 @@ attr_accessor :email # The homepage of this project - attr_accessor :homepage + attr_accessor :homepage # The regex of files to exclude from the manifest attr_accessor :exclude_from_manifest @@ -25,7 +25,11 @@ # # Yields self def initialize(&block) - @exclude_from_manifest = %r/\.(git|DS_Store)|^(doc|coverage|pkg|tmp|Gemfile(\.lock)?)|^[^\/]+\.gemspec|\.(swp|jar|bundle|so|rvmrc)$|~$/ + @exclude_from_manifest = Regexp.union(/\.(git|DS_Store)/, + /^(doc|coverage|pkg|tmp|Gemfile(\.lock)?)/, + /^[^\/]+\.gemspec/, + /\.(swp|jar|bundle|so|rvmrc|travis.yml)$/, + /~$/) @gemspecs = Hash.new yield self if block_given? end @@ -119,7 +123,7 @@ # Internal: Returns the gemspace associated with the current ruby platform def platform_gemspec - gemspecs[platform] + gemspecs.fetch(platform) { This.ruby_gemspec } end def core_gemspec @@ -141,6 +145,8 @@ spec.extra_rdoc_files += spec.files.grep(/(txt|rdoc|md)$/) spec.rdoc_options = [ "--main" , 'README.md', "--markup", "tomdoc" ] + + spec.required_ruby_version = '>= 1.9.3' end end @@ -167,20 +173,6 @@ return spec end - # Internal: Set the recovery gem development dependency - # - # These are dynamically set since they cannot be hard coded as there is - # no way to ship them correctly in the gemspec - # - # Returns nothing. - def set_coverage_gem - if RUBY_VERSION < "1.9.0" - platform_gemspec.add_development_dependency( 'rcov', '~> 1.0.0' ) - else - platform_gemspec.add_development_dependency( 'simplecov', '~> 0.8.2' ) - end - end - # Internal: Return the platform of ThisProject at the current moment in time. def platform (RUBY_PLATFORM == "java") ? 'java' : Gem::Platform::RUBY @@ -190,8 +182,8 @@ def description_section section_of( 'README.md', 'DESCRIPTION') end - - # Internal: Return the summary text from the README + + # Internal: Return the summary text from the README def summary description_section.first end