type_station 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/type_station/blocks/entity.rb +1 -1
- data/lib/type_station/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: 8517c1c0808ebf53ea40baa0b50097acb7be482b
|
4
|
+
data.tar.gz: a5abb7c09ba8460adddaf86ccc86eba138b162f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06a66c867a009f1c5db143dbf506506448d6a49226d3750c710c5fbac67abbef1991adba23c408134f51686869799730f439ceb7845f2707bd277e83acb2e912
|
7
|
+
data.tar.gz: 7ee01adf91960ebf176767abf0cbd8fc4d607998a64896ea85ba0b8bdd0db5f5e3938bb8b6f080b469145064fc43549f908ec4667ba4783efda78bf4ffd82730
|
@@ -41,7 +41,7 @@ module TypeStation
|
|
41
41
|
def model_values
|
42
42
|
values = options[:fields].map do |field|
|
43
43
|
content = model.get(field[:name])
|
44
|
-
value = content.
|
44
|
+
value = content.respond_to?(:value) ? content.value : content.to_s
|
45
45
|
if value
|
46
46
|
[field[:name], value]
|
47
47
|
else
|
data/lib/type_station/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: type_station
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Adams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|