ruby_ICE_client 0.0.1 → 0.0.2

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.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MWE2OTBlMTlhY2I5YTFmYzdiMjEyYWIwOTZlM2NiMmZjYjYwNjYwMQ==
5
- data.tar.gz: !binary |-
6
- ZDM5MGE4OGM0OTQ3NWQzOGZkMjIxODE2YTA2ZjExZjZkOWI2ZjVhNg==
2
+ SHA1:
3
+ metadata.gz: 1f8927979fda5acc7aca4afe7d51e7dda0ea195a
4
+ data.tar.gz: 2b1ce0d2a6cb3eedaef3b619ce9316d7f106271a
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NDM4MDA3YmI1NzA4YzlkZDJlZjIzMGY5OGQ2NDA5Y2UyYmQyNzg3YTM4NGVh
10
- OTE4OWRkZDU0ZjUyY2U3NzBjY2JiMjFmNTVjY2QxOWEyZTM5NWYyMmJkNDI4
11
- YzcxMTc2YmRjMTE0YjIwZWUzNTg2ZDRkNWE4MTdlNjVhNGI3YjE=
12
- data.tar.gz: !binary |-
13
- MzQyNzYzNTIyNzk3YzcyMmQ5YzQwOTFkYTJlZWJmMTg0N2ZlY2NkZjQ1MzY0
14
- NGEzYWU1NjcwYjAyNzE2MGRjMjg4YzY4YTllNzY0YzgxMTE1NDc4YjE0NTRh
15
- NzFiM2E1OTU5NzQ3YmM1ODdjODc0NDFiYmYzOGVhZWM0ZWUwNDA=
6
+ metadata.gz: 968a9e83a2d62df610ed4ada20cc0bee83003aa94bf4dcd67b8eef85e37cc0bcdb1f2b9a901a6ff6e4cf6a6eaf65e1c08524c56c848d7e007378c444025ed330
7
+ data.tar.gz: 984b5fc23f263d2b0d28c8a735928b9999c2b89c11997cbb2d0e7428ced806a149c2ee0cb26b039f11023a614385ef6cb40ff34eeda814d59e950b0207bb489d
@@ -1,3 +1,3 @@
1
1
  module RubyICEClient
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -38,9 +38,13 @@ module RubyICEClient
38
38
  request.body = xml.to_xml
39
39
  response = http.request request
40
40
  response_xml = Nokogiri::XML response.body
41
- output_message_node = response_xml.xpath '//evaluationResponse//base64EncodedPayload'
42
-
43
- Base64.decode64 output_message_node.first.text
41
+ puts "#{response_xml}"
42
+ output_message_node = response_xml.xpath '//evaluationResponse//base64EncodedPayload' if response_xml.present?
43
+ if output_message_node.present? && output_message_node.first.present?
44
+ return Base64.decode64 output_message_node.first.text
45
+ else
46
+ return nil
47
+ end
44
48
  end
45
49
  end
46
50
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_ICE_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sergei-krylov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-21 00:00:00.000000000 Z
11
+ date: 2015-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -28,14 +28,14 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
@@ -56,14 +56,14 @@ dependencies:
56
56
  name: base64
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: A ruby client for calling ICE - Immunization Calculation Engine (http://www.hln.com/ice/)
@@ -91,18 +91,19 @@ require_paths:
91
91
  - lib
92
92
  required_ruby_version: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ! '>='
94
+ - - '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  requirements:
99
- - - ! '>='
99
+ - - '>='
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  requirements: []
103
103
  rubyforge_project:
104
- rubygems_version: 2.1.11
104
+ rubygems_version: 2.4.8
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: ''
108
108
  test_files: []
109
+ has_rdoc: