load_data_infile2 0.1.0 → 0.2.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
  SHA1:
3
- metadata.gz: ee78daaa7a49adfaf7bac627fb97de928af9350a
4
- data.tar.gz: 2c99cc602db05c974caabda934219819d11a0ae8
3
+ metadata.gz: ba0f292c77592b2d745b4db05fbbbd8245b17044
4
+ data.tar.gz: 56e2f3d2bbc9ef359af4025dbd0a07b195e927a6
5
5
  SHA512:
6
- metadata.gz: b3e9d44aa682e0b4a2756f1d84d4735a81593b6ea410d6ef68c9c039f394e5a939cabacd38d3eb5609bf904c1fbc34f6f34950bb88adeda750e39f19244841f8
7
- data.tar.gz: e6fd92e7045803cea17d2083347782915864d0168acdedf7a321faf0e1f57732c702a10d6cbf0e1141f409c2cb9f0eda5e474be9ece26b77241a198b77e2d520
6
+ metadata.gz: dd75af4d2246b6d6b116808970e4bad0cfaa374c4a2a5f2d31b50ff312f26e3c8a97714295b2202c65c0e1ffa4068779a9e57f116d814a34e29c9f56c4a107f6
7
+ data.tar.gz: d32e50d8e90dc0a744ba995c2d5933ff7090d9eb2a8d186e42bc100e06e313e3b656064c38c8c29c7248023a918558d9ebca0e12b889f5af76501767d9cdd8c1
data/README.md CHANGED
@@ -1,9 +1,10 @@
1
1
  # LoadDataInfile2
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/load_data_infile2.svg)](https://badge.fury.io/rb/load_data_infile2)
3
4
  [![Build Status](https://travis-ci.org/nalabjp/load_data_infile2.svg?branch=master)](https://travis-ci.org/nalabjp/load_data_infile2)
4
5
  [![Code Climate](https://codeclimate.com/github/nalabjp/load_data_infile2/badges/gpa.svg)](https://codeclimate.com/github/nalabjp/load_data_infile2)
5
6
  [![Test Coverage](https://codeclimate.com/github/nalabjp/load_data_infile2/badges/coverage.svg)](https://codeclimate.com/github/nalabjp/load_data_infile2/coverage)
6
- [![Dependency Status](https://gemnasium.com/nalabjp/load_data_infile2.svg)](https://gemnasium.com/nalabjp/load_data_infile2)
7
+ [![Dependency Status](https://gemnasium.com/badges/github.com/nalabjp/load_data_infile2.svg)](https://gemnasium.com/github.com/nalabjp/load_data_infile2)
7
8
 
8
9
  Import the data at a high speed to the table from a text file, using the [MySQL `LOAD DATA INFILE` statement](http://dev.mysql.com/doc/refman/5.7/en/load-data.html).
9
10
 
@@ -26,7 +26,7 @@ module LoadDataInfile2
26
26
  private
27
27
 
28
28
  def build_sql(file, options = {})
29
- table = options.delete(:table) || File.basename(file, '.*')
29
+ table = options[:table] || File.basename(file, '.*')
30
30
  LoadDataInfile2::Sql.new(file, quoted_table_name_for(table), load_data_infile_options.merge(options)).build
31
31
  end
32
32
  end
@@ -1,3 +1,3 @@
1
1
  module LoadDataInfile2
2
- VERSION = "0.1.0"
2
+ VERSION = '0.2.0'
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.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - nalabjp
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-10 00:00:00.000000000 Z
11
+ date: 2016-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mysql2