rodauth-oauth 0.7.2 → 0.7.3
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcd4bc063c53c65c932bb24bf9c162aa97a24dd2c21b900cc96580d2ded0ef9e
|
4
|
+
data.tar.gz: fce8657cfa50710842dc72d221d01fdc27e7383c9923ad1e6f1408a82df75ad2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38069bd184dcc884b3155707144ae33a16a40ed59c2d62fe4fe74f6a5b3eaff4861bf76fbabaf86c879a04512c8ae8704d0e07c9a44d0aee531429067574ce59
|
7
|
+
data.tar.gz: 55e14d2f55d4a12be3299eafe0c1878788d87d788acf35968af67f85426453bdd86bc36390cadf3ea5ae7c03b5549a893c704626631bb32c2489199e7de3baa2
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,17 @@
|
|
2
2
|
|
3
3
|
## master
|
4
4
|
|
5
|
+
### 0.7.3 (14/01/2021)
|
6
|
+
|
7
|
+
#### Bugfixes
|
8
|
+
|
9
|
+
* fixed generator declarations and views generator, in orderto copy templates and rewrite paths accordingly.
|
10
|
+
* update view templates to not use "%%".
|
11
|
+
|
12
|
+
#### Chore
|
13
|
+
|
14
|
+
* `rodauth` is now declared as a dependency, with minimum version set `2.0`.
|
15
|
+
|
5
16
|
### 0.7.2 (14/12/2021)
|
6
17
|
|
7
18
|
#### Features
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "rails/generators
|
3
|
+
require "rails/generators"
|
4
4
|
|
5
5
|
module Rodauth::OAuth
|
6
6
|
module Rails
|
@@ -8,6 +8,7 @@ module Rodauth::OAuth
|
|
8
8
|
class ViewsGenerator < ::Rails::Generators::Base
|
9
9
|
source_root "#{__dir__}/templates"
|
10
10
|
namespace "rodauth:oauth:views"
|
11
|
+
desc "Generate db migrations for rodauth-oauth in your application."
|
11
12
|
|
12
13
|
DEFAULT = %w[authorize].freeze
|
13
14
|
VIEWS = {
|
@@ -31,16 +32,20 @@ module Rodauth::OAuth
|
|
31
32
|
default: "rodauth"
|
32
33
|
|
33
34
|
def create_views
|
34
|
-
features = options[:all] ? VIEWS.keys : (
|
35
|
+
features = options[:all] ? VIEWS.keys : (%i[oauth_authorize] + options[:features]).map(&:to_sym).uniq
|
35
36
|
|
36
37
|
views = features.inject([]) do |list, feature|
|
37
38
|
list |= VIEWS[feature] || []
|
38
39
|
list |= VIEWS[DEPENDENCIES[feature]] || []
|
39
40
|
end
|
40
41
|
|
42
|
+
directory = options[:directory].underscore
|
41
43
|
views.each do |view|
|
42
|
-
|
43
|
-
"app/views/#{
|
44
|
+
copy_file "app/views/rodauth/#{view}.html.erb",
|
45
|
+
"app/views/#{directory}/#{view}.html.erb" do |content|
|
46
|
+
content = content.gsub("rodauth/", "#{directory}/")
|
47
|
+
content
|
48
|
+
end
|
44
49
|
end
|
45
50
|
end
|
46
51
|
end
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rodauth-oauth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tiago Cardoso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
11
|
+
date: 2022-01-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rodauth
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
13
27
|
description: Implementation of the OAuth 2.0 protocol on top of rodauth.
|
14
28
|
email:
|
15
29
|
- cardoso_tiago@hotmail.com
|
@@ -55,9 +69,12 @@ homepage: https://gitlab.com/honeyryderchuck/rodauth-oauth
|
|
55
69
|
licenses:
|
56
70
|
- Apache 2.0
|
57
71
|
metadata:
|
58
|
-
homepage_uri: https://gitlab.
|
72
|
+
homepage_uri: https://honeyryderchuck.gitlab.io/rodauth-oauth/
|
73
|
+
documentation_uri: https://honeyryderchuck.gitlab.io/rodauth-oauth/rdoc/
|
74
|
+
bug_tracker_uri: https://gitlab.com/honeyryderchuck/rodauth-oauth/issues
|
59
75
|
source_code_uri: https://gitlab.com/honeyryderchuck/rodauth-oauth
|
60
76
|
changelog_uri: https://gitlab.com/honeyryderchuck/rodauth-oauth/-/blob/master/CHANGELOG.md
|
77
|
+
rubygems_mfa_required: 'true'
|
61
78
|
post_install_message:
|
62
79
|
rdoc_options: []
|
63
80
|
require_paths:
|
@@ -73,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
90
|
- !ruby/object:Gem::Version
|
74
91
|
version: '0'
|
75
92
|
requirements: []
|
76
|
-
rubygems_version: 3.2.
|
93
|
+
rubygems_version: 3.2.32
|
77
94
|
signing_key:
|
78
95
|
specification_version: 4
|
79
96
|
summary: Implementation of the OAuth 2.0 protocol on top of rodauth.
|