osqp 0.1.1 → 0.1.2

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: 81100b0a27916edf758ca568e9213b8ea451c1efa664f00ddb84155c1c50f650
4
- data.tar.gz: af59920235f7c6c4c1f13ab61861fbbb4f27bf2aebbbab59cb9a3beaef6c2099
3
+ metadata.gz: eec3a6f84d3330d75ac4bd3293ecfa4a13fd6bd1134ccf663a885db6f9d38fe1
4
+ data.tar.gz: 40330861bf996109a354d294100532fa8b56f1f1e523cbd8422a5123322f5dd0
5
5
  SHA512:
6
- metadata.gz: b480edb450da31e0ef2714452db49caa36e0089b61fbcd8b89e0a92bba0cd2a81c3442cca7fa84e0f1947dfc7f36e50fe3b1dd773f42fe80203584be2ce6fb12
7
- data.tar.gz: ac74d1ec489c286618ebe8d10f1f1bf4ca4408966972e8ecbfbf8f80c918a42abdb9eb780dfbcac8dbc8016a8909727e82c53dc68c9b3c9da31564d16bd19405
6
+ metadata.gz: 51f93c37d11a8804b01813a0523aa7cce9b71babf794527c1208004534501dcdc3ae8334214a9ed01794dce38297f03714f8c35ab67e3754a1265b607900fe16
7
+ data.tar.gz: d848c6cbf0bc426bbfc77142d16095117f53351ec42bd36115903307e32353b0e5a0a74baf9800f8c1c6a0aab5b78608fc9df592b13077695c93159f1306ee86
@@ -1,3 +1,8 @@
1
+ ## 0.1.2 (2021-01-05)
2
+
3
+ - Added ARM shared library for Mac
4
+ - Updated OSQP to 0.6.2
5
+
1
6
  ## 0.1.1 (2020-04-10)
2
7
 
3
8
  - Changed to Apache 2.0 license to match OSQP
data/NOTICE.txt CHANGED
@@ -1,4 +1,18 @@
1
- Copyright 2019-2020 Andrew Kane
1
+ Copyright (c) 2019-2020 Andrew Kane
2
+
3
+ OSQP
4
+ Copyright (c) 2019 Bartolomeo Stellato, Goran Banjac, Paul Goulart, Stephen Boyd
5
+
6
+ This product includes software developed at Stanford University and at the University of Oxford.
7
+
8
+
9
+ The following external modules are included in this software library
10
+
11
+ QDLDL
12
+ Copyright (c) 2018, Paul Goulart, Bartolomeo Stellato, Goran Banjac.
13
+
14
+ AMD
15
+ Copyright (c) 1996-2015, Timothy A. Davis, Patrick R. Amestoy, and Iain S. Duff.
2
16
 
3
17
  Licensed under the Apache License, Version 2.0 (the "License");
4
18
  you may not use this file except in compliance with the License.
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  The [OSQP](https://osqp.org/) (Operator Splitting Quadratic Program) solver for Ruby
4
4
 
5
- [![Build Status](https://travis-ci.org/ankane/osqp.svg?branch=master)](https://travis-ci.org/ankane/osqp) [![Build status](https://ci.appveyor.com/api/projects/status/o93q4b56anxmnvwn/branch/master?svg=true)](https://ci.appveyor.com/project/ankane/osqp/branch/master)
5
+ [![Build Status](https://github.com/ankane/osqp/workflows/build/badge.svg?branch=master)](https://github.com/ankane/osqp/actions)
6
6
 
7
7
  ## Installation
8
8
 
@@ -82,5 +82,6 @@ To get started with development:
82
82
  git clone https://github.com/ankane/osqp.git
83
83
  cd osqp
84
84
  bundle install
85
+ bundle exec rake vendor:all
85
86
  bundle exec rake test
86
87
  ```
@@ -8,10 +8,28 @@ require "osqp/version"
8
8
  module OSQP
9
9
  class Error < StandardError; end
10
10
 
11
- def self.lib_version
12
- FFI.osqp_version.to_s
11
+ class << self
12
+ attr_accessor :ffi_lib
13
13
  end
14
+ lib_name =
15
+ if Gem.win_platform?
16
+ "libosqp.dll"
17
+ elsif RbConfig::CONFIG["host_os"] =~ /darwin/i
18
+ if RbConfig::CONFIG["host_cpu"] =~ /arm/i
19
+ "libosqp.arm64.dylib"
20
+ else
21
+ "libosqp.dylib"
22
+ end
23
+ else
24
+ "libosqp.so"
25
+ end
26
+ vendor_lib = File.expand_path("../vendor/#{lib_name}", __dir__)
27
+ self.ffi_lib = [vendor_lib]
14
28
 
15
29
  # friendlier error message
16
30
  autoload :FFI, "osqp/ffi"
31
+
32
+ def self.lib_version
33
+ FFI.osqp_version.to_s
34
+ end
17
35
  end
@@ -2,16 +2,13 @@ module OSQP
2
2
  module FFI
3
3
  extend Fiddle::Importer
4
4
 
5
- lib =
6
- if Gem.win_platform?
7
- "libosqp.dll"
8
- elsif RbConfig::CONFIG["host_os"] =~ /darwin/i
9
- "libosqp.dylib"
10
- else
11
- "libosqp.so"
12
- end
13
-
14
- dlload File.expand_path("../../vendor/#{lib}", __dir__)
5
+ libs = Array(OSQP.ffi_lib).dup
6
+ begin
7
+ dlload Fiddle.dlopen(libs.shift)
8
+ rescue Fiddle::DLError => e
9
+ retry if libs.any?
10
+ raise e
11
+ end
15
12
 
16
13
  typealias "c_float", "double"
17
14
  typealias "c_int", "long long"
@@ -1,3 +1,3 @@
1
1
  module OSQP
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,72 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: osqp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-11 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: minitest
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '5'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '5'
55
- - !ruby/object:Gem::Dependency
56
- name: numo-narray
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- description:
11
+ date: 2021-01-06 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
70
14
  email: andrew@chartkick.com
71
15
  executables: []
72
16
  extensions: []
@@ -82,6 +26,7 @@ files:
82
26
  - lib/osqp/version.rb
83
27
  - vendor/LICENSE
84
28
  - vendor/NOTICE
29
+ - vendor/libosqp.arm64.dylib
85
30
  - vendor/libosqp.dll
86
31
  - vendor/libosqp.dylib
87
32
  - vendor/libosqp.so
@@ -89,7 +34,7 @@ homepage: https://github.com/ankane/osqp
89
34
  licenses:
90
35
  - Apache-2.0
91
36
  metadata: {}
92
- post_install_message:
37
+ post_install_message:
93
38
  rdoc_options: []
94
39
  require_paths:
95
40
  - lib
@@ -104,8 +49,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
49
  - !ruby/object:Gem::Version
105
50
  version: '0'
106
51
  requirements: []
107
- rubygems_version: 3.1.2
108
- signing_key:
52
+ rubygems_version: 3.2.3
53
+ signing_key:
109
54
  specification_version: 4
110
55
  summary: OSQP (Operator Splitting Quadratic Program) solver for Ruby
111
56
  test_files: []