zig_example 0.3.3.1 → 0.3.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08109e4b9e92bfb3cbefd802fe2a87d64de048e9a838ea2dcf28ff24145a1724'
4
- data.tar.gz: 8b39d9499ec2e1eff5c0da958db2c998db670a558aa72a97be9fe28e9c7dcfe1
3
+ metadata.gz: 61cf48ad9ad962f2941a85a0aef1af1dcdd43929d46973171ef6a3c77e3d6e9a
4
+ data.tar.gz: '02484ce0eaab0c86dec9c25735ae49e7757e6e298d6e26d2d0ca045f35382f7d'
5
5
  SHA512:
6
- metadata.gz: 98dc73568f40f9c3e45d4934d89fb289432cc9cff5ee9bf0e48fe9c3982dffa6a13e8e7e011ca1300da04e878a667d70017bd0d8f065eb28f313eb9675ceb1f8
7
- data.tar.gz: 0e161362e8005c19290d4c6e0aa371cbdf44e7d49da83cab1fb47fbd2dbbc93b850fd55ddd3e1e75d84f8e8b14bf1fac11e8760a192fb03cb24d3f08ff60629a
6
+ metadata.gz: 56e287268b60a8169c201c8006f79d32f60fcaab88aba2a84858b7726bc1edd4ca26df3f21f98297795a3064e88b0906aa4ff1fc6fc9e47139c7f69db6aa0f67
7
+ data.tar.gz: 6e04a1360c327d57507ccab80743e51ee73d33ac93843c3c2cafe8ab18b148c2fde608e59a8f71fbaea80b18e3d6b2f2951bde6d4fb125a31d1a217221e5f52b
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.3.4'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
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.3.4
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:
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
57
  requirements: []
58
- rubygems_version: 3.2.5
58
+ rubygems_version: 3.4.6
59
59
  signing_key:
60
60
  specification_version: 4
61
61
  summary: An example gem for ruby with native zig extensions.