cloudflair 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.ruby-version +1 -0
- data/.travis.yml +10 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +70 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/cloudflair.gemspec +32 -0
- data/lib/cloudflair/api/zone/settings/development_mode.rb +17 -0
- data/lib/cloudflair/api/zone/settings.rb +15 -0
- data/lib/cloudflair/api/zone.rb +30 -0
- data/lib/cloudflair/communication.rb +133 -0
- data/lib/cloudflair/connection.rb +25 -0
- data/lib/cloudflair/error/cloudflair_error.rb +4 -0
- data/lib/cloudflair/error/cloudflare_error.rb +16 -0
- data/lib/cloudflair/version.rb +3 -0
- data/lib/cloudflair.rb +35 -0
- metadata +163 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7bf3b3a1ecdcf50e770990c51d35f6be706407a5
|
4
|
+
data.tar.gz: d9869e1e84f959ede37c7114bdbed44ccd159e5e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 094b8be97ce303da51dcdc5b5a8cc8c337092733f50194437a38e872b5cee8c8d978a045317a6632c2125256f27ec4d0f3b10fe503e399e9e6b32c01ee335d99
|
7
|
+
data.tar.gz: cb78861951938689b65012148a9ed0837fe55e498337bef1d311eb4848d044cfe5306de7505ba5984f92aa34d3636d387295ca044429f2c540048489b5864960
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.3.1
|
data/.travis.yml
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
sudo: false
|
2
|
+
language: ruby
|
3
|
+
rvm:
|
4
|
+
- 2.3.1
|
5
|
+
before_install: gem install bundler -v 1.12.5
|
6
|
+
notifications:
|
7
|
+
email:
|
8
|
+
on_success: never
|
9
|
+
slack:
|
10
|
+
secure: o1rlXNKZgQUIIfpzz//KpClcUS/ea5ECbbTaexQYHn84hqPNlsBdWhSrLg2s6MIJ1zSml4NBKQgwQJCV/6keel06XeNPvGPdQLVmSsBCWS4EJ/CvAAsXadghmSDYdsZlTaXvwa2ZdIaCHrM/SncZYi7I+KIiGsbV0KJgYVTlWGPWuN1kh3od1Ixw6W+TFUKONz8OqVFGo2yCr68zDtxUvrY8G/TNRRtWUINHPSIHL7+7JxzOtDZKOITptcLii8tmqi07HtmU7+78lDMlze8ejhchEDKoycTwVOQDRxjjLbDKZsV33nqG5XYRqW8FQv6zJ2c3eCfd2M2Lm+WkPe/ZBQ25Ok4/wK35T0oPt5lW6LKRNt202nQiI6vqn54489knOUpvA60z2r6taIgI3Os8kCdG8rX95Hob4gpU4zLqPNz26vqGiB0vz4DFSJWpRlYK15YT7SpEEMW2luPcTGHaclRSUFgjo/JkVH6zg+1rcMW4ZbKoxJZoNu+nmk9m1Xaz0r5tfJHBzB5XguRcKakRWkhb0rV4Nvo1as1PFtpxt9tiZsIXNTDNtf+upQeJs1Tevm6z4zBGXOIp//MIJEUyUkJ7Fkb+pyRbDOh30JSQJs0Z1y+/LA0rNkbQ+/jjeoKAepnFvawsXZF6UVWZxsBzAkIWTe+bwghnxX4Gm454RiI=
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Christian Mäder
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
# Cloudflair
|
2
|
+
|
3
|
+
[](https://travis-ci.org/ninech/cloudflair)
|
4
|
+
|
5
|
+
**UNDER CONSTRUCTION**
|
6
|
+
|
7
|
+
A simple Ruby-wrapper around CloudFlare's v4 API.
|
8
|
+
|
9
|
+

|
10
|
+
|
11
|
+
## Installation
|
12
|
+
|
13
|
+
Add this line to your application's Gemfile:
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
gem 'cloudflair'
|
17
|
+
```
|
18
|
+
|
19
|
+
And then execute:
|
20
|
+
|
21
|
+
$ bundle
|
22
|
+
|
23
|
+
Or install it yourself as:
|
24
|
+
|
25
|
+
$ gem install cloudflair
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
require "cloudflair"
|
31
|
+
Cloudflair.configure do |config|
|
32
|
+
config.cloudflare.auth.key = 'YOUR_API_KEY'
|
33
|
+
config.cloudflare.auth.email = 'YOUR_ACCOUNT_EMAIL'
|
34
|
+
# if you have a user_service_key, you don't need auth.key and auth.email
|
35
|
+
config.cloudflare.auth.user_service_key = 'YOUR_USER_SERVICE_KEY'
|
36
|
+
|
37
|
+
# these are optional:
|
38
|
+
config.cloudflare.api_base_url = 'https://your_cloudflare_mock.local'
|
39
|
+
config.faraday.adapter = :your_preferred_faraday_adapter
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
TODO: Write usage instructions here
|
44
|
+
|
45
|
+
Along the lines of `Cloudflair.new_connection.zone('zone_id').some_action`
|
46
|
+
|
47
|
+
## Development
|
48
|
+
|
49
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
50
|
+
|
51
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
52
|
+
|
53
|
+
## Contributing
|
54
|
+
|
55
|
+
Bug reports and pull requests are welcome on GitHub at [ninech/cloudflair](https://github.com/ninech/cloudflair).
|
56
|
+
|
57
|
+
## License
|
58
|
+
|
59
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
60
|
+
|
61
|
+
## Roadmap
|
62
|
+
|
63
|
+
* Pull Zone Information
|
64
|
+
* Zone Name to Zone ID Lookup
|
65
|
+
* Developer Mode, Cache Purge, Selective Cache Purge
|
66
|
+
* Airbrake error reporting
|
67
|
+
* Full API support
|
68
|
+
* Metrics reporting
|
69
|
+
* Rate Limit Tracking
|
70
|
+
* (Global) Rate Limit Tracking (redis?)
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'cloudflair'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/cloudflair.gemspec
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'cloudflair/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'cloudflair'
|
8
|
+
spec.version = Cloudflair::VERSION
|
9
|
+
spec.authors = ['Christian Mäder']
|
10
|
+
spec.email = %w(christian.maeder@nine.ch)
|
11
|
+
|
12
|
+
spec.summary = "Wrapper to CloudFlare's v4 REST API."
|
13
|
+
spec.description = 'Cloudflair aims to provide easy access to CloudFlares public API.'
|
14
|
+
spec.homepage = 'https://github.com/ninech/cloudflair'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
18
|
+
|
19
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
|
+
spec.bindir = 'exe'
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = %w(lib)
|
23
|
+
|
24
|
+
spec.add_runtime_dependency 'faraday', ['~> 0.8.11']
|
25
|
+
spec.add_runtime_dependency 'faraday_middleware', ['~> 0.10.0']
|
26
|
+
spec.add_runtime_dependency 'dry-configurable', ['~> 0.1.7']
|
27
|
+
|
28
|
+
spec.add_development_dependency 'bundler', '~> 1.12'
|
29
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
30
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
31
|
+
spec.add_development_dependency 'rubocop', '~> 0.44.1'
|
32
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Cloudflair
|
2
|
+
class DevelopmentMode
|
3
|
+
include Cloudflair::Communication
|
4
|
+
|
5
|
+
attr_accessor :zone_id
|
6
|
+
|
7
|
+
patchable_fields :value
|
8
|
+
|
9
|
+
def path
|
10
|
+
"/zones/#{zone_id}/settings/development_mode"
|
11
|
+
end
|
12
|
+
|
13
|
+
def initialize(zone_id)
|
14
|
+
@zone_id = zone_id
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'cloudflair/api/zone/settings/development_mode'
|
2
|
+
|
3
|
+
module Cloudflair
|
4
|
+
class Settings
|
5
|
+
attr_reader :zone_id
|
6
|
+
|
7
|
+
def initialize(zone_id)
|
8
|
+
@zone_id = zone_id
|
9
|
+
end
|
10
|
+
|
11
|
+
def development_mode
|
12
|
+
Cloudflair::DevelopmentMode.new @zone_id
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'cloudflair/api/zone/settings'
|
2
|
+
require 'cloudflair/communication'
|
3
|
+
|
4
|
+
module Cloudflair
|
5
|
+
def self.zone(zone_id)
|
6
|
+
Zone.new zone_id
|
7
|
+
end
|
8
|
+
|
9
|
+
class Zone
|
10
|
+
include Cloudflair::Communication
|
11
|
+
|
12
|
+
attr_reader :zone_id
|
13
|
+
|
14
|
+
patchable_fields :paused, :vanity_name_servers, :plan
|
15
|
+
|
16
|
+
def initialize(zone_id)
|
17
|
+
@zone_id = zone_id
|
18
|
+
end
|
19
|
+
|
20
|
+
def settings
|
21
|
+
@settings ||= Cloudflair::Settings.new zone_id
|
22
|
+
end
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
def path
|
27
|
+
"/zones/#{zone_id}"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,133 @@
|
|
1
|
+
require 'cloudflair/error/cloudflare_error'
|
2
|
+
require 'cloudflair/error/cloudflair_error'
|
3
|
+
|
4
|
+
module Cloudflair
|
5
|
+
module Communication
|
6
|
+
def self.included(other_klass)
|
7
|
+
other_klass.extend ClassMethods
|
8
|
+
end
|
9
|
+
|
10
|
+
module ClassMethods
|
11
|
+
def patchable_fields(*fields)
|
12
|
+
return @patchable_fields if @patchable_fields
|
13
|
+
|
14
|
+
if fields.nil?
|
15
|
+
@patchable_fields = []
|
16
|
+
elsif fields.is_a?(Array)
|
17
|
+
@patchable_fields = fields.map(&:to_s)
|
18
|
+
else
|
19
|
+
@patchable_fields = [fields.to_s]
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def revert
|
25
|
+
dirty.clear
|
26
|
+
end
|
27
|
+
|
28
|
+
def reload
|
29
|
+
@data = get
|
30
|
+
revert
|
31
|
+
self
|
32
|
+
end
|
33
|
+
|
34
|
+
def patch
|
35
|
+
return self if dirty.empty?
|
36
|
+
|
37
|
+
@data = response connection.patch path, dirty
|
38
|
+
revert
|
39
|
+
self
|
40
|
+
end
|
41
|
+
|
42
|
+
def update(updated_fields)
|
43
|
+
checked_updated_fields = {}
|
44
|
+
updated_fields.each do |key, values|
|
45
|
+
s_key = normalize_accessor key
|
46
|
+
|
47
|
+
checked_updated_fields[s_key] = values if patchable_fields.include? s_key
|
48
|
+
end
|
49
|
+
|
50
|
+
dirty.merge! checked_updated_fields
|
51
|
+
patch
|
52
|
+
end
|
53
|
+
|
54
|
+
def method_missing(name_as_symbol, *args, &block)
|
55
|
+
name = normalize_accessor name_as_symbol
|
56
|
+
|
57
|
+
if name.end_with?('=')
|
58
|
+
if patchable_fields.include?(name[0..-2])
|
59
|
+
dirty[name[0..-2]] = args[0]
|
60
|
+
return
|
61
|
+
else
|
62
|
+
super
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# allow access to the original data using 'zone.always_string!' or 'zone._name!'
|
67
|
+
if name.end_with?('!') && data.keys.include?(name[0..-2])
|
68
|
+
return data[name[0..2]]
|
69
|
+
end
|
70
|
+
|
71
|
+
return dirty[name] if dirty.keys.include? name
|
72
|
+
return data[name] if data.keys.include? name
|
73
|
+
|
74
|
+
super
|
75
|
+
end
|
76
|
+
|
77
|
+
def respond_to_missing?(name_as_symbol, *args)
|
78
|
+
name = normalize_accessor name_as_symbol
|
79
|
+
|
80
|
+
return true if name.end_with?('=') && patchable_fields.include?(name[0..-2])
|
81
|
+
return true if name.end_with?('!') && data.keys.include?(name[0..-2])
|
82
|
+
|
83
|
+
return true if dirty.keys.include? name
|
84
|
+
return true if data.keys.include? name
|
85
|
+
|
86
|
+
super
|
87
|
+
end
|
88
|
+
|
89
|
+
alias get! reload
|
90
|
+
alias save patch
|
91
|
+
|
92
|
+
private
|
93
|
+
|
94
|
+
def normalize_accessor(symbol_or_string)
|
95
|
+
always_string = symbol_or_string.to_s
|
96
|
+
|
97
|
+
# allows access to remote data who's name conflicts with pre-defined methods
|
98
|
+
# e.g. write 'zone._zone_id' instead of 'zone.zone_id' to access the remote value of 'zone_id'
|
99
|
+
always_string.start_with?('_') ? always_string[1..-1] : always_string
|
100
|
+
end
|
101
|
+
|
102
|
+
def data
|
103
|
+
@data ||= get
|
104
|
+
end
|
105
|
+
|
106
|
+
def get
|
107
|
+
response connection.get path
|
108
|
+
end
|
109
|
+
|
110
|
+
def response(response)
|
111
|
+
body = response.body
|
112
|
+
|
113
|
+
unless body['success']
|
114
|
+
fail Cloudflair::CloudflairError, "Unrecognized response format: '#{body}'" unless body['errors']
|
115
|
+
fail Cloudflair::CloudflareError, body['errors']
|
116
|
+
end
|
117
|
+
|
118
|
+
body['result']
|
119
|
+
end
|
120
|
+
|
121
|
+
def dirty
|
122
|
+
@dirty ||= {}
|
123
|
+
end
|
124
|
+
|
125
|
+
def connection
|
126
|
+
Connection.new
|
127
|
+
end
|
128
|
+
|
129
|
+
def patchable_fields
|
130
|
+
self.class.patchable_fields
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
class Connection
|
2
|
+
def self.new
|
3
|
+
config = Cloudflair.config
|
4
|
+
|
5
|
+
Faraday.new(url: config.cloudflare.api_base_url, headers: headers) do |faraday|
|
6
|
+
faraday.request :url_encoded
|
7
|
+
faraday.response :logger
|
8
|
+
faraday.response :json, content_type: /\bjson$/
|
9
|
+
|
10
|
+
faraday.adapter config.faraday.adapter || Faraday.default_adapter
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.headers
|
15
|
+
headers = {}
|
16
|
+
cloudflare_auth_config = Cloudflair.config.cloudflare.auth
|
17
|
+
if cloudflare_auth_config.user_service_key.nil?
|
18
|
+
headers['X-Auth-Key'] = cloudflare_auth_config.key
|
19
|
+
headers['X-Auth-Email'] = cloudflare_auth_config.email
|
20
|
+
else
|
21
|
+
headers['X-Auth-User-Service-Key'] = cloudflare_auth_config.user_service_key
|
22
|
+
end
|
23
|
+
headers
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Cloudflair
|
2
|
+
class CloudflareError < StandardError
|
3
|
+
attr_reader :cloudflare_errors
|
4
|
+
|
5
|
+
def initialize(cloudflare_errors)
|
6
|
+
@cloudflare_errors = cloudflare_errors
|
7
|
+
|
8
|
+
super(to_s)
|
9
|
+
end
|
10
|
+
|
11
|
+
def to_s
|
12
|
+
strings = cloudflare_errors.map { |cf_e| "\"#{cf_e[:message]}\" (Code: #{cf_e[:code]})" }
|
13
|
+
"[ #{strings.join ', '} ]"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/cloudflair.rb
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'cloudflair/version'
|
2
|
+
require 'dry-configurable'
|
3
|
+
|
4
|
+
##
|
5
|
+
# To configure cloudflair
|
6
|
+
# <code>
|
7
|
+
# require "cloudflair"
|
8
|
+
# Cloudflair.configure do |config|
|
9
|
+
# config.cloudflare.auth.key = 'YOUR_API_KEY'
|
10
|
+
# config.cloudflare.auth.email = 'YOUR_ACCOUNT_EMAIL'
|
11
|
+
# # if you have a user_service_key, you don't need auth.key and auth.email
|
12
|
+
# config.cloudflare.auth.user_service_key = 'YOUR_USER_SERVICE_KEY'
|
13
|
+
#
|
14
|
+
# # these are optional:
|
15
|
+
# config.cloudflare.api_base_url = 'https://your_cloudflare_mock.local'
|
16
|
+
# config.faraday.adapter = :your_preferred_faraday_adapter
|
17
|
+
# end
|
18
|
+
# </code>
|
19
|
+
module Cloudflair
|
20
|
+
# Your code goes here...
|
21
|
+
extend Dry::Configurable
|
22
|
+
|
23
|
+
setting :cloudflare do
|
24
|
+
setting :api_base_url, 'https://api.cloudflare.com'
|
25
|
+
setting :auth do
|
26
|
+
setting :key
|
27
|
+
setting :email
|
28
|
+
setting :user_service_key
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
setting :faraday do
|
33
|
+
setting :adapter, :net_http
|
34
|
+
end
|
35
|
+
end
|
metadata
ADDED
@@ -0,0 +1,163 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cloudflair
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Christian Mäder
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-10-19 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: faraday
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.8.11
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.8.11
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: faraday_middleware
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.10.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.10.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: dry-configurable
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.1.7
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.1.7
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.12'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.12'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '10.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '10.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubocop
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.44.1
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.44.1
|
111
|
+
description: Cloudflair aims to provide easy access to CloudFlares public API.
|
112
|
+
email:
|
113
|
+
- christian.maeder@nine.ch
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- ".gitignore"
|
119
|
+
- ".rspec"
|
120
|
+
- ".ruby-version"
|
121
|
+
- ".travis.yml"
|
122
|
+
- Gemfile
|
123
|
+
- LICENSE.txt
|
124
|
+
- README.md
|
125
|
+
- Rakefile
|
126
|
+
- bin/console
|
127
|
+
- bin/setup
|
128
|
+
- cloudflair.gemspec
|
129
|
+
- lib/cloudflair.rb
|
130
|
+
- lib/cloudflair/api/zone.rb
|
131
|
+
- lib/cloudflair/api/zone/settings.rb
|
132
|
+
- lib/cloudflair/api/zone/settings/development_mode.rb
|
133
|
+
- lib/cloudflair/communication.rb
|
134
|
+
- lib/cloudflair/connection.rb
|
135
|
+
- lib/cloudflair/error/cloudflair_error.rb
|
136
|
+
- lib/cloudflair/error/cloudflare_error.rb
|
137
|
+
- lib/cloudflair/version.rb
|
138
|
+
homepage: https://github.com/ninech/cloudflair
|
139
|
+
licenses:
|
140
|
+
- MIT
|
141
|
+
metadata:
|
142
|
+
allowed_push_host: https://rubygems.org
|
143
|
+
post_install_message:
|
144
|
+
rdoc_options: []
|
145
|
+
require_paths:
|
146
|
+
- lib
|
147
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
|
+
requirements:
|
154
|
+
- - ">="
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: '0'
|
157
|
+
requirements: []
|
158
|
+
rubyforge_project:
|
159
|
+
rubygems_version: 2.5.1
|
160
|
+
signing_key:
|
161
|
+
specification_version: 4
|
162
|
+
summary: Wrapper to CloudFlare's v4 REST API.
|
163
|
+
test_files: []
|