vdocipher 0.0.1 → 0.0.2

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/vdocipher.rb +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f16a9bb8a9251fc1489b374855dae662370189d4
4
- data.tar.gz: 78a62ad456c755c40bc4d93cacbb352ba346df61
3
+ metadata.gz: 2d874366ad848c6fd52919ec124bc048b54414c1
4
+ data.tar.gz: 8baff531d256bd125833efbfb69626104647a231
5
5
  SHA512:
6
- metadata.gz: 82d89e50fe9fb3e31718ff0a217fc50ebae289cb1ef7352a114ac3f830f21c1624bd21b374fc45c67c2f53058435548f593290713e93d4f67eb71b23b7ae4bd9
7
- data.tar.gz: 6a69b36c7c6b23bc4416610b6b29c5bbeb714ad3b1fbd68d3132371bfc9bc38108f5056e4482838072aed8ab597fc74423925e98b19cdf6f31d61eba53158f80
6
+ metadata.gz: 9146d51955e2bd15b48c601d3d51dff8c10de0f1a80a38e8091547b1b0fdf645b3082299f669da777154c9759b2a016d5c9ce1502b2b3fa20bbb0c6655669b37
7
+ data.tar.gz: 77c44dfa02a1e1fbf4e9279fb32c8a34387e2190c6cb8a13f02bf1a06a4b6fd75432c6ce42675e6dfdac695e33eac610a7fb8b0946e1e297413a8a3bd94e6460
@@ -4,7 +4,7 @@ class VdoCipher
4
4
  def initialize(conf)
5
5
  @key = conf[:clientSecretKey]
6
6
  end
7
- def play_code(id)
7
+ def play_code(id, attr="")
8
8
  if (@key == nil)
9
9
  return "key not set"
10
10
  end
@@ -22,7 +22,7 @@ class VdoCipher
22
22
  return "video not found"
23
23
  end
24
24
  embedcode = <<EOS
25
- <div id="vdo%s" style="height:400px;width:640px;max-width:100%%;"></div>
25
+ <div id="vdo%s" %s></div>
26
26
  <script>
27
27
  (function(v,i,d,e,o){v[o]=v[o]||{}; v[o].add = v[o].add || function V(a){ (v[o].d=v[o].d||[]).push(a);};
28
28
  if(!v[o].l) { v[o].l=1*new Date(); a=i.createElement(d), m=i.getElementsByTagName(d)[0];
@@ -31,7 +31,7 @@ class VdoCipher
31
31
  vdo.add({o: "%s"});
32
32
  </script>
33
33
  EOS
34
- embedcode = embedcode % [otp["otp"] , otp["otp"]]
34
+ embedcode = embedcode % [otp["otp"], attr, otp["otp"]]
35
35
  end
36
36
  end
37
37
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vdocipher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vibhav Sinha