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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e4bc39fa7cd3eab79330ffd88fd9ad4a1d94e759
4
- data.tar.gz: b1359a18a90523b4f4e552b1ecfa27960164b755
3
+ metadata.gz: e58d0de33024c93dec1068c4250cafcb0c64be0c
4
+ data.tar.gz: 1c900248bc7accf0d8f8939de0f291c371118dba
5
5
  SHA512:
6
- metadata.gz: 1b56426c0f81c451b1c29061f528231b507bdb8cdd7dc13a48da041934541cbfe2f1968c574994e5fe6c424c8d54c7e75cdcf853265928a41d57941301ee2f72
7
- data.tar.gz: 97ad6ba8173c2484faa679f6395eb34967cb278c4153c2589ef9e47dfaf88ef653d4dccb7119d3e0c64fe2397cbe41ef65d92ae726f963526aed5d3b8491d475
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
 
@@ -1,3 +1,3 @@
1
1
  module FormBridge
2
- VERSION = "0.0.1.alpha3"
2
+ VERSION = "0.0.1.alpha4"
3
3
  end
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.alpha3
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-03 00:00:00.000000000 Z
11
+ date: 2016-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler