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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96db4305583689ec5912016b3bc02e858962aab1
4
- data.tar.gz: bdf4d28fcc0e239c4114bfc4af976fbb4d32b08b
3
+ metadata.gz: 8517c1c0808ebf53ea40baa0b50097acb7be482b
4
+ data.tar.gz: a5abb7c09ba8460adddaf86ccc86eba138b162f9
5
5
  SHA512:
6
- metadata.gz: 380fb6abb6daba2b3166e360e2b523e2c4ed8ef1997faba88df4f20ea975eb743c4e21166e2583f05a856182a41307f7c205ae11676a899d29f07feba65eea8c
7
- data.tar.gz: 5ab548978355111361fd212fb66a12544f41cbab39e879cebbd43bcc1874435bcef8c9cc42984fa6fe556d400ef59243506da8b1aa44c4412d75ae4c4789a600
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.is_a?(String) || content.is_a?(Symbol) || content.is_a?(Array) ? content.to_s : content.try(:value)
44
+ value = content.respond_to?(:value) ? content.value : content.to_s
45
45
  if value
46
46
  [field[:name], value]
47
47
  else
@@ -2,7 +2,7 @@ module TypeStation
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 1
5
+ TINY = 2
6
6
  PRE = nil
7
7
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
8
8
  end
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.1
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-10-01 00:00:00.000000000 Z
11
+ date: 2015-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails