ice_cube 0.4 → 0.4.1

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.
@@ -21,8 +21,9 @@ module IceCube
21
21
  #note - temporary implementation
22
22
  def closest(date)
23
23
  return nil if !@days_of_week || @days_of_week.empty?
24
- while date += IceCube::ONE_DAY
25
- return date if validate(date)
24
+ goal = date
25
+ while goal += IceCube::ONE_DAY
26
+ return adjust(goal, date) if validate(goal)
26
27
  end
27
28
  end
28
29
 
@@ -1,5 +1,5 @@
1
1
  module IceCube
2
2
 
3
- VERSION = "0.4"
3
+ VERSION = "0.4.1"
4
4
 
5
5
  end
metadata CHANGED
@@ -5,7 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- version: "0.4"
8
+ - 1
9
+ version: 0.4.1
9
10
  platform: ruby
10
11
  authors:
11
12
  - John Crepezzi