rubinius-processor 2.2.1 → 2.3.0

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: b21e628d9d8a47b416fa70c733a2224ee71112cb
4
- data.tar.gz: d08f54f593e6236c8cbe071f39a838d786ce43df
3
+ metadata.gz: 2f50279a01528957e57428b64bf31ab38ff119e2
4
+ data.tar.gz: 40af1e15a1f23f90e3b6b395725eea2f3351bf36
5
5
  SHA512:
6
- metadata.gz: 11b10de78969222afa13b801d286b469f5ed81bf5edb15293f9eafac665ff19af154810a3656db2b5e6ea45172926efbf78bdc68ef9763af5c601e9ce1bd1dab
7
- data.tar.gz: 000fa2538f0fe6fb9e87072f49e85f7533c89f0a6f621dc63206fd5d6b7281f71a674453c5b6a5eefd4a24f929b238a9c05ea942c5f73743cb00438bf43a7e3d
6
+ metadata.gz: 8fb6cfe00c297fe56104706bcf451eabb639c32e71d8e7aa15d094bb5247711f380407ff1f412182c2a8b5f5f55d4c47c19f13f07586fdd18e3a747d9e9dbf62
7
+ data.tar.gz: 18a0bce4f673e0f4412d39434f6b1fae0a5cec8fa270e35ab34b1b190cdfcd830c8bdf7ca51ccc8094b9be65a68166ab637e14ca231dfee318ed4600e0e58b1a
@@ -424,6 +424,19 @@ module CodeTools
424
424
  AST::OpAssignOr.new line, var, value
425
425
  end
426
426
 
427
+ def process_op_cdecl(line, var, value, op)
428
+ op_value = case op
429
+ when :and
430
+ AST::And.new line, var, value
431
+ when :or
432
+ AST::Or.new line, var, value
433
+ else
434
+ args = AST::ArrayLiteral.new line, [value]
435
+ AST::SendWithArguments.new line, var, op, args
436
+ end
437
+ AST::ConstantAssignment.new line, var, op_value
438
+ end
439
+
427
440
  def process_opt_arg(line, arguments)
428
441
  AST::Block.new line, arguments
429
442
  end
@@ -1,5 +1,5 @@
1
1
  module CodeTools
2
2
  class Processor
3
- VERSION = "2.2.1"
3
+ VERSION = "2.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubinius-processor
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Shirai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-24 00:00:00.000000000 Z
11
+ date: 2014-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler