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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2e6be52e986b05c5db18dc2355e2ee393b0ee954
4
- data.tar.gz: 191bb660e0afdc89f466f1213a4ce756ba9566e1
2
+ SHA256:
3
+ metadata.gz: 72463db3eadef427b3ee19346a0062c8b803e3e37021244153058feedfed3412
4
+ data.tar.gz: 5905011cfe3a4a4fac984f78ce66a72c51f0b467108c66c6cfd826f3b961c752
5
5
  SHA512:
6
- metadata.gz: 7cce6711e56fb75d458b75b1fc4a9d47f7908395040bfc0eec9b809b66b5cbe0f5ec8663747b1b40e053286aafccfd9884eb4d2c97358414cc09191cfe74cef7
7
- data.tar.gz: 9a5e59b1d28cd1bf826346c61d0953daba8bb6f198966d03024c98f1570a02e50b79f6ed5a89032fb805b7a50131ff5ceea8159965d59dc5c8cfd94ccf8c183f
6
+ metadata.gz: 70e79bb61550aabfb296de5e8ba99ad773c1ddfad931f5bfcc0ab67e2a325c281388169a4738e639bd8648e410a19d4ed40ed72f720afc624ba3bfb5264a8a5f
7
+ data.tar.gz: 6f9aaaafc1581bde5fe4104824ff33b88c3a1bac8dc4fdedf90dcbf7fcb1c869b3fca96ab088e76ab937e1f01e1663e2ae2e5cc83551911703d38990aa23088e
@@ -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
@@ -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
@@ -124,6 +124,7 @@ describe "Custom names for regular syntax" do
124
124
  with_them do
125
125
  it "should do additions" do
126
126
  expect(a + b).to eq answer
127
+ end
127
128
  end
128
129
  end
129
130
 
@@ -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
- def |(other)
8
- where_binding = binding.of_caller(1) # get where block binding
9
- caller_instance = eval("self", where_binding) # get caller instance (ExampleGroup)
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
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module Parameterized
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
4
4
  end
5
5
  end
@@ -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('binding_of_caller')
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.0
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: 2017-06-13 00:00:00.000000000 Z
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: binding_of_caller
76
+ name: binding_ninja
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - ">="
80
80
  - !ruby/object:Gem::Version
81
- version: '0'
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: '0'
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.12
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.