rails-audiojs 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/audiojs/rails.rb +3 -3
- data/lib/audiojs/rails/version.rb +3 -3
- metadata +4 -21
- data/test/dummy/app/assets/javascripts/application.js +0 -5
- data/test/dummy/config.ru +0 -4
- data/test/dummy/config/application.rb +0 -18
- data/test/dummy/config/boot.rb +0 -10
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/initializers/secret_token.rb +0 -1
- data/test/dummy/config/routes.rb +0 -2
- data/test/rails_audiojs_test.rb +0 -35
- data/test/test_helper.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7bb89d559f85c3e8539be27e706ab4759370f08
|
4
|
+
data.tar.gz: 155587868c0fe49ecf40347e28232a4856975fab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8f51d1482f586bfe93ba9afaf7f9dfd8b1eb59fe270318da9ea82b91f4516a61d72bc6011e82fc757c53a4f00c7738306528615a154db78f9b370cf73aef67b
|
7
|
+
data.tar.gz: 081ff2ae3830342e1a6a320710643342a7e242650602e894984593f8232c5a5b7e6661087210da79b683e9956708e620c7f793054b25a0b1c0302525d27e5a2d
|
data/lib/audiojs/rails.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
require "audiojs/
|
1
|
+
require "rails/audiojs/version"
|
2
2
|
|
3
|
-
module
|
4
|
-
module
|
3
|
+
module Rails
|
4
|
+
module Audiojs
|
5
5
|
class Engine < ::Rails::Engine
|
6
6
|
initializer 'audiojs.assets.precompile' do |app|
|
7
7
|
app.config.assets.precompile += %w( audiojs-player-graphics.gif audiojs.swf )
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-audiojs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- syossan27
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -77,15 +77,6 @@ files:
|
|
77
77
|
- Rakefile
|
78
78
|
- lib/audiojs/rails.rb
|
79
79
|
- lib/audiojs/rails/version.rb
|
80
|
-
- test/dummy/app/assets/javascripts/application.js
|
81
|
-
- test/dummy/config.ru
|
82
|
-
- test/dummy/config/application.rb
|
83
|
-
- test/dummy/config/boot.rb
|
84
|
-
- test/dummy/config/environment.rb
|
85
|
-
- test/dummy/config/initializers/secret_token.rb
|
86
|
-
- test/dummy/config/routes.rb
|
87
|
-
- test/rails_audiojs_test.rb
|
88
|
-
- test/test_helper.rb
|
89
80
|
- vendor/assets/javascripts/audiojs-player-graphics.gif
|
90
81
|
- vendor/assets/javascripts/audiojs.js.erb
|
91
82
|
- vendor/assets/javascripts/audiojs.swf
|
@@ -114,13 +105,5 @@ signing_key:
|
|
114
105
|
specification_version: 4
|
115
106
|
summary: audio.js is a drop-in javascript library that allows HTML5's <audio> tag
|
116
107
|
to be used anywhere.
|
117
|
-
test_files:
|
118
|
-
|
119
|
-
- test/dummy/config/application.rb
|
120
|
-
- test/dummy/config/boot.rb
|
121
|
-
- test/dummy/config/environment.rb
|
122
|
-
- test/dummy/config/initializers/secret_token.rb
|
123
|
-
- test/dummy/config/routes.rb
|
124
|
-
- test/dummy/config.ru
|
125
|
-
- test/rails_audiojs_test.rb
|
126
|
-
- test/test_helper.rb
|
108
|
+
test_files: []
|
109
|
+
has_rdoc:
|
data/test/dummy/config.ru
DELETED
@@ -1,18 +0,0 @@
|
|
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
|
data/test/dummy/config/boot.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Dummy::Application.config.secret_token = "e7a25db6bb3c9b96ccdc16af17d4128ffa28152252b319f375ef16900efdcefb5890935a5df6d1362c350eee6eb75470daf42d2e340aa723b93702e14358d01a"
|
data/test/dummy/config/routes.rb
DELETED
data/test/rails_audiojs_test.rb
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
class AudiojsRailsTest < 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
|