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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 25dba21d976b604a2e44399fdd2b3898188bf33c
4
- data.tar.gz: 5586725cd3912c2f899c79ad2b29818b2f34719d
3
+ metadata.gz: a9a955c8e49d5c57e4d1c2107b9458e31af909f8
4
+ data.tar.gz: f6e16e632ca01801fcd63957eb711bf2bb81ade4
5
5
  SHA512:
6
- metadata.gz: 4736d3136725af8ae0d42c42790ba52a994972c1dfc24c64edf3437d65c70b6a7fc0a9fb364732173bfe49976811dd124587bc3bfa493952be4b499bbf92595c
7
- data.tar.gz: 5eee9530eb0a24a2f43b122985d89740ec4b391e09548575377897c6f2788b1e2454388e2d6144325a665b78323251ead8104c0f3ea8692ca9e8e98b0bc5f276
6
+ metadata.gz: 7c1ba81e5447e5f3faed8a0f8fdbc9aa41b238390790d4cf78579df9033e553ecba565592726f92b84bbbf0c6c6fd06e130403b23f192bf8fe807ac30a997946
7
+ data.tar.gz: b76b6d35ac9cbf0d4aef6dd2824191f4fe4e607aa9aeb2686f0836645a4fc96bc8f7dc6d0ad046a713a22e0cae2e9ffabf67a24379aefbb44aa343353012a5d8
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Modularity::Rails [![Build Status](https://travis-ci.org/kevgo/modularity-rails.png?branch=master)](https://travis-ci.org/kevgo/modularity-rails) [![Dependency Status](https://gemnasium.com/kevgo/modularity-rails.png)](https://gemnasium.com/kevgo/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.js 0.30.0, copyright 2014 Kevin Goslar, see https://github.com/kevgo/modularity.js */
2
- (function(){var a=function(a,b){return function(){return a.apply(b,arguments)}},b=[].slice;window.modularity={assert:function(a,b){return a&&0!==(null!=a?a.length:void 0)?!0:(alert(b),!1)},bind_global_event:function(a,b){return modularity.assert("string"==typeof a,"modularity.bind_global_event: parameter 'event_type' is empty")?"function"!=typeof b?alert("modularity.bind_global_event: parameter 'callback' must be a function, "+b+" ("+typeof b+") given."):modularity.global_event_container().bind(a,b):void 0},fire_global_event:function(a,b){return modularity.assert(a,"Module.fire_global_event: You must provide the event type to fire."),"string"!=typeof a?alert("Module.fire_global_event: Event type must be a string, "+a+" ("+typeof a+") given."):modularity.global_event_container().trigger(a,null!=b?b:b={})},global_event_container:function(){return modularity.global_event_container_cache||(modularity.global_event_container_cache=$(window))}},window.modularity.bindGlobalEvent=window.modularity.bind_global_event,window.modularity.fireGlobalEvent=window.modularity.fire_global_event,window.modularity.Module=function(){function c(b){this.trigger=a(this.trigger,this),this.on=a(this.on,this);var c,d,e,f,g,h,i,j,k,l,m=this;if("string"==typeof b&&"testing"!==b&&(b=$(b)),this.container=b,null==this.container)return alert("Error in Module constructor: No container given.");if("testing"!==b){if("string"!=typeof b.jquery)return alert("Error in Module constructor: The given container must be a jQuery object.");if(!(null!=b&&b.length>0))return alert("Error in Module constructor: The given container ('"+b.selector+"') is empty.");if(null==b||1!==b.length)return alert("Error in Module constructor: The given container ('"+b.selector+"') has more than one element.")}if(null!=this.mixins)for(i=this.mixins,g=0,h=i.length;h>g;g++){e=i[g],j=e.mixin,f=function(a,b){return m[a]?void 0:m[a]=function(){return b.apply(m,arguments)}};for(d in j)c=j[d],f(d,c);null!=(k=e.mixin)&&null!=(l=k.constructor)&&l.apply(this,arguments)}}return c.prototype.$=function(a,b){var c;return null==b&&(b={reportEmptyResults:!0}),c=this.container.find(a),0===c.length&&b.reportEmptyResults?alert("@$: element not found: "+c.selector):c},c.prototype.autobind=function(){var a,b,c,d,e,f,g,h,i,j;f=[],e=[];for(b in this)switch(typeof this[b]){case"object":f.push(b);break;case"function":modularity.string_starts_with(b,"on_")&&e.push(b)}for(g=0,i=f.length;i>g;g++)for(d=f[g],h=0,j=e.length;j>h;h++)a=e[h],modularity.string_starts_with(a,"on_"+d+"_")&&(c=a.substring(4+d.length),this[d].on(c,this[a]));return!1},c.prototype.on=function(a,b){return modularity.assert("string"==typeof a,"Module.bind_event: parameter 'event_type' is empty")?"function"!=typeof b?alert("Module.bind_event: parameter 'callback' must be a function, "+b+" ("+typeof b+") given."):this.container.bind(a,b):void 0},c.prototype.bindEvent=c.prototype.bind_event,c.prototype.bind_event=c.prototype.bind_event,c.prototype.trigger=function(a,b){return modularity.assert(a,"Module.fire_event: You must provide the event type to fire."),"string"!=typeof a?alert("Module.fire_event: Event type must be a string, "+a+" ("+typeof a+") given."):this.container.trigger(a,null!=b?b:b={})},c.prototype.fireEvent=c.prototype.fire_event,c.prototype.fire_event=c.prototype.fire_event,c.prototype.hide=function(){return this.container.hide(),this.container.trigger("hide")},c.mixin=function(){var a,c,d;return a=arguments[0],c=2<=arguments.length?b.call(arguments,1):[],a||alert("mixin not found"),(d=this.prototype).mixins||(d.mixins=[]),this.prototype.mixins.push({mixin:a,params:c})},c.prototype.show=function(){return this.container.show(),this.container.trigger("show")},c.prototype.visible=function(){return this.container.is(":visible")},c}(),window.modularity.string_starts_with=function(a,b){return a.substring(0,b.length)===b}}).call(this);
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
 
@@ -1,3 +1,3 @@
1
1
  module ModularityRails
2
- VERSION = '0.30.1'
2
+ VERSION = '0.32.2'
3
3
  end
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.30.1
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-01-29 00:00:00.000000000 Z
11
+ date: 2014-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails