rubinius-ast 1.0.2 → 1.1.1
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/rubinius/ast/constants.rb +1 -1
- data/lib/rubinius/ast/control_flow.rb +1 -1
- data/lib/rubinius/ast/data.rb +1 -1
- data/lib/rubinius/ast/definitions.rb +1 -1
- data/lib/rubinius/ast/encoding.rb +1 -1
- data/lib/rubinius/ast/exceptions.rb +1 -1
- data/lib/rubinius/ast/file.rb +1 -1
- data/lib/rubinius/ast/grapher.rb +1 -1
- data/lib/rubinius/ast/literals.rb +1 -1
- data/lib/rubinius/ast/node.rb +1 -1
- data/lib/rubinius/ast/operators.rb +1 -1
- data/lib/rubinius/ast/self.rb +1 -1
- data/lib/rubinius/ast/sends.rb +9 -2
- data/lib/rubinius/ast/transforms.rb +3 -6
- data/lib/rubinius/ast/values.rb +1 -1
- data/lib/rubinius/ast/variables.rb +1 -1
- data/lib/rubinius/ast/version.rb +2 -2
- data/rubinius-ast.gemspec +1 -1
- metadata +19 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9ef6922256fee486d23ce4a2af486742011337b
|
4
|
+
data.tar.gz: 8588d243f10255f1b37764251385f452b6631026
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e0aadf5cf03a2fafc8d96fcc1049daa3bf372537b10bce802ee996f062e0c68ee7bd34af87ba7b1a389e4994b8bc9df9563f5106934bb96f7ff3a05d1f9b729
|
7
|
+
data.tar.gz: cab84fdedeac9bd453ba9d26b5275f50234db12a805aa0308434470c7074ad62ade7ab9179ace36a480644c921211d63cabed78a6d8f72470269d46ed44b45ec
|
data/lib/rubinius/ast/data.rb
CHANGED
data/lib/rubinius/ast/file.rb
CHANGED
data/lib/rubinius/ast/grapher.rb
CHANGED
data/lib/rubinius/ast/node.rb
CHANGED
data/lib/rubinius/ast/self.rb
CHANGED
data/lib/rubinius/ast/sends.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- encoding: us-ascii -*-
|
2
2
|
|
3
|
-
module Rubinius::
|
3
|
+
module Rubinius::ToolSets.current::ToolSet
|
4
4
|
module AST
|
5
5
|
class Send < Node
|
6
6
|
attr_accessor :receiver, :name, :privately, :block, :variable, :vcall_style
|
@@ -1000,7 +1000,14 @@ module Rubinius::ToolSet.current::TS
|
|
1000
1000
|
end
|
1001
1001
|
|
1002
1002
|
def to_sexp
|
1003
|
-
|
1003
|
+
args = @arguments.to_sexp
|
1004
|
+
args << @block.to_sexp if @block
|
1005
|
+
if @argument_count == 1 and !@yield_splat and @arguments.splat.nil? and
|
1006
|
+
@arguments.array.first.kind_of? SplatValue
|
1007
|
+
[:yield, [:array] + args]
|
1008
|
+
else
|
1009
|
+
[:yield] + args
|
1010
|
+
end
|
1004
1011
|
end
|
1005
1012
|
end
|
1006
1013
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- encoding: us-ascii -*-
|
2
2
|
|
3
|
-
module Rubinius::
|
3
|
+
module Rubinius::ToolSets.current::ToolSet
|
4
4
|
module AST
|
5
5
|
module Transforms
|
6
6
|
def self.register(category, name, klass)
|
@@ -249,9 +249,6 @@ module Rubinius::ToolSet.current::TS
|
|
249
249
|
class SendFastNew < SendWithArguments
|
250
250
|
transform :default, :fast_new, "Fast SomeClass.new path"
|
251
251
|
|
252
|
-
# FIXME duplicated from kernel/common/compiled_code.rb
|
253
|
-
KernelMethodSerial = 47
|
254
|
-
|
255
252
|
def self.match?(line, receiver, name, arguments, privately)
|
256
253
|
# ignore vcall style
|
257
254
|
return false if !arguments and privately
|
@@ -270,9 +267,9 @@ module Rubinius::ToolSet.current::TS
|
|
270
267
|
g.dup
|
271
268
|
|
272
269
|
if @privately
|
273
|
-
g.check_serial_private :new, KernelMethodSerial
|
270
|
+
g.check_serial_private :new, Rubinius::CompiledCode::KernelMethodSerial
|
274
271
|
else
|
275
|
-
g.check_serial :new, KernelMethodSerial
|
272
|
+
g.check_serial :new, Rubinius::CompiledCode::KernelMethodSerial
|
276
273
|
end
|
277
274
|
g.gif slow
|
278
275
|
|
data/lib/rubinius/ast/values.rb
CHANGED
data/lib/rubinius/ast/version.rb
CHANGED
data/rubinius-ast.gemspec
CHANGED
@@ -4,7 +4,7 @@ require './lib/rubinius/ast/version'
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "rubinius-ast"
|
7
|
-
spec.version = Rubinius::
|
7
|
+
spec.version = Rubinius::ToolSets.current::ToolSet::AST::VERSION
|
8
8
|
spec.authors = ["Brian Shirai"]
|
9
9
|
spec.email = ["brixen@gmail.com"]
|
10
10
|
spec.description = %q{An Abstract Syntax Tree for Ruby.}
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubinius-ast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Shirai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
|
-
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.3'
|
20
|
-
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirement: !ruby/object:Gem::Requirement
|
23
21
|
requirements:
|
24
|
-
- - ~>
|
22
|
+
- - "~>"
|
25
23
|
- !ruby/object:Gem::Version
|
26
24
|
version: '1.3'
|
25
|
+
prerelease: false
|
26
|
+
type: :development
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
|
-
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
|
-
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
37
35
|
requirements:
|
38
|
-
- - ~>
|
36
|
+
- - "~>"
|
39
37
|
- !ruby/object:Gem::Version
|
40
38
|
version: '10.0'
|
39
|
+
prerelease: false
|
40
|
+
type: :development
|
41
41
|
description: An Abstract Syntax Tree for Ruby.
|
42
42
|
email:
|
43
43
|
- brixen@gmail.com
|
@@ -45,7 +45,7 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- .gitignore
|
48
|
+
- ".gitignore"
|
49
49
|
- Gemfile
|
50
50
|
- LICENSE
|
51
51
|
- README.md
|
@@ -79,18 +79,19 @@ require_paths:
|
|
79
79
|
- lib
|
80
80
|
required_ruby_version: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
|
-
- -
|
82
|
+
- - ">="
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
91
|
rubyforge_project:
|
92
|
-
rubygems_version: 2.
|
92
|
+
rubygems_version: 2.2.2
|
93
93
|
signing_key:
|
94
94
|
specification_version: 4
|
95
95
|
summary: An Abstract Syntax Tree for Ruby.
|
96
96
|
test_files: []
|
97
|
+
has_rdoc:
|