rspec-parameterized-context 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d4108326dc810055c3cb625da061074ffc68cf5de7cbe7d18c9e06bbabcb4c6
4
- data.tar.gz: 15471eee887a204ca7cbef3cf89f95c54f0cc4bf4d7b267be6f93b32a16cdeba
3
+ metadata.gz: b3c603d4e42f9ed89ed4ae2cd15ff275b90946e1f6baa535e71323677913960e
4
+ data.tar.gz: 7ec7d5613024ffa5956d305c1f79b98f42045d5612af6913182b5b244373fa56
5
5
  SHA512:
6
- metadata.gz: 878ee943337a260faadbb945fa3fd9fcce4c0b5c738712cd8a7b48c75757600a8ad3cf850bb618c752730b0f66b4cd0ff3b2ea3a94abf3e263a3b3991cf7f5e0
7
- data.tar.gz: '0125687003771403fb3ab4d3b137a0c89453f2ba43226da67c2d5d5da49d72690f75f6321025d253d4b9a1c5106e26c0bc7072fe54e7437d2770b2ce8931548c'
6
+ metadata.gz: 5913536b2e81bff61dedea80c848002c1e978e8cb33f7106856e3db8c395e198e555ba12c0c5a5b43d432296bac9cb4707199a08bb40d6d8f18a559f815d5762
7
+ data.tar.gz: 73cea398ebc85de08b2a4c3ec7fdf6c543f218ee3583a7bd3c0c52dd0f4a09a31227e2dfc6ed5e3cfe6dfbc75cd713fee33038fac1e29f84be3e14c736583193
@@ -0,0 +1,26 @@
1
+ name: run_rspec
2
+
3
+ on: pull_request
4
+
5
+ jobs:
6
+ test:
7
+ runs-on: ubuntu-latest
8
+
9
+ strategy:
10
+ matrix:
11
+ ruby: [2.5, 2.6, 2.7]
12
+
13
+ name: Run rspec on ruby ${{ matrix.ruby }}
14
+
15
+ steps:
16
+ - uses: actions/checkout@v2
17
+ - name: Set up Ruby
18
+ uses: ruby/setup-ruby@v1
19
+ with:
20
+ ruby-version: ${{ matrix.ruby }}
21
+ - name: Install dependencies
22
+ run: |
23
+ bundle install
24
+ bundle exec appraisal bundle install
25
+ - name: Run rspec
26
+ run: bundle exec appraisal rspec
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ appraise "2.5" do; end
4
+
5
+ appraise "2.6" do; end
6
+
7
+ appraise "2.7" do; end
data/Gemfile CHANGED
@@ -3,5 +3,6 @@ source "https://rubygems.org"
3
3
  # Specify your gem's dependencies in rspec-parameterized-context.gemspec
4
4
  gemspec
5
5
 
6
- gem "rake", "~> 12.0"
6
+ gem "rake", "~> 13.0"
7
7
  gem "rspec", "~> 3.0"
8
+ gem "appraisal", "~> 2.0"
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Generate interfaces like `RSpec::Parameterized` to support parameterized testing that is evaluated in transaction.
4
4
 
5
+ Support Ruby 2.5 and later.
6
+
5
7
  ## Installation
6
8
 
7
9
  Add this line to your application's Gemfile:
@@ -10,11 +12,9 @@ Add this line to your application's Gemfile:
10
12
  gem 'rspec-parameterized-context'
11
13
  ```
12
14
 
13
- Then add this line to files under `spec/support/`
15
+ Then add this lines to files under `spec/support/`
14
16
 
15
17
  ```ruby
16
- require 'rspec_parameterized_context'
17
-
18
18
  RSpec.configure do |config|
19
19
  config.extend RSpecParameterizedContext
20
20
  end
@@ -22,7 +22,7 @@ end
22
22
 
23
23
  ## Usage
24
24
 
25
- ### syntax
25
+ ### Syntax
26
26
 
27
27
  Provide interfaces like `RSpec::Parameterized`.
28
28
 
@@ -48,7 +48,7 @@ describe "Addition" do
48
48
  end
49
49
  ```
50
50
 
51
- ### feature
51
+ ### Feature
52
52
 
53
53
  rspec-parameterized-context supports to evaluate block that given where method in transaction.
54
54
 
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rake", "~> 13.0"
6
+ gem "rspec", "~> 3.0"
7
+ gem "appraisal", "~> 2.0"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rake", "~> 13.0"
6
+ gem "rspec", "~> 3.0"
7
+ gem "appraisal", "~> 2.0"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rake", "~> 13.0"
6
+ gem "rspec", "~> 3.0"
7
+ gem "appraisal", "~> 2.0"
8
+
9
+ gemspec path: "../"
@@ -51,10 +51,16 @@ module RSpecParameterizedContext
51
51
  end
52
52
  end
53
53
 
54
- def method_missing(action, *args, **options, &block)
55
- @rspec_context.send(action, *args, **options, &block)
54
+ def method_missing(action, *args, &block)
55
+ if @rspec_context.respond_to?(action)
56
+ @rspec_context.public_send(action, *args, &block)
57
+ else
58
+ super
59
+ end
56
60
  end
57
61
 
62
+ ruby2_keywords(:method_missing) if respond_to?(:ruby2_keywords, true)
63
+
58
64
  def respond_to_missing?(action, include_private)
59
65
  @rspec_context.respond_to?(action, include_private) || super
60
66
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RspecParameterizedContext
4
- VERSION = '0.0.2'
4
+ VERSION = '0.0.3'
5
5
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-parameterized-context
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - alpaca-tc
8
8
  - kamillle
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-09-10 00:00:00.000000000 Z
12
+ date: 2020-09-14 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ''
15
15
  email:
@@ -19,14 +19,18 @@ executables: []
19
19
  extensions: []
20
20
  extra_rdoc_files: []
21
21
  files:
22
+ - ".github/workflows/run_rspec.yml"
22
23
  - ".gitignore"
23
24
  - ".rspec"
24
- - ".travis.yml"
25
+ - Appraisals
25
26
  - CODE_OF_CONDUCT.md
26
27
  - Gemfile
27
28
  - LICENSE.txt
28
29
  - README.md
29
30
  - Rakefile
31
+ - gemfiles/2.5.gemfile
32
+ - gemfiles/2.6.gemfile
33
+ - gemfiles/2.7.gemfile
30
34
  - lib/rspec-parameterized-context.rb
31
35
  - lib/rspec_parameterized_context.rb
32
36
  - lib/rspec_parameterized_context/version.rb
@@ -36,7 +40,7 @@ licenses:
36
40
  - MIT
37
41
  metadata:
38
42
  homepage_uri: https://github.com/alpaca-tc/rspec-parameterized-context
39
- post_install_message:
43
+ post_install_message:
40
44
  rdoc_options: []
41
45
  require_paths:
42
46
  - lib
@@ -52,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
52
56
  version: '0'
53
57
  requirements: []
54
58
  rubygems_version: 3.1.2
55
- signing_key:
59
+ signing_key:
56
60
  specification_version: 4
57
61
  summary: ''
58
62
  test_files: []
@@ -1,6 +0,0 @@
1
- ---
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.7.1
6
- before_install: gem install bundler -v 2.1.4