kharon 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/validator.rb +1 -1
- metadata +11 -7
- checksums.yaml +0 -7
data/lib/validator.rb
CHANGED
@@ -76,7 +76,7 @@ module Charon
|
|
76
76
|
# @param [Object] key the key about which verify the type.
|
77
77
|
# @param [Hash] options a hash of options passed to this method (see documentation to know which options pass).
|
78
78
|
def hash(key, options = {})
|
79
|
-
is_typed?(key, Hash) ? store(key, ->(item){item
|
79
|
+
is_typed?(key, Hash) ? store(key, ->(item){Hash.try_convert(item)}, options) : raise_type_error(key, "Hash")
|
80
80
|
end
|
81
81
|
|
82
82
|
# Checks if the given key is a boolean or not.
|
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kharon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Vincent Courtois
|
@@ -13,6 +14,7 @@ dependencies:
|
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: aquarium
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
19
|
- - '='
|
18
20
|
- !ruby/object:Gem::Version
|
@@ -20,6 +22,7 @@ dependencies:
|
|
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
|
@@ -38,26 +41,27 @@ files:
|
|
38
41
|
homepage: https://rubygems.org/gems/kharon
|
39
42
|
licenses:
|
40
43
|
- Apache License 2
|
41
|
-
metadata: {}
|
42
44
|
post_install_message:
|
43
45
|
rdoc_options: []
|
44
46
|
require_paths:
|
45
47
|
- lib
|
46
48
|
required_ruby_version: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
47
50
|
requirements:
|
48
|
-
- -
|
51
|
+
- - ! '>='
|
49
52
|
- !ruby/object:Gem::Version
|
50
|
-
version:
|
53
|
+
version: 1.9.3
|
51
54
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
52
56
|
requirements:
|
53
|
-
- -
|
57
|
+
- - ! '>='
|
54
58
|
- !ruby/object:Gem::Version
|
55
59
|
version: '0'
|
56
60
|
requirements: []
|
57
61
|
rubyforge_project:
|
58
|
-
rubygems_version:
|
62
|
+
rubygems_version: 1.8.23
|
59
63
|
signing_key:
|
60
|
-
specification_version:
|
64
|
+
specification_version: 3
|
61
65
|
summary: Ruby Hash validator
|
62
66
|
test_files:
|
63
67
|
- spec/spec_helper.rb
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: c25325fecde2ed9bb57cc60983980dba2b50f700
|
4
|
-
data.tar.gz: 46a7a17a5075d66e9552eb083d8428edb428147f
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 9e5ed5dc943275d41234da3c1c36507968b11df77dd0403e2553b2362a6959561990231cc155b0d572f586fffffc2c1265b0a67eb623957fb4b6c8c3296bdc5b
|
7
|
-
data.tar.gz: c6a47f792e0644c6bae66269352d167c4b770f043a133e5481dacd6a8ce1eebe02390abbe7606315645bda4f2f629fbcc64c4dad7f01ea036c30b2f73a432083
|