akamai-api-cps 0.3.0 → 0.4.0
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 +12 -0
- data/lib/akamai/api/cps.rb +4 -3
- data/lib/akamai/api/cps/version.rb +1 -1
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fe9cff20ba4ef569c85def295fc9f9fae53a5b0
|
4
|
+
data.tar.gz: 1fbdc382cf918c1895c16e1503c48517dda4c65e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cb0df1f7fbdcce315d9a3c0307c0cf9deab7024ff7c71bf726d6fabf210f19e357eaeab5c7f222ad3caa1d5bffd67bc44e531626928c4265d55741eb1690c83
|
7
|
+
data.tar.gz: cf2c5bfb6e76f9bcd32c31cb034b564f684dc82620a1a044cc87f491c58a8a1b8eb53c96e08e7fcc84e38567342b9c0affe521a03ecb9c06b37be983e11ac2e4
|
data/README.md
CHANGED
@@ -38,6 +38,18 @@ cert = staging_certificate(enrollment_id)
|
|
38
38
|
cert_pem = staging_full_chain(enrollment_id)
|
39
39
|
```
|
40
40
|
|
41
|
+
You can optionally configure an `.edgerc` filename and section:
|
42
|
+
|
43
|
+
```ruby
|
44
|
+
client = Akamai::API::CPS.new(edgerc: '~/.edgerc-qa', section: 'cps')
|
45
|
+
```
|
46
|
+
|
47
|
+
The client also supports printing of debug messages:
|
48
|
+
|
49
|
+
```ruby
|
50
|
+
client = Akamai::API::CPS.new(debug: true)
|
51
|
+
```
|
52
|
+
|
41
53
|
## Authors
|
42
54
|
|
43
55
|
Authored by [Rajiv Aaron Manglani](https://www.rajivmanglani.com/).
|
data/lib/akamai/api/cps.rb
CHANGED
@@ -8,9 +8,10 @@ require 'uri'
|
|
8
8
|
module Akamai
|
9
9
|
module API
|
10
10
|
class CPS
|
11
|
-
def initialize
|
12
|
-
|
13
|
-
@http.
|
11
|
+
def initialize(edgerc: '~/.edgerc', section: 'default', debug: false)
|
12
|
+
edgerc_path = File.expand_path(edgerc)
|
13
|
+
@http = Akamai::Edgegrid::HTTP.new(get_host(edgerc_path, section), 443)
|
14
|
+
@http.setup_from_edgerc(debug: debug, filename: edgerc_path, section: section)
|
14
15
|
end
|
15
16
|
|
16
17
|
def enrollments(contract_id)
|
metadata
CHANGED
@@ -1,69 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: akamai-api-cps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajiv Aaron Manglani
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: akamai-edgegrid
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.15'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.15'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '10.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '10.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: minitest
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '5.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '5.0'
|
69
69
|
description:
|
@@ -75,7 +75,7 @@ executables:
|
|
75
75
|
extensions: []
|
76
76
|
extra_rdoc_files: []
|
77
77
|
files:
|
78
|
-
-
|
78
|
+
- .gitignore
|
79
79
|
- Gemfile
|
80
80
|
- LICENSE.txt
|
81
81
|
- README.md
|
@@ -95,17 +95,17 @@ require_paths:
|
|
95
95
|
- lib
|
96
96
|
required_ruby_version: !ruby/object:Gem::Requirement
|
97
97
|
requirements:
|
98
|
-
- -
|
98
|
+
- - '>='
|
99
99
|
- !ruby/object:Gem::Version
|
100
100
|
version: '0'
|
101
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
|
-
- -
|
103
|
+
- - '>='
|
104
104
|
- !ruby/object:Gem::Version
|
105
105
|
version: '0'
|
106
106
|
requirements: []
|
107
107
|
rubyforge_project:
|
108
|
-
rubygems_version: 2.
|
108
|
+
rubygems_version: 2.0.14.1
|
109
109
|
signing_key:
|
110
110
|
specification_version: 4
|
111
111
|
summary: A ruby library which wraps the Akamai CPS API.
|