kscript 1.1.2 → 1.1.3

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: 29d10d822185ae11ba6256352e357068bb95a26a5400e18182c08831d7dc955f
4
- data.tar.gz: bd8acb2d087a1818a1cd8b60e60f2c4eb0951b6eb1e50311a8d8bfa9ba736ec9
3
+ metadata.gz: 0a2f3087ca0be403dbb58a59e10e328e215f9f02291607b40ff452817116aeda
4
+ data.tar.gz: 6fae98198c9d45e9f604e44120f59022c92f307a5bf747d440344d6556fa3716
5
5
  SHA512:
6
- metadata.gz: ffd635c5898e3a7362ca4a6b16f3f483a69d61478aee895d90d58cdf403f181a3a0a0b7195cb844c8c77d677d10e51449378d5447d328a520f1feb222ea9405b
7
- data.tar.gz: 4542801758b3d3e9b910f63cfa4e5f5ed389a5bfd180fafa23801813d9f029431484846215d5ff9d0d648c1a566af3884a62b5e8656f7dfc25f1ea6dc4e0ad90
6
+ metadata.gz: 633ca09cb55678be04cfa8fda8340557e3ef046c9cb7b442889ebc7dc2c4b8e904d17b77ed22e3106f48c162c3e8cbbc896fc359275faaa9ea9585960ed246ca
7
+ data.tar.gz: a6b469b394c161e5427e374126c0d8e55b453f95f73bc0c37da9b6237e25ac6a01dec579f5cb9a82f0e7dbe67f831e459ec5a12eadb5453b37d944ec03296b1a
@@ -17,11 +17,13 @@ module Kscript
17
17
  # @param cert_path [String] path to the certificate file
18
18
  def initialize(*args, **opts)
19
19
  super
20
- @cert_path = opts[:cert_path] || self.class::DEFAULT_CERT_PATH
20
+ @cert_path = args[0] || opts[:cert_path] || self.class::DEFAULT_CERT_PATH
21
21
  end
22
22
 
23
- def run
23
+ def run(*args, **_opts)
24
24
  with_error_handling do
25
+ # 支持运行时传入证书路径覆盖初始化时的路径
26
+ @cert_path = args[0] if args[0]
25
27
  generate
26
28
  end
27
29
  end
@@ -6,5 +6,5 @@
6
6
  # https://opensource.org/licenses/MIT
7
7
 
8
8
  module Kscript
9
- VERSION = '1.1.2'
9
+ VERSION = '1.1.3'
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kscript
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kk
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-07-17 00:00:00.000000000 Z
11
+ date: 2025-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3