Skip to content

Commit 152492e

Browse files
committed
📝 Update gemspec metadata and documentation
1 parent 7f37eac commit 152492e

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.rubocop_gradual.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"lib/oauth2/response.rb:2054901929": [
2222
[53, 5, 204, "Style/ClassMethodsDefinitions: Use `class << self` to define a class method.", 996912427]
2323
],
24-
"oauth2.gemspec:2662087024": [
24+
"oauth2.gemspec:1312558048": [
2525
[5, 23, 12, "Gemspec/RubyVersionGlobalsUsage: Do not use `RUBY_VERSION` in gemspec file.", 31296028]
2626
],
2727
"spec/oauth2/access_token_spec.rb:1202129469": [

oauth2.gemspec

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,11 @@ Thanks, |7eter l-|. l3oling
8080
spec.metadata["changelog_uri"] = "#{gl_homepage}/-/blob/v#{spec.version}/CHANGELOG.md"
8181
spec.metadata["bug_tracker_uri"] = "#{gl_homepage}/-/issues"
8282
spec.metadata["documentation_uri"] = "https://www.rubydoc.info/gems/#{spec.name}/#{spec.version}"
83-
spec.metadata["wiki_uri"] = "#{gl_homepage}/-/wiki"
8483
spec.metadata["mailing_list_uri"] = "https://groups.google.com/g/oauth-ruby"
8584
spec.metadata["funding_uri"] = "https://github.com/sponsors/pboling"
85+
spec.metadata["wiki_uri"] = "#{gl_homepage}/-/wiki"
8686
spec.metadata["news_uri"] = "https://www.railsbling.com/tags/#{spec.name}"
87+
spec.metadata["discord_uri"] = "https://discord.gg/3qme4XHNKN"
8788
spec.metadata["rubygems_mfa_required"] = "true"
8889

8990
# Specify which files should be added to the gem when it is released.
@@ -127,6 +128,20 @@ Thanks, |7eter l-|. l3oling
127128
spec.add_dependency("snaky_hash", "~> 2.0", ">= 2.0.3") # Ruby >= 2.2
128129
spec.add_dependency("version_gem", ">= 1.1.8", "< 3") # Ruby >= 2.2
129130

131+
# NOTE: It is preferable to list development dependencies in the gemspec due to increased
132+
# visibility and discoverability on RubyGems.org.
133+
# However, development dependencies in gemspec will install on
134+
# all versions of Ruby that will run in CI.
135+
# This gem, and its runtime dependencies, will install on Ruby down to 2.2.
136+
# This gem, and its development dependencies, will install on Ruby down to 2.3.
137+
# This is because in CI easy installation of Ruby, via setup-ruby, is for >= 2.3.
138+
# Thus, dev dependencies in gemspec must have
139+
#
140+
# required_ruby_version ">= 2.3" (or lower)
141+
#
142+
# Development dependencies that require strictly newer Ruby versions should be in a "gemfile",
143+
# and preferably a modular one (see gemfiles/modular/*.gemfile).
144+
130145
spec.add_development_dependency("addressable", "~> 2.8", ">= 2.8.7") # ruby >= 2.2
131146
spec.add_development_dependency("appraisal2", "~> 3.0") # ruby >= 1.8.7
132147
spec.add_development_dependency("backports", "~> 3.25", ">= 3.25.1") # ruby >= 0

0 commit comments

Comments
 (0)