omniauth-sandstorm 1.0.0 → 1.0.1

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
  SHA1:
3
- metadata.gz: 40a2223b2faf264882c6f729fd806475f43fdeb8
4
- data.tar.gz: c13d1956ad8468e48627138adfb861ac36cd1788
3
+ metadata.gz: 18efd5a55314ff43921d5cc50767cccc62586233
4
+ data.tar.gz: 2991b688156f74caf34b972e97193403a17388d1
5
5
  SHA512:
6
- metadata.gz: e6f1f11ccbbe001454e48d784891fc0d4602dfa7ba2c4bc344c69e7bae02a32512f7c6b20681410a05e1b9f3f70199fa224269a02fe025348f000655653b6f64
7
- data.tar.gz: ff3566fd3a056a7109f3c39cbdcbfdfd648e2a91839d5466cec685556dff73803c7f89c4f07e27114a1652830f2449bee5f65247dca0b53b99f7e3f5b49ac095
6
+ metadata.gz: 184034f95600f55e43dc4a8ebf703a8ecaf22baa96d2944af8a841ca3ee494148809e981b702a3cd2bf1edff3b15c76e24e4ddaa81224d0b1d7f5d6e21642428
7
+ data.tar.gz: 80a8cc2e4ef4c638ef60c7204a011f543d0a590cb94797ed25b5a2f9be84bb896611d683f3a35c0b3527cd2afdabd0b7cd3513914dbc07106df6fa2ae12cffde
@@ -36,7 +36,11 @@ module OmniAuth
36
36
  end
37
37
 
38
38
  uid do
39
- sandstorm_header(:user_id) || "anon-#{SecureRandom.hex(16)}"
39
+ sandstorm_header(:user_id) || anon_uid
40
+ end
41
+
42
+ def anon_uid
43
+ @anon_uid ||= "anon-#{SecureRandom.hex}"
40
44
  end
41
45
 
42
46
  info do
@@ -16,6 +16,6 @@ require 'omniauth-sandstorm/version'
16
16
  require 'omniauth/strategies/sandstorm'
17
17
  module OmniAuth
18
18
  module Sandstorm
19
- VERSION = '1.0.0'
19
+ VERSION = '1.0.1'
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-sandstorm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Dee