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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a192554eecb54bbf0a8f21c193966fcd4f25e00
4
- data.tar.gz: c407bbdc7a372172e535a5c8f67307f5ce73bf72
3
+ metadata.gz: c7bb89d559f85c3e8539be27e706ab4759370f08
4
+ data.tar.gz: 155587868c0fe49ecf40347e28232a4856975fab
5
5
  SHA512:
6
- metadata.gz: bc3266040c6575ea5516af5114bd78f400418e1028a922472af1b4487d6fec5e65d172e0fa293f4fe5e1a8a80136c32db019faea209b5d318e2052dc7a2d29e6
7
- data.tar.gz: 7a13c9e686a63ff51eec6e99f45d6765aa7d5d8ff72158053366c97a774d6a267bc8cb582e1875b7d43793f94b3fd85a36ab1ef047ac38dc525836c5469565da
6
+ metadata.gz: c8f51d1482f586bfe93ba9afaf7f9dfd8b1eb59fe270318da9ea82b91f4516a61d72bc6011e82fc757c53a4f00c7738306528615a154db78f9b370cf73aef67b
7
+ data.tar.gz: 081ff2ae3830342e1a6a320710643342a7e242650602e894984593f8232c5a5b7e6661087210da79b683e9956708e620c7f793054b25a0b1c0302525d27e5a2d
data/lib/audiojs/rails.rb CHANGED
@@ -1,7 +1,7 @@
1
- require "audiojs/rails/version"
1
+ require "rails/audiojs/version"
2
2
 
3
- module Audiojs
4
- module Rails
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 )
@@ -1,5 +1,5 @@
1
- module Audiojs
2
- module Rails
3
- VERSION = "0.0.1"
1
+ module Rails
2
+ module Audiojs
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
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.1
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-21 00:00:00.000000000 Z
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
- - test/dummy/app/assets/javascripts/application.js
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:
@@ -1,5 +0,0 @@
1
- /**
2
- *
3
- * = require audiojs
4
- *
5
- **/
data/test/dummy/config.ru DELETED
@@ -1,4 +0,0 @@
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
@@ -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
@@ -1,10 +0,0 @@
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__)
@@ -1,5 +0,0 @@
1
- # Load the rails application
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the rails application
5
- Dummy::Application.initialize!
@@ -1 +0,0 @@
1
- Dummy::Application.config.secret_token = "e7a25db6bb3c9b96ccdc16af17d4128ffa28152252b319f375ef16900efdcefb5890935a5df6d1362c350eee6eb75470daf42d2e340aa723b93702e14358d01a"
@@ -1,2 +0,0 @@
1
- Dummy::Application.routes.draw do
2
- end
@@ -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
data/test/test_helper.rb DELETED
@@ -1,7 +0,0 @@
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
-