mkmf-lite 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGES +5 -0
- data/MANIFEST +11 -10
- data/README +1 -1
- data/Rakefile +28 -31
- data/certs/djberg96_pub.pem +21 -0
- data/lib/mkmf-lite.rb +1 -0
- data/lib/mkmf/lite.rb +2 -7
- data/lib/mkmf/templates/check_sizeof.erb +10 -10
- data/lib/mkmf/templates/have_func.erb +10 -10
- data/lib/mkmf/templates/have_func_pointer.erb +11 -11
- data/lib/mkmf/templates/have_header.erb +5 -5
- data/lib/mkmf/templates/have_struct_member.erb +6 -6
- data/mkmf-lite.gemspec +10 -10
- data/test/test_mkmf_lite.rb +1 -1
- metadata +35 -11
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59f20bb604e0a323f49572cfbc5f31d3b0b365f6
|
4
|
+
data.tar.gz: 45b42cdbbf3f2c1c9ef57456368ee27850304c78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e4129a030a9ee2157fdc4c4c9c7f9df7d3b7e261bb5cdef78219f0d53c2afd801d0e257e5280cfcf4ab21cf92a60e290b2c8806fdacbcbdf65d20338bfee261
|
7
|
+
data.tar.gz: 0234569427bc297f72eb0b3f06efcb8cc3c03979a49489ccf115f1c393f1f2600000562122671baef03767eeac62638b0dbd15e2eb6eaba8286355a4bf9311f0
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
Binary file
|
data/CHANGES
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
= 0.2.6 - 6-Sep-2015
|
2
|
+
* Added an mkmf-lite.rb file for convenience.
|
3
|
+
* Assume Rubygems 2.x.
|
4
|
+
* This gem is now signed.
|
5
|
+
|
1
6
|
= 0.2.5 - 2-Oct-2014
|
2
7
|
* The CC command for mingw now defaults to searching your path rather than
|
3
8
|
relying on an environment variable because it wasn't trustworthy.
|
data/MANIFEST
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
-
* CHANGES
|
2
|
-
* MANIFEST
|
3
|
-
* Rakefile
|
4
|
-
* mkmf-lite.gemspec
|
5
|
-
*
|
6
|
-
* lib/mkmf/
|
7
|
-
* lib/mkmf/templates/
|
8
|
-
* lib/mkmf/templates/
|
9
|
-
* lib/mkmf/templates/
|
10
|
-
*
|
1
|
+
* CHANGES
|
2
|
+
* MANIFEST
|
3
|
+
* Rakefile
|
4
|
+
* mkmf-lite.gemspec
|
5
|
+
* certs/djberg96_pub.pem
|
6
|
+
* lib/mkmf/lite.rb
|
7
|
+
* lib/mkmf/templates/have_func.erb
|
8
|
+
* lib/mkmf/templates/have_func_pointer.erb
|
9
|
+
* lib/mkmf/templates/have_header.erb
|
10
|
+
* lib/mkmf/templates/have_struct_member.erb
|
11
|
+
* test/test_mkmf_lite.rb
|
data/README
CHANGED
data/Rakefile
CHANGED
@@ -1,31 +1,28 @@
|
|
1
|
-
require 'rake'
|
2
|
-
require 'rake/clean'
|
3
|
-
require 'rake/testtask'
|
4
|
-
|
5
|
-
CLEAN.include("**/*.gem", "**/*.rbc")
|
6
|
-
|
7
|
-
namespace 'gem' do
|
8
|
-
desc 'Create the mkmf-lite gem.'
|
9
|
-
task :create => [:clean] do
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
end
|
30
|
-
|
31
|
-
task :default => :test
|
1
|
+
require 'rake'
|
2
|
+
require 'rake/clean'
|
3
|
+
require 'rake/testtask'
|
4
|
+
|
5
|
+
CLEAN.include("**/*.gem", "**/*.rbc")
|
6
|
+
|
7
|
+
namespace 'gem' do
|
8
|
+
desc 'Create the mkmf-lite gem.'
|
9
|
+
task :create => [:clean] do
|
10
|
+
require 'rubygems/package'
|
11
|
+
spec = eval(IO.read('mkmf-lite.gemspec'))
|
12
|
+
spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
|
13
|
+
Gem::Package.build(spec)
|
14
|
+
end
|
15
|
+
|
16
|
+
desc 'Install the mkmf-lite gem.'
|
17
|
+
task :install => [:create] do
|
18
|
+
file = Dir["*.gem"].first
|
19
|
+
sh "gem install -l #{file}"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
Rake::TestTask.new do |t|
|
24
|
+
t.verbose = true
|
25
|
+
t.warning = true
|
26
|
+
end
|
27
|
+
|
28
|
+
task :default => :test
|
@@ -0,0 +1,21 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
|
3
|
+
cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
|
4
|
+
MB4XDTE1MDkwMjIwNDkxOFoXDTE2MDkwMTIwNDkxOFowPzERMA8GA1UEAwwIZGpi
|
5
|
+
ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
|
6
|
+
bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMyTkvXqRp6hLs9eoJOS
|
7
|
+
Hmi8kRYbq9Vkf15/hMxJpotYMgJVHHWrmDcC5Dye2PbnXjTkKf266Zw0PtT9h+lI
|
8
|
+
S3ts9HO+vaCFSMwFFZmnWJSpQ3CNw2RcHxjWkk9yF7imEM8Kz9ojhiDXzBetdV6M
|
9
|
+
gr0lV/alUr7TNVBDngbXEfTWscyXh1qd7xZ4EcOdsDktCe5G45N/o3662tPQvJsi
|
10
|
+
FOF0CM/KuBsa/HL1/eoEmF4B3EKIRfTHrQ3hu20Kv3RJ88QM4ec2+0dd97uX693O
|
11
|
+
zv6981fyEg+aXLkxrkViM/tz2qR2ZE0jPhHTREPYeMEgptRkTmWSKAuLVWrJEfgl
|
12
|
+
DtkCAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFEwe
|
13
|
+
nn6bfJADmuIDiMSOzedOrL+xMB0GA1UdEQQWMBSBEmRqYmVyZzk2QGdtYWlsLmNv
|
14
|
+
bTAdBgNVHRIEFjAUgRJkamJlcmc5NkBnbWFpbC5jb20wDQYJKoZIhvcNAQEFBQAD
|
15
|
+
ggEBAHmNOCWoDVD75zHFueY0viwGDVP1BNGFC+yXcb7u2GlK+nEMCORqzURbYPf7
|
16
|
+
tL+/hzmePIRz7i30UM//64GI1NLv9jl7nIwjhPpXpf7/lu2I9hOTsvwSumb5UiKC
|
17
|
+
/sqBxI3sfj9pr79Wpv4MuikX1XPik7Ncb7NPsJPw06Lvyc3Hkg5X2XpPtLtS+Gr2
|
18
|
+
wKJnmzb5rIPS1cmsqv0M9LPWflzfwoZ/SpnmhagP+g05p8bRNKjZSA2iImM/GyYZ
|
19
|
+
EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
|
20
|
+
tGSHgAmcLlkdGgan182qsE/4kKM=
|
21
|
+
-----END CERTIFICATE-----
|
data/lib/mkmf-lite.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require_relative 'mkmf/lite'
|
data/lib/mkmf/lite.rb
CHANGED
@@ -2,17 +2,12 @@ require 'erb'
|
|
2
2
|
require 'rbconfig'
|
3
3
|
require 'tmpdir'
|
4
4
|
require 'ptools'
|
5
|
-
|
6
|
-
if File::ALT_SEPARATOR && RUBY_VERSION.to_f < 1.9
|
7
|
-
require 'win32/open3'
|
8
|
-
else
|
9
|
-
require 'open3'
|
10
|
-
end
|
5
|
+
require 'open3'
|
11
6
|
|
12
7
|
module Mkmf
|
13
8
|
module Lite
|
14
9
|
# The version of the mkmf-lite library
|
15
|
-
MKMF_LITE_VERSION = '0.2.
|
10
|
+
MKMF_LITE_VERSION = '0.2.6'
|
16
11
|
|
17
12
|
@@cpp_command = RbConfig::CONFIG['CC'] || RbConfig::CONFIG['CPP']
|
18
13
|
@@cpp_srcfile = 'conftest.c'
|
@@ -1,10 +1,10 @@
|
|
1
|
-
#include <stdio.h>
|
2
|
-
|
3
|
-
<%= headers %>
|
4
|
-
|
5
|
-
int conftest_const = (int)(sizeof(<%= type %>));
|
6
|
-
|
7
|
-
int main(){
|
8
|
-
printf("%d\n", conftest_const);
|
9
|
-
return 0;
|
10
|
-
}
|
1
|
+
#include <stdio.h>
|
2
|
+
|
3
|
+
<%= headers %>
|
4
|
+
|
5
|
+
int conftest_const = (int)(sizeof(<%= type %>));
|
6
|
+
|
7
|
+
int main(){
|
8
|
+
printf("%d\n", conftest_const);
|
9
|
+
return 0;
|
10
|
+
}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
<%= headers %>
|
2
|
-
|
3
|
-
int try_func(){
|
4
|
-
<%= function %>();
|
5
|
-
return 0;
|
6
|
-
}
|
7
|
-
|
8
|
-
int main(){
|
9
|
-
return 0;
|
10
|
-
}
|
1
|
+
<%= headers %>
|
2
|
+
|
3
|
+
int try_func(){
|
4
|
+
<%= function %>();
|
5
|
+
return 0;
|
6
|
+
}
|
7
|
+
|
8
|
+
int main(){
|
9
|
+
return 0;
|
10
|
+
}
|
@@ -1,11 +1,11 @@
|
|
1
|
-
<%= headers %>
|
2
|
-
|
3
|
-
int check_for_function(){
|
4
|
-
void ((*volatile p)());
|
5
|
-
p = (void ((*)()))<%= function %>;
|
6
|
-
return 0;
|
7
|
-
}
|
8
|
-
|
9
|
-
int main(){
|
10
|
-
return 0;
|
11
|
-
}
|
1
|
+
<%= headers %>
|
2
|
+
|
3
|
+
int check_for_function(){
|
4
|
+
void ((*volatile p)());
|
5
|
+
p = (void ((*)()))<%= function %>;
|
6
|
+
return 0;
|
7
|
+
}
|
8
|
+
|
9
|
+
int main(){
|
10
|
+
return 0;
|
11
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
#include <<%= header %>>
|
2
|
-
|
3
|
-
int main(){
|
4
|
-
return 0;
|
5
|
-
}
|
1
|
+
#include <<%= header %>>
|
2
|
+
|
3
|
+
int main(){
|
4
|
+
return 0;
|
5
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
<%= headers %>
|
2
|
-
|
3
|
-
int main(){
|
4
|
-
int s = (char *)&((<%= struct_type %>*)0)-><%= struct_member %> - (char *)0;
|
5
|
-
return 0;
|
6
|
-
}
|
1
|
+
<%= headers %>
|
2
|
+
|
3
|
+
int main(){
|
4
|
+
int s = (char *)&((<%= struct_type %>*)0)-><%= struct_member %> - (char *)0;
|
5
|
+
return 0;
|
6
|
+
}
|
data/mkmf-lite.gemspec
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
|
-
spec.name
|
5
|
-
spec.summary
|
6
|
-
spec.version
|
7
|
-
spec.author
|
8
|
-
spec.license
|
9
|
-
spec.email
|
10
|
-
spec.homepage
|
11
|
-
spec.test_file
|
12
|
-
spec.files
|
4
|
+
spec.name = 'mkmf-lite'
|
5
|
+
spec.summary = 'A lighter version of mkmf designed for use as a library'
|
6
|
+
spec.version = '0.2.6'
|
7
|
+
spec.author = 'Daniel J. Berger'
|
8
|
+
spec.license = 'Artistic 2.0'
|
9
|
+
spec.email = 'djberg96@gmail.com'
|
10
|
+
spec.homepage = 'http://github.com/djberg96/mkmf-lite'
|
11
|
+
spec.test_file = 'test/test_mkmf_lite.rb'
|
12
|
+
spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
|
13
|
+
spec.cert_chain = ['certs/djberg96_pub.pem']
|
13
14
|
|
14
15
|
spec.extra_rdoc_files = ['CHANGES', 'README', 'MANIFEST']
|
15
|
-
spec.rubyforge_project = 'shards'
|
16
16
|
|
17
17
|
spec.add_dependency('ptools')
|
18
18
|
spec.add_development_dependency('test-unit', '>= 2.4.0')
|
data/test/test_mkmf_lite.rb
CHANGED
metadata
CHANGED
@@ -1,41 +1,63 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mkmf-lite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
|
14
|
+
cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
|
15
|
+
MB4XDTE1MDkwMjIwNDkxOFoXDTE2MDkwMTIwNDkxOFowPzERMA8GA1UEAwwIZGpi
|
16
|
+
ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
|
17
|
+
bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMyTkvXqRp6hLs9eoJOS
|
18
|
+
Hmi8kRYbq9Vkf15/hMxJpotYMgJVHHWrmDcC5Dye2PbnXjTkKf266Zw0PtT9h+lI
|
19
|
+
S3ts9HO+vaCFSMwFFZmnWJSpQ3CNw2RcHxjWkk9yF7imEM8Kz9ojhiDXzBetdV6M
|
20
|
+
gr0lV/alUr7TNVBDngbXEfTWscyXh1qd7xZ4EcOdsDktCe5G45N/o3662tPQvJsi
|
21
|
+
FOF0CM/KuBsa/HL1/eoEmF4B3EKIRfTHrQ3hu20Kv3RJ88QM4ec2+0dd97uX693O
|
22
|
+
zv6981fyEg+aXLkxrkViM/tz2qR2ZE0jPhHTREPYeMEgptRkTmWSKAuLVWrJEfgl
|
23
|
+
DtkCAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFEwe
|
24
|
+
nn6bfJADmuIDiMSOzedOrL+xMB0GA1UdEQQWMBSBEmRqYmVyZzk2QGdtYWlsLmNv
|
25
|
+
bTAdBgNVHRIEFjAUgRJkamJlcmc5NkBnbWFpbC5jb20wDQYJKoZIhvcNAQEFBQAD
|
26
|
+
ggEBAHmNOCWoDVD75zHFueY0viwGDVP1BNGFC+yXcb7u2GlK+nEMCORqzURbYPf7
|
27
|
+
tL+/hzmePIRz7i30UM//64GI1NLv9jl7nIwjhPpXpf7/lu2I9hOTsvwSumb5UiKC
|
28
|
+
/sqBxI3sfj9pr79Wpv4MuikX1XPik7Ncb7NPsJPw06Lvyc3Hkg5X2XpPtLtS+Gr2
|
29
|
+
wKJnmzb5rIPS1cmsqv0M9LPWflzfwoZ/SpnmhagP+g05p8bRNKjZSA2iImM/GyYZ
|
30
|
+
EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
|
31
|
+
tGSHgAmcLlkdGgan182qsE/4kKM=
|
32
|
+
-----END CERTIFICATE-----
|
33
|
+
date: 2015-09-06 00:00:00.000000000 Z
|
12
34
|
dependencies:
|
13
35
|
- !ruby/object:Gem::Dependency
|
14
36
|
name: ptools
|
15
37
|
requirement: !ruby/object:Gem::Requirement
|
16
38
|
requirements:
|
17
|
-
- -
|
39
|
+
- - ">="
|
18
40
|
- !ruby/object:Gem::Version
|
19
41
|
version: '0'
|
20
42
|
type: :runtime
|
21
43
|
prerelease: false
|
22
44
|
version_requirements: !ruby/object:Gem::Requirement
|
23
45
|
requirements:
|
24
|
-
- -
|
46
|
+
- - ">="
|
25
47
|
- !ruby/object:Gem::Version
|
26
48
|
version: '0'
|
27
49
|
- !ruby/object:Gem::Dependency
|
28
50
|
name: test-unit
|
29
51
|
requirement: !ruby/object:Gem::Requirement
|
30
52
|
requirements:
|
31
|
-
- -
|
53
|
+
- - ">="
|
32
54
|
- !ruby/object:Gem::Version
|
33
55
|
version: 2.4.0
|
34
56
|
type: :development
|
35
57
|
prerelease: false
|
36
58
|
version_requirements: !ruby/object:Gem::Requirement
|
37
59
|
requirements:
|
38
|
-
- -
|
60
|
+
- - ">="
|
39
61
|
- !ruby/object:Gem::Version
|
40
62
|
version: 2.4.0
|
41
63
|
description: |2
|
@@ -56,6 +78,8 @@ files:
|
|
56
78
|
- MANIFEST
|
57
79
|
- README
|
58
80
|
- Rakefile
|
81
|
+
- certs/djberg96_pub.pem
|
82
|
+
- lib/mkmf-lite.rb
|
59
83
|
- lib/mkmf/lite.rb
|
60
84
|
- lib/mkmf/templates/check_sizeof.erb
|
61
85
|
- lib/mkmf/templates/have_func.erb
|
@@ -74,17 +98,17 @@ require_paths:
|
|
74
98
|
- lib
|
75
99
|
required_ruby_version: !ruby/object:Gem::Requirement
|
76
100
|
requirements:
|
77
|
-
- -
|
101
|
+
- - ">="
|
78
102
|
- !ruby/object:Gem::Version
|
79
103
|
version: '0'
|
80
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
105
|
requirements:
|
82
|
-
- -
|
106
|
+
- - ">="
|
83
107
|
- !ruby/object:Gem::Version
|
84
108
|
version: '0'
|
85
109
|
requirements: []
|
86
|
-
rubyforge_project:
|
87
|
-
rubygems_version: 2.
|
110
|
+
rubyforge_project:
|
111
|
+
rubygems_version: 2.4.5
|
88
112
|
signing_key:
|
89
113
|
specification_version: 4
|
90
114
|
summary: A lighter version of mkmf designed for use as a library
|
metadata.gz.sig
ADDED
Binary file
|