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 +4 -4
- data/ext/quickjsrb/extconf.rb +19 -10
- data/lib/quickjs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 865a1025d1f33fb1818e8e2e2dcb57f91ebece71aab8faf675495cba8b13a534
|
4
|
+
data.tar.gz: 315ce586853b723e42fe60d73d4b4a282f7f7083c65f374f0caef0eafe80efc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aef45364fc9b38075c97f835c1de6a39ab66523fa71c798e8fcd4cf88af49f91a4649a478273f37cfa53b3453201b0227db3a7c8523459004cdb82395c270be8
|
7
|
+
data.tar.gz: 852f2c33d42308f27c758326d68684131dcb0fb2ffda1d76bc2544838925c9ef643e5c3fc34fb8ef14d98339710ea2b3ed899ddb1b9b83bfc018de032a924bca
|
data/ext/quickjsrb/extconf.rb
CHANGED
@@ -16,25 +16,34 @@ $srcs = [
|
|
16
16
|
|
17
17
|
append_cflags('-I$(srcdir)/quickjs')
|
18
18
|
|
19
|
-
|
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
|
-
|
26
|
-
|
27
|
-
|
28
|
-
append_cflags('-
|
29
|
-
append_cflags('-
|
30
|
-
append_cflags('-
|
31
|
-
append_cflags('-
|
32
|
-
append_cflags('-
|
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
|
data/lib/quickjs/version.rb
CHANGED
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.
|
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:
|
11
|
+
date: 2025-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|