Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Hoe, 2.9.3 #122

Merged
merged 1 commit into from
Jan 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ tmp
pkg
doc
Gemfile.lock
vendor
7 changes: 0 additions & 7 deletions .hoeignore

This file was deleted.

1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
source 'https://rubygems.org'
gem 'rake', '~> 10.5'
gem 'hoe', '~> 3.14'

gem 'minitest', :group => :test

Expand Down
45 changes: 25 additions & 20 deletions History.txt → History.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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
Expand All @@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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!
Expand All @@ -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
Expand All @@ -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

Expand Down
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -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.
19 changes: 0 additions & 19 deletions Manifest.txt

This file was deleted.

24 changes: 0 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
28 changes: 8 additions & 20 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,15 @@
# -*- 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
gemspec = Gem::Specification.load("benchmark-ips.gemspec")
Gem::PackageTask.new(gemspec).define

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"]
Rake::TestTask.new(:test)

task default: :test

# vim: syntax=ruby
9 changes: 3 additions & 6 deletions benchmark-ips.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,27 @@ 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

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_development_dependency(%q<minitest>, ["~> 5.4"])
s.add_development_dependency(%q<rdoc>, ["~> 4.0"])
s.add_development_dependency(%q<hoe>, ["~> 3.13"])
else
s.add_dependency(%q<minitest>, ["~> 5.4"])
s.add_dependency(%q<rdoc>, ["~> 4.0"])
s.add_dependency(%q<hoe>, ["~> 3.13"])
end
else
s.add_dependency(%q<minitest>, ["~> 5.4"])
s.add_dependency(%q<rdoc>, ["~> 4.0"])
s.add_dependency(%q<hoe>, ["~> 3.13"])
end
end
2 changes: 1 addition & 1 deletion lib/benchmark/ips.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 0 additions & 7 deletions test/test_benchmark_ips.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ def teardown
$stdout = @old_stdout
end

def test_all_lib_files_are_included_in_manifest
project_root = File.expand_path('../..', __FILE__)
manifest = File.readlines("#{project_root}/Manifest.txt").map(&:chomp)
lib_files = Dir["#{project_root}/lib/**/*.rb"].map { |path| path.sub("#{project_root}/", '') }
lib_files.each { |lib_file| assert_includes manifest, lib_file }
end

def test_kwargs
Benchmark.ips(:time => 0.001, :warmup => 0.001, :quiet => false) do |x|
x.report("sleep 0.25") { sleep(0.25) }
Expand Down