-
Notifications
You must be signed in to change notification settings - Fork 58
Terminology & structure #93
Comments
I like the naming changes, will send a PR with them. Do we really need to deprecate the hooks? The current version is so different from master that I think we can simply delete them. I need to read about the fog structure |
I think we should preserve ERB post-processing as a feature, so we can't I think rather "deprecate" we can just drop it from the config and On Tue, Feb 11, 2014 at 7:47 AM, Marcos Castilho da Costa Matos <
|
Since the PR associated was already merged, can we close this issue? |
The PR didn't have all of the proposed changes. In particular, it doesn't have I also forgot about Since 0.3.0 was released, I'd recommend using a deprecated alias technique. I think we should leave this open a bit longer, until we make further changes or decide to leave things as-is. |
Ok, I changed the original comment into a check list, this way we can track all things that are not implemented yet, and also to know when to close this issue. |
Changed the remaining names. |
I want to get the codebase a bit more organized and consistent. Several of these ideas have been discussed before and we seemed to have some consensus, but they didn't sneak into PRs yet.
My proposal:
build_contract
/build_contracts
toload_contract
/load_contracts
validate_consumer
tovalidate_response
andvalidate_provider
tosimulate_request
(I've realized thatvalidate_consumer
validates stubbed responses while thevalidate_provider
simulates a consumer making valid requests)Pacto::Core::Hook
,Pacto::Hooks::ERBHook
, andPacto::ERBProcessor
for middleware.Pacto::Stubs::BuiltIn
toPacto::Stubs::WebMockAdapter
stub_all
tosimulate_consumers
andstub_all
tostub_providers
I'd also like to outline a structure, similar to http://fog.io/about/structure.html, where we outline a few central concepts that deserve their own folders (mostly around extension points - validators, stubs, generators, ...). I think "core" should be used for essential but non-extensible parts of Pacto... i.e. things that load and control the flow of the extensible pieces.
The text was updated successfully, but these errors were encountered: