amq-protocol 0.7.0.beta1 → 0.7.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
@@ -60,6 +60,8 @@ module AMQ
60
60
  when Time then
61
61
  buffer << TYPE_TIME
62
62
  buffer << [value.to_i].pack(PACK_INT64).reverse # FIXME: there has to be a more efficient way
63
+ when nil then
64
+ buffer << TYPE_VOID
63
65
  else
64
66
  # We don't want to require these libraries.
65
67
  if defined?(BigDecimal) && value.is_a?(BigDecimal)
@@ -1,5 +1,5 @@
1
1
  module AMQ
2
2
  module Protocol
3
- VERSION = "0.7.0.beta1"
3
+ VERSION = "0.7.0.beta2"
4
4
  end # Protocol
5
5
  end # AMQ
@@ -2,6 +2,7 @@
2
2
 
3
3
  require File.expand_path('../../../spec_helper', __FILE__)
4
4
  require 'bigdecimal'
5
+ require 'time'
5
6
 
6
7
 
7
8
  module AMQ
@@ -102,7 +103,7 @@ module AMQ
102
103
  "timestampval" => Time.parse("2011-07-14 01:17:46 +0400"),
103
104
  "floatval" => 3.14,
104
105
  "longval" => 912598613,
105
- "hashval" => { "protocol" => "AMQP091" }
106
+ "hashval" => { "protocol" => "AMQP091", "true" => true, "false" => false, "nil" => nil }
106
107
  }
107
108
  Table.decode(Table.encode(input)).should == input
108
109
  end
metadata CHANGED
@@ -1,10 +1,17 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: amq-protocol
3
- version: !ruby/object:Gem::Version
4
- version: 0.7.0.beta1
3
+ version: !ruby/object:Gem::Version
4
+ hash: 62196439
5
5
  prerelease: 6
6
+ segments:
7
+ - 0
8
+ - 7
9
+ - 0
10
+ - beta
11
+ - 2
12
+ version: 0.7.0.beta2
6
13
  platform: ruby
7
- authors:
14
+ authors:
8
15
  - Jakub Stastny
9
16
  - Michael S. Klishin
10
17
  - Theo Hultberg
@@ -12,19 +19,21 @@ authors:
12
19
  autorequire:
13
20
  bindir: bin
14
21
  cert_chain: []
15
- date: 2011-07-13 00:00:00.000000000Z
22
+
23
+ date: 2011-07-14 00:00:00 Z
16
24
  dependencies: []
17
- description: ! " amq-protocol is an AMQP 0.9.1 serialization library for Ruby. It
18
- is not an\n AMQP client: amq-protocol only handles serialization and deserialization.\n
19
- \ If you want to write your own AMQP client, this gem can help you with that.\n"
20
- email:
25
+
26
+ description: " amq-protocol is an AMQP 0.9.1 serialization library for Ruby. It is not an\n AMQP client: amq-protocol only handles serialization and deserialization.\n If you want to write your own AMQP client, this gem can help you with that.\n"
27
+ email:
21
28
  - michael@novemberain.com
22
29
  - stastny@101ideas.cz
23
30
  executables: []
31
+
24
32
  extensions: []
25
- extra_rdoc_files:
33
+
34
+ extra_rdoc_files:
26
35
  - README.textile
27
- files:
36
+ files:
28
37
  - .gitignore
29
38
  - .gitmodules
30
39
  - .rspec
@@ -33,7 +42,6 @@ files:
33
42
  - LICENSE
34
43
  - PROFILING.md
35
44
  - README.textile
36
- - TODO.todo
37
45
  - __init__.py
38
46
  - amq-protocol.gemspec
39
47
  - amqp_0.9.1_changes.json
@@ -64,26 +72,38 @@ files:
64
72
  - tasks.rb
65
73
  homepage: http://github.com/ruby-amqp/amq-protocol
66
74
  licenses: []
75
+
67
76
  post_install_message:
68
77
  rdoc_options: []
69
- require_paths:
78
+
79
+ require_paths:
70
80
  - lib
71
- required_ruby_version: !ruby/object:Gem::Requirement
81
+ required_ruby_version: !ruby/object:Gem::Requirement
72
82
  none: false
73
- requirements:
74
- - - ! '>='
75
- - !ruby/object:Gem::Version
76
- version: '0'
77
- required_rubygems_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ hash: 3
87
+ segments:
88
+ - 0
89
+ version: "0"
90
+ required_rubygems_version: !ruby/object:Gem::Requirement
78
91
  none: false
79
- requirements:
80
- - - ! '>'
81
- - !ruby/object:Gem::Version
92
+ requirements:
93
+ - - ">"
94
+ - !ruby/object:Gem::Version
95
+ hash: 25
96
+ segments:
97
+ - 1
98
+ - 3
99
+ - 1
82
100
  version: 1.3.1
83
101
  requirements: []
102
+
84
103
  rubyforge_project: amq-protocol
85
- rubygems_version: 1.8.4
104
+ rubygems_version: 1.8.5
86
105
  signing_key:
87
106
  specification_version: 3
88
107
  summary: AMQP 0.9.1 encoder & decoder.
89
108
  test_files: []
109
+
data/TODO.todo DELETED
@@ -1,27 +0,0 @@
1
- - YARD documentation
2
- - benchmarks
3
- - optimisations (see puka)
4
- - Don't let users set the deprecated arguments.
5
-
6
- OpenOk
7
- if $DEBUG
8
- if data[offset..(offset + 1)] != "\x00"
9
- raise BadResponseError.new("known_hosts", "\x00", data)
10
- end
11
- end
12
-
13
-
14
- DO NOT GENERATE THE FOLLOWING:
15
- attr_reader :known_hosts
16
- def initialize(known_hosts)
17
- @known_hosts = known_hosts
18
- end
19
-
20
- arguments = Basic::Publish.method(:encode).parameters.map { |array| array.last }
21
- arguments.should include(:frame_size)
22
-
23
- arguments = Connection::Open.method(:encode).map { |array| array.last }
24
- arguments.should_not include(:capabilities)
25
- arguments.should_not include(:insist)
26
-
27
- generate the spec file(s)?