runt19 0.7.6 → 0.7.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/runt/pdate.rb +2 -2
  2. data/lib/runt/version.rb +1 -1
  3. metadata +1 -1
@@ -51,7 +51,7 @@ module Runt
51
51
  current_date = self.class.to_date(self)
52
52
  return DPrecision::to_p((current_date>>n),@date_precision)
53
53
  when WEEK then
54
- return new_self_plus(n*7)
54
+ return new_self_plus(n*7)
55
55
  when DAY then
56
56
  return new_self_plus(n)
57
57
  when HOUR then
@@ -90,7 +90,7 @@ module Runt
90
90
  if(block_given?)
91
91
  n=yield(n)
92
92
  end
93
- return DPrecision::to_p(self.class.new!(@ajd + n, @of, @sg),@date_precision)
93
+ return DPrecision::to_p(Time.at(to_time.to_i + (n.to_f * 86400)),date_precision)
94
94
  end
95
95
 
96
96
  def PDate.to_date(pdate)
@@ -1,3 +1,3 @@
1
1
  module Runt
2
- VERSION = "0.7.6"
2
+ VERSION = "0.7.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runt19
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6
4
+ version: 0.7.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: