oxy 0.1.5 → 0.1.6

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: 02a23f55b9b4cf46d59ef0f671a472a225153ac8
4
- data.tar.gz: a2e6b315527a05744f8bc523d6066118cbcc186d
3
+ metadata.gz: 1dc029fabf7f3300afc7aa8156da83ab10dba4f1
4
+ data.tar.gz: c7df0a15e2dffafbe8c0e2d854a43879825bc030
5
5
  SHA512:
6
- metadata.gz: 9497cc4a6a0342b8005970df6005cdd3093dc9f7a5f31115d0b1f9f2daa172ec324125c60c5658d19ee0f928ddcb7a671439c4fd7853ab0ac40752a319894b87
7
- data.tar.gz: de94ce90f57007c111b57c666dbddc3cdac9bc0ad73e323c4d3b292bcc259fc5f5c0ac0b361fd80fc67ae3204a8a6a3e6ea88a370e598f5b4e717e321231b637
6
+ metadata.gz: c90f66c4e53db9c2af996b8266125976456d0329fe6674cc2bb9c270d83b4d8f959573719cc9637f3e2c334e712663baf0ed9081e2f2771304c074742edd0125
7
+ data.tar.gz: f117738dc8f0c9b86ca9a537968abdcf842fa68d9a19361af1846c268617f3f0158fdaf5140c72a11d6e47f30dd56930e5203b6d710f2671ceedc81605a9890a
@@ -26,12 +26,10 @@ class Submissions
26
26
  def self.push(submission)
27
27
  # fabricate lookup key based on MD5
28
28
  lookup_key = to_lookup_key(submission["email_address"])
29
- # build body
30
- json_string = { "#{lookup_key}" => submission }.to_json
31
29
  # merge options
32
- options = default_options.merge(:body => json_string)
30
+ options = default_options.merge(:body => submission.to_json)
33
31
  # push the submission entry to Firebase
34
- put("/submissions.json", options)
32
+ put("/submissions/#{lookup_key}.json", options)
35
33
  end
36
34
 
37
35
  def self.drop(email_address = nil)
@@ -1,3 +1,3 @@
1
1
  module Oxy
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Tsurbeleu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-14 00:00:00.000000000 Z
11
+ date: 2017-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack