mysql_import 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mysql_import/version.rb +1 -1
- data/lib/mysql_import.rb +3 -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: 315be8a92a128e8713f45c8773a7febdaab17eb4
|
4
|
+
data.tar.gz: a8d49da6fddfa32937d7e3611bd9b47621cdca77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2dbe05c6283b088121c970ef95139948aed498f45bb587748c3f99042d1557a67f8258f4749a07a84b953d598ac5b2b0ad171e5d7eea8a1f91e63090e66018ee
|
7
|
+
data.tar.gz: f4b7ebcb7bd7b24092f645fabe55da3d63dc8741b257ea5fce033575ef00ee42f4b313040c4e4b4f4a5ff6a99fa4cb719df303af9bed656f8da78e1513e7e2e8
|
data/lib/mysql_import/version.rb
CHANGED
data/lib/mysql_import.rb
CHANGED
@@ -32,7 +32,9 @@ class MysqlImport
|
|
32
32
|
def filtered_list(filters)
|
33
33
|
return @stash if filters.empty?
|
34
34
|
|
35
|
-
regexps = filters.map{|f| Regexp.new(f) }
|
35
|
+
regexps = filters.map{|f| Regexp.new(f) if f.is_a?(String) }.compact
|
36
|
+
return @stash if regexps.empty?
|
37
|
+
|
36
38
|
@stash.map{|row| row if regexps.any?{|r| r.match(row[0]) } }.compact
|
37
39
|
end
|
38
40
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mysql_import
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nalabjp
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: load_data_infile2
|
@@ -139,4 +139,3 @@ signing_key:
|
|
139
139
|
specification_version: 4
|
140
140
|
summary: Simple concurrent importer for MySQL
|
141
141
|
test_files: []
|
142
|
-
has_rdoc:
|