hessian 1.0 → 1.0.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.
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ Rake::TestTask.new do |t|
10
10
  t.warning = true
11
11
  end
12
12
 
13
- PKG_VERSION = "1.0"
13
+ PKG_VERSION = "1.0.1"
14
14
  PKG_FILES = FileList[
15
15
  'LICENSE',
16
16
  'Rakefile',
data/lib/hessian.rb CHANGED
@@ -76,7 +76,7 @@ module Hessian
76
76
  "L%s" % to_long(val)
77
77
  end
78
78
  when Float: [ 'D', val ].pack('aG')
79
- when Time: "d%s" % to_long(val.to_i * 1000)
79
+ when Time: "d%s" % to_long((val.to_f * 1000).to_i)
80
80
  when TrueClass: 'T'
81
81
  when FalseClass: 'F'
82
82
  when Array
@@ -31,6 +31,7 @@ class HessianParserTest < Test::Unit::TestCase
31
31
  time = parse("r\001\000d\000\000\001\010\344\036\332\360z")
32
32
  assert_instance_of Time, time
33
33
  assert_equal '2006-01-19 20:23:13', time.strftime("%Y-%m-%d %H:%M:%S")
34
+ assert_equal 520000, time.usec
34
35
  end
35
36
  def test_integer_array
36
37
  assert_equal [ 1, 2, 3 ], parse([ "r\001\000Vt\000\004[intl\000\000\000\003",
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.0
2
+ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: hessian
5
5
  version: !ruby/object:Gem::Version
6
- version: "1.0"
7
- date: 2006-07-22 00:00:00 +02:00
6
+ version: 1.0.1
7
+ date: 2007-12-09 00:00:00 +01:00
8
8
  summary: A Ruby Hessian client.
9
9
  require_paths:
10
10
  - lib