s3_form_presenter 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- s3_form_presenter (0.0.4)
4
+ s3_form_presenter (0.0.5)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -41,6 +41,7 @@ module S3FormPresenter
41
41
  end
42
42
 
43
43
  def hidden_field(name, value)
44
+ name = RENAMED_FIELDS[name] || name
44
45
  %Q(<input type="hidden" name="#{name}" value="#{value}">)
45
46
  end
46
47
 
@@ -1,3 +1,3 @@
1
1
  module S3FormPresenter
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -83,10 +83,10 @@ describe S3FormPresenter::Form do
83
83
  fields = @form.hidden_fields
84
84
  {
85
85
  "key" => "some/test/key.ext",
86
- "access_key" => "test_access_key",
86
+ "AWSAccessKeyId" => "test_access_key",
87
87
  "secret_key" => "test_secret_key",
88
88
  "acl" => "private",
89
- "redirect_url" => "http://www.some-test-redirect.com/some/path",
89
+ "success_action_redirect" => "http://www.some-test-redirect.com/some/path",
90
90
  "policy" => 332,
91
91
  "signature" => 75
92
92
  }.each_with_index do |field, i|
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
4
+ version: 0.0.5
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: -656444126701832416
47
+ hash: -1757766881589126739
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: -656444126701832416
56
+ hash: -1757766881589126739
57
57
  requirements: []
58
58
  rubyforge_project: s3_form_presenter
59
59
  rubygems_version: 1.8.15