fogged 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/fogged/resource.rb +4 -4
- data/app/models/fogged/resources/aws_encoder.rb +9 -4
- data/lib/fogged/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +6343 -0
- data/test/models/fogged/resources/aws_encoder_test.rb +19 -0
- data/test/test_helper.rb +1 -0
- metadata +6 -6
@@ -100,6 +100,25 @@ module Fogged
|
|
100
100
|
end
|
101
101
|
end
|
102
102
|
|
103
|
+
test "should encode image file inline" do
|
104
|
+
resource = fogged_resources(:resource_png_3)
|
105
|
+
encoder = AWSEncoder.new(resource)
|
106
|
+
|
107
|
+
in_a_fork do
|
108
|
+
require "mini_magick"
|
109
|
+
require "delayed_job_active_record"
|
110
|
+
Rails.application.config.active_job.queue_adapter = :delayed_job
|
111
|
+
Fogged.configure
|
112
|
+
Fogged.thumbnail_sizes = %w(50x50 60x60)
|
113
|
+
|
114
|
+
assert_no_difference("Delayed::Job.count") do
|
115
|
+
encoder.encode!(true)
|
116
|
+
end
|
117
|
+
assert resource.encoding?
|
118
|
+
assert_equal 0, resource.encoding_progress
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
103
122
|
test "should encode video with additional outputs" do
|
104
123
|
resource = fogged_resources(:resource_mov_3)
|
105
124
|
encoder = AWSEncoder.new(resource)
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fogged
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Fernandez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: active_model_serializers
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 0.8.3
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 0.8.3
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: sqlite3
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|