Skip to content

Cloudflare api v4#12

Open
thavelick wants to merge 9 commits into
gofullstack:masterfrom
thavelick:master
Open

Cloudflare api v4#12
thavelick wants to merge 9 commits into
gofullstack:masterfrom
thavelick:master

Conversation

@thavelick

Copy link
Copy Markdown
Contributor

This branch upgrades the cloudflare API to v4.

Since the API has breaking changes, I've incremented the version of this module to 2.0. The new version takes a cloudflare zone identifier instead of a domain, so pushing out this fix as a minor version might break existing clients of the library, and I don't think we should do that without warning, but I'm open to discussion.

It also contains fixes for issues #7 and #1. Those have seperate pull requests that should be merged first.

Before, the cloudflare:cache:purge task would run once for each of the
servers configured, across all roles. Really, this only needs to happen
once per deploy, so now we call the CF API only once, from the local
deployment machine
Ruby 1.9.3 was EOL'd Feburary 23 2015. It is also no longer supported by
the latest version of capistrano itself, so support is being removed
here.

Updated the gemspec so that it's clear on RubyGems which version is
required.
Since version 1 will be EOL'd soon
* Switched to httparty because I couldn't set the content-type header
  and send request params on a delete request with Net::HtTP
* Fixed sucess and failure detection in rake task
* Updated test to reflect actual response from cloudflare
Made cache purge actually work with v4 api
Check response properly for cache purge status
@joshrowley

Copy link
Copy Markdown
Contributor

hey @thavelick mind updating your branch with master, the branch has conflicts. also there appears to be some ruby versioning issues on the build, would be great to get those passing.

@joshrowley

Copy link
Copy Markdown
Contributor

Hey @thavelick just wanna check in on this branch, is this still something you'd like to merge in?

@pobrassard

Copy link
Copy Markdown

Hi @joshrowley,

Do you plan on adding CF API V4 support soon? :)

@joshrowley

Copy link
Copy Markdown
Contributor

Hi @thavelick @pobrassard , I'm no longer a part of the @gofullstack GitHub organization and no longer have write access to this repository. I'm also no longer in a position to maintain this gem. I would advise forking, or maybe somebody from @gofullstack can weigh in here and merge or grant you maintainer access.

@joshcramer

joshcramer commented Sep 25, 2019 via email

Copy link
Copy Markdown
Member

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.

4 participants