socrates 0.1.14 → 0.1.15

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
  SHA1:
3
- metadata.gz: e8095a143a6ea9fb93d05cc7b7fb834eba02fcf3
4
- data.tar.gz: 634c5f239a2137e5621b8d08d2f06a1bea1acc0c
3
+ metadata.gz: 3ec8d3fe2a3292b1dcfcceecb7b7b988a2d16665
4
+ data.tar.gz: 0e09a7d93302051a5117a44d297fc514818dc73e
5
5
  SHA512:
6
- metadata.gz: ccf53d612a0292b9731fd3519435f18cf67e6e026563619747e9e6c9b83b0fbdd1bdae7bc98eb5dd67321ab1ceca39d3c4981235201c3d13bfbf1b771d7d7dfc
7
- data.tar.gz: 0ba223b9fd32a548ba02ce277c2e8d582f62024e2f8c9bd50cc5b48cc396f960e7578dd350f75df1f3a51eab32b999560370fb56a7c8bfdf0935a6fdc44b813b
6
+ metadata.gz: 84df3d652f807989b133d0188b9a16e8a45e6b28b6787398888e25329d83531c687d6ae0c397c6ed9e368407eddca13789c895a10382f2573acf45283a67a9f2
7
+ data.tar.gz: ad9ce7f1a969e776c9885cdc3c27b7bcb8126b80c42bebcf00fb2f0af356cbcd140757bd1a0a5a5e59891754449cab8129aa12c505dba21f8522a4ca3d36651b
@@ -23,9 +23,11 @@ module Socrates
23
23
  end
24
24
 
25
25
  def expired?
26
- return false unless last_interaction_timestamp.present?
26
+ return false if last_interaction_timestamp.nil? ||
27
+ Socrates.config.expired_timeout.nil? ||
28
+ Socrates.config.expired_timeout.zero?
27
29
 
28
- elapsed_time > (Socrates.config.expired_timeout || 30.minutes)
30
+ elapsed_time > Socrates.config.expired_timeout
29
31
  end
30
32
 
31
33
  def elapsed_time
@@ -1,3 +1,3 @@
1
1
  module Socrates
2
- VERSION = "0.1.14"
2
+ VERSION = "0.1.15"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: socrates
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Nelson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-18 00:00:00.000000000 Z
11
+ date: 2017-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler