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 +4 -4
- data/.github/dependabot.yml +6 -0
- data/.github/workflows/test.yml +14 -5
- data/benchmark.gemspec +8 -7
- data/lib/benchmark.rb +2 -0
- metadata +4 -4
- data/lib/benchmark/version.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e76ab3c1efb3757eea5a1d3758254c823f7502c2c21b993d677fe3698a2dfb2
|
4
|
+
data.tar.gz: 69665530e80e5c47d76c7889f6bd5a97d1bac3c5fbe35a6f6ff37bdfd6d88a0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca3f98d803b6337f5f73a30de2d70fc192abf8f70ca73be0187f21ac1c5b36dcc0d3248a9507ceb62b715cfd338d3bba2149d94ec0b28614809bd07dc2097ac2
|
7
|
+
data.tar.gz: fe9cfad0396eb71b31ffcd6a7023485e23ebf288e56f009a690e244fc6f66833a288c1e61d9a318b7e5b4270757b011dc57c356daad8be42acf5f6617d556961
|
data/.github/workflows/test.yml
CHANGED
@@ -1,17 +1,26 @@
|
|
1
|
-
name:
|
1
|
+
name: test
|
2
2
|
|
3
3
|
on: [push, pull_request]
|
4
4
|
|
5
5
|
jobs:
|
6
|
-
|
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:
|
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@
|
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
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
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 =
|
9
|
-
spec.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
|
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
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.
|
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:
|
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.
|
53
|
+
rubygems_version: 3.5.0.dev
|
54
54
|
signing_key:
|
55
55
|
specification_version: 4
|
56
56
|
summary: a performance benchmarking library
|
data/lib/benchmark/version.rb
DELETED