signpost-rails 0.1.6 → 0.1.7

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: 54191fa9981ccb1c2a131e7c7dea04dde3de6a74
4
- data.tar.gz: 44aee79782070cac96ce53fb634a58bc1ac9931c
3
+ metadata.gz: 8649aabf9bfb93f27baebed86437b399747cdcbb
4
+ data.tar.gz: a1501cbb51915c43e8e616342954792b8c7aeca7
5
5
  SHA512:
6
- metadata.gz: e22c2773f8f4535dae260ee3459d79d64fcc42ba2cf7d13dc7b4f495d6c315d2919d4752cbac4bf2845ce6a8147eb60cb2dc64fed08768de29218088289711c0
7
- data.tar.gz: d05c5d31f8a38ba5f3409cc40295fed5805240809321be3e9e542c2f4225c4af63b5301edc0cf5c630a54db30debfe4b54e94fd24efa940c114c86afff332a5e
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
- ::Rails.logger.info "Users: #{signpost_users}"
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
- signpost_users[:authorized_keys_path]
27
+ keys
33
28
  end
34
29
  end
35
30
  end
@@ -1,5 +1,5 @@
1
1
  module Signpost
2
2
  module Rails
3
- VERSION = '0.1.6'.freeze
3
+ VERSION = '0.1.7'.freeze
4
4
  end
5
5
  end
@@ -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.6
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-09-16 00:00:00.000000000 Z
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: