zig_example 0.3.3.1 → 0.4.0.pre

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
  SHA256:
3
- metadata.gz: '08109e4b9e92bfb3cbefd802fe2a87d64de048e9a838ea2dcf28ff24145a1724'
4
- data.tar.gz: 8b39d9499ec2e1eff5c0da958db2c998db670a558aa72a97be9fe28e9c7dcfe1
3
+ metadata.gz: 37dbb37e01aa672c7259a2aba5206666d8c0aa79191b8ce9f1fb3bf780b449b5
4
+ data.tar.gz: 568ef1a5eb93562e15149f97d4e352dfb1d7b954d203b475c3341d99e4eed73a
5
5
  SHA512:
6
- metadata.gz: 98dc73568f40f9c3e45d4934d89fb289432cc9cff5ee9bf0e48fe9c3982dffa6a13e8e7e011ca1300da04e878a667d70017bd0d8f065eb28f313eb9675ceb1f8
7
- data.tar.gz: 0e161362e8005c19290d4c6e0aa371cbdf44e7d49da83cab1fb47fbd2dbbc93b850fd55ddd3e1e75d84f8e8b14bf1fac11e8760a192fb03cb24d3f08ff60629a
6
+ metadata.gz: 3b7dea177528a4427add2364b8531e1f45f9442454b14f034e059c07da38d212e001fc598f29bdfe736a4a0f003b6679d51f333780cbd83ec94cd22becfeca67
7
+ data.tar.gz: 6dcd424b241a1dbbe82fc5199a84207908123504f1ef414debb2ec06c894c61ae7af8aac631fd589f0a7ae5ddfa4227a0ae5e67e51715bad704a9f58d0b94345
data/ext/mkmf.rb CHANGED
@@ -2437,12 +2437,10 @@ site-install-rb: install-rb
2437
2437
  mfile.print " #{timestamp_file('$(RUBYARCHDIR)', target_prefix)}" if $extout
2438
2438
  mfile.print "\n"
2439
2439
  if File.exist?('build.zig')
2440
- mfile.print("\tenv -u DESTDIR PKG_CONFIG_PATH='$(libdir)/pkgconfig' RUBY_PC='#{File.basename(CONFIG['ruby_pc'], '.pc')}' zig build -Doptimize=ReleaseSafe test install\n")
2441
- # zig builds a .dylib but ruby wants to load a .bundle
2440
+ mfile.print("\tenv -u DESTDIR PKG_CONFIG_PATH='$(libdir)/pkgconfig' RUBY_PC='#{File.basename(CONFIG['ruby_pc'], '.pc')}' zig build -Doptimize=ReleaseSafe --prefix-lib-dir $(shell pwd) test install\n")
2442
2441
  if CONFIG['target_vendor'] == 'apple' && CONFIG['DLEXT'] = 'bundle'
2443
- mfile.print("\tcp -v zig-out/lib/$(TARGET).dylib $(TARGET).bundle\n")
2444
- else
2445
- mfile.print("\tcp -v zig-out/lib/#{dllib} .\n")
2442
+ # zig builds a .dylib but ruby wants to load a .bundle
2443
+ mfile.print("\tmv -v $(TARGET).dylib $(TARGET).bundle\n")
2446
2444
  end
2447
2445
  else
2448
2446
  mfile.print "\t$(ECHO) linking shared-object #{target_prefix.sub(/\A\/(.*)/, '\1/')}$(DLLIB)\n"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ZigExample
4
- VERSION = '0.3.3.1'
4
+ VERSION = '0.4.0.pre'
5
5
  end
metadata CHANGED
@@ -1,34 +1,31 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zig_example
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3.1
4
+ version: 0.4.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank J. Cameron
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-03 00:00:00.000000000 Z
11
+ date: 2023-05-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
15
15
  - fjc@fastmail.net
16
16
  executables: []
17
17
  extensions:
18
- - ext/zigrb_100doors/extconf.rb
19
- - ext/zigrb_ackermann/extconf.rb
20
- - ext/zigrb_lucas_lehmer/extconf.rb
18
+ - ext/zigrb_100doors/build.zig
19
+ - ext/zigrb_ackermann/build.zig
20
+ - ext/zigrb_lucas_lehmer/build.zig
21
21
  extra_rdoc_files: []
22
22
  files:
23
23
  - ext/mkmf.rb
24
24
  - ext/zigrb_100doors/build.zig
25
- - ext/zigrb_100doors/extconf.rb
26
25
  - ext/zigrb_100doors/src/main.zig
27
26
  - ext/zigrb_ackermann/build.zig
28
- - ext/zigrb_ackermann/extconf.rb
29
27
  - ext/zigrb_ackermann/src/main.zig
30
28
  - ext/zigrb_lucas_lehmer/build.zig
31
- - ext/zigrb_lucas_lehmer/extconf.rb
32
29
  - ext/zigrb_lucas_lehmer/src/lucas_lehmer.c
33
30
  - ext/zigrb_lucas_lehmer/src/lucas_lehmer.h
34
31
  - ext/zigrb_lucas_lehmer/src/wrapper.zig
@@ -51,11 +48,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
51
48
  version: 2.6.0
52
49
  required_rubygems_version: !ruby/object:Gem::Requirement
53
50
  requirements:
54
- - - ">="
51
+ - - ">"
55
52
  - !ruby/object:Gem::Version
56
- version: '0'
53
+ version: 1.3.1
57
54
  requirements: []
58
- rubygems_version: 3.2.5
55
+ rubygems_version: 3.4.6
59
56
  signing_key:
60
57
  specification_version: 4
61
58
  summary: An example gem for ruby with native zig extensions.
@@ -1,3 +0,0 @@
1
- require_relative '../mkmf'
2
-
3
- create_makefile 'libzigrb_100doors'
@@ -1,3 +0,0 @@
1
- require_relative '../mkmf'
2
-
3
- create_makefile 'libzigrb_ackermann'
@@ -1,3 +0,0 @@
1
- require_relative '../mkmf'
2
-
3
- create_makefile 'libzigrb_lucas_lehmer'