s3_form_presenter 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/s3_form_presenter/version.rb +1 -1
- data/lib/s3_form_presenter.rb +3 -3
- data/test/form_test.rb +0 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/lib/s3_form_presenter.rb
CHANGED
@@ -4,11 +4,11 @@ require 'openssl'
|
|
4
4
|
|
5
5
|
module S3FormPresenter
|
6
6
|
class Form
|
7
|
-
HIDDEN_FIELD_NAMES = :key, :access_key, :
|
7
|
+
HIDDEN_FIELD_NAMES = :key, :access_key, :acl, :redirect_url, :policy, :signature
|
8
8
|
ACCESSOR_FIELDS = HIDDEN_FIELD_NAMES - [:policy, :signature]
|
9
9
|
RENAMED_FIELDS = {:redirect_url => "success_action_redirect", :access_key => "AWSAccessKeyId"}
|
10
|
-
REQUIRED_ATTRIBUTES = [:bucket] + HIDDEN_FIELD_NAMES
|
11
|
-
attr_accessor :bucket, :inner_content, :extra_form_attributes, :starts_with
|
10
|
+
REQUIRED_ATTRIBUTES = [:bucket, :secret_key] + HIDDEN_FIELD_NAMES
|
11
|
+
attr_accessor :bucket, :secret_key, :inner_content, :extra_form_attributes, :starts_with
|
12
12
|
|
13
13
|
def initialize(key, redirect_url, options={}, &block)
|
14
14
|
@key = key
|
data/test/form_test.rb
CHANGED
@@ -84,7 +84,6 @@ describe S3FormPresenter::Form do
|
|
84
84
|
{
|
85
85
|
"key" => "some/test/key.ext",
|
86
86
|
"AWSAccessKeyId" => "test_access_key",
|
87
|
-
"secret_key" => "test_secret_key",
|
88
87
|
"acl" => "private",
|
89
88
|
"success_action_redirect" => "http://www.some-test-redirect.com/some/path",
|
90
89
|
"policy" => 324,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: s3_form_presenter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -44,7 +44,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
44
44
|
version: '0'
|
45
45
|
segments:
|
46
46
|
- 0
|
47
|
-
hash: -
|
47
|
+
hash: -515020753215857907
|
48
48
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
49
|
none: false
|
50
50
|
requirements:
|
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
53
|
version: '0'
|
54
54
|
segments:
|
55
55
|
- 0
|
56
|
-
hash: -
|
56
|
+
hash: -515020753215857907
|
57
57
|
requirements: []
|
58
58
|
rubyforge_project: s3_form_presenter
|
59
59
|
rubygems_version: 1.8.15
|