uploader 3.1.2 → 3.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.2
1
+ 3.1.3
@@ -122,7 +122,13 @@ class Uploader::UploadsController < ApplicationController
122
122
  redirect_to get_redirect(:permission_denied)
123
123
  end
124
124
  format.js { render :text => message }
125
- format.json { render :json => { :success => false, :message => message } }
125
+ format.json do
126
+ if Uploader.configuration.use_http_status_failures
127
+ render :json => message, :status => :unprocessable_entity
128
+ else
129
+ render :json => { :success => false, :message => message }
130
+ end
131
+ end
126
132
  end
127
133
  end
128
134
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{uploader}
8
- s.version = "3.1.2"
8
+ s.version = "3.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Justin Ball", "Joel Duffin", "David South"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uploader
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 1
9
- - 2
10
- version: 3.1.2
9
+ - 3
10
+ version: 3.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Ball