global_sign 1.0.0 → 2.0.0

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: 84af7ff572f96ab29ffd4afe338dc508162d7f52
4
- data.tar.gz: c4dfa41c3d53f261631d92827e76bc0c74fb514f
3
+ metadata.gz: c5a54622924310a43ab46e3a6973962ad4bf45be
4
+ data.tar.gz: f887d279c8a4f186bcdb521b750e88bc608a0b00
5
5
  SHA512:
6
- metadata.gz: 13a1d366b9c0f6ebac2db39fbb4c440eb72c35c8d28de7fb6c7ed98e0d7d0d54082f2eb04d0604a477d647622c40e63b1b6eb6265fc7bad86cc2272f1a92d604
7
- data.tar.gz: 2295e6dab6536d59d6fba5200398364ded71eb10d26c7d2c2a875ec6e19b73e5e1d8d75faae81fe07f0be54e366c928d138ffd3b0626f922c925eed7a2e19628
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
+ [![Gem Version](https://badge.fury.io/rb/global_sign.svg)](https://badge.fury.io/rb/global_sign)
3
4
  [![wercker status](https://app.wercker.com/status/8cf8771f0da8bc4f1ea0adc8eb65b295/s/master "wercker status")](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: 'DV_LOW_URL',
28
+ ProductCode: @product_code,
28
29
  OrderKind: @order_kind,
29
30
  Licenses: 1,
30
31
  ValidityPeriod: {
@@ -1,3 +1,3 @@
1
1
  module GlobalSign
2
- VERSION = "1.0.0"
2
+ VERSION = "2.0.0"
3
3
  end
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: 1.0.0
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-10-31 00:00:00.000000000 Z
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
- - 'CHANGELOG.md '
177
+ - CHANGELOG.md
178
178
  - Gemfile
179
179
  - LICENSE
180
180
  - README.md
data/CHANGELOG.md DELETED
@@ -1,4 +0,0 @@
1
- ## 1.0.0
2
-
3
- - Support GlobalSign API: URLVerification & URLVerificationForIssue
4
- - Support GlobalSign API: GetOrderByOrderID