├── .gitignore ├── .rspec ├── .travis.yml ├── Gemfile ├── Guardfile ├── MIT-LICENSE ├── README.textile ├── ROADMAP.textile ├── Rakefile ├── attribute_normalizer.gemspec ├── install.rb ├── install.txt ├── lib ├── attribute_normalizer.rb └── attribute_normalizer │ ├── model_inclusions.rb │ ├── normalizers │ ├── blank_normalizer.rb │ ├── boolean_normalizer.rb │ ├── control_chars_normalizer.rb │ ├── phone_normalizer.rb │ ├── squish_normalizer.rb │ ├── strip_normalizer.rb │ └── whitespace_normalizer.rb │ ├── rspec_matcher.rb │ └── version.rb └── spec ├── article_spec.rb ├── attribute_normalizer_spec.rb ├── author_spec.rb ├── book_spec.rb ├── connection_and_schema.rb ├── journal_spec.rb ├── magazine_spec.rb ├── models ├── article.rb ├── author.rb ├── book.rb ├── journal.rb ├── magazine.rb ├── person.rb ├── publisher.rb └── user.rb ├── publisher_spec.rb ├── test_helper.rb └── user_spec.rb /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/.rspec -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/.travis.yml -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/Gemfile -------------------------------------------------------------------------------- /Guardfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/Guardfile -------------------------------------------------------------------------------- /MIT-LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/MIT-LICENSE -------------------------------------------------------------------------------- /README.textile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/README.textile -------------------------------------------------------------------------------- /ROADMAP.textile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/ROADMAP.textile -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/Rakefile -------------------------------------------------------------------------------- /attribute_normalizer.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/attribute_normalizer.gemspec -------------------------------------------------------------------------------- /install.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/install.rb -------------------------------------------------------------------------------- /install.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/install.txt -------------------------------------------------------------------------------- /lib/attribute_normalizer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/lib/attribute_normalizer.rb -------------------------------------------------------------------------------- /lib/attribute_normalizer/model_inclusions.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/lib/attribute_normalizer/model_inclusions.rb -------------------------------------------------------------------------------- /lib/attribute_normalizer/normalizers/blank_normalizer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/lib/attribute_normalizer/normalizers/blank_normalizer.rb -------------------------------------------------------------------------------- /lib/attribute_normalizer/normalizers/boolean_normalizer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/lib/attribute_normalizer/normalizers/boolean_normalizer.rb -------------------------------------------------------------------------------- /lib/attribute_normalizer/normalizers/control_chars_normalizer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/lib/attribute_normalizer/normalizers/control_chars_normalizer.rb -------------------------------------------------------------------------------- /lib/attribute_normalizer/normalizers/phone_normalizer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/lib/attribute_normalizer/normalizers/phone_normalizer.rb -------------------------------------------------------------------------------- /lib/attribute_normalizer/normalizers/squish_normalizer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/lib/attribute_normalizer/normalizers/squish_normalizer.rb -------------------------------------------------------------------------------- /lib/attribute_normalizer/normalizers/strip_normalizer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/lib/attribute_normalizer/normalizers/strip_normalizer.rb -------------------------------------------------------------------------------- /lib/attribute_normalizer/normalizers/whitespace_normalizer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/lib/attribute_normalizer/normalizers/whitespace_normalizer.rb -------------------------------------------------------------------------------- /lib/attribute_normalizer/rspec_matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/lib/attribute_normalizer/rspec_matcher.rb -------------------------------------------------------------------------------- /lib/attribute_normalizer/version.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/lib/attribute_normalizer/version.rb -------------------------------------------------------------------------------- /spec/article_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/spec/article_spec.rb -------------------------------------------------------------------------------- /spec/attribute_normalizer_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/spec/attribute_normalizer_spec.rb -------------------------------------------------------------------------------- /spec/author_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/spec/author_spec.rb -------------------------------------------------------------------------------- /spec/book_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/spec/book_spec.rb -------------------------------------------------------------------------------- /spec/connection_and_schema.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/spec/connection_and_schema.rb -------------------------------------------------------------------------------- /spec/journal_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/spec/journal_spec.rb -------------------------------------------------------------------------------- /spec/magazine_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/spec/magazine_spec.rb -------------------------------------------------------------------------------- /spec/models/article.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/spec/models/article.rb -------------------------------------------------------------------------------- /spec/models/author.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/spec/models/author.rb -------------------------------------------------------------------------------- /spec/models/book.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/spec/models/book.rb -------------------------------------------------------------------------------- /spec/models/journal.rb: -------------------------------------------------------------------------------- 1 | class Journal < ActiveRecord::Base 2 | normalize_attribute :name 3 | end 4 | -------------------------------------------------------------------------------- /spec/models/magazine.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/spec/models/magazine.rb -------------------------------------------------------------------------------- /spec/models/person.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/spec/models/person.rb -------------------------------------------------------------------------------- /spec/models/publisher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/spec/models/publisher.rb -------------------------------------------------------------------------------- /spec/models/user.rb: -------------------------------------------------------------------------------- 1 | class User < Person 2 | normalize_attribute :firstname 3 | end 4 | -------------------------------------------------------------------------------- /spec/publisher_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/spec/publisher_spec.rb -------------------------------------------------------------------------------- /spec/test_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/spec/test_helper.rb -------------------------------------------------------------------------------- /spec/user_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdeering/attribute_normalizer/HEAD/spec/user_spec.rb --------------------------------------------------------------------------------