delayed_paperclip 2.8.0 → 2.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +14 -12
- data/Appraisals +14 -6
- data/README.md +275 -0
- data/Rakefile +1 -1
- data/delayed_paperclip.gemspec +2 -2
- data/gemfiles/3.2.gemfile +8 -0
- data/gemfiles/{rails3_2.gemfile.lock → 3.2.gemfile.lock} +37 -36
- data/gemfiles/4.0.gemfile +8 -0
- data/gemfiles/{rails4.gemfile.lock → 4.0.gemfile.lock} +39 -40
- data/gemfiles/4.1.gemfile +8 -0
- data/gemfiles/4.1.gemfile.lock +156 -0
- data/gemfiles/4.2.gemfile +8 -0
- data/gemfiles/4.2.gemfile.lock +181 -0
- data/lib/delayed_paperclip/jobs/active_job.rb +16 -0
- data/lib/delayed_paperclip/jobs.rb +1 -0
- data/lib/delayed_paperclip/url_generator.rb +1 -1
- data/lib/delayed_paperclip/version.rb +1 -1
- data/lib/delayed_paperclip.rb +1 -0
- data/spec/delayed_paperclip/url_generator_spec.rb +31 -3
- data/spec/integration/active_job_inline_spec.rb +26 -0
- data/spec/integration/active_job_resque_spec.rb +31 -0
- data/spec/integration/active_job_sidekiq_spec.rb +35 -0
- data/spec/integration/delayed_job_spec.rb +1 -1
- data/spec/spec_helper.rb +9 -0
- data/test/base_delayed_paperclip_test.rb +4 -0
- data/test/test_helper.rb +14 -1
- metadata +27 -27
- data/.rbenv-version +0 -1
- data/README.textile +0 -219
- data/gemfiles/rails3_1.gemfile +0 -7
- data/gemfiles/rails3_1.gemfile.lock +0 -163
- data/gemfiles/rails3_2.gemfile +0 -7
- data/gemfiles/rails4.gemfile +0 -7
- data/test/delayed_paperclip_test.rb +0 -47
- data/test/fixtures/12k.png +0 -0
- data/test/resque_paperclip_test.rb +0 -32
- data/test/sidekiq_paperclip.rb +0 -39
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9d8e927d5a6ecdf619755a0593874e1d6aa9125
|
4
|
+
data.tar.gz: e3408926c0a1b18b5f850dd2396ffcb767edd893
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e2c42c5a2babfc35dc485b990a587d6eb77081c6e26d23c163926c2152a981a3a1a08c11a5f463b351e115db20436cf43c2771d20d96fc9a1ef7633ce468dfc
|
7
|
+
data.tar.gz: e4168634498e359e1b6969feecf5c164be9858b521172a6f8ef79977cf17ef7add5d105586af5d3bddeca85734bbfae0d03f466737f29c6cfba859f280d53a6e
|
data/.travis.yml
CHANGED
@@ -1,21 +1,23 @@
|
|
1
1
|
language: ruby
|
2
|
+
|
2
3
|
rvm:
|
3
|
-
- 2.1
|
4
|
-
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
- 2.1
|
5
|
+
- 2.0
|
6
|
+
|
7
|
+
gemfile:
|
8
|
+
- gemfiles/3.2.gemfile
|
9
|
+
- gemfiles/4.0.gemfile
|
10
|
+
- gemfiles/4.1.gemfile
|
11
|
+
|
12
|
+
sudo: false
|
13
|
+
|
9
14
|
services:
|
10
15
|
- redis
|
11
|
-
|
16
|
+
|
17
|
+
script: "bundle exec rake clean spec"
|
18
|
+
|
12
19
|
notifications:
|
13
20
|
email:
|
14
21
|
- james@jamesrgifford.com
|
15
22
|
- scott@artsicle.com
|
16
|
-
gemfile:
|
17
|
-
- gemfiles/rails3_1.gemfile
|
18
|
-
- gemfiles/rails3_2.gemfile
|
19
|
-
- gemfiles/rails4.gemfile
|
20
|
-
|
21
23
|
|
data/Appraisals
CHANGED
@@ -1,11 +1,19 @@
|
|
1
|
-
appraise "
|
2
|
-
gem "rails", "~> 3.
|
1
|
+
appraise "3.2" do
|
2
|
+
gem "rails", "~> 3.2.15"
|
3
|
+
gem "delayed_paperclip", path: "../"
|
3
4
|
end
|
4
5
|
|
5
|
-
appraise "
|
6
|
-
gem "rails", "~>
|
6
|
+
appraise "4.0" do
|
7
|
+
gem "rails", "~> 4.0.0"
|
8
|
+
gem "delayed_paperclip", path: "../"
|
7
9
|
end
|
8
10
|
|
9
|
-
appraise "
|
10
|
-
gem "rails", "~> 4.0
|
11
|
+
appraise "4.1" do
|
12
|
+
gem "rails", "~> 4.1.0"
|
13
|
+
gem "delayed_paperclip", path: "../"
|
14
|
+
end
|
15
|
+
|
16
|
+
appraise "4.2" do
|
17
|
+
gem "rails", "~> 4.2.0"
|
18
|
+
gem "delayed_paperclip", path: "../"
|
11
19
|
end
|
data/README.md
ADDED
@@ -0,0 +1,275 @@
|
|
1
|
+
Delayed::Paperclip [![Build Status](https://travis-ci.org/jrgifford/delayed_paperclip.svg?branch=master)](https://travis-ci.org/jrgifford/delayed_paperclip) [![Code Climate](https://codeclimate.com/github/jrgifford/delayed_paperclip.png)](https://codeclimate.com/github/jrgifford/delayed_paperclip)
|
2
|
+
======================================================================================
|
3
|
+
|
4
|
+
|
5
|
+
DelayedPaperclip lets you process your [Paperclip](http://github.com/thoughtbot/paperclip) attachments in a
|
6
|
+
background task with [DelayedJob](https://github.com/collectiveidea/delayed_job), [Resque](https://github.com/resque/resque) or [Sidekiq](https://github.com/mperham/sidekiq).
|
7
|
+
|
8
|
+
Why?
|
9
|
+
----
|
10
|
+
|
11
|
+
The most common use case for Paperclip is to easily attach image files
|
12
|
+
to ActiveRecord models. Most of the time these image files will have
|
13
|
+
multiple styles and will need to be resized when they are created. This
|
14
|
+
is usually a pretty [slow operation](http://www.jstorimer.com/ruby/2010/01/05/speep-up-your-paperclip-tests.html) and should be handled in a
|
15
|
+
background task.
|
16
|
+
|
17
|
+
I’m sure that everyone knows this, this gem just makes it easy to do.
|
18
|
+
|
19
|
+
Installation
|
20
|
+
------------
|
21
|
+
|
22
|
+
Install the gem:
|
23
|
+
|
24
|
+
````
|
25
|
+
gem install delayed_paperclip
|
26
|
+
````
|
27
|
+
|
28
|
+
Or even better, add it to your Gemfile.
|
29
|
+
|
30
|
+
````
|
31
|
+
source "https://rubygems.org"
|
32
|
+
gem 'delayed_paperclip'
|
33
|
+
````
|
34
|
+
|
35
|
+
Dependencies:
|
36
|
+
|
37
|
+
- Paperclip
|
38
|
+
- DJ, Resque or Sidekiq
|
39
|
+
|
40
|
+
Usage
|
41
|
+
-----
|
42
|
+
|
43
|
+
In your model:
|
44
|
+
|
45
|
+
````ruby
|
46
|
+
class User < ActiveRecord::Base
|
47
|
+
has_attached_file :avatar, styles: {
|
48
|
+
medium: "300x300>",
|
49
|
+
thumb: "100x100>"
|
50
|
+
}
|
51
|
+
|
52
|
+
process_in_background :avatar
|
53
|
+
end
|
54
|
+
````
|
55
|
+
|
56
|
+
Use your Paperclip attachment just like always in controllers and views.
|
57
|
+
|
58
|
+
To select between using Resque or Delayed::Job, just install and
|
59
|
+
configure your choice properly within your application, and
|
60
|
+
delayed_paperclip will do the rest. It will detect which library is
|
61
|
+
loaded and make a decision about which sort of job to enqueue at that
|
62
|
+
time.
|
63
|
+
|
64
|
+
### Resque
|
65
|
+
|
66
|
+
Make sure that you have [Resque](https://github.com/resque/resque) up and running. The jobs will be
|
67
|
+
dispatched to the <code>:paperclip</code> queue, so you can correctly
|
68
|
+
dispatch your worker. Configure resque and your workers exactly as you
|
69
|
+
would otherwise.
|
70
|
+
|
71
|
+
### DJ
|
72
|
+
|
73
|
+
Just make sure that you have DJ up and running.
|
74
|
+
|
75
|
+
### Sidekiq
|
76
|
+
|
77
|
+
Make sure that [Sidekiq](http://github.com/mperham/sidekiq) is running and listening to the
|
78
|
+
`paperclip` queue, either by adding it to your
|
79
|
+
`sidekiq.yml` config file under `- queues:` or by
|
80
|
+
passing the command line argument `-q paperclip` to Sidekiq.
|
81
|
+
|
82
|
+
### Displaying images during processing
|
83
|
+
|
84
|
+
In the default setup, when you upload an image for the first time and
|
85
|
+
try to display it before the job has been completed, Paperclip will be
|
86
|
+
none the wiser and output the url of the image which is yet to be
|
87
|
+
processed, which will result in a broken image link being displayed on
|
88
|
+
the page.
|
89
|
+
|
90
|
+
To have the missing image url be outputted by paperclip while the image is being processed, all you need to do is add a
|
91
|
+
`#{attachment_name}_processing` column to the specific model you want
|
92
|
+
to enable this feature for. This feature gracefully degrades and will not affect models which do not have the column added to them.
|
93
|
+
|
94
|
+
````ruby
|
95
|
+
class AddAvatarProcessingToUser < ActiveRecord::Migration
|
96
|
+
def self.up
|
97
|
+
add_column :users, :avatar_processing, :boolean
|
98
|
+
end
|
99
|
+
|
100
|
+
def self.down
|
101
|
+
remove_column :users, :avatar_processing
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
@user = User.new(avatar: File.new(...))
|
106
|
+
@user.save
|
107
|
+
@user.avatar.url #=> "/images/original/missing.png"
|
108
|
+
Delayed::Worker.new.work_off
|
109
|
+
|
110
|
+
@user.reload
|
111
|
+
@user.avatar.url #=> "/system/images/3/original/IMG_2772.JPG?1267562148"
|
112
|
+
````
|
113
|
+
|
114
|
+
#### Custom image for processing
|
115
|
+
|
116
|
+
This is useful if you have a difference between missing images and
|
117
|
+
images currently being processed.
|
118
|
+
|
119
|
+
````ruby
|
120
|
+
class User < ActiveRecord::Base
|
121
|
+
has_attached_file :avatar
|
122
|
+
|
123
|
+
process_in_background :avatar, processing_image_url: "/images/original/processing.jpg"
|
124
|
+
end
|
125
|
+
|
126
|
+
@user = User.new(avatar: File.new(...))
|
127
|
+
@user.save
|
128
|
+
@user.avatar.url #=> "/images/original/processing.png"
|
129
|
+
Delayed::Worker.new.work_off
|
130
|
+
|
131
|
+
@user.reload
|
132
|
+
@user.avatar.url #=> "/system/images/3/original/IMG_2772.JPG?1267562148"
|
133
|
+
````
|
134
|
+
|
135
|
+
You can also define a custom logic for `processing_image_url`, for
|
136
|
+
example to display the original\
|
137
|
+
picture while specific formats are being processed.
|
138
|
+
|
139
|
+
````ruby
|
140
|
+
class Item < ActiveRecord::Base
|
141
|
+
has_attached_file :photo
|
142
|
+
|
143
|
+
process_in_background :photo, processing_image_url: :processing_image_fallback
|
144
|
+
|
145
|
+
def processing_image_fallback
|
146
|
+
options = photo.options
|
147
|
+
options[:interpolator].interpolate(options[:url], photo, :original)
|
148
|
+
end
|
149
|
+
end
|
150
|
+
````
|
151
|
+
|
152
|
+
#### Have processing? status available, but construct image URLs as if delayed_paperclip wasn’t present
|
153
|
+
|
154
|
+
If you define the `#{attachment_name}_processing` column, but set the
|
155
|
+
`url_with_processing` option to false, this opens up other options (other than modifying the url that paperclip returns) for giving feedback to the user while the image is processing. This is useful for advanced situations, for example when dealing with caching systems.
|
156
|
+
|
157
|
+
Note especially the method #processing? which passes through the value
|
158
|
+
of the boolean created via migration.
|
159
|
+
|
160
|
+
````ruby
|
161
|
+
class User < ActiveRecord::Base
|
162
|
+
has_attached_file :avatar
|
163
|
+
|
164
|
+
process_in_background :avatar, url_with_processing: false
|
165
|
+
end
|
166
|
+
|
167
|
+
@user = User.new(avatar: File.new(...))
|
168
|
+
@user.save
|
169
|
+
@user.avatar.url #=> "/system/images/3/original/IMG_2772.JPG?1267562148"
|
170
|
+
@user.avatar.processing? #=> true
|
171
|
+
Delayed::Worker.new.work_off
|
172
|
+
|
173
|
+
@user.reload
|
174
|
+
@user.avatar.url #=> "/system/images/3/original/IMG_2772.JPG?1267562148"
|
175
|
+
@user.avatar.processing? #=> false
|
176
|
+
````
|
177
|
+
|
178
|
+
#### Only process certain styles
|
179
|
+
|
180
|
+
This is useful if you don’t want the background job to reprocess all
|
181
|
+
styles.
|
182
|
+
|
183
|
+
````ruby
|
184
|
+
class User < ActiveRecord::Base
|
185
|
+
has_attached_file :avatar, styles: { small: "25x25#", medium: "50x50x" }
|
186
|
+
|
187
|
+
process_in_background :avatar, only_process: [:small]
|
188
|
+
end
|
189
|
+
````
|
190
|
+
|
191
|
+
Like paperclip, you could also supply a lambda function to define
|
192
|
+
`only_process` dynamically.
|
193
|
+
|
194
|
+
````ruby
|
195
|
+
class User < ActiveRecord::Base
|
196
|
+
has_attached_file :avatar, styles: { small: "25x25#", medium: "50x50x" }
|
197
|
+
|
198
|
+
process_in_background :avatar, only_process: lambda { |a| a.instance.small_supported? ? [:small, :large] : [:large] }
|
199
|
+
end
|
200
|
+
````
|
201
|
+
|
202
|
+
#### Split processing
|
203
|
+
|
204
|
+
You can process some styles in the foreground and some in the background
|
205
|
+
by setting `only_process` on both `has_attached_file` and
|
206
|
+
`process_in_background`.
|
207
|
+
|
208
|
+
````ruby
|
209
|
+
class User < ActiveRecord::Base
|
210
|
+
has_attached_file :avatar, styles: { small: "25x25#", medium: "50x50x" }, only_process: [:small]
|
211
|
+
|
212
|
+
process_in_background :avatar, only_process: [:medium]
|
213
|
+
end
|
214
|
+
````
|
215
|
+
|
216
|
+
#### Reprocess Without Delay
|
217
|
+
|
218
|
+
This is useful if you don’t want the background job. It accepts
|
219
|
+
individual styles to. Take note, normal `reprocess!` does not accept styles as arguments anymore. It will delegate to DelayedPaperclip and
|
220
|
+
reprocess all styles.
|
221
|
+
|
222
|
+
````ruby
|
223
|
+
class User < ActiveRecord::Base
|
224
|
+
has_attached_file :avatar, styles: { small: "25x25#", medium: "50x50x" }
|
225
|
+
|
226
|
+
process_in_background :avatar
|
227
|
+
end
|
228
|
+
|
229
|
+
@user.avatar.url #=> "/system/images/3/original/IMG_2772.JPG?1267562148"
|
230
|
+
@user.avatar.reprocess_without_delay!(:medium)
|
231
|
+
````
|
232
|
+
|
233
|
+
Defaults
|
234
|
+
--------
|
235
|
+
|
236
|
+
Global defaults for all delayed_paperclip instances in your app can be
|
237
|
+
defined by changing the DelayedPaperclip.options Hash, this can be useful for setting a default ‘processing image,’ so you won’t have to define it in every `process_in_background` definition.
|
238
|
+
|
239
|
+
If you’re using Rails you can define a Hash with default options in
|
240
|
+
config/application.rb or in any of the config/environments/\*.rb files on `config.delayed_paperclip_defaults`, these will get merged into DelayedPaperclip.options as your Rails app boots. An example:
|
241
|
+
|
242
|
+
````
|
243
|
+
module YourApp
|
244
|
+
class Application < Rails::Application
|
245
|
+
# Other code...
|
246
|
+
|
247
|
+
config.delayed_paperclip_defaults = {
|
248
|
+
url_with_processing: true,
|
249
|
+
processing_image_url: 'custom_processing.png'
|
250
|
+
}
|
251
|
+
end
|
252
|
+
end
|
253
|
+
````
|
254
|
+
|
255
|
+
What if I’m not using images?
|
256
|
+
-----------------------------
|
257
|
+
|
258
|
+
This library works no matter what kind of post-processing you are doing
|
259
|
+
with Paperclip.
|
260
|
+
|
261
|
+
Does it work with s3?
|
262
|
+
---------------------
|
263
|
+
|
264
|
+
Yes.
|
265
|
+
|
266
|
+
Contributing
|
267
|
+
------------
|
268
|
+
|
269
|
+
Checkout out CONTRIBUTING. In short, you’ll need a redis server running
|
270
|
+
for testing. Run all tests with
|
271
|
+
|
272
|
+
````
|
273
|
+
# Rspec on all versions
|
274
|
+
rake appraisal spec
|
275
|
+
````
|
data/Rakefile
CHANGED
@@ -9,7 +9,7 @@ require 'rake/testtask'
|
|
9
9
|
$LOAD_PATH << File.join(File.dirname(__FILE__), 'lib')
|
10
10
|
|
11
11
|
desc 'Default: run unit tests.'
|
12
|
-
task :
|
12
|
+
task default: [:clean, 'appraisal:install', :all]
|
13
13
|
|
14
14
|
desc 'Test the delayed paperclip plugin under all supported Rails versions.'
|
15
15
|
task :all do |t|
|
data/delayed_paperclip.gemspec
CHANGED
@@ -14,12 +14,12 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.add_dependency 'paperclip', [">= 3.3"]
|
15
15
|
|
16
16
|
s.add_development_dependency 'mocha'
|
17
|
-
s.add_development_dependency "rspec"
|
17
|
+
s.add_development_dependency "rspec", '< 3.0'
|
18
18
|
s.add_development_dependency 'sqlite3'
|
19
19
|
s.add_development_dependency 'delayed_job'
|
20
20
|
s.add_development_dependency 'delayed_job_active_record'
|
21
21
|
s.add_development_dependency 'resque'
|
22
|
-
s.add_development_dependency 'sidekiq'
|
22
|
+
s.add_development_dependency 'sidekiq', '< 3.0'
|
23
23
|
s.add_development_dependency 'appraisal'
|
24
24
|
s.add_development_dependency 'rake'
|
25
25
|
s.add_development_dependency 'bundler'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
|
-
remote:
|
2
|
+
remote: ../
|
3
3
|
specs:
|
4
|
-
delayed_paperclip (2.
|
4
|
+
delayed_paperclip (2.8.0)
|
5
5
|
paperclip (>= 3.3)
|
6
6
|
|
7
7
|
GEM
|
@@ -34,27 +34,28 @@ GEM
|
|
34
34
|
activesupport (3.2.17)
|
35
35
|
i18n (~> 0.6, >= 0.6.4)
|
36
36
|
multi_json (~> 1.0)
|
37
|
-
appraisal (0.
|
37
|
+
appraisal (1.0.2)
|
38
38
|
bundler
|
39
39
|
rake
|
40
|
+
thor (>= 0.14.0)
|
40
41
|
arel (3.0.3)
|
41
42
|
builder (3.0.4)
|
42
43
|
celluloid (0.15.2)
|
43
44
|
timers (~> 1.1.0)
|
44
45
|
climate_control (0.0.3)
|
45
46
|
activesupport (>= 3.0)
|
46
|
-
cocaine (0.5.
|
47
|
+
cocaine (0.5.5)
|
47
48
|
climate_control (>= 0.0.3, < 1.0)
|
48
|
-
connection_pool (2.
|
49
|
-
delayed_job (4.0.
|
50
|
-
activesupport (>= 3.0, <
|
51
|
-
delayed_job_active_record (4.0.
|
52
|
-
activerecord (>= 3.0, <
|
49
|
+
connection_pool (2.1.0)
|
50
|
+
delayed_job (4.0.6)
|
51
|
+
activesupport (>= 3.0, < 5.0)
|
52
|
+
delayed_job_active_record (4.0.3)
|
53
|
+
activerecord (>= 3.0, < 5.0)
|
53
54
|
delayed_job (>= 3.0, < 4.1)
|
54
55
|
diff-lcs (1.2.5)
|
55
56
|
erubis (2.7.0)
|
56
57
|
hike (1.2.3)
|
57
|
-
i18n (0.
|
58
|
+
i18n (0.7.0)
|
58
59
|
journey (1.0.4)
|
59
60
|
json (1.8.1)
|
60
61
|
mail (2.5.4)
|
@@ -62,11 +63,11 @@ GEM
|
|
62
63
|
treetop (~> 1.4.8)
|
63
64
|
metaclass (0.0.4)
|
64
65
|
mime-types (1.25.1)
|
65
|
-
mocha (1.
|
66
|
+
mocha (1.1.0)
|
66
67
|
metaclass (~> 0.0.1)
|
67
68
|
mono_logger (1.1.0)
|
68
|
-
multi_json (1.
|
69
|
-
paperclip (4.
|
69
|
+
multi_json (1.10.1)
|
70
|
+
paperclip (4.2.1)
|
70
71
|
activemodel (>= 3.0.0)
|
71
72
|
activesupport (>= 3.0.0)
|
72
73
|
cocaine (~> 0.5.3)
|
@@ -75,7 +76,7 @@ GEM
|
|
75
76
|
rack (1.4.5)
|
76
77
|
rack-cache (1.2)
|
77
78
|
rack (>= 0.4)
|
78
|
-
rack-protection (1.5.
|
79
|
+
rack-protection (1.5.3)
|
79
80
|
rack
|
80
81
|
rack-ssl (1.3.3)
|
81
82
|
rack
|
@@ -96,33 +97,33 @@ GEM
|
|
96
97
|
rake (>= 0.8.7)
|
97
98
|
rdoc (~> 3.4)
|
98
99
|
thor (>= 0.14.6, < 2.0)
|
99
|
-
rake (10.
|
100
|
+
rake (10.4.2)
|
100
101
|
rdoc (3.12.2)
|
101
102
|
json (~> 1.4)
|
102
|
-
redis (3.0
|
103
|
-
redis-namespace (1.
|
104
|
-
redis (~> 3.0.4)
|
103
|
+
redis (3.2.0)
|
104
|
+
redis-namespace (1.5.1)
|
105
|
+
redis (~> 3.0, >= 3.0.4)
|
105
106
|
resque (1.25.2)
|
106
107
|
mono_logger (~> 1.0)
|
107
108
|
multi_json (~> 1.0)
|
108
109
|
redis-namespace (~> 1.3)
|
109
110
|
sinatra (>= 0.9.2)
|
110
111
|
vegas (~> 0.1.2)
|
111
|
-
rspec (2.
|
112
|
-
rspec-core (~> 2.
|
113
|
-
rspec-expectations (~> 2.
|
114
|
-
rspec-mocks (~> 2.
|
115
|
-
rspec-core (2.
|
116
|
-
rspec-expectations (2.
|
112
|
+
rspec (2.99.0)
|
113
|
+
rspec-core (~> 2.99.0)
|
114
|
+
rspec-expectations (~> 2.99.0)
|
115
|
+
rspec-mocks (~> 2.99.0)
|
116
|
+
rspec-core (2.99.2)
|
117
|
+
rspec-expectations (2.99.2)
|
117
118
|
diff-lcs (>= 1.1.3, < 2.0)
|
118
|
-
rspec-mocks (2.
|
119
|
-
sidekiq (2.17.
|
120
|
-
celluloid (
|
121
|
-
connection_pool (
|
119
|
+
rspec-mocks (2.99.2)
|
120
|
+
sidekiq (2.17.8)
|
121
|
+
celluloid (= 0.15.2)
|
122
|
+
connection_pool (~> 2.0)
|
122
123
|
json
|
123
|
-
redis (
|
124
|
-
redis-namespace (
|
125
|
-
sinatra (1.4.
|
124
|
+
redis (~> 3.1)
|
125
|
+
redis-namespace (~> 1.3)
|
126
|
+
sinatra (1.4.5)
|
126
127
|
rack (~> 1.4)
|
127
128
|
rack-protection (~> 1.4)
|
128
129
|
tilt (~> 1.3, >= 1.3.4)
|
@@ -131,8 +132,8 @@ GEM
|
|
131
132
|
multi_json (~> 1.0)
|
132
133
|
rack (~> 1.0)
|
133
134
|
tilt (~> 1.1, != 1.3.0)
|
134
|
-
sqlite3 (1.3.
|
135
|
-
thor (0.
|
135
|
+
sqlite3 (1.3.10)
|
136
|
+
thor (0.19.1)
|
136
137
|
tilt (1.4.1)
|
137
138
|
timers (1.1.0)
|
138
139
|
treetop (1.4.15)
|
@@ -152,10 +153,10 @@ DEPENDENCIES
|
|
152
153
|
delayed_job_active_record
|
153
154
|
delayed_paperclip!
|
154
155
|
mocha
|
155
|
-
rails (~> 3.2.
|
156
|
+
rails (~> 3.2.15)
|
156
157
|
railties
|
157
158
|
rake
|
158
159
|
resque
|
159
|
-
rspec
|
160
|
-
sidekiq
|
160
|
+
rspec (< 3.0)
|
161
|
+
sidekiq (< 3.0)
|
161
162
|
sqlite3
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
|
-
remote:
|
2
|
+
remote: ../
|
3
3
|
specs:
|
4
|
-
delayed_paperclip (2.
|
4
|
+
delayed_paperclip (2.8.0)
|
5
5
|
paperclip (>= 3.3)
|
6
6
|
|
7
7
|
GEM
|
@@ -31,28 +31,28 @@ GEM
|
|
31
31
|
multi_json (~> 1.3)
|
32
32
|
thread_safe (~> 0.1)
|
33
33
|
tzinfo (~> 0.3.37)
|
34
|
-
appraisal (0.
|
34
|
+
appraisal (1.0.2)
|
35
35
|
bundler
|
36
36
|
rake
|
37
|
+
thor (>= 0.14.0)
|
37
38
|
arel (4.0.2)
|
38
|
-
atomic (1.1.14)
|
39
39
|
builder (3.1.4)
|
40
40
|
celluloid (0.15.2)
|
41
41
|
timers (~> 1.1.0)
|
42
42
|
climate_control (0.0.3)
|
43
43
|
activesupport (>= 3.0)
|
44
|
-
cocaine (0.5.
|
44
|
+
cocaine (0.5.5)
|
45
45
|
climate_control (>= 0.0.3, < 1.0)
|
46
|
-
connection_pool (2.
|
47
|
-
delayed_job (4.0.
|
48
|
-
activesupport (>= 3.0, <
|
49
|
-
delayed_job_active_record (4.0.
|
50
|
-
activerecord (>= 3.0, <
|
46
|
+
connection_pool (2.1.0)
|
47
|
+
delayed_job (4.0.6)
|
48
|
+
activesupport (>= 3.0, < 5.0)
|
49
|
+
delayed_job_active_record (4.0.3)
|
50
|
+
activerecord (>= 3.0, < 5.0)
|
51
51
|
delayed_job (>= 3.0, < 4.1)
|
52
52
|
diff-lcs (1.2.5)
|
53
53
|
erubis (2.7.0)
|
54
54
|
hike (1.2.3)
|
55
|
-
i18n (0.
|
55
|
+
i18n (0.7.0)
|
56
56
|
json (1.8.1)
|
57
57
|
mail (2.5.4)
|
58
58
|
mime-types (~> 1.16)
|
@@ -60,18 +60,18 @@ GEM
|
|
60
60
|
metaclass (0.0.4)
|
61
61
|
mime-types (1.25.1)
|
62
62
|
minitest (4.7.5)
|
63
|
-
mocha (1.
|
63
|
+
mocha (1.1.0)
|
64
64
|
metaclass (~> 0.0.1)
|
65
65
|
mono_logger (1.1.0)
|
66
|
-
multi_json (1.
|
67
|
-
paperclip (4.
|
66
|
+
multi_json (1.10.1)
|
67
|
+
paperclip (4.2.1)
|
68
68
|
activemodel (>= 3.0.0)
|
69
69
|
activesupport (>= 3.0.0)
|
70
70
|
cocaine (~> 0.5.3)
|
71
71
|
mime-types
|
72
72
|
polyglot (0.3.4)
|
73
73
|
rack (1.5.2)
|
74
|
-
rack-protection (1.5.
|
74
|
+
rack-protection (1.5.3)
|
75
75
|
rack
|
76
76
|
rack-test (0.6.2)
|
77
77
|
rack (>= 1.0)
|
@@ -88,35 +88,35 @@ GEM
|
|
88
88
|
activesupport (= 4.0.3)
|
89
89
|
rake (>= 0.8.7)
|
90
90
|
thor (>= 0.18.1, < 2.0)
|
91
|
-
rake (10.
|
92
|
-
redis (3.0
|
93
|
-
redis-namespace (1.
|
94
|
-
redis (~> 3.0.4)
|
91
|
+
rake (10.4.2)
|
92
|
+
redis (3.2.0)
|
93
|
+
redis-namespace (1.5.1)
|
94
|
+
redis (~> 3.0, >= 3.0.4)
|
95
95
|
resque (1.25.2)
|
96
96
|
mono_logger (~> 1.0)
|
97
97
|
multi_json (~> 1.0)
|
98
98
|
redis-namespace (~> 1.3)
|
99
99
|
sinatra (>= 0.9.2)
|
100
100
|
vegas (~> 0.1.2)
|
101
|
-
rspec (2.
|
102
|
-
rspec-core (~> 2.
|
103
|
-
rspec-expectations (~> 2.
|
104
|
-
rspec-mocks (~> 2.
|
105
|
-
rspec-core (2.
|
106
|
-
rspec-expectations (2.
|
101
|
+
rspec (2.99.0)
|
102
|
+
rspec-core (~> 2.99.0)
|
103
|
+
rspec-expectations (~> 2.99.0)
|
104
|
+
rspec-mocks (~> 2.99.0)
|
105
|
+
rspec-core (2.99.2)
|
106
|
+
rspec-expectations (2.99.2)
|
107
107
|
diff-lcs (>= 1.1.3, < 2.0)
|
108
|
-
rspec-mocks (2.
|
109
|
-
sidekiq (2.17.
|
110
|
-
celluloid (
|
111
|
-
connection_pool (
|
108
|
+
rspec-mocks (2.99.2)
|
109
|
+
sidekiq (2.17.8)
|
110
|
+
celluloid (= 0.15.2)
|
111
|
+
connection_pool (~> 2.0)
|
112
112
|
json
|
113
|
-
redis (
|
114
|
-
redis-namespace (
|
115
|
-
sinatra (1.4.
|
113
|
+
redis (~> 3.1)
|
114
|
+
redis-namespace (~> 1.3)
|
115
|
+
sinatra (1.4.5)
|
116
116
|
rack (~> 1.4)
|
117
117
|
rack-protection (~> 1.4)
|
118
118
|
tilt (~> 1.3, >= 1.3.4)
|
119
|
-
sprockets (2.
|
119
|
+
sprockets (2.12.3)
|
120
120
|
hike (~> 1.2)
|
121
121
|
multi_json (~> 1.0)
|
122
122
|
rack (~> 1.0)
|
@@ -125,10 +125,9 @@ GEM
|
|
125
125
|
actionpack (>= 3.0)
|
126
126
|
activesupport (>= 3.0)
|
127
127
|
sprockets (~> 2.8)
|
128
|
-
sqlite3 (1.3.
|
129
|
-
thor (0.
|
130
|
-
thread_safe (0.
|
131
|
-
atomic
|
128
|
+
sqlite3 (1.3.10)
|
129
|
+
thor (0.19.1)
|
130
|
+
thread_safe (0.3.4)
|
132
131
|
tilt (1.4.1)
|
133
132
|
timers (1.1.0)
|
134
133
|
treetop (1.4.15)
|
@@ -148,10 +147,10 @@ DEPENDENCIES
|
|
148
147
|
delayed_job_active_record
|
149
148
|
delayed_paperclip!
|
150
149
|
mocha
|
151
|
-
rails (~> 4.0.
|
150
|
+
rails (~> 4.0.0)
|
152
151
|
railties
|
153
152
|
rake
|
154
153
|
resque
|
155
|
-
rspec
|
156
|
-
sidekiq
|
154
|
+
rspec (< 3.0)
|
155
|
+
sidekiq (< 3.0)
|
157
156
|
sqlite3
|