jukebox-rails 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 941014607d2d73262b940c909360b6d74e28e808
4
+ data.tar.gz: 9b97a68084ef663566d3224833bbb1dc1bc2c7f7
5
+ SHA512:
6
+ metadata.gz: c841359e18df9e1ecf5d2f0cae67c89f8ae14e416215029a2d777a4e904abdd40e170ea6d6693d5d222b65f3a86ba4568dbb0e4972203f2fef9f4ad9cc8284a3
7
+ data.tar.gz: a1cd6708f2010935219edfa4496881e3fa0d94983ab1b1a1e6d5323f824fe3fb9d627af9f2da0b72b7fbf86cc3fc3664341b1d7ef6e7dae34b913c3d3bf19099
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
@@ -1,4 +1,4 @@
1
- # Jukebox::Rails
1
+ # Jukebox - Rails [![Gem Version](https://badge.fury.io/rb/jukebox-rails.png)](http://badge.fury.io/rb/jukebox-rails) [![Build Status](https://secure.travis-ci.org/subosito/jukebox-rails.png)](http://travis-ci.org/subosito/jukebox-rails) [![Dependency Status](https://gemnasium.com/subosito/jukebox-rails.png)](https://gemnasium.com/subosito/jukebox-rails)
2
2
 
3
3
  Zynga Jukebox is a component to handle the playback of music and sound effects across multiple web browsers and operating systems.
4
4
  It is designed for ultra-low performance environments, such as mobiles - and is even able to deliver Android 1.6+ via Flash fallback.
@@ -33,4 +33,5 @@ Add to your `application.js` file:
33
33
 
34
34
  ## Credits
35
35
 
36
- Read more about Zynga Jukebox on http://zynga.github.com/jukebox/
36
+ Read more about Zynga Jukebox on http://zynga.github.com/jukebox/. Link is dead, sorry :(
37
+
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
@@ -7,6 +7,7 @@ Gem::Specification.new do |gem|
7
7
  gem.description = %q{Jukebox is a component to handle the playback of music and sound effects across multiple web browsers and operating systems.}
8
8
  gem.summary = %q{Jukebox is designed for ultra-low performance environments, such as mobiles - and is even able to deliver Android 1.6+ via Flash fallback.}
9
9
  gem.homepage = "https://github.com/subosito/jukebox-rails"
10
+ gem.licenses = ["MIT"]
10
11
 
11
12
  gem.files = `git ls-files`.split($\)
12
13
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -15,6 +16,7 @@ Gem::Specification.new do |gem|
15
16
  gem.require_paths = ["lib"]
16
17
  gem.version = Jukebox::Rails::VERSION
17
18
 
18
- # dependencies
19
- gem.add_development_dependency('vendorer')
19
+ gem.add_dependency 'railties', '>= 3.1'
20
+ gem.add_development_dependency 'tzinfo'
21
+ gem.add_development_dependency 'vendorer'
20
22
  end
@@ -1,8 +1,2 @@
1
1
  require "jukebox-rails/version"
2
-
3
- module Jukebox
4
- module Rails
5
- class Engine < ::Rails::Engine
6
- end
7
- end
8
- end
2
+ require "jukebox-rails/engine"
@@ -0,0 +1,6 @@
1
+ module Jukebox
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ end
5
+ end
6
+ end
@@ -1,5 +1,5 @@
1
1
  module Jukebox
