signpost-rails 0.1.6 → 0.1.7
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/lib/signpost/rails/authentication.rb +2 -7
- data/lib/signpost/rails/version.rb +1 -1
- data/signpost-rails.gemspec +1 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8649aabf9bfb93f27baebed86437b399747cdcbb
|
4
|
+
data.tar.gz: a1501cbb51915c43e8e616342954792b8c7aeca7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26714993a7e3d8bffcf4314ccc9017fc55bae211e216617340f54aae3e133d0bafe6c51f1a75d4fc855bd58f689c9e44b3f9a640e606b1b536b7d0bef5712a4d
|
7
|
+
data.tar.gz: b84d847edde8f5562a7c33dd176ed798af38b7b84c6d4431db61ad7671f5073d22b38fb6de274a9436f14097b350354acc33dfc9b35449d736c981fecbdf59a2
|
@@ -21,15 +21,10 @@ module SignPost
|
|
21
21
|
|
22
22
|
def authorized_keys
|
23
23
|
# If cached for less than 5 mins, then return the cache
|
24
|
-
|
25
|
-
|
26
|
-
if signpost_users && (Time.now - signpost_users[:cached_at]) < 5 * 60
|
27
|
-
::Rails.logger.info "Passing cached entry for authorized keys"
|
28
|
-
return signpost_users[:authorized_keys_path]
|
29
|
-
end
|
24
|
+
return self.signpost_users[:authorized_keys_path] if self.signpost_users && (Time.now - self.signpost_users[:cached_at]) < 5 * 60
|
30
25
|
keys = SignPost::Rails::Authentication.fetch_method.call
|
31
26
|
self.signpost_users = { cached_at: Time.now, authorized_keys_path: keys }
|
32
|
-
|
27
|
+
keys
|
33
28
|
end
|
34
29
|
end
|
35
30
|
end
|
data/signpost-rails.gemspec
CHANGED
@@ -13,6 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.summary = msg
|
14
14
|
spec.description = msg
|
15
15
|
spec.homepage = 'https://github.com/Shopify/signpost'
|
16
|
+
spec.license = 'MIT'
|
16
17
|
|
17
18
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
19
|
spec.require_paths = ['lib']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: signpost-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julian Nadeau
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: signpost-verifier
|
@@ -84,7 +84,8 @@ files:
|
|
84
84
|
- lib/signpost/rails/version.rb
|
85
85
|
- signpost-rails.gemspec
|
86
86
|
homepage: https://github.com/Shopify/signpost
|
87
|
-
licenses:
|
87
|
+
licenses:
|
88
|
+
- MIT
|
88
89
|
metadata: {}
|
89
90
|
post_install_message:
|
90
91
|
rdoc_options: []
|
@@ -102,8 +103,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
103
|
version: '0'
|
103
104
|
requirements: []
|
104
105
|
rubyforge_project:
|
105
|
-
rubygems_version: 2.5.1
|
106
|
+
rubygems_version: 2.4.5.1
|
106
107
|
signing_key:
|
107
108
|
specification_version: 4
|
108
109
|
summary: A rails integration to use with signpost ssh verification
|
109
110
|
test_files: []
|
111
|
+
has_rdoc:
|