fullname-matcher 1.0.0

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.
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ coverage
6
+ InstalledFiles
7
+ lib/bundler/man
8
+ pkg
9
+ rdoc
10
+ spec/reports
11
+ test/tmp
12
+ test/version_tmp
13
+ tmp
14
+
15
+ # YARD artifacts
16
+ .yardoc
17
+ _yardoc
18
+ doc/
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source :rubygems
2
+ gemspec
3
+
data/README.md ADDED
@@ -0,0 +1,16 @@
1
+ fullname_matcher
2
+ ================
3
+
4
+ Provide fullname, search in database with proper conditions
5
+
6
+ Usage
7
+ ================
8
+
9
+ require 'fullname/matcher'
10
+
11
+ matcher = Fullname::Matcher.create(User, :first => 'firstname', :middle => 'middlename', :last => 'lastname', :suffix => 'suffix') do |m|
12
+ m.set_condition "data_import_key = '2013.01.01'"
13
+ m.match_fullname('Xiaohui, Zhang') # match fullname string in block
14
+ end
15
+
16
+ matcher.match_fullname('Zhang', nil, 'Xiaohui', nil) # match parsed fullname out of block
@@ -0,0 +1,17 @@
1
+ $:.unshift File.expand_path("../lib", __FILE__)
2
+ require 'fullname/matcher/version'
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = 'fullname-matcher'
6
+ s.version = Fullname::Matcher::VERSION
7
+ s.platform = Gem::Platform::RUBY
8
+ s.authors = ["xiaohui"]
9
+ s.email = ['wesley@zhangxh.net']
10
+ s.summary = "Match fullname in database"
11
+ s.description = "Provide fullname, search in database with proper conditions"
12
+ s.homepage = 'https://github.com/xiaohui-zhangxh/fullname-matcher'
13
+
14
+ s.files = `git ls-files`.split("\n")
15
+ s.require_path = 'lib'
16
+ s.add_runtime_dependency(%q<fullname-parser>, ["~> 1.0.0"])
17
+ end