ffi-vix_disk_lib 1.2.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cdb76ad123804d0fff4a0cc551c0c87bf2f19a55dd470d9b117a96d8a54fed41
4
- data.tar.gz: 9f914959653282a5b4364b5e89ba22c6779e4ffe5bcbdabf9083e1a1590ace03
3
+ metadata.gz: 92ed99ac8d29efac4f6f94ee5041926b04c778bba3fdcc850320fe0df0eb6b86
4
+ data.tar.gz: b2dff56ce28cb62caf65afc3752235035f3aed39d37b6742320609ed4ff2a4b3
5
5
  SHA512:
6
- metadata.gz: 3d52ab24e0ca7a4af5e3c600b688de6fdec023fccfad5aeff57a2c7695276ee14ad61e54209ba24122ad5ba36493ac3373075d56d1702bf8152e7cef34e8b85e
7
- data.tar.gz: bd798b4365d6914e2596cd3bc1ae0d4b5b88f9b8416136e479f3b306cedb7cf044246d92d8f7d83db9f84549baa5de11b297d8323fbe25bd3e8f69107954bfa2
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
- [![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
 
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+
3
+ SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
4
+
5
+ echo "Building spec/ext/libvixDiskLib.so..."
6
+ make -C "$SCRIPT_DIR/../spec/ext"
7
+ echo "Building spec/ext/libvixDiskLib.so...Complete"
@@ -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.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 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.1"
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.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: 2021-02-23 00:00:00.000000000 Z
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: 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
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.2.5
149
+ rubygems_version: 3.3.15
134
150
  signing_key:
135
151
  specification_version: 4
136
152
  summary: Ruby FFI Binding to VMware VixDiskLib.