soundmanager2-rails 0.0.2 → 2.97.20120916
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.
- data/README.md +21 -2
- data/VERSION +1 -1
- data/lib/soundmanager2-rails.rb +1 -0
- data/soundmanager2-rails.gemspec +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
#
|
1
|
+
# SoundManager 2 for Rails 3
|
2
2
|
|
3
|
-
Easy and non-obtrusive way to get [
|
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
|
-
|
1
|
+
2.97.20120916
|
data/lib/soundmanager2-rails.rb
CHANGED
data/soundmanager2-rails.gemspec
CHANGED
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:
|
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:
|
84
|
+
hash: 528050558862292173
|
85
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
86
|
none: false
|
87
87
|
requirements:
|