rodauth-oauth 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d000e6a25796dbdc8c58d378e93819343810f6089c33d02732443342ce721ec3
4
- data.tar.gz: e61c19bd7e74c3f2b68541bf7aa78c143c669d5a745bf4efc389e786598fbcd8
3
+ metadata.gz: bcd4bc063c53c65c932bb24bf9c162aa97a24dd2c21b900cc96580d2ded0ef9e
4
+ data.tar.gz: fce8657cfa50710842dc72d221d01fdc27e7383c9923ad1e6f1408a82df75ad2
5
5
  SHA512:
6
- metadata.gz: 9d727127c9e5a6d3a935b6194fbd0bd81358f3ea9876387d1639c3cf419b15246a0b89d57688d8ef15e830bd7b86f482463332c0fa843cb494ee56afe23c3e2e
7
- data.tar.gz: 1d565e48e99b4897ca47a64c5b937405a5a10a9696893059d59670e58ae0dc1677daf17194ddfefcdd0d9fc33960ab5fd3a1fd3716cbe0e7fae961537ad46058
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/base"
3
+ require "rails/generators"
4
4
  require "rails/generators/migration"
5
5
  require "rails/generators/active_record"
6
6
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "rails/generators/base"
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 : (DEFAULT + options[:features]).map(&:to_sym)
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
- template "app/views/rodauth/#{view}.html.erb",
43
- "app/views/#{options[:directory].underscore}/#{view}.html.erb"
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rodauth
4
4
  module OAuth
5
- VERSION = "0.7.2"
5
+ VERSION = "0.7.3"
6
6
  end
7
7
  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.2
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: 2021-12-14 00:00:00.000000000 Z
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.com/honeyryderchuck/rodauth-oauth
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.22
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.