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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 48b0b919715a041d623a903a9107dd6f0b2d8e40
4
- data.tar.gz: 459a3be9465c9fd254b59e1710d1a3fcfd77a522
3
+ metadata.gz: 59f20bb604e0a323f49572cfbc5f31d3b0b365f6
4
+ data.tar.gz: 45b42cdbbf3f2c1c9ef57456368ee27850304c78
5
5
  SHA512:
6
- metadata.gz: 3967b9feeb4c2d2497bceb3dd6cc5f086dab9bf55c9e9508f4e861600adeb1fa65e16b983a53e15c805493ee7d49e55b933bcb138c3b94cbc6a484dfd9c0fc0e
7
- data.tar.gz: 6d9d4f3d5672229b71b9a72a79a31d9bc2f1b246f8811f295c9e632777459956596ab0c0cc643606f9201211572f2733f6fc243a6251afb4073c5f9b1e8190f7
6
+ metadata.gz: 3e4129a030a9ee2157fdc4c4c9c7f9df7d3b7e261bb5cdef78219f0d53c2afd801d0e257e5280cfcf4ab21cf92a60e290b2c8806fdacbcbdf65d20338bfee261
7
+ data.tar.gz: 0234569427bc297f72eb0b3f06efcb8cc3c03979a49489ccf115f1c393f1f2600000562122671baef03767eeac62638b0dbd15e2eb6eaba8286355a4bf9311f0
Binary file
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
- * lib/mkmf/lite.rb
6
- * lib/mkmf/templates/have_func.erb
7
- * lib/mkmf/templates/have_func_pointer.erb
8
- * lib/mkmf/templates/have_header.erb
9
- * lib/mkmf/templates/have_struct_member.erb
10
- * test/test_mkmf_lite.rb
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
@@ -47,7 +47,7 @@
47
47
  Artistic 2.0
48
48
 
49
49
  == Copyright
50
- (C) 2010-2014 Daniel J. Berger
50
+ (C) 2010-2015 Daniel J. Berger
51
51
  All Rights Reserved
52
52
 
53
53
  == Warranty
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
- spec = eval(IO.read('mkmf-lite.gemspec'))
11
- if Gem::VERSION.to_f < 2.0
12
- Gem::Builder.new(spec).build
13
- else
14
- require 'rubygems/package'
15
- Gem::Package.build(spec)
16
- end
17
- end
18
-
19
- desc 'Install the mkmf-lite gem.'
20
- task :install => [:create] do
21
- file = Dir["*.gem"].first
22
- sh "gem install -l #{file}"
23
- end
24
- end
25
-
26
- Rake::TestTask.new do |t|
27
- t.verbose = true
28
- t.warning = true
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-----
@@ -0,0 +1 @@
1
+ require_relative 'mkmf/lite'
@@ -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.5'
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
+ }
@@ -1,18 +1,18 @@
1
1
  require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
- spec.name = 'mkmf-lite'
5
- spec.summary = 'A lighter version of mkmf designed for use as a library'
6
- spec.version = '0.2.5'
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') }
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')
@@ -21,7 +21,7 @@ class TC_Mkmf_Lite < Test::Unit::TestCase
21
21
  end
22
22
 
23
23
  test "version information" do
24
- assert_equal('0.2.5', MKMF_LITE_VERSION)
24
+ assert_equal('0.2.6', MKMF_LITE_VERSION)
25
25
  end
26
26
 
27
27
  test "have_header basic functionality" do
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.5
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
- date: 2014-10-02 00:00:00.000000000 Z
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: shards
87
- rubygems_version: 2.2.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
Binary file