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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b07f12926474b14cea4f3d36255ccfcd0d9b12b
4
- data.tar.gz: 2058b3dc1af7197158eacdddffbf88e979383c0e
3
+ metadata.gz: a2474d0bc504bb605725febe654e803ab51baa57
4
+ data.tar.gz: 4bbd1e2bbbe269122691b9b383417af3b13c77b7
5
5
  SHA512:
6
- metadata.gz: 99e34cc08878f9e6c6193925bb6456481fb28ec07689c608f0b0e6f66e5d9c9fd75da9f5f267b16f23d0cd2ec78a206465751c54456e097b8ad825c7e4412bc2
7
- data.tar.gz: 0d498f7807d838375aecf08408b329ba61704846d364a39008b22c320aa19ec8c338f5006e1ce18717d63b5f3a5b1c6d1101b1cec0f3523c98273b91cbbf74ad
6
+ metadata.gz: 97afe601385b8684e41a328536145936d932d6313278c05b27d45ecbd71270955221a3abba8ffaf98c6a7d61c8043724215830ae2deed07584c1e610e708f7b3
7
+ data.tar.gz: 523e05c2da825af75243e9489ff7358ee8d1aa965060a0da179f3fadaa1988bf9bce1384a9664515be30866930270331de692540ce3443086e9d126a9a0eff96
data/lib/viddl.rb CHANGED
@@ -17,6 +17,6 @@ module Viddl
17
17
 
18
18
  extend self
19
19
 
20
- VERSION = "0.0.5"
20
+ VERSION = "0.0.6"
21
21
 
22
22
  end
@@ -1,4 +1,4 @@
1
- require "base64"
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 = Base64.encode64(@source_url).slice(0, ID_LENGTH)
60
+ @id = Digest::SHA256.hexdigest(@source_url).slice(0, ID_LENGTH)
61
61
  end
62
62
 
63
63
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: viddl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ari Russo