mysql2-cs-bind 0.0.7 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55ec5a580710a7b43264267b1dbeafaa09960f42637b2342603cd8940fc02792
4
- data.tar.gz: 8019c547da9eaaf11f89bda94ca2adc6a824d3238cee4cb315d7b940c2b55581
3
+ metadata.gz: 4407a9571990644923605f3e94e689cfa2f58a2b0ae65751df47fe504c9f87cc
4
+ data.tar.gz: 9e7f64a7e17c636b9da92d3a8849468b35519b7bf301bcda722e7664b0f39346
5
5
  SHA512:
6
- metadata.gz: e18f71240d20a93a48154950b53e1ba3035f744545972d46eb6833435c3a52f5360e3449f39b01a21ae610fb03482f73ec0e601c1b2b0489c3d9c664a0e71351
7
- data.tar.gz: 13df7872ed377ef38ba22a7a51473e44fe1b3db4cbd6d5ba0976e66a14d51b56311e5f5ec5251fa67079c3762684f3f2c24a8a14f9ddb7e5475ab7241c561920
6
+ metadata.gz: 1635039201253b1d8b48251fef0e5acf02ea4ac8e379af39bf417b0f1ab83f1b9f2cfe4d5587006e3c8ca5b8dd817e19978698182778e45865ae620d02f8d7f4
7
+ data.tar.gz: 1dfec3139736b9de9d6bb61a76a53fcf72f2909ea16f79c6620d99ad55de045288cc6557cf04c70ecd6e48a662a4cc5154e74dd31e6cd0ab86992ba921619707
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'mysql2'
2
4
 
3
5
  class Mysql2::Client
@@ -48,9 +50,9 @@ class Mysql2::Client
48
50
  elsif rawvalue == false
49
51
  'FALSE'
50
52
  elsif rawvalue.respond_to?(:strftime)
51
- "'" + rawvalue.strftime('%Y-%m-%d %H:%M:%S') + "'"
53
+ "'#{rawvalue.strftime('%Y-%m-%d %H:%M:%S')}'"
52
54
  else
53
- "'" + Mysql2::Client.escape(rawvalue.to_s) + "'"
55
+ "'#{Mysql2::Client.escape(rawvalue.to_s)}'"
54
56
  end
55
57
  end
56
58
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "mysql2-cs-bind"
5
- gem.version = "0.0.7"
5
+ gem.version = "0.1.0"
6
6
  gem.authors = ["TAGOMORI Satoshi"]
7
7
  gem.email = ["tagomoris@gmail.com"]
8
8
  gem.homepage = "https://github.com/tagomoris/mysql2-cs-bind"
@@ -14,7 +14,9 @@ Gem::Specification.new do |gem|
14
14
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
15
15
  gem.require_paths = ["lib"]
16
16
 
17
- gem.add_runtime_dependency "mysql2"
17
+ gem.required_ruby_version = ">= 2.0.0"
18
+
19
+ gem.add_runtime_dependency "mysql2"
18
20
 
19
21
  # tests
20
22
  gem.add_development_dependency 'eventmachine'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mysql2-cs-bind
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TAGOMORI Satoshi
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-07 00:00:00.000000000 Z
11
+ date: 2020-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mysql2
@@ -102,7 +102,7 @@ files:
102
102
  homepage: https://github.com/tagomoris/mysql2-cs-bind
103
103
  licenses: []
104
104
  metadata: {}
105
- post_install_message:
105
+ post_install_message:
106
106
  rdoc_options: []
107
107
  require_paths:
108
108
  - lib
@@ -110,16 +110,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
110
110
  requirements:
111
111
  - - ">="
112
112
  - !ruby/object:Gem::Version
113
- version: '0'
113
+ version: 2.0.0
114
114
  required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  requirements:
116
116
  - - ">="
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  requirements: []
120
- rubyforge_project:
121
- rubygems_version: 2.7.6
122
- signing_key:
120
+ rubygems_version: 3.1.2
121
+ signing_key:
123
122
  specification_version: 4
124
123
  summary: extension for mysql2 to add client-side variable binding
125
124
  test_files: