hessian2 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,22 +1,22 @@
1
- = hessian2
2
-
3
- hessian客户端。在Christer Sandberg的hessian基础上,修正了pack UTF-8(中文等字符),指定Long型,更好地被ruby1.9支持。
4
-
5
- hessian client. based on Christer Sandberg's hessian, fixed UTF-8 pack, allow declare long type, ruby1.9 tested.
6
-
7
- == Using
8
-
9
- gem install hessian2
10
-
11
- require 'hessian2'
12
-
13
- url = 'http://localhost:8080/person_service'
14
-
15
- client = Hessian2::HessianClient.new(url)
16
-
17
- #call remote function: Map<Long, Person> queryPassportUidMap(List<Long> uidList)
18
- puts client.queryPassportUidMap([Hessian2::TypeWrapper.new('Long', 47), Hessian2::TypeWrapper.new('Long', 48)])
19
-
20
- == Authors
21
-
22
- * {Takafan}[http://hululuu.com]
1
+ = hessian2
2
+
3
+ hessian客户端。在Christer Sandberg的hessian基础上,修正了pack UTF-8(中文等字符),指定Long型,更好地被ruby1.9支持。
4
+
5
+ hessian client. based on Christer Sandberg's hessian, fixed UTF-8 pack, allow declare long type, ruby1.9 tested.
6
+
7
+ == Using
8
+
9
+ gem install hessian2
10
+
11
+ require 'hessian2'
12
+
13
+ url = 'http://localhost:8080/person_service'
14
+
15
+ client = Hessian2::HessianClient.new(url)
16
+
17
+ #call remote function: Map<Long, Person> queryPassportUidMap(List<Long> uidList)
18
+ puts client.queryPassportUidMap([Hessian2::TypeWrapper.new('Long', 47), Hessian2::TypeWrapper.new('Long', 48)])
19
+
20
+ == Authors
21
+
22
+ * {Takafan}[http://hululuu.com]
@@ -1,3 +1,3 @@
1
1
  module Hessian2
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
data/lib/hessian2.rb CHANGED
@@ -73,7 +73,7 @@ module Hessian2
73
73
  when Binary
74
74
  [ 'B', val.data.length ].pack('an') << val.data
75
75
  when String
76
- [ 'S', val.length ].pack('an') << val.unpack('C*').pack('U*')
76
+ [ 'S', val.length ].pack('an') << val.unpack('U*').pack('U*')
77
77
  when
78
78
  Integer
79
79
  # Max and min values for integers in Java.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hessian2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-24 00:00:00.000000000 Z
12
+ date: 2012-06-12 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: hessian client. based on Christer Sandberg's hessian, fixed UTF-8 pack,
15
15
  allow declare long type, ruby1.9 tested.
@@ -48,10 +48,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
48
48
  version: '0'
49
49
  requirements: []
50
50
  rubyforge_project: hessian2
51
- rubygems_version: 1.8.11
51
+ rubygems_version: 1.8.24
52
52
  signing_key:
53
53
  specification_version: 3
54
54
  summary: Hessian2
55
- test_files:
56
- - test/servlet_invoker.rb
57
- - test/test_hessian_parser.rb
55
+ test_files: []