* Run `rubocop -a`
* Update changelog
* Run CI against grape 2.1.x and 2.2.x
* Copy formatter and content type defaults from grape
* Use matrix to reduce duplication in CI workflow
Rename `route_instance_variable_equals?` to `route_namespace_equals?`
Refactor route_path_start_with? and route_namespace_equals? with Enumerator instead of static Arrays
Refactor determine_namespaced_routes in positive logic (select over reject)
* Fixes order
* Updates CHANGELOG
Satisfies rubocop
* I believe the removed test is not supported by grape and should not
be a blocker to making the changes in this PR.
While there does not appear to be a grape test with the same setup,
the spec at e3451c892a/spec/grape/api_spec.rb (L1025-L1045)
suggests that mounts do not overwrite.
---------
Co-authored-by: peter scholz <pscholz.le@gmail.com>
* Fix: incorrect regexp character set definition
In a character set, vertical bars `|` are treated as a proper character and not as an OR.
They are not needed since character set applies the OR logic automatically.
* Update CHANGELOG.md
Co-authored-by: peter scholz <pscholz.le@gmail.com>
* Depply nested objects
* Simple hash syntax edit
* Nested objects are not necessary arrays
* fix points test
* Fix test services
* Doesn't require to delete hash or array properties
* Edit nested logic
* Add vehicle test
* Change parameter level is endpoint job
* Array body shouldn't lost array type
* no more parser role
* array of array to array of string
* move format data
* fix formdata return
* Moved params_parser role spec
* Move endpoint spec
* Revert "Add vehicle test"
This reverts commit e5ba63ba26.
* remove redundant interpolation
* Adds support for grape >= 1.2
Makes swagger backwards-compatible again
Adds a test that covers re-mounting with configuration
Describes changes on this PR
Removes custom branch from build process
* Upgrades Rubocop and autofixes indentation
* Locks rubocop version to 0.60
* Rollbacks version bump
* Removes HEAD from allowed failure
* Fix mounting APIs in route_param namespaces
* Added missing tests, based on code from
https://github.com/ruby-grape/grape-swagger/pull/543 by @milgner
Applied on top of latest master
* Added changelog
* Fix CHANGELOG.md
* Cleanup rubocop offences related to this change
* Fix rubocop version
* Re-added * Your contribution here to CHANGELOG.md
* Grape version cascading (#27)
- Add support for grape version cascading
- make rubocop happy, fix test
- fix test failure for grape lower than 0.17
- refactors getting version from route
* updates dependencies
- drops grape <0.16.2 support, including code only for grape <0.16.2
- adds ruby 2.4.0 support
- adds grape 0.19.0 support
- adds changelog entry
- updates version matrix
- adapts rubocop todo
`awesome_print` gem is not used in the code and should not be a runtime
dependency.
Initially, it was added as a development dependency in
e406abfe3c. It was used to output debug
information in specs.
But later, it was changed to be a runtime dependency in
05a0085155 for no particular reason.
When docs are hidden with `hide_documentation_path` and an endpoint's
path begin with the same string as the docs mount path, the endpoint is
hidden.
This fixes it