dronejob 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/dronejob/version.rb +1 -1
- data/lib/dronejob/workspace_file/media.rb +0 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61365a044a330d66968b5243f878fbf0881e5ed8
|
4
|
+
data.tar.gz: a099a5e088cb2f60443868352c0097a7df1fc38e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e99fe9d3933fc2ef5297cab07d810ff458cbe518362b69c2d6fea3d48dcbf087e1760007dde86d5bbe9cde2ec2b7288c14121949f5f082feec6ae685e7fb3ed
|
7
|
+
data.tar.gz: 37da3e4d146b4e3d04d56bcfe379f642da7abc8ace3a56d6c87526e96d78933ef5949ffedd06d38b46d867333b63f64a3bcea3c4db4870ff88a78b16a8c49b71
|
data/Gemfile.lock
CHANGED
data/lib/dronejob/version.rb
CHANGED
@@ -4,16 +4,6 @@ module Dronejob
|
|
4
4
|
class WorkspaceFile
|
5
5
|
module Media
|
6
6
|
extend ActiveSupport::Concern
|
7
|
-
|
8
|
-
def acbaker(type, output_dir, delete=true)
|
9
|
-
require "acbaker"
|
10
|
-
output_dir.delete! if delete and output_dir.exists?
|
11
|
-
output_dir.create
|
12
|
-
config = WorkspaceDir.new("app/assets").file("acbaker/#{type}.json").read_json
|
13
|
-
acb = Acbaker::AssetPack.new(type, json: config)
|
14
|
-
acb.process(to_s, output_dir.to_s)
|
15
|
-
self
|
16
|
-
end
|
17
7
|
|
18
8
|
def image?
|
19
9
|
["jpg", "jpeg", "gif", "png"].include?(extension)
|