rspec-parameterized-table_syntax 1.0.0.beta1 → 1.0.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
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efe50efda1a41df788739ddc7b7ab0ac57f46fabf555f41e70029bf5b5f936f7
|
4
|
+
data.tar.gz: 0a97318b230af8408794ed4907e37ca2b099960dece6636466eab1571ec45f12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20c6c173f40686b4d0ddc5e6102dda80b5d84f5fdcbb460afe3cb31eb0b5cf5157eb1840f15270909fb26ec315e48585644b992e37ea0a2ce37bd4d217604c27
|
7
|
+
data.tar.gz: 3579c76ee2fa1e483b4d558a48e59ae5c78751496a562919032d9df1c379ac35423950434d489bdf840e0221439342dba9007b5f15683834a3249a3a1ffca273
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
## [Unreleased]
|
2
|
+
[full changelog](https://github.com/rspec-parameterized/rspec-parameterized-table_syntax/compare/v1.0.1...main)
|
2
3
|
|
3
|
-
## [0.1
|
4
|
+
## [1.0.1] - 2023-09-26
|
5
|
+
[full changelog](https://github.com/rspec-parameterized/rspec-parameterized-table_syntax/compare/v1.0.0...v1.0.1)
|
4
6
|
|
5
|
-
-
|
7
|
+
- Suppress unnecessary deprecation warning for Ruby v3.1.
|
8
|
+
- https://github.com/rspec-parameterized/rspec-parameterized-table_syntax/pull/7
|
9
|
+
|
10
|
+
## [1.0.0] - 2022-12-31
|
11
|
+
- https://github.com/tomykaira/rspec-parameterized/blob/master/CHANGELOG.md#v100-2022-12-31
|
12
|
+
- Drop support Ruby < 2.6 (explicitly)
|
data/README.md
CHANGED
@@ -1,24 +1,39 @@
|
|
1
1
|
# Rspec::Parameterized::TableSyntax
|
2
|
+
`rspec-parameterized-table_syntax` provides table syntax extension for [rspec-parameterized](https://github.com/tomykaira/rspec-parameterized).
|
2
3
|
|
3
|
-
|
4
|
-
|
5
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rspec/parameterized/table_syntax`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/rspec-parameterized-table_syntax.svg)](https://badge.fury.io/rb/rspec-parameterized-table_syntax)
|
5
|
+
[![RSpec](https://github.com/rspec-parameterized/rspec-parameterized-table_syntax/actions/workflows/rspec.yml/badge.svg)](https://github.com/rspec-parameterized/rspec-parameterized-table_syntax/actions/workflows/rspec.yml)
|
6
6
|
|
7
7
|
## Installation
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
8
|
+
```ruby
|
9
|
+
# Install all components
|
10
|
+
group :test do
|
11
|
+
gem "rspec-parameterized", ">= 1.0.0"
|
12
|
+
end
|
13
|
+
|
14
|
+
# Install only rspec-parameterized-table_syntax
|
15
|
+
group :test do
|
16
|
+
gem "rspec-parameterized-table_syntax", ">= 1.0.0"
|
17
|
+
end
|
18
|
+
```
|
18
19
|
|
19
20
|
## Usage
|
20
|
-
|
21
|
-
|
21
|
+
### Table Syntax Style (like Groovy spock)
|
22
|
+
```ruby
|
23
|
+
describe "plus" do
|
24
|
+
using RSpec::Parameterized::TableSyntax
|
25
|
+
where(:a, :b, :answer) do
|
26
|
+
1 | 2 | 3
|
27
|
+
5 | 8 | 13
|
28
|
+
0 | 0 | 0
|
29
|
+
end
|
30
|
+
with_them do
|
31
|
+
it "should do additions" do
|
32
|
+
expect(a + b).to eq answer
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
```
|
22
37
|
|
23
38
|
## Development
|
24
39
|
|
@@ -28,7 +43,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
28
43
|
|
29
44
|
## Contributing
|
30
45
|
|
31
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
46
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/rspec-parameterized/rspec-parameterized-table_syntax.
|
32
47
|
|
33
48
|
## License
|
34
49
|
|
@@ -9,7 +9,7 @@ require 'binding_of_caller'
|
|
9
9
|
module RSpec
|
10
10
|
module Parameterized
|
11
11
|
module TableSyntax
|
12
|
-
if Gem::Version.create(RUBY_VERSION) >= Gem::Version.create(
|
12
|
+
if Gem::Version.create(RUBY_VERSION) >= Gem::Version.create('3.1.0')
|
13
13
|
refine Object do
|
14
14
|
import_methods TableSyntaxImplement
|
15
15
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require "rspec/parameterized/table_syntax"
|
@@ -19,6 +19,7 @@ I was inspired by [udzura's mock](https://gist.github.com/1881139).}
|
|
19
19
|
spec.metadata["homepage_uri"] = spec.homepage
|
20
20
|
spec.metadata["source_code_uri"] = spec.homepage
|
21
21
|
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/main/CHANGELOG.md"
|
22
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
22
23
|
|
23
24
|
# Specify which files should be added to the gem when it is released.
|
24
25
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
@@ -32,7 +33,7 @@ I was inspired by [udzura's mock](https://gist.github.com/1881139).}
|
|
32
33
|
spec.require_paths = ["lib"]
|
33
34
|
|
34
35
|
spec.add_dependency "binding_of_caller"
|
35
|
-
spec.add_dependency "rspec-parameterized-core"
|
36
|
+
spec.add_dependency "rspec-parameterized-core", "< 2"
|
36
37
|
|
37
38
|
spec.add_development_dependency "rake"
|
38
39
|
spec.add_development_dependency "rspec"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-parameterized-table_syntax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2023-09-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: binding_of_caller
|
@@ -30,16 +30,16 @@ dependencies:
|
|
30
30
|
name: rspec-parameterized-core
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- - "
|
33
|
+
- - "<"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: '
|
35
|
+
version: '2'
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- - "
|
40
|
+
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
42
|
+
version: '2'
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: rake
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,6 +82,7 @@ files:
|
|
82
82
|
- LICENSE.txt
|
83
83
|
- README.md
|
84
84
|
- Rakefile
|
85
|
+
- lib/rspec-parameterized-table_syntax.rb
|
85
86
|
- lib/rspec/parameterized/table_syntax.rb
|
86
87
|
- lib/rspec/parameterized/table_syntax/table.rb
|
87
88
|
- lib/rspec/parameterized/table_syntax/table_syntax_implement.rb
|
@@ -95,6 +96,7 @@ metadata:
|
|
95
96
|
homepage_uri: https://github.com/rspec-parameterized/rspec-parameterized-table_syntax
|
96
97
|
source_code_uri: https://github.com/rspec-parameterized/rspec-parameterized-table_syntax
|
97
98
|
changelog_uri: https://github.com/rspec-parameterized/rspec-parameterized-table_syntax/blob/main/CHANGELOG.md
|
99
|
+
rubygems_mfa_required: 'true'
|
98
100
|
post_install_message:
|
99
101
|
rdoc_options: []
|
100
102
|
require_paths:
|
@@ -106,11 +108,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
106
108
|
version: 2.6.0
|
107
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
110
|
requirements:
|
109
|
-
- - "
|
111
|
+
- - ">="
|
110
112
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
113
|
+
version: '0'
|
112
114
|
requirements: []
|
113
|
-
rubygems_version: 3.
|
115
|
+
rubygems_version: 3.3.26
|
114
116
|
signing_key:
|
115
117
|
specification_version: 4
|
116
118
|
summary: RSpec::Parameterized supports simple parameterized test syntax in rspec.
|