harukizaemon-stripper 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,7 @@
1
+ == 2.0.3 released 2009-06-13
2
+
3
+ * Add check to see if it's even an ActiveRecord column, and not something that has been duck-typed in (which throws a warning that Object#type has been deprecated). (ealdent)
4
+
1
5
  == 2.0.2 released 2009-01-14
2
6
 
3
7
  * Change package structure.
@@ -6,7 +6,7 @@ module HarukiZaemon::Stripper::ActiveRecord
6
6
 
7
7
  def write_attribute_with_stripper(attr_name, value)
8
8
  column = column_for_attribute(attr_name)
9
- unless column.type == :binary
9
+ unless column && column.type == :binary
10
10
  value = value.strip if value.respond_to?(:strip)
11
11
  value = nil if value.respond_to?(:empty?) && value.empty? && value != column.default
12
12
  end
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "stripper"
3
- s.version = "2.0.2"
4
- s.date = "2009-01-14"
3
+ s.version = "2.0.3"
4
+ s.date = "2009-06-13"
5
5
  s.summary = "Remove leading and trailing blanks from attribute values in your Ruby on Rails models."
6
6
  s.email = "haruki.zaemon@gmail.com"
7
7
  s.homepage = "http://github.com/harukizaemon/stripper"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: harukizaemon-stripper
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Harris
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-14 00:00:00 -08:00
12
+ date: 2009-06-13 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15