cloudflair 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/README.md +16 -1
- data/cloudflair.gemspec +3 -2
- data/lib/cloudflair/connection.rb +1 -1
- data/lib/cloudflair/version.rb +1 -1
- metadata +2 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4669b1632efb2191777972709d0f9adfa5ed8aff
|
4
|
+
data.tar.gz: b196ca2d670f3d2aa0cb2ef04e72c43fd1952183
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9d0d0bfc5784c16e1f7e2e35340da7851939db39a9fd93e1fd941d160751b68e0a58f7376f02bb85b1a02e7512639a8c3c8d54a2ceb7182380cb2c0bfc08bcb
|
7
|
+
data.tar.gz: 25bc5ddea914d14d5771dfe4ae0e3c4d75a4e79caa7ca71beb7031b1b331615bfe21e553116ce17be840c24236a1be6a15f79cf93300677ef481698ba3accee9
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -23,6 +23,22 @@ Or install it yourself as:
|
|
23
23
|
|
24
24
|
$ gem install cloudflair
|
25
25
|
|
26
|
+
## A Note on Faraday
|
27
|
+
|
28
|
+
We have decided to not tightly control the version of faraday (anymore). The versions of faraday that are known to work are listed below. If you want to update to a newer version, you're doing it at your own risk. (But if it works, which is usually when all specs pass, please send a PR to update the list below.)
|
29
|
+
|
30
|
+
To be on the safe side, we recommend to lock `faraday` to any of the versions listed below. This can be done like this:
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
gem 'cloudflair'
|
34
|
+
gem 'faraday', '>=0.13', '<0.14'
|
35
|
+
```
|
36
|
+
|
37
|
+
### Faraday Versions known to work
|
38
|
+
|
39
|
+
* `gem 'faraday', '>= 0.12', '<= 0.13'`
|
40
|
+
* `gem 'faraday', '>= 0.13', '<= 0.14'` (starting with `gem 'cloudflair', '>= 0.2.0'`)
|
41
|
+
|
26
42
|
## Usage
|
27
43
|
|
28
44
|
### Configuration
|
@@ -157,7 +173,6 @@ Bug reports and pull requests are welcome on GitHub at [ninech/cloudflair](https
|
|
157
173
|
* Full API support
|
158
174
|
* Metrics reporting
|
159
175
|
* Rate Limit Tracking
|
160
|
-
* (Global/Distributed) Rate Limit Tracking
|
161
176
|
|
162
177
|
## License
|
163
178
|
|
data/cloudflair.gemspec
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# coding: utf-8
|
2
|
+
|
2
3
|
lib = File.expand_path('../lib', __FILE__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
5
|
require 'cloudflair/version'
|
@@ -19,9 +20,9 @@ Gem::Specification.new do |spec|
|
|
19
20
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
21
|
spec.bindir = 'exe'
|
21
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
-
spec.require_paths = %w
|
23
|
+
spec.require_paths = %w[lib]
|
23
24
|
|
24
|
-
spec.add_runtime_dependency 'faraday', '>= 0.10.0'
|
25
|
+
spec.add_runtime_dependency 'faraday', '>= 0.10.0'
|
25
26
|
spec.add_runtime_dependency 'faraday_middleware'
|
26
27
|
spec.add_runtime_dependency 'dry-configurable', '~> 0.1'
|
27
28
|
spec.add_runtime_dependency 'faraday-detailed_logger'
|
@@ -20,7 +20,7 @@ module Cloudflair
|
|
20
20
|
elsif !cloudflare_auth_config.user_service_key.nil?
|
21
21
|
headers['X-Auth-User-Service-Key'] = cloudflare_auth_config.user_service_key
|
22
22
|
else
|
23
|
-
|
23
|
+
raise CloudflairError, 'Neither email & key nor user_service_key have been defined.'
|
24
24
|
end
|
25
25
|
headers
|
26
26
|
end
|
data/lib/cloudflair/version.rb
CHANGED
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.
|
4
|
+
version: 0.2.0
|
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-
|
11
|
+
date: 2017-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -17,9 +17,6 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 0.10.0
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '0.13'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,9 +24,6 @@ dependencies:
|
|
27
24
|
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 0.10.0
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '0.13'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: faraday_middleware
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|