openagent 0.8.5 → 0.8.6

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.
@@ -159,7 +159,7 @@ module OpenAgent
159
159
 
160
160
  check_for_errors(incoming)
161
161
 
162
- yield incoming, outgoing if block_given?
162
+ yield incoming, outgoing, response.body if block_given?
163
163
  end
164
164
  end
165
165
  end
@@ -1,3 +1,3 @@
1
1
  module OpenAgent
2
- VERSION = '0.8.5' unless defined?(OpenAgent::VERSION)
2
+ VERSION = '0.8.6' unless defined?(OpenAgent::VERSION)
3
3
  end
@@ -10,6 +10,7 @@ module SIF
10
10
  attribute :ref_id, String
11
11
 
12
12
  def find_element(name)
13
+ return if extended_elements.nil?
13
14
  el = extended_elements.find{ |e| e.name == name }
14
15
  el ? el.value : nil
15
16
  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.5
4
+ version: 0.8.6
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-15 00:00:00.000000000 Z
14
+ date: 2014-01-16 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake