Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove leading slashes from dirname #191

Merged
merged 1 commit into from
Jan 17, 2015
Merged

Remove leading slashes from dirname #191

merged 1 commit into from
Jan 17, 2015

Conversation

jessieay
Copy link

  • When user names a resource with a leading slash, library was trying to create
    a directory at the root directory of the machine
  • Failure was at lib/rspec_api_documentation/writers/json_writer.rb:18 (which
    is where dir is being made based on resource name)
  • This resulted in permissions errors that were hard to debug
  • This change strips leading slash when evaluating which dir to put docs into

@jessieay
Copy link
Author

cc @rmw

@jessieay jessieay changed the title Remove trailing spaces from dirname Remove leading slashes from dirname Jan 16, 2015
* When user names a resource with a leading slash, library was trying to create
  a directory at the root directory of the machine
* Failure was at `lib/rspec_api_documentation/writers/json_writer.rb:18` (which
  is where dir is being made based on resource name)
* This resulted in permissions errors that were hard to debug
* This change strips leading slash when evaluating which dir to put docs into
oestrich added a commit that referenced this pull request Jan 17, 2015
Remove leading slashes from dirname
@oestrich oestrich merged commit 93c88c5 into zipmark:master Jan 17, 2015
@oestrich
Copy link
Contributor

Thanks!

SrMouraSilva pushed a commit to SrMouraSilva/rspec_api_documentation that referenced this pull request Sep 14, 2018
…and remove duplicated parameters (generated by the path parameter search: RspecApiDocumentation::DSL.extract_route_parameters!)
oestrich added a commit that referenced this pull request Dec 6, 2018
…-parameters

Fix: Issues #191 #402 and #403: Add example property and remove duplicated parameters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants