Skip to content

Commit 31adec3

Browse files
pbolingCopilot
andcommitted
🩹 Remove oauth-tty cgi runtime dependency
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent dd3918c commit 31adec3

7 files changed

Lines changed: 28 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ Please file a bug if you notice a violation of semantic versioning.
2626

2727
### Removed
2828

29+
- Removed the external `cgi` runtime dependency so Ruby 2.4 uses its bundled
30+
CGI library instead of installable `cgi` gem releases that call
31+
`String#delete_prefix`.
32+
2933
### Fixed
3034

3135
- Restored the Ruby 3.4 appraisal's explicit `oauth` dependency so the CI

Gemfile.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ PATH
33
specs:
44
oauth-tty (1.0.9)
55
auth-sanitizer (~> 0.2, >= 0.2.1)
6-
cgi
76
version_gem (~> 1.1, >= 1.1.12)
87

98
GEM

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ If bundler is not being used to manage dependencies, install the gem by executin
118118
gem install oauth-tty
119119
```
120120

121+
`oauth-tty` uses Ruby's `CGI` library for query parameter encoding and parsing.
122+
Supported Ruby versions that ship `CGI` do not need an additional dependency.
123+
Applications running on Ruby versions or distributions that do not provide
124+
`CGI` should add the `cgi` gem directly.
125+
121126
## ⚙️ Configuration
122127

123128
The oauth-tty gem is a thin CLI over the oauth gem. You supply your consumer credentials, token credentials (when applicable), a target URI, and optional parameters, and the tool signs requests or helps you complete an OAuth 1.0/1.0a 3-legged flow.

docs/file.CHANGELOG.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ <h3 id="deprecated">Deprecated</h3>
8080

8181
<h3 id="removed">Removed</h3>
8282

83+
<ul>
84+
<li>Removed the external <code>cgi</code> runtime dependency so Ruby 2.4 uses its bundled<br>
85+
CGI library instead of installable <code>cgi</code> gem releases that call<br>
86+
<code>String#delete_prefix</code>.</li>
87+
</ul>
88+
8389
<h3 id="fixed">Fixed</h3>
8490

8591
<ul>
@@ -325,7 +331,7 @@ <h3 id="added-5">Added</h3>
325331
</div></div>
326332

327333
<div id="footer">
328-
Generated on Mon Jun 15 03:53:37 2026 by
334+
Generated on Mon Jun 15 04:50:57 2026 by
329335
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
330336
0.9.44 (ruby-4.0.5).
331337
</div>

docs/file.README.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,11 @@ <h2 id="-installation">✨ Installation</h2>
313313
<pre class="code language-console"><code class="language-console">gem install oauth-tty
314314
</code></pre>
315315

316+
<p><code>oauth-tty</code> uses Ruby’s <code>CGI</code> library for query parameter encoding and parsing.<br>
317+
Supported Ruby versions that ship <code>CGI</code> do not need an additional dependency.<br>
318+
Applications running on Ruby versions or distributions that do not provide<br>
319+
<code>CGI</code> should add the <code>cgi</code> gem directly.</p>
320+
316321
<h2 id="️-configuration">⚙️ Configuration</h2>
317322

318323
<p>The oauth-tty gem is a thin CLI over the oauth gem. You supply your consumer credentials, token credentials (when applicable), a target URI, and optional parameters, and the tool signs requests or helps you complete an OAuth 1.0/1.0a 3-legged flow.</p>
@@ -692,7 +697,7 @@ <h3 id="please-give-the-project-a-star--">Please give the project a star ⭐ ♥
692697
</div></div>
693698

694699
<div id="footer">
695-
Generated on Mon Jun 15 02:03:47 2026 by
700+
Generated on Mon Jun 15 04:50:57 2026 by
696701
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
697702
0.9.44 (ruby-4.0.5).
698703
</div>

docs/index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,11 @@ <h2 id="-installation">✨ Installation</h2>
313313
<pre class="code language-console"><code class="language-console">gem install oauth-tty
314314
</code></pre>
315315

316+
<p><code>oauth-tty</code> uses Ruby’s <code>CGI</code> library for query parameter encoding and parsing.<br>
317+
Supported Ruby versions that ship <code>CGI</code> do not need an additional dependency.<br>
318+
Applications running on Ruby versions or distributions that do not provide<br>
319+
<code>CGI</code> should add the <code>cgi</code> gem directly.</p>
320+
316321
<h2 id="️-configuration">⚙️ Configuration</h2>
317322

318323
<p>The oauth-tty gem is a thin CLI over the oauth gem. You supply your consumer credentials, token credentials (when applicable), a target URI, and optional parameters, and the tool signs requests or helps you complete an OAuth 1.0/1.0a 3-legged flow.</p>
@@ -692,7 +697,7 @@ <h3 id="please-give-the-project-a-star--">Please give the project a star ⭐ ♥
692697
</div></div>
693698

694699
<div id="footer">
695-
Generated on Mon Jun 15 02:03:47 2026 by
700+
Generated on Mon Jun 15 04:50:57 2026 by
696701
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
697702
0.9.44 (ruby-4.0.5).
698703
</div>

oauth-tty.gemspec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ Gem::Specification.new do |spec|
107107

108108
# Utilities
109109
spec.add_dependency("auth-sanitizer", "~> 0.2", ">= 0.2.1") # ruby >= 2.2.0
110-
spec.add_dependency("cgi", ">= 0")
111110
spec.add_dependency("version_gem", "~> 1.1", ">= 1.1.12") # ruby >= 2.2.0
112111

113112
# NOTE: It is preferable to list development dependencies in the gemspec due to increased

0 commit comments

Comments
 (0)