rspec-benchmark 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7284782b6fbaacc643bbe29f58c30aa05985b9c7
4
- data.tar.gz: 8e5fd4afde4a6cba55e537d8399652a286675021
3
+ metadata.gz: 6e97c37d92aad25cc4818e165c58fce09b261bd2
4
+ data.tar.gz: 9ca0eb8504cb3ee565f2c0708c1e5595e6563de7
5
5
  SHA512:
6
- metadata.gz: 72f9771b9edea737412eb8e241d70f4dd56866632c267ce72b71719567cd0b19d7769b4425067050d90ae84bd049a0cc6f75e17f2da97f1fdcc92747b2bea06f
7
- data.tar.gz: 951f9b31da5bea5c0df8db36fc2a2a2befeef46d92e061f5dcc8e08f6c08489f36035f40e3321199439f961ec27eeb5f28fbe48daed4da87bf612c5e85f63023
6
+ metadata.gz: e3f034d4c0b725f1e94ead47cb8ca826757f7dad1c3e948a92b60fbfa2434935ed91a5bec606a7c411c2ecca498464499393909eb089a305793218eec2b38612
7
+ data.tar.gz: 87079a2e2953c7e90bc05623928a858a06514f5f7860dc45db9eaa2b7682bb345ecff4eb592a44fb506ec54dbcd4d395988bca6b0d773319920b8a278bda2ce1
@@ -2,23 +2,22 @@
2
2
  language: ruby
3
3
  sudo: false
4
4
  cache: bundler
5
- bundler_args: --without yard benchmarks
6
5
  script: "bundle exec rake ci"
7
6
  rvm:
8
- - 1.9.3
9
- - 2.0
10
- - 2.1
11
- - 2.2
7
+ - 2.0.0
8
+ - 2.1.10
9
+ - 2.2.5
10
+ - 2.3.1
12
11
  - ruby-head
13
- - jruby-19mode
14
- - jruby
12
+ - jruby-9000
15
13
  - jruby-head
16
- - rbx-2
14
+ - rbx
17
15
  env:
18
16
  global:
19
17
  - JRUBY_OPTS="-Xcli.debug=true --debug"
20
18
  matrix:
21
19
  allow_failures:
20
+ - rvm: rbx
22
21
  - rvm: ruby-head
23
22
  - rvm: jruby-head
24
23
  fast_finish: true
@@ -1,7 +1,13 @@
1
1
  # Change log
2
2
 
3
+ ## [v0.2.0] - 2016-11-01
4
+
5
+ ### Changed
6
+ * Update dependency for benchmark-perf
7
+
3
8
  ## [v0.1.0] - 2016-01-25
4
9
 
5
10
  Initial release
6
11
 
12
+ [v0.2.0]: https://github.com/peter-murach/rspec-benchmark/compare/v0.1.0...v0.2.0
7
13
  [v0.1.0]: https://github.com/peter-murach/rspec-benchmark/compare/v0.1.0
data/README.md CHANGED
@@ -1,19 +1,19 @@
1
1
  # RSpec::Benchmark
