rspec-parameterized 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -98,6 +98,9 @@ module RSpec
98
98
 
99
99
  def eval_sexp(sexp)
100
100
  instance = new # for evaluate let methods.
101
+ if defined?(self.superclass::LetDefinitions)
102
+ instance.extend self.superclass::LetDefinitions
103
+ end
101
104
  instance.instance_eval(ruby2ruby.process(sexp))
102
105
  end
103
106
 
@@ -107,6 +110,9 @@ module RSpec
107
110
 
108
111
  def define_cases(parameter, *args, &block)
109
112
  instance = new # for evaluate let methods.
113
+ if defined?(self.superclass::LetDefinitions)
114
+ instance.extend self.superclass::LetDefinitions
115
+ end
110
116
 
111
117
  if parameter.table_format
112
118
  param_sets = separate_table_like_block(parameter.block)
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module Parameterized
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
@@ -9,9 +9,9 @@ Gem::Specification.new do |gem|
9
9
  I was inspired by [udzura's mock](https://gist.github.com/1881139).}
10
10
  gem.homepage = ""
11
11
 
12
- gem.add_dependency('rspec', '~>2.13.0')
12
+ gem.add_dependency('rspec', '~> 2.13')
13
13
  gem.add_dependency('sourcify', '~> 0.6.0.rc2')
14
- gem.add_dependency('ruby2ruby', '~> 1.3.1')
14
+ gem.add_dependency('ruby2ruby')
15
15
  gem.add_development_dependency('rake')
16
16
 
17
17
  gem.files = `git ls-files`.split($\)
metadata CHANGED
@@ -1,32 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-parameterized
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - tomykaira
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-05-16 00:00:00.000000000 Z
12
+ date: 2013-07-31 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rspec
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
19
- version: 2.13.0
21
+ version: '2.13'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
26
- version: 2.13.0
29
+ version: '2.13'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: sourcify
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ~>
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ~>
39
44
  - !ruby/object:Gem::Version
@@ -41,29 +46,33 @@ dependencies:
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: ruby2ruby
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - ~>
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
- version: 1.3.1
53
+ version: '0'
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - ~>
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
- version: 1.3.1
61
+ version: '0'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: rake
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - '>='
67
+ - - ! '>='
60
68
  - !ruby/object:Gem::Version
61
69
  version: '0'
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - '>='
75
+ - - ! '>='
67
76
  - !ruby/object:Gem::Version
68
77
  version: '0'
69
78
  description: RSpec::Parameterized supports simple parameterized test syntax in rspec.
@@ -87,26 +96,33 @@ files:
87
96
  - spec/spec_helper.rb
88
97
  homepage: ''
89
98
  licenses: []
90
- metadata: {}
91
99
  post_install_message:
92
100
  rdoc_options: []
93
101
  require_paths:
94
102
  - lib
95
103
  required_ruby_version: !ruby/object:Gem::Requirement
104
+ none: false
96
105
  requirements:
97
- - - '>='
106
+ - - ! '>='
98
107
  - !ruby/object:Gem::Version
99
108
  version: '0'
109
+ segments:
110
+ - 0
111
+ hash: 502049199
100
112
  required_rubygems_version: !ruby/object:Gem::Requirement
113
+ none: false
101
114
  requirements:
102
- - - '>='
115
+ - - ! '>='
103
116
  - !ruby/object:Gem::Version
104
117
  version: '0'
118
+ segments:
119
+ - 0
120
+ hash: 502049199
105
121
  requirements: []
106
122
  rubyforge_project:
107
- rubygems_version: 2.0.0
123
+ rubygems_version: 1.8.23
108
124
  signing_key:
109
- specification_version: 4
125
+ specification_version: 3
110
126
  summary: RSpec::Parameterized supports simple parameterized test syntax in rspec.
111
127
  I was inspired by [udzura's mock](https://gist.github.com/1881139).
112
128
  test_files:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 4ab7b8bbfa9c102bc418349aed783387e8927971
4
- data.tar.gz: 66ab2144e307427a5c8d6754ce69c5a6e757d3f5
5
- SHA512:
6
- metadata.gz: 728f056c3577ec3e544584bbdba3744d937ab42ab07d8d32a30bbfc4155e000394ba805bf9701aa08e15670dfe5e1ab9323316048843fd50c93d5e56d7781b7f
7
- data.tar.gz: 5fd5d0946845284e4846e429ee3f5b3261be1c2b72a4f4a45ff3621ed606dda54e6fdfe77734399193a4b701a05e209e53555f6ad5166daddc71146b45314f8e