two_percent 0.4.0 → 0.5.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 +4 -4
- data/app/controllers/two_percent/scim_controller.rb +1 -1
- data/lib/two_percent/configuration.rb +21 -1
- data/lib/two_percent/version.rb +1 -1
- data/lib/two_percent.rb +4 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 533e741957e0c547a769287f8916a72005c839c7db3af317984caf541263bf15
|
4
|
+
data.tar.gz: 2b43afab484a19828f373069addae52cdabc3150434f267ff488454a566de4c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: debd817addfe72f031540b9d14a420bd0f9845880f61e5ed77d0cc31c36650362c725281d5629b5b514d39f9634a98cb35253de85b1d8d55eb21d79e6ccd420f
|
7
|
+
data.tar.gz: 8a0dc3faf0d6a4f1d02b1eb612bc37b693ab1ad2d3bf785c4ddf247acae55d78c7d4c3e506cf6b6b788136fbfab70510be47649f583e55cbc8ab42d9aeeac3a3
|
@@ -30,6 +30,26 @@ module TwoPercent
|
|
30
30
|
# end
|
31
31
|
#
|
32
32
|
config_accessor :authenticate do
|
33
|
-
->(*)
|
33
|
+
->(*) do
|
34
|
+
TwoPercent.logger.warn(<<~MESSAGE)
|
35
|
+
TwoPercent authenticate is currently configured using a default and is blocking authenticaiton.
|
36
|
+
|
37
|
+
To make this wraning go away provide a configuration for `TwoPercent.config.authenticate`.
|
38
|
+
|
39
|
+
The value should:
|
40
|
+
1. Be callable like a Proc.
|
41
|
+
2. Return true when the request is permitted.
|
42
|
+
3. Return false when the request is not permitted.
|
43
|
+
MESSAGE
|
44
|
+
|
45
|
+
false
|
46
|
+
end
|
34
47
|
end
|
48
|
+
|
49
|
+
#
|
50
|
+
# Configures a logger to be used by TwoPercent modules.
|
51
|
+
# It can be accessed through `TwoPercent.logger`
|
52
|
+
# `TwoPercent.logger` will default to Rails.logger
|
53
|
+
#
|
54
|
+
config_accessor :logger
|
35
55
|
end
|
data/lib/two_percent/version.rb
CHANGED
data/lib/two_percent.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: two_percent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Palhares
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2025-05-
|
13
|
+
date: 2025-05-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: aether_observatory
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: '0'
|
93
93
|
requirements: []
|
94
|
-
rubygems_version: 3.5.
|
94
|
+
rubygems_version: 3.5.22
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: Adds a thin SCIM interface, and delegates the actions taken on write calls
|