rspec-parameterized 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +4 -0
- data/CHANGELOG.md +17 -0
- data/README.md +1 -0
- data/lib/rspec/parameterized/table_syntax.rb +6 -4
- data/lib/rspec/parameterized/version.rb +1 -1
- data/rspec-parameterized.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 72463db3eadef427b3ee19346a0062c8b803e3e37021244153058feedfed3412
|
4
|
+
data.tar.gz: 5905011cfe3a4a4fac984f78ce66a72c51f0b467108c66c6cfd826f3b961c752
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70e79bb61550aabfb296de5e8ba99ad773c1ddfad931f5bfcc0ab67e2a325c281388169a4738e639bd8648e410a19d4ed40ed72f720afc624ba3bfb5264a8a5f
|
7
|
+
data.tar.gz: 6f9aaaafc1581bde5fe4104824ff33b88c3a1bac8dc4fdedf90dcbf7fcb1c869b3fca96ab088e76ab937e1f01e1663e2ae2e5cc83551911703d38990aa23088e
|
data/.travis.yml
CHANGED
@@ -5,6 +5,7 @@ rvm:
|
|
5
5
|
- 2.2
|
6
6
|
- 2.3.0
|
7
7
|
- 2.4.0
|
8
|
+
- 2.5.0
|
8
9
|
- ruby-head
|
9
10
|
|
10
11
|
gemfile:
|
@@ -12,6 +13,9 @@ gemfile:
|
|
12
13
|
- gemfiles/rspec3.3.gemfile
|
13
14
|
- gemfiles/rspec3.4.gemfile
|
14
15
|
|
16
|
+
before_install:
|
17
|
+
- gem update --system --no-document
|
18
|
+
|
15
19
|
matrix:
|
16
20
|
allow_failures:
|
17
21
|
- rvm: ruby-head
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,21 @@
|
|
1
1
|
# Change Log
|
2
|
+
## Unreleased
|
3
|
+
[Full Changelog](https://github.com/tomykaira/rspec-parameterized/compare/v0.4.1...master)
|
4
|
+
|
5
|
+
## [v0.4.1](https://github.com/tomykaira/rspec-parameterized/tree/v0.4.1) (2018-12-06)
|
6
|
+
[Full Changelog](https://github.com/tomykaira/rspec-parameterized/compare/v0.4.0...v0.4.1)
|
7
|
+
|
8
|
+
- Replace binding_of_caller with binding_ninja
|
9
|
+
- https://github.com/tomykaira/rspec-parameterized/pull/44
|
10
|
+
- https://github.com/tomykaira/rspec-parameterized/issues/48
|
11
|
+
|
12
|
+
## [v0.4.0](https://github.com/tomykaira/rspec-parameterized/tree/v0.4.0) (2017-06-13)
|
13
|
+
[Full Changelog](https://github.com/tomykaira/rspec-parameterized/compare/v0.3.2...v0.4.0)
|
14
|
+
|
15
|
+
**Merged pull requests:**
|
16
|
+
|
17
|
+
- Verbose test syntax [\#42](https://github.com/tomykaira/rspec-parameterized/pull/42) ([aliaksandr-martsinovich](https://github.com/aliaksandr-martsinovich))
|
18
|
+
- Customizable description [\#41](https://github.com/tomykaira/rspec-parameterized/pull/41) ([aliaksandr-martsinovich](https://github.com/aliaksandr-martsinovich))
|
2
19
|
|
3
20
|
## [v0.3.2](https://github.com/tomykaira/rspec-parameterized/tree/v0.3.2) (2016-12-26)
|
4
21
|
[Full Changelog](https://github.com/tomykaira/rspec-parameterized/compare/v0.3.1...v0.3.2)
|
data/README.md
CHANGED
@@ -1,12 +1,13 @@
|
|
1
|
-
require 'binding_of_caller'
|
2
1
|
require 'rspec/parameterized/table'
|
2
|
+
require 'binding_ninja'
|
3
3
|
|
4
4
|
module RSpec
|
5
5
|
module Parameterized
|
6
6
|
module TableSyntaxImplement
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
extend BindingNinja
|
8
|
+
|
9
|
+
def |(where_binding, other)
|
10
|
+
caller_instance = where_binding.receiver # get caller instance (ExampleGroup)
|
10
11
|
|
11
12
|
if caller_instance.instance_variable_defined?(:@__parameter_table)
|
12
13
|
table = caller_instance.instance_variable_get(:@__parameter_table)
|
@@ -20,6 +21,7 @@ module RSpec
|
|
20
21
|
row.add_param(other)
|
21
22
|
table
|
22
23
|
end
|
24
|
+
auto_inject_binding :|
|
23
25
|
end
|
24
26
|
|
25
27
|
module TableSyntax
|
data/rspec-parameterized.gemspec
CHANGED
@@ -13,7 +13,7 @@ I was inspired by [udzura's mock](https://gist.github.com/1881139).}
|
|
13
13
|
gem.add_dependency('parser')
|
14
14
|
gem.add_dependency('unparser')
|
15
15
|
gem.add_dependency('proc_to_ast')
|
16
|
-
gem.add_dependency('
|
16
|
+
gem.add_dependency('binding_ninja', '>= 0.2.1')
|
17
17
|
gem.add_development_dependency('rake', '< 12.0.0')
|
18
18
|
|
19
19
|
gem.files = `git ls-files`.split($\)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-parameterized
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tomykaira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -73,19 +73,19 @@ dependencies:
|
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
76
|
+
name: binding_ninja
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - ">="
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version:
|
81
|
+
version: 0.2.1
|
82
82
|
type: :runtime
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - ">="
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
88
|
+
version: 0.2.1
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: rake
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
version: '0'
|
146
146
|
requirements: []
|
147
147
|
rubyforge_project:
|
148
|
-
rubygems_version: 2.6
|
148
|
+
rubygems_version: 2.7.6
|
149
149
|
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: RSpec::Parameterized supports simple parameterized test syntax in rspec.
|