attrio 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/attrio/types/array.rb +2 -2
- data/lib/attrio/types/integer.rb +1 -1
- data/lib/attrio/version.rb +1 -1
- 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: 82e6aa7dc69c239169c91a04fc181cc98122d07d
|
4
|
+
data.tar.gz: 5e82a61c7f4c9eadf0a410beb5f69df2c91739c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62ed6efe9a4c52eb897e0327fd38af6f737f447607348faf4cee5a38a454f0e0fd58b23f5104b279d37f1935701d09d0026045c48573351f0d89e4044bf17d4f
|
7
|
+
data.tar.gz: f0d3dfade7af51b4c0094f3f3fca5eb5d5d6f4b1b97ee14f8c44a6ed683e2f209b14cfb16324d60b554540e29dee889b9560b7581f560011d5b0377694c77f3f
|
data/lib/attrio/types/array.rb
CHANGED
@@ -13,7 +13,7 @@ module Attrio
|
|
13
13
|
|
14
14
|
array.map! do |item|
|
15
15
|
if type.respond_to?(:typecast) && type.respond_to?(:typecasted?)
|
16
|
-
type.typecasted?(item) ? item : type.typecast(
|
16
|
+
type.typecasted?(item) ? item : type.typecast(item, options)
|
17
17
|
else
|
18
18
|
type == Hash && item.is_a?(Hash) ? value : type.new(item)
|
19
19
|
end
|
@@ -39,7 +39,7 @@ module Attrio
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def self.element_options(element)
|
42
|
-
element[:options]
|
42
|
+
element[:options] || {}
|
43
43
|
rescue
|
44
44
|
{}
|
45
45
|
end
|
data/lib/attrio/types/integer.rb
CHANGED
data/lib/attrio/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: attrio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Alexandrov
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
12
|
+
date: 2013-08-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|