jalc 2.1.1 → 2.1.2

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
  SHA256:
3
- metadata.gz: eccd488a68365b574a6545965ead9f49c4f49102d4296be4d2dc01ca05201035
4
- data.tar.gz: 369a77d191d672afae36aa01d404d0bfc7b79a89ea71225c84b8754cd8e8ad3e
3
+ metadata.gz: 2407227918e30a52acb05438fbb3b1713ee9cb2206000204d795030b78d7f265
4
+ data.tar.gz: 390b6c7e439ef7f487af098808cc717411610d1c07aeafe15b95404eeed7d954
5
5
  SHA512:
6
- metadata.gz: 8a6a6882a2855ea1887600d6980419900a329c3ee9594704ae6ab8fbac0f0e60516475fe6d994975159e440afa6e6185be4e249cc462511a3acb39471998c94c
7
- data.tar.gz: 20cc3fd0dae75d85d173b8be824421d3bf641ab154c4c7026d252380211b9b46adfb23c7e7fc23ebb24c5484d7b1dcf7cbda8dc809fe7e90c6dc4c007f0ff90b
6
+ metadata.gz: 275263f97587d4258f29d850d19378cdcfedf3ac502b3d13d52cb72b5c259e0f87159cb1a9d136c9fbb9d6c0b4a58b3f2d36ebb2007fe8fe6ca3af38793196ff
7
+ data.tar.gz: d09786ab3e4a994020e6e1f52d575e4bd18f57ce2728944bd8987682c93ec0104150d1a5133fbe3251acb05b55f1984731de23c0aabd313c5e6821a33dc12458
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [2.1.2] - 2022-04-13
4
+
5
+ - Fix the condition of log filtering
6
+
3
7
  ## [2.1.1] - 2022-04-08
4
8
 
5
9
  - Fix a typo of a registration API parameter
@@ -53,7 +53,7 @@ module JaLC
53
53
  f.response :raise_error
54
54
  if config.logger
55
55
  f.response :logger, config.logger, { headers: false } do |logger|
56
- logger.filter(/(password=)\w+/, '\1[FILTERED]')
56
+ logger.filter(/(passwd=)([^&]+)/, '\1[REMOVED]')
57
57
  end
58
58
  end
59
59
  end
data/lib/jalc/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JaLC
4
- VERSION = '2.1.1'
4
+ VERSION = '2.1.2'
5
5
  end
data/sig/jalc.rbs CHANGED
@@ -5,8 +5,6 @@ module JaLC
5
5
  VERSION: String
6
6
 
7
7
  module Registration
8
- BASE_URL: String
9
-
10
8
  def self.configure: { (Config) -> void } -> void
11
9
  def self.config: -> Config
12
10
 
@@ -33,6 +31,8 @@ module JaLC
33
31
  end
34
32
 
35
33
  class Config
34
+ DEFAULT_BASE_URL: String
35
+
36
36
  attr_accessor id: String?
37
37
  attr_accessor password: String?
38
38
  attr_accessor logger: _Logger?
@@ -44,8 +44,6 @@ module JaLC
44
44
  module REST
45
45
  type response_body = Hash[String, untyped] | String | nil
46
46
 
47
- BASE_URL: String
48
-
49
47
  def self.configure: { (Config) -> void } -> void
50
48
  def self.config: -> Config
51
49
 
@@ -81,6 +79,8 @@ module JaLC
81
79
  end
82
80
 
83
81
  class Config
82
+ DEFAULT_BASE_URL: String
83
+
84
84
  attr_accessor logger: _Logger?
85
85
 
86
86
  def initialize: -> void
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jalc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiro Miyoshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-08 00:00:00.000000000 Z
11
+ date: 2022-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday