akamai_ccu 1.3.1 → 1.3.2
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 +4 -4
- data/README.md +3 -3
- data/lib/akamai_ccu/secret.rb +1 -1
- data/lib/akamai_ccu/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6eaa596838b0fdff7f72a7f842506e7d5ec85d7
|
4
|
+
data.tar.gz: 9d472c4f8eb94f7d3cf5c59d160202528947fd30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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("
|
98
|
+
secret = AkamaiCCU::Secret.by_edgerc(".edgerc")
|
99
99
|
|
100
100
|
# by txt file
|
101
|
-
secret = AkamaiCCU::Secret.by_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
|
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])
|
data/lib/akamai_ccu/secret.rb
CHANGED
data/lib/akamai_ccu/version.rb
CHANGED