prove_keybase 0.1.1 → 0.1.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09c6cba54a8536ae3f4c6bc5d06b92b67700cd6f39e24f8f8a24635c45734578'
|
4
|
+
data.tar.gz: aa063c29840eadaffa48b431230ab18b9cedd1ec2dd1153d80fe4d0d85ca84f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd5a13b90898bcd5a07fd27037e0e74e1f4aba700010d7e06931ff1ac498992b810670cbdbe1e4bdc0607fd3741ef9cc5f0e52c431731f88c70413f6d07dbb72
|
7
|
+
data.tar.gz: e282a8266081dba4aee9c480cade1ca90ae5b955dc46fa34cb7e8d9e632a6c9c0d3b47835d2f27bb75d20389c4e220bf8710e21b79e5935c998b337ebccb4c5b
|
@@ -11,7 +11,7 @@ ProveKeybase.setup do |config|
|
|
11
11
|
# domain (perhaps a subdomain, or for testing/staging purposes) you might
|
12
12
|
# want to specify that the URLs are actually on a different domain. This
|
13
13
|
# will default to `config.domain` above, so you can safely ignore this.
|
14
|
-
# config.
|
14
|
+
# config._domain_for_urls = config.domain
|
15
15
|
|
16
16
|
# This is the URL to which a Keybase user will be linked when they click
|
17
17
|
# on a proof of one of your users. Please leave `%{username}` for interpolation
|
@@ -15,7 +15,7 @@ module ProveKeybase
|
|
15
15
|
:user_min_length, :user_max_length, :user_re, :logo_svg_full,
|
16
16
|
:logo_svg_black, :profile_url, :contact, :keybase_base_url,
|
17
17
|
:default_keybase_avatar_url, :job_queue, :login_redirection,
|
18
|
-
:
|
18
|
+
:_domain_for_urls
|
19
19
|
|
20
20
|
def initialize
|
21
21
|
# defaults
|
@@ -23,7 +23,10 @@ module ProveKeybase
|
|
23
23
|
@login_redirection = :root_path
|
24
24
|
@default_keybase_avatar_url = 'https://keybase.io/images/icons/icon-keybase-logo-64@2x.png'
|
25
25
|
@keybase_base_url = ENV.fetch('KEYBASE_BASE_URL') { 'https://keybase.io' }
|
26
|
-
|
26
|
+
end
|
27
|
+
|
28
|
+
def domain_for_urls
|
29
|
+
@_domain_for_urls || @domain
|
27
30
|
end
|
28
31
|
end
|
29
32
|
end
|