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.
@@ -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
@@ -1,4 +1,6 @@
1
- # Audiojs
1
+ # Audiojs [![Gem Version](https://badge.fury.io/rb/audiojs.png)](http://badge.fury.io/rb/audiojs) [![Build Status](https://secure.travis-ci.org/subosito/audiojs.png)](http://travis-ci.org/subosito/audiojs)
2
+
3
+ ![Logo](docs/images/audiojs.png)
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
@@ -1,2 +1,12 @@
1
1
  #!/usr/bin/env rake
2
2
  require "bundler/gem_tasks"
3
+ require "rake/testtask"
4
+
5
+ Rake::TestTask.new(:test) do |t|
6
+ t.libs << "lib"
7
+ t.libs << "test"
8
+ t.pattern = "test/**/*_test.rb"
9
+ t.verbose = false
10
+ end
11
+
12
+ task :default => :test
@@ -1,3 +1,3 @@
1
1
  module Audiojs
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -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,5 @@
1
+ /**
2
+ *
3
+ * = require audiojs
4
+ *
5
+ **/
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
@@ -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,10 @@
1
+ require 'rubygems'
2
+ gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ if File.exist?(gemfile)
5
+ ENV['BUNDLE_GEMFILE'] = gemfile
6
+ require 'bundler'
7
+ Bundler.setup
8
+ end
9
+
10
+ $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Dummy::Application.initialize!
@@ -0,0 +1 @@
1
+ Dummy::Application.config.secret_token = "e7a25db6bb3c9b96ccdc16af17d4128ffa28152252b319f375ef16900efdcefb5890935a5df6d1362c350eee6eb75470daf42d2e340aa723b93702e14358d01a"
@@ -0,0 +1,2 @@
1
+ Dummy::Application.routes.draw do
2
+ end
@@ -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)
@@ -0,0 +1,7 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+
3
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
4
+ require "rails/test_help"
5
+
6
+ Rails.backtrace_cleaner.remove_silencers!
7
+
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.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-02-03 00:00:00.000000000 Z
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: 1.8.23
99
+ rubygems_version: 2.0.0
70
100
  signing_key:
71
- specification_version: 3
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
@@ -1,17 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in audiojs.gemspec
4
- gemspec
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
@@ -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