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 +4 -4
- data/.github/workflows/test.yml +9 -10
- data/benchmark.gemspec +8 -7
- data/lib/benchmark.rb +2 -0
- metadata +3 -4
- data/lib/benchmark/version.rb +0 -4
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
@@ -4,24 +4,23 @@ on: [push, pull_request]
|
|
4
4
|
|
5
5
|
jobs:
|
6
6
|
ruby-versions:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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@
|
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
|
-
|
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:
|
@@ -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.
|
53
|
+
rubygems_version: 3.5.0.dev
|
55
54
|
signing_key:
|
56
55
|
specification_version: 4
|
57
56
|
summary: a performance benchmarking library
|
data/lib/benchmark/version.rb
DELETED