audiojs 0.1.1 → 0.1.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.
- checksums.yaml +7 -0
- data/README.markdown +3 -1
- data/Rakefile +10 -0
- data/lib/audiojs/version.rb +1 -1
- data/test/audiojs_test.rb +35 -0
- data/test/dummy/app/assets/javascripts/application.js +5 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +18 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +1 -0
- data/test/dummy/config/routes.rb +2 -0
- data/test/dummy/log/test.log +28 -0
- data/test/test_helper.rb +7 -0
- metadata +63 -23
- data/.gitignore +0 -17
- data/Gemfile +0 -4
- data/LICENSE +0 -22
- data/Vendorfile +0 -10
- data/audiojs.gemspec +0 -19
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9f1c3074d9be72ef7be1b6eb3a0fa0ff109820ce
|
4
|
+
data.tar.gz: fe300166feecc3cfc30bb1814b8d7dd66129f5c1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 91f5ea8c00532fc5a933fc6b6ac90b679d012ea947d360ee2a076f15a64b64e3355acc1323d31423111fd6660edd31f04ef77b155cc0142d7d4e50f4da91c717
|
7
|
+
data.tar.gz: 7aca2b162e07ea190551a4cf4b39ce6b7f92788dc835dea8a47a687c139b9cfe733aad4e5c10f129ad157b123aa3279e675654d53d818e88af7f1559f6c9ed89
|
data/README.markdown
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
# Audiojs
|
1
|
+
# Audiojs [](http://badge.fury.io/rb/audiojs) [](http://travis-ci.org/subosito/audiojs)
|
2
|
+
|
3
|
+

