rubyauth 0.10.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 494a5cfd44148699a0d82c21650afd8601a0f6d1b34494a04ffa33f84bffe9c1
4
+ data.tar.gz: cb8bc3f3275908ba759aac56fb1c59628f6bd941e550ebf24513d618ae6ae6b9
5
+ SHA512:
6
+ metadata.gz: 49da2cbaaf69a158ade8b622d95bd37af25f7fa857b1a176527dd02c65a21cd39becd5aaf5d259b0ec59e6eee1626be000128ba582edc7e98bcb433a7e96e20b
7
+ data.tar.gz: 79aab7d3ef7b1d322db164c137b9a2dccb78321410adc2627863c266ee60e33fa72052e75ca7d17de10770d021c214b8351ba6e16675fcf6b6cfa0622a053d8c
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ ## 0.10.0
4
+
5
+ - Initial alias package for `better_auth`.
data/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # rubyauth
2
+
3
+ Alias package for Better Auth Ruby.
4
+
5
+ ## Installation
6
+
7
+ ```ruby
8
+ gem "rubyauth"
9
+ ```
10
+
11
+ ```ruby
12
+ require "rubyauth"
13
+ ```
14
+
15
+ This package depends on `better_auth` and loads the canonical Better Auth Ruby implementation.
16
+
17
+ For documentation, visit https://better-auth-rb.vercel.app/.
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+ Copyright (c) 2024 - present
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ this software and associated documentation files (the "Software"), to deal in
6
+ the Software without restriction, including without limitation the rights to
7
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ the Software, and to permit persons to whom the Software is furnished to do so,
9
+ subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
18
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20
+ DEALINGS IN THE SOFTWARE.
data/lib/rubyauth.rb ADDED
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "better_auth"
4
+
5
+ module RubyAuth
6
+ VERSION = BetterAuth::VERSION unless const_defined?(:VERSION, false)
7
+
8
+ def self.alias_better_auth_constants!
9
+ BetterAuth.constants(false).each do |name|
10
+ const_set(name, BetterAuth.const_get(name, false)) unless const_defined?(name, false)
11
+ end
12
+ end
13
+
14
+ def self.auth(...)
15
+ BetterAuth.auth(...)
16
+ end
17
+
18
+ def self.const_missing(name)
19
+ constant = BetterAuth.const_get(name, false)
20
+ const_set(name, constant) unless const_defined?(name, false)
21
+ constant
22
+ rescue NameError
23
+ super
24
+ end
25
+
26
+ alias_better_auth_constants!
27
+ end
metadata ADDED
@@ -0,0 +1,62 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubyauth
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.10.0
5
+ platform: ruby
6
+ authors:
7
+ - Sebastian Sala
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: better_auth
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - '='
17
+ - !ruby/object:Gem::Version
18
+ version: 0.10.0
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - '='
24
+ - !ruby/object:Gem::Version
25
+ version: 0.10.0
26
+ description: RubyAuth is an alias package that installs better_auth. Use Better Auth
27
+ Ruby documentation for the canonical API.
28
+ email:
29
+ - sebastian.sala.tech@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - "/Users/sebastiansala/projects/better-auth/LICENSE.md"
35
+ - CHANGELOG.md
36
+ - README.md
37
+ - lib/rubyauth.rb
38
+ homepage: https://better-auth-rb.vercel.app/
39
+ licenses:
40
+ - MIT
41
+ metadata:
42
+ homepage_uri: https://better-auth-rb.vercel.app/
43
+ source_code_uri: https://github.com/sebasxsala/better-auth-rb
44
+ bug_tracker_uri: https://github.com/sebasxsala/better-auth-rb/issues
45
+ rdoc_options: []
46
+ require_paths:
47
+ - lib
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 3.2.0
53
+ required_rubygems_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ requirements: []
59
+ rubygems_version: 3.6.9
60
+ specification_version: 4
61
+ summary: Alias package for Better Auth Ruby
62
+ test_files: []