tao_on_rails 0.4.3 → 0.4.4

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: d309da59b2b2ea5952c511f4702ba742820de4e1
4
- data.tar.gz: e0bded6341243ff51aca7036ac9c80cdb6d00ccd
3
+ metadata.gz: ee5c1ce74ea9c153ec454cf382fb5a6d43986f17
4
+ data.tar.gz: 13aa04bbd3a5241ae07645c85f1c995cd63293da
5
5
  SHA512:
6
- metadata.gz: 372be4e55958f14e566bc3febaffcbfee13d59f5426d3bda7c924988f0d6dc413ece7e1b72505babd2cd05ced003c9e5bffb84266e1eb18b9894185ddc51e2a1
7
- data.tar.gz: 6d714d2b9cce76a7523abe3c9d89048b6e32efe2c83e5a698d30681dfcd7efcd25c2dc77eda248465681ca8dde046cb1a47b1e9d449248597376e059818fc898
6
+ metadata.gz: d45f90e9408f63f357b98c11bb72758bd5dba94ca7faac1b766ffa1110246e29fe8f35cb776098ed1d91e591827f5c7ed7a9356db2de4c9c6591203e91a0f30f
7
+ data.tar.gz: ba4ce83888594bf2985b26c7caca07d460a7370166043ddd6301e48f996ec9e95cb2e2eb63a733d4a7b7831d210fc5a360f2049e7242c68de1ed4fc0a578c194
data/.blade.yml CHANGED
@@ -18,3 +18,23 @@ build:
18
18
  - tao.js
19
19
  - tao.css
20
20
  path: dist
21
+
22
+ plugins:
23
+ sauce_labs:
24
+ tunnel_timeout: 120
25
+ browsers:
26
+ Google Chrome:
27
+ os: Mac, Windows
28
+ version: -2
29
+ Firefox:
30
+ os: Mac, Windows
31
+ version: -2
32
+ Safari:
33
+ platform: Mac
34
+ version: -3
35
+ Microsoft Edge:
36
+ version: -2
37
+ iPhone:
38
+ version: [9.3]
39
+ Motorola Droid 4 Emulator:
40
+ version: [5.1, 4.4]
data/.travis.yml CHANGED
@@ -1,5 +1,10 @@
1
1
  sudo: false
2
2
  language: ruby
3
+ cache: bundler
3
4
  rvm:
4
5
  - 2.3.1
6
+
5
7
  before_install: gem install bundler -v 1.13.1
8
+
9
+ script:
10
+ - bundle exec blade ci
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Tao on Rails
1
+ # Tao on Rails [![Build Status](https://travis-ci.org/mycolorway/tao_on_rails.svg?branch=master)](https://travis-ci.org/mycolorway/tao_on_rails)
2
2
 
3
3
  [Ruby on Rails](http://rubyonrails.org/) lacks a recommended way to structure your frontend code for many years. Tao on Rails is the framework to fill the gap which will modularize your page with the new [Custom Elements v1](https://developers.google.com/web/fundamentals/getting-started/primers/customelements) API.
4
4
 
@@ -24,7 +24,7 @@ TODO: Write usage instructions here.
24
24
 
25
25
  ## Contributing
26
26
 
27
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/tao_on_rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
27
+ Bug reports and pull requests are welcome on GitHub at https://github.com/mycolorway/tao_on_rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
28
28
 
29
29
 
30
30
  ## License
data/dist/tao.js CHANGED
@@ -27746,8 +27746,6 @@ return jQuery;
27746
27746
  return this;
27747
27747
  };
27748
27748
 
27749
- TaoModule.prototype._properties = {};
27750
-
27751
27749
  TaoModule.get = function(propertyName, getMethod) {
27752
27750
  return Object.defineProperty(this.prototype, propertyName, {
27753
27751
  get: getMethod,
@@ -27795,9 +27793,12 @@ return jQuery;
27795
27793
  if (options == null) {
27796
27794
  options = {};
27797
27795
  }
27798
- for (key in options) {
27799
- val = options[key];
27800
- this[key] = val;
27796
+ this._properties = {};
27797
+ if (typeof options === 'object') {
27798
+ for (key in options) {
27799
+ val = options[key];
27800
+ this[key] = val;
27801
+ }
27801
27802
  }
27802
27803
  this._init();
27803
27804
  }
@@ -31001,6 +31002,10 @@ var Deferred = void 0;
31001
31002
 
31002
31003
  _Class.observedAttributes = [];
31003
31004
 
31005
+ _Class.get('jq', function() {
31006
+ return $(this);
31007
+ });
31008
+
31004
31009
  _Class.prototype.connectedCallback = function() {
31005
31010
  if (!this.initialized) {
31006
31011
  this.classList.add('tao-component');
@@ -72,6 +72,9 @@ TaoComponentBasedOn = (superClass = 'HTMLElement') ->
72
72
 
73
73
  @observedAttributes: []
74
74
 
75
+ @get 'jq', ->
76
+ $(@)
77
+
75
78
  connectedCallback: ->
76
79
  unless @initialized
77
80
  @classList.add 'tao-component'
@@ -1,5 +1,5 @@
1
1
  module TaoOnRails
2
2
  module Rails
3
- VERSION = "0.4.3"
3
+ VERSION = "0.4.4"
4
4
  end
5
5
  end
data/tao_on_rails.gemspec CHANGED
@@ -30,4 +30,5 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency "rake", "~> 10.0"
31
31
  spec.add_development_dependency "minitest", "~> 5.0"
32
32
  spec.add_development_dependency "blade", "~> 0.7.0"
33
+ spec.add_development_dependency "blade-sauce_labs_plugin", "~> 0.6.2"
33
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tao_on_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siyuan Liu
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-12-25 00:00:00.000000000 Z
12
+ date: 2016-12-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: turbolinks
@@ -123,6 +123,20 @@ dependencies:
123
123
  - - "~>"
124
124
  - !ruby/object:Gem::Version
125
125
  version: 0.7.0
126
+ - !ruby/object:Gem::Dependency
127
+ name: blade-sauce_labs_plugin
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - "~>"
131
+ - !ruby/object:Gem::Version
132
+ version: 0.6.2
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - "~>"
138
+ - !ruby/object:Gem::Version
139
+ version: 0.6.2
126
140
  description: Ruby on Rails lacks a recommended way to structure your frontend code
127
141
  for many years. Tao on Rails is the framework to fill the gap which will modularize
128
142
  your page with the new Custom Elements v1 API.