Skip to content

rthbound/super_deduper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SuperDeduper

It's a super deduper.

Gem Version Build Status Code Climate Coverage Status

Installation

Note you will need postgres up and running in your app.

Add this line to your application's Gemfile:

gem 'super_deduper'

And then execute:

$ bundle

Or install it yourself as:

$ gem install super_deduper

Usage

SuperDeduper.new(enum: ["John Doe", "Jane Doe"], class: Person, column: "name")

will tell you if anything matches either

  Person.where("name ilike %John%") # or
  Person.where("name ilike %Doe%")

and return to you either "No matches found" (successful), or a namespaced hash showing what was found for each element passed in with :enum.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

While it is super-deee-duper, it's really more of a pre-create-dupe-checker.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages