fogged 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -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)
@@ -28,6 +28,7 @@ end
28
28
  Fogged.test_mode!
29
29
 
30
30
  class ActiveSupport::TestCase
31
+ include ActiveJob::TestHelper
31
32
  fixtures :all
32
33
 
33
34
  def response_json
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.10
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-05-09 00:00:00.000000000 Z
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: '0.8'
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: '0.8'
68
+ version: 0.8.3
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sqlite3
71
71
  requirement: !ruby/object:Gem::Requirement