Permalink
Commits on Sep 24, 2012
Commits on Sep 23, 2012
  1. Provide a better default hash for missing params declarations.

    These actually pass the validation by the parser.
    myronmarston committed Sep 21, 2012
  2. Make path_params/query_params proper json schema definitions.

    Previously, they just contained the entries of a `properties` hash inside a json schema definition.
    myronmarston committed Sep 13, 2012
  3. Add RequestParamsParser.

    myronmarston committed Sep 7, 2012
  4. Add DynamicStruct class.

    myronmarston committed Sep 7, 2012
  5. Expose the route from an endpoint definition.

    We need this for the request param validator.
    myronmarston committed Sep 7, 2012
Commits on Sep 21, 2012
  1. Fix endpoint definition data structures.

    We had weird nested arrays that were confusing, since they led to loops like:
    
    endpoint.definitions.each do |definitions|
      definitions.each do |definition|
      end
    end
    
    This was due to the fact that `Endpoint#definitions` was based on the hash grouping and therefore had a nested array.  It's far less confusing to just return a flat array.  Also, in one place we were doing a linear scan based on the array rather than using the hash like we should.
    myronmarston committed Sep 21, 2012
Commits on Sep 20, 2012
  1. 0.2.2 release.

    myronmarston committed Sep 20, 2012
  2. Ensure our anonymous sinatra classes have a name.

    Some tools (such as new relic) blow up if they don't have a name.
    myronmarston committed Sep 20, 2012
Commits on Aug 20, 2012
  1. Upgrade to Cane 2.0.

    myronmarston committed Aug 20, 2012
Commits on Aug 16, 2012
  1. Fix specs that were failing on RSpec 2.11.

    They were failing due to this change:
    
    rspec/rspec-core@de01e05
    myronmarston committed Aug 16, 2012
Commits on Aug 15, 2012
  1. Fix README.

    myronmarston committed Aug 15, 2012
Commits on Jul 3, 2012
  1. 0.2.1 release.

    myronmarston committed Jul 3, 2012
  2. Add filter_example_data to README.

    [ci skip]
    myronmarston committed Jul 3, 2012
  3. Use filter_example_data in the generated tests.

    This is important so that if your example data has a placeholder that will not pass JSON schema validation (but will pass validation when replaced by a filter block), the test can still pass.
    myronmarston committed Jul 3, 2012
  4. Remove extra line break.

    myronmarston committed Jul 3, 2012
  5. Use a more specific error class.

    Rescuing ArgumentError in the stub app is a bit dangerous: since ruby itself raises that error, it could happen due some bug in the code, and not due to an unfound version.
    myronmarston committed Jul 3, 2012
Commits on Jul 2, 2012
  1. 0.2.0 release.

    myronmarston committed Jul 2, 2012
  2. Fix build on 1.8.

    1.8 has different scoping rules for block locals that shadow other locals.
    myronmarston committed Jul 2, 2012
  3. Fix warning on ruby 1.8.

    "warning: multiple values for a block parameter (2 for 1)"
    myronmarston committed Jul 2, 2012
  4. Add ruby-debug for 1.8.

    myronmarston committed Jul 2, 2012
  5. Don't use 1.9 stabby lambda syntax.

    We're still supporting 1.8.7.
    myronmarston committed Jul 2, 2012
  6. Update stub app to use filters

    Closes #7
    brenfrow committed Jul 2, 2012
  7. added #apply_filters to EndpointExample

    this allows filters (lambdas that modify the original data) to be applied to the EndpointExample data.
    brenfrow committed Jul 2, 2012
  8. added filter_example_data_blocks to the config class

    filter_example_data_blocks is an array used to hold filter actions that will be run before the sample data is converted to json. This allows modifications before the json is sent.
    brenfrow committed Jul 2, 2012