glpk 0.2.1 → 0.3.1

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: b33673df7b1d1ddefb1d561f60a0742cc57988154b027814690a23751eb325ad
4
- data.tar.gz: 1145b0ad7dfbc30a7fd4cd11c83ad834deb98679760f613d018620869e9956c4
3
+ metadata.gz: b89feefdb18a0cddfcc9760b907d25a735cab858be37666c3384f61dfb411153
4
+ data.tar.gz: 6e12add3b8c50f8811570e1d78b6a1b262c3f552ea8160bad18eeb9477026f14
5
5
  SHA512:
6
- metadata.gz: 4be3835974e198a429e28c9aef30b898c8b1fa2e8634e80b822570a533c6f6b2ac92a4416c7d04af0f2ec53b8edef558fd263b9bedcd09d85276a4f8c6a92123
7
- data.tar.gz: 967a2d957f359fccfc40d3ce03eb8526d445a1142119417c27a0c7c76017552bbd13b3413964cc6a99209e5baeef2e415a474d7f37c79d056ef4a53b3ac1aceb
6
+ metadata.gz: cdd07db9af3eb2565245d121dccb0f3cef88f5766d436d46144ae38e19237acd6fa1da1fd9cddbe672d5a1a55662d8cc12471e32cd4f1f1f35553161b441fae3
7
+ data.tar.gz: 2d4ef43d295f94eb8967ae660d936510255d4338b9e4b9efe64a701e71a07d2ddbc4fe01d0b03bba2d04d3c229b386d5f343457248e10b1c7e8d5321c330362d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.3.1 (2024-12-29)
2
+
3
+ - Fixed shared library detection on Mac x86-64
4
+
5
+ ## 0.3.0 (2024-10-22)
6
+
7
+ - Dropped support for Ruby < 3.1
8
+
1
9
  ## 0.2.1 (2023-06-07)
2
10
 
3
11
  - Added `free` method
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Check out [Opt](https://github.com/ankane/opt) for a high-level interface
6
6
 
7
- [![Build Status](https://github.com/ankane/glpk-ruby/workflows/build/badge.svg?branch=master)](https://github.com/ankane/glpk-ruby/actions)
7
+ [![Build Status](https://github.com/ankane/glpk-ruby/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/glpk-ruby/actions)
8
8
 
9
9
  ## Installation
10
10
 
@@ -76,7 +76,7 @@ problem = Glpk.read_lp("hello.lp")
76
76
  problem = Glpk.read_mps("hello.mps")
77
77
  ```
78
78
 
79
- Free the problem (only required in multi-threaded environments) [unreleased]
79
+ Free the problem (required in multi-threaded environments)
80
80
 
81
81
  ```ruby
82
82
  problem.free
data/lib/glpk/problem.rb CHANGED
@@ -123,7 +123,7 @@ module Glpk
123
123
  row_primal: num_rows.times.map { |i| FFI.glp_get_row_prim(model, i + 1) },
124
124
  col_primal: num_cols.times.map { |i| FFI.glp_get_col_prim(model, i + 1) },
125
125
  row_dual: num_rows.times.map { |i| FFI.glp_get_row_dual(model, i + 1) },
126
- col_dual: num_cols.times.map { |i| FFI.glp_get_col_dual(model, i + 1) },
126
+ col_dual: num_cols.times.map { |i| FFI.glp_get_col_dual(model, i + 1) }
127
127
  }
128
128
  end
129
129
 
data/lib/glpk/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Glpk
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.1"
3
3
  end
data/lib/glpk.rb CHANGED
@@ -19,7 +19,7 @@ module Glpk
19
19
  if RbConfig::CONFIG["host_cpu"] =~ /arm|aarch64/i
20
20
  ["libglpk.dylib", "/opt/homebrew/lib/libglpk.dylib"]
21
21
  else
22
- ["libglpk.dylib"]
22
+ ["libglpk.dylib", "/usr/local/lib/libglpk.dylib"]
23
23
  end
24
24
  else
25
25
  ["libglpk.so", "libglpk.so.40"]
metadata CHANGED
@@ -1,16 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glpk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-06-08 00:00:00.000000000 Z
12
- dependencies: []
13
- description:
10
+ date: 2024-12-29 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: fiddle
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '0'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '0'
14
26
  email: andrew@ankane.org
15
27
  executables: []
16
28
  extensions: []
@@ -27,7 +39,6 @@ homepage: https://github.com/ankane/glpk-ruby
27
39
  licenses:
28
40
  - GPL-3.0-or-later
29
41
  metadata: {}
30
- post_install_message:
31
42
  rdoc_options: []
32
43
  require_paths:
33
44
  - lib
@@ -35,15 +46,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
35
46
  requirements:
36
47
  - - ">="
37
48
  - !ruby/object:Gem::Version
38
- version: '2.7'
49
+ version: '3.1'
39
50
  required_rubygems_version: !ruby/object:Gem::Requirement
40
51
  requirements:
41
52
  - - ">="
42
53
  - !ruby/object:Gem::Version
43
54
  version: '0'
44
55
  requirements: []
45
- rubygems_version: 3.4.10
46
- signing_key:
56
+ rubygems_version: 3.6.2
47
57
  specification_version: 4
48
58
  summary: Linear programming kit for Ruby
49
59
  test_files: []