rspec-virtus 0.2.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Njk5ZjMyYzY2MzgwMjkzMjAyNmI1OTFjYjE4ZGEyZWY4ZDA4OTJiNw==
4
+ NjEwNTExZTJkYTFkNGM1MjhiNGNjZDA2YzNiOGE3NjM1NGQwMWU3Mw==
5
5
  data.tar.gz: !binary |-
6
- MDEzZWRlMmQxNTlhNzNhZGRhMjNiODc0YzViOTk4MjQ0ZjY4ZmVlYg==
6
+ MjljYmQzOWMyNDJiZGIyYTJjMTRjMDVmODUyNWNmZmNjMzYxZTI2Zg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YWY1MDVlOWNmOWVmYzIwOTFkYjBjYTY1MDVmMTIyODgzMDYwY2UwMTFjODYy
10
- MjQwNjc4NTA1ZDc4OTQxNmYwNjcxZDE1NGFkZmNmNjZmNjhlMGRkN2ZlMjdj
11
- NmViNGE5OTk0YWVjNGQ0OTM0ZGVkMDUwOTY4MTI1ODg2ODk0YjY=
9
+ NTQ4NjlkMjIyYzk3NjkyMzM4ZGUwZjU1YjJmMTMyNWUzMGQ3YzljMzc1MTc4
10
+ N2FlMTZhNzI0ZGM0MjI0ODMwY2FjYTI5NmY3NmUxYTAyYzRlMzc3ZmRkODM0
11
+ NDhkN2NjNWE0N2E5MWE5MjE2ZDNjMGU2MGMzZWQ0YzY4MTNmMmE=
12
12
  data.tar.gz: !binary |-
13
- Nzg0OGUxNTlmNWFiNGNmZmFiNzdjY2I0OTE3Nzk4ZWRjNzhjMzAxMzM4ZWI3
14
- NTc3Y2EwODQ3NzQ2N2U4NjRlZmVlZWE2ZGI4ZmM4ZGNiOTg3MjBjOTc2YTIy
15
- Zjc5NDU3N2ZhNWYxMDk5ZjMxMjgwYTk0NDUzOTc4MWViYjE1ZDY=
13
+ YmRjNzlhMzA5NjA2NzczNjQ1ZjU3Zjk0OTYzMmMyYjU0MDBmMzM1YjRkMThh
14
+ MmY0MmMzYjMyYWI5NWM1ZTUyOTA5NzU1NGM1MTYwNDY4ZTY4MDA2NDMyMjQz
15
+ OWMzMmQ0YjhmZDI1NmFlMDdkNWJkNjk1MTYxY2RlNDA1YjI1ZjI=
data/README.md CHANGED
@@ -57,5 +57,5 @@ And with `rspec-virtus` we can now make simple assertions about these models
57
57
 
58
58
  ## Changelog
59
59
 
60
- - Version 0.2.0
61
- - Upgrade to RSpec 3.0
60
+ - Version 1.0.0
61
+ - Upgrade syntax to work with Virtus 1.0.x
@@ -32,11 +32,11 @@ module RSpec
32
32
  end
33
33
 
34
34
  def member_type
35
- attribute.options[:member_type]
35
+ attribute.member_type.primitive
36
36
  end
37
37
 
38
38
  def attribute_type
39
- attribute.options[:primitive]
39
+ attribute.primitive
40
40
  end
41
41
 
42
42
  def attribute_exists?
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module Virtus
3
- VERSION = "0.2.0"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
data/rspec-virtus.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
18
18
  gem.require_paths = ["lib"]
19
19
 
20
20
  gem.add_dependency "rspec", ">= 3.0"
21
- gem.add_dependency "virtus", "~> 0.5"
21
+ gem.add_dependency "virtus", ">= 1.0"
22
22
 
23
23
  gem.add_development_dependency "rake", "~> 10.0.0"
24
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-virtus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Smith
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: virtus
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
- version: '0.5'
33
+ version: '1.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
- version: '0.5'
40
+ version: '1.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement