or-tools 0.16.2 → 0.17.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: 63a926d63d95220ccee1d6861a26fdc96787a209210cf8473bc44855cb62f57d
4
- data.tar.gz: 90a2bd6c3f72e759e22c104cfba792c39352d9908f3735fc17ca3ef15ca156db
3
+ metadata.gz: 6f503827e5b5501fe290c095fd74eb092fb2a22304a4c733585e2a5127d3a614
4
+ data.tar.gz: 91e4a8d01671b7b78b440791707a5cec3bf5345d68cb16ef1b1aeede10826f83
5
5
  SHA512:
6
- metadata.gz: b73722ccaa5d9700513c633dce30fa73d748431790c45c6bc77afa50375322c312578de81cd90128bfc0d2f0baff289094dba555e81c4dcbfb4137fb427add85
7
- data.tar.gz: 99d4db8c29b87db1e6697b1c8e5bb6475ea41e4ec7c85f05ab9ee0510c5484614d055745704a7b7ba1d3c39930bf8bcf1a98174ad68ec0ca197dac70deb72eb9
6
+ metadata.gz: b981b1ae5494da8e6909154e4ac76e5b5f3ca6760af290e99439642f1a53954c8d2cc56b7640a7a6b34f620ad11370cf6655f17403b0f0db4a04aa1ed58f2e92
7
+ data.tar.gz: 6726d9780b404702a1192d543767c69613562646b0dbd9ffa08e4e453fae9d15b6a4263ed4aaa4560fc5c7bcadb75530dcae1dffc38f1f0401ab1ec0cc859775
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.17.0 (2026-01-12)
2
+
3
+ - Updated OR-Tools to 9.15
4
+
5
+ ## 0.16.3 (2026-01-05)
6
+
7
+ - Fixed errors with Rice 4.9
8
+
1
9
  ## 0.16.2 (2026-01-02)
2
10
 
3
11
  - Fixed error with Rice 4.8
data/NOTICE.txt CHANGED
@@ -1,5 +1,5 @@
1
1
  Copyright 2010-2025 Google LLC
