fullname-matcher 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6d722c0b9bf4e221ef34f5d24a2abaa17ceac620
4
+ data.tar.gz: 9ce446cb0275f92c49e63e928499d36d02cf51db
5
+ SHA512:
6
+ metadata.gz: bd444d10af40b193d02bc3869ccadb5c7c30728cc95f288c9e83671406835ccd4bca74bb40411c87aae2939c7aebd48d1d869ced2160f4ecf4f4822a479346d4
7
+ data.tar.gz: 211d2bd356e059bec529df5c3079cfa64a815a92d2a6a028761bd3710b3b2621b80b1fdf48cd256bcadc478ad1cf1b4d9367551c2fa895ff8bc2a14e6e435f54
@@ -162,7 +162,7 @@ module Fullname::Matcher
162
162
  queries << name[:first][0].chr + '.'
163
163
  end
164
164
  queries[0] = conditions.join(' AND ')
165
- matched_list = @table.all(:conditions => queries)
165
+ matched_list = @table.where(queries).to_a
166
166
  matched_list.delete_if{|r| r.send(@mapping[:first]) !~ firstname_filter} if firstname_filter
167
167
 
168
168
  unless @options[:skip_match_suffix]
@@ -1,5 +1,5 @@
1
1
  module Fullname
2
2
  module Matcher
3
- VERSION = '1.0.8'
3
+ VERSION = '1.0.9'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fullname-matcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
5
- prerelease:
4
+ version: 1.0.9
6
5
  platform: ruby
7
6
  authors:
8
7
  - xiaohui
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-10-24 00:00:00.000000000 Z
11
+ date: 2014-09-17 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: fullname-parser
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 1.0.3
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: 1.0.3
30
27
  description: Provide fullname, search in database with proper conditions
@@ -45,27 +42,25 @@ files:
45
42
  - lib/fullname/matcher/version.rb
46
43
  homepage: https://github.com/xiaohui-zhangxh/fullname-matcher
47
44
  licenses: []
45
+ metadata: {}
48
46
  post_install_message:
49
47
  rdoc_options: []
50
48
  require_paths:
51
49
  - lib
52
50
  required_ruby_version: !ruby/object:Gem::Requirement
53
- none: false
54
51
  requirements:
55
- - - ! '>='
52
+ - - '>='
56
53
  - !ruby/object:Gem::Version
57
54
  version: '0'
58
55
  required_rubygems_version: !ruby/object:Gem::Requirement
59
- none: false
60
56
  requirements:
61
- - - ! '>='
57
+ - - '>='
62
58
  - !ruby/object:Gem::Version
63
59
  version: '0'
64
60
  requirements: []
65
61
  rubyforge_project:
66
- rubygems_version: 1.8.25
62
+ rubygems_version: 2.2.2
67
63
  signing_key:
68
- specification_version: 3
64
+ specification_version: 4
69
65
  summary: Match fullname in database
70
66
  test_files: []
71
- has_rdoc: