rock-queue-smpp 0.1.6.06 → 0.1.6.08

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rock-queue-smpp/worker.rb +23 -0
  2. metadata +1 -1
@@ -48,9 +48,11 @@ module RockQueueSmpp
48
48
  )
49
49
  $stdout.flush
50
50
  @queue.receive do |queue|
51
+ puts "=> In Queue Loop"
51
52
  if queue
52
53
  # code that actually performs the action
53
54
  begin
55
+ puts "=> Processing Queue Item"
54
56
  args = queue.args.first
55
57
  args.empty? ? queue.object.perform : queue.object.perform(args)
56
58
  rescue Object => e
@@ -67,5 +69,26 @@ module RockQueueSmpp
67
69
  end
68
70
  end
69
71
 
72
+ def mo_received(transceiver, source_addr, destination_addr, short_message)
73
+ puts "=> Delegate: mo_received: from #{source_addr} to #{destination_addr}: #{short_message}"
74
+ end
75
+
76
+ def delivery_report_received(transceiver, msg_reference, stat, pdu)
77
+ puts "=> Delegate: delivery_report_received: ref #{msg_reference} stat #{stat} pdu #{pdu}"
78
+ end
79
+
80
+ def message_accepted(transceiver, mt_message_id, smsc_message_id)
81
+ puts "=> Delegate: message_sent: id #{mt_message_id} smsc ref id: #{smsc_message_id}"
82
+ end
83
+
84
+ def bound(transceiver)
85
+ puts "=> Delegate: transceiver bound"
86
+ end
87
+
88
+ def unbound(transceiver)
89
+ puts "=> Stopping EM Loop"
90
+ EventMachine::stop_event_loop
91
+ end
92
+
70
93
  end
71
94
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rock-queue-smpp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6.06
4
+ version: 0.1.6.08
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grzegorz Kazulak, Matt Van Veenendaal