soundmanager2-rails 0.0.2 → 2.97.20120916

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # SoundManager2 for Rails 3
1
+ # SoundManager 2 for Rails 3
2
2
 
3
- Easy and non-obtrusive way to get [SoundManager2](http://www.schillmania.com/projects/soundmanager2/) as a dep for your rails3 project.
3
+ Easy and non-obtrusive way to get [SoundManager 2](http://www.schillmania.com/projects/soundmanager2/) as a dep for your rails3 project.
4
4
 
5
5
  Note: This gem differs from glaszig's ["soundmanager-rails"](https://github.com/glaszig/soundmanager-rails) in that all it only exposes the js and swf files for usage in the asset pipeline. It does not auto-intialize soundmanager when required, nor change what is required based upon your env. It *only* exposes the assets for manual use and uses versioning that follows soundmanager2's development.
6
6
 
@@ -27,6 +27,25 @@ Or one of the other js files soundmanager2 provides:
27
27
  //= require soundmanager2-nodebug-jsmin
28
28
  //= require soundmanager2-nodebug
29
29
 
30
+
31
+ Assuming you are using the asset pipeline, you will need to at least tell rails to "precompile" the swf (same with the js too if you are using it as a standalone javascript anywhere)
32
+
33
+ # config/application.rb
34
+ config.assets.precompile += %w(soundmanager2.swf soundmanager2_flash9.swf)
35
+
36
+ You probably want to include some config. I normally have a "settings.html.erb" which allows me to use the asset_path helper to deliver the correct swf. It also lets me easily toggle debug mode, etc.
37
+
38
+ soundManager.debugMode = false
39
+ soundManager.flashVersion = 9
40
+ soundManager.multiShot = false
41
+ soundManager.url = "<%= asset_path('soundmanager2.swf') %>"
42
+ soundManager.useHTML5Audio = true
43
+ soundManager.preferFlash = true // still prefer flash even though HTML5 support might be there (because it's skeeeetchhhhyyy)
44
+ soundManager.consoleOnly = true
45
+
46
+
47
+ See the (SoundManager2 docs)[http://www.schillmania.com/projects/soundmanager2/doc/getstarted/#basic-inclusion] for info about how to initialize and use.
48
+
30
49
  ## Important
31
50
 
32
51
  This gem only includes the cross-domain flash files (because that's what I use.)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 2.97.20120916
@@ -9,5 +9,6 @@ module Soundmanager2
9
9
  # Fake the engine, also somewhat ghetto, but hey.
10
10
  class Engine < ::Rails::Engine
11
11
  end
12
+
12
13
  end
13
14
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "soundmanager2-rails"
8
- s.version = "0.0.2"
8
+ s.version = "2.97.20120916"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Sudara"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soundmanager2-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 2.97.20120916
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -81,7 +81,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  segments:
83
83
  - 0
84
- hash: 1197750897809184331
84
+ hash: 528050558862292173
85
85
  required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  none: false
87
87
  requirements: