Permalink
Commits on Jul 15, 2015
  1. Version bump to 3.0.1

    Derek Lindahl committed Jul 15, 2015
  2. Update required ruby version to 2.0

    Frenetic now uses keyword arguments which are only available in Ruby 2.
    Derek Lindahl committed Jul 15, 2015
  3. Version bump to 3.0

    Derek Lindahl committed Jul 15, 2015
  4. Refactor out Structured mixin in favor of a OO-approach

    Derek Lindahl committed Jul 13, 2015
  5. Update rspec

    Derek Lindahl committed Jul 13, 2015
  6. Refactor resource attribute processing

    The names "@attrs" and "@params" were confusing. This attempts to
    clarify the intention between the two variables by renaming them to
    "@known_attributes" and "@raw_attributes" respectively.
    Derek Lindahl committed Jul 9, 2015
  7. Add related resource retrieval

    This provides an instance method-based API to retrieving non-embedded
    related resources.
    Derek Lindahl committed Jul 7, 2015
Commits on Jul 9, 2015
  1. Always ensure a return value from #links

    Derek Lindahl committed Jul 7, 2015
Commits on Apr 28, 2015
  1. Version bump to 2.0.0

    Derek Lindahl committed Apr 28, 2015
  2. Support custom attributes for Resource.all requests

    Some APIs require certain parameters in order to return "all" resources.
    This adds support for that case.
    Derek Lindahl committed Apr 28, 2015
  3. Add persistence via Resource#save

    Hardcoded to POST right now. Should look for :method in the
    schema/resource links but it can wait for now.
    Derek Lindahl committed Apr 28, 2015
  4. Fix linting errors

    Derek Lindahl committed Apr 15, 2015
Commits on Apr 7, 2015
  1. Uncomment accidentally commented-out tests

    Derek Lindahl committed Apr 7, 2015
  2. Add default test tasks

    Derek Lindahl committed Apr 6, 2015
  3. Fix some linting errors

    Derek Lindahl committed Apr 6, 2015
Commits on Apr 6, 2015
  1. Fix case statement indentation

    Derek Lindahl committed Apr 6, 2015
  2. Remove literal true from conditional

    Derek Lindahl committed Apr 6, 2015
  3. Remove multi-line chains of blocks

    Derek Lindahl committed Apr 6, 2015
  4. Add alternate string identifier support for Resource.find

    This allows the usage of non-Fixnum unique identifiers for GETs for a
    specific resource as long as a matching _link is defined in the Api
    Schema.
    Derek Lindahl committed Apr 6, 2015
  5. Add .find_by! and .find_by methods to Resource

    Derek Lindahl committed Apr 4, 2015
  6. Add naive type casting for mock resources

    Derek Lindahl committed Apr 4, 2015
  7. Add better error handling to .find

    * Offers better ActiveRecord-like errors when trying to call .find with
      either no params, or an empty params hash
    
    * Raises an explicit ResourceNotFound error when a 404 is returned,
      regardless of whether or not the response was parseable.
    Derek Lindahl committed Apr 4, 2015
Commits on Apr 4, 2015
  1. Fix typo in spec name

    Derek Lindahl committed Apr 4, 2015
  2. Add :to_json as delegated method to @param for resource mocks

    This aids in JSON serialization.
    Derek Lindahl committed Apr 4, 2015
Commits on Mar 27, 2015
  1. Update Appraisal gemfiles

    Derek Lindahl committed Mar 27, 2015
  2. Version bump to 1.0.0

    Derek Lindahl committed Mar 27, 2015
  3. Code formatting changes (guided by Rubocop)

    Derek Lindahl committed Mar 27, 2015
Commits on Mar 26, 2015
  1. Handle nested mock resource attributes better

    Derek Lindahl committed Mar 26, 2015
  2. Assume test_mode is enabled if there is no api_client

    Derek Lindahl committed Mar 26, 2015
  3. Fix NoMethodError when extracting embedded resources

    The previous logic branch was flawed in that whenever test mode was
    enabled, it was try to call #as_mock on the embedded resource class even
    though that class might be an OpenStruct instead of a class that
    implemented ResourceMockery.
    Derek Lindahl committed Mar 26, 2015
  4. Fix typo in spec context

    Derek Lindahl committed Mar 26, 2015