ish_models 0.0.33.85 → 0.0.33.86

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/video.rb +5 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5748b1aef2dd50fb5f03013bf309bad0e1540cd529b9cb384cc6809a66277a83
4
- data.tar.gz: 7964ef5ff6de283d943404d51e05954c8d255254b2c8524ca4263da2632e00f5
3
+ metadata.gz: d143ee5ee5c3d02bf05e14be90346a758450a1326c0142409138276c2c585678
4
+ data.tar.gz: ce907a5c4e4a7df0fd3c6dcc9d8d32d808b7b2b705141be39ae4937ae2e710f7
5
5
  SHA512:
6
- metadata.gz: ef5888862bb6e5ec42dd79b7caefa12b67a20471a2ee2c3a8fa2d567aa8b7fa9fd0566866607bc6d5478443c5df6b077e35aa0714d627c64aba722b51673008e
7
- data.tar.gz: 4d6db1444e1800e2a2667a6e9898b52a9856d1ff54a0a237068798ab4438de7936290b62441fec3d0ad90dc9b8e79ba2aa0a9a07e5f892da233d8980e6fee775
6
+ metadata.gz: fbb61949d5839a0e94958b17d8eef42703631e65031128f75f27da9519109b48efa731a1a7f1ab80395c4172f19ac529492452dec88964fe6e6714f609bb5f6c
7
+ data.tar.gz: a5b4f35098a040a0270581e808d000eecff87d85cce0d02315e9b27238dd057602eaf95a552ffc15193eef5e8683298e079cfd8c624fdb27a31c46a7fa5f8448
data/lib/video.rb CHANGED
@@ -45,4 +45,9 @@ class Video
45
45
 
46
46
  field :issue
47
47
 
48
+ has_attached_file :video, styles: {},
49
+ :thumb => { geometry: '192x108', format: 'jpeg' },
50
+ }, processors: [ :transcoder ]
51
+ validates_attachment_content_type :video, content_type: /\Avideo\/.*\Z/
52
+
48
53
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33.85
4
+ version: 0.0.33.86
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox