attr_cleaner 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ module AttrCleaner
8
8
  end
9
9
 
10
10
  def write_attribute_with_cleaner(attr_name, value)
11
- if attr_cleaners.include?(attr_name.to_sym) && value.is_a?(String)
11
+ if Array(attr_cleaners).include?(attr_name.to_sym) && value.is_a?(String)
12
12
  value = value.strip
13
13
  value = nil if value.empty?
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module AttrCleaner
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 3
9
- version: 0.0.3
8
+ - 4
9
+ version: 0.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Thomas Drake-Brockman
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-30 00:00:00 +08:00
17
+ date: 2010-12-31 00:00:00 +08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency