benchmark-inputs 1.1.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ace507d5a3b56178d74bafca22757751db45fc0aa35fcf11688fcfd0ab6a5359
4
- data.tar.gz: e25a1f06aa67210490fb418dd96a00deb3014cd6b1d72f291afda0ff62b271b1
3
+ metadata.gz: 479396b0af0c6982d03041ed914bb253c3aba964f83eeecf6d45e251958d4b03
4
+ data.tar.gz: 664df72e260c22324f408d8b32d577748b1b499d1e1168d90f452c3bd37f40b6
5
5
  SHA512:
6
- metadata.gz: 489255b3e502c218342f416b98d1c3ab3281088dafb62156fa2782529619a1d35b8cd13a38c7075e816a9869ce6bc39dec505c46eec5f2958c2c0351eeb494a1
7
- data.tar.gz: f7fa7a6f0107022bb1e1b56830eb414d0dfb60a95f1986d7629ebfaae4dc6d8f376b12e7aace21f117034f461e1169be235fe876c902e29fc4e5111f5ccfaa0d
6
+ metadata.gz: 163229a9605d1cbca73e25eacf6dcff8624317dd33da2b8dbdef650c1364be343b45500e1322f8c353a315c021993b214ae649172cdc8500ef9d9c1fd5416f83
7
+ data.tar.gz: 22e98dc216a2d82e4824fcc6ffd6a8b7b2cbe904190133f8bef8d59969009db8f32ad0c4c1ebd9a18d44ec6fd6c1f79ed0627e0f6f66ca96474a3ed35c6128ab
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 2.0.0
2
+
3
+ * Drop support for Ruby < 3.4
4
+ * Exclude `.gitignore` and `.github` files from the released gem
5
+
6
+
1
7
  ## 1.1.1
2
8
 
3
9
  * Fix Ruby 2.7 kwarg warnings
data/Gemfile CHANGED
@@ -3,5 +3,5 @@ source "https://rubygems.org"
3
3
  # Specify your gem's dependencies in benchmark-inputs.gemspec
4
4
  gemspec
5
5
 
6
- gem "rake", "~> 12.0"
7
- gem "minitest", "~> 5.0"
6
+ gem "rake", "~> 13.0"
7
+ gem "minitest", "~> 5.27"
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # benchmark-inputs [![Build Status](https://travis-ci.org/jonathanhefner/benchmark-inputs.svg?branch=master)](https://travis-ci.org/jonathanhefner/benchmark-inputs)
1
+ # benchmark-inputs
2
2
 
3
3
  Input-focused benchmarking for Ruby. Given one or more blocks and an
4
4
  array of inputs to yield to each of them, benchmark-inputs will measure
@@ -140,17 +140,7 @@ a problem.
140
140
 
141
141
  ## Installation
142
142
 
143
- Install the [gem](https://rubygems.org/gems/benchmark-inputs):
144
-
145
- ```bash
146
- $ gem install benchmark-inputs
147
- ```
148
-
149
- Then require in your benchmark script:
150
-
151
- ```ruby
152
- require "benchmark/inputs"
153
- ```
143
+ Install the [`benchmark-inputs` gem](https://rubygems.org/gems/benchmark-inputs).
154
144
 
155
145
 
156
146
  ## License
@@ -9,16 +9,15 @@ Gem::Specification.new do |spec|
9
9
  spec.summary = %q{Input-focused benchmarking}
10
10
  spec.homepage = "https://github.com/jonathanhefner/benchmark-inputs"
11
11
  spec.license = "MIT"
12
- spec.required_ruby_version = ">= 2.2"
12
+ spec.required_ruby_version = ">= 3.4"
13
13
 
14
- spec.metadata["homepage_uri"] = spec.homepage
15
14
  spec.metadata["source_code_uri"] = spec.homepage
16
15
  spec.metadata["changelog_uri"] = spec.metadata["source_code_uri"] + "/blob/master/CHANGELOG.md"
17
16
 
18
17
  # Specify which files should be added to the gem when it is released.
19
18
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
19
  spec.files = Dir.chdir(__dir__) do
21
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ `git ls-files -z`.split("\x0").reject { |f| f.start_with?("test/", ".git") }
22
21
  end
23
22
  spec.bindir = "exe"
24
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
@@ -1,5 +1,5 @@
1
1
  module Benchmark
2
2
  module Inputs
3
- VERSION = "1.1.1"
3
+ VERSION = "2.0.0"
4
4
  end
5
5
  end
@@ -98,7 +98,7 @@ module Benchmark
98
98
  # One of the Job's input values
99
99
  # @return [void]
100
100
  def report(label)
101
- # estimate repititions
101
+ # estimate repetitions
102
102
  reps = 1
103
103
  reps_time = 0
104
104
  while reps_time < @sample_dt
metadata CHANGED
@@ -1,24 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: benchmark-inputs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Hefner
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2020-09-06 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies: []
13
- description:
14
12
  email:
15
13
  - jonathan@hefner.pro
16
14
  executables: []
17
15
  extensions: []
18
16
  extra_rdoc_files: []
19
17
  files:
20
- - ".gitignore"
21
- - ".travis.yml"
22
18
  - CHANGELOG.md
23
19
  - Gemfile
24
20
  - LICENSE.txt
@@ -31,10 +27,8 @@ homepage: https://github.com/jonathanhefner/benchmark-inputs
31
27
  licenses:
32
28
  - MIT
33
29
  metadata:
34
- homepage_uri: https://github.com/jonathanhefner/benchmark-inputs
35
30
  source_code_uri: https://github.com/jonathanhefner/benchmark-inputs
36
31
  changelog_uri: https://github.com/jonathanhefner/benchmark-inputs/blob/master/CHANGELOG.md
37
- post_install_message:
38
32
  rdoc_options: []
39
33
  require_paths:
40
34
  - lib
@@ -42,15 +36,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
42
36
  requirements:
43
37
  - - ">="
44
38
  - !ruby/object:Gem::Version
45
- version: '2.2'
39
+ version: '3.4'
46
40
  required_rubygems_version: !ruby/object:Gem::Requirement
47
41
  requirements:
48
42
  - - ">="
49
43
  - !ruby/object:Gem::Version
50
44
  version: '0'
51
45
  requirements: []
52
- rubygems_version: 3.1.2
53
- signing_key:
46
+ rubygems_version: 4.0.10
54
47
  specification_version: 4
55
48
  summary: Input-focused benchmarking
56
49
  test_files: []
data/.gitignore DELETED
@@ -1,10 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- *.gem
data/.travis.yml DELETED
@@ -1,9 +0,0 @@
1
- language: ruby
2
-
3
- rvm:
4
- - 2.2
5
- - 2.3
6
- - 2.4
7
- - 2.5
8
- - 2.6
9
- - 2.7