jssignals-rails 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.rspec +2 -3
- data/README.md +1 -1
- data/jssignals-rails.gemspec +1 -1
- data/lib/jssignals/rails/version.rb +2 -2
- data/spec/jssignals/rails/version_spec.rb +2 -2
- data/vendor/assets/javascripts/signals.js +2 -2
- data/vendor/assets/javascripts/signals.min.js +2 -2
- metadata +18 -3
- data/Rakefile +0 -5
data/.rspec
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
--
|
2
|
-
--format
|
3
|
-
--tty
|
1
|
+
--colour
|
2
|
+
--format Fuubar
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# js-signals for Rails [![Build Status][travis_ci_build_status]][travis_ci][![Dependency Status][gemnasium_dependency_status]][gemnasium]
|
2
2
|
|
3
|
-
Provides js-signals (0.
|
3
|
+
Provides js-signals (1.0.0) for use with Rails 3
|
4
4
|
|
5
5
|
[RubyGems][ruby_gems] | [Ruby Toolbox][ruby_toolbox] | [GitHub][github] | [Travis CI][travis_ci] | [Gemnasium][gemnasium] | [RubyDoc][ruby_doc]
|
6
6
|
|
data/jssignals-rails.gemspec
CHANGED
@@ -13,6 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
|
14
14
|
s.add_dependency "railties", "~> 3.0"
|
15
15
|
|
16
|
+
s.add_development_dependency "fuubar", "~> 1.0"
|
16
17
|
s.add_development_dependency "rspec", "~> 2.0"
|
17
18
|
|
18
19
|
s.files = Dir[".gitignore"] +
|
@@ -20,7 +21,6 @@ Gem::Specification.new do |s|
|
|
20
21
|
Dir["Gemfile"] +
|
21
22
|
Dir["jssignals-rails.gemspec"] +
|
22
23
|
Dir["LICENSE"] +
|
23
|
-
Dir["Rakefile"] +
|
24
24
|
Dir["README.md"] +
|
25
25
|
Dir["**/*.js"] +
|
26
26
|
Dir["**/*.rb"]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
3
|
describe Jssignals::Rails do
|
4
|
-
it { Jssignals::Rails::VERSION.should == "1.
|
5
|
-
it { Jssignals::Rails::JSSIGNALS_VERSION.should == "0.
|
4
|
+
it { Jssignals::Rails::VERSION.should == "1.3.0" }
|
5
|
+
it { Jssignals::Rails::JSSIGNALS_VERSION.should == "1.0.0" }
|
6
6
|
end
|
@@ -5,7 +5,7 @@
|
|
5
5
|
* JS Signals <http://millermedeiros.github.com/js-signals/>
|
6
6
|
* Released under the MIT license
|
7
7
|
* Author: Miller Medeiros
|
8
|
-
* Version: 0.
|
8
|
+
* Version: 1.0.0 - Build: 268 (2012/11/29 05:48 PM)
|
9
9
|
*/
|
10
10
|
|
11
11
|
(function(global){
|
@@ -195,7 +195,7 @@
|
|
195
195
|
* @type String
|
196
196
|
* @const
|
197
197
|
*/
|
198
|
-
VERSION : '0.
|
198
|
+
VERSION : '1.0.0',
|
199
199
|
|
200
200
|
/**
|
201
201
|
* If Signal should keep record of previously dispatched parameters and
|
@@ -3,11 +3,11 @@
|
|
3
3
|
JS Signals <http://millermedeiros.github.com/js-signals/>
|
4
4
|
Released under the MIT license
|
5
5
|
Author: Miller Medeiros
|
6
|
-
Version: 0.
|
6
|
+
Version: 1.0.0 - Build: 268 (2012/11/29 05:48 PM)
|
7
7
|
*/
|
8
8
|
(function(i){function h(a,b,c,d,e){this._listener=b;this._isOnce=c;this.context=d;this._signal=a;this._priority=e||0}function g(a,b){if(typeof a!=="function")throw Error("listener is a required param of {fn}() and should be a Function.".replace("{fn}",b));}function e(){this._bindings=[];this._prevParams=null;var a=this;this.dispatch=function(){e.prototype.dispatch.apply(a,arguments)}}h.prototype={active:!0,params:null,execute:function(a){var b;this.active&&this._listener&&(a=this.params?this.params.concat(a):
|
9
9
|
a,b=this._listener.apply(this.context,a),this._isOnce&&this.detach());return b},detach:function(){return this.isBound()?this._signal.remove(this._listener,this.context):null},isBound:function(){return!!this._signal&&!!this._listener},isOnce:function(){return this._isOnce},getListener:function(){return this._listener},getSignal:function(){return this._signal},_destroy:function(){delete this._signal;delete this._listener;delete this.context},toString:function(){return"[SignalBinding isOnce:"+this._isOnce+
|
10
|
-
", isBound:"+this.isBound()+", active:"+this.active+"]"}};e.prototype={VERSION:"0.
|
10
|
+
", isBound:"+this.isBound()+", active:"+this.active+"]"}};e.prototype={VERSION:"1.0.0",memorize:!1,_shouldPropagate:!0,active:!0,_registerListener:function(a,b,c,d){var e=this._indexOfListener(a,c);if(e!==-1){if(a=this._bindings[e],a.isOnce()!==b)throw Error("You cannot add"+(b?"":"Once")+"() then add"+(!b?"":"Once")+"() the same listener without removing the relationship first.");}else a=new h(this,a,b,c,d),this._addBinding(a);this.memorize&&this._prevParams&&a.execute(this._prevParams);return a},
|
11
11
|
_addBinding:function(a){var b=this._bindings.length;do--b;while(this._bindings[b]&&a._priority<=this._bindings[b]._priority);this._bindings.splice(b+1,0,a)},_indexOfListener:function(a,b){for(var c=this._bindings.length,d;c--;)if(d=this._bindings[c],d._listener===a&&d.context===b)return c;return-1},has:function(a,b){return this._indexOfListener(a,b)!==-1},add:function(a,b,c){g(a,"add");return this._registerListener(a,!1,b,c)},addOnce:function(a,b,c){g(a,"addOnce");return this._registerListener(a,
|
12
12
|
!0,b,c)},remove:function(a,b){g(a,"remove");var c=this._indexOfListener(a,b);c!==-1&&(this._bindings[c]._destroy(),this._bindings.splice(c,1));return a},removeAll:function(){for(var a=this._bindings.length;a--;)this._bindings[a]._destroy();this._bindings.length=0},getNumListeners:function(){return this._bindings.length},halt:function(){this._shouldPropagate=!1},dispatch:function(a){if(this.active){var b=Array.prototype.slice.call(arguments),c=this._bindings.length,d;if(this.memorize)this._prevParams=
|
13
13
|
b;if(c){d=this._bindings.slice();this._shouldPropagate=!0;do c--;while(d[c]&&this._shouldPropagate&&d[c].execute(b)!==!1)}}},forget:function(){this._prevParams=null},dispose:function(){this.removeAll();delete this._bindings;delete this._prevParams},toString:function(){return"[Signal active:"+this.active+" numListeners:"+this.getNumListeners()+"]"}};var f=e;f.Signal=e;typeof define==="function"&&define.amd?define(function(){return f}):typeof module!=="undefined"&&module.exports?module.exports=f:i.signals=
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jssignals-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
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-02-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
@@ -27,6 +27,22 @@ dependencies:
|
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '3.0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: fuubar
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '1.0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '1.0'
|
30
46
|
- !ruby/object:Gem::Dependency
|
31
47
|
name: rspec
|
32
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -54,7 +70,6 @@ files:
|
|
54
70
|
- Gemfile
|
55
71
|
- jssignals-rails.gemspec
|
56
72
|
- LICENSE
|
57
|
-
- Rakefile
|
58
73
|
- README.md
|
59
74
|
- vendor/assets/javascripts/signals.js
|
60
75
|
- vendor/assets/javascripts/signals.min.js
|