wilson 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +1 -0
- data.tar.gz.sig +0 -0
- data/History.txt +6 -0
- data/Rakefile +4 -3
- data/lib/wilson.rb +12 -11
- metadata +78 -54
- metadata.gz.sig +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f246b773046728c5843c652540cc8965f8517e68
|
4
|
+
data.tar.gz: b1d620afd55d375d58adc17ca66fbfec8aa35684
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 90e0ea4db122abea2aad8cf913877d8dc248153519b2d40207bd4e3c0a510316b459ccc3a8391c838d397eca7e4e8af43d51687ff6486692c88626079d457649
|
7
|
+
data.tar.gz: 02a9684de45bf277a74780cc7cf88d3facd8c38150fc96c408906603d99df245e4610dad87fd1ef274fa732e33ddf60641084958d31c4ab7732a26a3b33a6c0a
|
checksums.yaml.gz.sig
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
m�+�!�&笁�@
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/Rakefile
CHANGED
@@ -3,14 +3,15 @@
|
|
3
3
|
require 'rubygems'
|
4
4
|
require 'hoe'
|
5
5
|
|
6
|
+
Hoe.add_include_dirs("../../RubyInline/dev/lib",
|
7
|
+
"../../ZenTest/dev/lib")
|
8
|
+
|
6
9
|
Hoe.plugin :seattlerb
|
7
10
|
|
8
11
|
h = Hoe.spec 'wilson' do
|
9
12
|
developer 'Ryan Davis', 'ryand-ruby@zenspider.com'
|
10
13
|
|
11
|
-
|
12
|
-
|
13
|
-
multiruby_skip << '1.9'
|
14
|
+
multiruby_skip << '1.9' << 'trunk' << "2."
|
14
15
|
end
|
15
16
|
|
16
17
|
namespace :test do
|
data/lib/wilson.rb
CHANGED
@@ -31,7 +31,7 @@ end
|
|
31
31
|
# Smalltalk SuperPowers at OOPSLA 2008.
|
32
32
|
|
33
33
|
module Wilson
|
34
|
-
VERSION = '1.1.
|
34
|
+
VERSION = '1.1.2'
|
35
35
|
|
36
36
|
##
|
37
37
|
# Assembler parses the NASM documentation and creates Command
|
@@ -1128,14 +1128,16 @@ end # module Wilson
|
|
1128
1128
|
require 'rbconfig'
|
1129
1129
|
|
1130
1130
|
module Ruby
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1131
|
+
if RUBY_VERSION < '1.9'
|
1132
|
+
extend DL::Importable
|
1133
|
+
else
|
1134
|
+
extend DL::Importer
|
1135
|
+
end
|
1134
1136
|
|
1135
|
-
dir = File.join(
|
1136
|
-
dlload File.join(dir,
|
1137
|
+
dir = File.join(RbConfig::CONFIG["prefix"], (RUBY_PLATFORM =~ /mswin|mingw/ ? "bin" : "lib"))
|
1138
|
+
dlload File.join(dir, RbConfig::CONFIG['LIBRUBY_SO'])
|
1137
1139
|
|
1138
|
-
extern "void rb_define_method(
|
1140
|
+
extern "void rb_define_method(unsigned long, char*, void*, int)"
|
1139
1141
|
end
|
1140
1142
|
|
1141
1143
|
class Integer
|
@@ -1177,10 +1179,9 @@ ASM = []
|
|
1177
1179
|
class Module
|
1178
1180
|
def defasm name, *args, &block
|
1179
1181
|
code = assemble(args.size, &block)
|
1180
|
-
ptr = code.to_ptr
|
1181
1182
|
|
1182
|
-
ASM <<
|
1183
|
-
Ruby.rb_define_method self, name.to_s,
|
1183
|
+
ASM << code
|
1184
|
+
Ruby.rb_define_method (self.object_id << 1), name.to_s, code, args.size
|
1184
1185
|
end
|
1185
1186
|
end
|
1186
1187
|
|
@@ -1223,7 +1224,7 @@ class Object
|
|
1223
1224
|
|
1224
1225
|
@@asm = {}
|
1225
1226
|
def asm(name, *args, &block)
|
1226
|
-
code = @@asm[name] ||= assemble(&block).to_ptr
|
1227
|
+
code = @@asm[name] ||= (RUBY_VERSION < '1.9' ? assemble(&block).to_ptr : DL::CPtr[assemble(&block)])
|
1227
1228
|
|
1228
1229
|
return execute_asm(code) # code is the function pointer, wrapped
|
1229
1230
|
end
|
metadata
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: wilson
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- Ryan Davis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
10
|
+
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
13
|
+
MIIDPjCCAiagAwIBAgIBAzANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
|
14
14
|
ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
|
15
|
-
|
15
|
+
GRYDY29tMB4XDTE1MDkxOTIwNTEyMloXDTE2MDkxODIwNTEyMlowRTETMBEGA1UE
|
16
16
|
AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
|
17
17
|
JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
|
18
18
|
b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
|
@@ -22,45 +22,73 @@ cert_chain:
|
|
22
22
|
qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
|
23
23
|
gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
|
24
24
|
HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
25
|
+
AQB+Hx8xUgrpZa4P8H8gR8zme5kISwQrG80MbpqJV6/G3/ZicRFhN5sjwu0uHGue
|
26
|
+
bd9Cymf6oIRwHVarJux2M32T6bL07Hmi07w2QaPc3MnMKB/D46SRZ2JSSGPFRBTc
|
27
|
+
SilobMRoGs/7B15uGFUEnNrCB/ltMqhwwSx1r++UQPfeySHEV9uqu03E5Vb7J37O
|
28
|
+
2Er6PLXHRiYsIycD1LkMi6YnixdITRHmrqJYE2rsjaIfpIehiusVAPHkNf7qbpHq
|
29
|
+
qx3h45R1CAsObX0SQDIT+rRbQrtKz1GHIZTOFYvEJjUY1XmRTZupD3CJ8Q7sDqSy
|
30
|
+
NLq5jm1fq6Y9Uolu3RJbmycf
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
32
|
+
date: 2015-10-26 00:00:00.000000000 Z
|
33
|
+
dependencies:
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: minitest
|
36
|
+
requirement: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '5.8'
|
41
|
+
type: :development
|
42
|
+
prerelease: false
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.8'
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: rdoc
|
50
|
+
requirement: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '4.0'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '4.0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
37
63
|
name: hoe
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.14'
|
38
69
|
type: :development
|
39
|
-
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
requirements:
|
42
|
-
- -
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
version:
|
45
|
-
version:
|
70
|
+
prerelease: false
|
71
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.14'
|
46
76
|
description: |-
|
47
77
|
Wilson is a pure ruby x86 assembler. No, really. Worst Idea Evar.
|
48
|
-
|
78
|
+
|
49
79
|
Why "wilson"? I wanted to name it "metal", but there is an existing
|
50
80
|
project with that name... So I'm naming it after Wilson Bilkovich, who
|
51
81
|
is about as metal as you can get (and it is easier to spell than
|
52
82
|
"bilkovich", even tho that sounds more metal).
|
53
|
-
email:
|
83
|
+
email:
|
54
84
|
- ryand-ruby@zenspider.com
|
55
85
|
executables: []
|
56
|
-
|
57
86
|
extensions: []
|
58
|
-
|
59
|
-
extra_rdoc_files:
|
87
|
+
extra_rdoc_files:
|
60
88
|
- History.txt
|
61
89
|
- Manifest.txt
|
62
90
|
- README.txt
|
63
|
-
files:
|
91
|
+
files:
|
64
92
|
- History.txt
|
65
93
|
- Manifest.txt
|
66
94
|
- README.txt
|
@@ -69,34 +97,30 @@ files:
|
|
69
97
|
- example.rb
|
70
98
|
- lib/wilson.rb
|
71
99
|
- test/test_wilson.rb
|
72
|
-
has_rdoc: true
|
73
100
|
homepage: http://rubyforge.org/projects/seattlerb
|
74
|
-
licenses:
|
75
|
-
|
101
|
+
licenses:
|
102
|
+
- MIT
|
103
|
+
metadata: {}
|
76
104
|
post_install_message:
|
77
|
-
rdoc_options:
|
105
|
+
rdoc_options:
|
78
106
|
- --main
|
79
107
|
- README.txt
|
80
|
-
require_paths:
|
108
|
+
require_paths:
|
81
109
|
- lib
|
82
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
-
requirements:
|
84
|
-
- -
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
version:
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
version: "0"
|
93
|
-
version:
|
110
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
112
|
+
- - '>='
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: '0'
|
115
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - '>='
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '0'
|
94
120
|
requirements: []
|
95
|
-
|
96
|
-
|
97
|
-
rubygems_version: 1.3.4
|
121
|
+
rubyforge_project:
|
122
|
+
rubygems_version: 2.4.5
|
98
123
|
signing_key:
|
99
|
-
specification_version:
|
124
|
+
specification_version: 4
|
100
125
|
summary: Wilson is a pure ruby x86 assembler
|
101
|
-
test_files:
|
102
|
-
- test/test_wilson.rb
|
126
|
+
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|