date_time-smart 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/ChangeLog +4 -0
  2. data/Rakefile +1 -1
  3. data/lib/date_time/smart.rb +6 -3
  4. metadata +1 -1
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.0.3 / 2007-12-29
2
+
3
+ * Date#sg was not found in Ruby 1.9.0. So using Date#start.
4
+
1
5
  == 0.0.2 / 2007-12-29
2
6
 
3
7
  * fixed bug in Date::Smart#inspect.
data/Rakefile CHANGED
@@ -19,7 +19,7 @@ RUBYFORGE_PROJECT_ID = 4314
19
19
  RUBYFORGE_PACKAGE_ID = 6502
20
20
  HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
21
21
  BIN_FILES = %w( )
22
- VERS = "0.0.2"
22
+ VERS = "0.0.3"
23
23
 
24
24
  REV = File.read(".svn/entries")[/committed-rev="(d+)"/, 1] rescue nil
25
25
  CLEAN.include ['**/.*.sw?', '*.gem', '.config']
@@ -41,7 +41,7 @@ class DateTime
41
41
  end
42
42
 
43
43
  def inspect
44
- "#<#{self.class}: #{self.to_s}, #{self.ajd}, #{self.offset}, #{self.sg}>"
44
+ "#<#{self.class}: #{self.to_s}, #{self.ajd}, #{self.offset}, #{self.start}>"
45
45
  end
46
46
  end
47
47
 
@@ -49,18 +49,21 @@ class DateTime
49
49
  def now(sg = Date::ITALY)
50
50
  dt = DateTime.now(sg)
51
51
 
52
- new!(dt.ajd, dt.offset, dt.sg)
52
+ new!(dt.ajd, dt.offset, dt.start)
53
53
  end
54
54
 
55
55
  def today(sg = Date::ITALY)
56
56
  dt = Date.today(sg)
57
57
 
58
- new!(dt.ajd, dt.offset, dt.sg)
58
+ new!(dt.ajd, dt.__send__(:offset), dt.start)
59
59
  end
60
60
  end
61
61
 
62
62
  alias original_add +
63
63
  alias original_subtract -
64
+
65
+ public :offset
66
+
64
67
  include Shared
65
68
  extend SharedClassMethods
66
69
  end
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: date_time-smart
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.2
6
+ version: 0.0.3
7
7
  date: 2007-12-29 00:00:00 +09:00
8
8
  summary: wrapper of date_time using date_time-duration
9
9
  require_paths: