glebtv-rails-uploader 0.7.1 → 0.8.0

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: 9423712bd2f3477c062998585b1c69902a4006e2
4
- data.tar.gz: 04b3343dc2b53618b2d2d3041b3258594221fdde
3
+ metadata.gz: ce75403149d61918f485a79cd2fd49c113043410
4
+ data.tar.gz: 8b85dfdb78085e19a7e49609c94cdbed2e3627e0
5
5
  SHA512:
6
- metadata.gz: 09ff2073da321b21b2c800215d766c00901dc43a1aeddd9ed5b5b7d689abcca49f98837bef687b037c786ad4e3a02137ce8ed32a33381431ec3ead2508a8f50c
7
- data.tar.gz: 6d7fbae5ae3ba1da07723430362d1d3169c314a375bb66537a8f9fae8dac647e4bd100bea14b7821ecdfcb082ac23742b49ca43e79ce208a2a3e97abd8b35c11
6
+ metadata.gz: 1c7a4228ea072c007a42615779bb1fde2120580bf7ee06b318eaea7f6bae83c4738daab4ecab51d1a504c9d5ec1cf586a2ac60313ce019002f95a9f917bf5d55
7
+ data.tar.gz: c867447af03443e735734772502664d3f9328ef0fead3d2d7b4d117751c973fd53ef45722d0800884117ea691eb2d2219d3cff8a01a780e34e4e14e68a424810
@@ -40,7 +40,7 @@ module Uploader
40
40
 
41
41
  def render_resourse(record, status = 200)
42
42
  if record.errors.empty?
43
- render_json({:files => [record.to_jq_upload]}, status)
43
+ render_json({:files => Array.wrap(record.to_jq_upload)}, status)
44
44
  else
45
45
  render_json(record.errors, 422)
46
46
  end
@@ -44,7 +44,7 @@
44
44
  uploader = ($(this).data('blueimp-fileupload') || $(this).data('fileupload'));
45
45
  <% fv = field.values.sort_by {|s| s.sort.nil? ? 0 : s.sort }.map(&:to_jq_upload) %>
46
46
  uploader
47
- ._renderDownload(<%=raw (field.multiple? ? fv : fv[0]).to_json %>)
47
+ ._renderDownload(<%=raw Array.wrap(fv).to_json %>)
48
48
  .appendTo(container);
49
49
  <% end -%>
50
50
  });
@@ -1,3 +1,3 @@
1
1
  module Uploader
2
- VERSION = "0.7.1".freeze
2
+ VERSION = "0.8.0".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glebtv-rails-uploader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Galeta
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-09-21 00:00:00.000000000 Z
13
+ date: 2014-12-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: jquery-ui-rails
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  version: '0'
169
169
  requirements: []
170
170
  rubyforge_project:
171
- rubygems_version: 2.2.2
171
+ rubygems_version: 2.4.4
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: Rails file upload implementation with jQuery-File-Upload