quickjs 0.5.1 → 0.6.0

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: d949a011a5d0f2a19d351045d6a0de4550beee0908758c477a339af9d1e5863b
4
- data.tar.gz: '09a2510b4a484e6b35a7be189cbd4015a3c575c0a318e8514beee56336c0055e'
3
+ metadata.gz: 865a1025d1f33fb1818e8e2e2dcb57f91ebece71aab8faf675495cba8b13a534
4
+ data.tar.gz: 315ce586853b723e42fe60d73d4b4a282f7f7083c65f374f0caef0eafe80efc1
5
5
  SHA512:
6
- metadata.gz: e8ecb1d0510082d9c0eca95ee6ef7257ff8f15ff4a2ea60fe9bc69e1274de689e71671b0f3f56ddcbe2c23421fa6fcd00b9cafadba653b89550447eb3b2a6310
7
- data.tar.gz: af34d0b17332ba6df2e6f6c165d38cdd15ee4684a03f4bc5dc92dac2acdf5512313b263d775e9c942ab70a144e5317b1695b402ecf958ad3a86750662f84e675
6
+ metadata.gz: aef45364fc9b38075c97f835c1de6a39ab66523fa71c798e8fcd4cf88af49f91a4649a478273f37cfa53b3453201b0227db3a7c8523459004cdb82395c270be8
7
+ data.tar.gz: 852f2c33d42308f27c758326d68684131dcb0fb2ffda1d76bc2544838925c9ef643e5c3fc34fb8ef14d98339710ea2b3ed899ddb1b9b83bfc018de032a924bca
@@ -16,25 +16,34 @@ $srcs = [
16
16
 
17
17
  append_cflags('-I$(srcdir)/quickjs')
18
18
 
19
- append_cflags('-fwrapv')
19
+
20
20
  append_cflags('-g')
21
21
  append_cflags('-O2')
22
22
  append_cflags('-Wall')
23
23
  append_cflags('-MMD')
24
24
  append_cflags('-MF')
25
- append_cflags('-Wextra')
26
- append_cflags('-Wno-sign-compare')
27
- append_cflags('-Wno-missing-field-initializers')
28
- append_cflags('-Wundef -Wuninitialized')
29
- append_cflags('-Wunused -Wno-unused-parameter')
30
- append_cflags('-Wwrite-strings')
31
- append_cflags('-Wchar-subscripts -funsigned-char')
32
- append_cflags('-D_GNU_SOURCE -DCONFIG_VERSION=\"2024-02-14\" -DCONFIG_BIGNUM')
25
+
26
+ case CONFIG['arch']
27
+ when /darwin/
28
+ append_cflags('-Wextra')
29
+ append_cflags('-Wno-sign-compare')
30
+ append_cflags('-Wno-missing-field-initializers')
31
+ append_cflags('-Wundef -Wuninitialized')
32
+ append_cflags('-Wunused -Wno-unused-parameter')
33
+ append_cflags('-Wwrite-strings')
34
+ append_cflags('-Wchar-subscripts -funsigned-char')
35
+ else
36
+ append_cflags('-Wno-array-bounds -Wno-format-truncation')
37
+ end
38
+
39
+ append_cflags('-fwrapv')
40
+ #$defs.push('-D_GNU_SOURCE -DCONFIG_VERSION=\"2024-02-14\"')
41
+ #$defs.push('-DCONFIG_BIGNUM')
42
+ $CFLAGS << ' ' << '-D_GNU_SOURCE -DCONFIG_VERSION=\"2024-02-14\" -DCONFIG_BIGNUM'
33
43
 
34
44
  abort('could not find quickjs.h') unless find_header('quickjs.h')
35
45
  abort('could not find cutils.h') unless find_header('cutils.h')
36
46
  abort('could not find quickjs-libc.h') unless find_header('quickjs-libc.h')
37
- #abort('could not find libbf.h') unless find_header('libbf.h')
38
47
 
39
48
  # Makes all symbols private by default to avoid unintended conflict
40
49
  # with other gems. To explicitly export symbols you can use RUBY_FUNC_EXPORTED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Quickjs
4
- VERSION = "0.5.1"
4
+ VERSION = "0.6.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quickjs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - hmsk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-09 00:00:00.000000000 Z
11
+ date: 2025-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json