2
2
  module Rails
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
@@ -0,0 +1,2 @@
1
+ /log
2
+ /tmp
@@ -0,0 +1,5 @@
1
+ /**
2
+ *
3
+ * = require jukebox
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,17 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require "sprockets/railtie"
4
+
5
+ Bundler.require(:default, :development)
6
+
7
+ module Dummy
8
+ class Application < Rails::Application
9
+ config.encoding = "utf-8"
10
+ config.assets.enabled = true
11
+ config.assets.version = '1.0'
12
+
13
+ # replacement for environments/*.rb
14
+ config.active_support.deprecation = :stderr
15
+ config.eager_load = false
16
+ end
17
+ 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 = "9a00ffacf0d050be204617d05f11da73f13e9e16eec482cc8e7d62a036e2defc1d621ba7c88156a0e66ffde3d6420a1e251c1d420f1c63afd1f16732052abff3"
@@ -0,0 +1,2 @@
1
+ Dummy::Application.routes.draw do
2
+ end
@@ -0,0 +1,33 @@
1
+ require 'test_helper'
2
+
3
+ class JukeboxRailsTest < ActionDispatch::IntegrationTest
4
+ teardown { clean_cache }
5
+
6
+ test "engine is loaded" do
7
+ assert_equal ::Rails::Engine, Jukebox::Rails::Engine.superclass
8
+ end
9
+
10
+ test "javascripts are served" do
11
+ get "/assets/jukebox.js"
12
+ assert_response :success
13
+ get "/assets/jukebox/Player.js"
14
+ assert_response :success
15
+ get "/assets/jukebox/Manager.js"
16
+ assert_response :success
17
+ end
18
+
19
+ test "flash is served" do
20
+ get "/assets/jukebox/FlashMediaElement.swf"
21
+ assert_response :success
22
+ end
23
+
24
+ test "javascript contain references to flash" do
25
+ get "/assets/application.js"
26
+ assert_match "/assets/jukebox/FlashMediaElement.swf", response.body
27
+ end
28
+
29
+ private
30
+ def clean_cache
31
+ FileUtils.rm_rf File.expand_path("../dummy/tmp", __FILE__)
32
+ end
33
+ end
@@ -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: jukebox-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
5
- prerelease:
4
+ version: 1.0.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-01-14 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'
27
+ - !ruby/object:Gem::Dependency
28
+ name: tzinfo
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
14
41
  - !ruby/object:Gem::Dependency
15
42
  name: vendorer
16
43
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
44
  requirements:
19
- - - ! '>='
45
+ - - '>='
20
46
  - !ruby/object:Gem::Version
21
47
  version: '0'
22
48
  type: :development
23
49
  prerelease: false
24
50
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
51
  requirements:
27
- - - ! '>='
52
+ - - '>='
28
53
  - !ruby/object:Gem::Version
29
54
  version: '0'
30
55
  description: Jukebox is a component to handle the playback of music and sound effects
@@ -36,42 +61,62 @@ extensions: []
36
61
  extra_rdoc_files: []
37
62
  files:
38
63
  - .gitignore
64
+ - .travis.yml
39
65
  - Gemfile
40
- - LICENSE
41
66
  - README.markdown
42
67
  - Rakefile
43
68
  - Vendorfile
44
69
  - jukebox-rails.gemspec
45
70
  - lib/jukebox-rails.rb
71
+ - lib/jukebox-rails/engine.rb
46
72
  - lib/jukebox-rails/version.rb
73
+ - test/dummy/.gitignore
74
+ - test/dummy/app/assets/javascripts/application.js
75
+ - test/dummy/config.ru
76
+ - test/dummy/config/application.rb
77
+ - test/dummy/config/boot.rb
78
+ - test/dummy/config/environment.rb
79
+ - test/dummy/config/initializers/secret_token.rb
80
+ - test/dummy/config/routes.rb
81
+ - test/jukebox_rails_test.rb
82
+ - test/test_helper.rb
47
83
  - vendor/assets/javascripts/jukebox.js
48
84
  - vendor/assets/javascripts/jukebox/FlashMediaElement.swf
49
85
  - vendor/assets/javascripts/jukebox/Manager.js
50
86
  - vendor/assets/javascripts/jukebox/Player.js.erb
51
87
  homepage: https://github.com/subosito/jukebox-rails
52
- licenses: []
88
+ licenses:
89
+ - MIT
90
+ metadata: {}
53
91
  post_install_message:
54
92
  rdoc_options: []
55
93
  require_paths:
56
94
  - lib
57
95
  required_ruby_version: !ruby/object:Gem::Requirement
58
- none: false
59
96
  requirements:
60
- - - ! '>='
97
+ - - '>='
61
98
  - !ruby/object:Gem::Version
62
99
  version: '0'
63
100
  required_rubygems_version: !ruby/object:Gem::Requirement
64
- none: false
65
101
  requirements:
66
- - - ! '>='
102
+ - - '>='
67
103
  - !ruby/object:Gem::Version
68
104
  version: '0'
69
105
  requirements: []
70
106
  rubyforge_project:
71
- rubygems_version: 1.8.23
107
+ rubygems_version: 2.0.0
72
108
  signing_key:
73
- specification_version: 3
109
+ specification_version: 4
74
110
  summary: Jukebox is designed for ultra-low performance environments, such as mobiles
75
111
  - and is even able to deliver Android 1.6+ via Flash fallback.
76
- test_files: []
77
- has_rdoc:
112
+ test_files:
113
+ - test/dummy/.gitignore
114
+ - test/dummy/app/assets/javascripts/application.js
115
+ - test/dummy/config.ru
116
+ - test/dummy/config/application.rb
117
+ - test/dummy/config/boot.rb
118
+ - test/dummy/config/environment.rb
119
+ - test/dummy/config/initializers/secret_token.rb
120
+ - test/dummy/config/routes.rb
121
+ - test/jukebox_rails_test.rb
122
+ - test/test_helper.rb
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.