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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4df4a553a3341a6e4367f769c4d5ad86a413dcb5
4
- data.tar.gz: 2849ecd733c071e7698f37f16b1da29c0d411924
3
+ metadata.gz: 9cbda9cd16ccb4a356df059c3e1994fefacf6dd3
4
+ data.tar.gz: 1eec261f939ddd687e77b1127e5b4594939787d7
5
5
  SHA512:
6
- metadata.gz: f64f7995d94d59d51a9e386fd6147e98edd81a52facc49402e10a13eb9cbb1a921ffb9cdb39590498771135e888bc348350cc795ad0accf85273dee218feebb7
7
- data.tar.gz: 05d9001486fe13fd65e11d5097eaaf75d3a36b937d96a5ece1b0f7174aec3ded55aa4ab4e1c08357e789dd19938ced8780841bb84c9a969945034100cc69e7ee
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::Bse
31
+ class MyUploader < CarrierWave::Uploader::Base
32
32
  ...
33
- process :virus_scan
33
+ after :store, :virus_scan
34
34
  end
35
35
 
36
36
  ## Contributing
@@ -17,5 +17,6 @@ Gem::Specification.new do |s|
17
17
  s.license = "MIT"
18
18
 
19
19
  s.add_dependency "carrierwave"
20
+ s.add_dependency "activesupport"
20
21
  s.add_dependency "virus-scanner"
21
22
  end
@@ -1,2 +1,3 @@
1
- require "carrierwave-vs/version"
2
- require "carrierwave-vs/virus_scanner"
1
+ require "virus_scanner"
2
+ require_relative "carrierwave-vs/version"
3
+ require_relative "carrierwave-vs/virus_scanner"
@@ -1,5 +1,5 @@
1
1
  module CarrierWave
2
2
  module VirusScanner
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -1,10 +1,14 @@
1
1
  require "active_support/concern"
2
2
 
3
- module Carrierwave
3
+ module CarrierWave
4
4
  module VirusScanner
5
5
  extend ActiveSupport::Concern
6
6
 
7
- class_methods do
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.2
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-03-27 00:00:00.000000000 Z
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