jalc 2.2.0 → 2.2.1

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: f6ef2b1726c1a8125061c025f1a0541575a4ee32db0a3b2ea5b33f83e07a60e1
4
- data.tar.gz: 58155b4c3b29f9e01008ef6dffe0de0d5d1ef8a01420e1ad5dbefaa2a37df595
3
+ metadata.gz: 55ff4fb23821eddb0698085a58a54bec6663c30e19504fb5e25a0369972e7d57
4
+ data.tar.gz: cffd65412e172347f271f668eab81a40602cf624815ad670ba5ea61c291f5f1a
5
5
  SHA512:
6
- metadata.gz: 6af032f2082c19d0db3898818198cd053264595d8cce4b56dca119a32b00879cff23fa2ff4ad0e102d6040bb2e72f2bf60fa5235eeb6aea113dfdd337b21d6e4
7
- data.tar.gz: 172cae3930c2444266d88abc2c08528964eaee60112840951b5d3d363b0cd09fbc8bc349b8c70a2807b95234188e5afebb8dc46d4775ce8974b702d91668a219
6
+ metadata.gz: 5e31213e71eb257b29b3ccb5ecb61ae681f1a4a1a5ab19b0518644217a22646251bd63b5feef0d150215f44aafd48b1d92fd63ec9a8999a01042a8b31e3e4fc3
7
+ data.tar.gz: 2c3aa1cc1445bfbb2f1a3e20da84bbff7cae9990a06c6553e1c5aada559f1888abd11391485d8f818ee7aec74d2506ce2e04cd57891f7ee70f4259250b8043d6
@@ -3,7 +3,7 @@
3
3
  {
4
4
  "name": "Ruby",
5
5
  // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6
- "image": "mcr.microsoft.com/devcontainers/ruby:0-2.7",
6
+ "image": "mcr.microsoft.com/devcontainers/ruby:0-3-bullseye",
7
7
 
8
8
  // Features to add to the dev container. More info: https://containers.dev/features.
9
9
  // "features": {},
@@ -12,7 +12,7 @@
12
12
  // "forwardPorts": [],
13
13
 
14
14
  // Use 'postCreateCommand' to run commands after the container is created.
15
- "postCreateCommand": "gem i bundler && bin/setup",
15
+ "postCreateCommand": "bin/setup",
16
16
 
17
17
  // Configure tool-specific properties.
18
18
  "customizations": {
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [2.2.1] - 2023-02-03
4
+
5
+ - Fix the constructor args of `Registration::RegistrationError`
6
+
3
7
  ## [2.2.0] - 2023-02-03
4
8
 
5
9
  - Stop using HTTP GET for Registration API
@@ -24,9 +24,11 @@ module JaLC
24
24
  class RegistrationError < Error
25
25
  attr_reader :doc
26
26
 
27
- def initialize(msg = nil, doc:)
27
+ def initialize(msg = nil, doc: nil)
28
28
  @doc = doc
29
- msg ||= "#{doc.root.elements['head/errmsg']&.text} (errcd=#{doc.root.elements['head/errcd']&.text})"
29
+ if msg.nil? && doc
30
+ msg = "#{doc.root.elements['head/errmsg']&.text} (errcd=#{doc.root.elements['head/errcd']&.text})"
31
+ end
30
32
  super(msg)
31
33
  end
32
34
  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.2.0'
4
+ VERSION = '2.2.1'
5
5
  end
data/sig/jalc.rbs CHANGED
@@ -12,7 +12,7 @@ module JaLC
12
12
  end
13
13
 
14
14
  class RegistrationError < Error
15
- def initialize: (?String? msg, doc: untyped) -> void
15
+ def initialize: (?untyped msg, ?doc: untyped) -> void
16
16
 
17
17
  attr_reader doc: untyped # REXML::Document
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jalc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiro Miyoshi