eyeq_metadata 1.3.2 → 1.3.3

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/eyeq_metadata.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb732576e3a6d9916329200ed148b0206f9e461a
4
- data.tar.gz: 2fedc9b766b370c627d0b1f1d9063e254a3caf6a
3
+ metadata.gz: d9d3e78cfcf81ef44a73e6738c11a2fb610f7431
4
+ data.tar.gz: 231eaa2158c40fe51aea1ed6d41fbc3b561f4856
5
5
  SHA512:
6
- metadata.gz: 1a844608c32a816043cbae772d8c30bc41b4352fd281d5370e141b3ac91e365975fb39c6171be7b555d765ecea115a6ce39826e6df21c3bd3c78efa73e88860e
7
- data.tar.gz: 8a6b16f1b6a245bc8f5274824c22d110ce23849adffa5e67ebb7827bb85e43e0897b048e71e68db3ca2f4dc53cd3ea9fcf45c0c8991e21b07f4407b22a0a9d72
6
+ metadata.gz: e1f6b823f9649f68254e8b25ae457677765e14831dcf65eee995ce39387286926936bbe105cbda2b6caed9bd5be529f08c00d7fcaa81db98641970102da234c4
7
+ data.tar.gz: f112a6d5f6880aac79c307bafb574e27fc47dc591edad065d6b5c3890f11903e62b7dcf10ec72b7b987b5dc2aea34c8ceb6bbad49f0c2e6594fe30acc7f3ac1f
data/lib/eyeq_metadata.rb CHANGED
@@ -4,10 +4,10 @@ require 'httpi'
4
4
  class EyeQ
5
5
  attr_reader :eyeq_url, :eyeq_userid, :eyeq_clientid
6
6
 
7
- def initialize(clientid, clientid_tag)
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 unless 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))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eyeq_metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaiah Soung