or-tools 0.7.1 → 0.7.2

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: d3cfb5b8fd7f6a4563b2d50a2357e4bfc72fc5ef69e2c7c1a6ad7e7736a66235
4
- data.tar.gz: a1e2307c4a94495f9fe28e85e68171a9a3474a45ed98344250920360adffbd0f
3
+ metadata.gz: 2a6d267706d117ea1b3e1e76b0c74f49d28fedb300e39243ccf9d5160bcc5c76
4
+ data.tar.gz: 401e862ce8f7ae97608c746df879d7b43b39738bb45293097ef0dd61363b6491
5
5
  SHA512:
6
- metadata.gz: 8b62fd4b68b1a3b119d8da2987d263ad2fb0c4ca4d1062ef274f3dea440db62414af6188b769180a740a22898d26657569e71fefd0af9e754442061bcf481a1a
7
- data.tar.gz: c4fbe636cd22654c867f25c954d1652540b54239a9427a7795033027a60ca7538b864e74c0134296040f57bf945750dbc80384965e7d449f9a5fb1474163ce9d
6
+ metadata.gz: 34775f80be4bcf4fb0b039189365d66241821f9805ffa0e83f794a8c1fa00e5c3857ac90b2c98b2050004e92eb4b522155f11475b8335ac1f9f18666bd775503
7
+ data.tar.gz: fb904b96d10d5e88e9cbdc2326b031f46a565589546786899797432a66487464afaf31ff86f2f3f751d24cdf1993f09a366b7f0e411f28004292de4a12272bf6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.7.2 (2022-05-28)
2
+
3
+ - Fixed library not loaded error on Mac
4
+
1
5
  ## 0.7.1 (2022-05-27)
2
6
 
3
7
  - Added support for time limit for `Solver`
@@ -23,8 +23,9 @@ else
23
23
  rpath = "'#{rpath_prefix}/../../tmp/or-tools/lib'"
24
24
  end
25
25
 
26
+ # find_header and find_library first check without adding path
27
+ # which can cause them to find system library
26
28
  $INCFLAGS << " -I#{inc}"
27
-
28
29
  $LDFLAGS.prepend("-Wl,-rpath,#{rpath} -L#{lib} ")
29
30
  raise "OR-Tools not found" unless have_library("ortools")
30
31
 
@@ -142,12 +142,11 @@ Dir.mktmpdir do |extract_path|
142
142
 
143
143
  # shared library
144
144
  FileUtils.mkdir(File.join(path, "lib"))
145
- Dir.glob("lib/libortools.{dylib,so.9}", base: extract_path) do |file|
146
- FileUtils.cp(File.join(extract_path, file), File.join(path, file))
147
- end
148
- so_path = File.join(path, "lib/libortools.so.9")
149
- if File.exist?(so_path)
150
- File.symlink(so_path, File.join(path, "lib/libortools.so"))
145
+ Dir.glob("lib/libortools.{9.dylib,so.9}", base: extract_path) do |file|
146
+ so_path = File.join(path, file)
147
+ FileUtils.cp(File.join(extract_path, file), so_path)
148
+ ext = file.end_with?(".dylib") ? "dylib" : "so"
149
+ File.symlink(so_path, File.join(path, "lib/libortools.#{ext}"))
151
150
  end
152
151
  end
153
152
 
@@ -1,3 +1,3 @@
1
1
  module ORTools
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: or-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane