paperclip-elvfs 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Paperclip::Elvfs
2
2
 
3
- TODO: Write a gem description
3
+ This gem extends [Paperclip](https://github.com/thoughtbot/paperclip) with [elFinder](https://github.com/Studio-42/elFinder) storage.
4
4
 
5
5
  ## Installation
6
6
 
@@ -18,7 +18,13 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ Example:
22
+
23
+ ```ruby
24
+ class User < ActiveRecord::Base
25
+ has_attached_file :avatar, :storage => :elvfs, :elvfs_url => "http://elfinder.org"
26
+ end
27
+ ```
22
28
 
23
29
  ## Contributing
24
30
 
@@ -1,5 +1,5 @@
1
1
  module Paperclip
2
2
  module Elvfs
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -30,6 +30,7 @@ module Paperclip
30
30
  log("deleting #{path}")
31
31
  delete_entry(File.dirname(path))
32
32
  end
33
+ instance.update_column "#{name}_url", nil
33
34
  @queued_for_delete = []
34
35
  end
35
36
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paperclip-elvfs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-30 00:00:00.000000000 Z
12
+ date: 2012-12-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: curb
@@ -91,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  segments:
93
93
  - 0
94
- hash: -390824516123300352
94
+ hash: -4011993964447639236
95
95
  required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  segments:
102
102
  - 0
103
- hash: -390824516123300352
103
+ hash: -4011993964447639236
104
104
  requirements: []
105
105
  rubyforge_project:
106
106
  rubygems_version: 1.8.24