audiojs 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/{README.md → README.markdown} +3 -4
- data/Vendorfile +2 -2
- data/lib/audiojs/version.rb +1 -1
- data/vendor/assets/javascripts/audiojs.js.erb +2 -2
- metadata +3 -3
@@ -16,12 +16,10 @@ Or install it yourself as:
|
|
16
16
|
|
17
17
|
$ gem install audiojs
|
18
18
|
|
19
|
-
Put on
|
19
|
+
Put on your `application.js`:
|
20
20
|
|
21
21
|
//= require audiojs
|
22
22
|
|
23
|
-
You can read more about audio.js on http://kolber.github.com/audiojs/.
|
24
|
-
|
25
23
|
## Contributing
|
26
24
|
|
27
25
|
1. Fork it
|
@@ -32,4 +30,5 @@ You can read more about audio.js on http://kolber.github.com/audiojs/.
|
|
32
30
|
|
33
31
|
## Credits
|
34
32
|
|
35
|
-
Thanks for [Anthony Kolber](https://github.com/kolber) for creating audio.js.
|
33
|
+
Thanks for [Anthony Kolber](https://github.com/kolber) for creating audio.js. You can read more about audio.js on http://kolber.github.com/audiojs/.
|
34
|
+
|
data/Vendorfile
CHANGED
@@ -3,8 +3,8 @@ from 'git://github.com/kolber/audiojs.git' do
|
|
3
3
|
file 'vendor/assets/javascripts/audiojs.swf', 'audiojs/audiojs.swf'
|
4
4
|
file 'vendor/assets/javascripts/audiojs.js.erb', 'audiojs/audio.js' do |path|
|
5
5
|
rewrite(path) do |content|
|
6
|
-
content.gsub!("imageLocation: path + 'player-graphics.gif'", "imageLocation: <%= asset_path 'audiojs-player-graphics.gif' %>")
|
7
|
-
content.gsub!("swfLocation: path + 'audiojs.swf'", "swfLocation: <%= asset_path 'audiojs.swf' %>")
|
6
|
+
content.gsub!("imageLocation: path + 'player-graphics.gif'", "imageLocation: '<%= asset_path 'audiojs-player-graphics.gif' %>'")
|
7
|
+
content.gsub!("swfLocation: path + 'audiojs.swf'", "swfLocation: '<%= asset_path 'audiojs.swf' %>'")
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|
data/lib/audiojs/version.rb
CHANGED
@@ -34,8 +34,8 @@
|
|
34
34
|
autoplay: false,
|
35
35
|
loop: false,
|
36
36
|
preload: true,
|
37
|
-
imageLocation: <%= asset_path 'audiojs-player-graphics.gif'
|
38
|
-
swfLocation: <%= asset_path 'audiojs.swf'
|
37
|
+
imageLocation: '<%= asset_path 'audiojs-player-graphics.gif' %>',
|
38
|
+
swfLocation: '<%= asset_path 'audiojs.swf' %>',
|
39
39
|
useFlash: (function() {
|
40
40
|
var a = document.createElement('audio');
|
41
41
|
return !(a.canPlayType && a.canPlayType('audio/mpeg;').replace(/no/, ''));
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: audiojs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-02-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: vendorer
|
@@ -37,7 +37,7 @@ files:
|
|
37
37
|
- .gitignore
|
38
38
|
- Gemfile
|
39
39
|
- LICENSE
|
40
|
-
- README.
|
40
|
+
- README.markdown
|
41
41
|
- Rakefile
|
42
42
|
- Vendorfile
|
43
43
|
- audiojs.gemspec
|