ultrasoap 0.1.4 → 0.1.5

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/client.rb +15 -0
  3. data/ultrasoap-ruby.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed32a6619b1910dbc065f7257df8c639384bd17f
4
- data.tar.gz: 12b0c0f124c4b0fce8d11120b7761ac2473a31d7
3
+ metadata.gz: 84e37d34cdd9c7aa26fbd26f81a3c0da40b8d020
4
+ data.tar.gz: 453357f755c4e0c48c49b44a18410f7681d5b235
5
5
  SHA512:
6
- metadata.gz: 8b13cb8085f5f3bade58dc72ec81c44fb64ab8cf4e9db20e3bc6b1330a055ce648dde1ac03ca22799ed451df9d88f08e163150d13f8746855ba7eaa31aa31896
7
- data.tar.gz: 66713ff76083bd02077665c09bc10dc55702b73434a792a10a0373dee529d1d35ce16a8f472d7556bb16b66c34464930c793483ff36fd5846dc3d6a9f95786a2
6
+ metadata.gz: 11eee2549e4d6cec749294d17142b6db73c2c08a19a82f294dc1a76a6e1fef48dbdf43238750772819bc08b80561e6161cb1ca11e842a300909e2abf42318229
7
+ data.tar.gz: a47572acf94f2101b822117c19cd812fbfa8288528713f5eb1f0b7fecb657bd6f34ea5cb89312fde388366c5773c8df28493356665b5b14cbebd36b90a85fb9d
data/lib/client.rb CHANGED
@@ -137,6 +137,21 @@ module UltraSOAP
137
137
  end
138
138
  end
139
139
 
140
+ ##################
141
+ # Wrapper methods
142
+ ##################
143
+
144
+ def network_status
145
+ begin
146
+ response = self.send_request :get_neustar_network_status, ''
147
+ Nokogiri::XML(response.to_xml).remove_namespaces!.xpath("//NeustarNetworkStatus/text()").to_s
148
+ rescue Exception => e
149
+ @logger.error("Error in retrieving Neustar's network status: #{e.message}")
150
+ nil
151
+ end
152
+ end
153
+
154
+
140
155
  # Helper method to retrieve load balancing pools data
141
156
  # Parameters:
142
157
  # - zone (don't forget the trailing dot)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ultrasoap'
3
- s.version = '0.1.4'
3
+ s.version = '0.1.5'
4
4
  s.summary = "Simple Ruby client library for UltraDNS SOAP API"
5
5
  s.description = "Connect to Neustar's UltraDNS SOAP API. FKA ultrasoap-ruby. Any feedback or contribution is appreciated."
6
6
  s.authors = ["Gabriel Sambarino"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultrasoap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Sambarino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-23 00:00:00.000000000 Z
11
+ date: 2014-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon