tao_on_rails 0.6.12 → 0.6.13

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
2
  SHA1:
3
- metadata.gz: 10be715fb0bd91375e156634cdb8438681e4eb0a
4
- data.tar.gz: 3f96fe46d35eef70468d5c63f4fcb094e9dc6e3c
3
+ metadata.gz: b17c9a72e2c8fd857c00248d58e026f2e9dbab1d
4
+ data.tar.gz: 20f8916e84cff0476d02524cfc456e6f3688967d
5
5
  SHA512:
6
- metadata.gz: 50d9a416c16e433f44d6e0e60ea58772200a89bc1179fa40f4bb94c1eb0fde9c9107153203a6ccb46bb3be13c235b5d5372b3dc426c13df1eabb17d215d4297a
7
- data.tar.gz: 2c8789ab457163c3a9cb61f5b34b8b03bd91bd03dc122a46d0f3169b720015098d2519520414157383d08b69f89f5e4bdf1373e992567584fa1c04088c159667
6
+ metadata.gz: 2bc81b9b32d0c62c67f1cd613c3635cb04484898323cbce2db6dde476244561b94f14846d5b54b1e27020eca1aec1a708914ceb7c6ff28cc6c9255ffee5851d2
7
+ data.tar.gz: 1d9a97885485d3a8f1f2fa548e3b0d079ea75bba28e1b0301a7929b76345dab8774099503acfb0a06f686f218fa07c0007098242910559462b91562eb586921e
@@ -55,6 +55,10 @@ class TaoApplication extends TaoModule
55
55
  @trigger 'page-request-end', [e.originalEvent?.data.xhr]
56
56
 
57
57
  .on 'turbolinks:before-render', (e) =>
58
+ # turbolinks render won't trigger patching of customElements polyfills
59
+ if customElements._internals
60
+ customElements._internals.disconnectTree document.body
61
+
58
62
  @trigger 'before-page-render', [$ e.originalEvent?.data.newBody]
59
63
 
60
64
  .on 'turbolinks:render', (e) =>
@@ -14,10 +14,10 @@ module Tao
14
14
  @page_id = [class_path, file_name, action].flatten.join('-')
15
15
  if (variants = options[:variants]).any?
16
16
  variants.each do |variant|
17
- template "coffee.erb", File.join("app/assets/javascripts", variant, name.pluralize, "#{action}_page.coffee")
17
+ template "coffee.erb", File.join("app/assets/javascripts", variant, name.pluralize, "#{action}.coffee")
18
18
  end
19
19
  else
20
- template "coffee.erb", File.join('app/assets/javascripts', name.pluralize, "#{action}_page.coffee")
20
+ template "coffee.erb", File.join('app/assets/javascripts', name.pluralize, "#{action}.coffee")
21
21
  end
22
22
  end
23
23
  end
@@ -14,10 +14,10 @@ module Tao
14
14
  @page_id = [class_path, file_name, action].flatten.join('-')
15
15
  if (variants = options[:variants]).any?
16
16
  variants.each do |variant|
17
- template "sass.erb", File.join("app/assets/stylesheets", variant, name.pluralize, "#{action}_page.scss")
17
+ template "sass.erb", File.join("app/assets/stylesheets", variant, name.pluralize, "#{action}.scss")
18
18
  end
19
19
  else
20
- template "sass.erb", File.join('app/assets/stylesheets', name.pluralize, "#{action}_page.scss")
20
+ template "sass.erb", File.join('app/assets/stylesheets', name.pluralize, "#{action}.scss")
21
21
  end
22
22
  end
23
23
  end
@@ -28,9 +28,9 @@ module TaoOnRails
28
28
  end
29
29
 
30
30
  if attributes[:class].present?
31
- attributes[:class] += " tao-page"
31
+ attributes[:class] += " tao-page #{tag}"
32
32
  else
33
- attributes[:class] = "tao-page"
33
+ attributes[:class] = "tao-page #{tag}"
34
34
  end
35
35
 
36
36
  content_tag(tag, capture(&block), attributes)
@@ -1,3 +1,3 @@
1
1
  module TaoOnRails
2
- VERSION = "0.6.12"
2
+ VERSION = "0.6.13"
3
3
  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.6.12
4
+ version: 0.6.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siyuan Liu
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-03-13 00:00:00.000000000 Z
12
+ date: 2017-03-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: turbolinks