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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e56842a2d4b0772171a482a056a51a38262be865
4
- data.tar.gz: 806c5bbb78d458ca6f278fd72185de3c22d58045
3
+ metadata.gz: 550acece9dbbca45353d3511859c36e81be4255c
4
+ data.tar.gz: 5ccde3a9b7935bf048a3e2f679c978949a39531f
5
5
  SHA512:
6
- metadata.gz: 1c351757c72710f7ebbca938b5220ec0fabef8f17f6308bdea434b6961bebb313707295d1aadecbb662eb1ad1cc6d57dc413da890f45635c6422989f44f5add9
7
- data.tar.gz: c6a81e17a703c54b7ab5982a9659198bad4a692d6751ed2a6dbd73ded9c205fac6b512c5427dcb7bc10889029b7fd6fa5b2228655b9b706de19452483c4956a8
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
@@ -1,3 +1,3 @@
1
1
  module FileUpload
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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-08-26 00:00:00.000000000 Z
11
+ date: 2013-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-filemagic