hotdogprincess 0.1.2 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e16815c51bd2ee038e11ae01a25c532c2a772a2
4
- data.tar.gz: f8fd57fe68720a67246e591b3ea96bab98d4444b
3
+ metadata.gz: 5fee42aeeb40e8d26b7cf18eab7efb950c2fbabd
4
+ data.tar.gz: e82be35e10165d0325a503ed25e48141e4443867
5
5
  SHA512:
6
- metadata.gz: eb6f6033adf9ce5697ae0aeeb4828bb71e3386f2ec9600ddb8fb45743af10331efb1901150c535d4ed0de1829f31c873aa9ffeff1cf4f459f79fe90400ba7c2d
7
- data.tar.gz: 46562d43b669e0fad4a24870f318854718325819ba27ccfde2b155f94da1576e0360d0339a295bd9665a1f658830fe4618cdb8df10f977d0da727c9d720dfef0
6
+ metadata.gz: a248a7fb2de7bf11d18c87ee3c9e6bcbb8cdf6ab118b1a499326f1ea2c3e8bbb670bcf4488c5005400578006cffc820024752a7e3172308933cc608a86b85e5a
7
+ data.tar.gz: d2adcdb072f38bee64e6375ae8c01d8bfc6fb9b7f092e779ba296d5887b19c72eab38e0c21a569158bb6be8f7744fd906fe24c35942a716f83f634e8e0e9c3c8
data/README.md CHANGED
@@ -120,14 +120,14 @@ sla = client.sla 1
120
120
 
121
121
  # Searching: You search email with either exact match or a substring match.
122
122
  client.find_customer_by_email 'joe@exmaple.comz'
123
- => [#<Hash id="26553", uid="16115/16155/Customer/26553",
123
+ => [#<Hash id="26553", uid="123/456/Customer/26553",
124
124
 
125
125
  client.find_customer_by_email 'not_found@brandnewusers.io'
126
126
  => []
127
127
 
128
128
  substring = true
129
129
  client.find_customer_by_email 'gmail.com', substring
130
- => [#<Hash id="26553", uid="16115/16155/Customer/26553", x ~50
130
+ => [#<Hash id="26553", uid="123/456/Customer/26553", x ~50
131
131
 
132
132
  # Creating Customers / Tickets: We are using https://github.com/savonrb/gyoku to create XML from Hashes, so see the docs for in-depth XML constructions.
133
133
  customer_hash = {
@@ -302,8 +302,6 @@ client.get 'Customer', "First_Name_like_" => "joe"
302
302
  => {"?xml"=>{"@version"=>"1.0", "@encoding"=>"utf-8"}...
303
303
  ```
304
304
 
305
-
306
-
307
305
  ## Contributing
308
306
 
309
307
  1. Fork it
@@ -116,7 +116,12 @@ module HotDogPrincess
116
116
 
117
117
  def status_json(object)
118
118
  status = status(object)
119
- status_hash = schema_parse(status['Entities']['Status'])
119
+ if status['Entities'] and status['Entities']['Status']
120
+ status_hash = schema_parse(status['Entities']['Status'])
121
+ elsif status['entities'] and status['entities']['Status']
122
+ # With _output_=json the container is lowercase for some reason.
123
+ status_hash = schema_parse(status['entities']['Status'])
124
+ end
120
125
 
121
126
  JSON.generate(status_hash)
122
127
  end
@@ -1,3 +1,3 @@
1
1
  module HotDogPrincess
2
- VERSION = "0.1.2".freeze
2
+ VERSION = "0.1.3".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hotdogprincess
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Callis