Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-benchmark for
openSUSE:Factory checked in at 2022-02-02 22:41:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-benchmark (Old)
and /work/SRC/openSUSE:Factory/.rubygem-benchmark.new.1898 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-benchmark"
Wed Feb 2 22:41:14 2022 rev:3 rq:950612 version:0.2.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-benchmark/rubygem-benchmark.changes
2021-01-21 21:55:18.637792055 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-benchmark.new.1898/rubygem-benchmark.changes
2022-02-02 22:42:17.079177651 +0100
@@ -1,0 +2,6 @@
+Tue Jan 25 06:40:24 UTC 2022 - Stephan Kulow <[email protected]>
+
+updated to version 0.2.0
+ no changelog found
+
+-------------------------------------------------------------------
Old:
----
benchmark-0.1.1.gem
New:
----
benchmark-0.2.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-benchmark.spec ++++++
--- /var/tmp/diff_new_pack.eFuj8G/_old 2022-02-02 22:42:17.555174425 +0100
+++ /var/tmp/diff_new_pack.eFuj8G/_new 2022-02-02 22:42:17.559174398 +0100
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-benchmark
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# 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-benchmark
-Version: 0.1.1
+Version: 0.2.0
Release: 0
%define mod_name benchmark
%define mod_full_name %{mod_name}-%{version}
@@ -39,12 +39,13 @@
Patch0: 0001-Change-shebang-from-usr-bin-env-bash-to-usr-bin-bash.patch
# /MANUAL
Summary: A performance benchmarking library
-License: Ruby AND BSD-2-Clause
+License: BSD-2-Clause AND Ruby
Group: Development/Languages/Ruby
%description
The Benchmark module provides methods for benchmarking Ruby code, giving
detailed reports on the time taken for each task.
+
%prep
%gem_unpack
%patch0 -p1
++++++ benchmark-0.1.1.gem -> benchmark-0.2.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/.github/workflows/test.yml
new/.github/workflows/test.yml
--- old/.github/workflows/test.yml 1970-01-01 01:00:00.000000000 +0100
+++ new/.github/workflows/test.yml 2021-10-14 12:45:10.000000000 +0200
@@ -0,0 +1,22 @@
+name: build
+
+on: [push, pull_request]
+
+jobs:
+ build:
+ name: build (${{ matrix.ruby }} / ${{ matrix.os }})
+ strategy:
+ matrix:
+ ruby: [ '3.0', 2.7, 2.6, 2.5, head ]
+ os: [ ubuntu-latest, macos-latest ]
+ runs-on: ${{ matrix.os }}
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up Ruby
+ uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: ${{ matrix.ruby }}
+ - name: Install dependencies
+ run: bundle install
+ - name: Run test
+ run: rake test
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/.travis.yml new/.travis.yml
--- old/.travis.yml 2020-12-22 11:59:47.000000000 +0100
+++ new/.travis.yml 1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +0,0 @@
-language: ruby
-cache: bundler
-rvm:
- - 2.6.3
- - ruby-head
-script: rake test
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/benchmark.gemspec new/benchmark.gemspec
--- old/benchmark.gemspec 2020-12-22 11:59:47.000000000 +0100
+++ new/benchmark.gemspec 2021-10-14 12:45:10.000000000 +0200
@@ -24,6 +24,6 @@
`git ls-files -z 2>/dev/null`.split("\x0").reject { |f|
f.match(%r{^(test|spec|features)/}) }
end
spec.bindir = "exe"
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
+ spec.executables = []
spec.require_paths = ["lib"]
end
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/benchmark/version.rb new/lib/benchmark/version.rb
--- old/lib/benchmark/version.rb 2020-12-22 11:59:47.000000000 +0100
+++ new/lib/benchmark/version.rb 2021-10-14 12:45:10.000000000 +0200
@@ -1,3 +1,3 @@
module Benchmark
- VERSION = "0.1.1"
+ VERSION = "0.2.0"
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/benchmark.rb new/lib/benchmark.rb
--- old/lib/benchmark.rb 2020-12-22 11:59:47.000000000 +0100
+++ new/lib/benchmark.rb 2021-10-14 12:45:10.000000000 +0200
@@ -128,6 +128,9 @@
# benchmark tests. Reserves +label_width+ leading spaces for
# labels on each line. Prints +caption+ at the top of the
# report, and uses +format+ to format each line.
+ # (Note: +caption+ must contain a terminating newline character,
+ # see the default Benchmark::Tms::CAPTION for an example.)
+ #
# Returns an array of Benchmark::Tms objects.
#
# If the block returns an array of
@@ -163,8 +166,8 @@
#
def benchmark(caption = "", label_width = nil, format = nil, *labels) #
:yield: report
- sync = STDOUT.sync
- STDOUT.sync = true
+ sync = $stdout.sync
+ $stdout.sync = true
label_width ||= 0
label_width += 1
format ||= FORMAT
@@ -176,7 +179,7 @@
}
report.list
ensure
- STDOUT.sync = sync unless sync.nil?
+ $stdout.sync = sync unless sync.nil?
end
@@ -247,8 +250,8 @@
job = Job.new(width)
yield(job)
width = job.width + 1
- sync = STDOUT.sync
- STDOUT.sync = true
+ sync = $stdout.sync
+ $stdout.sync = true
# rehearsal
puts 'Rehearsal '.ljust(width+CAPTION.length,'-')
@@ -268,7 +271,7 @@
Benchmark.measure(label, &item).tap { |res| print res }
}
ensure
- STDOUT.sync = sync unless sync.nil?
+ $stdout.sync = sync unless sync.nil?
end
#
@@ -527,6 +530,20 @@
[@label, @utime, @stime, @cutime, @cstime, @real]
end
+ #
+ # Returns a hash containing the same data as `to_a`.
+ #
+ def to_h
+ {
+ label: @label,
+ utime: @utime,
+ stime: @stime,
+ cutime: @cutime,
+ cstime: @cstime,
+ real: @real
+ }
+ end
+
protected
#
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2020-12-22 11:59:47.000000000 +0100
+++ new/metadata 2021-10-14 12:45:10.000000000 +0200
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: benchmark
version: !ruby/object:Gem::Version
- version: 0.1.1
+ version: 0.2.0
platform: ruby
authors:
- Yukihiro Matsumoto
autorequire:
bindir: exe
cert_chain: []
-date: 2020-12-22 00:00:00.000000000 Z
+date: 2021-10-14 00:00:00.000000000 Z
dependencies: []
description: a performance benchmarking library
email:
@@ -17,8 +17,8 @@
extensions: []
extra_rdoc_files: []
files:
+- ".github/workflows/test.yml"
- ".gitignore"
-- ".travis.yml"
- Gemfile
- LICENSE.txt
- README.md
@@ -50,7 +50,7 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.2.2
+rubygems_version: 3.3.0.dev
signing_key:
specification_version: 4
summary: a performance benchmarking library