rubinius-bridge 1.0.8 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubinius/bridge/compiled_code.rb +3 -9
- data/lib/rubinius/bridge/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b23d44bf41cf69a8cd096554e51b34c472a82b8
|
4
|
+
data.tar.gz: e2445315018cec691eb6e12207558496957d4bef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e9db5fdfec01ff0ad7216f7afd7f0a00fab8705130a5ecffd399c46e3dccc2053c5371f51a77fc9fceeee5f60503bb5f1472e5b1aff957361d17b5a80ef1667
|
7
|
+
data.tar.gz: b0a6457cf0c133f44ed65c7c34e8074ace0918da9fa1938c50f624de0b57237e759a5f690ae10f48fa5a5e69f834108ec2fecf185416fcf0a3b7f6b60c9c314a
|
@@ -16,7 +16,9 @@ module Rubinius
|
|
16
16
|
attr_accessor :lines # [Tuple] tuple of the lines where its found
|
17
17
|
attr_accessor :file # [Symbol] the file where this comes from
|
18
18
|
attr_accessor :local_names # [Array<Symbol>] names of the local vars
|
19
|
-
attr_accessor :scope
|
19
|
+
attr_accessor :scope # [ConstantScope] scope for looking up constants
|
20
|
+
attr_accessor :keywords # [Tuple] pairs of Symbol name, required flag
|
21
|
+
attr_accessor :arity # [Integer] number of arguments, negative if variadic.
|
20
22
|
attr_accessor :primitive
|
21
23
|
attr_accessor :block_index
|
22
24
|
|
@@ -24,14 +26,6 @@ module Rubinius
|
|
24
26
|
# TODO
|
25
27
|
end
|
26
28
|
|
27
|
-
def arity
|
28
|
-
if @required_args == @total_args and (@splat.nil? or @splat == -3)
|
29
|
-
@required_args
|
30
|
-
else
|
31
|
-
-(@required_args + 1)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
29
|
def add_metadata(key, val)
|
36
30
|
raise TypeError, "key must be a symbol" unless key.kind_of? Symbol
|
37
31
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubinius-bridge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.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-
|
11
|
+
date: 2014-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redcard
|