expressive 0.0.38 → 0.0.39

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjU1Njk5M2VjZDdhMmFkYTE4ZWE3ZTZmNGViODBkNTQ1YTk4ZTAzYg==
4
+ OWFmMzA1ODE1NGVkNDM4NmRhNzFiY2YxYTk5MWJjNmJiNzhmZDFlYQ==
5
5
  data.tar.gz: !binary |-
6
- NTZhZTRiZTljZmY1NGRiYTk1NGNjZTIzZjNmN2I5ZGFiN2IzMzA0ZA==
6
+ ODUzY2QyNmRmMzA0MzIwMGM0ZTg0ZWI5YmZkODcxMDNmODM1NWExZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NGQ3MzBkMWVlOTI5NjBiMTAxMzIyOWIxOWI1MzFjYmU5MTFiYTRhY2ZkY2Zi
10
- NDQ1NzZmZTgzNDhmMTllY2Q1NTNiNTY2ZmEzNWQ0ZTJmYTU3MWYxZjBmMjQ4
11
- NDI3OTk3NjczOWIyY2U5M2U0NjBkZWI2M2ZkOWFiNWE3OTZhY2M=
9
+ ZTY5YTg4ZDRmMzNjNzdkNjM2MDY0OWVmMzliYTc5MTIwN2U4ODIzZjY3ZTY3
10
+ ZDYxNTA0NWIxZDNmYjI4M2M5MGJiMjIxOTRmYjViNDA3ZjNiN2Y4YzllYmI0
11
+ NWMxZjA5ZmM5OGM2ODJmNGMyMDg4OTQ5MzY4MWI4OTY3NDJiZWM=
12
12
  data.tar.gz: !binary |-
13
- YmIzMDA3MjA2OGZjZjU4NWMxZTcyNWM4Y2U1NjBlZjMxZDBlOTc2Nzg5MmY4
14
- ZjdlMTJhNzBlYzBmYzMxYWQ3OTkyMmM0MDczZTEwZTI2MmJjMDk4MjUzZDc4
15
- OTYzNzQzZTdiZWFmZjJjMzRmZDczZDlmMGY1ZjBjZDc5NjNmODA=
13
+ NDczNTcwYjgxYTAxZTBiMTc3NTc1ODI0M2M5ZGQ2ZDIxYzFkM2EwNWMxMmM5
14
+ OTBiYTRjZDBjY2ZhNjk1MDMxOGYxZDM1YmNlZDJhMzMxMDYzM2YzNGYyYWFm
15
+ ZTZhYmYxZjM0M2U5ZTBiYmE2NWJjNDBiZjNmZDUyMGUwN2RkMTk=
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- expressive (0.0.37)
4
+ expressive (0.0.39)
5
5
  awesome_print (~> 1.0.2)
6
6
  json
7
7
  polyglot (~> 0.3.3)
@@ -32,7 +32,7 @@ GEM
32
32
  rb-kqueue (>= 0.2)
33
33
  method_source (0.8.1)
34
34
  mime-types (1.25.1)
35
- polyglot (0.3.4)
35
+ polyglot (0.3.5)
36
36
  pry (0.9.12.2)
37
37
  coderay (~> 1.0.5)
38
38
  method_source (~> 0.8)
@@ -50,8 +50,9 @@ GEM
50
50
  ffi (>= 0.5.0)
51
51
  rdoc (3.12.2)
52
52
  json (~> 1.4)
53
- rest-client (1.6.7)
54
- mime-types (>= 1.16)
53
+ rest-client (1.6.8)
54
+ mime-types (~> 1.16)
55
+ rdoc (>= 2.4.2)
55
56
  rspec (2.11.0)
56
57
  rspec-core (~> 2.11.0)
57
58
  rspec-expectations (~> 2.11.0)
@@ -1,3 +1,3 @@
1
1
  module Expressive
2
- VERSION = "0.0.38"
2
+ VERSION = "0.0.39"
3
3
  end
@@ -287,7 +287,20 @@ module Expressive
287
287
  begin
288
288
  response = Webhook.new(verb, url, params, headers).execute
289
289
  if update_case
290
- scope = scope.merge(response) if response.is_a?(Hash)
290
+ if response.is_a?(Hash)
291
+ scope = scope.merge(response)
292
+ elsif response.is_a?(String)
293
+ begin
294
+ json = JSON.parse(response)
295
+ scope = scope.merge(json)
296
+ rescue
297
+ puts "Not setting Non-Json string to case"
298
+ return response
299
+ end
300
+ else
301
+ puts "Not setting #{response.class} to case"
302
+ return response
303
+ end
291
304
  else
292
305
  return response
293
306
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: expressive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.38
4
+ version: 0.0.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ijonas Kisselbach
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-04 00:00:00.000000000 Z
11
+ date: 2014-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby_gntp