sports_south 2.0.16 → 2.0.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cbca218fa49bd36c02b3365411565dbd57929b0d
4
- data.tar.gz: 78b915f115ee4ef4d529e7c209caba67714700cd
3
+ metadata.gz: a1e4abbfa94c07ae6aa9c735da9a6fec77c4f562
4
+ data.tar.gz: abd831bdfdbd4253e8334b0508318da15724a902
5
5
  SHA512:
6
- metadata.gz: f95193617fd0aeddea20e6fe67e2f58bc7dbbe99e6eaf8187f9ab2e145ee9717fe16fcf8c7780108bc089f15f617841116fcd7f1d75a3870d6f752d38ff105d5
7
- data.tar.gz: 0503697406bf4fceee724e5b230700bbbc38268b200f00a337c83a5f76a781639ec98129c5eb0da2531ee6a5e7077d8326d959b3d1b44f83e626417dd06898f2
6
+ metadata.gz: b3261b5510b76373559372c431e7a436ea149b353b7892fada63c13bc8370414465b554d586c87574471e30121ea5c2d5ef3d91194e4f430f01ae84f3dc4d0fe
7
+ data.tar.gz: 7aa90f9021652411a1e421fad2af7e2589ba30e5fe8e1b1117c8920a2eca873b251a407c673b8d361c84fc499e563d7f93578e6df95cce079f4fabd48349efc0
@@ -26,10 +26,11 @@ module SportsSouth
26
26
  end
27
27
  end
28
28
 
29
- def content_for(xml_doc, field)
29
+ def self.content_for(xml_doc, field)
30
30
  node = xml_doc.css(field).first
31
31
  node.nil? ? nil : CGI.unescapeHTML(node.content.strip)
32
32
  end
33
+ def content_for(*args); self.class.content_for(*args); end
33
34
 
34
35
  # Returns a hash of common form params.
35
36
  def self.form_params(options = {})
@@ -57,10 +58,11 @@ module SportsSouth
57
58
  end
58
59
  def get_http_and_request(*args); self.class.get_http_and_request(*args); end
59
60
 
60
- def not_authenticated?(xml_doc)
61
+ def self.not_authenticated?(xml_doc)
61
62
  msg = content_for(xml_doc, 'ERROR')
62
63
  (msg =~ /Authentication Failed/i) || (msg =~ /NOT AUTHENTICATED/i)
63
64
  end
65
+ def not_authenticated?(*args); self.class.not_authenticated?(*args); end
64
66
 
65
67
  # HACK: We have to fix the malformed XML response SS is currently returning.
66
68
  def self.sanitize_response(response)
@@ -1,3 +1,3 @@
1
1
  module SportsSouth
2
- VERSION = '2.0.16'.freeze
2
+ VERSION = '2.0.17'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sports_south
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.16
4
+ version: 2.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Campbell
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  version: '0'
148
148
  requirements: []
149
149
  rubyforge_project:
150
- rubygems_version: 2.6.12
150
+ rubygems_version: 2.5.1
151
151
  signing_key:
152
152
  specification_version: 4
153
153
  summary: Sports South API Ruby library.