rspec-cells 0.3.6 → 0.3.7

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: 44801a75a08a49bc26e5a72b126199b14b08a24e5b5ce6c0998d51468d7f9ccb
4
- data.tar.gz: f291ede5db682f504d1716ca2dbd8b3ed189106765842b198f81945a27701009
3
+ metadata.gz: 411fd1daa1989c9ad0017a8a01d3bf0089e7b7f194a44ac791ea85d97f4fc65b
4
+ data.tar.gz: 915dd9405bc42459a51d32d25222253c0094601118dd0c63de29a8445290574e
5
5
  SHA512:
6
- metadata.gz: 20a7f4a5152c5cf6f6222c33d7a7958c204a71febfc44d2a6a05e7b8fcdbbfad1e7608638275bda6c98f3d1e9ff1a78b68a284c7f7a96f7b0c50f5d5d5c2109f
7
- data.tar.gz: e9c08212997383bc3e37d05311417113a66afff461ab77257fd3410516a691069c96f0cc30759107ddf1e37e9858bfa756aed9114590562d053385921188372f
6
+ metadata.gz: 5beb40bbd81487169f095ac3f12d0ba3989633bb0832be2f58b23b8e6f3a092bdbce17c51dc502955ab62f7447cd647915ac125aa87bfabf41df9ae0a00c7c3e
7
+ data.tar.gz: fbae34565adfd293b82b2ad53b3355eac208b061f19610d31eb1b326b8f8eb0fbd7c8e32bfd52d8a2b98d7a0f49892471ab174c182b9c656987696fc31575c6c
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.3.7
2
+
3
+ * Fix method signature for ruby <= 2.6
4
+
1
5
  # 0.3.6
2
6
 
3
7
  * Support Ruby 3.
@@ -9,12 +9,19 @@ module RSpec
9
9
 
10
10
  attr_reader :routes
11
11
 
12
- def method_missing(method, *args, **kwargs, &block)
13
- # Send the route helpers to the application router.
14
- if route_defined?(method)
12
+ if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.7.0')
13
+ def method_missing(method, *args, **kwargs, &block)
14
+ # Send the route helpers to the application router.
15
+ return super unless route_defined?(method)
16
+
15
17
  controller.send(method, *args, **kwargs, &block)
16
- else
17
- super
18
+ end
19
+ else
20
+ def method_missing(method, *args, &block)
21
+ # Send the route helpers to the application router.
22
+ return super unless route_defined?(method)
23
+
24
+ controller.send(method, *args, &block)
18
25
  end
19
26
  end
20
27
 
@@ -1,6 +1,6 @@
1
1
  module RSpec
2
2
  module Cells
3
- VERSION = "0.3.6"
3
+ VERSION = "0.3.7"
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-cells
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-26 00:00:00.000000000 Z
11
+ date: 2021-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-rails
@@ -92,11 +92,11 @@ licenses:
92
92
  metadata:
93
93
  bug_tracker_uri: https://github.com/trailblazer/rspec-cells/issues
94
94
  changelog_uri: https://github.com/trailblazer/rspec-cells/blob/master/CHANGES.md
95
- documentation_uri: https://www.rubydoc.info/gems/rspec-cells/0.3.6
95
+ documentation_uri: https://www.rubydoc.info/gems/rspec-cells/0.3.7
96
96
  homepage_uri: https://github.com/trailblazer/rspec-cells
97
- source_code_uri: https://github.com/trailblazer/rspec-cells/tree/v0.3.6
97
+ source_code_uri: https://github.com/trailblazer/rspec-cells/tree/v0.3.7
98
98
  wiki_uri: https://github.com/trailblazer/rspec-cells/wiki
99
- post_install_message:
99
+ post_install_message:
100
100
  rdoc_options: []
101
101
  require_paths:
102
102
  - lib
@@ -112,7 +112,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubygems_version: 3.0.8
115
- signing_key:
115
+ signing_key:
116
116
  specification_version: 4
117
117
  summary: Spec your cells.
118
- test_files: []
118
+ test_files:
119
+ - spec/cells/caching_spec.rb
120
+ - spec/cells/cell_generator_spec.rb
121
+ - spec/cells/cell_spec_spec.rb
122
+ - spec/spec_helper.rb