databasedotcom 1.2.5 → 1.2.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -499,6 +499,8 @@ module Databasedotcom
499
499
  coerced_attrs[key] = (attrs[key] || []).join(';')
500
500
  when "datetime"
501
501
  coerced_attrs[key] = attrs[key] ? attrs[key].strftime(RUBY_VERSION.match(/^1.8/) ? "%Y-%m-%dT%H:%M:%S.000%z" : "%Y-%m-%dT%H:%M:%S.%L%z") : nil
502
+ when "date"
503
+ coerced_attrs[key] = attrs[key] ? attrs[key].strftime("%Y-%m-%d") : nil
502
504
  else
503
505
  coerced_attrs[key] = attrs[key]
504
506
  end
@@ -343,6 +343,8 @@ module Databasedotcom
343
343
  value_str = "'#{av[1].gsub("'", "\\\\'")}'"
344
344
  when DateTime, Time
345
345
  value_str = av[1].strftime(RUBY_VERSION.match(/^1.8/) ? "%Y-%m-%dT%H:%M:%S.000%z" : "%Y-%m-%dT%H:%M:%S.%L%z").insert(-3, ":")
346
+ when Date
347
+ value_str = av[1].strftime("%Y-%m-%d")
346
348
  else
347
349
  value_str = av[1].to_s
348
350
  end
@@ -1,3 +1,3 @@
1
1
  module Databasedotcom
2
- VERSION = "1.2.5"
2
+ VERSION = "1.2.6"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: databasedotcom
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.2.5
5
+ version: 1.2.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Glenn Gillen, Danny Burkes & Richard Zhao
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-11-11 00:00:00 Z
13
+ date: 2011-12-04 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multipart-post