amplitude-rb 0.2.0 → 0.2.1

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: c8f5e279896b04ffe3bf44cbc12f0e77b006d446ab637da532781117116c4da6
4
- data.tar.gz: 6d5b3b8dc3e816f5198f6ed4022e1224c584d94d27fae7987988863b42880afe
3
+ metadata.gz: 122040fcfb310340b5386d3e9c919c070ac71894612eed126f915676e6c0b1e0
4
+ data.tar.gz: c80a6264e6ae252e5fa8d2e48450dc94fb1af11acf2f55f32a2dafee937b3560
5
5
  SHA512:
6
- metadata.gz: 6f9ac2ff25c4a4fba01d937f480d987975d89d23dc640eda3cad1b4ad912d1d6d9fe4ebff6a06d591d716329a4b494257050ffe592f7380ac113f7c152e4356f
7
- data.tar.gz: 34ec97769e0fc1a1e311a754e9182d0b23221f746192269dc5cb973cd2a1574d347f731078168927f2b11361345977ebd12037244c090b67635baca633c09778
6
+ metadata.gz: 278e49e6a032ee6d23eed057a3859ffebfe33f931915702bce7eb8d45b7f518d9e434a9595df179735c4eb502cbc7ee41b990cad2c7057e128e9bd777c99184d
7
+ data.tar.gz: 81f0f718ffa21444a6866608137ee2296c0bba054df73a2415884589a0c5a659539a42b0f7ef9071e74302a7db114426a83005d7e2bbbb0ec6b694d4df659a68
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- amplitude-rb (0.1.1)
4
+ amplitude-rb (0.2.0)
5
5
  httparty (~> 0.15.6)
6
6
  multi_json (~> 1.13)
7
7
 
@@ -5,6 +5,10 @@ class Amplitude::Event
5
5
  @data = Amplitude::Formatter.call(data)
6
6
  end
7
7
 
8
+ def as_json
9
+ @data.dup
10
+ end
11
+
8
12
  def to_json
9
13
  MultiJson.dump(@data)
10
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amplitude-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Eon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-02 00:00:00.000000000 Z
11
+ date: 2018-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty