static_holmes 0.7.9 → 0.7.10

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: 9782686f798e7923484b108a223c1ed97c96b8d511226056a3a88003362d379a
4
- data.tar.gz: '09a7b09b1696b6bb069ceb60604d68d06d36c7f5293fce95ac8e5786d5aba98c'
3
+ metadata.gz: 4803d1e6d567e2543704fa2ce8b6f6875673c219ca66b5516944e62e800dc3ee
4
+ data.tar.gz: 642edc241c50450f4ca662e6da35898d02a3ca77997eb8f5ce6a1c7f36a7bb84
5
5
  SHA512:
6
- metadata.gz: 481321bbfa237c8bd0bd5c1e9728aa7c3045b39e4de5e2636974fa1b68866d6e1a0ef48bc791b96c3000882a9514248a88db2d126894e03b563ec89b91bdb1ef
7
- data.tar.gz: dbcdf822022331c1a4275e6ae8877a4477cb146ff3cc28f6762e109615c5b268853f79973b1b33f35b5f99a51c4a7572b7157313b8dc9b01ac6fa37a61f0e883
6
+ metadata.gz: cfb381f812968124e1c8221c99087b1f0bfef4fb73e9517dce95ed599a1e8132b72b51265d97ae701a4f0583cb497fd6899c336fd2ea8b9bc1b22d2354a54052
7
+ data.tar.gz: effc2e698dfd70a5eef40e8265a098ed52847d18fcfde7261b8a37c3b4a2ab277e23003c1916162cc2440de03368b2f398ed957ccc1832d1b5c475cb49a9cf2e
@@ -49,6 +49,32 @@ have_library 'icudata' or abort 'libicudata missing'
49
49
  $CFLAGS << ' -Wall -funroll-loops'
50
50
  $CFLAGS << ' -Wextra -O0 -ggdb3' if ENV['DEBUG']
51
51
 
52
+ minimal_program = <<~SRC
53
+ #include <unicode/translit.h>
54
+ int main() { return 0; }
55
+ SRC
56
+
57
+ # Pass -x c++ to force gcc to compile the test program
58
+ # as C++ (as it will end in .c by default).
59
+ compile_options = +"-x c++"
60
+
61
+ icu_requires_version_flag = checking_for("icu that requires explicit C++ version flag") do
62
+ !try_compile(minimal_program, compile_options)
63
+ end
64
+
65
+ if icu_requires_version_flag
66
+ abort "Cannot compile icu with your compiler: recent versions require C++17 support." unless %w[c++20 c++17 c++11 c++0x].any? do |std|
67
+ checking_for("icu that compiles with #{std} standard") do
68
+ if try_compile(minimal_program, compile_options + " -std=#{std}")
69
+ compile_options << " -std=#{std}"
70
+ $CPPFLAGS << " -std=#{std}"
71
+
72
+ true
73
+ end
74
+ end
75
+ end
76
+ end
77
+
52
78
  def libflag_to_filename(ldflag)
53
79
  case ldflag
54
80
  when /\A-l(.+)/
@@ -1,3 +1,3 @@
1
1
  module CharlockHolmes
2
- VERSION = "0.7.9"
2
+ VERSION = "0.7.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: static_holmes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.9
4
+ version: 0.7.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Lopez
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-07-08 00:00:00.000000000 Z
12
+ date: 2024-07-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake-compiler