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

Massive overhaul #2

Open
wants to merge 92 commits into
base: master
Choose a base branch
from
Open

Massive overhaul #2

wants to merge 92 commits into from

Conversation

zachfeldman
Copy link

Hey Daniel, here's what I've done:

  1. Integration of entire WordPress XML-RPC API spec as of today
  2. Re-do some tests, still only have about 5% test coverage. Definitely need to do some work here.
  3. Rename methods to WordPress method names
  4. Add test method to main module
  5. Turned of SSL by default for easier testing (was not working on my machine) and added this to README
  6. Added GEMSPEC
  7. Stole deep_merge from Rails and added it as a method to make it easier to merge in multi-layered options

I know that you wanted tests for everything, but considering I added the entire API to spec, I haven't gotten around to writing the tests yet. It is next on my to-do list, for real! But some help with doing that would be great.

I'd also be happy to take over this repo if you'd prefer. I have some good experience developing for WordPress and Ruby stuff!

NINJA EDIT - Version bumped to 1.0, added testing for the entire Gem, major cleanup. Would like you to post a link to my repo if you won't merge my request.

Zach Feldman and others added 30 commits May 9, 2013 13:35
Removed Monkey patch if ActiveSupport is defined
Reformated code
Minor updates from @seuros, a little bit of cleanup. Looking good, tests pass!
[#2] Add license to gemspec, is GPLv2
Specified `path` option for `xmlrpc.php` not on root directory.

Also, clarified a little bit on the text.
Added :filename to uploadFile, so you only give a valid filename. See #7
zachfeldman and others added 30 commits September 14, 2014 13:36
Revert "Support version 1.9.2 in tests"
…e ssl port, updating README with ssl example, and removing the gem file from the repository
cleaning up the README and adding a couple of examples
fix - skip '})' in source demo uploading file
So it can be modified if necessary, eg. to disable SSL verification.
Cache the created XMLRPC connection
VCR has a capability to calculate the response content length at the
time of the cassette playback. This allows changes to the recording
without having to constantly update the information to match the body
length.

Update the VCR setup code to utilize this mechanism for each cassette
playback.
Add support for wordpress sites that require a particular cookie(s) in
order to be accessible. For example, this could happen on a company
intranet where the SSO mechanism does not support basic authorization.

Update client to accept an additional cookie value and pass that along
to the underlying connection when it is set.

This fixes issue #36.
This is a simple change to the spec_helper to allow setting a custom
port and whether to use SSL on the underlying XML-RPC client. The README
and sample .env file are updated accordingly.
This allows bare method names to be passed to Client#execute and be
prefixed by "wp." as before, but allows method names with a namespace
prefix to pass through unmodified. This is determined by whether or not
there is a '.' present in the method name.

This implementation does mean that custom methods must have some dotted
prefix, since any bare method names are assumed to need "wp.", but this
seems to be a reasonable requirement, matching API convention.
Fix #38 - Allow tests to run against HTTPS servers
Fix #37 - Allow custom prefixes on method names
Add support for cookie based authentication mechanisms
Catch 'Errno::EPIPE: Broken pipe' and reconnect.
* Add configurable timeouts

* Add tests
* Added xmlrpc dependency for ruby >= 2.4.0 support

* Version bump to 1.2.2

* Updated contributors list
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.