norr-couchrest 0.30.3 → 0.30.4

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.
@@ -74,7 +74,8 @@ module CouchRest
74
74
  # Auto parse Time objects
75
75
  self[property.name] = if ((property.init_method == 'new') && target == 'Time')
76
76
  # Using custom time parsing method because Ruby's default method is toooo slow
77
- self[key].is_a?(String) ? Time.mktime_with_offset(self[key].dup) : self[key]
77
+ #self[key].is_a?(String) ? Time.mktime_with_offset(self[key].dup) : self[key]
78
+ self[key].is_a?(String) ? Time.parse(self[key].dup) : self[key]
78
79
  else
79
80
  # Let people use :send as a Time parse arg
80
81
  klass = ::CouchRest.constantize(target)
@@ -144,4 +145,4 @@ module CouchRest
144
145
 
145
146
  end
146
147
  end
147
- end
148
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: norr-couchrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.30.3
4
+ version: 0.30.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - J. Chris Anderson