ruby2js 2.1.15 → 2.1.16
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 +4 -4
- data/lib/ruby2js/filter/vue.rb +7 -2
- data/lib/ruby2js/version.rb +1 -1
- data/ruby2js.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c3e0fd70d2f51c0b27c6b55b36d63b99bc49774
|
4
|
+
data.tar.gz: 539d7e10453d45a2e3cf59cabba1a76fc7037afa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 602149742793de7c7222086801d60738e4b81f1f4aba27b862a08a17c23c0d7ec077ca1332cb18e63af982531e185ff11e3f2248ad502e2d76e74588e72bd593
|
7
|
+
data.tar.gz: 4f25296617d09ceffcb4f82354a9eaab754a61f0e8ac1566ea3e3f7f2ed9d98a807258615c39ab667aaf28cb1301f8a7bbc9d2a51dc2bfba307ae5c7bedf1cf8
|
data/lib/ruby2js/filter/vue.rb
CHANGED
@@ -619,7 +619,7 @@ module Ruby2JS
|
|
619
619
|
end
|
620
620
|
|
621
621
|
if value and (not test or
|
622
|
-
test.is_a? Symbol or [:ivar, :cvar].include? test.type)
|
622
|
+
test.is_a? Symbol or [:ivar, :cvar, :self].include? test.type)
|
623
623
|
then
|
624
624
|
hash[:domProps]['value'] ||= value
|
625
625
|
hash[:domProps]['textContent'] ||= value if tag == 'textarea'
|
@@ -639,6 +639,8 @@ module Ruby2JS
|
|
639
639
|
assign = s(:ivasgn, value.children.first, update)
|
640
640
|
elsif value.type == :cvar
|
641
641
|
assign = s(:cvasgn, value.children.first, update)
|
642
|
+
elsif value.type == :send and value.children.first == nil
|
643
|
+
assign = value.updated :lvasgn, [value.children[1], update]
|
642
644
|
else
|
643
645
|
assign = value.updated nil, [value.children.first,
|
644
646
|
"#{value.children[1]}=", update]
|
@@ -663,7 +665,7 @@ module Ruby2JS
|
|
663
665
|
end
|
664
666
|
|
665
667
|
if checked and (not test or
|
666
|
-
test.is_a? Symbol or [:ivar, :cvar].include? test.type)
|
668
|
+
test.is_a? Symbol or [:ivar, :cvar, :self].include? test.type)
|
667
669
|
then
|
668
670
|
hash[:domProps]['checked'] ||= checked
|
669
671
|
hash[:attrs].delete('checked')
|
@@ -682,6 +684,9 @@ module Ruby2JS
|
|
682
684
|
assign = s(:ivasgn, checked.children.first, update)
|
683
685
|
elsif checked.type == :cvar
|
684
686
|
assign = s(:cvasgn, checked.children.first, update)
|
687
|
+
elsif checked.type == :send and checked.children.first == nil
|
688
|
+
assign = checked.updated :lvasgn, [checked.children[1],
|
689
|
+
update]
|
685
690
|
else
|
686
691
|
assign = checked.updated nil, [checked.children.first,
|
687
692
|
"#{checked.children[1]}=", update]
|
data/lib/ruby2js/version.rb
CHANGED
data/ruby2js.gemspec
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: ruby2js 2.1.
|
2
|
+
# stub: ruby2js 2.1.16 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "ruby2js".freeze
|
6
|
-
s.version = "2.1.
|
6
|
+
s.version = "2.1.16"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib".freeze]
|