load_data_infile2 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/load_data_infile2/client.rb +6 -4
- data/lib/load_data_infile2/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 539b646ae706101a5d0dd45ef4133c9f4ccebbb4
|
|
4
|
+
data.tar.gz: 1707591917693727363bfc7757c6033dea2a5679
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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)
|
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.
|
|
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
|
+
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:
|