2
- Copyright 2020-2025 Andrew Kane
2
+ Copyright 2020-2026 Andrew Kane
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -172,21 +172,21 @@ void init_linear(Rice::Module& m) {
172
172
  .define_singleton_function(
173
173
  "_new",
174
174
  [](const std::string& name, MPSolver::OptimizationProblemType problem_type) {
175
- std::unique_ptr<MPSolver> solver(new MPSolver(name, problem_type));
175
+ MPSolver* solver = new MPSolver(name, problem_type);
176
176
  if (!solver) {
177
177
  throw std::runtime_error("Unrecognized solver type");
178
178
  }
179
179
  return solver;
180
- })
180
+ }, Rice::Return().takeOwnership())
181
181
  .define_singleton_function(
182
182
  "_create",
183
183
  [](const std::string& solver_id) {
184
- std::unique_ptr<MPSolver> solver(MPSolver::CreateSolver(solver_id));
184
+ MPSolver* solver = MPSolver::CreateSolver(solver_id);
185
185
  if (!solver) {
186
186
  throw std::runtime_error("Unrecognized solver type");
187
187
  }
188
188
  return solver;
189
- })
189
+ }, Rice::Return().takeOwnership())
190
190
  .define_method(
191
191
  "time_limit=",
192
192
  [](MPSolver& self, double time_limit) {
@@ -3,18 +3,18 @@ require "fileutils"
3
3
  require "net/http"
4
4
  require "tmpdir"
5
5
 
6
- version = "9.14.6206"
6
+ version = "9.15.6755"
7
7
 
8
8
  arch = RbConfig::CONFIG["host_cpu"]
9
9
  arm = arch.match?(/arm|aarch64/i)
10
10
 
11
11
  if RbConfig::CONFIG["host_os"].match?(/darwin/i)
12
12
  if arm
13
- filename = "or-tools_arm64_macOS-15.5_cpp_v#{version}.tar.gz"
14
- checksum = "7dd3fc35acc74a85f44e39099dcc2caa698d7a99e659e8d8456ce25bafe4a63b"
13
+ filename = "or-tools_arm64_macOS-26.2_cpp_v#{version}.tar.gz"
14
+ checksum = "de0400a45939a66ee13cd8360c230e830fc5e03a6ed5a8a8b60f58a39e4a67bc"
15
15
  else
16
- filename = "or-tools_x86_64_macOS-15.5_cpp_v#{version}.tar.gz"
17
- checksum = "de7ed91b0fe90094fb5f5ebd19869b69a8d52b9752e456752208a22a05b14f7f"
16
+ filename = "or-tools_x86_64_macOS-26.2_cpp_v#{version}.tar.gz"
17
+ checksum = "d2d36482727520ccaff979eba16f53e6b2cabf40b6fd1126e4d3b34fad2fe851"
18
18
  end
19
19
  else
20
20
  # try /etc/os-release with fallback to /usr/lib/os-release
@@ -29,22 +29,22 @@ else
29
29
 
30
30
  if os == "ubuntu" && os_version == "24.04" && !arm
31
31
  filename = "or-tools_amd64_ubuntu-24.04_cpp_v#{version}.tar.gz"
32
- checksum = "be3855a32a7390c3957d43ebd3faec1610acdc28f06ef33cb50f1f72a9aa6621"
32
+ checksum = "6f389320672cee00b78aacefb2bde33fef0bb988c3b2735573b9fffd1047fbda"
33
33
  elsif os == "ubuntu" && os_version == "22.04" && !arm
34
34
  filename = "or-tools_amd64_ubuntu-22.04_cpp_v#{version}.tar.gz"
35
- checksum = "127a82bbbf304d26721bb9b41ecce2d66f21c757204ab5aa2cc37eaa6ffb7eb6"
35
+ checksum = "0b30114d7c05f0596286bf3ef8d02adcf5f45be3b39273490e6bb74a2a9bd1ea"
36
36
  elsif os == "ubuntu" && os_version == "20.04" && !arm
37
37
  filename = "or-tools_amd64_ubuntu-20.04_cpp_v#{version}.tar.gz"
38
- checksum = "7705a7c11e0db4ec1d7841e184acd204787174c6cbdb2fbd81169823ed148c6c"
38
+ checksum = "cfe5068b0fe4bafff916ab1b75670b341e80571c8cfd8b647dfe3e97a233e836"
39
39
  elsif os == "debian" && os_version == "12" && !arm
40
40
  filename = "or-tools_amd64_debian-12_cpp_v#{version}.tar.gz"
41
- checksum = "285e8ec3a3399e45cdb4f67f48d4b65dbfa9c013b29036d409c72f96f0f34ab9"
41
+ checksum = "b2c9870c8778eeb26c98742402da17da039c058fca7eca87be5c90832b04153c"
42
42
  elsif os == "debian" && os_version == "11" && !arm
43
43
  filename = "or-tools_amd64_debian-11_cpp_v#{version}.tar.gz"
44
- checksum = "646b53e8d355290c4627d6bad0d36baeff38dc43605d317ac02cb811688d4dd2"
44
+ checksum = "c6c4341ff8f9aae3e77f161ca8ea3bb0d22f35ff696596fd11ec51c5da6bd4f7"
45
45
  elsif os == "arch" && !arm
46
46
  filename = "or-tools_amd64_archlinux_cpp_v#{version}.tar.gz"
47
- checksum = "6be039a13c3be7a3dbcdc413d455b43bba4590ce38859062898835effefb5ca4"
47
+ checksum = "5505079f7b2a6d9379ba6ae446a3a639226d455ef1cfa32d2d23ffc4566e3a4b"
48
48
  else
49
49
  platform =
50
50
  if Gem.win_platform?
@@ -141,6 +141,7 @@ Dir.mktmpdir do |extract_path|
141
141
  license_files = Dir.glob("**/*{LICENSE,LICENCE,NOTICE,COPYING,license,licence,notice,copying}*", base: extract_path)
142
142
  raise "License not found" unless license_files.any?
143
143
  license_files.each do |file|
144
+ next if File.directory?(File.join(extract_path, file))
144
145
  FileUtils.mkdir_p(File.join(path, File.dirname(file)))
145
146
  FileUtils.mv(File.join(extract_path, file), File.join(path, file))
146
147
  end
@@ -1,3 +1,3 @@
1
1
  module ORTools
2
- VERSION = "0.16.2"
2
+ VERSION = "0.17.0"
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.16.2
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane