benchmark 0.2.0 → 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: eafbbb0ec7f26fb0f60f21a677e4f749670e912c9ff1948fec84aa0b6f8a08bd
4
- data.tar.gz: 32098b08dfca91b193cd47d3a009287afc4dabb36a093e8398998e78dcbcf2b3
3
+ metadata.gz: 2e76ab3c1efb3757eea5a1d3758254c823f7502c2c21b993d677fe3698a2dfb2
4
+ data.tar.gz: 69665530e80e5c47d76c7889f6bd5a97d1bac3c5fbe35a6f6ff37bdfd6d88a0a
5
5
  SHA512:
6
- metadata.gz: 2abb831bd071d73f72efe77b45ed4eca4eb861c124bdf976e6fb498e2c44edb7fbed91b4b4063a7a27f1c8652e8c365d45792ffc843d08925f50a564742c6832
7
- data.tar.gz: 8b46138b50800e8ef91417763c238e0cb1ab55f863fa491d92c932a8aa13168065cf19f22de3ed79b5c580728647da3904b423c6de463d775d489d6960f032a0
6
+ metadata.gz: ca3f98d803b6337f5f73a30de2d70fc192abf8f70ca73be0187f21ac1c5b36dcc0d3248a9507ceb62b715cfd338d3bba2149d94ec0b28614809bd07dc2097ac2
7
+ data.tar.gz: fe9cfad0396eb71b31ffcd6a7023485e23ebf288e56f009a690e244fc6f66833a288c1e61d9a318b7e5b4270757b011dc57c356daad8be42acf5f6617d556961
@@ -0,0 +1,6 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: 'github-actions'
4
+ directory: '/'
5
+ schedule:
6
+ interval: 'weekly'
@@ -1,17 +1,26 @@
1
- name: build
1
+ name: test
2
2
 
3
3
  on: [push, pull_request]
4
4
 
5
5
  jobs:
6
- build:
6
+ ruby-versions:
7
+ uses: ruby/actions/.github/workflows/ruby_versions.yml@master
8
+ with:
9
+ min_version: 2.5
10
+
11
+ test:
12
+ needs: ruby-versions
7
13
  name: build (${{ matrix.ruby }} / ${{ matrix.os }})
8
14
  strategy:
9
15
  matrix:
10
- ruby: [ '3.0', 2.7, 2.6, 2.5, head ]
11
- os: [ ubuntu-latest, macos-latest ]
16
+ ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
17
+ os: [ ubuntu-latest, macos-latest, windows-latest ]
18
+ exclude:
19
+ - { os: windows-latest, ruby: truffleruby-head }
20
+ - { os: windows-latest, ruby: truffleruby }
12
21
  runs-on: ${{ matrix.os }}
13
22
  steps:
14
- - uses: actions/checkout@v2
23
+ - uses: actions/checkout@v4
15
24
  - name: Set up Ruby
16
25
  uses: ruby/setup-ruby@v1
17
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.0
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: 2021-10-14 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:
@@ -17,6 +17,7 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - ".github/dependabot.yml"
20
21
  - ".github/workflows/test.yml"
21
22
  - ".gitignore"
22
23
  - Gemfile
@@ -27,7 +28,6 @@ files:
27
28
  - bin/console
28
29
  - bin/setup
29
30
  - lib/benchmark.rb
30
- - lib/benchmark/version.rb
31
31
  homepage: https://github.com/ruby/benchmark
32
32
  licenses:
33
33
  - Ruby
@@ -50,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
50
50
  - !ruby/object:Gem::Version
51
51
  version: '0'
52
52
  requirements: []
53
- rubygems_version: 3.3.0.dev
53
+ rubygems_version: 3.5.0.dev
54
54
  signing_key:
55
55
  specification_version: 4
56
56
  summary: a performance benchmarking library
@@ -1,3 +0,0 @@
1
- module Benchmark
2
- VERSION = "0.2.0"
3
- end