rspec-virtus 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.rspec +1 -1
- data/README.md +3 -3
- data/lib/rspec-virtus/version.rb +1 -1
- data/rspec-virtus.gemspec +1 -1
- data/spec/spec_helper.rb +1 -2
- metadata +7 -21
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
YzFhNDY4NWJmMWUxNjA1MGM1Y2MxZjlkNDRlZTM2ZDVlNWU5OWY1ZQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NGU3NzZjYTVhYzRmMjU0NzZhZjEyYjNkNDhlYjliNWEyM2VhNDZmMg==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
M2ViNGRiMDUwNWM3YmQzNmU5MjVkMTBiZWU3YzcxMjdmY2E1ZWQ3MzE2MjRm
|
10
|
+
OTlhNGZiNjA4MWM3NTBkYTczMmNlMWExZDAzYmU0ZWQ3N2ZmOGVjNDMyZTc3
|
11
|
+
YWQ4NThiNmM5NTk5NTY0YmJmZGYwYTBhYzg1NjZhMGVlODgzNDg=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NDNlMjVmYjIwZDliMzc4YjRiMjEyNjY4NDc3YTM5M2ViMmY0ZTAxNjc4ODM5
|
14
|
+
NGRhYjQyMDJjMGNkMWIzZDBkNzRlZjliOTIxNTc4ODk2NmE3YzE1ZjJhNjFk
|
15
|
+
MGZmYzQ1ZjAxOThlMjE2OTkxMzdiNmI2NmVlZjMwZTgzZTA0MTQ=
|
data/.rspec
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
--color
|
2
|
-
--
|
2
|
+
--require spec_helper
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Rspec::Virtus [![Build Status](https://travis-ci.org/mikespokefire/rspec-virtus.png?branch=master)](https://travis-ci.org/mikespokefire/rspec-virtus)
|
1
|
+
# Rspec::Virtus [![Build Status](https://travis-ci.org/mikespokefire/rspec-virtus.png?branch=master)](https://travis-ci.org/mikespokefire/rspec-virtus) [![Code Climate](https://codeclimate.com/github/mikespokefire/rspec-virtus.png)](https://codeclimate.com/github/mikespokefire/rspec-virtus)
|
2
2
|
|
3
3
|
Simple RSpec matchers for your Virtus objects
|
4
4
|
|
@@ -23,8 +23,8 @@ Here is a sample Virtus object
|
|
23
23
|
class Post
|
24
24
|
include Virtus
|
25
25
|
attribute :title, String
|
26
|
-
|
27
|
-
|
26
|
+
attribute :body, String
|
27
|
+
attribute :comments, Array[String]
|
28
28
|
end
|
29
29
|
|
30
30
|
And with `rspec-virtus` we can now make simple assertions about these models
|
data/lib/rspec-virtus/version.rb
CHANGED
data/rspec-virtus.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
|
20
|
-
gem.add_dependency "rspec", "
|
20
|
+
gem.add_dependency "rspec", ">= 2.0"
|
21
21
|
gem.add_dependency "virtus", "~> 0.5"
|
22
22
|
|
23
23
|
gem.add_development_dependency "rake", "~> 10.0.0"
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,36 +1,32 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-virtus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Michael Smith
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-08-01 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rspec
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '2.0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ! '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '2.0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: virtus
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -46,7 +41,6 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rake
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -83,33 +76,26 @@ files:
|
|
83
76
|
- spec/spec_helper.rb
|
84
77
|
homepage: https://github.com/mikespokefire/rspec-virtus
|
85
78
|
licenses: []
|
79
|
+
metadata: {}
|
86
80
|
post_install_message:
|
87
81
|
rdoc_options: []
|
88
82
|
require_paths:
|
89
83
|
- lib
|
90
84
|
required_ruby_version: !ruby/object:Gem::Requirement
|
91
|
-
none: false
|
92
85
|
requirements:
|
93
86
|
- - ! '>='
|
94
87
|
- !ruby/object:Gem::Version
|
95
88
|
version: '0'
|
96
|
-
segments:
|
97
|
-
- 0
|
98
|
-
hash: -299707439805697582
|
99
89
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
|
-
none: false
|
101
90
|
requirements:
|
102
91
|
- - ! '>='
|
103
92
|
- !ruby/object:Gem::Version
|
104
93
|
version: '0'
|
105
|
-
segments:
|
106
|
-
- 0
|
107
|
-
hash: -299707439805697582
|
108
94
|
requirements: []
|
109
95
|
rubyforge_project:
|
110
|
-
rubygems_version:
|
96
|
+
rubygems_version: 2.2.2
|
111
97
|
signing_key:
|
112
|
-
specification_version:
|
98
|
+
specification_version: 4
|
113
99
|
summary: Simple RSpec matchers for Virtus objects
|
114
100
|
test_files:
|
115
101
|
- spec/lib/rspec-virtus/matcher_spec.rb
|