ruby-decompiler 0.0.2 → 0.0.3
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.
- data/lib/decompiler/node/as_expression.rb +3 -3
- metadata +52 -36
|
@@ -393,9 +393,9 @@ class Node
|
|
|
393
393
|
s
|
|
394
394
|
end
|
|
395
395
|
|
|
396
|
-
major =
|
|
397
|
-
minor =
|
|
398
|
-
teeny =
|
|
396
|
+
major = RbConfig::CONFIG['MAJOR'].to_i
|
|
397
|
+
minor = RbConfig::CONFIG['MINOR'].to_i
|
|
398
|
+
teeny = RbConfig::CONFIG['TEENY'].to_i
|
|
399
399
|
ruby_version_code = major * 100 + minor * 10 + teeny
|
|
400
400
|
|
|
401
401
|
if ruby_version_code >= 180 then
|
metadata
CHANGED
|
@@ -1,43 +1,50 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-decompiler
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
hash: 25
|
|
5
5
|
prerelease:
|
|
6
|
+
segments:
|
|
7
|
+
- 0
|
|
8
|
+
- 0
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.0.3
|
|
6
11
|
platform: ruby
|
|
7
|
-
authors:
|
|
12
|
+
authors:
|
|
8
13
|
- Paul Brannan
|
|
9
14
|
autorequire:
|
|
10
15
|
bindir: bin
|
|
11
16
|
cert_chain: []
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
|
|
18
|
+
date: 2012-05-17 00:00:00 Z
|
|
19
|
+
dependencies:
|
|
20
|
+
- !ruby/object:Gem::Dependency
|
|
15
21
|
name: ruby-internal
|
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
|
17
|
-
none: false
|
|
18
|
-
requirements:
|
|
19
|
-
- - ! '>='
|
|
20
|
-
- !ruby/object:Gem::Version
|
|
21
|
-
version: 0.8.4
|
|
22
|
-
type: :runtime
|
|
23
22
|
prerelease: false
|
|
24
|
-
|
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
25
24
|
none: false
|
|
26
|
-
requirements:
|
|
27
|
-
- -
|
|
28
|
-
- !ruby/object:Gem::Version
|
|
25
|
+
requirements:
|
|
26
|
+
- - ">="
|
|
27
|
+
- !ruby/object:Gem::Version
|
|
28
|
+
hash: 55
|
|
29
|
+
segments:
|
|
30
|
+
- 0
|
|
31
|
+
- 8
|
|
32
|
+
- 4
|
|
29
33
|
version: 0.8.4
|
|
30
|
-
|
|
31
|
-
|
|
34
|
+
type: :runtime
|
|
35
|
+
version_requirements: *id001
|
|
36
|
+
description: |
|
|
37
|
+
Ruby-decompiler is a decompiler for ruby code. Use it to deconstruct
|
|
32
38
|
method signatures and decompile bytecode (1.9.x) or the AST (1.8.x).
|
|
33
39
|
|
|
34
|
-
'
|
|
35
40
|
email: curlypaul924@gmail.com
|
|
36
41
|
executables: []
|
|
42
|
+
|
|
37
43
|
extensions: []
|
|
38
|
-
|
|
44
|
+
|
|
45
|
+
extra_rdoc_files:
|
|
39
46
|
- README.rdoc
|
|
40
|
-
files:
|
|
47
|
+
files:
|
|
41
48
|
- lib/decompiler/node/as_code.rb
|
|
42
49
|
- lib/decompiler/node/as_expression.rb
|
|
43
50
|
- lib/decompiler/vm/iseq/as_code.rb
|
|
@@ -62,29 +69,38 @@ files:
|
|
|
62
69
|
- test/test_as_expression.rb
|
|
63
70
|
homepage: http://github.com/cout/ruby-decompiler/
|
|
64
71
|
licenses: []
|
|
72
|
+
|
|
65
73
|
post_install_message:
|
|
66
74
|
rdoc_options: []
|
|
67
|
-
|
|
75
|
+
|
|
76
|
+
require_paths:
|
|
68
77
|
- lib
|
|
69
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
78
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
70
79
|
none: false
|
|
71
|
-
requirements:
|
|
72
|
-
- -
|
|
73
|
-
- !ruby/object:Gem::Version
|
|
74
|
-
|
|
75
|
-
|
|
80
|
+
requirements:
|
|
81
|
+
- - ">="
|
|
82
|
+
- !ruby/object:Gem::Version
|
|
83
|
+
hash: 3
|
|
84
|
+
segments:
|
|
85
|
+
- 0
|
|
86
|
+
version: "0"
|
|
87
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
88
|
none: false
|
|
77
|
-
requirements:
|
|
78
|
-
- -
|
|
79
|
-
- !ruby/object:Gem::Version
|
|
80
|
-
|
|
89
|
+
requirements:
|
|
90
|
+
- - ">="
|
|
91
|
+
- !ruby/object:Gem::Version
|
|
92
|
+
hash: 3
|
|
93
|
+
segments:
|
|
94
|
+
- 0
|
|
95
|
+
version: "0"
|
|
81
96
|
requirements: []
|
|
97
|
+
|
|
82
98
|
rubyforge_project:
|
|
83
|
-
rubygems_version: 1.
|
|
99
|
+
rubygems_version: 1.7.2
|
|
84
100
|
signing_key:
|
|
85
101
|
specification_version: 3
|
|
86
102
|
summary: A decompiler for ruby (both YARV and MRI)
|
|
87
|
-
test_files:
|
|
103
|
+
test_files:
|
|
88
104
|
- test/test_methodsig.rb
|
|
89
105
|
- test/test_as_code.rb
|
|
90
106
|
- test/test_as_expression.rb
|