|
2
4
|
|
3
5
|
[audio.js](http://kolber.github.com/audiojs/) is a drop-in javascript library that allows HTML5's <audio> tag to be used anywhere.
|
4
6
|
|
data/Rakefile
CHANGED
data/lib/audiojs/version.rb
CHANGED
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class AudiojsTest < ActionDispatch::IntegrationTest
|
4
|
+
teardown { clean_cache }
|
5
|
+
|
6
|
+
test "engine is loaded" do
|
7
|
+
assert_equal ::Rails::Engine, Audiojs::Rails::Engine.superclass
|
8
|
+
end
|
9
|
+
|
10
|
+
test "javascript is served" do
|
11
|
+
get "/assets/audiojs.js"
|
12
|
+
assert_response :success
|
13
|
+
end
|
14
|
+
|
15
|
+
test "image is served" do
|
16
|
+
get "/assets/audiojs-player-graphics.gif"
|
17
|
+
assert_response :success
|
18
|
+
end
|
19
|
+
|
20
|
+
test "flash is served" do
|
21
|
+
get "/assets/audiojs.swf"
|
22
|
+
assert_response :success
|
23
|
+
end
|
24
|
+
|
25
|
+
test "javascript contain references to graphics (image and flash)" do
|
26
|
+
get "/assets/audiojs.js"
|
27
|
+
assert_match "/assets/audiojs.swf", response.body
|
28
|
+
assert_match "/assets/audiojs-player-graphics.gif", response.body
|
29
|
+
end
|
30
|
+
|
31
|
+
private
|
32
|
+
def clean_cache
|
33
|
+
FileUtils.rm_rf File.expand_path("../dummy/tmp", __FILE__)
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
# require "rails/all"
|
4
|
+
require "sprockets/railtie"
|
5
|
+
|
6
|
+
Bundler.require(:default, :development)
|
7
|
+
|
8
|
+
module Dummy
|
9
|
+
class Application < Rails::Application
|
10
|
+
config.encoding = "utf-8"
|
11
|
+
config.assets.enabled = true
|
12
|
+
config.assets.version = '1.0'
|
13
|
+
|
14
|
+
# replacement for environments/*.rb
|
15
|
+
config.active_support.deprecation = :stderr
|
16
|
+
config.eager_load = false
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
Dummy::Application.config.secret_token = "e7a25db6bb3c9b96ccdc16af17d4128ffa28152252b319f375ef16900efdcefb5890935a5df6d1362c350eee6eb75470daf42d2e340aa723b93702e14358d01a"
|
@@ -0,0 +1,28 @@
|
|
1
|
+
Started GET "/assets/audiojs.js" for 127.0.0.1 at 2013-04-26 18:34:12 +0700
|
2
|
+
Compiled audiojs.js (43ms) (pid 10874)
|
3
|
+
Served asset /audiojs.js - 200 OK (50ms)
|
4
|
+
Started GET "/assets/audiojs.swf" for 127.0.0.1 at 2013-04-26 18:35:27 +0700
|
5
|
+
Served asset /audiojs.swf - 200 OK (3ms)
|
6
|
+
Started GET "/assets/audiojs-player-graphics.gif" for 127.0.0.1 at 2013-04-26 18:35:27 +0700
|
7
|
+
Served asset /audiojs-player-graphics.gif - 200 OK (2ms)
|
8
|
+
Started GET "/assets/audiojs.js" for 127.0.0.1 at 2013-04-26 18:35:27 +0700
|
9
|
+
Compiled audiojs.js (41ms) (pid 10963)
|
10
|
+
Served asset /audiojs.js - 200 OK (46ms)
|
11
|
+
Started GET "/assets/audiojs.swf" for 127.0.0.1 at 2013-04-26 18:37:59 +0700
|
12
|
+
Served asset /audiojs.swf - 200 OK (3ms)
|
13
|
+
Started GET "/assets/audiojs-player-graphics.gif" for 127.0.0.1 at 2013-04-26 18:37:59 +0700
|
14
|
+
Served asset /audiojs-player-graphics.gif - 200 OK (2ms)
|
15
|
+
Started GET "/assets/audiojs.js" for 127.0.0.1 at 2013-04-26 18:37:59 +0700
|
16
|
+
Compiled audiojs.js (41ms) (pid 11056)
|
17
|
+
Served asset /audiojs.js - 200 OK (46ms)
|
18
|
+
Started GET "/assets/audiojs.js" for 127.0.0.1 at 2013-04-26 18:37:59 +0700
|
19
|
+
Served asset /audiojs.js - 200 OK (0ms)
|
20
|
+
Started GET "/assets/audiojs.swf" for 127.0.0.1 at 2013-04-26 18:38:38 +0700
|
21
|
+
Served asset /audiojs.swf - 200 OK (3ms)
|
22
|
+
Started GET "/assets/audiojs-player-graphics.gif" for 127.0.0.1 at 2013-04-26 18:38:38 +0700
|
23
|
+
Served asset /audiojs-player-graphics.gif - 200 OK (2ms)
|
24
|
+
Started GET "/assets/audiojs.js" for 127.0.0.1 at 2013-04-26 18:38:38 +0700
|
25
|
+
Compiled audiojs.js (41ms) (pid 11140)
|
26
|
+
Served asset /audiojs.js - 200 OK (47ms)
|
27
|
+
Started GET "/assets/audiojs.js" for 127.0.0.1 at 2013-04-26 18:38:38 +0700
|
28
|
+
Served asset /audiojs.js - 200 OK (0ms)
|
data/test/test_helper.rb
ADDED
metadata
CHANGED
@@ -1,30 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: audiojs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Alif Rachmawadi
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-04-26 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: railties
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.1'
|
14
27
|
- !ruby/object:Gem::Dependency
|
15
28
|
name: vendorer
|
16
29
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
30
|
requirements:
|
19
|
-
- -
|
31
|
+
- - '>='
|
20
32
|
- !ruby/object:Gem::Version
|
21
33
|
version: '0'
|
22
34
|
type: :development
|
23
35
|
prerelease: false
|
24
36
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
37
|
requirements:
|
27
|
-
- -
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: tzinfo
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
28
53
|
- !ruby/object:Gem::Version
|
29
54
|
version: '0'
|
30
55
|
description: Audio.js on Rails Asset Pipeline
|
@@ -34,41 +59,56 @@ executables: []
|
|
34
59
|
extensions: []
|
35
60
|
extra_rdoc_files: []
|
36
61
|
files:
|
37
|
-
- .gitignore
|
38
|
-
- Gemfile
|
39
|
-
- LICENSE
|
40
|
-
- README.markdown
|
41
|
-
- Rakefile
|
42
|
-
- Vendorfile
|
43
|
-
- audiojs.gemspec
|
44
62
|
- lib/audiojs.rb
|
45
63
|
- lib/audiojs/version.rb
|
46
|
-
- vendor/assets/javascripts/audiojs-player-graphics.gif
|
47
64
|
- vendor/assets/javascripts/audiojs.js.erb
|
48
65
|
- vendor/assets/javascripts/audiojs.swf
|
66
|
+
- vendor/assets/javascripts/audiojs-player-graphics.gif
|
67
|
+
- Rakefile
|
68
|
+
- README.markdown
|
69
|
+
- test/test_helper.rb
|
70
|
+
- test/dummy/config/boot.rb
|
71
|
+
- test/dummy/config/application.rb
|
72
|
+
- test/dummy/config/routes.rb
|
73
|
+
- test/dummy/config/initializers/secret_token.rb
|
74
|
+
- test/dummy/config/environment.rb
|
75
|
+
- test/dummy/log/test.log
|
76
|
+
- test/dummy/app/assets/javascripts/application.js
|
77
|
+
- test/dummy/config.ru
|
78
|
+
- test/audiojs_test.rb
|
49
79
|
homepage: https://github.com/subosito/audiojs
|
50
|
-
licenses:
|
80
|
+
licenses:
|
81
|
+
- MIT
|
82
|
+
metadata: {}
|
51
83
|
post_install_message:
|
52
84
|
rdoc_options: []
|
53
85
|
require_paths:
|
54
86
|
- lib
|
55
87
|
required_ruby_version: !ruby/object:Gem::Requirement
|
56
|
-
none: false
|
57
88
|
requirements:
|
58
|
-
- -
|
89
|
+
- - '>='
|
59
90
|
- !ruby/object:Gem::Version
|
60
91
|
version: '0'
|
61
92
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
-
none: false
|
63
93
|
requirements:
|
64
|
-
- -
|
94
|
+
- - '>='
|
65
95
|
- !ruby/object:Gem::Version
|
66
96
|
version: '0'
|
67
97
|
requirements: []
|
68
98
|
rubyforge_project:
|
69
|
-
rubygems_version:
|
99
|
+
rubygems_version: 2.0.0
|
70
100
|
signing_key:
|
71
|
-
specification_version:
|
101
|
+
specification_version: 4
|
72
102
|
summary: audio.js is a drop-in javascript library that allows HTML5's <audio> tag
|
73
103
|
to be used anywhere.
|
74
|
-
test_files:
|
104
|
+
test_files:
|
105
|
+
- test/test_helper.rb
|
106
|
+
- test/dummy/config/boot.rb
|
107
|
+
- test/dummy/config/application.rb
|
108
|
+
- test/dummy/config/routes.rb
|
109
|
+
- test/dummy/config/initializers/secret_token.rb
|
110
|
+
- test/dummy/config/environment.rb
|
111
|
+
- test/dummy/log/test.log
|
112
|
+
- test/dummy/app/assets/javascripts/application.js
|
113
|
+
- test/dummy/config.ru
|
114
|
+
- test/audiojs_test.rb
|
data/.gitignore
DELETED
data/Gemfile
DELETED
data/LICENSE
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
Copyright (c) 2012 Alif Rachmawadi
|
2
|
-
|
3
|
-
MIT License
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
a copy of this software and associated documentation files (the
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
the following conditions:
|
12
|
-
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
included in all copies or substantial portions of the Software.
|
15
|
-
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Vendorfile
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
from 'git://github.com/kolber/audiojs.git' do
|
2
|
-
file 'vendor/assets/javascripts/audiojs-player-graphics.gif', 'audiojs/player-graphics.gif'
|
3
|
-
file 'vendor/assets/javascripts/audiojs.swf', 'audiojs/audiojs.swf'
|
4
|
-
file 'vendor/assets/javascripts/audiojs.js.erb', 'audiojs/audio.js' do |path|
|
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' %>'")
|
8
|
-
end
|
9
|
-
end
|
10
|
-
end
|
data/audiojs.gemspec
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
require File.expand_path('../lib/audiojs/version', __FILE__)
|
3
|
-
|
4
|
-
Gem::Specification.new do |gem|
|
5
|
-
gem.authors = ["Alif Rachmawadi"]
|
6
|
-
gem.email = ["subosito@gmail.com"]
|
7
|
-
gem.description = %q{Audio.js on Rails Asset Pipeline}
|
8
|
-
gem.summary = %q{audio.js is a drop-in javascript library that allows HTML5's <audio> tag to be used anywhere.}
|
9
|
-
gem.homepage = "https://github.com/subosito/audiojs"
|
10
|
-
|
11
|
-
gem.files = `git ls-files`.split($\)
|
12
|
-
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
13
|
-
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
|
-
gem.name = "audiojs"
|
15
|
-
gem.require_paths = ["lib"]
|
16
|
-
gem.version = Audiojs::VERSION
|
17
|
-
|
18
|
-
gem.add_development_dependency('vendorer')
|
19
|
-
end
|