amq-protocol 0.8.4 → 0.9.0
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/.travis.yml +3 -3
- data/README.textile +6 -11
- data/lib/amq/protocol/version.rb +1 -1
- data/spec/amq/protocol/table_spec.rb +4 -2
- metadata +5 -5
data/.travis.yml
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
# https://github.com/travis-ci/travis-ci/wiki/.travis.yml-options
|
2
2
|
bundler_args: --without development
|
3
|
+
before_install: gem install bundler --pre
|
3
4
|
script: "bundle exec rspec spec"
|
4
5
|
rvm:
|
5
6
|
- 1.8.7
|
6
|
-
- rbx-
|
7
|
+
- rbx-18mode
|
8
|
+
- rbx-19mode
|
7
9
|
- ree
|
8
10
|
- jruby
|
9
11
|
- 1.9.2
|
@@ -11,6 +13,4 @@ rvm:
|
|
11
13
|
- ruby-head
|
12
14
|
notifications:
|
13
15
|
recipients:
|
14
|
-
- jakub@rabbitmq.com
|
15
16
|
- michaelklishin@me.com
|
16
|
-
- markizko@gmail.com
|
data/README.textile
CHANGED
@@ -26,17 +26,6 @@ If you need to see what AMQP methods are encoded, just regenerate the protocol f
|
|
26
26
|
|
27
27
|
!http://static.101ideas.cz/amqp-debug.png!
|
28
28
|
|
29
|
-
h3. Nightly Builds
|
30
|
-
|
31
|
-
You can always find nightly builds at "gems.101ideas.cz":http://gems.101ideas.cz.
|
32
|
-
|
33
|
-
You can install them thusly:
|
34
|
-
|
35
|
-
<pre>
|
36
|
-
wget http://gems.101ideas.cz/amq-protocol-nightly.gem
|
37
|
-
gem install amq-protocol-nightly.gem
|
38
|
-
</pre>
|
39
|
-
|
40
29
|
h3. Contributing
|
41
30
|
|
42
31
|
If you want to change some code, don't edit @lib/amq/protocol/client.rb@ —
|
@@ -45,6 +34,12 @@ which is a template file used by @codegen.py@. You can re-generate by running
|
|
45
34
|
<pre>nake ./tasks.rb generate</pre>
|
46
35
|
Please note that nake gem only runs on Ruby 1.9.2.
|
47
36
|
|
37
|
+
|
38
|
+
## Maintainer Information
|
39
|
+
|
40
|
+
amq-protocol is maintained by [Michael Klishin](https://github.com/michaelklishin).
|
41
|
+
|
42
|
+
|
48
43
|
h2. Links
|
49
44
|
|
50
45
|
* "API Documentation":http://rdoc.info/github/ruby-amqp/amq-protocol/master/frames
|
data/lib/amq/protocol/version.rb
CHANGED
@@ -210,13 +210,12 @@ module AMQ
|
|
210
210
|
}
|
211
211
|
Table.decode(Table.encode(input1)).should == input1
|
212
212
|
|
213
|
-
|
213
|
+
now = Time.now
|
214
214
|
input2 = {
|
215
215
|
"coordinates" => {
|
216
216
|
"latitude" => 59.35,
|
217
217
|
"longitude" => 18.066667
|
218
218
|
},
|
219
|
-
"time" => @now,
|
220
219
|
"participants" => 11,
|
221
220
|
"venue" => "Stockholm",
|
222
221
|
"true_field" => true,
|
@@ -226,6 +225,9 @@ module AMQ
|
|
226
225
|
}
|
227
226
|
|
228
227
|
Table.decode(Table.encode(input2)).should == input2
|
228
|
+
|
229
|
+
input3 = { "timely" => { "now" => now } }
|
230
|
+
Table.decode(Table.encode(input3))["timely"]["now"].to_i.should == now.to_i
|
229
231
|
end
|
230
232
|
|
231
233
|
end # describe
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amq-protocol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 59
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 9
|
9
|
+
- 0
|
10
|
+
version: 0.9.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jakub Stastny
|
@@ -18,7 +18,7 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date:
|
21
|
+
date: 2012-01-11 00:00:00 Z
|
22
22
|
dependencies: []
|
23
23
|
|
24
24
|
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"
|