s3_cors_fileupload 0.1.5 → 0.2.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +7 -0
  2. data/.document +4 -3
  3. data/.gitignore +3 -7
  4. data/CHANGELOG.md +9 -1
  5. data/Gemfile +11 -11
  6. data/Gemfile.lock +66 -74
  7. data/README.md +4 -3
  8. data/Rakefile +7 -9
  9. data/lib/generators/s3_cors_fileupload/install/templates/s3_uploads.js +16 -22
  10. data/lib/generators/s3_cors_fileupload/install/templates/s3_uploads_controller.rb +1 -1
  11. data/lib/generators/s3_cors_fileupload/install/templates/source_file.rb +2 -2
  12. data/lib/generators/s3_cors_fileupload/install/templates/views/erb/_template_download.html.erb +2 -2
  13. data/lib/generators/s3_cors_fileupload/install/templates/views/erb/_template_upload.html.erb +4 -4
  14. data/lib/generators/s3_cors_fileupload/install/templates/views/erb/_template_uploaded.html.erb +1 -1
  15. data/lib/generators/s3_cors_fileupload/install/templates/views/erb/index.html.erb +2 -2
  16. data/lib/generators/s3_cors_fileupload/install/templates/views/haml/_template_download.html.haml +2 -2
  17. data/lib/generators/s3_cors_fileupload/install/templates/views/haml/_template_upload.html.haml +4 -4
  18. data/lib/generators/s3_cors_fileupload/install/templates/views/haml/_template_uploaded.html.haml +2 -2
  19. data/lib/generators/s3_cors_fileupload/install/templates/views/haml/index.html.haml +2 -2
  20. data/lib/s3_cors_fileupload/rails/config.rb +0 -1
  21. data/lib/s3_cors_fileupload/rails/form_helper.rb +2 -4
  22. data/lib/s3_cors_fileupload/rails/policy_helper.rb +2 -2
  23. data/lib/s3_cors_fileupload/version.rb +3 -3
  24. data/s3_cors_fileupload.gemspec +12 -15
  25. data/spec/dummy/Rakefile +7 -0
  26. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  27. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  28. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  29. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  30. data/spec/dummy/app/models/.gitkeep +0 -0
  31. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  32. data/spec/dummy/config.ru +4 -0
  33. data/spec/dummy/config/amazon_s3.yml +17 -0
  34. data/spec/dummy/config/application.rb +64 -0
  35. data/spec/dummy/config/boot.rb +10 -0
  36. data/spec/dummy/config/database.yml +25 -0
  37. data/spec/dummy/config/environment.rb +5 -0
  38. data/spec/dummy/config/environments/development.rb +37 -0
  39. data/spec/dummy/config/environments/production.rb +67 -0
  40. data/spec/dummy/config/environments/test.rb +37 -0
  41. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  42. data/spec/dummy/config/initializers/inflections.rb +15 -0
  43. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  44. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  45. data/spec/dummy/config/initializers/session_store.rb +8 -0
  46. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  47. data/spec/dummy/config/locales/en.yml +5 -0
  48. data/spec/dummy/config/routes.rb +58 -0
  49. data/spec/dummy/db/.gitkeep +0 -0
  50. data/spec/dummy/lib/assets/.gitkeep +0 -0
  51. data/spec/dummy/log/.gitkeep +0 -0
  52. data/spec/dummy/public/404.html +26 -0
  53. data/spec/dummy/public/422.html +26 -0
  54. data/spec/dummy/public/500.html +25 -0
  55. data/spec/dummy/public/favicon.ico +0 -0
  56. data/spec/dummy/script/rails +6 -0
  57. data/spec/lib/generators/install/install_generator_spec.rb +160 -0
  58. data/spec/lib/s3_cors_fileupload/rails/config_spec.rb +43 -0
  59. data/spec/{s3_cors_fileupload → lib/s3_cors_fileupload}/version_spec.rb +0 -0
  60. data/spec/spec_helper.rb +11 -2
  61. data/vendor/assets/javascripts/s3_cors_fileupload/jquery.fileupload-ui.js +117 -43
  62. data/vendor/assets/javascripts/s3_cors_fileupload/jquery.fileupload.js +187 -92
  63. data/vendor/assets/javascripts/s3_cors_fileupload/jquery.iframe-transport.js +20 -7
  64. data/vendor/assets/javascripts/s3_cors_fileupload/vendor/jquery.ui.widget.js +72 -53
  65. data/vendor/assets/javascripts/s3_cors_fileupload/vendor/load-image.js +225 -37
  66. data/vendor/assets/stylesheets/jquery.fileupload-ui.css.erb +6 -8
  67. metadata +78 -21
@@ -1,6 +1,6 @@
1
1
  @charset "UTF-8";
2
2
  /*
3
- * jQuery File Upload UI Plugin CSS 6.3.1
3
+ * jQuery File Upload UI Plugin CSS 7.4
4
4
  * https://github.com/blueimp/jQuery-File-Upload
5
5
  *
6
6
  * Copyright 2010, Sebastian Tschan
@@ -21,11 +21,10 @@
21
21
  top: 0;
22
22
  right: 0;
23
23
  margin: 0;
24
- border: solid transparent;
25
- border-width: 0 0 100px 200px;
26
24
  opacity: 0;
27
25
  filter: alpha(opacity=0);
28
- -moz-transform: translate(-300px, 0) scale(4);
26
+ transform: translate(-300px, 0) scale(4);
27
+ font-size: 23px;
29
28
  direction: ltr;
30
29
  cursor: pointer;
31
30
  }
@@ -60,11 +59,13 @@
60
59
 
61
60
  /* Fix for IE 7: */
62
61
  * + html .fileinput-button {
63
- line-height: 22px;
62
+ padding: 2px 15px;
64
63
  margin: 1px 0 0 0;
65
64
  }
66
65
 
67
66
  @media (max-width: 767px) {
67
+ .fileupload-buttonbar .toggle,
68
+ .files .toggle,
68
69
  .files .btn span {
69
70
  display: none;
70
71
  }
@@ -79,7 +80,4 @@
79
80
  .files .progress {
80
81
  width: 20px;
81
82
  }
82
- .files .delete {
83
- width: 60px;
84
- }
85
83
  }
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3_cors_fileupload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
5
- prerelease:
4
+ version: 0.2.0.pre1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ben Atkins
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-11-01 00:00:00.000000000 Z
11
+ date: 2013-04-30 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: jquery-rails
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: aws-s3
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rake
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ! '>='
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ! '>='
76
67
  - !ruby/object:Gem::Version
@@ -78,7 +69,6 @@ dependencies:
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: bundler
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ! '>='
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ! '>='
92
81
  - !ruby/object:Gem::Version
@@ -98,9 +87,9 @@ email:
98
87
  executables: []
99
88
  extensions: []
100
89
  extra_rdoc_files:
101
- - LICENSE.txt
102
90
  - README.md
103
91
  - CHANGELOG.md
92
+ - LICENSE.txt
104
93
  files:
105
94
  - .document
106
95
  - .gitignore
@@ -134,7 +123,41 @@ files:
134
123
  - lib/s3_cors_fileupload/rails/policy_helper.rb
135
124
  - lib/s3_cors_fileupload/version.rb
136
125
  - s3_cors_fileupload.gemspec
137
- - spec/s3_cors_fileupload/version_spec.rb
126
+ - spec/dummy/Rakefile
127
+ - spec/dummy/app/assets/javascripts/application.js
128
+ - spec/dummy/app/assets/stylesheets/application.css
129
+ - spec/dummy/app/controllers/application_controller.rb
130
+ - spec/dummy/app/helpers/application_helper.rb
131
+ - spec/dummy/app/models/.gitkeep
132
+ - spec/dummy/app/views/layouts/application.html.erb
133
+ - spec/dummy/config.ru
134
+ - spec/dummy/config/amazon_s3.yml
135
+ - spec/dummy/config/application.rb
136
+ - spec/dummy/config/boot.rb
137
+ - spec/dummy/config/database.yml
138
+ - spec/dummy/config/environment.rb
139
+ - spec/dummy/config/environments/development.rb
140
+ - spec/dummy/config/environments/production.rb
141
+ - spec/dummy/config/environments/test.rb
142
+ - spec/dummy/config/initializers/backtrace_silencers.rb
143
+ - spec/dummy/config/initializers/inflections.rb
144
+ - spec/dummy/config/initializers/mime_types.rb
145
+ - spec/dummy/config/initializers/secret_token.rb
146
+ - spec/dummy/config/initializers/session_store.rb
147
+ - spec/dummy/config/initializers/wrap_parameters.rb
148
+ - spec/dummy/config/locales/en.yml
149
+ - spec/dummy/config/routes.rb
150
+ - spec/dummy/db/.gitkeep
151
+ - spec/dummy/lib/assets/.gitkeep
152
+ - spec/dummy/log/.gitkeep
153
+ - spec/dummy/public/404.html
154
+ - spec/dummy/public/422.html
155
+ - spec/dummy/public/500.html
156
+ - spec/dummy/public/favicon.ico
157
+ - spec/dummy/script/rails
158
+ - spec/lib/generators/install/install_generator_spec.rb
159
+ - spec/lib/s3_cors_fileupload/rails/config_spec.rb
160
+ - spec/lib/s3_cors_fileupload/version_spec.rb
138
161
  - spec/s3_cors_fileupload_spec.rb
