s3_cors_fileupload 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -2
  3. data/Gemfile +1 -1
  4. data/Gemfile.lock +19 -19
  5. data/README.md +13 -1
  6. data/lib/generators/s3_cors_fileupload/install/templates/s3_uploads.js +1 -2
  7. data/lib/generators/s3_cors_fileupload/install/templates/source_file.rb +1 -1
  8. data/lib/generators/s3_cors_fileupload/install/templates/views/erb/_template_download.html.erb +19 -16
  9. data/lib/generators/s3_cors_fileupload/install/templates/views/erb/_template_upload.html.erb +31 -26
  10. data/lib/generators/s3_cors_fileupload/install/templates/views/erb/_template_uploaded.html.erb +18 -13
  11. data/lib/generators/s3_cors_fileupload/install/templates/views/erb/index.html.erb +1 -1
  12. data/lib/generators/s3_cors_fileupload/install/templates/views/haml/_template_download.html.haml +16 -21
  13. data/lib/generators/s3_cors_fileupload/install/templates/views/haml/_template_upload.html.haml +15 -18
  14. data/lib/generators/s3_cors_fileupload/install/templates/views/haml/_template_uploaded.html.haml +12 -13
  15. data/lib/generators/s3_cors_fileupload/install/templates/views/haml/index.html.haml +1 -1
  16. data/lib/s3_cors_fileupload/rails/form_helper.rb +16 -14
  17. data/lib/s3_cors_fileupload/version.rb +3 -3
  18. data/vendor/assets/javascripts/s3_cors_fileupload/index.js +4 -1
  19. data/vendor/assets/javascripts/s3_cors_fileupload/jquery.fileupload-image.js +213 -0
  20. data/vendor/assets/javascripts/s3_cors_fileupload/jquery.fileupload-process.js +164 -0
  21. data/vendor/assets/javascripts/s3_cors_fileupload/jquery.fileupload-ui.js +62 -228
  22. data/vendor/assets/javascripts/s3_cors_fileupload/jquery.fileupload-validate.js +116 -0
  23. data/vendor/assets/javascripts/s3_cors_fileupload/jquery.fileupload.js +212 -84
  24. data/vendor/assets/javascripts/s3_cors_fileupload/jquery.iframe-transport.js +24 -4
  25. data/vendor/assets/javascripts/s3_cors_fileupload/vendor/jquery.ui.widget.js +1 -1
  26. data/vendor/assets/javascripts/s3_cors_fileupload/vendor/load-image.js +138 -172
  27. data/vendor/assets/javascripts/s3_cors_fileupload/vendor/tmpl.js +3 -4
  28. data/vendor/assets/stylesheets/jquery.fileupload-ui.css.erb +12 -28
  29. metadata +5 -2
@@ -1,6 +1,6 @@
1
1
  @charset "UTF-8";
2
2
  /*
3
- * jQuery File Upload UI Plugin CSS 7.4
3
+ * jQuery File Upload UI Plugin CSS 8.1
4
4
  * https://github.com/blueimp/jQuery-File-Upload
5
5
  *
6
6
  * Copyright 2010, Sebastian Tschan
@@ -13,8 +13,6 @@
13
13
  .fileinput-button {
14
14
  position: relative;
15
15
  overflow: hidden;
16
- float: left;
17
- margin-right: 4px;
18
16
  }
19
17
  .fileinput-button input {
20
18
  position: absolute;
@@ -32,35 +30,24 @@
32
30
  .fileupload-buttonbar .toggle {
33
31
  margin-bottom: 5px;
34
32
  }
35
- .files .progress {
36
- width: 200px;
37
- }
38
33
  .progress-animated .bar {
39
34
  background: url(<%= asset_path 'progressbar.gif' %>) !important;
40
35
  filter: none;
41
36
  }
42
37
  .fileupload-loading {
43
- position: absolute;
44
- left: 50%;
45
- width: 128px;
46
- height: 128px;
38
+ float: right;
39
+ width: 32px;
40
+ height: 32px;
47
41
  background: url(<%= asset_path 'loading.gif' %>) center no-repeat;
42
+ background-size: contain;
48
43
  display: none;
49
44
  }
50
45
  .fileupload-processing .fileupload-loading {
51
46
  display: block;
52
47
  }
53
-
54
- /* Fix for IE 6: */
55
- * html .fileinput-button {
56
- line-height: 24px;
57
- margin: 1px -3px 0 0;
58
- }
59
-
60
- /* Fix for IE 7: */
61
- * + html .fileinput-button {
62
- padding: 2px 15px;
63
- margin: 1px 0 0 0;
48
+ .files audio,
49
+ .files video {
50
+ max-width: 300px;
64
51
  }
65
52
 
66
53
  @media (max-width: 767px) {
@@ -69,15 +56,12 @@
69
56
  .files .btn span {
70
57
  display: none;
71
58
  }
72
- .files .preview * {
73
- width: 40px;
74
- }
75
- .files .name * {
59
+ .files .name {
76
60
  width: 80px;
77
- display: inline-block;
78
61
  word-wrap: break-word;
79
62
  }
80
- .files .progress {
81
- width: 20px;
63
+ .files audio,
64
+ .files video {
65
+ max-width: 80px;
82
66
  }
83
67
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3_cors_fileupload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Atkins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-01 00:00:00.000000000 Z
11
+ date: 2013-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -177,7 +177,10 @@ files:
177
177
  - vendor/assets/images/loading.gif
178
178
  - vendor/assets/images/progressbar.gif
179
179
  - vendor/assets/javascripts/s3_cors_fileupload/index.js
180
+ - vendor/assets/javascripts/s3_cors_fileupload/jquery.fileupload-image.js
181
+ - vendor/assets/javascripts/s3_cors_fileupload/jquery.fileupload-process.js
180
182
  - vendor/assets/javascripts/s3_cors_fileupload/jquery.fileupload-ui.js
183
+ - vendor/assets/javascripts/s3_cors_fileupload/jquery.fileupload-validate.js
181
184
  - vendor/assets/javascripts/s3_cors_fileupload/jquery.fileupload.js
182
185
  - vendor/assets/javascripts/s3_cors_fileupload/jquery.iframe-transport.js
183
186
  - vendor/assets/javascripts/s3_cors_fileupload/vendor/jquery.ui.widget.js