cloud_party 0.1.12 → 0.1.13
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea936d4104179612043c6e522da8ae2e77e787bc808f423f9d6292f5f11a2a9a
|
4
|
+
data.tar.gz: da0db5d79fd575e5be4f0adecbea51364b618ede63774e970bdd3635010080f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2602acb8688170b200ad2aeb6088a79dc92e480519718c7c3265270081598e16984f66eb6db451a717261a6fcd6637712644fcb09d8c6a23a3a90863b62703f3
|
7
|
+
data.tar.gz: c2d2800b7a476f604ad4224bfedcea85d29a9b77d055bc67f94073e62d992899705016eb6e60f992bdba0ff62beb2b6b95fcd55fbc20a60f76b7265a2f3cd735
|
@@ -6,8 +6,10 @@
|
|
6
6
|
# Created: 9/14/19
|
7
7
|
#
|
8
8
|
# License is in project root, MIT License is in use.
|
9
|
+
require 'cloud_party/config'
|
9
10
|
require 'cloud_party/context'
|
10
11
|
require 'cloud_party/responses'
|
12
|
+
CloudParty::Config.new
|
11
13
|
module CloudParty
|
12
14
|
module Nodes
|
13
15
|
class DNSRecords
|
@@ -2,13 +2,14 @@
|
|
2
2
|
require 'cloud_party/config'
|
3
3
|
require 'cloud_party/context'
|
4
4
|
require 'cloud_party/responses'
|
5
|
+
CloudParty::Config.new
|
5
6
|
module CloudParty
|
6
7
|
module Nodes
|
7
8
|
class IPs
|
8
9
|
include CloudParty::Context
|
9
10
|
include HTTParty
|
10
11
|
base_uri 'https://api.cloudflare.com/client/v4'
|
11
|
-
headers 'Authorization' => "Bearer #{CloudParty::Config.
|
12
|
+
headers 'Authorization' => "Bearer #{CloudParty::Config.token}",
|
12
13
|
'Content-Type' => 'application/json',
|
13
14
|
'User-Agent' => "CloudParty/#{CloudParty::VERSION}"
|
14
15
|
|
@@ -1,14 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
2
|
+
require 'cloud_party/config'
|
3
3
|
require 'cloud_party/context'
|
4
4
|
require 'cloud_party/responses'
|
5
|
+
CloudParty::Config.new
|
5
6
|
module CloudParty
|
6
7
|
module Nodes
|
7
8
|
class Zones
|
8
9
|
include CloudParty::Context
|
9
10
|
include HTTParty
|
10
11
|
base_uri 'https://api.cloudflare.com/client/v4'
|
11
|
-
headers 'Authorization' => "Bearer #{CloudParty::Config.
|
12
|
+
headers 'Authorization' => "Bearer #{CloudParty::Config.token}",
|
12
13
|
'Content-Type' => 'application/json',
|
13
14
|
'User-Agent' => "CloudParty/#{CloudParty::VERSION}"
|
14
15
|
|
data/lib/cloud_party/version.rb
CHANGED