cloud_party 0.1.11 → 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: e6c4d23b444985e311c3c54ef8139aba19c9a49ee259f16fe9ba049c4144b700
4
- data.tar.gz: 3db7e3106773cf502119ddf3e00329bdf44a3869ca6f9424a433500df4d36863
3
+ metadata.gz: ea936d4104179612043c6e522da8ae2e77e787bc808f423f9d6292f5f11a2a9a
4
+ data.tar.gz: da0db5d79fd575e5be4f0adecbea51364b618ede63774e970bdd3635010080f3
5
5
  SHA512:
6
- metadata.gz: d5d09d1631529ad0efa7806f4d776300b9e08f9d329e67ee6f7eb15ef46cb7dcc9154700aa3b70735fd0b41ea92d12c9ed7955d6a3ce1f9736c67e2748f48a93
7
- data.tar.gz: 5fd676715cc4fa2b6576f5deb5f6347678f31aeda41c2c1edd960adb1f328e9cec781a6ea1161a617ce3a48b9db7a2c6763904df185b18ebaf4654f8b4144aee
6
+ metadata.gz: 2602acb8688170b200ad2aeb6088a79dc92e480519718c7c3265270081598e16984f66eb6db451a717261a6fcd6637712644fcb09d8c6a23a3a90863b62703f3
7
+ data.tar.gz: c2d2800b7a476f604ad4224bfedcea85d29a9b77d055bc67f94073e62d992899705016eb6e60f992bdba0ff62beb2b6b95fcd55fbc20a60f76b7265a2f3cd735
@@ -1,7 +1,8 @@
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 Accounts
@@ -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
@@ -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 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.new.token}",
12
+ headers 'Authorization' => "Bearer #{CloudParty::Config.token}",
12
13
  'Content-Type' => 'application/json',
13
14
  'User-Agent' => "CloudParty/#{CloudParty::VERSION}"
14
15
 
@@ -1,7 +1,8 @@
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 Memberships
@@ -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.new.token}",
12
+ headers 'Authorization' => "Bearer #{CloudParty::Config.token}",
12
13
  'Content-Type' => 'application/json',
13
14
  'User-Agent' => "CloudParty/#{CloudParty::VERSION}"
14
15
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CloudParty
4
- VERSION = '0.1.11'
4
+ VERSION = '0.1.13'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloud_party
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Spencer