file_upload 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/file_upload.js +1 -0
- data/app/models/file_upload/redis_file.rb +2 -2
- data/lib/file_upload/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 550acece9dbbca45353d3511859c36e81be4255c
|
4
|
+
data.tar.gz: 5ccde3a9b7935bf048a3e2f679c978949a39531f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73a0b0fbbc3a7c9d716f1c60e660b19a50ada5933284db9514f52d075d40d6eff11501d6b5d92c51df05910c11e6425d5cf3989e783b823edd1e5aeb41416240
|
7
|
+
data.tar.gz: 6af9e07b7204849c14b5ac735737d33183358ff76912b59f3611653524c6289d61c422aae2f50966a88a24123e759417652ee4a4d2468192ef3481cb6b351ef5
|
@@ -99,6 +99,7 @@ $(function() {
|
|
99
99
|
file.item.appendTo(list);
|
100
100
|
} else {
|
101
101
|
var label = $("<label class='checkbox'></label").text(file.name + " (" + (Math.round(file.size/10.24)/100) + "kB)").prepend("<div class='progress'><div class='bar'></div></div>");
|
102
|
+
file.item = label;
|
102
103
|
container.find(".inputs").html(label);
|
103
104
|
}
|
104
105
|
});
|
@@ -6,7 +6,7 @@ module FileUpload
|
|
6
6
|
FILE_EXPIRY = 60 * 60
|
7
7
|
|
8
8
|
attr_accessor :file_io
|
9
|
-
attr_writer :key, :name, :id
|
9
|
+
attr_writer :key, :name, :id, :type
|
10
10
|
|
11
11
|
def initialize(attrs = {})
|
12
12
|
attrs.each do |k, v|
|
@@ -156,4 +156,4 @@ module FileUpload
|
|
156
156
|
@redis ||= FileUpload::Engine.config.redis
|
157
157
|
end
|
158
158
|
end
|
159
|
-
end
|
159
|
+
end
|
data/lib/file_upload/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: file_upload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Ching
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-filemagic
|