pki_express 1.2.0 → 1.3.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 +3 -0
- data/README.md +1 -1
- data/lib/pki_express/pki_express_operator.rb +19 -1
- data/lib/pki_express/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96112f72042a8deaa33c44615735b0cf1583cbf8ff3d9f2063a9c34fae618de6
|
4
|
+
data.tar.gz: 7f154465e01e5159bce9ab4ff6548fcf74564fdb7cc8b57dec8e88958966e1aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80afd152f8767046e2a6a0314a3d05ca4d94039be98a19d14e2b56d8dc2bbdae8ed6485e4fede075a59311a33635665766a64539f423c4023e64bbf6db6da5fa
|
7
|
+
data.tar.gz: 5b4fdc45bea0e0b534b46f291121702d0bca002ed579eb01c10c8836def784ed086f499d9a74c2939c34ab20fe9e134536b0e39359afb26cfd630fcce52c555f
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -7,7 +7,7 @@ This library contains classes that encapsulate the calls to PKI Express.
|
|
7
7
|
The recommended way to install **PKI Expresss lib** is through setting in your Gemfile:
|
8
8
|
|
9
9
|
````ruby
|
10
|
-
gem 'pki_express', '~> 1.
|
10
|
+
gem 'pki_express', '~> 1.3.0'
|
11
11
|
````
|
12
12
|
|
13
13
|
And with installing via [Bundler](http://bundler.io/) on your project root folder:
|
@@ -5,7 +5,7 @@ module PkiExpress
|
|
5
5
|
|
6
6
|
class PkiExpressOperator
|
7
7
|
attr_accessor :offline, :trust_lacuna_test_root, :signature_policy,
|
8
|
-
:timestamp_authority
|
8
|
+
:timestamp_authority, :culture, :time_zone
|
9
9
|
|
10
10
|
def initialize(config = PkiExpressConfig.new)
|
11
11
|
@temp_files = []
|
@@ -18,6 +18,8 @@ module PkiExpress
|
|
18
18
|
@trust_lacuna_test_root = false
|
19
19
|
@signature_policy = nil
|
20
20
|
@timestamp_authority = nil
|
21
|
+
@culture = nil
|
22
|
+
@time_zone = nil
|
21
23
|
|
22
24
|
ObjectSpace.define_finalizer(self, self.class.method(:finalize))
|
23
25
|
end
|
@@ -107,6 +109,22 @@ module PkiExpress
|
|
107
109
|
cmd_args.append('--base64')
|
108
110
|
end
|
109
111
|
|
112
|
+
unless @culture.nil?
|
113
|
+
cmd_args.append('--culture')
|
114
|
+
cmd_args.append(@culture)
|
115
|
+
# This option can only be used on versions
|
116
|
+
# greater than 1.10 of the PKI Express.
|
117
|
+
@version_manager.require_version('1.10')
|
118
|
+
end
|
119
|
+
|
120
|
+
unless @time_zone.nil?
|
121
|
+
cmd_args.append('--timezone')
|
122
|
+
cmd_args.append(@time_zone)
|
123
|
+
# This option can only be used on versions
|
124
|
+
# greater than 1.10 of the PKI Express.
|
125
|
+
@version_manager.require_version('1.10')
|
126
|
+
end
|
127
|
+
|
110
128
|
# Verify the necessity of using the --min-version flag.
|
111
129
|
if @version_manager.require_min_version_flag?
|
112
130
|
cmd_args.append('--min-version')
|
data/lib/pki_express/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pki_express
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ismael Medeiros
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|