-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0b4eed7
Showing
22 changed files
with
723 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
require: | ||
- rubocop-performance | ||
- rubocop-rspec | ||
- rubocop-rake | ||
|
||
AllCops: | ||
NewCops: enable | ||
TargetRubyVersion: 3.0 | ||
Exclude: | ||
- 'spec/dummy/db/schema.rb' | ||
- 'spec/dummy/config/**/*' | ||
- 'bin/rails' | ||
- 'Guardfile' | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
|
||
Metrics/MethodLength: | ||
Max: 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
gemspec | ||
|
||
gem 'activesupport', '>= 5.0' | ||
gem 'doorkeeper', '~> 5.6.9' | ||
gem 'rails', '>= 6.0' | ||
gem 'railties', '>= 5.0' | ||
gem 'rake', '~> 13.0' | ||
|
||
group :development, :test do | ||
gem 'rspec', '~> 3.10' | ||
gem 'rubocop', '~> 1.67' | ||
gem 'rubocop-performance', '~> 1.22.1' | ||
gem 'rubocop-rake', '~> 0.6.0' | ||
gem 'rubocop-rspec', '~> 3.1.0' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,259 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
helios-auth (0.1.0) | ||
activesupport (>= 5.0) | ||
doorkeeper (~> 5.6.9) | ||
rails (>= 6.0) | ||
railties (>= 5.0) | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
actioncable (7.1.4) | ||
actionpack (= 7.1.4) | ||
activesupport (= 7.1.4) | ||
nio4r (~> 2.0) | ||
websocket-driver (>= 0.6.1) | ||
zeitwerk (~> 2.6) | ||
actionmailbox (7.1.4) | ||
actionpack (= 7.1.4) | ||
activejob (= 7.1.4) | ||
activerecord (= 7.1.4) | ||
activestorage (= 7.1.4) | ||
activesupport (= 7.1.4) | ||
mail (>= 2.7.1) | ||
net-imap | ||
net-pop | ||
net-smtp | ||
actionmailer (7.1.4) | ||
actionpack (= 7.1.4) | ||
actionview (= 7.1.4) | ||
activejob (= 7.1.4) | ||
activesupport (= 7.1.4) | ||
mail (~> 2.5, >= 2.5.4) | ||
net-imap | ||
net-pop | ||
net-smtp | ||
rails-dom-testing (~> 2.2) | ||
actionpack (7.1.4) | ||
actionview (= 7.1.4) | ||
activesupport (= 7.1.4) | ||
nokogiri (>= 1.8.5) | ||
racc | ||
rack (>= 2.2.4) | ||
rack-session (>= 1.0.1) | ||
rack-test (>= 0.6.3) | ||
rails-dom-testing (~> 2.2) | ||
rails-html-sanitizer (~> 1.6) | ||
actiontext (7.1.4) | ||
actionpack (= 7.1.4) | ||
activerecord (= 7.1.4) | ||
activestorage (= 7.1.4) | ||
activesupport (= 7.1.4) | ||
globalid (>= 0.6.0) | ||
nokogiri (>= 1.8.5) | ||
actionview (7.1.4) | ||
activesupport (= 7.1.4) | ||
builder (~> 3.1) | ||
erubi (~> 1.11) | ||
rails-dom-testing (~> 2.2) | ||
rails-html-sanitizer (~> 1.6) | ||
activejob (7.1.4) | ||
activesupport (= 7.1.4) | ||
globalid (>= 0.3.6) | ||
activemodel (7.1.4) | ||
activesupport (= 7.1.4) | ||
activerecord (7.1.4) | ||
activemodel (= 7.1.4) | ||
activesupport (= 7.1.4) | ||
timeout (>= 0.4.0) | ||
activestorage (7.1.4) | ||
actionpack (= 7.1.4) | ||
activejob (= 7.1.4) | ||
activerecord (= 7.1.4) | ||
activesupport (= 7.1.4) | ||
marcel (~> 1.0) | ||
activesupport (7.1.4) | ||
base64 | ||
bigdecimal | ||
concurrent-ruby (~> 1.0, >= 1.0.2) | ||
connection_pool (>= 2.2.5) | ||
drb | ||
i18n (>= 1.6, < 2) | ||
minitest (>= 5.1) | ||
mutex_m | ||
tzinfo (~> 2.0) | ||
ast (2.4.2) | ||
base64 (0.2.0) | ||
bigdecimal (3.1.8) | ||
builder (3.3.0) | ||
concurrent-ruby (1.3.4) | ||
connection_pool (2.4.1) | ||
crass (1.0.6) | ||
date (3.3.4) | ||
diff-lcs (1.5.1) | ||
doorkeeper (5.6.9) | ||
railties (>= 5) | ||
drb (2.2.1) | ||
erubi (1.13.0) | ||
globalid (1.2.1) | ||
activesupport (>= 6.1) | ||
i18n (1.14.6) | ||
concurrent-ruby (~> 1.0) | ||
io-console (0.7.2) | ||
irb (1.14.1) | ||
rdoc (>= 4.0.0) | ||
reline (>= 0.4.2) | ||
json (2.7.2) | ||
language_server-protocol (3.17.0.3) | ||
loofah (2.22.0) | ||
crass (~> 1.0.2) | ||
nokogiri (>= 1.12.0) | ||
mail (2.8.1) | ||
mini_mime (>= 0.1.1) | ||
net-imap | ||
net-pop | ||
net-smtp | ||
marcel (1.0.4) | ||
mini_mime (1.1.5) | ||
mini_portile2 (2.8.7) | ||
minitest (5.25.1) | ||
mutex_m (0.2.0) | ||
net-imap (0.4.16) | ||
date | ||
net-protocol | ||
net-pop (0.1.2) | ||
net-protocol | ||
net-protocol (0.2.2) | ||
timeout | ||
net-smtp (0.5.0) | ||
net-protocol | ||
nio4r (2.7.3) | ||
nokogiri (1.16.7) | ||
mini_portile2 (~> 2.8.2) | ||
racc (~> 1.4) | ||
parallel (1.26.3) | ||
parser (3.3.5.0) | ||
ast (~> 2.4.1) | ||
racc | ||
psych (5.1.2) | ||
stringio | ||
racc (1.8.1) | ||
rack (3.1.7) | ||
rack-session (2.0.0) | ||
rack (>= 3.0.0) | ||
rack-test (2.1.0) | ||
rack (>= 1.3) | ||
rackup (2.1.0) | ||
rack (>= 3) | ||
webrick (~> 1.8) | ||
rails (7.1.4) | ||
actioncable (= 7.1.4) | ||
actionmailbox (= 7.1.4) | ||
actionmailer (= 7.1.4) | ||
actionpack (= 7.1.4) | ||
actiontext (= 7.1.4) | ||
actionview (= 7.1.4) | ||
activejob (= 7.1.4) | ||
activemodel (= 7.1.4) | ||
activerecord (= 7.1.4) | ||
activestorage (= 7.1.4) | ||
activesupport (= 7.1.4) | ||
bundler (>= 1.15.0) | ||
railties (= 7.1.4) | ||
rails-dom-testing (2.2.0) | ||
activesupport (>= 5.0.0) | ||
minitest | ||
nokogiri (>= 1.6) | ||
rails-html-sanitizer (1.6.0) | ||
loofah (~> 2.21) | ||
nokogiri (~> 1.14) | ||
railties (7.1.4) | ||
actionpack (= 7.1.4) | ||
activesupport (= 7.1.4) | ||
irb | ||
rackup (>= 1.0.0) | ||
rake (>= 12.2) | ||
thor (~> 1.0, >= 1.2.2) | ||
zeitwerk (~> 2.6) | ||
rainbow (3.1.1) | ||
rake (13.2.1) | ||
rdoc (6.7.0) | ||
psych (>= 4.0.0) | ||
regexp_parser (2.9.2) | ||
reline (0.5.10) | ||
io-console (~> 0.5) | ||
rspec (3.13.0) | ||
rspec-core (~> 3.13.0) | ||
rspec-expectations (~> 3.13.0) | ||
rspec-mocks (~> 3.13.0) | ||
rspec-core (3.13.0) | ||
rspec-support (~> 3.13.0) | ||
rspec-expectations (3.13.0) | ||
diff-lcs (>= 1.2.0, < 2.0) | ||
rspec-support (~> 3.13.0) | ||
rspec-mocks (3.13.0) | ||
diff-lcs (>= 1.2.0, < 2.0) | ||
rspec-support (~> 3.13.0) | ||
rspec-rails (7.0.1) | ||
actionpack (>= 7.0) | ||
activesupport (>= 7.0) | ||
railties (>= 7.0) | ||
rspec-core (~> 3.13) | ||
rspec-expectations (~> 3.13) | ||
rspec-mocks (~> 3.13) | ||
rspec-support (~> 3.13) | ||
rspec-support (3.13.1) | ||
rubocop (1.67.0) | ||
json (~> 2.3) | ||
language_server-protocol (>= 3.17.0) | ||
parallel (~> 1.10) | ||
parser (>= 3.3.0.2) | ||
rainbow (>= 2.2.2, < 4.0) | ||
regexp_parser (>= 2.4, < 3.0) | ||
rubocop-ast (>= 1.32.2, < 2.0) | ||
ruby-progressbar (~> 1.7) | ||
unicode-display_width (>= 2.4.0, < 3.0) | ||
rubocop-ast (1.32.3) | ||
parser (>= 3.3.1.0) | ||
rubocop-performance (1.22.1) | ||
rubocop (>= 1.48.1, < 2.0) | ||
rubocop-ast (>= 1.31.1, < 2.0) | ||
rubocop-rake (0.6.0) | ||
rubocop (~> 1.0) | ||
rubocop-rspec (3.1.0) | ||
rubocop (~> 1.61) | ||
ruby-progressbar (1.13.0) | ||
stringio (3.1.1) | ||
thor (1.3.2) | ||
timeout (0.4.1) | ||
tzinfo (2.0.6) | ||
concurrent-ruby (~> 1.0) | ||
unicode-display_width (2.6.0) | ||
webrick (1.8.2) | ||
websocket-driver (0.7.6) | ||
websocket-extensions (>= 0.1.0) | ||
websocket-extensions (0.1.5) | ||
zeitwerk (2.6.18) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
activesupport (>= 5.0) | ||
bundler (~> 2.0) | ||
doorkeeper (~> 5.6.9) | ||
helios-auth! | ||
rails (>= 6.0) | ||
railties (>= 5.0) | ||
rake (~> 13.0) | ||
rspec (~> 3.10) | ||
rspec-rails | ||
rubocop (~> 1.67) | ||
rubocop-performance (~> 1.22.1) | ||
rubocop-rake (~> 0.6.0) | ||
rubocop-rspec (~> 3.1.0) | ||
|
||
BUNDLED WITH | ||
2.5.17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'bundler/gem_tasks' | ||
require 'rspec/core/rake_task' | ||
|
||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
task default: :spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'doorkeeper' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# frozen_string_literal: true | ||
|
||
Doorkeeper.configure do | ||
orm :active_record | ||
|
||
resource_owner_authenticator do | ||
# Implementa aquí la lógica para autenticar al propietario del recurso | ||
raise 'Por favor, implementa resource_owner_authenticator en config/initializers/doorkeeper.rb' | ||
end | ||
|
||
base_controller 'ActionController::Base' | ||
|
||
# Agrega cualquier otra configuración necesaria para Doorkeeper aquí | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# frozen_string_literal: true | ||
|
||
Rails.application.routes.draw do | ||
use_doorkeeper | ||
# Resto de tus rutas... | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# frozen_string_literal: true | ||
|
||
$LOAD_PATH.push File.expand_path('lib', __dir__) | ||
|
||
require 'helios_auth/version' | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = 'helios-auth' | ||
spec.version = HeliosAuth::VERSION | ||
spec.authors = ['Your Name'] | ||
spec.email = ['[email protected]'] | ||
|
||
spec.summary = 'Short summary of your gem' | ||
spec.description = 'Longer description of your gem' | ||
spec.homepage = 'https://github.com/bookingsync/helios-auth' | ||
spec.license = 'MIT' | ||
|
||
spec.required_ruby_version = '>= 3.0' | ||
|
||
spec.files = Dir.chdir(File.expand_path(__dir__)) do | ||
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } | ||
end | ||
spec.require_paths = ['lib'] | ||
|
||
spec.add_dependency 'activesupport', '>= 5.0' | ||
spec.add_dependency 'doorkeeper', '~> 5.6.9' | ||
spec.add_dependency 'rails', '>= 6.0' | ||
spec.add_dependency 'railties', '>= 5.0' | ||
|
||
spec.metadata['rubygems_mfa_required'] = 'true' | ||
end |
Oops, something went wrong.