delayed_paperclip 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{delayed_paperclip}
3
- s.version = "0.7.1"
3
+ s.version = "0.7.2"
4
4
 
5
5
  s.authors = ["Jesse Storimer", "Bert Goethals"]
6
6
  s.summary = %q{Process your Paperclip attachments in the background.}
@@ -67,7 +67,11 @@ module DelayedPaperclip
67
67
  processing << name
68
68
  end
69
69
  end
70
- self.class.update_all(processing.collect{|n| "#{n}_processing = 1" }.join(", "), "id = #{self.id}") unless processing.empty?
70
+ unless processing.empty?
71
+ updates = processing.collect{|n| "#{n}_processing = :true" }.join(", ")
72
+ updates = ActiveRecord::Base.send(:sanitize_sql_array, [updates, {:true => true}])
73
+ self.class.update_all(updates, "id = #{self.id}")
74
+ end
71
75
  end
72
76
 
73
77
  # First mark processing
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayed_paperclip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,12 +10,12 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-07-27 00:00:00.000000000 +02:00
13
+ date: 2011-08-01 00:00:00.000000000 +02:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: paperclip
18
- requirement: &2152759240 !ruby/object:Gem::Requirement
18
+ requirement: &2172919760 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ~>
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 2.3.0
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2152759240
26
+ version_requirements: *2172919760
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mocha
29
- requirement: &2152758840 !ruby/object:Gem::Requirement
29
+ requirement: &2172919360 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: '0'
35
35
  type: :development
36
36
  prerelease: false
37
- version_requirements: *2152758840
37
+ version_requirements: *2172919360
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: sqlite3-ruby
40
- requirement: &2152758380 !ruby/object:Gem::Requirement
40
+ requirement: &2172918900 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: '0'
46
46
  type: :development
47
47
  prerelease: false
48
- version_requirements: *2152758380
48
+ version_requirements: *2172918900
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: delayed_job
51
- requirement: &2152757960 !ruby/object:Gem::Requirement
51
+ requirement: &2172918480 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ! '>='
@@ -56,10 +56,10 @@ dependencies:
56
56
  version: '0'
57
57
  type: :development
58
58
  prerelease: false
59
- version_requirements: *2152757960
59
+ version_requirements: *2172918480
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: resque
62
- requirement: &2152757540 !ruby/object:Gem::Requirement
62
+ requirement: &2172918060 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ! '>='
@@ -67,7 +67,7 @@ dependencies:
67
67
  version: '0'
68
68
  type: :development
69
69
  prerelease: false
70
- version_requirements: *2152757540
70
+ version_requirements: *2172918060
71
71
  description: Process your Paperclip attachments in the background with delayed_job,
72
72
  Resque or your own processor.
73
73
  email: jesse@jstorimer.com