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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62e8fe6ca919ebd787bc53af1453f8bc5633f6d8437ec678b8dcf421a2da559a
4
- data.tar.gz: 12d99c86baf13854de2452e758fea64e88a8f90ef5a76be2bed5e5ca8b994492
3
+ metadata.gz: 96112f72042a8deaa33c44615735b0cf1583cbf8ff3d9f2063a9c34fae618de6
4
+ data.tar.gz: 7f154465e01e5159bce9ab4ff6548fcf74564fdb7cc8b57dec8e88958966e1aa
5
5
  SHA512:
6
- metadata.gz: 93d0eb30b2d51e8fe39984adb0c341648d2c7c380e46be338c1aca4586607bf99ec7e6b462bdbac3951da8b0bc51614a3a03238bbdefa49b097e620611837612
7
- data.tar.gz: e387615c1393793df5cc6d3cb63f0da8920d9e8379e77587a94877e9f4e77fbfc7b6c584ecfc16744d04fccd710775410ddc00c7cb12f6e35298b1bf36c51d27
6
+ metadata.gz: 80afd152f8767046e2a6a0314a3d05ca4d94039be98a19d14e2b56d8dc2bbdae8ed6485e4fede075a59311a33635665766a64539f423c4023e64bbf6db6da5fa
7
+ data.tar.gz: 5b4fdc45bea0e0b534b46f291121702d0bca002ed579eb01c10c8836def784ed086f499d9a74c2939c34ab20fe9e134536b0e39359afb26cfd630fcce52c555f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.3.0 (2021-08-04)
2
+ * Adds culture and time zone attributes to PkiExpressOperator
3
+
1
4
  ## 1.2.0 (2021-01-25)
2
5
  * Adds PAdES Explorer
3
6
 
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.2.0'
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')
@@ -1,3 +1,3 @@
1
1
  module PkiExpress
2
- VERSION = '1.2.0'
2
+ VERSION = '1.3.0'
3
3
  end
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.2.0
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-01-25 00:00:00.000000000 Z
11
+ date: 2021-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler