Permalink
Commits on Sep 30, 2009
  1. Updated History

    dkubb committed Sep 30, 2009
  2. [dm-is-state_machine] Make sure a Symbol state is coerced into a String

    * Do not rely on dm-core to coerce Symbol into a String, because it's
      default behavior is extremely permissive, and will likely be
      tightened to only coerce specific types.
    dkubb committed Sep 30, 2009
Commits on Sep 24, 2009
  1. [dm-validations] Improved active_model compatibility

    With this change, dm-validations is compatible with
    active_model's requirements regarding the #errors and
    the #valid? method.
    
    The remaining aspects of of active_model compatibility
    are handled inside the dm-active_model plugin.
    snusnu committed Sep 24, 2009
Commits on Sep 22, 2009
  1. [dm-validations] Minor refactoring of auto-validation methods

    * Added gaurd clauses to each auto-validation method cleans up the
      logic and removes some nested conditional code.
    * Always pass the base options into the validation methods so that
      :allow_nil => true is always in effect in auto-validations
    * Changed usage of Hash#has_key? to Hash#key? as a matter of personal
      preference, and consistency with dm-core
    * Renamed infer_numeric_validation_for method to the more correct
      infer_type_validation_for
    * Minor formatting changes
    dkubb committed Sep 22, 2009
Commits on Sep 21, 2009
  1. Bumped version to 0.10.1

    dkubb committed Sep 21, 2009
Commits on Sep 19, 2009
  1. [dm-ar-finders] Removed usage of Resource#loaded_properties from specs

    * Resource#loaded_properties was removed from the API during a refactoring
      of dm-core internals.  It probably won't get exposed in a different
      form, since it is possible to determine which properties are loaded
      using other approaches.  Plus the loaded/unloaded behavior is something
      that happens inside a Resource and probably should not be exposed to
      the outside world.
    dkubb committed Sep 19, 2009
Commits on Sep 16, 2009
  1. Updated History files

    dkubb committed Sep 16, 2009
Commits on Sep 15, 2009
  1. Merge branch 'master' into next

    dkubb committed Sep 15, 2009
  2. Do not validate Float unless precision and scale are explicitly defined

    [#1038 state:resolved]
    dkubb committed Sep 15, 2009
  3. [dm-sweatshop] Rearrange specs so that more of them are run when Pars…

    …eTree is not available
    xaviershay committed with dkubb Sep 15, 2009
  4. [dm-sweatshop] Rearrange specs so that more of them are run when Pars…

    …eTree is not available
    xaviershay committed Sep 15, 2009
Commits on Sep 12, 2009
  1. [dm-more] Added fix for Ruby 1.9 and rcov conflicts

    * Skip requiring rcov if the syntax is invalid
    dkubb committed Sep 12, 2009
  2. [dm-more] Require rubygems in each spec_helper.rb

    * This is a test to fix the CI server and see if it can find dm-core
      within the system path.
    dkubb committed Sep 12, 2009
  3. [dm-serializer] Updated integration specs to handle validations changes

    * dm-validations now skips over extra auto-validation when the value
      is nil to prevent redundant error messages from being raised
    dkubb committed Sep 12, 2009
Commits on Sep 11, 2009
  1. [all] Make dm-more spec task fail if sub-gem specs fail

    Now all specs will still run (rather than aborting on first failure),
    but the exit status of the command will reflect the overall success or
    failure.
    namelessjon committed Sep 11, 2009
  2. [dm-validations] Refactored length validator

    * Removed unecessary usage of Range#max from LengthValidator#call which
      was causing some slowness when the max was large (due to how Range#max
      uses Enumerable#max under the hood)
    * Added YARD docs for all refactored methods
    dkubb committed Sep 11, 2009
Commits on Sep 10, 2009
  1. [dm-validations] Remove redundant error messages when value is nil

    * It is only necessary to return presence error messages when a value
      is nil, not that the length is wrong (because that's obvious), or that
      the format is wrong (also obvious), etc.
    dkubb committed Sep 10, 2009
  2. [dm-more] Fixed broken hoe task file

    * The previous syntax was broken with newer versions of hoe
    dkubb committed Sep 10, 2009
  3. [dm-more] Added dependency for dm-serializer to dm-rest-adapter

    * Removed unecessary require statements from dm-rest-adapter and
      dm-sweatshop.
    * Minor code cleanup in dm-types Rakefile
    dkubb committed Sep 10, 2009
  4. [dm-more] Change the spec runner to require rubygems automatically

    * Removed usage of rubygems from each Rakefile.  It is automatically
      included by the rake command, so including it in each Rakefile is
      redundant.
    * Updated the shared hoe task file to require hoe ~>2.3.3
    * Fixed broken require line in ferret adapter
    dkubb committed Sep 10, 2009
Commits on Sep 9, 2009
  1. [all] Trying hard to please the CI gods

    Previously export RUBYOPT=-Ispec was masking the
    fact that "lib" and "spec" dirs weren't added to
    rspec's loadpath. This caused rake spec to fail
    when RUBYOPT=-Ispec wasn't set
    snusnu committed Sep 9, 2009
  2. [all] Improved rubygems citizenship

    Removed a lot of the complexity in specifying
    require paths and which specs to run, relying
    on defaults and not assuming rubygems as much as
    is practical.
    
    It's still possible to either run 'rake spec' or
    run the 'spec' command on individual files. If
    you want to run specs for individual files, you
    will need to do something to the effect of:
    
      export RUBYOPT=-Ispec
    
    Also, when running from a typical dev setup
    (dm-core and dm-more are in the same folder),
    specs will pick up the local version of dm-core
    instead of the gem version. This also happens
    for dm-more plugin specs that depend on other
    dm-more plugins.
    snusnu committed Sep 7, 2009
Commits on Sep 7, 2009
  1. [all] Don't use Hoe's spec task to avoid running specs twice

    Also, avoid hoe deprecation warnings by using Hoe.spec instead
    of Hoe.new
    namelessjon committed with snusnu Sep 4, 2009
Commits on Sep 3, 2009
  1. Merge branch 'next'

    dkubb committed Sep 3, 2009