amq-protocol 0.7.0.alpha1 → 0.7.0.alpha2

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/amq-protocol.gemspec CHANGED
@@ -18,7 +18,6 @@ Gem::Specification.new do |s|
18
18
  DESC
19
19
  s.cert_chain = nil
20
20
  s.email = ["bWljaGFlbEBub3ZlbWJlcmFpbi5jb20=\n", "c3Rhc3RueUAxMDFpZGVhcy5jeg==\n"].map { |i| Base64.decode64(i) }
21
- s.has_rdoc = true
22
21
 
23
22
  # files
24
23
  s.files = `git ls-files`.split("\n").reject { |file| file =~ /^vendor\// }
@@ -519,11 +519,7 @@ module AMQ
519
519
  offset += 2
520
520
  method_id = data[offset, 2].unpack(PACK_UINT16).first
521
521
  offset += 2
522
- if reply_code.eql?(200)
523
- self.new(reply_code, reply_text, class_id, method_id)
524
- else
525
- raise Error[reply_code].new(reply_text)
526
- end
522
+ self.new(reply_code, reply_text, class_id, method_id)
527
523
  end
528
524
 
529
525
  attr_reader :reply_code, :reply_text, :class_id, :method_id
@@ -725,11 +721,7 @@ module AMQ
725
721
  offset += 2
726
722
  method_id = data[offset, 2].unpack(PACK_UINT16).first
727
723
  offset += 2
728
- if reply_code.eql?(200)
729
- self.new(reply_code, reply_text, class_id, method_id)
730
- else
731
- raise Error[reply_code].new(reply_text)
732
- end
724
+ self.new(reply_code, reply_text, class_id, method_id)
733
725
  end
734
726
 
735
727
  attr_reader :reply_code, :reply_text, :class_id, :method_id
@@ -1,5 +1,5 @@
1
1
  module AMQ
2
2
  module Protocol
3
- VERSION = "0.7.0.alpha1"
3
+ VERSION = "0.7.0.alpha2"
4
4
  end # Protocol
5
5
  end # AMQ
@@ -324,11 +324,7 @@ module AMQ
324
324
  ${line}
325
325
  % endfor
326
326
  % if (method.klass.name == "connection" or method.klass.name == "channel") and method.name == "close":
327
- if reply_code.eql?(200)
328
- self.new(${', '.join([f.ruby_name for f in method.arguments])})
329
- else
330
- raise Error[reply_code].new(reply_text)
331
- end
327
+ self.new(${', '.join([f.ruby_name for f in method.arguments])})
332
328
  % else:
333
329
  self.new(${', '.join([f.ruby_name for f in method.arguments])})
334
330
  % endif
@@ -82,8 +82,8 @@ module AMQ
82
82
  end
83
83
 
84
84
  context 'with an error code' do
85
- it 'raises the corresponding error' do
86
- expect { Close.decode("\x01\x38\x08NO_ROUTE\x00\x00") }.to raise_error(NoRoute, 'NO_ROUTE')
85
+ it 'returns frame and lets calling code handle the issue' do
86
+ Close.decode("\x01\x38\x08NO_ROUTE\x00\x00")
87
87
  end
88
88
  end
89
89
  end
@@ -118,8 +118,8 @@ module AMQ
118
118
  end
119
119
 
120
120
  context 'with an error code' do
121
- it 'raises the corresponding error' do
122
- expect { Close.decode("\x01\x38\x08NO_ROUTE\x00\x00") }.to raise_error(NoRoute, 'NO_ROUTE')
121
+ it 'returns method frame and lets calling code handle the issue' do
122
+ Close.decode("\x01\x38\x08NO_ROUTE\x00\x00")
123
123
  end
124
124
  end
125
125
  end
metadata CHANGED
@@ -1,17 +1,10 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: amq-protocol
3
- version: !ruby/object:Gem::Version
4
- hash: 1552698946208022685
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.7.0.alpha2
5
5
  prerelease: 6
6
- segments:
7
- - 0
8
- - 7
9
- - 0
10
- - alpha
11
- - 1
12
- version: 0.7.0.alpha1
13
6
  platform: ruby
14
- authors:
7
+ authors:
15
8
  - Jakub Stastny
16
9
  - Michael S. Klishin
17
10
  - Theo Hultberg
@@ -19,28 +12,26 @@ authors:
19
12
  autorequire:
20
13
  bindir: bin
21
14
  cert_chain:
22
- date: 2011-04-17 00:00:00 +04:00
15
+ date: 2011-05-04 00:00:00.000000000 +04:00
23
16
  default_executable:
24
17
  dependencies: []
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:
18
+ description: ! " amq-protocol is an AMQP 0.9.1 serialization library for Ruby. It
19
+ is not an\n AMQP client: amq-protocol only handles serialization and deserialization.\n
20
+ \ If you want to write your own AMQP client, this gem can help you with that.\n"
21
+ email:
28
22
  - michael@novemberain.com
29
23
  - stastny@101ideas.cz
30
24
  executables: []
31
-
32
25
  extensions: []
33
-
34
- extra_rdoc_files:
26
+ extra_rdoc_files:
35
27
  - README.textile
36
- files:
28
+ files:
37
29
  - .gitignore
38
30
  - .gitmodules
39
31
  - .rspec
40
32
  - .travis.yml
41
33
  - CONTRIBUTORS
42
34
  - Gemfile
43
- - Gemfile.lock
44
35
  - LICENSE
45
36
  - PROFILING.md
46
37
  - README.textile
@@ -79,38 +70,26 @@ files:
79
70
  has_rdoc: true
80
71
  homepage: http://github.com/ruby-amqp/amq-protocol
81
72
  licenses: []
82
-
83
73
  post_install_message:
84
74
  rdoc_options: []
85
-
86
- require_paths:
75
+ require_paths:
87
76
  - lib
88
- required_ruby_version: !ruby/object:Gem::Requirement
77
+ required_ruby_version: !ruby/object:Gem::Requirement
89
78
  none: false
90
- requirements:
91
- - - ">="
92
- - !ruby/object:Gem::Version
93
- hash: 3
94
- segments:
95
- - 0
96
- version: "0"
97
- required_rubygems_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ! '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
84
  none: false
99
- requirements:
100
- - - ">"
101
- - !ruby/object:Gem::Version
102
- hash: 25
103
- segments:
104
- - 1
105
- - 3
106
- - 1
85
+ requirements:
86
+ - - ! '>'
87
+ - !ruby/object:Gem::Version
107
88
  version: 1.3.1
108
89
  requirements: []
109
-
110
90
  rubyforge_project: amq-protocol
111
- rubygems_version: 1.5.2
91
+ rubygems_version: 1.6.2
112
92
  signing_key:
113
93
  specification_version: 3
114
94
  summary: AMQP 0.9.1 encoder & decoder.
115
95
  test_files: []
116
-
data/Gemfile.lock DELETED
@@ -1,31 +0,0 @@
1
- GEM
2
- remote: http://gemcutter.org/
3
- specs:
4
- contributors (0.1.2)
5
- diff-lcs (1.1.2)
6
- nake (0.0.8)
7
- term-ansicolor
8
- perftools.rb (0.5.6)
9
- rspec (2.5.0)
10
- rspec-core (~> 2.5.0)
11
- rspec-expectations (~> 2.5.0)
12
- rspec-mocks (~> 2.5.0)
13
- rspec-core (2.5.1)
14
- rspec-expectations (2.5.0)
15
- diff-lcs (~> 1.1.2)
16
- rspec-mocks (2.5.0)
17
- simplecov (0.4.2)
18
- simplecov-html (~> 0.4.4)
19
- simplecov-html (0.4.4)
20
- term-ansicolor (1.0.5)
21
-
22
- PLATFORMS
23
- java
24
- ruby
25
-
26
- DEPENDENCIES
27
- contributors
28
- nake
29
- perftools.rb
30
- rspec (>= 2.0.0)
31
- simplecov