rails-uploader 0.3.3 → 0.3.4

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: cf620f5a11f2e3b053f520ad774fd1db379b286c
4
- data.tar.gz: bbe496bf07889b2b954008550eab1b8631606c25
3
+ metadata.gz: e31c29efbaa3737142d33f8dd76514248e59603f
4
+ data.tar.gz: ed9c4bb1789e0cc030bebd3bb8b8879b0aad8543
5
5
  SHA512:
6
- metadata.gz: 5cfd1d5becc2576815e293a17e856b055205db0fe7e340ec9dbbebc6057eefb0a4a28733f7abfa1bf2cac6e3673a1a992a93a770e1a4cf1a7c3be7ee752b1726
7
- data.tar.gz: c55f5b666689ab0611ba1c109a51b702134be8d8ce463448abbe9ab5f7d9fabd9a20b3c264f4405d35ec0ef037d0cbfb6f4e4300426f753823aad7f882a7f6d5
6
+ metadata.gz: fea19a504d4b8275c3b0a1b4eb0614e18067280d09fc3e56e702e5085d4cb4e8bd4ea7db8ad390c6cfc889834a503bf7baad664af9fccdd5343ddc30e2b07572
7
+ data.tar.gz: 83bee7f7dd6acf428205f3e676320af5422ed7b5b0afea6a3c27be8d8ff805026e72b1bbefd4bd9e682544774f9042ccc6481c77ed17130ce60d0a79a8301e27
data/lib/uploader.rb CHANGED
@@ -42,7 +42,7 @@ module Uploader
42
42
  end
43
43
 
44
44
  def self.guid
45
- SecureRandom.base64(16).tr('+/=', 'xyz').slice(0, 20)
45
+ SecureRandom.urlsafe_base64
46
46
  end
47
47
 
48
48
  def self.root_path
@@ -68,9 +68,12 @@ module Uploader
68
68
  class AccessDenied < StandardError
69
69
  attr_reader :user, :action, :subject
70
70
 
71
- def initialize(user, action, subject)
72
- @user, @action, @subject = user, action, subject
73
- super
71
+ def initialize(user, action, subject = nil)
72
+ @user = user
73
+ @action = action
74
+ @subject = subject
75
+
76
+ super(message)
74
77
  end
75
78
 
76
79
  def message
@@ -1,3 +1,3 @@
1
1
  module Uploader
2
- VERSION = '0.3.3'.freeze
2
+ VERSION = '0.3.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-uploader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Galeta
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-07-13 00:00:00.000000000 Z
12
+ date: 2016-09-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jquery-ui-rails
@@ -184,8 +184,8 @@ files:
184
184
  - vendor/assets/javascripts/uploader/jquery.iframe-transport.js
185
185
  - vendor/assets/javascripts/uploader/vendor/jquery.ui.widget.js
186
186
  - vendor/assets/javascripts/uploader/vendor/tmpl.min.js
187
- - vendor/assets/stylesheets/uploader/default.css.scss
188
- - vendor/assets/stylesheets/uploader/jquery.fileupload-ui.css
187
+ - vendor/assets/stylesheets/uploader/default.scss
188
+ - vendor/assets/stylesheets/uploader/jquery.fileupload-ui.scss
189
189
  homepage: https://github.com/superp/rails-uploader
190
190
  licenses: []
191
191
  metadata: {}