patriot-mysql2-client 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzBkMTNjMzc0ZGNjNTI2YTljNjdhZDQyZDRiZTZhMDUyZmIzODA2MQ==
4
+ ZmVmOTA0YmI4NmQ1OTM1ZjQ3NmFkMTA1ZDIwMzllOGE5N2M3NmUzOA==
5
5
  data.tar.gz: !binary |-
6
- NzVkMGRkY2E2MDFjZWMxNTk0NDc5ZDU1MDBjZjhmNzNkNDI5MmY3Mg==
6
+ MjNiNzY0NjVkOWU3MDRlZDI4OWQwOGYyZTEwMmM0YmQ0YmNmMjU3ZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTViZWZkNzgwNjUzZjA5MjcyMjA2ZWFlYTBkODMzN2ZhM2E1ZTAwNjA4YThi
10
- ZjdkMGZlMDE4NDBjNTk2MGRlZTExY2M0NTM2ZjAxZjhkMmJlYTRiMWQyYTMx
11
- YzRkN2QwNjk0YmRhOWYxZjlhNjkyNDRjZTUzYjdmNmZlNDczMWE=
9
+ N2Y1ZTQ5MTZkNGIzNmY5NzFhMzEyZWQyYTU1Yzg5NzAyYzc1ZTY0YjdkZTlk
10
+ NjY3NjEwM2ZhYTQ2YjA5NzY3ZDZjMTQ3YjY5Y2FkYTNjMWY3YjI2OGYyNjY1
11
+ YmIxMGY1ZWJjMGRlZWZhODUwYTcxYWRmMzY5M2FkODUwOTFlM2E=
12
12
  data.tar.gz: !binary |-
13
- N2FmNTU4Yzk3NDIzMTYxMDg5MzIzZGUxYjJjOGQzNDg4YTE4Y2E0MTk1MDI5
14
- NTMwNzU3YTRmOGVmYTRiMjFmMjFmZTU3ZGU2ZGFiY2VhNjE2MGZmNTI3YjMx
15
- YmU5MTUzZTY1N2YwYTFhNzlhODQ1MDk5MDU2MjZlNmMzNDM3MzU=
13
+ NjdlNTIyYTgwODFiZTdhMDM4Yzc3YjAzNTI1NGRjMmFjZTI2NWM0NDdjN2Y0
14
+ Zjk5MjNiZmJkMzc3OTRmZWQ5MzI0NTBlNjdkMGFmMWI1ZjliMzM1MzU0MDQ5
15
+ NjI3YzZmZWM1NDkwZDAzNjAxNDBlZmY2YjUyY2I4MzZhMjgwZjU=
@@ -59,7 +59,7 @@ module Patriot
59
59
  # @see Patriot::Util::DBClient::Base#quote
60
60
  def quote(v)
61
61
  return 'NULL' if v.nil?
62
- return "'#{v.to_s}'" if v.is_a?(DateTime)
62
+ return "'#{v.to_s}'" if v.is_a?(DateTime) || v.is_a?(Time)
63
63
  val = (v.is_a?(String) ? "'#{Mysql2::Client.escape(v)}'" : v)
64
64
  return val
65
65
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: patriot-mysql2-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Teruyoshi Zenmyo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-29 00:00:00.000000000 Z
11
+ date: 2015-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mysql2