form_bridge 0.0.1.alpha3 → 0.0.1.alpha4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/form_bridge/endpoint/submissions/create.rb +4 -1
- data/lib/form_bridge/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: e58d0de33024c93dec1068c4250cafcb0c64be0c
|
4
|
+
data.tar.gz: 1c900248bc7accf0d8f8939de0f291c371118dba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c1b7a9a450160918a139b493e6a8ab2b113692b2c7aba0d02ca56f6b49ff4d6cbc3ab2f59d08434dc3e2fe1b895ed0885997046eecf858bb50fb6b27b642a97
|
7
|
+
data.tar.gz: 630476d63e9cdeb9f859f87b1ad34f59f4cb778a9cabb0653366e437369b6d02f72ba74d23f3213c026794b47a5e576c9691d3de2e89ab6e1c06a41aa5da589b
|
@@ -7,12 +7,15 @@ module FormBridge
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def call(request)
|
10
|
+
# ensure we set a creation timestamp for later de-duplication
|
11
|
+
request.params["created_at"] ||= Time.now.to_i
|
12
|
+
|
10
13
|
location = request.params["_next"]
|
11
14
|
form = form_for(request.params["form_id"])
|
12
15
|
|
13
16
|
form.submissions << Submission.from_params(request.params)
|
14
17
|
form.save
|
15
|
-
|
18
|
+
|
16
19
|
[302, {"Location" => location}, []]
|
17
20
|
end
|
18
21
|
|
data/lib/form_bridge/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: form_bridge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.alpha4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Pitale
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|