livescript-rails 1.0.1 → 1.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.
@@ -15,3 +15,6 @@ If you are precompiling your assets (with rake assets:precompile) before run you
15
15
  gem 'livescript-rails'
16
16
  end
17
17
 
18
+ ### Prelude
19
+ LiveScript-Rails also includes prelude-ls (0.6).
20
+ Just use `//= require prelude` in your `application.js`.
@@ -0,0 +1,5 @@
1
+ // prelude.ls 0.6.0
2
+ // Copyright (c) 2012 George Zahariev
3
+ // Released under the MIT License
4
+ // raw.github.com/gkz/prelude-ls/master/LICNSE
5
+ this.prelude=function(){function Gt(e,t){return e.length>1?function(){var n=t?t.concat():[];return n.push.apply(n,arguments)<e.length&&arguments.length?Gt.call(this,e,n):e.apply(this,n)}:e}function Yt(e,t){var n=0,r=t.length>>>0;while(n<r)if(e===t[n++])return!0;return!1}function Zt(e){return function(){var t,n=arguments;for(t=e.length;t>0;--t)n=[e[t-1].apply(this,n)];return n[0]}}function en(e){return!e}function tn(e,t){var n={}.hasOwnProperty;for(var r in t)n.call(t,r)&&(e[r]=t[r]);return e}exports={};var e,t,n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T,N,C,k,L,A,O,M,_,D,P,H,B,j,F,I,q,R,U,z,W,X,V,$,J,K,Q,G,Y,Z,et,tt,nt,rt,it,st,ot,ut,at,ft,lt,ct,ht,pt,dt,vt,mt,gt,yt,bt,wt,Et,St,xt,Tt,Nt,Ct,kt,Lt,At,Ot,Mt,_t,Dt,Pt,Ht,Bt,jt,Ft,It,qt,Rt,Ut,zt,Wt,Xt,Vt,$t,Jt,Kt={}.toString,Qt=[].slice;return exports.objToFunc=e=function(e){return function(t){return e[t]}},exports.each=t=Gt(function(e,t){var n,r,i;if(Kt.call(t).slice(8,-1)==="Object")for(n in t)r=t[n],e(r);else for(n=0,i=t.length;n<i;++n)r=t[n],e(r);return t}),exports.map=n=Gt(function(t,n){var r,i,s,o,u,a,f,l={};Kt.call(t).slice(8,-1)!=="Function"&&(t=e(t)),r=Kt.call(n).slice(8,-1);if(r==="Object"){for(i in n)s=n[i],l[i]=t(s);return l}o=[];for(u=0,a=n.length;u<a;++u)s=n[u],o.push(t(s));return f=o,r==="String"?f.join(""):f}),exports.filter=r=Gt(function(t,n){var r,i,s,o,u,a,f,l={};Kt.call(t).slice(8,-1)!=="Function"&&(t=e(t)),r=Kt.call(n).slice(8,-1);if(r==="Object"){for(i in n)s=n[i],t(s)&&(l[i]=s);return l}o=[];for(u=0,a=n.length;u<a;++u)s=n[u],t(s)&&o.push(s);return f=o,r==="String"?f.join(""):f}),exports.reject=i=Gt(function(t,n){var r,i,s,o,u,a,f,l={};Kt.call(t).slice(8,-1)!=="Function"&&(t=e(t)),r=Kt.call(n).slice(8,-1);if(r==="Object"){for(i in n)s=n[i],t(s)||(l[i]=s);return l}o=[];for(u=0,a=n.length;u<a;++u)s=n[u],t(s)||o.push(s);return f=o,r==="String"?f.join(""):f}),exports.partition=s=Gt(function(t,n){var r,i,s,o,u,a,f;Kt.call(t).slice(8,-1)!=="Function"&&(t=e(t)),r=Kt.call(n).slice(8,-1);if(r==="Object"){i={},s={};for(o in n)u=n[o],(t(u)?i:s)[o]=u}else{i=[],s=[];for(a=0,f=n.length;a<f;++a)u=n[a],(t(u)?i:s).push(u);r==="String"&&(i=i.join(""),s=s.join(""))}return[i,s]}),exports.find=o=Gt(function(t,n){var r,i,s;Kt.call(t).slice(8,-1)!=="Function"&&(t=e(t));if(Kt.call(n).slice(8,-1)==="Object")for(r in n){i=n[r];if(t(i))return i}else for(r=0,s=n.length;r<s;++r){i=n[r];if(t(i))return i}}),exports.head=a=exports.first=u=function(e){if(!e.length)return;return e[0]},exports.tail=f=function(e){if(!e.length)return;return e.slice(1)},exports.last=l=function(e){if(!e.length)return;return e[e.length-1]},exports.initial=c=function(e){if(!e.length)return;return e.slice(0,e.length-1)},exports.empty=h=function(e){var t;if(Kt.call(e).slice(8,-1)==="Object"){for(t in e)return!1;return!0}return!e.length},exports.values=p=function(e){var t,n,r=[];for(t in e)n=e[t],r.push(n);return r},exports.keys=d=function(e){var t,n=[];for(t in e)n.push(t);return n},exports.length=v=function(e){return Kt.call(e).slice(8,-1)==="Object"&&(e=p(e)),e.length},exports.cons=m=Gt(function(e,t){return Kt.call(t).slice(8,-1)==="String"?e+t:[e].concat(t)}),exports.append=g=Gt(function(e,t){return Kt.call(t).slice(8,-1)==="String"?e+t:e.concat(t)}),exports.join=y=Gt(function(e,t){return Kt.call(t).slice(8,-1)==="Object"&&(t=p(t)),t.join(e)}),exports.reverse=b=function(e){return Kt.call(e).slice(8,-1)==="String"?e.split("").reverse().join(""):e.slice().reverse()},exports.fold=E=exports.foldl=w=Gt(function(e,t,n){var r,i,s;if(Kt.call(n).slice(8,-1)==="Object")for(r in n)i=n[r],t=e(t,i);else for(r=0,s=n.length;r<s;++r)i=n[r],t=e(t,i);return t}),exports.fold1=x=exports.foldl1=S=Gt(function(e,t){return E(e,t[0],t.slice(1))}),exports.foldr=T=Gt(function(e,t,n){return E(e,t,n.reverse())}),exports.foldr1=N=Gt(function(e,t){return t.reverse(),E(e,t[0],t.slice(1))}),exports.unfoldr=exports.unfold=C=Gt(function(e,t){var n;return(n=e(t))!=null?[n[0]].concat(C(e,n[1])):[]}),exports.andList=k=function(e){return E(function(e,t){return e&&t},!0,e)},exports.orList=L=function(e){return E(function(e,t){return e||t},!1,e)},exports.any=A=Gt(function(t,n){return Kt.call(t).slice(8,-1)!=="Function"&&(t=e(t)),E(function(e,n){return e||t(n)},!1,n)}),exports.all=O=Gt(function(t,n){return Kt.call(t).slice(8,-1)!=="Function"&&(t=e(t)),E(function(e,n){return e&&t(n)},!0,n)}),exports.unique=M=function(e){var t,n,r,i;t=[];if(Kt.call(e).slice(8,-1)==="Object")for(n in e)r=e[n],Yt(r,t)||t.push(r);else for(n=0,i=e.length;n<i;++n)r=e[n],Yt(r,t)||t.push(r);return Kt.call(e).slice(8,-1)==="String"?t.join(""):t},exports.sort=_=function(e){return e.concat().sort(function(e,t){switch(!1){case!(e>t):return 1;case!(e<t):return-1;default:return 0}})},exports.sortBy=D=Gt(function(e,t){return t.length?t.concat().sort(e):[]}),exports.compare=P=Gt(function(e,t,n){switch(!1){case!(e(t)>e(n)):return 1;case!(e(t)<e(n)):return-1;default:return 0}}),exports.sum=H=function(e){var t,n,r,i;t=0;if(Kt.call(e).slice(8,-1)==="Object")for(n in e)r=e[n],t+=r;else for(n=0,i=e.length;n<i;++n)r=e[n],t+=r;return t},exports.product=B=function(e){var t,n,r,i;t=1;if(Kt.call(e).slice(8,-1)==="Object")for(n in e)r=e[n],t*=r;else for(n=0,i=e.length;n<i;++n)r=e[n],t*=r;return t},exports.mean=F=exports.average=j=function(e){return H(e)/v(e)},exports.concat=I=function(e){return E(g,[],e)},exports.concatMap=q=Gt(function(e,t){return I(n(e,t))}),exports.listToObj=R=function(e){var t,n,r,i;t={};for(n=0,r=e.length;n<r;++n)i=e[n],t[i[0]]=i[1];return t},exports.maximum=U=function(e){return x(gt,e)},exports.minimum=z=function(e){return x(yt,e)},exports.scan=X=exports.scanl=W=Gt(function(e,t,n){var r,i;return r=t,Kt.call(n).slice(8,-1)==="Object"?[t].concat(function(){var t,s,o=[];for(t in s=n)i=s[t],o.push(r=e(r,i));return o}()):[t].concat(function(){var t,s,o,u=[];for(t=0,o=(s=n).length;t<o;++t)i=s[t],u.push(r=e(r,i));return u}())}),exports.scan1=$=exports.scanl1=V=Gt(function(e,t){return X(e,t[0],t.slice(1))}),exports.scanr=J=Gt(function(e,t,n){return n.reverse(),X(e,t,n).reverse()}),exports.scanr1=K=Gt(function(e,t){return t.reverse(),X(e,t[0],t.slice(1)).reverse()}),exports.replicate=Q=Gt(function(e,t){var n,r;n=[],r=0;for(;r<e;++r)n.push(t);return n}),exports.take=G=Gt(function(e,t){switch(!1){case!(e<=0):return Kt.call(t).slice(8,-1)==="String"?"":[];case!!t.length:return t;default:return t.slice(0,e)}}),exports.drop=Y=Gt(function(e,t){switch(!1){case!(e<=0):return t;case!!t.length:return t;default:return t.slice(e)}}),exports.splitAt=Z=Gt(function(e,t){return[G(e,t),Y(e,t)]}),exports.takeWhile=et=Gt(function(t,n){var r,i,s,o;if(!n.length)return n;Kt.call(t).slice(8,-1)!=="Function"&&(t=e(t)),r=[];for(i=0,s=n.length;i<s;++i){o=n[i];if(!t(o))break;r.push(o)}return Kt.call(n).slice(8,-1)==="String"?r.join(""):r}),exports.dropWhile=tt=Gt(function(t,n){var r,i,s,o;if(!n.length)return n;Kt.call(t).slice(8,-1)!=="Function"&&(t=e(t)),r=0;for(i=0,s=n.length;i<s;++i){o=n[i];if(!t(o))break;++r}return Y(r,n)}),exports.span=nt=Gt(function(e,t){return[et(e,t),tt(e,t)]}),exports.breakIt=rt=Gt(function(e,t){return nt(Zt([en,e]),t)}),exports.zip=it=Gt(function(e,t){var n,r,i,s,o,u,a,f,l;n=[];for(r=0,s=(i=[e,t]).length;r<s;++r){o=i[r];for(u=0,a=o.length;u<a;++u)f=o[u],r===0&&n.push([]),(l=n[u])!=null&&l.push(f)}return n}),exports.zipWith=st=Gt(function(t,n,r){var i,s,o,u,a=[];Kt.call(t).slice(8,-1)!=="Function"&&(t=e(t));if(!n.length||!r.length)return[];for(i=0,o=(s=it.call(this,n,r)).length;i<o;++i)u=s[i],a.push(t.apply(this,u));return a}),exports.zipAll=ot=function(){var e,t,n,r,i,s,o,u,a;e=Qt.call(arguments),t=[];for(n=0,r=e.length;n<r;++n){i=e[n];for(s=0,o=i.length;s<o;++s)u=i[s],n===0&&t.push([]),(a=t[s])!=null&&a.push(u)}return t},exports.zipAllWith=ut=function(t){var n,r,i,s,o,u=[];n=Qt.call(arguments,1),Kt.call(t).slice(8,-1)!=="Function"&&(t=e(t));if(!n[0].length||!n[1].length)return[];for(r=0,s=(i=ot.apply(this,n)).length;r<s;++r)o=i[r],u.push(t.apply(this,o));return u},exports.compose=at=function(){var e;return e=Qt.call(arguments),function(){var t,n,r,i,s;t=arguments;for(n=0,i=(r=e).length;n<i;++n)s=r[n],t=[s.apply(this,t)];return t[0]}},exports.curry=ft=function(e){return Gt(e)},exports.id=lt=function(e){return e},exports.flip=ct=Gt(function(e,t,n){return e(n,t)}),exports.fix=ht=function(e){return function(t,n){return function(){return e(t(t)).apply(null,arguments)}}(function(t,n){return function(){return e(t(t)).apply(null,arguments)}})},exports.lines=pt=function(e){return e.length?e.split("\n"):[]},exports.unlines=dt=function(e){return e.join("\n")},exports.words=vt=function(e){return e.length?e.split(/[ ]+/):[]},exports.unwords=mt=function(e){return e.join(" ")},exports.max=gt=Gt(function(e,t){return e>t?e:t}),exports.min=yt=Gt(function(e,t){return e>t?t:e}),exports.negate=bt=function(e){return-e},exports.abs=wt=Math.abs,exports.signum=Et=function(e){switch(!1){case!(e<0):return-1;case!(e>0):return 1;default:return 0}},exports.quot=St=Gt(function(e,t){return~~(e/t)}),exports.rem=xt=Gt(function(e,t){return e%t}),exports.div=Tt=Gt(function(e,t){return Math.floor(e/t)}),exports.mod=Nt=Gt(function(e,t){var n;return(e%(n=t)+n)%n}),exports.recip=Ct=function(e){return 1/e},exports.pi=kt=Math.PI,exports.tau=Lt=kt*2,exports.exp=At=Math.exp,exports.sqrt=Ot=Math.sqrt,exports.ln=Mt=Math.log,exports.pow=_t=Gt(function(e,t){return Math.pow(e,t)}),exports.sin=Dt=Math.sin,exports.tan=Pt=Math.tan,exports.cos=Ht=Math.cos,exports.asin=Bt=Math.asin,exports.acos=jt=Math.acos,exports.atan=Ft=Math.atan,exports.atan2=It=Gt(function(e,t){return Math.atan2(e,t)}),exports.truncate=qt=function(e){return~~e},exports.round=Rt=Math.round,exports.ceiling=Ut=Math.ceil,exports.floor=zt=Math.floor,exports.isItNaN=Wt=function(e){return e!==e},exports.even=Xt=function(e){return e%2===0},exports.odd=Vt=function(e){return e%2!==0},exports.gcd=$t=Gt(function(e,t){var n;e=Math.abs(e),t=Math.abs(t);while(t!==0)n=e%t,e=t,t=n;return e}),exports.lcm=Jt=Gt(function(e,t){return Math.abs(Math.floor(e/$t(e,t)*t))}),exports.installPrelude=function(e){var t;if((t=e.prelude)==null||!t.isInstalled)tn(e,exports),e.prelude.isInstalled=!0},exports.prelude=exports,exports}()
@@ -1,5 +1,5 @@
1
1
  module LiveScript
