signet 0.21.0 → 0.22.0

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: 8768e60998205c91cade504506bc833517002cade07129a3fdfe725967731f60
4
- data.tar.gz: 99958e7e9679addf3d5c9b2f8785491016ae6b972f1113c846ca61461bcf55c9
3
+ metadata.gz: ce6c9d2f280312b96e689ba3d798219759b1a6186cb426b34fa27c9e424dd9d1
4
+ data.tar.gz: 58e009354222673d4df31c473cc25a370d9cedccadf93438e0b4f1fc8d8f0515
5
5
  SHA512:
6
- metadata.gz: 952c4bd3a5acc6d0ef96e0c973b280a7334ca0c52a6613c98686961c6c69e54887598f5433421c746ff053f76ea9d79db6e187cf8edd787d77fcfb94728346a6
7
- data.tar.gz: 6b4e09979197aa7bcb968253a2eda9c0d31da754ca8ef9394241eaa7cf8a614250bc896693a81f737e552886d77bc7fd1ea0825bb49ce8bb7ee20a02b3d2d272
6
+ metadata.gz: fd298adfd9dd0d552e998ae4c14f870f5b57c60cfb6e42345a9e5f89cb07d2bfb7560af727ac60c7335f8d25eb6a21391f460de3e36b72285970a94a2591956d
7
+ data.tar.gz: 03ca2ed4b43b1c8e5e3cc7c53c4c882d2ebef7f42b3b6c4886d8ec3ea15dc62db4ed8705a30751f8ad3af693e6f847785936f8024cbf9aa4ce28b908afb0a3c7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 0.22.0 (2026-06-04)
4
+
5
+ #### Features
6
+
7
+ * migrate from multi_json to standard json ([#273](https://github.com/googleapis/signet/issues/273)) ([bd067b2](https://github.com/googleapis/signet/commit/bd067b2a54442fbc9a1d084c3c78dc913bd3be86)), closes [#272](https://github.com/googleapis/signet/issues/272)
8
+
3
9
  ### 0.21.0 (2025-08-25)
4
10
 
5
11
  #### Features
data/README.md CHANGED
@@ -59,7 +59,7 @@ Be sure `https://rubygems.org` is in your gem sources.
59
59
 
60
60
  ## Supported Ruby Versions
61
61
 
62
- This library is supported on Ruby 3.0+.
62
+ This library is supported on Ruby 3.2+.
63
63
 
64
64
  Google provides official support for Ruby versions that are actively supported
65
65
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -21,6 +21,7 @@ require "signet"
21
21
  require "signet/errors"
22
22
  require "signet/oauth_1"
23
23
  require "signet/oauth_1/credential"
24
+ require "json"
24
25
 
25
26
  module Signet
26
27
  module OAuth1
@@ -552,7 +553,7 @@ module Signet
552
553
  #
553
554
  # @return [String] A serialized JSON representation of the client.
554
555
  def to_json *_args
555
- MultiJson.dump(
556
+ JSON.generate(
556
557
  "temporary_credential_uri" => temporary_credential_uri,
557
558
  "authorization_uri" => authorization_uri,
558
559
  "token_credential_uri" => token_credential_uri,
@@ -19,6 +19,7 @@ require "signet"
19
19
  require "signet/errors"
20
20
  require "signet/oauth_2"
21
21
  require "jwt"
22
+ require "json"
22
23
  require "date"
23
24
  require "time"
24
25
 
@@ -948,7 +949,7 @@ module Signet
948
949
  #
949
950
  # @return [String] A serialized JSON representation of the client.
950
951
  def to_json *_args
951
- MultiJson.dump(
952
+ JSON.generate(
952
953
  "authorization_uri" => authorization_uri&.to_s,
953
954
  "token_credential_uri" => token_credential_uri&.to_s,
954
955
  "client_id" => client_id,
@@ -14,7 +14,7 @@
14
14
 
15
15
  require "base64"
16
16
  require "signet"
17
- require "multi_json"
17
+ require "json"
18
18
 
19
19
  module Signet # :nodoc:
20
20
  ##
@@ -76,7 +76,11 @@ module Signet # :nodoc:
76
76
  raise TypeError, "Expected String, got #{body.class}." unless body.is_a? String
77
77
  case content_type
78
78
  when %r{^application/json.*}
79
- MultiJson.load body
79
+ begin
80
+ JSON.parse body
81
+ rescue JSON::ParserError => e
82
+ raise Signet::ParseError, e.message
83
+ end
80
84
  when %r{^application/x-www-form-urlencoded.*}
81
85
  Addressable::URI.form_unencode(body).to_h
82
86
  else
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module Signet
16
- VERSION = "0.21.0".freeze
16
+ VERSION = "0.22.0".freeze
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: signet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -63,20 +63,6 @@ dependencies:
63
63
  - - "<"
64
64
  - !ruby/object:Gem::Version
65
65
  version: '4.0'
66
- - !ruby/object:Gem::Dependency
67
- name: multi_json
68
- requirement: !ruby/object:Gem::Requirement
69
- requirements:
70
- - - "~>"
71
- - !ruby/object:Gem::Version
72
- version: '1.10'
73
- type: :runtime
74
- prerelease: false
75
- version_requirements: !ruby/object:Gem::Requirement
76
- requirements:
77
- - - "~>"
78
- - !ruby/object:Gem::Version
79
- version: '1.10'
80
66
  description: 'Signet is an OAuth 1.0 / OAuth 2.0 implementation.
81
67
 
82
68
  '
@@ -121,7 +107,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
121
107
  requirements:
122
108
  - - ">="
123
109
  - !ruby/object:Gem::Version
124
- version: '3.1'
110
+ version: '3.2'
125
111
  required_rubygems_version: !ruby/object:Gem::Requirement
126
112
  requirements:
127
113
  - - ">="