polymer-rails 1.2.0 → 1.2.1

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: e8c38623243414f29f89f584c13700ba8adc2fc7
4
- data.tar.gz: eba0c1f853de2027d17d9e49ab03d1e440b6783c
3
+ metadata.gz: bdfb4c4cc1986eb32eb6136a59cba706e108335e
4
+ data.tar.gz: da0b392603cae63902d559883ceb952cfa2ac958
5
5
  SHA512:
6
- metadata.gz: 15fe59bdd479ab33e02c5c355efce981a17eaec6dbea7d4e892757def9fc88980e7929b0609366deddbb6150824229d989e1203e9cf82741c86710d100f7382d
7
- data.tar.gz: 1d589c9a4cb9d657989d5aecea564623f7ebeb309d0bede6510e2b56d9c436cb3ce884eb6e237c49d3d64b6b5de6faa874e4fd87e51b22f5d8c79bc336f05b34
6
+ metadata.gz: e4cf2837e0d1099643f952859d3f47ee94f3e2ffe77b627efab834ff5257b32692c75c77ac40d25f58deb7a141d477c674b61c4e718b591b4e66c2a588c3ed3e
7
+ data.tar.gz: 0bb006500dd27fcd17b232e9caa6b8c24ced516e4279d469710b813dd2a46fa5393f6a20960591c686001b33c217232260ef40be41bcf7854e937f671cf27629
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polymer",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "main": [
5
5
  "polymer.html"
6
6
  ],
@@ -1,6 +1,6 @@
1
1
  BUILD LOG
2
2
  ---------
3
- Build Time: 2015-10-22T17:41:58-0700
3
+ Build Time: 2015-10-29T15:32:35-0700
4
4
 
5
5
  NODEJS INFORMATION
6
6
  ==================
@@ -9,19 +9,19 @@ gulp: 3.9.0
9
9
  gulp-audit: 1.0.0
10
10
  gulp-rename: 1.2.2
11
11
  gulp-vulcanize: 6.0.1
12
- polyclean: 1.2.0
13
12
  lazypipe: 0.2.4
14
- run-sequence: 1.1.4
13
+ polyclean: 1.2.0
15
14
  web-component-tester: 3.3.29
15
+ run-sequence: 1.1.4
16
16
  del: 1.2.1
17
17
  gulp-replace: 0.5.4
18
18
 
19
19
  REPO REVISIONS
20
20
  ==============
21
- polymer: ec6b18f3e4ff414e6f3692b6641c7506c910546c
21
+ polymer: 5a755342ef6c1bd404d3b4861c3b82d10d57b2ec
22
22
 
23
23
  BUILD HASHES
24
24
  ============
25
- polymer-mini.html: d807c77658cac260deb34187c1351be45b414679
26
- polymer-micro.html: fe27c039dcd2aef07d2b9065ac30a5fd9448d887
27
- polymer.html: cecea00d47a8682ec01d486a3ac0d45da51eaf24
25
+ polymer-mini.html: 88f650dd1b5691577f998049967a6dc9dc456e48
26
+ polymer-micro.html: 2261be50c3d6dfe7bd1ae9051a1115f409ef64c3
27
+ polymer.html: 0da5e9c32e9ce759647ba6bc64618bb772890acd
@@ -576,7 +576,7 @@ debouncer.stop();
576
576
  }
577
577
  }
578
578
  });
579
- Polymer.version = '1.2.0';
579
+ Polymer.version = '1.2.1';
580
580
  Polymer.Base._addFeature({
581
581
  _registerFeatures: function () {
582
582
  this._prepIs();
@@ -395,6 +395,17 @@ DomApi.prototype = {
395
395
  flush: function () {
396
396
  Polymer.dom.flush();
397
397
  },
398
+ deepContains: function (node) {
399
+ if (this.node.contains(node)) {
400
+ return true;
401
+ }
402
+ var n = node;
403
+ var wrappedDocument = wrap(document);
404
+ while (n && n !== wrappedDocument && n !== this.node) {
405
+ n = Polymer.dom(n).parentNode || n.host;
406
+ }
407
+ return n === this.node;
408
+ },
398
409
  _lazyDistribute: function (host) {
399
410
  if (host.shadyRoot && host.shadyRoot._distributionClean) {
400
411
  host.shadyRoot._distributionClean = false;
@@ -1359,7 +1359,7 @@ elt[n] = props[n];
1359
1359
  return elt;
1360
1360
  },
1361
1361
  isLightDescendant: function (node) {
1362
- return this.contains(node) && Polymer.dom(this).getOwnerRoot() === Polymer.dom(node).getOwnerRoot();
1362
+ return this !== node && this.contains(node) && Polymer.dom(this).getOwnerRoot() === Polymer.dom(node).getOwnerRoot();
1363
1363
  },
1364
1364
  isLocalDescendant: function (node) {
1365
1365
  return this.root === Polymer.dom(node).getOwnerRoot();
@@ -1957,7 +1957,7 @@ this._handlers = [];
1957
1957
  Polymer.Base._addFeature({
1958
1958
  notifyPath: function (path, value, fromAbove) {
1959
1959
  var info = {};
1960
- path = this._get(path, this, info);
1960
+ this._get(path, this, info);
1961
1961
  this._notifyPath(info.path, value, fromAbove);
1962
1962
  },
1963
1963
  _notifyPath: function (path, value, fromAbove) {
@@ -2074,9 +2074,9 @@ if (effect.value === path || effect.value.indexOf(path + '.') === 0) {
2074
2074
  Polymer.Bind._annotationEffect.call(this, path, value, effect);
2075
2075
  } else if (path.indexOf(effect.value + '.') === 0 && !effect.negate) {
2076
2076
  var node = this._nodes[effect.index];
2077
- if (node && node.notifyPath) {
2077
+ if (node && node._notifyPath) {
2078
2078
  var p = this._fixPath(effect.name, effect.value, path);
2079
- node.notifyPath(p, value, true);
2079
+ node._notifyPath(p, value, true);
2080
2080
  }
2081
2081
  }
2082
2082
  },
@@ -2116,9 +2116,9 @@ _notifyBoundPaths: function (path, value) {
2116
2116
  for (var a in this._boundPaths) {
2117
2117
  var b = this._boundPaths[a];
2118
2118
  if (path.indexOf(a + '.') == 0) {
2119
- this.notifyPath(this._fixPath(b, a, path), value);
2119
+ this._notifyPath(this._fixPath(b, a, path), value);
2120
2120
  } else if (path.indexOf(b + '.') == 0) {
2121
- this.notifyPath(this._fixPath(a, b, path), value);
2121
+ this._notifyPath(this._fixPath(a, b, path), value);
2122
2122
  }
2123
2123
  }
2124
2124
  },
@@ -2386,7 +2386,7 @@ _rx: {
2386
2386
  comments: /\/\*[^*]*\*+([^\/*][^*]*\*+)*\//gim,
2387
2387
  port: /@import[^;]*;/gim,
2388
2388
  customProp: /(?:^|[\s;])--[^;{]*?:[^{};]*?(?:[;\n]|$)/gim,
2389
- mixinProp: /(?:^|[\s;])--[^;{]*?:[^{;]*?{[^}]*?}(?:[;\n]|$)?/gim,
2389
+ mixinProp: /(?:^|[\s;])?--[^;{]*?:[^{;]*?{[^}]*?}(?:[;\n]|$)?/gim,
2390
2390
  mixinApply: /@apply[\s]*\([^)]*?\)[\s]*(?:[;\n]|$)?/gim,
2391
2391
  varApply: /[^;:]*?:[^;]*var[^;]*(?:[;\n]|$)?/gim,
2392
2392
  keyframesRule: /^@[^\s]*keyframes/
@@ -3089,7 +3089,7 @@ props[i] = v;
3089
3089
  }
3090
3090
  },
3091
3091
  rx: {
3092
- VAR_ASSIGN: /(?:^|[;\n]\s*)(--[\w-]*?):\s*(?:([^;{]*)|{([^}]*)})(?:(?=[;\n])|$)/gi,
3092
+ VAR_ASSIGN: /(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:([^;{]*)|{([^}]*)})(?:(?=[;\s}])|$)/gi,
3093
3093
  MIXIN_MATCH: /(?:^|\W+)@apply[\s]*\(([^)]*)\)/i,
3094
3094
  VAR_MATCH: /(^|\W+)var\([\s]*([^,)]*)[\s]*,?[\s]*((?:[^,)]*)|(?:[^;]*\([^;)]*\)))[\s]*?\)/gi,
3095
3095
  VAR_CAPTURE: /\([\s]*(--[^,\s)]*)(?:,[\s]*(--[^,\s)]*))?(?:\)|,)/gi,
@@ -3624,9 +3624,12 @@ _pathEffectorImpl: function (path, value, fromAbove) {
3624
3624
  if (this._forwardParentPath) {
3625
3625
  if (path.indexOf(this._parentPropPrefix) === 0) {
3626
3626
  var subPath = path.substring(this._parentPropPrefix.length);
3627
+ var model = this._modelForPath(subPath);
3628
+ if (model in this._parentProps) {
3627
3629
  this._forwardParentPath(subPath, value);
3628
3630
  }
3629
3631
  }
3632
+ }
3630
3633
  Polymer.Base._pathEffector.call(this._templatized, path, value, fromAbove);
3631
3634
  },
3632
3635
  _constructorImpl: function (model, host) {
@@ -1,5 +1,5 @@
1
1
  module Polymer
2
2
  module Rails
3
- VERSION = "1.2.0"
3
+ VERSION = "1.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polymer-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Chaplinsky