rspec-parameterized-table_syntax 1.0.0.beta1 → 1.0.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
  SHA256:
3
- metadata.gz: 21c64d788d2f64fea8e46866a5939c3cdd398fe67299efb1996ff842bba57baa
4
- data.tar.gz: 402ffbe3117092de17896e05e42f940e08cb5175b1d763df397b078c954e07dc
3
+ metadata.gz: 2dbe2443b6376dd05abab890aa1ab9b6b20929ce8b46fe4a5318ce9638c7f797
4
+ data.tar.gz: 651872bbb60acfca7014977828143541efb33ca6288566e9f73f46b725e381fa
5
5
  SHA512:
6
- metadata.gz: f16bb37557b87ae5b11a9b3036509f6859ff8f428f15ba41ace57fd9267d63c307c98eafb537c37a1b6934b12fb10ccd902c2603fe0ab26647047748fb89cdf3
7
- data.tar.gz: fa800e051768fb1214b25bca817cdac8be1598062bfef8e0e120fe39f93f03fe0a611cc9fb9d62c3c159a7526b5490915e592306d53611560ebfc07313160ab9
6
+ metadata.gz: fca039a92fc662171c1dae30a218d2419b16691c3c16777e26db860bde3926e08b1206930f8fa5754c27919b5dbcf34f1900fd8bd4ddb5fef9ec9865c2be590a
7
+ data.tar.gz: 6eb2fb8fbaed991a7ac97abb3134253d612e9a18f3074009e7f83fd82ee241a64c8a034fcd59589635c3eaf4ce94b28e2e4e3854b25796ba31db859926e59f36
data/CHANGELOG.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ## [Unreleased]
2
2
 
3
- ## [0.1.0] - 2022-12-31
4
-
5
- - Initial release
3
+ ## [1.0.0] - 2022-12-31
4
+ - https://github.com/tomykaira/rspec-parameterized/blob/master/CHANGELOG.md#v100-2022-12-31
5
+ - 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
- TODO: Delete this and the text below, and describe your gem
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
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
-
11
- Install the gem and add to the application's Gemfile by executing:
12
-
13
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
14
-
15
- If bundler is not being used to manage dependencies, install the gem by executing:
16
-
17
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
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
- TODO: Write usage instructions here
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/[USERNAME]/rspec-parameterized-table_syntax.
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
 
@@ -3,7 +3,7 @@
3
3
  module Rspec
4
4
  module Parameterized
5
5
  module TableSyntax
6
- VERSION = "1.0.0.beta1"
6
+ VERSION = "1.0.0"
7
7
  end
8
8
  end
9
9
  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.0.beta1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
@@ -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: '0'
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: '0'
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,9 +108,9 @@ 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: 1.3.1
113
+ version: '0'
112
114
  requirements: []
113
115
  rubygems_version: 3.2.22
114
116
  signing_key: