ruby2js 2.1.0 → 2.1.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: af96d4a5579bf41a109fbf248e6639302113cd01
4
- data.tar.gz: 90062d392b1cb821f403b3e40f751fd4bcc3cb85
3
+ metadata.gz: 19d8eddc8012fef1657da5408d86e0be5b6d3aac
4
+ data.tar.gz: 2a7a41d3e3a64965c32ea625273cf754bea743a8
5
5
  SHA512:
6
- metadata.gz: e03b33dc464a0852d874a4c0c8815d9252c7df7c81d08a6ae4dc178b68db16130c9782512fedeb895937f2b2ade2d6f76a75206324d3680b4ec9cbf05233de3a
7
- data.tar.gz: 5ba34dc016fd19d17c0b39541c7127b7a117e2aea6ad9bca920e8d2eeb500bab7fd573d74ca1dd797a3382c70dac519fe8ee0dbe299f10f47407efa7d4ee9cf8
6
+ metadata.gz: 9ad39b7ca03a48876499314942e22da4fd636512c2b793e23c1cd4b13d96749e3a9612c887c972a02493beec9898e6f6cab9635fff5f52adb420db22f1749dec
7
+ data.tar.gz: 5695f7a816be85ffd21756553ccb9917d18b723e8c39c9c3647fcd7fa6e3242135a6f64b8e8c41a3faea98201d8c50438ea94ca7bcfaaf1d8194757bd316b694
@@ -380,13 +380,16 @@ module Ruby2JS
380
380
  hash['nativeOn']['input'] ||
381
381
  hash['nativeOn']['change']
382
382
 
383
- if value and value.type == :ivar and !onChange
383
+ if value and value.type == :ivar
384
384
  hash['domProps']['value'] ||= value
385
- hash['on']['input'] ||=
386
- s(:block, s(:send, nil, :proc), s(:args, s(:arg, :event)),
387
- s(:ivasgn, value.children.first,
388
- s(:attr, s(:attr, s(:lvar, :event), :target), :value)))
389
385
  hash[:attrs].delete('value')
386
+
387
+ if not onChange
388
+ hash['on']['input'] ||=
389
+ s(:block, s(:send, nil, :proc), s(:args, s(:arg, :event)),
390
+ s(:ivasgn, value.children.first,
391
+ s(:attr, s(:attr, s(:lvar, :event), :target), :value)))
392
+ end
390
393
  end
391
394
 
392
395
  if not value and not onChange and tag == 'input'
@@ -395,10 +398,14 @@ module Ruby2JS
395
398
 
396
399
  if checked and checked.type == :ivar
397
400
  hash['domProps']['checked'] ||= checked
398
- hash['on']['click'] ||=
399
- s(:block, s(:send, nil, :proc), s(:args),
400
- s(:ivasgn,checked.children.first,
401
- s(:send, checked, :!)))
401
+ hash[:attrs].delete('checked')
402
+
403
+ if not onChange
404
+ hash['on']['click'] ||=
405
+ s(:block, s(:send, nil, :proc), s(:args),
406
+ s(:ivasgn,checked.children.first,
407
+ s(:send, checked, :!)))
408
+ end
402
409
  end
403
410
  end
404
411
  end
@@ -2,7 +2,7 @@ module Ruby2JS
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 2
4
4
  MINOR = 1
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/ruby2js.gemspec CHANGED
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: ruby2js 2.1.0 ruby lib
2
+ # stub: ruby2js 2.1.1 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "ruby2js".freeze
6
- s.version = "2.1.0"
6
+ s.version = "2.1.1"
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]
10
10
  s.authors = ["Sam Ruby".freeze]
11
- s.date = "2017-09-03"
11
+ s.date = "2017-09-06"
12
12
  s.description = " The base package maps Ruby syntax to JavaScript semantics.\n Filters may be provided to add Ruby-specific or framework specific\n behavior.\n".freeze
13
13
  s.email = "rubys@intertwingly.net".freeze
14
14
  s.files = ["README.md".freeze, "lib/ruby2js".freeze, "lib/ruby2js.rb".freeze, "lib/ruby2js/cgi.rb".freeze, "lib/ruby2js/converter".freeze, "lib/ruby2js/converter.rb".freeze, "lib/ruby2js/converter/arg.rb".freeze, "lib/ruby2js/converter/args.rb".freeze, "lib/ruby2js/converter/array.rb".freeze, "lib/ruby2js/converter/begin.rb".freeze, "lib/ruby2js/converter/block.rb".freeze, "lib/ruby2js/converter/blockpass.rb".freeze, "lib/ruby2js/converter/boolean.rb".freeze, "lib/ruby2js/converter/break.rb".freeze, "lib/ruby2js/converter/case.rb".freeze, "lib/ruby2js/converter/casgn.rb".freeze, "lib/ruby2js/converter/class.rb".freeze, "lib/ruby2js/converter/const.rb".freeze, "lib/ruby2js/converter/cvar.rb".freeze, "lib/ruby2js/converter/cvasgn.rb".freeze, "lib/ruby2js/converter/def.rb".freeze, "lib/ruby2js/converter/defined.rb".freeze, "lib/ruby2js/converter/defs.rb".freeze, "lib/ruby2js/converter/dstr.rb".freeze, "lib/ruby2js/converter/for.rb".freeze, "lib/ruby2js/converter/hash.rb".freeze, "lib/ruby2js/converter/if.rb".freeze, "lib/ruby2js/converter/in.rb".freeze, "lib/ruby2js/converter/ivar.rb".freeze, "lib/ruby2js/converter/ivasgn.rb".freeze, "lib/ruby2js/converter/kwbegin.rb".freeze, "lib/ruby2js/converter/literal.rb".freeze, "lib/ruby2js/converter/logical.rb".freeze, "lib/ruby2js/converter/masgn.rb".freeze, "lib/ruby2js/converter/module.rb".freeze, "lib/ruby2js/converter/next.rb".freeze, "lib/ruby2js/converter/nil.rb".freeze, "lib/ruby2js/converter/nthref.rb".freeze, "lib/ruby2js/converter/opasgn.rb".freeze, "lib/ruby2js/converter/prototype.rb".freeze, "lib/ruby2js/converter/regexp.rb".freeze, "lib/ruby2js/converter/return.rb".freeze, "lib/ruby2js/converter/self.rb".freeze, "lib/ruby2js/converter/send.rb".freeze, "lib/ruby2js/converter/super.rb".freeze, "lib/ruby2js/converter/sym.rb".freeze, "lib/ruby2js/converter/undef.rb".freeze, "lib/ruby2js/converter/until.rb".freeze, "lib/ruby2js/converter/untilpost.rb".freeze, "lib/ruby2js/converter/var.rb".freeze, "lib/ruby2js/converter/vasgn.rb".freeze, "lib/ruby2js/converter/while.rb".freeze, "lib/ruby2js/converter/whilepost.rb".freeze, "lib/ruby2js/converter/xstr.rb".freeze, "lib/ruby2js/execjs.rb".freeze, "lib/ruby2js/filter".freeze, "lib/ruby2js/filter/angular-resource.rb".freeze, "lib/ruby2js/filter/angular-route.rb".freeze, "lib/ruby2js/filter/angularrb.rb".freeze, "lib/ruby2js/filter/camelCase.rb".freeze, "lib/ruby2js/filter/functions.rb".freeze, "lib/ruby2js/filter/jquery.rb".freeze, "lib/ruby2js/filter/minitest-jasmine.rb".freeze, "lib/ruby2js/filter/react.rb".freeze, "lib/ruby2js/filter/require.rb".freeze, "lib/ruby2js/filter/return.rb".freeze, "lib/ruby2js/filter/rubyjs.rb".freeze, "lib/ruby2js/filter/strict.rb".freeze, "lib/ruby2js/filter/underscore.rb".freeze, "lib/ruby2js/filter/vue.rb".freeze, "lib/ruby2js/rails.rb".freeze, "lib/ruby2js/serializer.rb".freeze, "lib/ruby2js/sinatra.rb".freeze, "lib/ruby2js/version.rb".freeze, "ruby2js.gemspec".freeze]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby2js
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Ruby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-03 00:00:00.000000000 Z
11
+ date: 2017-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser