cloudflair 0.2.0 → 0.2.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
- SHA1:
3
- metadata.gz: 4669b1632efb2191777972709d0f9adfa5ed8aff
4
- data.tar.gz: b196ca2d670f3d2aa0cb2ef04e72c43fd1952183
2
+ SHA256:
3
+ metadata.gz: 7cfdfacba32e8e3fa0b53c0f472bf5f706ec1552c69cd95291cd5acdbd0093d2
4
+ data.tar.gz: b146dae0686831ae491373af3139cff87371188df5e429696b4f9c64c016cfe1
5
5
  SHA512:
6
- metadata.gz: c9d0d0bfc5784c16e1f7e2e35340da7851939db39a9fd93e1fd941d160751b68e0a58f7376f02bb85b1a02e7512639a8c3c8d54a2ceb7182380cb2c0bfc08bcb
7
- data.tar.gz: 25bc5ddea914d14d5771dfe4ae0e3c4d75a4e79caa7ca71beb7031b1b331615bfe21e553116ce17be840c24236a1be6a15f79cf93300677ef481698ba3accee9
6
+ metadata.gz: 0b2938de46e0630f15747dcae745ba414a3fdff19d1a8a9732cd0ad921b7b895a0f8a05c9e931f825952e1a4c09f61bc65cff4184478ce02305906153b7ab0be
7
+ data.tar.gz: c42ff156eaca3ecc1c8e83bf4793e2362c823fdb91ca5bafebf34e45a73079ed76ce89a267c1f7a6a891e7a33e9a68954d0d669beeede30c8fa4fa7fc5c40e15
data/.travis.yml CHANGED
@@ -9,3 +9,13 @@ notifications:
9
9
  on_success: never
10
10
  slack:
11
11
  secure: o1rlXNKZgQUIIfpzz//KpClcUS/ea5ECbbTaexQYHn84hqPNlsBdWhSrLg2s6MIJ1zSml4NBKQgwQJCV/6keel06XeNPvGPdQLVmSsBCWS4EJ/CvAAsXadghmSDYdsZlTaXvwa2ZdIaCHrM/SncZYi7I+KIiGsbV0KJgYVTlWGPWuN1kh3od1Ixw6W+TFUKONz8OqVFGo2yCr68zDtxUvrY8G/TNRRtWUINHPSIHL7+7JxzOtDZKOITptcLii8tmqi07HtmU7+78lDMlze8ejhchEDKo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8A8bJv9H15YaplHRsu8HryMH5Zt5Tup8cnN37kMrILg=
16
+ gem: cloudflair
17
+ on:
18
+ tags: true
19
+ repo: ninech/cloudflair
20
+ condition: "$TRAVIS_RUBY_VERSION == 2.4"
21
+ skip_cleanup: true
data/README.md CHANGED
@@ -5,8 +5,6 @@
5
5
 
6
6
  A simple Ruby-wrapper around Cloudflare's v4 API.
7
7
 
8
- ![Animation of Homer Simpson using of a rescue flare.](https://media.giphy.com/media/n8A8omwp1mVAA/giphy.gif)
9
-
10
8
  ## Installation
11
9
 
12
10
  Add this line to your application's Gemfile:
@@ -116,7 +114,7 @@ A good reference on how to use this wrapper are also the Rspecs.
116
114
  * `/zones/:zone_id/available_rate_plans`
117
115
  * `/zones/:zone_id/dns_records` GET, POST
118
116
  * `/zones/:zone_id/dns_records/:record_id` GET, DELETE (PUT not implemented)
119
- * `/zones/:zone_id/purge_cache` DELETE
117
+ * `/zones/:zone_id/purge_cache` POST
120
118
  * `/zones/:zone_id/railguns` GET
121
119
  * `/zones/:zone_id/railguns/:railgun_id` GET
122
120
  * `/zones/:zone_id/railguns/:railgun_id/diagnose` GET, PATCH
@@ -180,8 +178,6 @@ The gem is available as open source under the terms of the [MIT License](http://
180
178
 
181
179
  ## About
182
180
 
183
- This gem is currently maintained and funded by [nine.ch](https://nine.ch).
184
-
185
- [![nine.ch Logo](https://blog.nine.ch/assets/logo.png)](https://nine.ch)
181
+ This gem is currently maintained and funded by [nine](https://nine.ch).
186
182
 
187
- We run your Linux server infrastructure – without interruptions, around the clock.
183
+ [![logo of the company 'nine'](https://logo.apps.at-nine.ch/Dmqied_eSaoBMQwk3vVgn4UIgDo=/trim/500x0/logo_claim.png)](https://www.nine.ch)
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.2.4
data/cloudflair.gemspec CHANGED
@@ -6,7 +6,7 @@ require 'cloudflair/version'
6
6
 
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = 'cloudflair'
9
- spec.version = Cloudflair::VERSION
9
+ spec.version = File.read('VERSION')
10
10
  spec.authors = ['Christian Mäder']
11
11
  spec.email = %w(christian.maeder@nine.ch)
12
12
 
@@ -27,8 +27,8 @@ Gem::Specification.new do |spec|
27
27
  spec.add_runtime_dependency 'dry-configurable', '~> 0.1'
28
28
  spec.add_runtime_dependency 'faraday-detailed_logger'
29
29
 
30
- spec.add_development_dependency 'bundler', '~> 1.12'
31
- spec.add_development_dependency 'rake', '~> 10.0'
30
+ spec.add_development_dependency 'bundler', '~> 2.0.0'
31
+ spec.add_development_dependency 'rake', '~> 12.0'
32
32
  spec.add_development_dependency 'rspec', '~> 3.0'
33
33
  spec.add_development_dependency 'dotenv', '~> 2.1'
34
34
  spec.add_development_dependency 'rubocop', '~> 0.48'
@@ -13,7 +13,7 @@ module Cloudflair
13
13
  ##
14
14
  # @param purge_everything must be set to true
15
15
  def everything(purge_everything)
16
- resp = connection.delete(path) { |req| req.body = { purge_everything: purge_everything } }
16
+ resp = connection.post(path) { |req| req.body = { purge_everything: purge_everything } }
17
17
  response resp
18
18
  self
19
19
  end
@@ -23,7 +23,7 @@ module Cloudflair
23
23
  def selective(cache_identifier = {})
24
24
  return self if cache_identifier.nil? || cache_identifier.empty?
25
25
 
26
- resp = connection.delete(path) { |req| req.body = cache_identifier }
26
+ resp = connection.post(path) { |req| req.body = cache_identifier }
27
27
  response resp
28
28
  self
29
29
  end
@@ -1,3 +1,2 @@
1
1
  module Cloudflair
2
- VERSION = '0.2.0'.freeze
3
2
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudflair
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Mäder
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-22 00:00:00.000000000 Z
11
+ date: 2019-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -72,28 +72,28 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.12'
75
+ version: 2.0.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.12'
82
+ version: 2.0.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '10.0'
89
+ version: '12.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '10.0'
96
+ version: '12.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -165,6 +165,7 @@ files:
165
165
  - LICENSE.txt
166
166
  - README.md
167
167
  - Rakefile
168
+ - VERSION
168
169
  - bin/cloudflair
169
170
  - bin/console
170
171
  - bin/setup
@@ -240,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
241
  version: '0'
241
242
  requirements: []
242
243
  rubyforge_project:
243
- rubygems_version: 2.5.2
244
+ rubygems_version: 2.7.7
244
245
  signing_key:
245
246
  specification_version: 4
246
247
  summary: Wrapper to CloudFlare's v4 REST API.