ffi-vix_disk_lib 1.2.0 → 1.3.1
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/bin/setup +7 -0
- 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 +24 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92ed99ac8d29efac4f6f94ee5041926b04c778bba3fdcc850320fe0df0eb6b86
|
4
|
+
data.tar.gz: b2dff56ce28cb62caf65afc3752235035f3aed39d37b6742320609ed4ff2a4b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a379c112f129cb4cf8b8887e9c78e9ac9381e71fbc7d5ab61ebf5ea00d00ff66fd907816a6641e4d8ddb920605f2a0f43d1d15b3e8198d496985904b90d28f07
|
7
|
+
data.tar.gz: c46e55e98cb86dd65d6307a5f46bf8c66241fb5825a22599378aff24a37dd03862ac1bb90bc3add157634b9785d7474816b8824ee2a43e0e2a121545ed12de22
|
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/bin/setup
ADDED
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.2 8.0.1 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.1
|
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: 2023-08-23 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,30 +83,32 @@ 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
|
88
102
|
- roliveri@redhat.com
|
89
103
|
- jfrey@redhat.com
|
90
|
-
executables:
|
104
|
+
executables:
|
105
|
+
- setup
|
91
106
|
extensions: []
|
92
107
|
extra_rdoc_files: []
|
93
108
|
files:
|
94
109
|
- LICENSE.txt
|
95
110
|
- README.md
|
111
|
+
- bin/setup
|
96
112
|
- lib/ffi-vix_disk_lib.rb
|
97
113
|
- lib/ffi-vix_disk_lib/api.rb
|
98
114
|
- lib/ffi-vix_disk_lib/api_wrapper.rb
|
@@ -130,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
146
|
- !ruby/object:Gem::Version
|
131
147
|
version: '0'
|
132
148
|
requirements: []
|
133
|
-
rubygems_version: 3.
|
149
|
+
rubygems_version: 3.3.15
|
134
150
|
signing_key:
|
135
151
|
specification_version: 4
|
136
152
|
summary: Ruby FFI Binding to VMware VixDiskLib.
|