data_objects 0.10.4 → 0.10.5

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.markdown CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.10.5 2011-05-03
2
+
3
+ Bugfixes
4
+ * Fix an issue with DateTime (do\_sqlite3)
5
+
1
6
  ## 0.10.4 2011-04-28
2
7
 
3
8
  New features
@@ -19,7 +19,7 @@ shared_examples_for 'supporting DateTime' do
19
19
  describe 'with manual typecasting' do
20
20
 
21
21
  before do
22
- @command = @connection.create_command("SELECT release_date FROM widgets WHERE ad_description = ?")
22
+ @command = @connection.create_command("SELECT release_datetime FROM widgets WHERE ad_description = ?")
23
23
  @command.set_types(DateTime)
24
24
  @reader = @command.execute_reader('Buy this product now!')
25
25
  @reader.next!
@@ -36,7 +36,8 @@ shared_examples_for 'supporting DateTime' do
36
36
 
37
37
  it 'should return the correct result' do
38
38
  date = @values.first
39
- Date.civil(date.year, date.mon, date.day).should == Date.civil(2008, 2, 14)
39
+ local_offset = Rational(Time.local(2008, 2, 14).utc_offset, 86400)
40
+ date.should == DateTime.civil(2008, 2, 14, 00, 31, 12, local_offset)
40
41
  end
41
42
 
42
43
  end
@@ -1,3 +1,3 @@
1
1
  module DataObjects
2
- VERSION = '0.10.4'
2
+ VERSION = '0.10.5'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data_objects
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 61
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 10
9
- - 4
10
- version: 0.10.4
9
+ - 5
10
+ version: 0.10.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dirkjan Bussink