hydra_hls 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd67c545a168e90c7bec43c6e012b0a9f7b229c4
4
- data.tar.gz: f68bb6ff604fe1d9fea8e50bf0d8cce5ced07454
3
+ metadata.gz: 5685ed42b13748b8b4f24ae299ef507c1c2301e4
4
+ data.tar.gz: 2712d618e496a8257d591b9d526d3f869e4fb384
5
5
  SHA512:
6
- metadata.gz: abad8de6afa11394d81a51c4980a19f5ed5bc2c80e15c134fe0ed2c380806f03dd9daef6aebf4f604e7a1a91f7cc49155896b5f96a498c8e26b0d4dd0f6f35c3
7
- data.tar.gz: 1cd9a5aa8b3c0cdda19dea7c0ac2bcc8f8ede87b6b66ff7fc10d8369178f967472bc5cd340f7a306d3452d40ba0133bac923905d3b60ba808e2c001d410a3139
6
+ metadata.gz: 86375913f9e4bfb1359ebee52d177bc46915626ed87041694ad146dce010b69ab2fc4b48f50c857f2f41b5ae8d034a909fb181655cf307c5bcb5acfca66b311d
7
+ data.tar.gz: 8554200a884034ecbf7e28abbd68f6ddae3ee78dc3f0f1c5ea707e7739ca580460293bd3e4804eac24c8422f6e813b94fcbe0ead346fde1c63d04df2b483911c
@@ -5,8 +5,10 @@ module HydraHls
5
5
  def create_derivatives(filename)
6
6
  case mime_type
7
7
  when *self.class.audio_mime_types
8
+ hls_dir = File.join(derivative_dir,"hls")
8
9
  create_audio_derivates filename, hls_dir
9
10
  when *self.class.video_mime_types
11
+ hls_dir = File.join(derivative_dir,"hls")
10
12
  create_video_derivates filename, hls_dir
11
13
  else
12
14
  super
@@ -71,7 +73,6 @@ module HydraHls
71
73
  end
72
74
 
73
75
  def create_audio_derivates filename, hls_dir
74
- hls_dir = File.join(derivative_dir,"hls")
75
76
  outputs = [
76
77
  { label: 'mp3', format: 'mp3', url: derivative_url('mp3') },
77
78
  { label: 'ogg', format: 'ogg', url: derivative_url('ogg') },
@@ -81,7 +82,6 @@ module HydraHls
81
82
  end
82
83
 
83
84
  def create_video_derivates filename, hls_dir
84
- hls_dir = File.join(derivative_dir,"hls")
85
85
  outputs = [{ label: :thumbnail, format: 'jpg', url: derivative_url('thumbnail') },
86
86
  { label: 'webm', format: 'webm', url: derivative_url('webm') },
87
87
  { label: 'mp4', format: 'mp4', url: derivative_url('mp4') },
@@ -1,3 +1,3 @@
1
1
  module HydraHls
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra_hls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ned Henry, UCSC Library Digital Initiatives
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-08 00:00:00.000000000 Z
11
+ date: 2016-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails