viddl 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/viddl.rb +1 -1
- data/lib/viddl/video/instance.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2474d0bc504bb605725febe654e803ab51baa57
|
4
|
+
data.tar.gz: 4bbd1e2bbbe269122691b9b383417af3b13c77b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97afe601385b8684e41a328536145936d932d6313278c05b27d45ecbd71270955221a3abba8ffaf98c6a7d61c8043724215830ae2deed07584c1e610e708f7b3
|
7
|
+
data.tar.gz: 523e05c2da825af75243e9489ff7358ee8d1aa965060a0da179f3fadaa1988bf9bce1384a9664515be30866930270331de692540ce3443086e9d126a9a0eff96
|
data/lib/viddl.rb
CHANGED
data/lib/viddl/video/instance.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require "
|
1
|
+
require "digest"
|
2
2
|
|
3
3
|
module Viddl
|
4
4
|
|
@@ -57,7 +57,7 @@ module Viddl
|
|
57
57
|
# The video instance id
|
58
58
|
# @return [String]
|
59
59
|
def populate_id
|
60
|
-
@id =
|
60
|
+
@id = Digest::SHA256.hexdigest(@source_url).slice(0, ID_LENGTH)
|
61
61
|
end
|
62
62
|
|
63
63
|
end
|