akamai_ccu 1.3.1 → 1.3.2

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
2
  SHA1:
3
- metadata.gz: 18a49b343fe161a96498116ab33c0615d437daea
4
- data.tar.gz: e55db06789e8858f8197cf35a5ea4574733defd4
3
+ metadata.gz: a6eaa596838b0fdff7f72a7f842506e7d5ec85d7
4
+ data.tar.gz: 9d472c4f8eb94f7d3cf5c59d160202528947fd30
5
5
  SHA512:
6
- metadata.gz: b1ad4227f6bfff9f0e9cc56085a9caccda224d0856e7e9230c8394593e104e7d7253c2c8c99833a1d3d8717c3924d3d6e1214315c97db08c0caeddd8890f1aa7
7
- data.tar.gz: 88c48b409ff6c2843fd7c4b346370759d851a27fc2429335c239c2a33bffac19c6a7333df08c0b881fac5079753d9322bc67d73a2d98f79990263a8329fd7552
6
+ metadata.gz: 79f3d813de69b831c4507692f3c7041f49b1abb75fa46f874d7787a1ce4f3f624f4602371dad15d892f83c593a64a1790d492ea91e22993372f455e5a069e40c
7
+ data.tar.gz: 23008d8b8e38bc903526a41162c496d74d3ad6e2f62d47916d4e8fca0e95d3bdd259254796e2c64d8ca900f3fe0527e787e9be3d9088c1a45d72fecf924b07bf
data/README.md CHANGED
@@ -95,10 +95,10 @@ Once you've got APIs credentials, you can instantiate the secret object aimed to
95
95
  require "akamai_ccu"
96
96
 
97
97
  # by .edgerc
98
- secret = AkamaiCCU::Secret.by_edgerc("./.edgerc") # default to current working directory
98
+ secret = AkamaiCCU::Secret.by_edgerc(".edgerc")
99
99
 
100
100
  # by txt file
101
- secret = AkamaiCCU::Secret.by_txt("./tokens.txt")
101
+ secret = AkamaiCCU::Secret.by_txt("tokens.txt")
102
102
 
103
103
  # by specifying arguments
104
104
  secret = AkamaiCCU::Secret.new(client_secret: "xxx=", host: "akaa-baseurl-xxx-xxx.luna.akamaiapis.net/", access_token: "akab-access-token-xxx-xxx", client_token: "akab-client-token-xxx-xxx", max_body: 131072)
@@ -126,7 +126,7 @@ AkamaiCCU::Wrapper.delete_by_url!(%w[https://akaa-baseurl-xxx-xxx.luna.akamaiapi
126
126
 
127
127
  #### Reuse client
128
128
  By default `Wrapper` class methods create a brand new Net::HTTP client on each call.
129
- If this is an issue for you, you can rely on standard instance creation and just change the `endpoint` collaborator to switch API:
129
+ If this is an issue for you, you can rely `Wrapper#call` instance method and just change the `endpoint` collaborator to switch API:
130
130
  ```ruby
131
131
  wrapper = AkamaiCCU::Wrapper.new(secret: secret, endpoint: AkamaiCCU::Endpoint.by_name("invalidate_by_url"))
132
132
  wrapper.call(%w[https://akaa-baseurl-xxx-xxx.luna.akamaiapis.net/*.css])
@@ -20,7 +20,7 @@ module AkamaiCCU
20
20
  factory(Hash[data], time)
21
21
  end
22
22
 
23
- def by_edgerc(name = ".edgerc", time = Time.now)
23
+ def by_edgerc(name, time = Time.now)
24
24
  path = File.expand_path(name)
25
25
  return unless File.exist?(path)
26
26
  data = File.readlines(path).map(&:strip)
@@ -1,3 +1,3 @@
1
1
  module AkamaiCCU
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: akamai_ccu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - costajob