woody-decorators 4.0.1 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/woody/decorators.rb +1 -1
- data/lib/woody/decorators/video.rb +15 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21ef9c632f9109e8cc329f2b894bb2bbab6370dc
|
4
|
+
data.tar.gz: 10cbb66841065efba0c593416dc32ad3c2888a42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3d9344eafeef97c7508197ebb7adfb4ea541c455800d4a67d51098cde35859bb0a387997d48a9e7e987b9d4a10e7664f90f83ddcd1d24e3bcdb1c284f3f73f1
|
7
|
+
data.tar.gz: 404f8128c79062d1ed796c6fe9977266ef312ef0ae718cd9ead76738f314d957691aa000c31a941e0939eb27c610658efe536bdd2658fd9fe7e194c74b8db6fa
|
data/lib/woody/decorators.rb
CHANGED
@@ -42,7 +42,11 @@ module Woody
|
|
42
42
|
|
43
43
|
def gif
|
44
44
|
return "https://i.imgur.com/jZCPUYx.gif" if dev?
|
45
|
-
video_transcoding_state("gif").path(
|
45
|
+
video_transcoding_state("gif").path(
|
46
|
+
filename_hash,
|
47
|
+
nil,
|
48
|
+
processing_image
|
49
|
+
)
|
46
50
|
end
|
47
51
|
|
48
52
|
def thumbnail
|
@@ -50,7 +54,7 @@ module Woody
|
|
50
54
|
video_transcoding_state("gif").path(
|
51
55
|
filename_hash,
|
52
56
|
"thumbnail",
|
53
|
-
|
57
|
+
processing_image
|
54
58
|
)
|
55
59
|
end
|
56
60
|
|
@@ -66,6 +70,15 @@ module Woody
|
|
66
70
|
|
67
71
|
private
|
68
72
|
|
73
|
+
def processing_image
|
74
|
+
format(
|
75
|
+
"%s/%s/creator/video_processing/%s.jpg",
|
76
|
+
app_config["s3_domain"],
|
77
|
+
app_config["public_s3_bucket"],
|
78
|
+
rand(1...5)
|
79
|
+
)
|
80
|
+
end
|
81
|
+
|
69
82
|
def app_config
|
70
83
|
@app_config ||= @config.app
|
71
84
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: woody-decorators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|