digicert 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/.hound.yml +3 -0
- data/.rspec +0 -1
- data/.rubocop.yml +629 -0
- data/.sample.env +4 -0
- data/.sample.pryrc +3 -0
- data/.travis.yml +5 -2
- data/LICENSE.txt +21 -0
- data/README.md +812 -9
- data/bin/console +2 -5
- data/bin/rspec +17 -0
- data/digicert.gemspec +7 -14
- data/lib/digicert.rb +40 -2
- data/lib/digicert/actions.rb +9 -0
- data/lib/digicert/actions/all.rb +27 -0
- data/lib/digicert/actions/base.rb +11 -0
- data/lib/digicert/actions/create.rb +25 -0
- data/lib/digicert/actions/fetch.rb +21 -0
- data/lib/digicert/actions/update.rb +25 -0
- data/lib/digicert/base.rb +35 -0
- data/lib/digicert/base_order.rb +39 -0
- data/lib/digicert/certificate.rb +43 -0
- data/lib/digicert/certificate_downloader.rb +137 -0
- data/lib/digicert/certificate_request.rb +19 -0
- data/lib/digicert/client_certificate/base.rb +17 -0
- data/lib/digicert/client_certificate/digital_signature_plus.rb +13 -0
- data/lib/digicert/client_certificate/email_security_plus.rb +13 -0
- data/lib/digicert/client_certificate/premium.rb +17 -0
- data/lib/digicert/config.rb +21 -0
- data/lib/digicert/configuration.rb +26 -0
- data/lib/digicert/container.rb +35 -0
- data/lib/digicert/container_template.rb +32 -0
- data/lib/digicert/csr_generator.rb +43 -0
- data/lib/digicert/debugger.rb +34 -0
- data/lib/digicert/domain.rb +59 -0
- data/lib/digicert/duplicate_certificate.rb +21 -0
- data/lib/digicert/duplicate_certificate_finder.rb +42 -0
- data/lib/digicert/email_validation.rb +35 -0
- data/lib/digicert/errors.rb +30 -0
- data/lib/digicert/errors/forbidden.rb +9 -0
- data/lib/digicert/errors/request_error.rb +37 -0
- data/lib/digicert/errors/server_error.rb +9 -0
- data/lib/digicert/errors/unauthorized.rb +9 -0
- data/lib/digicert/expiring_order.rb +21 -0
- data/lib/digicert/findable.rb +33 -0
- data/lib/digicert/order.rb +81 -0
- data/lib/digicert/order_cancellation.rb +25 -0
- data/lib/digicert/order_duplicator.rb +11 -0
- data/lib/digicert/order_manager.rb +39 -0
- data/lib/digicert/order_reissuer.rb +11 -0
- data/lib/digicert/organization.rb +43 -0
- data/lib/digicert/product.rb +14 -0
- data/lib/digicert/request.rb +123 -0
- data/lib/digicert/response.rb +30 -0
- data/lib/digicert/ssl_certificate/base.rb +9 -0
- data/lib/digicert/ssl_certificate/ssl_ev_plus.rb +13 -0
- data/lib/digicert/ssl_certificate/ssl_plus.rb +13 -0
- data/lib/digicert/ssl_certificate/ssl_wildcard.rb +13 -0
- data/lib/digicert/version.rb +23 -1
- data/spec/acceptance/certificate_download_spec.rb +68 -0
- data/spec/acceptance/duplicating_certificate_spec.rb +86 -0
- data/spec/acceptance/reissuing_certificate_spec.rb +104 -0
- data/spec/digicert/actions/all_spec.rb +26 -0
- data/spec/digicert/actions/create_spec.rb +47 -0
- data/spec/digicert/actions/fetch_spec.rb +28 -0
- data/spec/digicert/actions/update_spec.rb +39 -0
- data/spec/digicert/certificate_downloader_spec.rb +89 -0
- data/spec/digicert/certificate_request_spec.rb +49 -0
- data/spec/digicert/certificate_spec.rb +93 -0
- data/spec/digicert/client_certificate/digital_signature_plus_spec.rb +32 -0
- data/spec/digicert/client_certificate/email_security_plus_spec.rb +36 -0
- data/spec/digicert/client_certificate/premium_spec.rb +34 -0
- data/spec/digicert/config_spec.rb +39 -0
- data/spec/digicert/container_spec.rb +44 -0
- data/spec/digicert/container_template_spec.rb +32 -0
- data/spec/digicert/csr_generator_spec.rb +31 -0
- data/spec/digicert/domain_spec.rb +89 -0
- data/spec/digicert/duplicate_certificate_finder_spec.rb +27 -0
- data/spec/digicert/duplicate_certificate_spec.rb +15 -0
- data/spec/digicert/email_validation_spec.rb +26 -0
- data/spec/digicert/expiring_order_spec.rb +16 -0
- data/spec/digicert/findable_spec.rb +19 -0
- data/spec/digicert/order_cancellation_spec.rb +24 -0
- data/spec/digicert/order_duplicator_spec.rb +35 -0
- data/spec/digicert/order_reissuer_spec.rb +35 -0
- data/spec/digicert/order_spec.rb +134 -0
- data/spec/digicert/organization_spec.rb +61 -0
- data/spec/digicert/product_spec.rb +28 -0
- data/spec/digicert/request_spec.rb +47 -0
- data/spec/digicert/ssl_certificate/ssl_ev_plus_spec.rb +35 -0
- data/spec/digicert/ssl_certificate/ssl_plus_spec.rb +36 -0
- data/spec/digicert/ssl_certificate/ssl_wildcard_spec.rb +35 -0
- data/spec/fixtures/certificate.pem +79 -0
- data/spec/fixtures/certificate.zip +0 -0
- data/spec/fixtures/certificate_request.json +116 -0
- data/spec/fixtures/certificate_requests.json +59 -0
- data/spec/fixtures/certificate_revoked.json +13 -0
- data/spec/fixtures/container.json +15 -0
- data/spec/fixtures/container_created.json +3 -0
- data/spec/fixtures/container_template.json +15 -0
- data/spec/fixtures/container_templates.json +14 -0
- data/spec/fixtures/containers.json +14 -0
- data/spec/fixtures/domain.json +71 -0
- data/spec/fixtures/domain_created.json +3 -0
- data/spec/fixtures/domains.json +49 -0
- data/spec/fixtures/email_validations.json +17 -0
- data/spec/fixtures/empty.json +0 -0
- data/spec/fixtures/errors.json +6 -0
- data/spec/fixtures/expiring_orders.json +20 -0
- data/spec/fixtures/order.json +107 -0
- data/spec/fixtures/order_created.json +9 -0
- data/spec/fixtures/order_duplicated.json +8 -0
- data/spec/fixtures/order_duplications.json +57 -0
- data/spec/fixtures/order_reissued.json +8 -0
- data/spec/fixtures/orders.json +93 -0
- data/spec/fixtures/organization.json +35 -0
- data/spec/fixtures/organization_created.json +3 -0
- data/spec/fixtures/organizations.json +84 -0
- data/spec/fixtures/ping.json +3 -0
- data/spec/fixtures/product.json +71 -0
- data/spec/fixtures/products.json +100 -0
- data/spec/fixtures/rsa4096.key +51 -0
- data/spec/requests/certificate_duplication_spec.rb +41 -0
- data/spec/requests/certificate_generation_spec.rb +93 -0
- data/spec/requests/certificate_reissuing_spec.rb +38 -0
- data/spec/requests/container_management_spec.rb +36 -0
- data/spec/requests/domain_management_spec.rb +64 -0
- data/spec/requests/order_client_email_security_plus_spec.rb +38 -0
- data/spec/requests/order_management_spec.rb +24 -0
- data/spec/requests/order_ssl_ev_plus_spec.rb +57 -0
- data/spec/requests/order_ssl_wildcard_spec.rb +57 -0
- data/spec/requests/organization_management_spec.rb +22 -0
- data/spec/requests/product_management_spec.rb +24 -0
- data/spec/requests/request_management_spec.rb +24 -0
- data/spec/spec_helper.rb +35 -0
- data/spec/support/fake_digicert_api.rb +324 -0
- metadata +162 -5
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: digicert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: r509
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: pry
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -24,6 +38,20 @@ dependencies:
|
|
24
38
|
- - ">="
|
25
39
|
- !ruby/object:Gem::Version
|
26
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: dotenv
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
27
55
|
- !ruby/object:Gem::Dependency
|
28
56
|
name: bundler
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -88,19 +116,148 @@ extensions: []
|
|
88
116
|
extra_rdoc_files: []
|
89
117
|
files:
|
90
118
|
- ".gitignore"
|
119
|
+
- ".hound.yml"
|
91
120
|
- ".rspec"
|
121
|
+
- ".rubocop.yml"
|
122
|
+
- ".sample.env"
|
123
|
+
- ".sample.pryrc"
|
92
124
|
- ".travis.yml"
|
93
125
|
- CODE_OF_CONDUCT.md
|
94
126
|
- Gemfile
|
127
|
+
- LICENSE.txt
|
95
128
|
- README.md
|
96
129
|
- Rakefile
|
97
130
|
- bin/console
|
131
|
+
- bin/rspec
|
98
132
|
- bin/setup
|
99
133
|
- digicert.gemspec
|
100
134
|
- lib/digicert.rb
|
135
|
+
- lib/digicert/actions.rb
|
136
|
+
- lib/digicert/actions/all.rb
|
137
|
+
- lib/digicert/actions/base.rb
|
138
|
+
- lib/digicert/actions/create.rb
|
139
|
+
- lib/digicert/actions/fetch.rb
|
140
|
+
- lib/digicert/actions/update.rb
|
141
|
+
- lib/digicert/base.rb
|
142
|
+
- lib/digicert/base_order.rb
|
143
|
+
- lib/digicert/certificate.rb
|
144
|
+
- lib/digicert/certificate_downloader.rb
|
145
|
+
- lib/digicert/certificate_request.rb
|
146
|
+
- lib/digicert/client_certificate/base.rb
|
147
|
+
- lib/digicert/client_certificate/digital_signature_plus.rb
|
148
|
+
- lib/digicert/client_certificate/email_security_plus.rb
|
149
|
+
- lib/digicert/client_certificate/premium.rb
|
150
|
+
- lib/digicert/config.rb
|
151
|
+
- lib/digicert/configuration.rb
|
152
|
+
- lib/digicert/container.rb
|
153
|
+
- lib/digicert/container_template.rb
|
154
|
+
- lib/digicert/csr_generator.rb
|
155
|
+
- lib/digicert/debugger.rb
|
156
|
+
- lib/digicert/domain.rb
|
157
|
+
- lib/digicert/duplicate_certificate.rb
|
158
|
+
- lib/digicert/duplicate_certificate_finder.rb
|
159
|
+
- lib/digicert/email_validation.rb
|
160
|
+
- lib/digicert/errors.rb
|
161
|
+
- lib/digicert/errors/forbidden.rb
|
162
|
+
- lib/digicert/errors/request_error.rb
|
163
|
+
- lib/digicert/errors/server_error.rb
|
164
|
+
- lib/digicert/errors/unauthorized.rb
|
165
|
+
- lib/digicert/expiring_order.rb
|
166
|
+
- lib/digicert/findable.rb
|
167
|
+
- lib/digicert/order.rb
|
168
|
+
- lib/digicert/order_cancellation.rb
|
169
|
+
- lib/digicert/order_duplicator.rb
|
170
|
+
- lib/digicert/order_manager.rb
|
171
|
+
- lib/digicert/order_reissuer.rb
|
172
|
+
- lib/digicert/organization.rb
|
173
|
+
- lib/digicert/product.rb
|
174
|
+
- lib/digicert/request.rb
|
175
|
+
- lib/digicert/response.rb
|
176
|
+
- lib/digicert/ssl_certificate/base.rb
|
177
|
+
- lib/digicert/ssl_certificate/ssl_ev_plus.rb
|
178
|
+
- lib/digicert/ssl_certificate/ssl_plus.rb
|
179
|
+
- lib/digicert/ssl_certificate/ssl_wildcard.rb
|
101
180
|
- lib/digicert/version.rb
|
181
|
+
- spec/acceptance/certificate_download_spec.rb
|
182
|
+
- spec/acceptance/duplicating_certificate_spec.rb
|
183
|
+
- spec/acceptance/reissuing_certificate_spec.rb
|
184
|
+
- spec/digicert/actions/all_spec.rb
|
185
|
+
- spec/digicert/actions/create_spec.rb
|
186
|
+
- spec/digicert/actions/fetch_spec.rb
|
187
|
+
- spec/digicert/actions/update_spec.rb
|
188
|
+
- spec/digicert/certificate_downloader_spec.rb
|
189
|
+
- spec/digicert/certificate_request_spec.rb
|
190
|
+
- spec/digicert/certificate_spec.rb
|
191
|
+
- spec/digicert/client_certificate/digital_signature_plus_spec.rb
|
192
|
+
- spec/digicert/client_certificate/email_security_plus_spec.rb
|
193
|
+
- spec/digicert/client_certificate/premium_spec.rb
|
194
|
+
- spec/digicert/config_spec.rb
|
195
|
+
- spec/digicert/container_spec.rb
|
196
|
+
- spec/digicert/container_template_spec.rb
|
197
|
+
- spec/digicert/csr_generator_spec.rb
|
198
|
+
- spec/digicert/domain_spec.rb
|
199
|
+
- spec/digicert/duplicate_certificate_finder_spec.rb
|
200
|
+
- spec/digicert/duplicate_certificate_spec.rb
|
201
|
+
- spec/digicert/email_validation_spec.rb
|
202
|
+
- spec/digicert/expiring_order_spec.rb
|
203
|
+
- spec/digicert/findable_spec.rb
|
204
|
+
- spec/digicert/order_cancellation_spec.rb
|
205
|
+
- spec/digicert/order_duplicator_spec.rb
|
206
|
+
- spec/digicert/order_reissuer_spec.rb
|
207
|
+
- spec/digicert/order_spec.rb
|
208
|
+
- spec/digicert/organization_spec.rb
|
209
|
+
- spec/digicert/product_spec.rb
|
210
|
+
- spec/digicert/request_spec.rb
|
211
|
+
- spec/digicert/ssl_certificate/ssl_ev_plus_spec.rb
|
212
|
+
- spec/digicert/ssl_certificate/ssl_plus_spec.rb
|
213
|
+
- spec/digicert/ssl_certificate/ssl_wildcard_spec.rb
|
214
|
+
- spec/fixtures/certificate.pem
|
215
|
+
- spec/fixtures/certificate.zip
|
216
|
+
- spec/fixtures/certificate_request.json
|
217
|
+
- spec/fixtures/certificate_requests.json
|
218
|
+
- spec/fixtures/certificate_revoked.json
|
219
|
+
- spec/fixtures/container.json
|
220
|
+
- spec/fixtures/container_created.json
|
221
|
+
- spec/fixtures/container_template.json
|
222
|
+
- spec/fixtures/container_templates.json
|
223
|
+
- spec/fixtures/containers.json
|
224
|
+
- spec/fixtures/domain.json
|
225
|
+
- spec/fixtures/domain_created.json
|
226
|
+
- spec/fixtures/domains.json
|
227
|
+
- spec/fixtures/email_validations.json
|
228
|
+
- spec/fixtures/empty.json
|
229
|
+
- spec/fixtures/errors.json
|
230
|
+
- spec/fixtures/expiring_orders.json
|
231
|
+
- spec/fixtures/order.json
|
232
|
+
- spec/fixtures/order_created.json
|
233
|
+
- spec/fixtures/order_duplicated.json
|
234
|
+
- spec/fixtures/order_duplications.json
|
235
|
+
- spec/fixtures/order_reissued.json
|
236
|
+
- spec/fixtures/orders.json
|
237
|
+
- spec/fixtures/organization.json
|
238
|
+
- spec/fixtures/organization_created.json
|
239
|
+
- spec/fixtures/organizations.json
|
240
|
+
- spec/fixtures/ping.json
|
241
|
+
- spec/fixtures/product.json
|
242
|
+
- spec/fixtures/products.json
|
243
|
+
- spec/fixtures/rsa4096.key
|
244
|
+
- spec/requests/certificate_duplication_spec.rb
|
245
|
+
- spec/requests/certificate_generation_spec.rb
|
246
|
+
- spec/requests/certificate_reissuing_spec.rb
|
247
|
+
- spec/requests/container_management_spec.rb
|
248
|
+
- spec/requests/domain_management_spec.rb
|
249
|
+
- spec/requests/order_client_email_security_plus_spec.rb
|
250
|
+
- spec/requests/order_management_spec.rb
|
251
|
+
- spec/requests/order_ssl_ev_plus_spec.rb
|
252
|
+
- spec/requests/order_ssl_wildcard_spec.rb
|
253
|
+
- spec/requests/organization_management_spec.rb
|
254
|
+
- spec/requests/product_management_spec.rb
|
255
|
+
- spec/requests/request_management_spec.rb
|
256
|
+
- spec/spec_helper.rb
|
257
|
+
- spec/support/fake_digicert_api.rb
|
102
258
|
homepage: https://www.ribose.com
|
103
|
-
licenses:
|
259
|
+
licenses:
|
260
|
+
- MIT
|
104
261
|
metadata: {}
|
105
262
|
post_install_message:
|
106
263
|
rdoc_options: []
|
@@ -110,7 +267,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
110
267
|
requirements:
|
111
268
|
- - ">="
|
112
269
|
- !ruby/object:Gem::Version
|
113
|
-
version:
|
270
|
+
version: 2.1.9
|
114
271
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
272
|
requirements:
|
116
273
|
- - ">="
|