tiny_tds 0.9.5.beta.4 → 0.9.5.beta.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 281f4262e1ff52acae14b3aece98e5287a213244
4
- data.tar.gz: 5cc584b410c662be2f000d8974515c079f046777
3
+ metadata.gz: 4a7a03e6a70460ea956b9604ac66d252770016b8
4
+ data.tar.gz: 9b353b91d2679b06a2ab3172af2ae3171832a88f
5
5
  SHA512:
6
- metadata.gz: 62376e7f6ce289160e406625d1b6ec4e5566a393770f11037c56cc8772bf83b00d8db06eb412a5a11733f67443f35009e1149698e136fde0265bad950b2e04f2
7
- data.tar.gz: 6a1944755b75319f73395ce2e40c2809730ed5d3d7ecac34dfd65c87a0736208b229553b5905e17d485de8708272f77f4a1cb227b784fdee28f990df32d853ba
6
+ metadata.gz: 6c07d3e11ee486f86d94109e8adffde636000e5bac854f705884079bc06dde1d94ae9eb7b7589a1436f2e0c6001aadc80ed5037a6374b883072954f42bb85db1
7
+ data.tar.gz: 4c5a44856d545b714499d7acd4104fe908086e4c8eec54e1120a34827cf82e3a8e78218f5db042a243db088909ead3037c80a3360d7071bb23c529cc8591a38b
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.5.beta.4
1
+ 0.9.5.beta.5
@@ -308,7 +308,7 @@ static VALUE rb_tinytds_result_fetch_row(VALUE self, ID timezone, int symbolize_
308
308
  }
309
309
  case 43: { // SYBMSDATETIMEOFFSET
310
310
  VALUE rational_sec = rb_Rational(INT2NUM(dr2.nanosecond), opt_onebil);
311
- val = rb_funcall(rb_cTime, intern_new, 7, INT2NUM(dr2.year), INT2NUM(dr2.month), INT2NUM(dr2.day), INT2NUM(dr2.hour), INT2NUM(dr2.minute), rational_sec, INT2NUM(dr2.tzone));
311
+ val = rb_funcall(rb_cTime, intern_new, 7, INT2NUM(dr2.year), INT2NUM(dr2.month), INT2NUM(dr2.day), INT2NUM(dr2.hour), INT2NUM(dr2.minute), rational_sec, INT2NUM(dr2.tzone*60));
312
312
  break;
313
313
  }
314
314
  }
data/test/schema_test.rb CHANGED
@@ -396,15 +396,15 @@ class SchemaTest < TinyTds::TestCase
396
396
  if @client.tds_73?
397
397
  assertions = lambda {
398
398
  assert_instance_of Time, v
399
- assert_equal 1984, v.year, 'Year'
400
- assert_equal 1, v.month, 'Month'
401
- assert_equal 24, v.day, 'Day'
402
- assert_equal 4, v.hour, 'Hour'
403
- assert_equal 20, v.min, 'Minute'
404
- assert_equal 0, v.sec, 'Second'
405
- assert_equal 123456, v.usec, 'Microseconds'
406
- assert_equal 123456700, v.nsec, 'Nanoseconds'
407
- assert_equal -480, v.utc_offset, 'Offset'
399
+ assert_equal 1984, v.year, 'Year'
400
+ assert_equal 1, v.month, 'Month'
401
+ assert_equal 24, v.day, 'Day'
402
+ assert_equal 4, v.hour, 'Hour'
403
+ assert_equal 20, v.min, 'Minute'
404
+ assert_equal 0, v.sec, 'Second'
405
+ assert_equal 123456, v.usec, 'Microseconds'
406
+ assert_equal 123456700, v.nsec, 'Nanoseconds'
407
+ assert_equal -28800, v.utc_offset, 'Offset'
408
408
  }
409
409
  assertions.call
410
410
  v = find_value 84, :datetimeoffset_7, timezone: :local
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny_tds
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5.beta.4
4
+ version: 0.9.5.beta.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Collins
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-12-26 00:00:00.000000000 Z
13
+ date: 2015-12-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mini_portile2