simple_oauth 1.0.0 → 1.0.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: 86b6ff6f62fce7e9cc8119852cbf8470c5a1b7f9ab4ecaaf929d2aba35121a2b
4
- data.tar.gz: c40d43c6172cf63cca3d04f81291b8e9917062cea0c0b112943cb0a2428c488c
3
+ metadata.gz: 48873a9ac8c602b3dc3d305445c3e44524eee89e876e53222928fdf17902b22b
4
+ data.tar.gz: 166bcb795c1b953adf9c9dfaea2d6c69d8f00ba1bbc2953706ea9e7cca3fa87a
5
5
  SHA512:
6
- metadata.gz: fafef85869f766c1d1c19ebceb4e8152741734ce438e3379ff0fd94d15b2a4437d7b19e74fe62506f0ff4214eaf37c64cfffaa979400df0fc49b765f8bc1c325
7
- data.tar.gz: b95a19574fdd189c53f1e3d263515533991046f8e29e501f12c0a37c39158351f1376c851d58f751b7efda99b6d4a676be2ce243cc5540e52ab4c7d2ef18870e
6
+ metadata.gz: 377164f7799c7e6f330b2ac80fcf144380c270e6a65c40b6fb272e1fca6fd9a52515161f7237a96a3fefd9d6efd03000fd675141fc52f6330fe4daeabd6ee854
7
+ data.tar.gz: 6585353e86aa82b24cb3d08dc41e5ec12162b5866b2e35b25832a1603114cb1472f6323ab503be5ff47d69eedddff63ff136e1726e7e0672b677aaa681a22a52
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.0.1] - 2026-09-30
2
+
3
+ ### Fixed
4
+
5
+ * Ship RBS signatures that leave core and the standard library alone: the gem no longer redeclares `MatchData#[]`, `OpenSSL.secure_compare`, `OpenSSL::PKey::PKey#sign` and `#verify`, or `StringScanner`, so code that loads its signatures through `rbs collection` no longer fails `rbs validate` with a duplicated `MatchData#[]` definition
6
+ * Add `sig/manifest.yaml`, naming the standard libraries the signatures refer to (`json`, `openssl`, `securerandom`, `strscan`, and `uri`), so `rbs collection` loads them for code that depends on the gem
7
+
1
8
  ## [1.0.0] - 2026-09-12
2
9
 
3
10
  ### Changed
data/Steepfile CHANGED
@@ -11,6 +11,7 @@ target :lib do
11
11
  library "uri"
12
12
  library "securerandom"
13
13
  library "json"
14
+ library "strscan"
14
15
 
15
16
  configure_code_diagnostics(D::Ruby.strict) do |hash|
16
17
  # Allow FallbackAny warnings for variables in ensure blocks
@@ -3,5 +3,5 @@
3
3
  # OAuth 1.0 header generation library
4
4
  module SimpleOAuth
5
5
  # The current version of the SimpleOAuth gem
6
- VERSION = "1.0.0"
6
+ VERSION = "1.0.1"
7
7
  end
data/sig/manifest.yaml ADDED
@@ -0,0 +1,7 @@
1
+ # The standard libraries the signatures of simple_oauth refer to, which rbs collection loads for code that depends on it
2
+ dependencies:
3
+ - name: json
4
+ - name: openssl
5
+ - name: securerandom
6
+ - name: strscan
7
+ - name: uri
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_oauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Richert
@@ -44,15 +44,13 @@ files:
44
44
  - lib/simple_oauth/signature.rb
45
45
  - lib/simple_oauth/version.rb
46
46
  - mutant.yml
47
- - sig/matchdata_ext.rbs
48
- - sig/openssl_ext.rbs
47
+ - sig/manifest.yaml
49
48
  - sig/simple_oauth.rbs
50
49
  - sig/simple_oauth/header/class_methods.rbs
51
50
  - sig/simple_oauth/header/params.rbs
52
51
  - sig/simple_oauth/oauth2.rbs
53
52
  - sig/simple_oauth/parser.rbs
54
53
  - sig/simple_oauth/signature.rbs
55
- - sig/strscan.rbs
56
54
  homepage: https://github.com/laserlemon/simple_oauth
57
55
  licenses:
58
56
  - MIT
@@ -76,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
74
  - !ruby/object:Gem::Version
77
75
  version: '0'
78
76
  requirements: []
79
- rubygems_version: 4.0.20
77
+ rubygems_version: 4.0.22
80
78
  specification_version: 4
81
79
  summary: Simply builds and verifies OAuth 1.0 headers and builds OAuth 2.0 requests
82
80
  test_files: []
@@ -1,6 +0,0 @@
1
- # Extension to MatchData for indexed access with Integer
2
- class MatchData
3
- # Override [] to return non-nil String for Integer index
4
- # (when we know the group exists)
5
- def []: (Integer index) -> String
6
- end
data/sig/openssl_ext.rbs DELETED
@@ -1,15 +0,0 @@
1
- # Extensions to OpenSSL types
2
- module OpenSSL
3
- # Compare two strings in constant time
4
- def self.secure_compare: (String a, String b) -> bool
5
-
6
- module PKey
7
- class PKey
8
- # Sign with digest name as String (in addition to Digest object)
9
- def sign: (String | OpenSSL::Digest digest, String data) -> String
10
-
11
- # Verify with digest name as String (in addition to Digest object)
12
- def verify: (String | OpenSSL::Digest digest, String signature, String data) -> bool
13
- end
14
- end
15
- end
data/sig/strscan.rbs DELETED
@@ -1,9 +0,0 @@
1
- # Minimal StringScanner type declarations for simple_oauth
2
- class StringScanner
3
- def initialize: (String string) -> void
4
- def scan: (Regexp pattern) -> String?
5
- def eos?: () -> bool
6
- def rest: () -> String
7
- def pos: () -> Integer
8
- def []: (Integer index) -> String?
9
- end