plist 1.1.0 → 1.1.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.
Files changed (3) hide show
  1. data/plist.rb +2 -2
  2. data/test_plist.rb +2 -2
  3. metadata +2 -2
data/plist.rb CHANGED
@@ -182,10 +182,10 @@ class Plist
182
182
  end
183
183
  end
184
184
 
185
- require 'time'
185
+ require 'date'
186
186
  class PDate < PTag
187
187
  def to_ruby
188
- Time.parse(text)
188
+ DateTime.parse(text)
189
189
  end
190
190
  end
191
191
 
@@ -53,8 +53,8 @@ class TestPlist < Test::Unit::TestCase
53
53
 
54
54
  def test_date_fields
55
55
  result = Plist::parse_xml("Cookies.plist")
56
- assert_kind_of( Time, result.first['Expires'] )
57
- assert_equal( "Thu Oct 25 12:36:35 UTC 2007", result.first['Expires'].to_s )
56
+ assert_kind_of( DateTime, result.first['Expires'] )
57
+ assert_equal( "2007-10-25T12:36:35Z", result.first['Expires'].to_s )
58
58
  end
59
59
 
60
60
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11.3
3
3
  specification_version: 1
4
4
  name: plist
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.1.0
7
- date: 2006-04-27 00:00:00 -04:00
6
+ version: 1.1.1
7
+ date: 2006-05-03 00:00:00 -04:00
8
8
  summary: plist parses Mac OS X plist files into ruby data types.
9
9
  require_paths:
10
10
  - "."