chronological 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/lib/chronological.rb CHANGED
@@ -27,7 +27,7 @@ module Chronological
27
27
  end
28
28
 
29
29
  define_method(:in_progress?) do
30
- return false unless scheduled?
30
+ return false unless send(start_time_field).present? && send(end_time_field).present?
31
31
 
32
32
  (send(start_time_field) <= Time.now.utc) && send(end_time_field).future?
33
33
  end
@@ -1,3 +1,3 @@
1
1
  module Chronological
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chronological
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-10-17 00:00:00.000000000 Z
13
+ date: 2012-10-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec