amplitude-rb 0.1.3 → 0.2.0

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
  SHA256:
3
- metadata.gz: 4f7bea4ac54da5b41065ed1803161f9d148d199519c2bad4657c30063581ddf7
4
- data.tar.gz: 432a22595c13f336f33b4c55a5a38588a713d31dd650d2d94b3a253926752c11
3
+ metadata.gz: c8f5e279896b04ffe3bf44cbc12f0e77b006d446ab637da532781117116c4da6
4
+ data.tar.gz: 6d5b3b8dc3e816f5198f6ed4022e1224c584d94d27fae7987988863b42880afe
5
5
  SHA512:
6
- metadata.gz: 135a96162e2ce0d4363d882e15be3824437654902b9929b3469e746573e42f2d24698c7a23fed83cab11f7c261c301c669e4e08019b9ddebc56ad4cf2a9cfa89
7
- data.tar.gz: d53a8b5ba860d6592ec13ef32c6f7aeefe48de6204f98e6240be06aff4f578de8dc652c27ae670d6e72fc3e055bd1d2bedd8cf45f8d44ae30ef117ca48a3d8c9
6
+ metadata.gz: 6f9ac2ff25c4a4fba01d937f480d987975d89d23dc640eda3cad1b4ad912d1d6d9fe4ebff6a06d591d716329a4b494257050ffe592f7380ac113f7c152e4356f
7
+ data.tar.gz: 34ec97769e0fc1a1e311a754e9182d0b23221f746192269dc5cb973cd2a1574d347f731078168927f2b11361345977ebd12037244c090b67635baca633c09778
@@ -9,6 +9,6 @@ class Amplitude::Jobs::Default < ActiveJob::Base
9
9
 
10
10
  def deserialize(data)
11
11
  return data if data.is_a?(Amplitude::Event) || data.is_a?(Hash)
12
- Marshal.load(data)
12
+ MultiJson.load(data, symbolize_keys: true)
13
13
  end
14
14
  end
data/lib/amplitude.rb CHANGED
@@ -49,7 +49,7 @@ module Amplitude
49
49
 
50
50
  def queue(data, options = {})
51
51
  raise AsyncError unless async_enabled?
52
- Amplitude::Jobs::Default.perform_later(create_event(data), options)
52
+ Amplitude::Jobs::Default.perform_later(create_event(data).to_json, options)
53
53
  end
54
54
 
55
55
  def async_enabled?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amplitude-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Eon