ffi-vix_disk_lib 1.1.1 → 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 +38 -10
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[
|
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,17 +1,31 @@
|
|
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
|
8
8
|
- Rich Oliveri
|
9
9
|
- Jason Frey
|
10
|
-
autorequire:
|
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
|
@@ -27,7 +41,7 @@ dependencies:
|
|
27
41
|
- !ruby/object:Gem::Version
|
28
42
|
version: '0'
|
29
43
|
- !ruby/object:Gem::Dependency
|
30
|
-
name:
|
44
|
+
name: manageiq-style
|
31
45
|
requirement: !ruby/object:Gem::Requirement
|
32
46
|
requirements:
|
33
47
|
- - ">="
|
@@ -41,7 +55,7 @@ dependencies:
|
|
41
55
|
- !ruby/object:Gem::Version
|
42
56
|
version: '0'
|
43
57
|
- !ruby/object:Gem::Dependency
|
44
|
-
name:
|
58
|
+
name: rake
|
45
59
|
requirement: !ruby/object:Gem::Requirement
|
46
60
|
requirements:
|
47
61
|
- - ">="
|
@@ -55,19 +69,33 @@ dependencies:
|
|
55
69
|
- !ruby/object:Gem::Version
|
56
70
|
version: '0'
|
57
71
|
- !ruby/object:Gem::Dependency
|
58
|
-
name:
|
72
|
+
name: rspec
|
59
73
|
requirement: !ruby/object:Gem::Requirement
|
60
74
|
requirements:
|
61
75
|
- - ">="
|
62
76
|
- !ruby/object:Gem::Version
|
63
77
|
version: '0'
|
64
|
-
type: :
|
78
|
+
type: :development
|
65
79
|
prerelease: false
|
66
80
|
version_requirements: !ruby/object:Gem::Requirement
|
67
81
|
requirements:
|
68
82
|
- - ">="
|
69
83
|
- !ruby/object:Gem::Version
|
70
84
|
version: '0'
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: simplecov
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: 0.21.2
|
92
|
+
type: :development
|
93
|
+
prerelease: false
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: 0.21.2
|
71
99
|
description: Ruby FFI Binding to VMware VixDiskLib.
|
72
100
|
email:
|
73
101
|
- jerryk@redhat.com
|
@@ -101,7 +129,7 @@ homepage: http://github.com/ManageIQ/ffi-vix_disk_lib
|
|
101
129
|
licenses:
|
102
130
|
- Apache-2.0
|
103
131
|
metadata: {}
|
104
|
-
post_install_message:
|
132
|
+
post_install_message:
|
105
133
|
rdoc_options: []
|
106
134
|
require_paths:
|
107
135
|
- lib
|
@@ -116,8 +144,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
144
|
- !ruby/object:Gem::Version
|
117
145
|
version: '0'
|
118
146
|
requirements: []
|
119
|
-
rubygems_version: 3.
|
120
|
-
signing_key:
|
147
|
+
rubygems_version: 3.3.15
|
148
|
+
signing_key:
|
121
149
|
specification_version: 4
|
122
150
|
summary: Ruby FFI Binding to VMware VixDiskLib.
|
123
151
|
test_files:
|