ffi-vix_disk_lib 1.2.0 → 1.3.0

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: cdb76ad123804d0fff4a0cc551c0c87bf2f19a55dd470d9b117a96d8a54fed41
4
- data.tar.gz: 9f914959653282a5b4364b5e89ba22c6779e4ffe5bcbdabf9083e1a1590ace03
3
+ metadata.gz: 90e6eb50f5e487fd0bcce073027cbfa91adfaa2115886ac1631ab77ee7341eb7
4
+ data.tar.gz: 93a38079d647b491cb063a21fbe68cd8b69ae7bcb43d3cb7a6d67f536778d38d
5
5
  SHA512:
6
- metadata.gz: 3d52ab24e0ca7a4af5e3c600b688de6fdec023fccfad5aeff57a2c7695276ee14ad61e54209ba24122ad5ba36493ac3373075d56d1702bf8152e7cef34e8b85e
7
- data.tar.gz: bd798b4365d6914e2596cd3bc1ae0d4b5b88f9b8416136e479f3b306cedb7cf044246d92d8f7d83db9f84549baa5de11b297d8323fbe25bd3e8f69107954bfa2
6
+ metadata.gz: 7a4a076169604a867a0ee9b487a5a7fad2753dbd1c6efc12811a08c608b244b1257944d80d7427c234b15369c7313c8ef5eee4a4924d50f3fc4844e77d8ed0f1
7
+ data.tar.gz: d41e1d4816fa0366c7af47dd9dd36641993cdc9997b374672387858ad338da4866f1c6e4e01badae4c5a906afa4eb32b7748d99aa0c70b4f031b5dc4adddb4de
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # ffi-vix_disk_lib
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/ffi-vix_disk_lib.svg)](http://badge.fury.io/rb/ffi-vix_disk_lib)
4
- [![Code Climate](http://img.shields.io/codeclimate/github/ManageIQ/ffi-vix_disk_lib.svg)](https://codeclimate.com/github/ManageIQ/ffi-vix_disk_lib)
5
- [![Dependency Status](https://gemnasium.com/ManageIQ/ffi-vix_disk_lib.svg)](https://gemnasium.com/ManageIQ/ffi-vix_disk_lib)
4
+ [![CI](https://github.com/ManageIQ/ffi-vix_disk_lib/actions/workflows/ci.yaml/badge.svg)](https://github.com/ManageIQ/ffi-vix_disk_lib/actions/workflows/ci.yaml)
5
+ [![Code Climate](https://codeclimate.com/github/ManageIQ/ffi-vix_disk_lib.svg)](https://codeclimate.com/github/ManageIQ/ffi-vix_disk_lib)
6
+ [![Test Coverage](https://codeclimate.com/github/ManageIQ/ffi-vix_disk_lib/badges/coverage.svg)](https://codeclimate.com/github/ManageIQ/ffi-vix_disk_lib/coverage)
6
7
 
7
8
  Ruby FFI Binding to VMware VixDiskLib.
8
9
 
@@ -19,11 +19,12 @@ module FFI
19
19
  nil
20
20
  end
21
21
 
22
- candidate_versions = %w[7.0.1 7.0.0 6.7.3 6.7.2 6.7.1 6.7.0 6.5.4 6.5.3 6.5.2 6.5.1 6.5.0 6.0.3 6.0.2 6.0.1 6.0.0 5.5.4 5.5.2 5.5.1 5.5.0 5.1.3 5.1.2 5.1.1 5.1.0 5.0.4 5.0.0 1.2.0 1.1.2]
22
+ candidate_versions = %w[8.0.0 7.0.3 7.0.2 7.0.1 7.0.0 6.7.3 6.7.2 6.7.1 6.7.0 6.5.4 6.5.3 6.5.2 6.5.1 6.5.0 6.0.3 6.0.2 6.0.1 6.0.0]
23
23
  candidate_libraries = candidate_versions.map { |v| "vixDiskLib.so.#{v}" }
24
24
 
25
- # LD_LIBRARY_PATH is not honored on Mac, so build our own rudimentary version
26
- if RbConfig::CONFIG["host_os"] =~ /darwin/ && (env = ENV["LD_LIBRARY_PATH"] || ENV["DYLD_LIBRARY_PATH"])
25
+ # LD_LIBRARY_PATH/DYLD_LIBRARY_PATH is not passed to child process on a Mac with SIP
26
+ # enabled, so build our own rudimentary version based on a different name
27
+ if RbConfig::CONFIG["host_os"] =~ /darwin/ && (env = ENV["LIBRARY_PATH"])
27
28
  candidate_libraries = candidate_libraries.product(env.split(":")).flat_map do |n, p|
28
29
  [
29
30
  File.join(p, n),
@@ -1,5 +1,5 @@
1
1
  module FFI
2
2
  module VixDiskLib
3
- VERSION = "1.2.0"
3
+ VERSION = "1.3.0"
4
4
  end
5
5
  end
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,15 @@
1
- ENV["LD_LIBRARY_PATH"] ||= File.expand_path("ext", __dir__)
1
+ if ENV['CI']
2
+ require 'simplecov'
3
+ SimpleCov.start
4
+ end
5
+
6
+ # LD_LIBRARY_PATH/DYLD_LIBRARY_PATH is not passed to child process on a Mac with SIP
7
+ # enabled, so build our own rudimentary version based on a different name
8
+ ENV["LIBRARY_PATH"] ||= File.expand_path("ext", __dir__) if RbConfig::CONFIG["host_os"] =~ /darwin/
2
9
 
3
10
  require 'ffi-vix_disk_lib'
11
+ puts
12
+ puts "\e[93mUsing libvixDiskLib #{FFI::VixDiskLib::API::VERSION}\e[0m"
4
13
 
5
14
  RSpec.configure do |config|
6
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-vix_disk_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jerry Keselman
@@ -10,8 +10,22 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-02-23 00:00:00.000000000 Z
13
+ date: 2022-12-21 00:00:00.000000000 Z
14
14
  dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: ffi
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - ">="
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ version: '0'
15
29
  - !ruby/object:Gem::Dependency
16
30
  name: bundler
17
31
  requirement: !ruby/object:Gem::Requirement
@@ -69,19 +83,19 @@ dependencies:
69
83
  - !ruby/object:Gem::Version
70
84
  version: '0'
71
85
  - !ruby/object:Gem::Dependency
72
- name: ffi
86
+ name: simplecov
73
87
  requirement: !ruby/object:Gem::Requirement
74
88
  requirements:
75
89
  - - ">="
76
90
  - !ruby/object:Gem::Version
77
- version: '0'
78
- type: :runtime
91
+ version: 0.21.2
92
+ type: :development
79
93
  prerelease: false
80
94
  version_requirements: !ruby/object:Gem::Requirement
81
95
  requirements:
82
96
  - - ">="
83
97
  - !ruby/object:Gem::Version
84
- version: '0'
98
+ version: 0.21.2
85
99
  description: Ruby FFI Binding to VMware VixDiskLib.
86
100
  email:
87
101
  - jerryk@redhat.com
@@ -130,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
144
  - !ruby/object:Gem::Version
131
145
  version: '0'
132
146
  requirements: []
133
- rubygems_version: 3.2.5
147
+ rubygems_version: 3.3.15
134
148
  signing_key:
135
149
  specification_version: 4
136
150
  summary: Ruby FFI Binding to VMware VixDiskLib.