formwandler 0.4.2 → 0.4.3

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: 6e85c5a1fe287a0e07e79882ef493e895156a2a2
4
- data.tar.gz: 94ce14041763d57041fc021d910baef984d0470b
3
+ metadata.gz: 0bf18f8453a0e5b2149c0043d01ab8aacd447998
4
+ data.tar.gz: ef76a801d507455f276ff640a6262bd3ed3681d8
5
5
  SHA512:
6
- metadata.gz: 59175fe52ce39b89659476d2df790d4354ebb6b457a51fd5cf1249c5f025d3418d2d1319a82cb63864f67ae401ee03239ba58282d89a94ee82c9721be20821ea
7
- data.tar.gz: ad95c92dad090e354d36e6319774bf5a7913df9b6a814d9e9138ff020c27311266d88d420999cc4c12d21b0f22e66b0588ff956624bba9df7882ea89cb26adb7
6
+ metadata.gz: 11d0754bfce6fa07269720723a92ad423de39e9143382eb4427c3e9f931283ac474229cbac2fef1f4039ca5474da659208017d8ac312a77ec3824feed55a8107
7
+ data.tar.gz: 44b880579f95b4498e4fa12e75c5b612d8bbe24e8d345d200c8bd62a4e600b4900c7d87503db4e5e233e0640a019bc3e15cf78adb05aa301b97ec9aed2b64e26
@@ -56,7 +56,7 @@ module Formwandler
56
56
  private
57
57
 
58
58
  def transform_value(value, transformation)
59
- return if value.blank?
59
+ return if value.nil? || value == ''
60
60
  if transformation.respond_to?(:call)
61
61
  form.instance_exec(value, &transformation)
62
62
  else
@@ -1,3 +1,3 @@
1
1
  module Formwandler
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formwandler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Bilharz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-13 00:00:00.000000000 Z
11
+ date: 2017-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails