de 0.0.7 → 0.0.8

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.
data/CHANGELOG CHANGED
@@ -27,4 +27,7 @@ Bug fix: & and | operations should not influence operands object
27
27
 
28
28
  Version 0.0.7 (Novermber 7, 2011)
29
29
  =================================
30
- Bug fix: Date type was not supported for Interval operands
30
+ Bug fix: Date type was not supported for Interval operands
31
+
32
+ Version 0.0.8 (November 9, 2011)
33
+ Bug fix: Date interval type evaluation fix
@@ -192,7 +192,7 @@ module De
192
192
  protected
193
193
 
194
194
  def value_to_compare
195
- now = Time.now
195
+ now = root.options[:properties][@content.to_sym][:type] == :date ? Date.today : Time.now
196
196
  if @value.is_a?(Array)
197
197
  shifted_value = "[#{@value.map {|element| atomic_value(now + element.days) }.join(',')}]"
198
198
  elsif @value.is_a?(Range)
data/lib/de/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module De
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: de
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Olga Gorun
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-07 00:00:00 +02:00
18
+ date: 2011-11-09 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency