global_sign 1.0.0 → 2.0.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/CHANGELOG.md +8 -0
- data/README.md +4 -0
- data/lib/global_sign/url_verification/request.rb +3 -2
- data/lib/global_sign/version.rb +1 -1
- metadata +3 -3
- data/CHANGELOG.md +0 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c5a54622924310a43ab46e3a6973962ad4bf45be
|
|
4
|
+
data.tar.gz: f887d279c8a4f186bcdb521b750e88bc608a0b00
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 33bb4c0ff984aaafd1c157701d7297fec8291a3f3187d2c99d5b24f5aebed49b28ea5fd0c9c3fee7c057c1f4b32e7a29b801096e95e5f878375b394d681e0e37
|
|
7
|
+
data.tar.gz: 42d3222a900e70362a42a2d22995343ac37c072d648050ec674d67fcee38ba96e229e9c8b72321dcf6fa0d6c618a023780b167464e613527678a08a61603ee11
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
## 2.0.0
|
|
2
|
+
|
|
3
|
+
- Added `product_code` required keyword argument to `GlobalSign::UrlVerification::Request` for selecting SSL certificate type
|
|
4
|
+
|
|
5
|
+
## 1.0.0
|
|
6
|
+
|
|
7
|
+
- Support GlobalSign API: URLVerification & URLVerificationForIssue
|
|
8
|
+
- Support GlobalSign API: GetOrderByOrderID
|
data/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# GlobalSign
|
|
2
2
|
|
|
3
|
+
[](https://badge.fury.io/rb/global_sign)
|
|
3
4
|
[](https://app.wercker.com/project/byKey/8cf8771f0da8bc4f1ea0adc8eb65b295)
|
|
4
5
|
|
|
5
6
|
A Ruby interface to the [GlobalSign](https://www.globalsign.com/) API.
|
|
@@ -62,6 +63,7 @@ contract = GlobalSign::Contract.new(
|
|
|
62
63
|
)
|
|
63
64
|
|
|
64
65
|
request = GlobalSign::UrlVerification::Request.new(
|
|
66
|
+
product_code: 'DV_LOW_URL', # 'DV_HIGH_URL' or 'DV_LOW_URL'
|
|
65
67
|
order_kind: 'new', # If you request a new certificate
|
|
66
68
|
validity_period_months: 6,
|
|
67
69
|
csr: csr,
|
|
@@ -90,6 +92,7 @@ end
|
|
|
90
92
|
|
|
91
93
|
# Not need to give the argument 'contract_info'
|
|
92
94
|
request = GlobalSign::UrlVerification::Request.new(
|
|
95
|
+
product_code: 'DV_LOW_URL',
|
|
93
96
|
order_kind: 'new',
|
|
94
97
|
validity_period_months: 6,
|
|
95
98
|
csr: csr,
|
|
@@ -101,6 +104,7 @@ And you should give the argument `renewal_target_order_id` .
|
|
|
101
104
|
|
|
102
105
|
```ruby
|
|
103
106
|
request = GlobalSign::UrlVerification::Request.new(
|
|
107
|
+
product_code: 'DV_LOW_URL',
|
|
104
108
|
order_kind: 'renewal',
|
|
105
109
|
validity_period_months: 6,
|
|
106
110
|
csr: csr,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
module GlobalSign
|
|
2
2
|
module UrlVerification
|
|
3
3
|
class Request < GlobalSign::Request
|
|
4
|
-
def initialize(order_kind:, validity_period_months:, csr:, renewal_target_order_id: nil, contract_info: nil)
|
|
4
|
+
def initialize(product_code:, order_kind:, validity_period_months:, csr:, renewal_target_order_id: nil, contract_info: nil)
|
|
5
|
+
@product_code = product_code
|
|
5
6
|
@order_kind = order_kind
|
|
6
7
|
@validity_period_months = validity_period_months
|
|
7
8
|
@csr = csr
|
|
@@ -24,7 +25,7 @@ module GlobalSign
|
|
|
24
25
|
def params
|
|
25
26
|
_params = {
|
|
26
27
|
OrderRequestParameter: {
|
|
27
|
-
ProductCode:
|
|
28
|
+
ProductCode: @product_code,
|
|
28
29
|
OrderKind: @order_kind,
|
|
29
30
|
Licenses: 1,
|
|
30
31
|
ValidityPeriod: {
|
data/lib/global_sign/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: global_sign
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ku00
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-11-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -174,7 +174,7 @@ files:
|
|
|
174
174
|
- ".env.sample"
|
|
175
175
|
- ".gitignore"
|
|
176
176
|
- ".rspec"
|
|
177
|
-
-
|
|
177
|
+
- CHANGELOG.md
|
|
178
178
|
- Gemfile
|
|
179
179
|
- LICENSE
|
|
180
180
|
- README.md
|
data/CHANGELOG.md
DELETED