jw_player_rails 0.1.2 → 0.1.21

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5492fcfa06813d7ed6670972a341ef740622cbd0
4
- data.tar.gz: 2f93093a7461225f8482f095deaca71d0f0c4d1d
3
+ metadata.gz: ec02aaaa049fdeae933f2123a31251a329e8bd98
4
+ data.tar.gz: a43ccd449ced7bcc07d0793c85259c427e782318
5
5
  SHA512:
6
- metadata.gz: dae2da323829f388b530fd973427ff7c598723466bacefb4c2315e5bc5111343718577b1b969f1b1fbe2372778d1fdf73db62aa392800822d1fa5948732c9eb1
7
- data.tar.gz: 0a8a4c7157ed6e77404febbd6f32fcf17f151aaef2d288dfa36bc2b227fbc4db18168819686483ccd73801b92b0eeb4da7faa8996e6e1f2f39af181ce9c77086
6
+ metadata.gz: ceef6519b6e1b557a89fe2ab678bd51b116d7e235a56e7824c1f1530193bc3c6fe9b23ede1a16c6e23a6c9dffc19287a33a6f5a7ae51646e9557e77bc8920dc9
7
+ data.tar.gz: 51c27c2419b3e8a1372698c42a5d0fce6f99ba92b862483a041a721b26a02dc13953273203f0e330ecbf7042216b2063d8395d91ccbc8aecb7da7d1b9d1a2eef
data/README.md CHANGED
@@ -1,8 +1,5 @@
1
1
  # JwPlayerRails
2
-
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/jw_player_rails`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
2
+ Adds JwPlayer 7 to rails asset pipeline and provides helper methods to include library and initialize the player.
6
3
 
7
4
  ## Installation
8
5
 
@@ -22,17 +19,31 @@ Or install it yourself as:
22
19
 
23
20
  ## Usage
24
21
 
25
- TODO: Write usage instructions here
22
+ To include assets on page use
23
+ ```ruby
24
+ <%= jwplayer_assets %>
25
+ ```
26
+ To initialize the player use
27
+ ```ruby
28
+ <%= jwplayer({
29
+ file: "http://example.com/myVideo.mp4",
30
+ height: 360,
31
+ width: 640,
32
+ advertising: {
33
+ client: "vast",
34
+ tag: "http://adserver.com/vastTag.xml"
35
+ }
36
+ }) %>
37
+ ```
26
38
 
27
39
  ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
40
+ Run `rake spec` to run the tests.
30
41
 
31
42
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
43
 
33
44
  ## Contributing
34
45
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/jw_player_rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
46
+ Bug reports and pull requests are welcome on GitHub at https://github.com/atinder90/jw_player_rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
47
 
37
48
 
38
49
  ## License
@@ -1,4 +1,4 @@
1
1
  module JwPlayerRails
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.21"
3
3
  JWPLAYER_VERSION = "7.3.4"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jw_player_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Atinder Singh