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 +4 -4
- data/lib/oxy/firebase/submissions.rb +2 -4
- data/lib/oxy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dc029fabf7f3300afc7aa8156da83ab10dba4f1
|
4
|
+
data.tar.gz: c7df0a15e2dffafbe8c0e2d854a43879825bc030
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =>
|
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)
|
data/lib/oxy/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|