roda-component 0.1.18 → 0.1.19

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: 5adcbdffd9a69ae90810e945c39692c7b1a21c7f
4
- data.tar.gz: 6e3c8b53a75ba2ef5cb47e74a3beb4a7054876e3
3
+ metadata.gz: 66723e0404166c9f7164960ab737e3c6f4b90fa9
4
+ data.tar.gz: ff7525825b5879547063169799e716da534af47a
5
5
  SHA512:
6
- metadata.gz: c421253385cc606445f7062c74e7bd7234bb40131a838cd27ca583eba85868fd52a8f071f45a16c828a5586caeefea9c8b2fc97477a4f9e3f3e38418e08558a1
7
- data.tar.gz: d7984354ed23c325c92f32e0ddd29dfea396813f33ed205acfe691fab95e8bb7fd6e5ad7ba747eef7f8df12d04be26b41906bb87d948f9ac573c96510b64c205
6
+ metadata.gz: 7fef4da2dac5d2e5eda3994ba3fb8972ca0c702c58aa9bdecfe94fc202dbb109168480454883976f8f113dccba05beb635f8cb3bbae35e173d1210698e15b19e
7
+ data.tar.gz: d317c8b92f8b10d21dbed7dd82d311911b256db603c4eddd9d7da8ba6a431406640422ba3dae3453f010afd236a7fa23296433b1d416ff74f86c80bd099eb222
@@ -370,7 +370,7 @@ class Roda
370
370
 
371
371
  field.each_with_index do |f, i|
372
372
  # might not have the parent object
373
- unless !value.empty?
373
+ if (value.respond_to?('empty?') ? value.empty? : !value.present?)
374
374
  value = ''
375
375
  next
376
376
  end
@@ -1,5 +1,5 @@
1
1
  class Roda
2
2
  class Component
3
- VERSION = "0.1.18"
3
+ VERSION = "0.1.19"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roda-component
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-27 00:00:00.000000000 Z
11
+ date: 2015-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal