iesde_player 1.0.0 → 1.0.2

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: 38dc359c7bb8ea3e96eda7ba7b9b0e8ee632efeb
4
- data.tar.gz: 7afdd1bf6eddf4a560ad3cbfd820f0b2324db122
3
+ metadata.gz: b58ccfdf9c655f6b32d8fdbfa14c26461cfdc508
4
+ data.tar.gz: 496440f8b18dccfd0153332f617a40c1f9c1a381
5
5
  SHA512:
6
- metadata.gz: 3f81a78fa9e8322cdc821fd9bed1dca27a83f08d00b0c5b2ce01fd1ebd2445bd6fcbcc2f0ea5fcd606e695742b8c5744ddfc91fbeec438ec25812e27bc527a9a
7
- data.tar.gz: d2bd5364836e68f4e2f49c6e84347cfbf78d72eff3fdce1c7cd5d965812aadb7e707f57fbe90d656184d7051cb82ddf8b8dbbf7edf9fd7a92c220d2dea4e49ac
6
+ metadata.gz: ff29d2f77663d5a94b76869b2179ecb357dab46a228511911c6be143e5e2ca434aafb066d5675d439ea70fbcdd73ce1682408c31f09b0146d96fd9b1602130d1
7
+ data.tar.gz: 5fc379aad13a676f73e7a461000111f71d6873ce75cd8852abd7e51838dac2879dacccd0c990c3f1fa4740b2e23aae1ce000abed9f780c092edb82e1ee96bc1a
@@ -8,6 +8,18 @@ module IesdePlayer
8
8
  content_tag(:div, nil, id: id)
9
9
  end
10
10
 
11
+ def iesde_player_demo(url, parameters)
12
+ html_params = {
13
+ src: "http://web.videoaulasonline.com.br/player/player.swf",
14
+ flashvars: "autostart=#{parameters[:autostart] ? 'true' : 'false'}&streamer=#{url}",
15
+ allowfullscreen: "true",
16
+ allowscriptaccess: "always",
17
+ allownetworking: "all",
18
+ autostart: (parameters[:autostart] || false)
19
+ }
20
+ content_tag( :embed, nil, html_params.merge(parameters[:html] || {}))
21
+ end
22
+
11
23
  private
12
24
 
13
25
  def flashvars_cleaner(params)
@@ -3,7 +3,7 @@ module IesdePlayer
3
3
  isolate_namespace IesdePlayer
4
4
 
5
5
  config.to_prepare do
6
- ::ApplicationController.helper(VideoHelper)
6
+ ::ActionController::Base.helper(VideoHelper)
7
7
  end
8
8
  config.assets.paths << File.expand_path("../../assets/flash", __FILE__)
9
9
  config.assets.paths << File.expand_path("../../assets/images", __FILE__)
@@ -1,3 +1,3 @@
1
1
  module IesdePlayer
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iesde_player
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Benevides
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-26 00:00:00.000000000 Z
11
+ date: 2016-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails