valor 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/valor.rb +5 -2
- data/lib/valor/version.rb +1 -1
- data/valor.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a070cbd24e4d9bd1cea0bc8c25b81f6a9e6bf067
|
4
|
+
data.tar.gz: 0317944417c8aba37e865ef42c4e3300e7bacf4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbe18f44edd2d14ea24d1350ae1c0144f0cab738b51ad82a4af6f75995950afc3a35fea72279d0ed99418a4bd26dcea6c6e5f742af0e86df60d8978c5af4426a
|
7
|
+
data.tar.gz: 1c2765a1d2bec148483320daee4ec633bfb6a7416b58451c7c6565722b03bd083b6a31dcb0d8f019cdb507af3dcd2fab52a63318437d228ca221fb909e8b950d
|
data/README.md
CHANGED
data/lib/valor.rb
CHANGED
@@ -65,9 +65,12 @@ module Valor
|
|
65
65
|
reduce_hash(value)
|
66
66
|
when value.is_a?(Array)
|
67
67
|
reduce_array(value)
|
68
|
+
when value.is_a?(Fixnum)
|
69
|
+
'Integer'
|
70
|
+
when value.is_a?(TrueClass) || value.is_a?(FalseClass)
|
71
|
+
'Boolean'
|
68
72
|
else
|
69
|
-
|
70
|
-
klass == 'Fixnum' ? 'Integer' : klass # Compensating for the difference of types
|
73
|
+
value.class.to_s
|
71
74
|
end
|
72
75
|
end
|
73
76
|
end
|
data/lib/valor/version.rb
CHANGED
data/valor.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: valor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Weaver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: json
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|