diff --git a/.gitignore b/.gitignore index 03d7177..fe17172 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ tmp pkg doc Gemfile.lock +vendor diff --git a/.hoeignore b/.hoeignore deleted file mode 100644 index 2bfebec..0000000 --- a/.hoeignore +++ /dev/null @@ -1,7 +0,0 @@ -.git/ -.travis.yml -.hoeignore -.gitignore -Gemfile -*.gemspec -examples/ diff --git a/Gemfile b/Gemfile index 69329ce..208003e 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,5 @@ source 'https://rubygems.org' gem 'rake', '~> 10.5' -gem 'hoe', '~> 3.14' gem 'minitest', :group => :test diff --git a/History.txt b/History.md similarity index 90% rename from History.txt rename to History.md index 66ebeef..24fe3bd 100644 --- a/History.txt +++ b/History.md @@ -1,36 +1,41 @@ -=== 2.9.2 / 2021-10-10 +### 2.9.3 / 2022-01-25 + +* Bug fix + * All warmups and benchmarks must run at least once + +### 2.9.2 / 2021-10-10 * Bug fix * Fix a problem with certain configs of quiet mode -=== 2.9.1 / 2021-05-24 +### 2.9.1 / 2021-05-24 * Bug fix * Include all files in gem -=== 2.9.0 / 2021-05-21 +### 2.9.0 / 2021-05-21 * Features * Suite can now be set via an accessor * Default SHARE_URL is now `ips.fastruby.io`, operated by Ombu Labs. -=== 2.8.4 / 2020-12-03 +### 2.8.4 / 2020-12-03 * Bug fix * Fixed hold! when results file does not exist. -=== 2.8.3 / 2020-08-28 +### 2.8.3 / 2020-08-28 * Bug fix * Fixed inaccuracy caused by integer overflows. -=== 2.8.2 / 2020-05-04 +### 2.8.2 / 2020-05-04 * Bug fix * Fixed problems with Manifest.txt. * Empty interim results files are ignored. -=== 2.8.0 / 2020-05-01 +### 2.8.0 / 2020-05-01 * Feature * Allow running with empty ips block. @@ -43,16 +48,16 @@ * Added some RDoc docs. * Added some examples in examples/ -=== 2.7.2 / 2016-08-18 +### 2.7.2 / 2016-08-18 * 1 bug fix: * Restore old accessors. Fixes #76 -=== 2.7.1 / 2016-08-08 +### 2.7.1 / 2016-08-08 Add missing files -=== 2.7.0 / 2016-08-05 +### 2.7.0 / 2016-08-05 * 1 minor features: * Add support for confidence intervals @@ -69,9 +74,9 @@ Add missing files * Merge pull request #67 from benoittgt/master * Merge pull request #69 from chrisseaton/kalibera-confidence-intervals -=== MISSING 2.6.0 and 2.6.1 +### MISSING 2.6.0 and 2.6.1 -=== 2.5.0 / 2016-02-14 +### 2.5.0 / 2016-02-14 * 1 minor feature: * Add iterations option. @@ -83,12 +88,12 @@ Add missing files * Merge pull request #58 from chrisseaton/iterations * Merge pull request #60 from chrisseaton/significance -=== 2.4.1 / 2016-02-12 +### 2.4.1 / 2016-02-12 * 1 bug fix: * Add missing files to gem -=== 2.4.0 / 2016-02-12 +### 2.4.0 / 2016-02-12 * 1 minor features * Add support for hold! and independent invocations. @@ -123,7 +128,7 @@ Add missing files * Merge pull request #56 from chrisseaton/independence * Merge pull request #57 from chrisseaton/tighten-loop -=== 2.3.0 / 2015-07-20 +### 2.3.0 / 2015-07-20 * 2 minor features: * Support keyword arguments @@ -137,7 +142,7 @@ Add missing files * Merge pull request #42 from kbrock/newer_travis * Merge pull request #43 from kbrock/non_to_s_labels -=== 2.2.0 / 2015-05-09 +### 2.2.0 / 2015-05-09 * 1 minor features: * Fix quiet mode @@ -161,7 +166,7 @@ Add missing files * Merge pull request #29 from JuanitoFatas/feature/json-export * Merge pull request #26 from JuanitoFatas/feature/takes-symbol-as-report-parameter -=== 2.1.1 / 2015-01-12 +### 2.1.1 / 2015-01-12 * 1 minor fix: * Don't send label through printf so that % work directly @@ -175,7 +180,7 @@ Add missing files * 1 PR merged: * Merge pull request #24 from zzak/simple-format-result-description -=== 2.1.0 / 2014-11-10 +### 2.1.0 / 2014-11-10 * Documentation changes: * Many documentation fixes by Juanito Fatas! @@ -186,7 +191,7 @@ Add missing files * Formatting of large values improved (human vs raw mode) * Contributed by Charles Oliver Nutter -=== 2.0.0 / 2014-06-18 +### 2.0.0 / 2014-06-18 * The 'Davy Stevenson' release! * Codename: Springtime Hummingbird Dance @@ -204,7 +209,7 @@ Add missing files * Zachary Scott * schneems (Richard Schneeman) -=== 1.0.0 / 2012-03-23 +### 1.0.0 / 2012-03-23 * 1 major enhancement diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..43c24c3 --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +Copyright (c) 2015 Evan Phoenix + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Manifest.txt b/Manifest.txt deleted file mode 100644 index d9e1398..0000000 --- a/Manifest.txt +++ /dev/null @@ -1,19 +0,0 @@ -.autotest -History.txt -Manifest.txt -README.md -Rakefile -lib/benchmark/compare.rb -lib/benchmark/ips.rb -lib/benchmark/ips/job.rb -lib/benchmark/ips/job/entry.rb -lib/benchmark/ips/job/noop_report.rb -lib/benchmark/ips/job/stdout_report.rb -lib/benchmark/ips/noop_suite.rb -lib/benchmark/ips/report.rb -lib/benchmark/ips/share.rb -lib/benchmark/ips/stats/bootstrap.rb -lib/benchmark/ips/stats/sd.rb -lib/benchmark/ips/stats/stats_metric.rb -lib/benchmark/timing.rb -test/test_benchmark_ips.rb diff --git a/README.md b/README.md index d7793f5..3e5bc0a 100644 --- a/README.md +++ b/README.md @@ -254,27 +254,3 @@ After checking out the source, run: This task will install any missing dependencies, run the tests/specs, and generate the RDoc. -## LICENSE: - -(The MIT License) - -Copyright (c) 2015 Evan Phoenix - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Rakefile b/Rakefile index 0d8b2a4..14d89f5 100644 --- a/Rakefile +++ b/Rakefile @@ -1,27 +1,13 @@ # -*- ruby -*- -require 'rubygems' -require 'hoe' +require "bundler/setup" +require "rake/testtask" +require "rubygems/package_task" +require "bundler/gem_tasks" -Hoe.plugin :minitest -Hoe.plugin :git -Hoe.plugin :ignore - -hoe = Hoe.spec 'benchmark-ips' do - developer('Evan Phoenix', 'evan@phx.io') - - self.readme_file = 'README.md' - - license "MIT" -end - -file "#{hoe.spec.name}.gemspec" => ['Rakefile', "lib/benchmark/ips.rb"] do |t| - puts "Generating #{t.name}" - File.open(t.name, 'wb') { |f| f.write hoe.spec.to_ruby } -end - -desc "Generate or update the standalone gemspec file for the project" -task :gemspec => ["#{hoe.spec.name}.gemspec"] +gemspec = Gem::Specification.load("benchmark-ips.gemspec") +Gem::PackageTask.new(gemspec).define +Rake::TestTask.new(:test) # vim: syntax=ruby diff --git a/benchmark-ips.gemspec b/benchmark-ips.gemspec index bb62c41..113bb99 100644 --- a/benchmark-ips.gemspec +++ b/benchmark-ips.gemspec @@ -18,14 +18,14 @@ Gem::Specification.new do |s| s.date = "2015-01-12" s.description = "A iterations per second enhancement to Benchmark." s.email = ["evan@phx.io"] - s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.md"] - s.files = [".autotest", ".gemtest", "History.txt", "Manifest.txt", "README.md", "Rakefile", "lib/benchmark/compare.rb", "lib/benchmark/ips.rb", "lib/benchmark/ips/job.rb", "lib/benchmark/ips/report.rb", "lib/benchmark/timing.rb", "test/test_benchmark_ips.rb"] + s.extra_rdoc_files = ["History.md", "LICENSE", "README.md"] + s.files = `git ls-files -- examples lib`.split("\n") + + %w[History.md LICENSE README.md] s.homepage = "https://github.com/evanphx/benchmark-ips" s.licenses = ["MIT"] s.rdoc_options = ["--main", "README.md"] s.rubygems_version = "2.2.2" s.summary = "A iterations per second enhancement to Benchmark." - s.test_files = ["test/test_benchmark_ips.rb"] if s.respond_to? :specification_version then s.specification_version = 4 @@ -33,15 +33,12 @@ Gem::Specification.new do |s| if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then s.add_development_dependency(%q, ["~> 5.4"]) s.add_development_dependency(%q, ["~> 4.0"]) - s.add_development_dependency(%q, ["~> 3.13"]) else s.add_dependency(%q, ["~> 5.4"]) s.add_dependency(%q, ["~> 4.0"]) - s.add_dependency(%q, ["~> 3.13"]) end else s.add_dependency(%q, ["~> 5.4"]) s.add_dependency(%q, ["~> 4.0"]) - s.add_dependency(%q, ["~> 3.13"]) end end diff --git a/lib/benchmark/ips.rb b/lib/benchmark/ips.rb index 0d450a5..b4baaba 100644 --- a/lib/benchmark/ips.rb +++ b/lib/benchmark/ips.rb @@ -18,7 +18,7 @@ module Benchmark module IPS # Benchmark-ips Gem version. - VERSION = "2.9.2" + VERSION = "2.9.3" # CODENAME of current version. CODENAME = "Sleepy Sasquatch"