Skip to content

Commit 3d48366

Browse files
authored
Merge pull request #4 from code-dot-org/support-latest-aws-sdk-core
Support Latest Version of `aws-sdk-core`
2 parents 547e7a8 + 2782d64 commit 3d48366

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

aws-google.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
2121
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
2222
spec.require_paths = ['lib']
2323

24-
spec.add_dependency 'aws-sdk-core', '~> 3'
24+
spec.add_dependency 'aws-sdk-core', '~> 3.130'
2525
spec.add_dependency 'google-api-client', '~> 0.23'
2626
spec.add_dependency 'launchy', '~> 2'
2727

lib/aws/google/cached_credentials.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ def initialize(options = {})
2323
end
2424

2525
def refresh_if_near_expiration
26-
if near_expiration?
26+
if near_expiration?(SYNC_EXPIRATION_LENGTH)
2727
@mutex.synchronize do
28-
if near_expiration?
28+
if near_expiration?(SYNC_EXPIRATION_LENGTH)
2929
refresh
3030
write_credentials
3131
end

0 commit comments

Comments
 (0)