rutabaga 2.1.4 → 2.1.5

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
  SHA1:
3
- metadata.gz: 794d0459cc67910ec07306067390b9d895cde205
4
- data.tar.gz: 4ae9df9d4102923990713ef83111cd1f82b5da02
3
+ metadata.gz: 445a9b995c8ec4a5bf006244a585251f04b6ff6c
4
+ data.tar.gz: 43a6907c291182f94ad1b2982c5fd6ee565cf856
5
5
  SHA512:
6
- metadata.gz: bb71825feea773f2ca79d5f492b0336958cdb65f45ca4c9f573cc0e2b54d1ff0a64cd7c47ff81c9f647d74a533052e457694236e4838e86dc2e61e146092b34b
7
- data.tar.gz: f484f6b6a4f1a670dfc0290a2e423c02a9c546f4142f282e04eba3551a937dc3c87f11fea98ea5fded85afa14ccb3b4026ed6b624e5a32bc3c1636be547622c3
6
+ metadata.gz: 0e560ad2a637c4d23099af42be3588decfd50881366b594cd8e72a43aa1cd2735d4fcd71c91d4602c359a96a946bf69604f173a539be8fcf8be036e7926aacd3
7
+ data.tar.gz: bd95e6e5c6810b13bf7aecfb1bd8e0a146b0dbf58c47bf725d4cccc1a58bc2fa918135a4d8b06cd7e64b4eb433fa5b334f378cfcb43be3b74cd363f28b45cf7f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changes
2
2
 
3
+ ## Version 2.1.5
4
+
5
+ - Support for Rspec 3.5 is fixed
6
+
3
7
  ## Version 2.1.4
4
8
 
5
9
  - Locked to Rspec versions between 3 and 3.4 as currently 3.5 is not supported
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in rutabaga.gemspec
4
4
  gemspec
5
5
 
6
- unless RUBY_PLATFORM
6
+ platform :ruby do
7
7
  gem 'pry-byebug'
8
8
  gem 'pry-doc'
9
9
  gem 'pry-stack_explorer'
@@ -18,13 +18,11 @@ class RSpec::Core::ExampleGroup
18
18
  class << self
19
19
  alias_method :orig_subclass, :subclass
20
20
 
21
- def subclass(parent, description, args, &example_group_block)
22
- self.orig_subclass(parent, description, args, &example_group_block).tap do |describe|
23
-
24
- if args.any? { |arg| arg.kind_of?(Hash) && arg[:rutabaga] }
25
- Rutabaga::ExampleGroup::Feature.feature(describe, description, args)
26
- end
21
+ def subclass(parent, description, *all_args, &example_group_block)
22
+ rutabaga = all_args.first.any? { |arg| arg.kind_of?(Hash) && arg[:rutabaga] }
27
23
 
24
+ self.orig_subclass(parent, description, *all_args, &example_group_block).tap do |describe|
25
+ Rutabaga::ExampleGroup::Feature.feature(describe, description, all_args.last) if rutabaga
28
26
  end
29
27
  end
30
28
  end
@@ -1,3 +1,3 @@
1
1
  module Rutabaga
2
- VERSION = '2.1.4'
2
+ VERSION = '2.1.5'
3
3
  end
data/rutabaga.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.license = 'MIT'
18
18
 
19
19
  gem.add_runtime_dependency 'turnip', ['~> 2.1','>= 2.1.1']
20
- gem.add_runtime_dependency 'rspec', ['>= 3.0', '< 3.5']
20
+ gem.add_runtime_dependency 'rspec', ['~> 3.0']
21
21
 
22
22
  gem.add_development_dependency 'capybara'
23
23
  gem.add_development_dependency 'pry', '~> 0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rutabaga
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Oberhuber
@@ -34,22 +34,16 @@ dependencies:
34
34
  name: rspec
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ">="
37
+ - - "~>"
38
38
  - !ruby/object:Gem::Version
39
39
  version: '3.0'
40
- - - "<"
41
- - !ruby/object:Gem::Version
42
- version: '3.5'
43
40
  type: :runtime
44
41
  prerelease: false
45
42
  version_requirements: !ruby/object:Gem::Requirement
46
43
  requirements:
47
- - - ">="
44
+ - - "~>"
48
45
  - !ruby/object:Gem::Version
49
46
  version: '3.0'
50
- - - "<"
51
- - !ruby/object:Gem::Version
52
- version: '3.5'
53
47
  - !ruby/object:Gem::Dependency
54
48
  name: capybara
55
49
  requirement: !ruby/object:Gem::Requirement