Refactor parts into multipart post namespace#65
Conversation
With current version of rspec with rspec_status file is generated when the tests are run, ignoring in version control.
|
Thanks for this! I think because of the name of this gem, the convention should be What do you think? Otherwise, we should rename the gem |
|
Ah, ok, Yip I can totally do that. I went with Just so as I'm clear, the structure will become: Want me to close this PR and open a new one? Or just force-push to this? |
This changes the namespace for the gem from MultipartPost into Multipart::Post to match the actual name of the gem. This also extracts out of the global namespace the Parts module to live instead under Multipart::Post::Parts
484d14c to
0791589
Compare
|
Force push is fine. Response to other points coming shortly. |
Yes, just make subdirectories to match modules. I also think the deeply nested
Yes, perfect. |
|
What we can probably do for compatibility is have the old
|
Just moves the CompositeReadIO out into the Multipart::Post namespace.
This is the last of the top level namespace polluting modules moved out. The tests are all passing (however, I can't comment on how complete the test coverage is)
|
Sorry that paused for a while, work has been somewhat busy for a bit :) Anyway, let me know if you're happy with the current version. This PR should probably be closed & reopened / renamed at some point, as it's no longer about Parts (which was all I signed up for ;) ) heh. I've now removed (I think) all of the top-level polluting files out under the I'm not planning on refactoring/reworking the code itself, however, happy to try work in those deprecations. That's not something I've done before, so, I'll setup the aliases/constants [as you suggested(https://github.com//pull/65#issuecomment-540436358) and then probably do what's suggested on stack overflow (though that is more for methods than Constants... maybe there's another sneaky way?) |
|
LGTM. Make further modifications on a new PR. |
|
Please add your name to copyright in readme. |
This is part of a refactoring series to move the top level modules (polluting the global namespace) to be nested under the
MultipartPostnamespace.This PR moves the
Partsmodule only. If this approach is acceptable, I'll work on the rest.Thanks!