~brightbox/ruby-stomp/packaging

« back to all changes in this revision

Viewing changes to debian/patches/case_statement_compatible_1.9.2.patch

  • Committer: spk-guest
  • Date: 2010-09-27 22:29:59 UTC
  • Revision ID: svn-v4:f03df7b7-9ef6-0310-b810-abca406d246c:trunk/libstomp-ruby:5879
Fix require for ruby 1.9.2 (Closes: #593079).

Signed-off-by: Laurent Arnoud <laurent@spkdev.net>

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From: Marius Mathiesen
 
2
Description: Making 1.9 compatible
 
3
Origin: upstream, http://github.com/js/stomp/commit/a778661ce9c074ae5b415658d17dd2639f5c9c05
 
4
Debian-Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=593079
 
5
--- a/lib/stomp.rb
 
6
+++ b/lib/stomp.rb
 
7
@@ -286,13 +286,13 @@ module Stomp
 
8
         while @running
 
9
           message = @connection.receive
 
10
           case
 
11
-          when message == NIL:
 
12
+          when message == NIL
 
13
             break
 
14
-          when message.command == 'MESSAGE': 
 
15
+          when message.command == 'MESSAGE'
 
16
             if listener = @listeners[message.headers['destination']]
 
17
               listener.call(message)
 
18
             end
 
19
-          when message.command == 'RECEIPT':
 
20
+          when message.command == 'RECEIPT'
 
21
             if listener = @receipt_listeners[message.headers['receipt-id']]
 
22
               listener.call(message)
 
23
             end