ethos 0.2.0.beta2 → 0.2.0.beta3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/ethos/attributes.rb +2 -0
- data/lib/ethos/version.rb +1 -1
- data/spec/ethos/attributes.rb +6 -0
- data/spec/ethos/type.rb +5 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ee0d4eb3b806134f48dc44e904f82a3307fa385
|
4
|
+
data.tar.gz: 94331cd4a93fa367f59038c11e4e86812c65f19c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 286ee730bd33ad3efd7ddea9c572252a4e998a9b5558a77ee74e9d78c1fc228e7a6821208ed86d7396b671c656b105fb8b3457bdb7b9c1375a667f2a509cee66
|
7
|
+
data.tar.gz: f26d4be1f6442a052c940edc1c0b0ea22465aab0ef3825f4e3d306c6490a32b3748b335abc121fa4669f7b5cd43d6ed079ad84d292723967a7d95d19e2a38283
|
data/README.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
[![Code Climate Score](http://img.shields.io/codeclimate/github/Erol/ethos.svg?style=flat)](https://codeclimate.com/github/Erol/ethos)
|
2
|
+
[![Test Coverage](https://codeclimate.com/github/Erol/ethos/badges/coverage.svg)](https://codeclimate.com/github/Erol/ethos)
|
2
3
|
|
3
4
|
# Ethos
|
4
5
|
|
data/lib/ethos/attributes.rb
CHANGED
data/lib/ethos/version.rb
CHANGED
data/spec/ethos/attributes.rb
CHANGED
data/spec/ethos/type.rb
CHANGED
@@ -52,15 +52,17 @@ scope '.cast' do
|
|
52
52
|
end
|
53
53
|
|
54
54
|
spec 'casts a value to a Hash' do
|
55
|
-
expected =
|
55
|
+
expected = {a: 1}
|
56
56
|
result = Ethos::Type.cast [:a, 1], Hash
|
57
57
|
|
58
58
|
asserts(result) == expected
|
59
59
|
end
|
60
60
|
|
61
61
|
spec 'casts a value to a Array' do
|
62
|
-
|
63
|
-
|
62
|
+
values = {a: 1, b: 2}
|
63
|
+
|
64
|
+
expected = [[:a, 1], [:b, 2]]
|
65
|
+
result = Ethos::Type.cast values, Array
|
64
66
|
|
65
67
|
asserts(result) == expected
|
66
68
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ethos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0.
|
4
|
+
version: 0.2.0.beta3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erol Fornoles
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|