ruby2js 2.1.15 → 2.1.16

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: 121d094f331f90e10cd459c3a1f4b22276582ff9
4
- data.tar.gz: db0ef09b980ac15ed08e009cf3a09191c4dd32b4
3
+ metadata.gz: 7c3e0fd70d2f51c0b27c6b55b36d63b99bc49774
4
+ data.tar.gz: 539d7e10453d45a2e3cf59cabba1a76fc7037afa
5
5
  SHA512:
6
- metadata.gz: '049e26bdf2fda7434b19073fd51a931f4b7655e134f7b73167015b7a175dfd8ad6e05719d63841ef115c909872bd623475b9c774a8d271ec4d997fd74a3c37ba'
7
- data.tar.gz: 8d4f7975ba5036f8e5b55b0db6a2ec2f4d457260451583a13d051506db8ac35acc659aec78323f7ec3a6c5d26b5a4d0b000507f85bc7c0d716fdab2c4fad2e22
6
+ metadata.gz: 602149742793de7c7222086801d60738e4b81f1f4aba27b862a08a17c23c0d7ec077ca1332cb18e63af982531e185ff11e3f2248ad502e2d76e74588e72bd593
7
+ data.tar.gz: 4f25296617d09ceffcb4f82354a9eaab754a61f0e8ac1566ea3e3f7f2ed9d98a807258615c39ab667aaf28cb1301f8a7bbc9d2a51dc2bfba307ae5c7bedf1cf8
@@ -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]
@@ -2,7 +2,7 @@ module Ruby2JS
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 2
4
4
  MINOR = 1
5
- TINY = 15
5
+ TINY = 16
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/ruby2js.gemspec CHANGED
@@ -1,9 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: ruby2js 2.1.15 ruby lib
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.15"
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]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby2js
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.15
4
+ version: 2.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Ruby