woody-decorators 4.0.1 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70cc68c1d24d9cef881c11d202d3a7584ecdf8ed
4
- data.tar.gz: 549a015d3b8059ffaffa26b21ee3e53432e9a2d4
3
+ metadata.gz: 21ef9c632f9109e8cc329f2b894bb2bbab6370dc
4
+ data.tar.gz: 10cbb66841065efba0c593416dc32ad3c2888a42
5
5
  SHA512:
6
- metadata.gz: ab3a0575e3bf25cc901ee61f557c038b7c9fd022de47aef9b07bb903abdfbbf3a0e485d3aeedfecfa1398171c1d0846e359ad3ecf6b666ebcdfd8dc884517907
7
- data.tar.gz: 1157fc9266fd4635c542d144e9849741ade7ae86a46e7e5ecd34211bc053858dcaa260d8d55d40d03e232d05d427ab42541b51b017f0d2412784138510277085
6
+ metadata.gz: b3d9344eafeef97c7508197ebb7adfb4ea541c455800d4a67d51098cde35859bb0a387997d48a9e7e987b9d4a10e7664f90f83ddcd1d24e3bcdb1c284f3f73f1
7
+ data.tar.gz: 404f8128c79062d1ed796c6fe9977266ef312ef0ae718cd9ead76738f314d957691aa000c31a941e0939eb27c610658efe536bdd2658fd9fe7e194c74b8db6fa
@@ -1,5 +1,5 @@
1
1
  module Woody
2
2
  module Decorators
3
- VERSION = "4.0.1".freeze
3
+ VERSION = "4.1.0".freeze
4
4
  end
5
5
  end
@@ -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(filename_hash)
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
- app_config["video_default_thumbnail"]
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.1
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-28 00:00:00.000000000 Z
11
+ date: 2016-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler