cbc-wrapper 2.9.7.3 → 2.9.9

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
  SHA1:
3
- metadata.gz: 96c85790fb707b892288ae16da8a73c74d5f3e22
4
- data.tar.gz: 409ce47d89b11be9ea72f71b05258918e7f800c0
3
+ metadata.gz: 6b421327ceba58d263c08464b555eaaa3a6ba179
4
+ data.tar.gz: 6292a774f0ae034ee79a16ce10e6f80daf82d1eb
5
5
  SHA512:
6
- metadata.gz: ef61f67ef204e77cdc348a6966e95d71a7970a4a4b1f89cfbaad48300b6ab939cfbb955a2ca5a20b3bd2f3d68077488d72b823b2c51c84a6cbfd37209a98c5a2
7
- data.tar.gz: 49c281493267c8eb0986ad5ac1ab57803bd015b70f1813c99e85286a032443c86df45beb984437c9d0dbd98d8a0f70253d3c9b1f072e19bb1de84f91d492fd5a
6
+ metadata.gz: 4eef24ec3cd8cfbf93b3a5101a7a8721e740343772d3e66d5cbae31226f362b624d3405d992cad5bc21725ba9780c9fc4c7723f4af31cad2d28fe6bb3210d2c6
7
+ data.tar.gz: 5417820e85a4e832cd820b76e4502489bfbb0c29d9b9b4bfb8890dea102d1b7263395eea31cdfd7cc89b716f675979d2015505e1747cdef39e07cf0f2006f58b
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Cbc-Wrapper
2
2
 
3
3
  This gem wraps the Coin-Or Cbc Mixed Integer Linear Programming Library.
4
- It uses the version 2.9.7 of Cbc.
4
+ It uses the version 2.9.9 of Cbc.
5
5
 
6
6
  ## Installation
7
7
 
data/Rakefile CHANGED
@@ -10,15 +10,6 @@ ensure
10
10
  Dir.chdir(original_dir)
11
11
  end
12
12
 
13
- # RSpec::Core::RakeTask.new(:spec)
14
- #
15
- # spec = Gem::Specification.load('cbc-wrapper.gemspec')
16
- # Rake::ExtensionTask.new('cbc-wrapper', spec) do |ext|
17
- # ext.lib_dir = 'lib/cbc-wrapper'
18
- # ext.tmp_dir = "tmp"
19
- # ext.name = 'cbc_wrapper'
20
- # end
21
-
22
13
  SHARED_LIBRARY_EXTENSION = RUBY_PLATFORM.include?("darwin") ? 'bundle' : 'so'
23
14
  EXTENSION = 'lib/cbc-wrapper/cbc_wrapper.'+SHARED_LIBRARY_EXTENSION
24
15
 
@@ -26,7 +17,6 @@ desc "Use extconf.rb and make to build the extension."
26
17
  task :build_extension => EXTENSION
27
18
 
28
19
  file EXTENSION => 'ext/cbc-wrapper/cbc_wrap.c' do
29
- puts "start"
30
20
  in_dir('ext/cbc-wrapper') do
31
21
  system("ruby extconf.rb")
32
22
  system("make")
data/bin/console CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require "cbc"
4
+ require "cbc-wrapper"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -1,15 +1,15 @@
1
- require 'mkmf'
1
+ require "mkmf"
2
2
  ROOT_DIR = File.dirname(File.absolute_path(__FILE__))
3
3
 
4
4
  TARBALL_PATH = "/tmp/Cbc.tgz"
5
- CBC_SRC_DIR = "/tmp/Cbc-2.9.7"
5
+ CBC_SRC_DIR = "/tmp/Cbc-2.9.9"
6
6
  CBC_INSTALL = "#{ROOT_DIR}/install"
7
7
  def install_cbc
8
- system "curl -o #{TARBALL_PATH} https://www.coin-or.org/download/source/Cbc/Cbc-2.9.7.tgz"
8
+ system "curl -o #{TARBALL_PATH} https://www.coin-or.org/download/source/Cbc/Cbc-2.9.9.tgz"
9
9
  Dir.chdir "/tmp" do
10
10
  system "rm -rf #{CBC_SRC_DIR}; tar -xzf #{TARBALL_PATH}"
11
11
  res = system "cd #{CBC_SRC_DIR} && ./configure --prefix=#{CBC_INSTALL} -C --with-pic --without-static && make -j `bash -c \"grep -c ^processor /proc/cpuinfo\"` && make install"
12
- if not res
12
+ unless res
13
13
  puts "Failed to build CBC, aborting... Cbc source is in #{CBC_SRC_DIR}"
14
14
  exit 1
15
15
  end
@@ -38,14 +38,14 @@ libs = %w(
38
38
  )
39
39
 
40
40
  libs.each do |lib|
41
- find_library(lib,nil, "#{CBC_INSTALL}/lib")
41
+ find_library(lib, nil, "#{CBC_INSTALL}/lib")
42
42
  end
43
43
 
44
- headers = Dir["#{CBC_INSTALL}/include/coin/*.h"].map{ |h| h.split('/').last }
44
+ headers = Dir["#{CBC_INSTALL}/include/coin/*.h"].map { |h| h.split("/").last }
45
45
  headers.each do |header|
46
46
  find_header(header, "#{CBC_INSTALL}/include/coin")
47
47
  end
48
48
 
49
49
  dir_config("cbc-wrapper")
50
50
  RPATHFLAG << " -Wl,-rpath,'$$ORIGIN/install/lib'"
51
- create_makefile('cbc_wrapper')
51
+ create_makefile("cbc_wrapper")
@@ -1,3 +1,3 @@
1
1
  module CbcWrapper
2
- VERSION = "2.9.7.3"
2
+ VERSION = "2.9.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cbc-wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.7.3
4
+ version: 2.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Verger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-01 00:00:00.000000000 Z
11
+ date: 2017-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  version: '0'
111
111
  requirements: []
112
112
  rubyforge_project:
113
- rubygems_version: 2.4.5.1
113
+ rubygems_version: 2.5.2
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: Bare wrapper around Cbc Linear Programming Solver made with SWIG