jw_player_rails 0.1.2 → 0.1.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -8
- data/lib/jw_player_rails/version.rb +1 -1
- 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: ec02aaaa049fdeae933f2123a31251a329e8bd98
|
4
|
+
data.tar.gz: a43ccd449ced7bcc07d0793c85259c427e782318
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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/
|
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
|