hash_validator 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/README.md +5 -5
- data/lib/hash_validator/validators/presence_validator.rb +1 -1
- data/lib/hash_validator/version.rb +1 -1
- data/spec/validators/presence_spec.rb +6 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d01484b5d387d49f0b2dcf62ca144f09fd5e6aa9
|
4
|
+
data.tar.gz: 50de42b9c7bdbc0369b771e40fa08bd08eb24522
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a96a9c75edfbc5818b408f6da927d4ac8bf0d3e833921f269961c55c49070eeaac2b5fe12291f66644b6838c83f6fcbd3493404928f812dcf6496739225747b
|
7
|
+
data.tar.gz: 3b08657aa451d38bcacef3a4bf940e228c5ba534045d486fe9813c5a87ed5ff16e9c31691e4dc3a8e5dca41e815d05c0b6daf0fed0d0d603a6008c9fdea4f3f0
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# Hash Validator
|
2
2
|
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/hash_validator.
|
4
|
-
[![Build Status](https://travis-ci.org/
|
5
|
-
[![Coverage Status](https://coveralls.io/repos/
|
6
|
-
[![Code Climate](https://codeclimate.com/github/JamesBrooks/hash_validator.
|
7
|
-
[![Dependency Status](https://gemnasium.com/
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/hash_validator.svg)](http://badge.fury.io/rb/hash_validator)
|
4
|
+
[![Build Status](https://travis-ci.org/jamesbrooks/hash_validator.svg)](https://travis-ci.org/jamesbrooks/hash_validator)
|
5
|
+
[![Coverage Status](https://coveralls.io/repos/jamesbrooks/hash_validator/badge.svg?branch=master)](https://coveralls.io/r/jamesbrooks/hash_validator)
|
6
|
+
[![Code Climate](https://codeclimate.com/github/JamesBrooks/hash_validator.svg)](https://codeclimate.com/github/JamesBrooks/hash_validator)
|
7
|
+
[![Dependency Status](https://gemnasium.com/jamesbrooks/hash_validator.png)](https://gemnasium.com/jamesbrooks/hash_validator)
|
8
8
|
|
9
9
|
Ruby library to validate hashes (Hash) against user-defined requirements
|
10
10
|
|
@@ -41,5 +41,11 @@ describe HashValidator::Validator::Base do
|
|
41
41
|
expect(errors).not_to be_empty
|
42
42
|
expect(errors).to eq({ key: 'is required' })
|
43
43
|
end
|
44
|
+
|
45
|
+
it 'should validate false with true' do
|
46
|
+
validator.validate(:key, false, {}, errors)
|
47
|
+
|
48
|
+
expect(errors).to be_empty
|
49
|
+
end
|
44
50
|
end
|
45
51
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hash_validator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Brooks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
133
|
version: '0'
|
134
134
|
requirements: []
|
135
135
|
rubyforge_project:
|
136
|
-
rubygems_version: 2.
|
136
|
+
rubygems_version: 2.5.1
|
137
137
|
signing_key:
|
138
138
|
specification_version: 4
|
139
139
|
summary: Ruby library to validate hashes (Hash) against user-defined requirements
|