nanojs_rails 0.1.0 → 0.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e77664ea6888c2ed5b519cbb16889b2008589b22
4
- data.tar.gz: cd1cfdc99b7cbfcc0bf5cdb4f433fe6aebd935eb
2
+ SHA256:
3
+ metadata.gz: f80caae2bfd09ad1b362a4ebf033f2d5bc661e610151bc7d72410e10e5d5054c
4
+ data.tar.gz: ab392a084baad47c501d3d357200d15db5103e44b0b8783d79dee0afbe19c98b
5
5
  SHA512:
6
- metadata.gz: 5a3f4c8f40e33caa5c54905e0fba4617464e70af7dbdd16db2af0fbf0718be0fe581d0351da1e703cdb24bf974680c8f7ad72817c0f0ce28d9f5e8e529e51788
7
- data.tar.gz: babd5ccd5ae9b21cd7a15c8f2caa7397b1d5c0eb4463a881b3131f93aa67345b466e0ceb8a16569fc8156c2c6d63e0566dd6a55d544ec6942ce8a87f12dc1d00
6
+ metadata.gz: f944c95c4d95d7f42484f7158d36e0a67cef1c58013a048e0f726d13e7782f7f1be7bf5e72874f0d08036121395cfe4ed26ced9ceb987137121aa876c97957c2
7
+ data.tar.gz: c3cabff74b41c636b9ef91dfb8effb9fd73f4ffd29135ca8165b69232e927cffe53364fba5cf4b9fe745b6bd27cd13fa2f3b98077041537bb779966628b0f745
data/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # NanojsRails
2
2
 
3
- This Gem is not published in rubygems and not tested. Im working on it
3
+ [nanoJS](https://github.com/vladocar/nanoJS) for Rails assets pipeline.
4
4
 
5
5
  ## Installation
6
6
 
7
7
  Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'nanojs_rails'
10
+ gem 'nanojs_rails', '~> 0.1.0'
11
11
  ```
12
12
 
13
13
  And then execute:
@@ -1,3 +1,3 @@
1
1
  module NanojsRails
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -1 +1 @@
1
- var nano=function(t){"string"==typeof t&&(this.value=Array.prototype.slice.call(document.querySelectorAll(t))),"object"==typeof t&&(this.value=[t])};nano.prototype={eq:function(t){return this.value=[this.value[t]],this},each:function(t){return[].forEach.call(this.value,t),this},css:function(n){return this.each(function(t){t.style.cssText=t.style.cssText+n})},cssdom:function(e){return this.each(function(t){for(var n in e)t.style[n]=e[n]})},attr:function(n,e){return this.each(function(t){t.setAttribute(n,e)})},getAttr:function(t){return this.value[0].getAttribute(t)},removeAttr:function(n){return this.each(function(t){t.removeAttribute(n)})},animate:function(n,e,i,r,s,c,o,u,a,f){return this.each(function(t){t.style.cssText=t.style.cssText+"transition: all "+n+"s ease-in-out; transform: scale("+e+") rotate("+i+"deg) rotateX("+r+"deg) rotateY("+s+"deg) translate("+c+"px, "+o+"px) skew("+u+"deg, "+a+"deg); opacity:"+f+";"})},on:function(n,e){return this.each(function(t){t.addEventListener(n,e,!1)})},addClass:function(n){return this.each(function(t){t.classList?t.classList.add(n):t.className+=" "+n})},toggleClass:function(n){return this.each(function(t){t.classList.toggle(n)})},removeClass:function(n){return this.each(function(t){t.classList.remove(n)})},html:function(n){return this.each(function(t){t.innerHTML=n})},text:function(n){return this.each(function(t){t.innerText=n})},insertBefore:function(n){return this.each(function(t){t.insertAdjacentHTML("beforeBegin",n)})},insertAfter:function(n){return this.each(function(t){t.insertAdjacentHTML("afterEnd",n)})},insertFirst:function(n){return this.each(function(t){t.insertAdjacentHTML("afterBegin",n)})},insertLast:function(n){return this.each(function(t){t.insertAdjacentHTML("beforeEnd",n)})},empty:function(){return this.each(function(t){t.innerHTML=""})},offset:function(){return this.each(function(t){offset=t.getBoundingClientRect()})}};var $=function(t){return new nano(t)};
1
+ !function(a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):window.$=a()}(function(){var a=function(a){"string"==typeof a&&(this.value=Array.prototype.slice.call(document.querySelectorAll(a))),"object"==typeof a&&(this.value=[a])};return a.prototype={eq:function(a){return this.value=[this.value[a]],this},each:function(a){return[].forEach.call(this.value,a),this},css:function(a){return this.each(function(b){b.style.cssText+=a})},cssdom:function(a){return this.each(function(b){for(var c in a)b.style[c]=a[c]})},attr:function(b,a){return this.each(function(c){c.setAttribute(b,a)})},getAttr:function(a){return this.value[0].getAttribute(a)},removeAttr:function(a){return this.each(function(b){b.removeAttribute(a)})},animate:function(a,b,c,d,e,f,g,h,j,k){return this.each(function(l){l.style.cssText=l.style.cssText+"transition: all "+a+"s ease-in-out; transform: scale("+b+") rotate("+c+"deg) rotateX("+d+"deg) rotateY("+e+"deg) translate("+f+"px, "+g+"px) skew("+h+"deg, "+j+"deg); opacity:"+k+";"})},on:function(a,b){return this.each(function(c){c.addEventListener(a,b,!1)})},addClass:function(b){var c=b.split(" ");return this.each(function(a){for(var b=0;b<c.length;b++)a.classList?a.classList.add(c[a]):a.className+=" "+c[a]})},toggleClass:function(b){var c=b.split(" ");return this.each(function(a){for(var b=0;b<c.length;b++)a.classList?a.classList.toggle(c[b]):new RegExp("\\b"+c[b]+"\\b").test(a.className)?a.className=a.className.replace(new RegExp("\\b"+c[b]+"\\b","g"),""):a.className+=" "+c[b]})},removeClass:function(b){var c=b.split(" ");return this.each(function(a){for(var b=0;b<c.length;b++)a.classList?a.classList.remove(c[b]):a.className=a.className.replace(new RegExp("\\b"+c[b]+"\\b","g"),"")})},html:function(a){return"undefined"==typeof a?this.value[0].innerHTML:this.each(function(a){a.innerHTML=value})},text:function(a){return"undefined"==typeof a?this.value[0].innerText||this.value[0].textContent:this.each(function(a){a.innerText=value,a.textContent=value})},insertBefore:function(a){return this.each(function(b){b.insertAdjacentHTML("beforeBegin",a)})},insertAfter:function(a){return this.each(function(b){b.insertAdjacentHTML("afterEnd",a)})},insertFirst:function(a){return this.each(function(b){b.insertAdjacentHTML("afterBegin",a)})},insertLast:function(a){return this.each(function(b){b.insertAdjacentHTML("beforeEnd",a)})},empty:function(){return this.each(function(a){a.innerHTML=""})},parent:function(){return $(this.value[0].parentNode)},siblings:function(){return this.value=Array.prototype.filter.call(this.value[0].parentNode.children,a=>a!==this.value[0]),this},offset:function(){return this.each(function(a){offset=a.getBoundingClientRect()})},log:function(){console.log(this)}},function(b){return new a(b)}});
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nanojs_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Osotov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-04 00:00:00.000000000 Z
11
+ date: 2019-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.6.11
78
+ rubygems_version: 2.7.7
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: nanoJS with Rails assets pipeline