openagent 0.8.6 → 0.8.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -93,9 +93,9 @@ module OpenAgent
93
93
  wait_period = wait_long
94
94
  messages_in_queue = true
95
95
  while messages_in_queue
96
- get_message do |message|
96
+ get_message do |message, outgoing, xml|
97
97
  if inner = message.inner_message
98
- trigger(:receive_message, message)
98
+ trigger(:receive_message, message, outgoing, xml)
99
99
 
100
100
  if inner.response
101
101
  case message.status_code
@@ -1,3 +1,3 @@
1
1
  module OpenAgent
2
- VERSION = '0.8.6' unless defined?(OpenAgent::VERSION)
2
+ VERSION = '0.8.7' unless defined?(OpenAgent::VERSION)
3
3
  end
@@ -35,6 +35,9 @@ module SIF
35
35
  def email
36
36
  first_email
37
37
  end
38
+ def email_prefix
39
+ first_email.split('@')[0] if first_email
40
+ end
38
41
  end
39
42
  end
40
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openagent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: 0.8.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-01-16 00:00:00.000000000 Z
14
+ date: 2014-01-17 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake