Skip to content

Commit 05c22f1

Browse files
committed
🤖 Restore OAuth2 namespace
1 parent fd0901b commit 05c22f1

6 files changed

Lines changed: 7 additions & 17 deletions

File tree

.structuredmerge/kettle-jem.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ rubygems:
104104
# Published runtime Ruby floor used for generated gemspec metadata and README
105105
# compatibility text. Omit this to derive the value from the gemspec.
106106
min_ruby: "2.2.0"
107+
namespace: "OAuth2"
107108

108109
# Repository URL topology.
109110
# This is independent from templates.profile. A gem may use the full template

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<a href="https://github.com/ruby-oauth"><img alt="ruby-oauth Logo by Aboling0, CC BY-SA 4.0" src="https://logos.galtzo.com/assets/images/ruby-oauth/avatar-128px.svg" width="14%" align="right"/></a>
22

3-
# 🔐 Oauth2
3+
# 🔐 OAuth2
44

55
[![Version][👽versioni]][👽version] [![GitHub tag (latest SemVer)][⛳️tag-img]][⛳️tag] [![License: MIT][📄license-img]][📄license] [![Downloads Rank][👽dl-ranki]][👽dl-rank] [![CodeCov Test Coverage][🏀codecovi]][🏀codecov] [![Coveralls Test Coverage][🏀coveralls-img]][🏀coveralls] [![QLTY Test Coverage][🏀qlty-covi]][🏀qlty-cov] [![QLTY Maintainability][🏀qlty-mnti]][🏀qlty-mnt] [![CI Heads][🚎3-hd-wfi]][🚎3-hd-wf] [![CI Runtime Dependencies @ HEAD][🚎12-crh-wfi]][🚎12-crh-wf] [![CI Current][🚎11-c-wfi]][🚎11-c-wf] [![CI Truffle Ruby][🚎9-t-wfi]][🚎9-t-wf] [![CI JRuby][🚎10-j-wfi]][🚎10-j-wf] [![Deps Locked][🚎13-🔒️-wfi]][🚎13-🔒️-wf] [![Deps Unlocked][🚎14-🔓️-wfi]][🚎14-🔓️-wf] [![CI Test Coverage][🚎2-cov-wfi]][🚎2-cov-wf] [![CI Style][🚎5-st-wfi]][🚎5-st-wf] [![Apache SkyWalking Eyes License Compatibility Check][🚎15-🪪-wfi]][🚎15-🪪-wf]
66

@@ -916,7 +916,7 @@ Thanks for RTFM. ☺️
916916

917917
[✇bundle-group-pattern]: https://gist.github.com/pboling/4564780
918918
[⛳️gem-namespace]: https://github.com/ruby-oauth/oauth2
919-
[⛳️namespace-img]: https://img.shields.io/badge/namespace-Oauth2-3C2D2D.svg?style=square&logo=ruby&logoColor=white
919+
[⛳️namespace-img]: https://img.shields.io/badge/namespace-OAuth2-3C2D2D.svg?style=square&logo=ruby&logoColor=white
920920
[⛳️gem-name]: https://bestgems.org/gems/oauth2
921921
[⛳️name-img]: https://img.shields.io/badge/name-oauth2-3C2D2D.svg?style=square&logo=rubygems&logoColor=red
922922
[⛳️tag-img]: https://img.shields.io/github/tag/ruby-oauth/oauth2.svg

lib/oauth2.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,3 @@ def configure
101101
OAuth2::Version.class_eval do
102102
extend VersionGem::Basic
103103
end
104-
105-
Oauth2::Version.class_eval do
106-
extend VersionGem::Basic
107-
end

lib/oauth2/version.rb

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
# frozen_string_literal: true
22

3-
module Oauth2
3+
module OAuth2
44
module Version
55
VERSION = "2.0.20"
66
end
77
VERSION = Version::VERSION # Traditional Constant Location
88
end
9-
10-
# kettle-jem:freeze
11-
module OAuth2
12-
Version = Oauth2::Version unless const_defined?(:Version, false)
13-
VERSION = Version::VERSION unless const_defined?(:VERSION, false)
14-
end
15-
# kettle-jem:unfreeze

oauth2.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ gem_version =
1111
# Loading Version into an anonymous module allows version.rb to get code coverage from SimpleCov!
1212
# See: https://github.com/simplecov-ruby/simplecov/issues/557#issuecomment-2630782358
1313
# See: https://github.com/panorama-ed/memo_wise/pull/397
14-
Module.new.tap { |mod| Kernel.load("#{__dir__}/lib/oauth2/version.rb", mod) }::Oauth2::Version::VERSION
14+
Module.new.tap { |mod| Kernel.load("#{__dir__}/lib/oauth2/version.rb", mod) }::OAuth2::Version::VERSION
1515
else
1616
require_relative "lib/oauth2/version"
17-
Oauth2::Version::VERSION
17+
OAuth2::Version::VERSION
1818
end
1919

2020
Gem::Specification.new do |spec|

sig/oauth2/version.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Oauth2
1+
module OAuth2
22
module Version
33
VERSION: String
44
end

0 commit comments

Comments
 (0)