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 +4 -4
- data/README.md +3 -2
- data/lib/ffi-vix_disk_lib/api.rb +4 -3
- data/lib/ffi-vix_disk_lib/version.rb +1 -1
- data/spec/spec_helper.rb +10 -1
- metadata +21 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90e6eb50f5e487fd0bcce073027cbfa91adfaa2115886ac1631ab77ee7341eb7
|
4
|
+
data.tar.gz: 93a38079d647b491cb063a21fbe68cd8b69ae7bcb43d3cb7a6d67f536778d38d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
[![
|
5
|
-
[![
|
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
|
|
data/lib/ffi-vix_disk_lib/api.rb
CHANGED
@@ -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
|
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
|
26
|
-
|
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),
|
data/spec/spec_helper.rb
CHANGED
@@ -1,6 +1,15 @@
|
|
1
|
-
ENV[
|
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.
|
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:
|
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:
|
86
|
+
name: simplecov
|
73
87
|
requirement: !ruby/object:Gem::Requirement
|
74
88
|
requirements:
|
75
89
|
- - ">="
|
76
90
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
78
|
-
type: :
|
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:
|
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.
|
147
|
+
rubygems_version: 3.3.15
|
134
148
|
signing_key:
|
135
149
|
specification_version: 4
|
136
150
|
summary: Ruby FFI Binding to VMware VixDiskLib.
|