From 26a22baddc2cdb0b37af5dca2d07e54524ca1bae Mon Sep 17 00:00:00 2001 From: Lars Kanis Date: Thu, 9 Jan 2020 16:25:26 +0100 Subject: [PATCH] Require "ffi/version" per default FFI::VERSION should be available in the default API. --- lib/ffi/ffi.rb | 1 + spec/ffi/ffi_spec.rb | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/lib/ffi/ffi.rb b/lib/ffi/ffi.rb index 7d9cc2d0f..5201dae81 100644 --- a/lib/ffi/ffi.rb +++ b/lib/ffi/ffi.rb @@ -43,3 +43,4 @@ require 'ffi/autopointer' require 'ffi/variadic' require 'ffi/enum' +require 'ffi/version' diff --git a/spec/ffi/ffi_spec.rb b/spec/ffi/ffi_spec.rb index bb93f3765..1ff504575 100644 --- a/spec/ffi/ffi_spec.rb +++ b/spec/ffi/ffi_spec.rb @@ -25,4 +25,10 @@ end end + + describe "VERSION" do + it "should be kind of version" do + expect( FFI::VERSION ).to match(/^\d+\.\d+.\d+$/) + end + end end