|XP is just a number|
How to use a private version of a published module?by MARKWIN (Novice)
|on Jun 18, 2021 at 14:57 UTC||Need Help??|
MARKWIN has asked for the wisdom of the Perl Monks concerning the following question:
So I am trying to publish a module that allows access to IG's API directly. This would allow simple listings of your spread bet positions. The module is written and works well for me. Under the hatch it uses the CPAN module Rest::Client for formatting requests.
In order to test it it needs to be able to be tested without the use of my personal IG login details as these are private to me. The test programs use the unmodified IG.pm module, with a special @INC path from which it picks up a special version of Rest::Client. This version hashes the parameters, and then reads a file based on the hash and returns identical json formatted data as if my account had been used.
My aim is to test my module, not Rest::Client which is not my module.
I included the special version of Rest::Client and in my module code as well as a Record::Rest::Client for creating the special data files read by my local Rest::Client module.
All works well, however when I submit the module, it says I have no permission to publish a version of Rest::Client. I do not actually want to do that, its only used in the testing of my module.
I seek some suggestions as to what is the best way to proceed in this situation.