2
2
  [![Gem Version](https://badge.fury.io/rb/rspec-benchmark.svg)][gem]
3
- [![Build Status](https://secure.travis-ci.org/peter-murach/rspec-benchmark.svg?branch=master)][travis]
4
- [![Code Climate](https://codeclimate.com/github/peter-murach/rspec-benchmark/badges/gpa.svg)][codeclimate]
5
- [![Coverage Status](https://coveralls.io/repos/github/peter-murach/rspec-benchmark/badge.svg?branch=master)][coverage]
6
- [![Inline docs](http://inch-ci.org/github/peter-murach/rspec-benchmark.svg?branch=master)][inchpages]
3
+ [![Build Status](https://secure.travis-ci.org/piotrmurach/rspec-benchmark.svg?branch=master)][travis]
4
+ [![Code Climate](https://codeclimate.com/github/piotrmurach/rspec-benchmark/badges/gpa.svg)][codeclimate]
5
+ [![Coverage Status](https://coveralls.io/repos/github/piotrmurach/rspec-benchmark/badge.svg?branch=master)][coverage]
6
+ [![Inline docs](http://inch-ci.org/github/piotrmurach/rspec-benchmark.svg?branch=master)][inchpages]
7
7
 
8
8
  [gem]: http://badge.fury.io/rb/rspec-benchmark
9
- [travis]: http://travis-ci.org/peter-murach/rspec-benchmark
10
- [codeclimate]: https://codeclimate.com/github/peter-murach/rspec-benchmark
11
- [coverage]: https://coveralls.io/github/peter-murach/rspec-benchmark?branch=master
12
- [inchpages]: http://inch-ci.org/github/peter-murach/rspec-benchmark
9
+ [travis]: http://travis-ci.org/piotrmurach/rspec-benchmark
10
+ [codeclimate]: https://codeclimate.com/github/piotrmurach/rspec-benchmark
11
+ [coverage]: https://coveralls.io/github/piotrmurach/rspec-benchmark?branch=master
12
+ [inchpages]: http://inch-ci.org/github/piotrmurach/rspec-benchmark
13
13
 
14
14
  > Performance testing matchers for RSpec
15
15
 
16
- **RSpec::Benchmark** uses [benchmark-perf](https://github.com/peter-murach/benchmark-perf) for measurements.
16
+ **RSpec::Benchmark** uses [benchmark-perf](https://github.com/piotrmurach/benchmark-perf) for measurements.
17
17
 
18
18
  ## Why?
19
19
 
@@ -24,6 +24,8 @@ If you are new to performance testing you may find [Caveats](#3-caveats) section
24
24
  ## Contents
25
25
 
26
26
  * [1. Usage](#1-usage)
27
+ * [1.1 Execution Time](#11-execution-time)
28
+ * [1.2 Iterations ](#12-iterations)
27
29
  * [2. Filtering](#2-filtering)
28
30
  * [3. Caveats](#3-caveats)
29
31
 
@@ -126,7 +128,7 @@ If you have any other observations please share them!
126
128
 
127
129
  ## Contributing
128
130
 
129
- 1. Fork it ( https://github.com/peter-murach/rspec-benchmark/fork )
131
+ 1. Fork it ( https://github.com/piotrmurach/rspec-benchmark/fork )
130
132
  2. Create your feature branch (`git checkout -b my-new-feature`)
131
133
  3. Commit your changes (`git commit -am 'Add some feature'`)
132
134
  4. Push to the branch (`git push origin my-new-feature`)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RSpec
4
4
  module Benchmark
5
- VERSION = "0.1.0"
5
+ VERSION = "0.2.0"
6
6
  end # Benchmark
7
7
  end # RSpec
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^spec/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency 'benchmark-perf', '~> 0.1.0'
21
+ spec.add_dependency 'benchmark-perf', '~> 0.2.0'
22
22
  spec.add_dependency 'rspec', '>= 3.0.0', '< 4.0.0'
23
23
 
24
24
  spec.add_development_dependency 'bundler', '>= 1.5.0', '< 2.0'
@@ -1,6 +1,11 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  RSpec.describe 'RSpec::Benchmark::TimingMatcher', '#perform_under' do
4
+ it "propagates error inside expectation" do
5
+ expect {
6
+ expect { raise 'boom' }.to perform_under(0.01).sec
7
+ }.to raise_error(StandardError, /boom/)
8
+ end
4
9
 
5
10
  context "expect { ... }.to perfom_under(...).and_sample" do
6
11
  it "passes if the block performs under threshold" do
metadata CHANGED
@@ -1,81 +1,81 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-benchmark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Murach
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-25 00:00:00.000000000 Z
11
+ date: 2016-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: benchmark-perf
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.0
19
+ version: 0.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.1.0
26
+ version: 0.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 3.0.0
34
- - - <
34
+ - - "<"
35
35
  - !ruby/object:Gem::Version
36
36
  version: 4.0.0
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - '>='
41
+ - - ">="
42
42
  - !ruby/object:Gem::Version
43
43
  version: 3.0.0
44
- - - <
44
+ - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: 4.0.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - '>='
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
53
  version: 1.5.0
54
- - - <
54
+ - - "<"
55
55
  - !ruby/object:Gem::Version
56
56
  version: '2.0'
57
57
  type: :development
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - '>='
61
+ - - ">="
62
62
  - !ruby/object:Gem::Version
63
63
  version: 1.5.0
64
- - - <
64
+ - - "<"
65
65
  - !ruby/object:Gem::Version
66
66
  version: '2.0'
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: rake
69
69
  requirement: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - '>='
71
+ - - ">="
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  type: :development
75
75
  prerelease: false
76
76
  version_requirements: !ruby/object:Gem::Requirement
77
77
  requirements:
78
- - - '>='
78
+ - - ">="
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0'
81
81
  description: Performance testing matchers for RSpec that provide simple way to specify
@@ -86,9 +86,9 @@ executables: []
86
86
  extensions: []
87
87
  extra_rdoc_files: []
88
88
  files:
89
- - .gitignore
90
- - .rspec
91
- - .travis.yml
89
+ - ".gitignore"
90
+ - ".rspec"
91
+ - ".travis.yml"
92
92
  - CHANGELOG.md
93
93
  - Gemfile
94
94
  - LICENSE.txt
@@ -118,17 +118,17 @@ require_paths:
118
118
  - lib
119
119
  required_ruby_version: !ruby/object:Gem::Requirement
120
120
  requirements:
121
- - - '>='
121
+ - - ">="
122
122
  - !ruby/object:Gem::Version
123
123
  version: '0'
124
124
  required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  requirements:
126
- - - '>='
126
+ - - ">="
127
127
  - !ruby/object:Gem::Version
128
128
  version: '0'
129
129
  requirements: []
130
130
  rubyforge_project:
131
- rubygems_version: 2.0.3
131
+ rubygems_version: 2.5.1
132
132
  signing_key:
133
133
  specification_version: 4
134
134
  summary: Performance testing matchers for RSpec