139
162
  - spec/spec_helper.rb
140
163
  - vendor/assets/images/loading.gif
@@ -150,30 +173,64 @@ files:
150
173
  homepage: http://github.com/fullbridge-batkins/s3_cors_fileupload
151
174
  licenses:
152
175
  - MIT
176
+ metadata: {}
153
177
  post_install_message:
154
- rdoc_options: []
178
+ rdoc_options:
179
+ - --charset=UTF-8
155
180
  require_paths:
156
181
  - lib
157
182
  required_ruby_version: !ruby/object:Gem::Requirement
158
- none: false
159
183
  requirements:
160
184
  - - ! '>='
161
185
  - !ruby/object:Gem::Version
162
186
  version: '0'
163
187
  required_rubygems_version: !ruby/object:Gem::Requirement
164
- none: false
165
188
  requirements:
166
189
  - - ! '>='
167
190
  - !ruby/object:Gem::Version
168
191
  version: '0'
169
192
  requirements: []
170
193
  rubyforge_project:
171
- rubygems_version: 1.8.24
194
+ rubygems_version: 2.0.3
172
195
  signing_key:
173
- specification_version: 3
196
+ specification_version: 4
174
197
  summary: File uploads for Rails ~> 3.1 to AWS-S3 via CORS using the jQuery-File-Upload
175
198
  script
176
199
  test_files:
177
- - spec/s3_cors_fileupload/version_spec.rb
200
+ - spec/dummy/Rakefile
201
+ - spec/dummy/app/assets/javascripts/application.js
202
+ - spec/dummy/app/assets/stylesheets/application.css
203
+ - spec/dummy/app/controllers/application_controller.rb
204
+ - spec/dummy/app/helpers/application_helper.rb
205
+ - spec/dummy/app/models/.gitkeep
206
+ - spec/dummy/app/views/layouts/application.html.erb
207
+ - spec/dummy/config.ru
208
+ - spec/dummy/config/amazon_s3.yml
209
+ - spec/dummy/config/application.rb
210
+ - spec/dummy/config/boot.rb
211
+ - spec/dummy/config/database.yml
212
+ - spec/dummy/config/environment.rb
213
+ - spec/dummy/config/environments/development.rb
214
+ - spec/dummy/config/environments/production.rb
215
+ - spec/dummy/config/environments/test.rb
216
+ - spec/dummy/config/initializers/backtrace_silencers.rb
217
+ - spec/dummy/config/initializers/inflections.rb
218
+ - spec/dummy/config/initializers/mime_types.rb
219
+ - spec/dummy/config/initializers/secret_token.rb
220
+ - spec/dummy/config/initializers/session_store.rb
221
+ - spec/dummy/config/initializers/wrap_parameters.rb
222
+ - spec/dummy/config/locales/en.yml
223
+ - spec/dummy/config/routes.rb
224
+ - spec/dummy/db/.gitkeep
225
+ - spec/dummy/lib/assets/.gitkeep
226
+ - spec/dummy/log/.gitkeep
227
+ - spec/dummy/public/404.html
228
+ - spec/dummy/public/422.html
229
+ - spec/dummy/public/500.html
230
+ - spec/dummy/public/favicon.ico
231
+ - spec/dummy/script/rails
232
+ - spec/lib/generators/install/install_generator_spec.rb
233
+ - spec/lib/s3_cors_fileupload/rails/config_spec.rb
234
+ - spec/lib/s3_cors_fileupload/version_spec.rb
178
235
  - spec/s3_cors_fileupload_spec.rb
179
236
  - spec/spec_helper.rb