prove_keybase 0.1.1 → 0.1.2

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: 478d6b2e7486a318cd58545885ffcbf95630d7e7354584b9a61b17da13ffce75
4
- data.tar.gz: ef316bec11d97651ff7d13aa55ecd688fdc4757b41935ed04465623c16e3d8a9
3
+ metadata.gz: '09c6cba54a8536ae3f4c6bc5d06b92b67700cd6f39e24f8f8a24635c45734578'
4
+ data.tar.gz: aa063c29840eadaffa48b431230ab18b9cedd1ec2dd1153d80fe4d0d85ca84f9
5
5
  SHA512:
6
- metadata.gz: 7d428ac813a60791e12b1ac02c1ce65945516851418b9761bc3aff171d2ce5e2f5bd02c866475b8d322790a4e81aa2c969d4819d17840802eee08165dcdaf25c
7
- data.tar.gz: 0e6714bcf31889b507bea552debb89c37ce4fe7247a5e96ce6f147158f1553000f91464a1eee6f77e640b257d41f269a2fbecbb27557855d2e7be2e2e17336f9
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.domain_for_urls = 'yoursite.com'
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
- :domain_for_urls
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
- @domain_for_urls = @domain
26
+ end
27
+
28
+ def domain_for_urls
29
+ @_domain_for_urls || @domain
27
30
  end
28
31
  end
29
32
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ProveKeybase
4
- VERSION = '0.1.1'.freeze
4
+ VERSION = '0.1.2'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prove_keybase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Gessner