Skip to content

Commit 3eaad0d

Browse files
authored
Merge pull request #2095 from ksss/json
Bundle update json 2.8.2
2 parents d1cf36a + 03fc831 commit 3eaad0d

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ GEM
4949
strong_json (>= 1.1, < 2.2)
5050
i18n (1.14.6)
5151
concurrent-ruby (~> 1.0)
52-
json (2.7.2)
52+
json (2.8.2)
5353
json-schema (5.0.0)
5454
addressable (~> 2.8)
5555
language_server-protocol (3.17.0.3)

stdlib/json/0/json.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ module JSON
714714
#
715715
def self.create_id=: (_ToS create_id) -> _ToS
716716

717-
def self.deep_const_get: (_ToS path) -> untyped
717+
def self.deep_const_get: (interned path) -> untyped
718718

719719
# <!--
720720
# rdoc-file=ext/json/lib/json/common.rb

test/stdlib/json/JSON_test.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ def test_create_id_eq
4848
end
4949

5050
def test_deep_const_get
51-
assert_send_type "(String) -> String", JSON, :deep_const_get, "File::SEPARATOR"
52-
assert_send_type "(_ToS) -> String", JSON, :deep_const_get, JsonToS.new("File::SEPARATOR")
51+
with_interned("File") do |val|
52+
assert_send_type "(interned) -> singleton(File)", JSON, :deep_const_get, val
53+
end
5354
end
5455

5556
def test_dump

0 commit comments

Comments
 (0)