databasedotcom 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -498,7 +498,7 @@ module Databasedotcom
498
498
  when "multipicklist"
499
499
  coerced_attrs[key] = (attrs[key] || []).join(';')
500
500
  when "datetime"
501
- coerced_attrs[key] = attrs[key] ? attrs[key].strftime("%Y-%m-%dT%H:%M:%S.%L%z") : nil
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
502
  else
503
503
  coerced_attrs[key] = attrs[key]
504
504
  end
@@ -342,7 +342,7 @@ module Databasedotcom
342
342
  when String
343
343
  value_str = "'#{av[1].gsub("'", "\\\\'")}'"
344
344
  when DateTime, Time
345
- value_str = av[1].strftime("%Y-%m-%dT%H:%M:%S.%L%z").insert(-3, ":")
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
346
  else
347
347
  value_str = av[1].to_s
348
348
  end
@@ -1,3 +1,3 @@
1
1
  module Databasedotcom
2
- VERSION = "1.2.4"
2
+ VERSION = "1.2.5"
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.4
5
+ version: 1.2.5
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-10 00:00:00 Z
13
+ date: 2011-11-11 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multipart-post