gamora 0.14.1 → 0.15.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b86b5408e3b789413964ee3f2bda90e09a720f208e0fd0e8321e201bd4b7dbf3
4
- data.tar.gz: f4ffab58834e0d101e429bedd2eda712eea88c4c249e32b5705292aac38da64a
3
+ metadata.gz: 7601dc2835a613cde15c7474a4c05334c28dbde10cee73e0eedf92dc2846484d
4
+ data.tar.gz: c4e39970c1e06baba5e8a89977fdbdf53ec4d2b4691daf4a5b6e8b96d14e4417
5
5
  SHA512:
6
- metadata.gz: 5645b009f2fd9547d3e1039c3997c21f7a2ea57bf9a11fdd71fbe38cb0ef7cb5e1bb2ce4e689bd908149252b7c4c12319787382c0587a09addd3f17b6c883aa3
7
- data.tar.gz: 0b004457b47a11f2f45abbb87497fb1e91c5c46feb8b57a16765380903847177399dffb3d39f5b6fdc68fe5035d1ca602c90997a14d34a828fbd63f9ef244b6d
6
+ metadata.gz: 8f3b6750430d21c39d236e9e9f762c6e19a1d60977d45b44f9137a7dc117f9f02feb8e1dea6392c8ea88c732519274a50a02a6c497badae11c258b7d55c0cdc4
7
+ data.tar.gz: 1a32c83aa80474be4d1b5ff0a72675e521031741bbfb3e388237c11f53971093641358afd288c404d9eb311d60a76f36df02246528d8d6e1d5076975707f73e8
@@ -12,6 +12,7 @@ module Gamora
12
12
  branding
13
13
  ui_locales
14
14
  allow_create
15
+ allow_amco_badge
15
16
  ].freeze
16
17
 
17
18
  def authorization_url(params, extra_params = {})
@@ -34,7 +35,8 @@ module Gamora
34
35
  strategy: Configuration.default_strategy,
35
36
  branding: Configuration.default_branding,
36
37
  ui_locales: Configuration.ui_locales.call,
37
- allow_create: Configuration.allow_create
38
+ allow_create: Configuration.allow_create.to_s,
39
+ allow_amco_badge: Configuration.allow_amco_badge.to_s
38
40
  }
39
41
  end
40
42
 
@@ -18,6 +18,7 @@ module Gamora
18
18
  mattr_accessor :default_theme, default: "default"
19
19
  mattr_accessor :ui_locales, default: -> { I18n.locale }
20
20
  mattr_accessor :allow_create, default: true
21
+ mattr_accessor :allow_amco_badge, default: false
21
22
  mattr_accessor :userinfo_cache_expires_in, default: 1.minute
22
23
  mattr_accessor :introspect_cache_expires_in, default: 0.seconds
23
24
  mattr_accessor :authorization_method, default: ->(user) { user }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gamora
4
- VERSION = "0.14.1"
4
+ VERSION = "0.15.0"
5
5
  end
@@ -20,6 +20,7 @@ Gamora.setup do |config|
20
20
  # config.default_theme = "default"
21
21
  # config.ui_locales = -> { I18n.locale }
22
22
  # config.allow_create = true
23
+ # config.allow_amco_badge = false
23
24
  # config.userinfo_cache_expires_in = 1.minute
24
25
  # config.introspect_cache_expires_in = 0.seconds
25
26
  # config.authorization_method = ->(user) { user.authorized? }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gamora
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alejandro Gutiérrez
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-04-03 00:00:00.000000000 Z
10
+ date: 2025-05-14 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: oauth2