activity-logger 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. data/lib/activity-logger.rb +1 -1
  2. metadata +2 -2
@@ -18,7 +18,7 @@ class ActivityLogger
18
18
  #
19
19
  def expired?()
20
20
  records = DynarexDaily.new.to_h
21
- if !records.empty? then
21
+ if records and !records.empty? then
22
22
  (Time.now - Time.parse(records.last[:time])) / 60 >= 45
23
23
  else
24
24
  true
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: activity-logger
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.3
5
+ version: 0.1.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Robertson
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-01-22 00:00:00 +00:00
13
+ date: 2012-01-24 00:00:00 +00:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency