From bbc72ce9e7feadcd9cea51a00f4483409b62ddb6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 12 Mar 2025 15:41:57 +0000 Subject: [PATCH 1/2] Bump json from 2.10.1 to 2.10.2 Bumps [json](https://github.com/ruby/json) from 2.10.1 to 2.10.2. - [Release notes](https://github.com/ruby/json/releases) - [Changelog](https://github.com/ruby/json/blob/master/CHANGES.md) - [Commits](https://github.com/ruby/json/compare/v2.10.1...v2.10.2) --- updated-dependencies: - dependency-name: json dependency-type: indirect ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 28093cbb0..53c197a38 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -171,7 +171,7 @@ GEM pp (>= 0.6.0) rdoc (>= 4.0.0) reline (>= 0.4.2) - json (2.10.1) + json (2.10.2) json_api_client (1.23.0) activemodel (>= 6.0.0) activesupport (>= 6.0.0) From 2bf858a0f6a32d6b82aec93df5d5f865dfed96e4 Mon Sep 17 00:00:00 2001 From: Kaan Ozkan Date: Thu, 13 Mar 2025 14:58:54 -0400 Subject: [PATCH 2/2] bin/tapioca gem --- .../gems/{json@2.10.1.rbi => json@2.10.2.rbi} | 122 ++++++++---------- 1 file changed, 54 insertions(+), 68 deletions(-) rename sorbet/rbi/gems/{json@2.10.1.rbi => json@2.10.2.rbi} (96%) diff --git a/sorbet/rbi/gems/json@2.10.1.rbi b/sorbet/rbi/gems/json@2.10.2.rbi similarity index 96% rename from sorbet/rbi/gems/json@2.10.1.rbi rename to sorbet/rbi/gems/json@2.10.2.rbi index d5a44e526..668bb3ec8 100644 --- a/sorbet/rbi/gems/json@2.10.1.rbi +++ b/sorbet/rbi/gems/json@2.10.2.rbi @@ -12,7 +12,7 @@ end # Extends any Class to include _json_creatable?_ method. # -# source://json//lib/json/common.rb#985 +# source://json//lib/json/common.rb#979 class Class < ::Module # Returns true if this class can be used to create an instance # from a serialised JSON string. The class has to implement a class @@ -21,7 +21,7 @@ class Class < ::Module # # @return [Boolean] # - # source://json//lib/json/common.rb#990 + # source://json//lib/json/common.rb#984 def json_creatable?; end end @@ -653,7 +653,7 @@ module JSON # Output: # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"} # - # source://json//lib/json/common.rb#820 + # source://json//lib/json/common.rb#823 def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil), kwargs = T.unsafe(nil)); end # :call-seq: @@ -670,13 +670,13 @@ module JSON # # Raises SystemStackError (stack level too deep): # JSON.fast_generate(a) # - # source://json//lib/json/common.rb#354 + # source://json//lib/json/common.rb#357 def fast_generate(obj, opts = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and later delete them. # - # source://json//lib/json/common.rb#354 + # source://json//lib/json/common.rb#357 def fast_unparse(obj, opts = T.unsafe(nil)); end # :call-seq: @@ -715,7 +715,7 @@ module JSON # # Raises JSON::NestingError (nesting of 100 is too deep): # JSON.generate(a) # - # source://json//lib/json/common.rb#326 + # source://json//lib/json/common.rb#329 def generate(obj, opts = T.unsafe(nil)); end # :call-seq: @@ -853,7 +853,7 @@ module JSON # #"Admin", "password"=>"0wn3d"}>} # - # source://json//lib/json/common.rb#739 + # source://json//lib/json/common.rb#742 def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # :call-seq: @@ -864,7 +864,7 @@ module JSON # # See method #parse. # - # source://json//lib/json/common.rb#275 + # source://json//lib/json/common.rb#278 def load_file(filespec, opts = T.unsafe(nil)); end # :call-seq: @@ -875,12 +875,9 @@ module JSON # # See method #parse! # - # source://json//lib/json/common.rb#286 + # source://json//lib/json/common.rb#289 def load_file!(filespec, opts = T.unsafe(nil)); end - # source://json//lib/json/common.rb#857 - def merge_dump_options(opts, strict: T.unsafe(nil)); end - # :call-seq: # JSON.parse(source, opts) -> object # @@ -929,7 +926,7 @@ module JSON # # Raises JSON::ParserError (783: unexpected token at ''): # JSON.parse('') # - # source://json//lib/json/common.rb#244 + # source://json//lib/json/common.rb#247 def parse(source, opts = T.unsafe(nil)); end # :call-seq: @@ -944,7 +941,7 @@ module JSON # which disables checking for nesting depth. # - Option +allow_nan+, if not provided, defaults to +true+. # - # source://json//lib/json/common.rb#259 + # source://json//lib/json/common.rb#262 def parse!(source, opts = T.unsafe(nil)); end # :call-seq: @@ -977,28 +974,28 @@ module JSON # } # } # - # source://json//lib/json/common.rb#399 + # source://json//lib/json/common.rb#402 def pretty_generate(obj, opts = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and later delete them. # - # source://json//lib/json/common.rb#399 + # source://json//lib/json/common.rb#402 def pretty_unparse(obj, opts = T.unsafe(nil)); end # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_ # - # source://json//lib/json/common.rb#765 + # source://json//lib/json/common.rb#768 def recurse_proc(result, &proc); end - # source://json//lib/json/common.rb#739 + # source://json//lib/json/common.rb#742 def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and # later delete them. # - # source://json//lib/json/common.rb#326 + # source://json//lib/json/common.rb#329 def unparse(obj, opts = T.unsafe(nil)); end # :call-seq: @@ -1130,7 +1127,7 @@ module JSON # #"Admin", "password"=>"0wn3d"}>} # - # source://json//lib/json/common.rb#579 + # source://json//lib/json/common.rb#582 def unsafe_load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end class << self @@ -1204,7 +1201,7 @@ module JSON # Output: # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"} # - # source://json//lib/json/common.rb#820 + # source://json//lib/json/common.rb#823 def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil), kwargs = T.unsafe(nil)); end # Sets or returns the default options for the JSON.dump method. @@ -1212,7 +1209,7 @@ module JSON # opts = JSON.dump_default_options # opts # => {:max_nesting=>false, :allow_nan=>true} # - # source://json//lib/json/common.rb#786 + # source://json//lib/json/common.rb#789 def dump_default_options; end # Sets or returns the default options for the JSON.dump method. @@ -1220,7 +1217,7 @@ module JSON # opts = JSON.dump_default_options # opts # => {:max_nesting=>false, :allow_nan=>true} # - # source://json//lib/json/common.rb#786 + # source://json//lib/json/common.rb#789 def dump_default_options=(_arg0); end # :call-seq: @@ -1237,13 +1234,13 @@ module JSON # # Raises SystemStackError (stack level too deep): # JSON.fast_generate(a) # - # source://json//lib/json/common.rb#354 + # source://json//lib/json/common.rb#357 def fast_generate(obj, opts = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and later delete them. # - # source://json//lib/json/common.rb#354 + # source://json//lib/json/common.rb#357 def fast_unparse(obj, opts = T.unsafe(nil)); end # :call-seq: @@ -1282,7 +1279,7 @@ module JSON # # Raises JSON::NestingError (nesting of 100 is too deep): # JSON.generate(a) # - # source://json//lib/json/common.rb#326 + # source://json//lib/json/common.rb#329 def generate(obj, opts = T.unsafe(nil)); end # Returns the JSON generator module that is used by JSON. @@ -1297,7 +1294,7 @@ module JSON # Encodes string using String.encode. # - # source://json//lib/json/common.rb#853 + # source://json//lib/json/common.rb#856 def iconv(to, from, string); end # :call-seq: @@ -1435,7 +1432,7 @@ module JSON # #"Admin", "password"=>"0wn3d"}>} # - # source://json//lib/json/common.rb#739 + # source://json//lib/json/common.rb#742 def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # Sets or returns default options for the JSON.load method. @@ -1443,7 +1440,7 @@ module JSON # opts = JSON.load_default_options # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true} # - # source://json//lib/json/common.rb#443 + # source://json//lib/json/common.rb#446 def load_default_options; end # Sets or returns default options for the JSON.load method. @@ -1451,7 +1448,7 @@ module JSON # opts = JSON.load_default_options # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true} # - # source://json//lib/json/common.rb#443 + # source://json//lib/json/common.rb#446 def load_default_options=(_arg0); end # :call-seq: @@ -1462,7 +1459,7 @@ module JSON # # See method #parse. # - # source://json//lib/json/common.rb#275 + # source://json//lib/json/common.rb#278 def load_file(filespec, opts = T.unsafe(nil)); end # :call-seq: @@ -1473,7 +1470,7 @@ module JSON # # See method #parse! # - # source://json//lib/json/common.rb#286 + # source://json//lib/json/common.rb#289 def load_file!(filespec, opts = T.unsafe(nil)); end # :call-seq: @@ -1524,7 +1521,7 @@ module JSON # # Raises JSON::ParserError (783: unexpected token at ''): # JSON.parse('') # - # source://json//lib/json/common.rb#244 + # source://json//lib/json/common.rb#247 def parse(source, opts = T.unsafe(nil)); end # :call-seq: @@ -1539,7 +1536,7 @@ module JSON # which disables checking for nesting depth. # - Option +allow_nan+, if not provided, defaults to +true+. # - # source://json//lib/json/common.rb#259 + # source://json//lib/json/common.rb#262 def parse!(source, opts = T.unsafe(nil)); end # Returns the JSON parser class that is used by JSON. @@ -1582,21 +1579,21 @@ module JSON # } # } # - # source://json//lib/json/common.rb#399 + # source://json//lib/json/common.rb#402 def pretty_generate(obj, opts = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and later delete them. # - # source://json//lib/json/common.rb#399 + # source://json//lib/json/common.rb#402 def pretty_unparse(obj, opts = T.unsafe(nil)); end # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_ # - # source://json//lib/json/common.rb#765 + # source://json//lib/json/common.rb#768 def recurse_proc(result, &proc); end - # source://json//lib/json/common.rb#739 + # source://json//lib/json/common.rb#742 def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # Sets or Returns the JSON generator state class that is used by JSON. @@ -1613,7 +1610,7 @@ module JSON # I want to deprecate these later, so I'll first be silent about them, and # later delete them. # - # source://json//lib/json/common.rb#326 + # source://json//lib/json/common.rb#329 def unparse(obj, opts = T.unsafe(nil)); end # :call-seq: @@ -1745,7 +1742,7 @@ module JSON # #"Admin", "password"=>"0wn3d"}>} # - # source://json//lib/json/common.rb#579 + # source://json//lib/json/common.rb#582 def unsafe_load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # Sets or returns default options for the JSON.unsafe_load method. @@ -1753,7 +1750,7 @@ module JSON # opts = JSON.load_default_options # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true} # - # source://json//lib/json/common.rb#429 + # source://json//lib/json/common.rb#432 def unsafe_load_default_options; end # Sets or returns default options for the JSON.unsafe_load method. @@ -1761,13 +1758,8 @@ module JSON # opts = JSON.load_default_options # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true} # - # source://json//lib/json/common.rb#429 + # source://json//lib/json/common.rb#432 def unsafe_load_default_options=(_arg0); end - - private - - # source://json//lib/json/common.rb#857 - def merge_dump_options(opts, strict: T.unsafe(nil)); end end end @@ -1781,7 +1773,7 @@ end # # MyApp::JSONC_CODER.load(document) # -# source://json//lib/json/common.rb#876 +# source://json//lib/json/common.rb#870 class JSON::Coder # :call-seq: # JSON.new(options = nil, &block) @@ -1808,7 +1800,7 @@ class JSON::Coder # # @return [Coder] a new instance of Coder # - # source://json//lib/json/common.rb#900 + # source://json//lib/json/common.rb#894 def initialize(options = T.unsafe(nil), &as_json); end # call-seq: @@ -1817,7 +1809,7 @@ class JSON::Coder # # Serialize the given object into a \JSON document. # - # source://json//lib/json/common.rb#919 + # source://json//lib/json/common.rb#913 def dump(object, io = T.unsafe(nil)); end # call-seq: @@ -1826,7 +1818,7 @@ class JSON::Coder # # Serialize the given object into a \JSON document. # - # source://json//lib/json/common.rb#919 + # source://json//lib/json/common.rb#913 def generate(object, io = T.unsafe(nil)); end # call-seq: @@ -1834,7 +1826,7 @@ class JSON::Coder # # Parse the given \JSON document and return an equivalent Ruby object. # - # source://json//lib/json/common.rb#928 + # source://json//lib/json/common.rb#922 def load(source); end # call-seq: @@ -1842,7 +1834,7 @@ class JSON::Coder # # Parse the given \JSON document and return an equivalent Ruby object. # - # source://json//lib/json/common.rb#937 + # source://json//lib/json/common.rb#931 def load_file(path); end # call-seq: @@ -1850,7 +1842,7 @@ class JSON::Coder # # Parse the given \JSON document and return an equivalent Ruby object. # - # source://json//lib/json/common.rb#928 + # source://json//lib/json/common.rb#922 def parse(source); end end @@ -1948,12 +1940,6 @@ end # source://json//lib/json/ext.rb#32 JSON::Ext::Parser::Config = JSON::Ext::ParserConfig -class JSON::Ext::ParserConfig - def initialize(_arg0); end - - def parse(_arg0); end -end - # Fragment of JSON document that is to be included as is: # fragment = JSON::Fragment.new("[1, 2, 3]") # JSON.generate({ count: 3, items: fragments }) @@ -1965,11 +1951,11 @@ end # Note: no validation is performed on the provided string. It is the # responsability of the caller to ensure the string contains valid JSON. # -# source://json//lib/json/common.rb#180 +# source://json//lib/json/common.rb#183 class JSON::Fragment < ::Struct # @return [Fragment] a new instance of Fragment # - # source://json//lib/json/common.rb#181 + # source://json//lib/json/common.rb#184 def initialize(json); end # Returns the value of attribute json @@ -1983,7 +1969,7 @@ class JSON::Fragment < ::Struct # @return [Object] the newly set value def json=(_); end - # source://json//lib/json/common.rb#189 + # source://json//lib/json/common.rb#192 def to_json(state = T.unsafe(nil), *_arg1); end class << self @@ -2075,10 +2061,10 @@ JSON::State = JSON::Ext::Generator::State # For backwards compatibility # -# source://json//lib/json/common.rb#164 +# source://json//lib/json/common.rb#167 JSON::UnparserError = JSON::GeneratorError -# source://json//lib/json/common.rb#943 +# source://json//lib/json/common.rb#937 module Kernel private @@ -2089,19 +2075,19 @@ module Kernel # The _opts_ argument is passed through to generate/parse respectively. See # generate and parse for their documentation. # - # source://json//lib/json/common.rb#970 + # source://json//lib/json/common.rb#964 def JSON(object, *args); end # Outputs _objs_ to STDOUT as JSON strings in the shortest form, that is in # one line. # - # source://json//lib/json/common.rb#948 + # source://json//lib/json/common.rb#942 def j(*objs); end # Outputs _objs_ to STDOUT as JSON strings in a pretty format, with # indentation and over many lines. # - # source://json//lib/json/common.rb#957 + # source://json//lib/json/common.rb#951 def jj(*objs); end end