Wolfpack-Digital / apipie-postman

Ruby gem to generate Postman collection from Apipie output.
MIT License
18 stars 1 forks source link

Errno::ENOENT: No such file or directory @ rb_sysopen - doc/apipie_examples.json #17

Open Animesh808 opened 1 year ago

Animesh808 commented 1 year ago

I am using ruby version 2.7.5 & rails version 6. Trying to generate a json apis for postman. Apis are build using Grape. apipie_postman is configured according to the description but when I run bundle exec rake apipie_postman I got below error

warning: parser/current is loading parser/ruby27, which recognizes warning: 2.7.2-compliant syntax, but you are running 2.7.5. warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri. WARNING: Use strings for Figaro configuration. 5432 was converted to "5432". WARNING: Use strings for Figaro configuration. 10 was converted to "10". WARNING: Use strings for Figaro configuration. 683002007104225 was converted to "683002007104225". WARNING: Use strings for Figaro configuration. 6379 was converted to "6379". WARNING: Use strings for Figaro configuration. 12382 was converted to "12382". WARNING: Use strings for Figaro configuration. 123456 was converted to "123456". rake aborted! Errno::ENOENT: No such file or directory @ rb_sysopen - doc/apipie_examples.json /home/user/project/lib/tasks/apipie_postman.rake:4:inblock in

' /home/user/.rbenv/versions/2.7.5/bin/bundle:23:in load' /home/user/.rbenv/versions/2.7.5/bin/bundle:23:in
' Tasks: TOP => apipie_postman (See full trace by running task with --trace)`

estiens commented 1 year ago

same

estiens commented 1 year ago

seems you have to copy the postman json file manually, but not sure why it is hardcoded...