modularity-rails 0.30.1 → 0.32.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/javascripts/modularity.min.js +6 -2
- data/lib/modularity-rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9a955c8e49d5c57e4d1c2107b9458e31af909f8
|
4
|
+
data.tar.gz: f6e16e632ca01801fcd63957eb711bf2bb81ade4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c1ba81e5447e5f3faed8a0f8fdbc9aa41b238390790d4cf78579df9033e553ecba565592726f92b84bbbf0c6c6fd06e130403b23f192bf8fe807ac30a997946
|
7
|
+
data.tar.gz: b76b6d35ac9cbf0d4aef6dd2824191f4fe4e607aa9aeb2686f0836645a4fc96bc8f7dc6d0ad046a713a22e0cae2e9ffabf67a24379aefbb44aa343353012a5d8
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Modularity::Rails
|
1
|
+
# Modularity::Rails
|
2
2
|
|
3
3
|
Makes the [modularity.js](http://github.com/kevgo/modularity.js) library
|
4
4
|
available to Rails 3.1 applications.
|
@@ -1,3 +1,7 @@
|
|
1
|
-
/*! modularity
|
2
|
-
|
1
|
+
/*! modularity-framework 0.32.2, copyright 2014 Kevin Goslar, see http://github.com/kevgo/modularity-framework */
|
2
|
+
/*! eventualize 0.0.4, copyright 2014 Kevin Goslar, see https://github.com/kevgo/eventualize */
|
3
|
+
(function(){var n;n=function(t){var e,r,i,o,a,c,l,s,u;for(u=n.categorize_members(t),o=u[0],r=u[1],a=0,l=o.length;l>a;a++)for(i=o[a],c=0,s=r.length;s>c;c++)e=r[c],n.is_callback_for(e,i)&&t[i].on(n.callback_event_name(e,i),t[e]);return void 0},n.categorize_members=function(t){var e,r,i;i=[],e=[];for(r in t)switch(typeof t[r]){case"object":i.push(r);break;case"function":n.is_callback_method(r)&&e.push(r)}return[i,e]},n.is_callback_method=function(t){return n.string_starts_with(t,"on_")},n.is_callback_for=function(t,e){return n.string_starts_with(t,"on_"+e+"_")},n.callback_event_name=function(n,t){return n.substring(t.length+4)},n.string_starts_with=function(n,t){return n.substring(0,t.length)===t},"undefined"!=typeof module&&null!==module&&(module.exports=n),"undefined"!=typeof window&&null!==window&&(window.eventualize=n)}).call(this);
|
4
|
+
(function(){var e;e={assert:function(e,t){return e&&0!==(null!=e?e.length:void 0)?!0:(console.error(t),!1)},on:function(t,n){return e.assert("string"==typeof t,"modularity.on: parameter 'event_type' is empty")?"function"!=typeof n?console.error("modularity.on: parameter 'callback' must be a function, "+n+" ("+typeof n+") given."):e.global_event_container().on(t,n):void 0},trigger:function(t,n){return e.assert(t,"Module.trigger: You must provide the event type to fire."),"string"!=typeof t?console.error("Module.trigger: Event type must be a string, "+t+" ("+typeof t+") given."):e.global_event_container().trigger(t,null!=n?n:n={})},global_event_container:function(){return e.global_event_container_cache||(e.global_event_container_cache=$("body"))}},window.modularity=e}).call(this);
|
5
|
+
(function(){var t=function(t,n){return function(){return t.apply(n,arguments)}},n=[].slice;modularity.Module=function(){function e(n){this.trigger=t(this.trigger,this),this.on=t(this.on,this);var e,r,o,i,s,u,l,c,a,p;if("string"==typeof n&&"testing"!==n&&(n=$(n)),this.container=n,null==this.container)return console.error("Error in Module constructor: No container given.");if("testing"!==n){if("string"!=typeof n.jquery)return console.error("Error in Module constructor: The given container must be a jQuery object.");if(!(null!=n&&n.length>0))return console.error("Error in Module constructor: The given container ('"+n.selector+"') is empty.");if(null==n||1!==n.length)return console.error("Error in Module constructor: The given container ('"+n.selector+"') has more than one element.")}if(null!=this.mixins)for(l=this.mixins,s=0,u=l.length;u>s;s++){o=l[s],c=o.mixin,i=function(t){return function(n,e){return t[n]?void 0:t[n]=function(){return e.apply(t,arguments)}}}(this);for(r in c)e=c[r],i(r,e);null!=(a=o.mixin)&&null!=(p=a.constructor)&&p.apply(this,arguments)}}return e.prototype.$=function(t,n){var e;return null==n&&(n={reportEmptyResults:!0}),e=this.container.find(t),0===e.length&&n.reportEmptyResults?console.error("@$: element not found: "+e.selector):e},e.prototype.on=function(t,n){return modularity.assert("string"==typeof t,"Module.bind_event: parameter 'event_type' is empty")?"function"!=typeof n?console.error("Module.bind_event: parameter 'callback' must be a function, "+n+" ("+typeof n+") given."):this.container.bind(t,n):void 0},e.prototype.trigger=function(t,n){return modularity.assert(t,"Module.fire_event: You must provide the event type to fire."),"string"!=typeof t?console.error("Module.fire_event: Event type must be a string, "+t+" ("+typeof t+") given."):this.container.trigger(t,null!=n?n:n={})},e.prototype.hide=function(){return this.container.hide(),this.container.trigger("hide")},e.mixin=function(){var t,e,r;return t=arguments[0],e=2<=arguments.length?n.call(arguments,1):[],t||console.error("mixin not found"),(r=this.prototype).mixins||(r.mixins=[]),this.prototype.mixins.push({mixin:t,params:e})},e.prototype.show=function(){return this.container.show(),this.container.trigger("show")},e.prototype.visible=function(){return this.container.is(":visible")},e}()}).call(this);
|
6
|
+
(function(){var t={}.hasOwnProperty,o=function(o,r){function n(){this.constructor=o}for(var e in r)t.call(r,e)&&(o[e]=r[e]);return n.prototype=r.prototype,o.prototype=new n,o.__super__=r.prototype,o};modularity.EventualizedModule=function(t){function r(){r.__super__.constructor.apply(this,arguments),this.init.apply(this,arguments),eventualize(this)}return o(r,t),r}(modularity.Module)}).call(this);
|
3
7
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: modularity-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.32.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Goslar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|