cloudflair 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6af6e2d4ab47ef06e9cae85280c935cf7ccd30fe
4
- data.tar.gz: e2bbcb00bd5a0d93713e16f02c29a6ff73737e35
3
+ metadata.gz: 381b97720e882dc8ee8d05e5336f19839650f1df
4
+ data.tar.gz: b43756bfe13ca34d5a02d88d81431492a04a07b6
5
5
  SHA512:
6
- metadata.gz: cd498ded8ec3fb1093dd554063b5f79514e866a792beda3b27d401ced0e1b4d23f9f48f2c2742907902e5e4c2eeb53bf95f14bf0df99f1989f88b375afb67928
7
- data.tar.gz: 73658e1f85c007d0ab71f55c2d83f84e0d51ef7df4f52e99bd0815653b5d6ea82c0ee3586914bcf4865756ef4f6ae9d0a3be3e2a80cd5bf07b2835e3cc7fe2f3
6
+ metadata.gz: af84248ed5de70250c0283dec79973c0dc09004ded9e4caf83db88226701471931780f9682d43e33be719c917b01fd835014f6a8aa97f590b5c506ab88435a30
7
+ data.tar.gz: c7fd3d70509c80edb7a8204654d078ad4c067057b3b45813d50ec4d4efeb70a1860538abdef76d87ba0943de828f47911bc2a57bc5a86f6532f0e8d831bc3c44
@@ -11,7 +11,7 @@ module Cloudflair
11
11
  end
12
12
 
13
13
  def purge_all_files(purge_everything=false)
14
-
14
+ response connection.delete path, purge_everything: purge_everything
15
15
  end
16
16
 
17
17
  ##
@@ -4,7 +4,7 @@ module Cloudflair
4
4
  config = Cloudflair.config
5
5
 
6
6
  Faraday.new(url: config.cloudflare.api_base_url, headers: headers) do |faraday|
7
- faraday.request :url_encoded
7
+ faraday.request :json
8
8
  faraday.response :logger
9
9
  faraday.response :json, content_type: /\bjson$/
10
10
 
@@ -1,3 +1,3 @@
1
1
  module Cloudflair
2
- VERSION = '0.0.3'.freeze
2
+ VERSION = '0.0.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudflair
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Mäder