Permalink
Switch branches/tags
Commits on Dec 24, 2017
  1. Bump version to v1.3.0

    rubiety committed Dec 24, 2017
Commits on Dec 23, 2017
  1. Merge branch 'use_columns_instead_of_content_columns' of https://gith…

    rubiety committed Dec 23, 2017
    …ub.com/brendancarney/nilify_blanks into brendancarney-use_columns_instead_of_content_columns
  2. Merge pull request #34 from Throne3d/fix/add-default-type-citext

    rubiety committed Dec 23, 2017
    Add citext to the list of default column types
Commits on Sep 8, 2017
  1. Add citext to the list of default column types

    Throne3d committed Sep 8, 2017
    As part of Rails 4.2, citext columns in PostgreSQL databases are
    recognized as a type distinct from `:text` and `:string` – `:citext` –
    when previously they were an unrecognized type and hence treated as
    `:string`s.
    
    Since these columns are a textual type, and so can evaluate to blank,
    they should be in the default column types so they are not missed when
    using `nilify_blanks` on a model with citext columns.
Commits on Sep 7, 2017
  1. Use .columns instead of .content_columns

    brendancarney committed Sep 7, 2017
    A couple reasons for this change:
      1) A column like `tax_id` of type `text` would be ignored by
         default, even though it would be a user inputted text field.
      2) Non integer foreign key columns should be nilified if blank.
         If I have a `blog_id` of type `text`, and the input supplies
         an empty string, it should be nilified.
Commits on Oct 6, 2016
  1. Merge pull request #32 from henrik/patch-1

    rubiety committed Oct 6, 2016
    README: Explain NOT NULL handling
  2. README: Explain NOT NULL handling

    henrik committed Oct 6, 2016
    Refs #31.
Commits on Apr 8, 2016
  1. Merge pull request #30 from MaxMillington/master

    rubiety committed Apr 8, 2016
    change .empty? in readme to .blank? since this is what the gem does. …
  2. change .empty? in readme to .blank? since this is what the gem does. …

    Max Millington
    Max Millington committed Apr 8, 2016
    …E.G .blank? on a string filled with spaces will return true but .empty? will return false.
Commits on Sep 30, 2015
  1. Merge pull request #26 from zeke/patch-1

    rubiety committed Sep 30, 2015
    typo
  2. typo

    zeke committed Sep 30, 2015
    👋
Commits on Sep 22, 2015
  1. Merge pull request #25 from reiz/patch-1

    rubiety committed Sep 22, 2015
    Add MIT license to the gemspec.
Commits on Sep 21, 2015
Commits on Apr 12, 2015
Commits on Jan 24, 2015
Commits on Jan 4, 2015
  1. Drop support for ruby 1.8.7, 1.9.2, bump version to 1.2.0, up-to-date…

    rubiety committed Jan 4, 2015
    … appraisal/dependencies
  2. Merge pull request #20 from todd/update_matcher_syntax

    rubiety committed Jan 4, 2015
    Use Non-deprecated Failure Message Methods for RSpec 3+
Commits on Dec 25, 2014
Commits on Jul 4, 2014
  1. Implement global use by hooking on to inherited, can now do ActiveRec…

    rubiety committed Jul 4, 2014
    …ord::Base.nilify_blanks (or namespaced base classes) [Issue #12]
Commits on Jul 3, 2014
  1. Only consider text, string columns by default, but allow configuratio…

    rubiety committed Jul 3, 2014
    …n via options[:types] [Issue #11]
  2. Make define_nilify_blank_methods thread-safe, just like underlying ra…

    rubiety committed Jul 3, 2014
    …ils define_attribute_methods [Fixes #15]
  3. Expand rspec matchers with option matching and new all-columns matche…

    rubiety committed Jul 3, 2014
    …r: it { should nilify_blanks } [Issue #10]
  4. Add simple rspec matcher through 'nilify_blanks/matchers': it { shoul…

    rubiety committed Jul 3, 2014
    …d nilify_blanks_for(:name) } [Issue #10]
Commits on Jun 7, 2014