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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa4a531d2bdd0606ab8ef9d54301a33a066cda2c
4
- data.tar.gz: 8c10dbdb843d9be5edf3b0c49e7153318fa3cf51
3
+ metadata.gz: 315be8a92a128e8713f45c8773a7febdaab17eb4
4
+ data.tar.gz: a8d49da6fddfa32937d7e3611bd9b47621cdca77
5
5
  SHA512:
6
- metadata.gz: 741420989677a2c37e21bdbbfaf8184c272f10fc68f0ad4590d799a14b12dc8304db2d79a9266e0f81a9525b27b67db8706e40795cb6fa1effe4e951bd2d4023
7
- data.tar.gz: 7fbb7a69ece5555bbbd64eb93931e339500001a855a0f2bdfd78585084dd01a220d8f4a0bceb886bdfaa7ac96288d174d323b9754aa1b16f0733a4b26c2221ad
6
+ metadata.gz: 2dbe05c6283b088121c970ef95139948aed498f45bb587748c3f99042d1557a67f8258f4749a07a84b953d598ac5b2b0ad171e5d7eea8a1f91e63090e66018ee
7
+ data.tar.gz: f4b7ebcb7bd7b24092f645fabe55da3d63dc8741b257ea5fce033575ef00ee42f4b313040c4e4b4f4a5ff6a99fa4cb719df303af9bed656f8da78e1513e7e2e8
@@ -1,3 +1,3 @@
1
1
  class MysqlImport
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
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.0
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-07-31 00:00:00.000000000 Z
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: