iproto 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
data/iproto.gemspec CHANGED
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
 
6
6
  s.name = 'iproto'
7
- s.version = '0.3.7'
8
- s.date = '2012-08-07'
7
+ s.version = '0.3.8'
8
+ s.date = '2012-08-08'
9
9
  s.rubyforge_project = 'iproto'
10
10
 
11
11
  s.summary = "Mail.Ru simple network protocol"
@@ -37,5 +37,5 @@ Gem::Specification.new do |s|
37
37
  ## Test files will be grabbed from the file list. Make sure the path glob
38
38
  ## matches what you actually use.
39
39
  s.test_files = s.files.select { |path| path =~ /^spec\/.*_spec\.rb/ }
40
- s.add_dependency 'bin_utils', ['= 0.0.2']
40
+ s.add_dependency 'bin_utils', ['= 0.0.3']
41
41
  end
@@ -14,8 +14,7 @@ module IProto
14
14
 
15
15
  BINARY = ::Encoding::BINARY
16
16
  def pack_request(request_type, request_id, body)
17
- data = ''.force_encoding(BINARY)
18
- ::BinUtils.append_int32_le!(data, request_type, body.bytesize, request_id)
17
+ data = ::BinUtils.append_int32_le!(nil, request_type, body.bytesize, request_id)
19
18
  ::BinUtils.append_string!(data, body)
20
19
  end
21
20
  end
data/lib/iproto.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module IProto
2
- VERSION = '0.3.7'
2
+ VERSION = '0.3.8'
3
3
  class IProtoError < StandardError; end
4
4
  class ConnectionError < IProtoError; end
5
5
  class CouldNotConnect < ConnectionError; end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iproto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
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: 2012-08-07 00:00:00.000000000 Z
12
+ date: 2012-08-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bin_utils
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.0.2
21
+ version: 0.0.3
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 0.0.2
29
+ version: 0.0.3
30
30
  description: Mail.Ru simple network protocol
31
31
  email: ceo@prepor.ru
32
32
  executables: []