2
2
  module Rails
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: livescript-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-13 00:00:00.000000000 -05:00
12
+ date: 2012-10-16 00:00:00.000000000 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: execjs
17
- requirement: &2153561800 !ruby/object:Gem::Requirement
17
+ requirement: &2170084300 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2153561800
25
+ version_requirements: *2170084300
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: livescript
28
- requirement: &2153712940 !ruby/object:Gem::Requirement
28
+ requirement: &2170301280 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2153712940
36
+ version_requirements: *2170301280
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: railties
39
- requirement: &2153820080 !ruby/object:Gem::Requirement
39
+ requirement: &2170551140 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0'
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *2153820080
47
+ version_requirements: *2170551140
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: tilt
50
- requirement: &2153889360 !ruby/object:Gem::Requirement
50
+ requirement: &2170608040 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,7 +55,7 @@ dependencies:
55
55
  version: '0'
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *2153889360
58
+ version_requirements: *2170608040
59
59
  description: LiveScript adapter for the Rails asset pipeline.
60
60
  email:
61
61
  - vic.borja@gmail.com
@@ -69,6 +69,7 @@ files:
69
69
  - README.markdown
70
70
  - Rakefile
71
71
  - lib/assets/javascripts/livescript.js.erb
72
+ - lib/assets/javascripts/prelude.js
72
73
  - lib/livescript-rails.rb
73
74
  - lib/livescript/rails/engine.rb
74
75
  - lib/livescript/rails/template_handler.rb