eyeq_metadata 1.3.3 → 1.3.4
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 +4 -4
- data/README.md +2 -0
- data/lib/eyeq_metadata.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ab6b2acd736b2a37f346ab77133819abc59b137
|
4
|
+
data.tar.gz: b40523ca55c3dddb6cb7d779486bbf0886c9f576
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a2fcb7fc9ef7b0a7fb68bc60d6ff6455cf2d002e6bdd9cc9f0fe1f0f0a503af8319f4b28e13243150d50a1041d2f536a9bf2105fe3b202973af89940c6e9535
|
7
|
+
data.tar.gz: c9484a2da33e905eb9329e191448901ca966753210c30e0cf50bece44e21311745462111fd55cd64ae1fcbeee94a97415d2219fb1a304b2fe741ea6453baa0e1
|
data/README.md
CHANGED
@@ -10,6 +10,8 @@ gem install eyeq_metadata
|
|
10
10
|
require 'eyeq_metadata'
|
11
11
|
|
12
12
|
eyeq = EyeQ.new(clientid, clientid_tag)
|
13
|
+
# optional option logging = false/true(default). EyeQ.new(clientid, clientid_tag, logging: false)
|
14
|
+
# Disabling logging may cause some unintended consequences to other portions of your script/app.
|
13
15
|
response.request(query_type: 'tvchannel_fetch', gnid: '123-456-789')
|
14
16
|
# returns a Nokogiri::XML object that contains the response from eyeq
|
15
17
|
|
data/lib/eyeq_metadata.rb
CHANGED
@@ -7,7 +7,7 @@ class EyeQ
|
|
7
7
|
def initialize(clientid, clientid_tag, opts = {})
|
8
8
|
@eyeq_url = "https://c#{clientid}.ipg.web.cddbp.net/webapi/xml/1.0/"
|
9
9
|
@eyeq_clientid = "#{clientid}-#{clientid_tag}"
|
10
|
-
HTTPI.log = false
|
10
|
+
HTTPI.log = false if opts[:logging] == false
|
11
11
|
|
12
12
|
register_query = "<QUERIES><QUERY CMD='REGISTER'><CLIENT>#{@eyeq_clientid}</CLIENT></QUERY></QUERIES>"
|
13
13
|
response = HTTPI.post(construct_request(register_query))
|