Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jul 2, 2015
  1. @dblock

    Merge pull request #1053 from reprah/add-route-helpers-to-readme

    dblock authored
    Add a link to grape-route-helpers gem in the README
Commits on Jul 1, 2015
  1. @reprah
  2. @dblock

    Merge pull request #1052 from marshall-lee/fix_description_params

    dblock authored
    Reset description[:params] when resetting validations
  3. @marshall-lee
Commits on Jun 30, 2015
  1. @dblock

    Merge pull request #1048 from generalassembly/only-dup-inheritable-va…

    dblock authored
    …lues
    
    Only dup InheritableValues, remove support for deep_dup
Commits on Jun 29, 2015
  1. @toddmazierski

    Fix #891: only dup (not deep_dup) InheritableValues.

    toddmazierski authored
    Please also see #1034, where StackableValues are only dup'ed (not
    deep_dup'ed).
    
    Other changes:
    
    * Add test to reproduce bug #891
    * Remove support for deep_dup (no longer used)
    * Add item to CHANGELOG
  2. @dblock

    Merge pull request #1049 from hedgesky/remove_deprecated_rubyforge_pr…

    dblock authored
    …oject_attr_from_gemspec
    
    Remove deprecated rubyforge_project attribute from gemspec
  3. @dblock

    Merge pull request #1047 from rnubel/given_parameter

    dblock authored
    Validate params only if another param is present
Commits on Jun 28, 2015
  1. @hedgesky
Commits on Jun 26, 2015
  1. @rnubel

    Adds `#given` to DSL::Parameters, allowing for dependent params.

    rnubel authored Robert Nubel committed
    Usage:
    
        # ...
        params do
          optional :shelf_id, type: Integer
          given :shelf_id do
            requires :bin_id, type: Integer
          end
        end
    
    This implements #958. In order to achieve the DSL-style implementation,
    I introduced the concept of a "lateral scope" as opposed to the
    "nested scope" which `requires :foo do` opens up. A lateral scope is
    subordinate to its parent, but not nested under an element.
Commits on Jun 25, 2015
  1. @dblock

    Merge pull request #1045 from dmitry/fix/do-not-convert-rack-response

    dblock authored
    Do not convert Rack::Response to Rack::Response
  2. @dmitry

    Do not convert Rack::Response to Rack::Response

    dmitry authored
    While using https://github.com/aserafin/grape_logging grape middleware after an upgrading grape from 0.11 to 0.12 I've been stuck with an issue:
    
    ```
    NoMethodError (undefined method `downcase' for 2:Fixnum)
    ```
    
    That's because `Middleware#response` tries to convert `Rack::Response` to `Rack::Response` and fails.
  3. @dblock

    Merge pull request #1044 from rnubel/documentation

    dblock authored
    Increase documentation coverage
  4. Adds documentation for a number of classes and methods.

    Robert Nubel authored
    Increases YARD coverage from ~37% to ~50%. This is a long journey! Also, fixes YARD warnings.
Commits on Jun 24, 2015
  1. @dblock

    Merge pull request #1039 from rnubel/custom_param_types

    dblock authored
    Support custom types
  2. @rnubel

    Support custom types.

    rnubel authored Robert Nubel committed
    Any class can now be used as a type for a parameter, so long
    as it defines a class-level `parse` method. This method
    should raise on invalid values and otherwise return the coerced
    value.
    
    Also, I added the Grape::ParameterTypes module, which serves
    right now only as a basis to determine if a given type is a custom
    type or not, but in the future could be used to actually validate
    the types that are given via the params DSL.
Commits on Jun 23, 2015
  1. @dblock

    Merge pull request #1043 from dim/master

    dblock authored
    Fix coercion of complex arrays
  2. @dim

    Fix coercion of complex arrays

    dim authored
  3. @dblock

    Merge pull request #1034 from generalassembly/only-dup-stackable-values

    dblock authored
    Only dup StackableValues
Commits on Jun 20, 2015
  1. @rnubel @dblock

    Don't try to dup the String class.

    rnubel authored dblock committed
    Rubinius will raise a TypeError, should you try String.dup, whereas
    MRI has no problem with it. As such, this change marks String as un-
    duplicable with respect to ActiveSupports' #duplicable? method, used
    by #deep_dup. Since this change isn't in upstream ActiveSupport, I
    also forced the backport to always be loaded (this could be changed
    to just a monkeypatch of the String class, though).
Commits on Jun 18, 2015
  1. @dblock

    Fix: typo in CHANGELOG.

    dblock authored
  2. @dblock
  3. @dblock

    Preparing for release, 0.12.0.

    dblock authored
  4. @dblock

    Merge pull request #1036 from dblock/upgrading

    dblock authored
    Added note on upgrading from #1029.
Commits on Jun 17, 2015
  1. @dblock
Commits on Jun 15, 2015
  1. @toddmazierski
Commits on Jun 4, 2015
  1. @dblock

    Merge pull request #1030 from dblock/rubocop-0.31.0

    dblock authored
    Upgraded RuboCop 0.31.0.
  2. @dblock

    Upgraded RuboCop 0.31.0.

    dblock authored
  3. @dblock

    Merge pull request #1029 from dblock/rack-response-to-a

    dblock authored
    Do not convert a Rack::Response to an array.
  4. @dblock
  5. @dblock

    Merge pull request #1017 from QuickPay/mutual_exclusive_inside_hash

    dblock authored
    Fixed validation of invalid params with mutual_exclusive inside hash
Commits on Jun 3, 2015
  1. @lasseebert
  2. @dblock

    Merge pull request #1026 from dblock/endpoint-file

    dblock authored
    Added file, explicitly set file-like response object.
  3. @dblock
Commits on Jun 2, 2015
  1. @dblock

    Merge pull request #1025 from dblock/merge-respond-to

    dblock authored
    Only merge representations onto an existing body.
Something went wrong with that request. Please try again.