attachs 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/attachs/types/file.rb +1 -1
- data/lib/attachs/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: 6376bae7f409923ee076e8f0b4eba342e0b107b4
|
|
4
|
+
data.tar.gz: c9cf65c444e4e9538ee0d99fdd7a77a5b26a6f04
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e34990d1ba9a0f1dbb33300c3bea569d1ecde6645368f7f3f269d2e2742c6d9b0ea2e288910f03d28373cfa86a82705ca6281168b4cf7c311f2290a917f2cbe6
|
|
7
|
+
data.tar.gz: 57f8213edd2ddbafd31ea2257a7fb9c64ad833a06cdf99259156bc3ed6bd64d8f5a067f339d88c94c6b85da2e090b9b4b53db717a3cb2a4a183afa5ff0af45cd
|
data/lib/attachs/types/file.rb
CHANGED
|
@@ -69,7 +69,7 @@ module Attachs
|
|
|
69
69
|
|
|
70
70
|
def realpath(*args)
|
|
71
71
|
return nil if deleted? or Rails.application.config.attachs.storage == :s3
|
|
72
|
-
(stored? ? storage.realpath(path) : upload.path).to_s
|
|
72
|
+
(stored? ? storage.realpath(path(*args)) : upload.path).to_s
|
|
73
73
|
end
|
|
74
74
|
|
|
75
75
|
def url(*args)
|
data/lib/attachs/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: attachs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mattways
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-10-
|
|
11
|
+
date: 2013-10-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|