load_data_infile2 0.2.2 → 0.2.3

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
  SHA1:
3
- metadata.gz: e21ec4314b52fa586bf780d6480fcc4bf5b1c4cd
4
- data.tar.gz: edf8e62f4809a11a4ad50d071986d1c053be6930
3
+ metadata.gz: 539b646ae706101a5d0dd45ef4133c9f4ccebbb4
4
+ data.tar.gz: 1707591917693727363bfc7757c6033dea2a5679
5
5
  SHA512:
6
- metadata.gz: 369bfd4e77b71ae5d0f2bf11c26facf85ee8048180510c2609159c880f7fc520cf519ab9728d39c5b8ee983c419d33fa5ded6ac4286ba190569b896f752dc7db
7
- data.tar.gz: 4fd7a4f163129ba680601f4ec0753f80880ab3a1ae929273cd587c504f3c6395122f67e803902e234fd1be870a44bfd3af4b2a946f163390b495fe2ab99265fc
6
+ metadata.gz: 64478d1ad633673b33021572ff43628ad36f367ec276bf6b9d20298ca024b320ed6c2992309364ba46771d3d396a9ce9a830c809579cefa25805b0ff526284cb
7
+ data.tar.gz: 419aaa5ff05e3ab2cc670ebf9cfc44b2a9474f7f1e77ae8f3b6a6539f35a78bf0f0e97def338258d977ca1cfd63a537b0407059ec870c49c2e5d3b62405d7d02
@@ -6,10 +6,12 @@ module LoadDataInfile2
6
6
  attr_reader :load_data_infile_options
7
7
 
8
8
  def initialize(config, options = {})
9
- if options[:local_infile]
10
- config = config.merge(local_infile: true)
11
- end
12
- super(config)
9
+ c = if options[:local_infile] && !config.has_key?(:local_infile) && !config.has_key?('local_infile')
10
+ config.merge(local_infile: true)
11
+ else
12
+ config
13
+ end
14
+ super(c)
13
15
 
14
16
  @load_data_infile_options = LoadDataInfile2.default_import_options.merge(options)
15
17
  @load_data_infile_options[:charset] = query_options[:charset] unless options.has_key?(:charset)
@@ -1,3 +1,3 @@
1
1
  module LoadDataInfile2
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: load_data_infile2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - nalabjp
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-11 00:00:00.000000000 Z
11
+ date: 2016-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mysql2
@@ -129,4 +129,3 @@ signing_key:
129
129
  specification_version: 4
130
130
  summary: This gem provides MySQL's LOAD DATA INFILE for Mysql2 and ActiveRecord
131
131
  test_files: []
132
- has_rdoc: