raptorize-rails 0.0.1 → 0.0.2
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 +11 -2
- data/lib/raptorize/rails/version.rb +1 -1
- data/raptorize-rails.gemspec +1 -0
- data/vendor/assets/raptorize/raptorize.js.erb +13 -5
- metadata +5 -9
data/README.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
Hold on to your butts.
|
4
4
|
|
5
|
+
## Origin
|
6
|
+
|
7
|
+
[Raptorize jQuery Plugin by ZURB](http://www.zurb.com/playground/jquery-raptorize) + Rails
|
8
|
+
|
5
9
|
## Installation
|
6
10
|
|
7
11
|
Add this line to your application's Gemfile:
|
@@ -29,6 +33,11 @@ To enable the Konami code version automatically, also add:
|
|
29
33
|
|
30
34
|
## Credits
|
31
35
|
|
32
|
-
The only changes I
|
36
|
+
The only initial changes I made to the
|
33
37
|
[Raptorize jQuery Plugin by ZURB](http://www.zurb.com/playground/jquery-raptorize)
|
34
|
-
were whitespace- and asset-pipeline-related.
|
38
|
+
were whitespace- and asset-pipeline-related. See git logs for further changes.
|
39
|
+
|
40
|
+
## License
|
41
|
+
|
42
|
+
Released under the [MIT license](raptorize-rails/blob/master/LICENSE) (same as
|
43
|
+
the plugin).
|
data/raptorize-rails.gemspec
CHANGED
@@ -7,6 +7,7 @@ Gem::Specification.new do |gem|
|
|
7
7
|
gem.description = %q{Instantly Raptorize any Rails app}
|
8
8
|
gem.summary = %q{Load the Raptorize jQuery plugin automatically in your rails app.}
|
9
9
|
gem.homepage = 'https://github.com/benizi/raptorize-rails'
|
10
|
+
gem.license = '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) }
|
@@ -22,9 +22,15 @@
|
|
22
22
|
var _this = $(this);
|
23
23
|
var audioSupported = false;
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
25
|
+
if ($.browser) { // old jQuery audio detection
|
26
|
+
if ($.browser.mozilla && $.browser.version.substr(0, 5) >= "1.9.2" || $.browser.webkit) {
|
27
|
+
audioSupported = true;
|
28
|
+
}
|
29
|
+
} else {
|
30
|
+
var audio = document.createElement('audio');
|
31
|
+
if (audio.canPlayType) { // HTML5 audio element function
|
32
|
+
audioSupported = true;
|
33
|
+
}
|
28
34
|
}
|
29
35
|
|
30
36
|
//Raptor Vars
|
@@ -52,7 +58,9 @@
|
|
52
58
|
//Sound Hilarity
|
53
59
|
if(audioSupported) {
|
54
60
|
function playSound() {
|
55
|
-
document.getElementById('elRaptorShriek')
|
61
|
+
var sound = document.getElementById('elRaptorShriek');
|
62
|
+
sound.load();
|
63
|
+
sound.play();
|
56
64
|
}
|
57
65
|
playSound();
|
58
66
|
}
|
@@ -94,7 +102,7 @@
|
|
94
102
|
kkeys.push( e.keyCode );
|
95
103
|
if ( kkeys.toString().indexOf( konami ) >= 0 ) {
|
96
104
|
init();
|
97
|
-
|
105
|
+
kkeys = [];
|
98
106
|
}
|
99
107
|
});
|
100
108
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raptorize-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-07-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jquery-rails
|
@@ -51,7 +51,8 @@ files:
|
|
51
51
|
- vendor/assets/raptorize/raptorize-konami.js
|
52
52
|
- vendor/assets/raptorize/raptorize.js.erb
|
53
53
|
homepage: https://github.com/benizi/raptorize-rails
|
54
|
-
licenses:
|
54
|
+
licenses:
|
55
|
+
- MIT
|
55
56
|
post_install_message:
|
56
57
|
rdoc_options: []
|
57
58
|
require_paths:
|
@@ -62,18 +63,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
63
|
- - ! '>='
|
63
64
|
- !ruby/object:Gem::Version
|
64
65
|
version: '0'
|
65
|
-
segments:
|
66
|
-
- 0
|
67
|
-
hash: 578086070776385262
|
68
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
67
|
none: false
|
70
68
|
requirements:
|
71
69
|
- - ! '>='
|
72
70
|
- !ruby/object:Gem::Version
|
73
71
|
version: '0'
|
74
|
-
segments:
|
75
|
-
- 0
|
76
|
-
hash: 578086070776385262
|
77
72
|
requirements: []
|
78
73
|
rubyforge_project:
|
79
74
|
rubygems_version: 1.8.23
|
@@ -81,3 +76,4 @@ signing_key:
|
|
81
76
|
specification_version: 3
|
82
77
|
summary: Load the Raptorize jQuery plugin automatically in your rails app.
|
83
78
|
test_files: []
|
79
|
+
has_rdoc:
|