benchmark 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 339cfd7a84785395325c784c70f63d2a2498db52ed3f6eb8594430fb055d78d0
4
- data.tar.gz: 790460db2a1df4545ba7df64f5f72dd24966d91ce1107077027c13d85208b1fb
3
+ metadata.gz: 2e76ab3c1efb3757eea5a1d3758254c823f7502c2c21b993d677fe3698a2dfb2
4
+ data.tar.gz: 69665530e80e5c47d76c7889f6bd5a97d1bac3c5fbe35a6f6ff37bdfd6d88a0a
5
5
  SHA512:
6
- metadata.gz: 9f29b45297e09c3b2d456df69741bc95b8e04227f96a4b424fec615e63c93c9086ad6fb4b11b90b2ee9abdd5f6a1b468c268302a51952618a7cfd14c1bbe85f1
7
- data.tar.gz: 1fc4e6e367546dce779f8273161f400cf974c6891563f02ce7e6e36fb8f3a121678f532e3172b3fdc3687b03047250dcabd26deb692098342b6c27677a1e60b9
6
+ metadata.gz: ca3f98d803b6337f5f73a30de2d70fc192abf8f70ca73be0187f21ac1c5b36dcc0d3248a9507ceb62b715cfd338d3bba2149d94ec0b28614809bd07dc2097ac2
7
+ data.tar.gz: fe9cfad0396eb71b31ffcd6a7023485e23ebf288e56f009a690e244fc6f66833a288c1e61d9a318b7e5b4270757b011dc57c356daad8be42acf5f6617d556961
@@ -4,24 +4,23 @@ on: [push, pull_request]
4
4
 
5
5
  jobs:
6
6
  ruby-versions:
7
- runs-on: ubuntu-latest
8
- outputs:
9
- versions: ${{ steps.versions.outputs.value }}
10
- steps:
11
- - id: versions
12
- run: |
13
- versions=$(curl -s 'https://cache.ruby-lang.org/pub/misc/ci_versions/all.json' | jq -c '. + ["2.5"]')
14
- echo "::set-output name=value::${versions}"
7
+ uses: ruby/actions/.github/workflows/ruby_versions.yml@master
8
+ with:
9
+ min_version: 2.5
10
+
15
11
  test:
16
12
  needs: ruby-versions
17
13
  name: build (${{ matrix.ruby }} / ${{ matrix.os }})
18
14
  strategy:
19
15
  matrix:
20
16
  ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
21
- os: [ ubuntu-latest, macos-latest ]
17
+ os: [ ubuntu-latest, macos-latest, windows-latest ]
18
+ exclude:
19
+ - { os: windows-latest, ruby: truffleruby-head }
20
+ - { os: windows-latest, ruby: truffleruby }
22
21
  runs-on: ${{ matrix.os }}
23
22
  steps:
24
- - uses: actions/checkout@v3
23
+ - uses: actions/checkout@v4
25
24
  - name: Set up Ruby
26
25
  uses: ruby/setup-ruby@v1
27
26
  with:
data/benchmark.gemspec CHANGED
@@ -1,12 +1,13 @@
1
- begin
2
- require_relative "lib/benchmark/version"
3
- rescue LoadError # Fallback to load version file in ruby core repository
4
- require_relative "version"
1
+ name = File.basename(__FILE__, ".gemspec")
2
+ version = ["lib", Array.new(name.count("-")+1, ".").join("/")].find do |dir|
3
+ break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
4
+ /^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
5
+ end rescue nil
5
6
  end
6
7
 
7
8
  Gem::Specification.new do |spec|
8
- spec.name = "benchmark"
9
- spec.version = Benchmark::VERSION
9
+ spec.name = name
10
+ spec.version = version
10
11
  spec.authors = ["Yukihiro Matsumoto"]
11
12
  spec.email = ["matz@ruby-lang.org"]
12
13
 
@@ -21,7 +22,7 @@ Gem::Specification.new do |spec|
21
22
  # Specify which files should be added to the gem when it is released.
22
23
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
24
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
24
- `git ls-files -z 2>/dev/null`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
+ `git ls-files -z 2>#{IO::NULL}`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
26
  end
26
27
  spec.bindir = "exe"
27
28
  spec.executables = []
data/lib/benchmark.rb CHANGED
@@ -121,6 +121,8 @@
121
121
 
122
122
  module Benchmark
123
123
 
124
+ VERSION = "0.3.0"
125
+
124
126
  BENCHMARK_VERSION = "2002-04-25" # :nodoc:
125
127
 
126
128
  # Invokes the block with a Benchmark::Report object, which
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: benchmark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yukihiro Matsumoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-05 00:00:00.000000000 Z
11
+ date: 2023-11-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: a performance benchmarking library
14
14
  email:
@@ -28,7 +28,6 @@ files:
28
28
  - bin/console
29
29
  - bin/setup
30
30
  - lib/benchmark.rb
31
- - lib/benchmark/version.rb
32
31
  homepage: https://github.com/ruby/benchmark
33
32
  licenses:
34
33
  - Ruby
@@ -51,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
50
  - !ruby/object:Gem::Version
52
51
  version: '0'
53
52
  requirements: []
54
- rubygems_version: 3.4.0.dev
53
+ rubygems_version: 3.5.0.dev
55
54
  signing_key:
56
55
  specification_version: 4
57
56
  summary: a performance benchmarking library
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
- module Benchmark
3
- VERSION = "0.2.1"
4
- end