nlopt 0.1.3 → 0.2.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: 602a77cd42c00081de3dede47c44ee742f7e4005e1021147f156748ccd1237d0
4
- data.tar.gz: b1bc21d5c4623003966dcc5847faf9e72e9c24036103aee70471c0c55d971753
3
+ metadata.gz: d86d2057d5924c05984301bdd330d1ff775bef10d7f2e96200ef9b8173760b05
4
+ data.tar.gz: babcd047a506a8a232360391f3fcbfbc729e87f405491c067f06328dfb28853a
5
5
  SHA512:
6
- metadata.gz: 107e857772ea0e4ff58ca66d0d94b4343dd096b85645a7718667cb739cfdf7aa57fb34fd848c12ea0151105cdb99af2e59ccdaff436ca62e19a7743277e23255
7
- data.tar.gz: 2263fcc3f23bfcd103ff35d4f28357a133e00d82317578649343be47e31018ad7546e23eaffcba9a6061ce40aa936a702028aec6b84533ce4651b9f34969622c
6
+ metadata.gz: b231f7df8f4f4eb546fd67c09b8bc2e502740ef4f97b309c0ba7cfd2a4b74835ebf27ca53b3b8bf9b6c3c80286145fd632a277af9e3f512f1f34b55f07cb9642
7
+ data.tar.gz: 1fbd0ae321752a3405c654a16e1fe09796a56dabfa0a076674bd1dfbbfc33d11b431a556dafb38ff6a9918d33912d2066c63cc80e46b24f7daf0b1184a2d6c2c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.0 (2026-04-04)
2
+
3
+ - Dropped support for Ruby < 3.3
4
+
1
5
  ## 0.1.3 (2025-05-04)
2
6
 
3
7
  - Fixed memory leaks
data/LICENSE.txt CHANGED
@@ -1,5 +1,5 @@
1
1
  Copyright (c) 2007-2024 Massachusetts Institute of Technology
2
- Copyright (c) 2024 Andrew Kane
2
+ Copyright (c) 2024-2026 Andrew Kane
3
3
 
4
4
  Permission is hereby granted, free of charge, to any person obtaining
5
5
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -12,7 +12,7 @@ First, install NLopt. For Homebrew, use:
12
12
  brew install nlopt
13
13
  ```
14
14
 
15
- And for Ubuntu 22.04+, use:
15
+ And for Ubuntu, use:
16
16
 
17
17
  ```sh
18
18
  sudo apt-get install libnlopt0
data/lib/nlopt/opt.rb CHANGED
@@ -197,7 +197,7 @@ module NLopt
197
197
 
198
198
  if res < 0 && res != -4
199
199
  errmsg = FFI.nlopt_get_errmsg(@opt)
200
- msg = !errmsg.null? ? errmsg.to_s : "Bad result: #{FFI.nlopt_result_to_string(res).to_s}"
200
+ msg = !errmsg.null? ? errmsg.to_s : "Bad result: #{FFI.nlopt_result_to_string(res)}"
201
201
  raise Error, msg
202
202
  end
203
203
 
@@ -252,7 +252,7 @@ module NLopt
252
252
 
253
253
  def check_res(res)
254
254
  if res != 1
255
- raise Error, "Bad result: #{FFI.nlopt_result_to_string(res).to_s}"
255
+ raise Error, "Bad result: #{FFI.nlopt_result_to_string(res)}"
256
256
  end
257
257
  end
258
258
 
data/lib/nlopt/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module NLopt
2
- VERSION = "0.1.3"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nlopt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
@@ -47,14 +47,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
47
47
  requirements:
48
48
  - - ">="
49
49
  - !ruby/object:Gem::Version
50
- version: '3.1'
50
+ version: '3.3'
51
51
  required_rubygems_version: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  requirements: []
57
- rubygems_version: 3.6.7
57
+ rubygems_version: 4.0.6
58
58
  specification_version: 4
59
59
  summary: Nonlinear optimization for Ruby
60
60
  test_files: []