leanplum_api 4.0.1 → 4.0.2

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: d5a76aed3d020547e134ee3a112266a894ede780
4
- data.tar.gz: 79ef59a1a63018388963bd3d71de1af95ac9cd72
3
+ metadata.gz: 92bca9f613ba5eb8d2f4eebb6cc88fb29fc2a38b
4
+ data.tar.gz: 16979c3cae038e26c6873b6815ae7deefda268e7
5
5
  SHA512:
6
- metadata.gz: 7878726aa0f68c2445c941e3e695ee341780836625f9022fe4a4efa80fbb89f6163fc11991f56781e36132b47b9a2e325bb7452a0bfcefd18892b8e1d2a7543e
7
- data.tar.gz: 8c2cbb38fbc6f12b439f6f01512bdb94a952bb6fc895ed8f57853b5a57a01605ba73b88f4585db0f9991cc6a29f8ea4f3365412e92e692636b30689682ed8977
6
+ metadata.gz: 34f75c8514a7e7b8811a0a80bc35f699834fe3054c5c545d6737e19346d1d02b10c8090c91336f8297ad87eb45ab04d0464f8f9df5fa2d9c967fe89ae8601894
7
+ data.tar.gz: 8ded87e06e2ed7b5dee4b24f9888eef4c116cdbc829df41b031706ce2d0cbecdc4de2b9f0550e13148860a2fb3f4821702432732862d79d32222305486eab649
@@ -9,9 +9,8 @@ module LeanplumApi
9
9
  WARN = 'warning'.freeze
10
10
 
11
11
  def call(environment)
12
- if environment.body
13
- requests = environment.body[:data] if environment.body[:data] && environment.body[:data].is_a?(Array)
14
- environment.body = environment.body.to_json
12
+ if environment.body && environment.body[:data] && environment.body[:data].is_a?(Array)
13
+ requests = environment.body[:data]
15
14
  end
16
15
 
17
16
  @app.call(environment).on_complete do |response|
@@ -1,3 +1,3 @@
1
1
  module LeanplumApi
2
- VERSION = '4.0.1'
2
+ VERSION = '4.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leanplum_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lumos Labs, Inc.
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-09-19 00:00:00.000000000 Z
12
+ date: 2017-09-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport