carrierwave-vs 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 +4 -4
- data/README.md +2 -2
- data/carrierwave-vs.gemspec +1 -0
- data/lib/carrierwave-vs.rb +3 -2
- data/lib/carrierwave-vs/version.rb +1 -1
- data/lib/carrierwave-vs/virus_scanner.rb +6 -2
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cbda9cd16ccb4a356df059c3e1994fefacf6dd3
|
4
|
+
data.tar.gz: 1eec261f939ddd687e77b1127e5b4594939787d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ae3a362d2f8bd4d37052f05cad94740bfbdc21b7c5b3bb87a20c6241487a4f32867bc4ed9d3b4d483635b10a6a6a42aa92e14f1a815704f83859254a7d6f85c
|
7
|
+
data.tar.gz: 9cf866532214a7b8fd34632e25f31caae8fcaa1356560d4c9f5ac3508deee31b469b7ca979528f32d54b36339f8b0dee6e408f13dfa59750aed29c41ec1658ea
|
data/README.md
CHANGED
@@ -28,9 +28,9 @@ Include it in in your code:
|
|
28
28
|
|
29
29
|
Then apply to all versions by:
|
30
30
|
|
31
|
-
class MyUploader < CarrierWave::Uploader::
|
31
|
+
class MyUploader < CarrierWave::Uploader::Base
|
32
32
|
...
|
33
|
-
|
33
|
+
after :store, :virus_scan
|
34
34
|
end
|
35
35
|
|
36
36
|
## Contributing
|
data/carrierwave-vs.gemspec
CHANGED
data/lib/carrierwave-vs.rb
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
require "
|
2
|
-
|
1
|
+
require "virus_scanner"
|
2
|
+
require_relative "carrierwave-vs/version"
|
3
|
+
require_relative "carrierwave-vs/virus_scanner"
|
@@ -1,10 +1,14 @@
|
|
1
1
|
require "active_support/concern"
|
2
2
|
|
3
|
-
module
|
3
|
+
module CarrierWave
|
4
4
|
module VirusScanner
|
5
5
|
extend ActiveSupport::Concern
|
6
6
|
|
7
|
-
|
7
|
+
def self.included(base)
|
8
|
+
base.send(:extend, ClassMethods)
|
9
|
+
end
|
10
|
+
|
11
|
+
module ClassMethods
|
8
12
|
def virus_scan
|
9
13
|
process :virus_scan
|
10
14
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carrierwave-vs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BitZesty Ltd.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: carrierwave
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activesupport
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: virus-scanner
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|