rubinius-bridge 2.2 → 3.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 +12 -0
- data/lib/rubinius/bridge/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31886ebf4c4059a0c5376b89588ecd4ced6fb78f
|
4
|
+
data.tar.gz: 322460a7749263f1cfcd8d0e2d2859ab4a4f2862
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6a575277d36183883662b35d11137b305e93d6a8b2c75d93b12b239ce0bc4109e335cf590f59385f0dd819d5d6b896cc2e557bc2b5eb2c1ae819eb2548a79e7
|
7
|
+
data.tar.gz: 2dceefbf19c498354ad72a3fc3aee1f06fd98dc48878f87ee231b9717e5d7e57df750c93c0e018d5c83d6868147554ddfa7755c77da6393f622331cf4a378576
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require "securerandom"
|
2
|
+
|
1
3
|
module Rubinius
|
2
4
|
class CompiledCode
|
3
5
|
KernelMethodSerial = 47
|
@@ -22,10 +24,20 @@ module Rubinius
|
|
22
24
|
attr_accessor :primitive
|
23
25
|
attr_accessor :block_index
|
24
26
|
|
27
|
+
def initialize
|
28
|
+
@code_id = nil
|
29
|
+
end
|
30
|
+
|
25
31
|
def decode(bytecodes = @iseq)
|
26
32
|
# TODO
|
27
33
|
end
|
28
34
|
|
35
|
+
CODE_ID_BYTES = 32
|
36
|
+
|
37
|
+
def code_id
|
38
|
+
@code_id || (@code_id = SecureRandom.hex(CODE_ID_BYTES))
|
39
|
+
end
|
40
|
+
|
29
41
|
def add_metadata(key, val)
|
30
42
|
raise TypeError, "key must be a symbol" unless key.kind_of? Symbol
|
31
43
|
|
metadata
CHANGED
@@ -1,57 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubinius-bridge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '
|
4
|
+
version: '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:
|
11
|
+
date: 2017-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: redcard
|
14
15
|
requirement: !ruby/object:Gem::Requirement
|
15
16
|
requirements:
|
16
17
|
- - "~>"
|
17
18
|
- !ruby/object:Gem::Version
|
18
19
|
version: '1.0'
|
19
|
-
|
20
|
+
type: :runtime
|
20
21
|
prerelease: false
|
21
22
|
version_requirements: !ruby/object:Gem::Requirement
|
22
23
|
requirements:
|
23
24
|
- - "~>"
|
24
25
|
- !ruby/object:Gem::Version
|
25
26
|
version: '1.0'
|
26
|
-
type: :runtime
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
28
29
|
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - "~>"
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '1.3'
|
33
|
-
|
34
|
+
type: :development
|
34
35
|
prerelease: false
|
35
36
|
version_requirements: !ruby/object:Gem::Requirement
|
36
37
|
requirements:
|
37
38
|
- - "~>"
|
38
39
|
- !ruby/object:Gem::Version
|
39
40
|
version: '1.3'
|
40
|
-
type: :development
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
42
43
|
requirement: !ruby/object:Gem::Requirement
|
43
44
|
requirements:
|
44
45
|
- - "~>"
|
45
46
|
- !ruby/object:Gem::Version
|
46
47
|
version: '10.0'
|
47
|
-
|
48
|
+
type: :development
|
48
49
|
prerelease: false
|
49
50
|
version_requirements: !ruby/object:Gem::Requirement
|
50
51
|
requirements:
|
51
52
|
- - "~>"
|
52
53
|
- !ruby/object:Gem::Version
|
53
54
|
version: '10.0'
|
54
|
-
type: :development
|
55
55
|
description: |
|
56
56
|
Classes and methods to run other Rubinius tools under MRI.
|
57
57
|
|
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
106
|
rubyforge_project:
|
107
|
-
rubygems_version: 2.
|
107
|
+
rubygems_version: 2.5.1
|
108
108
|
signing_key:
|
109
109
|
specification_version: 4
|
110
110
|
summary: Classes and methods to run other Rubinius tools under MRI.
|