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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b17c9a72e2c8fd857c00248d58e026f2e9dbab1d
|
4
|
+
data.tar.gz: 20f8916e84cff0476d02524cfc456e6f3688967d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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}
|
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}
|
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}
|
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}
|
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)
|
data/lib/tao_on_rails/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2017-03-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: turbolinks
|