lib/rbnacl/sodium/version.rb in rbnacl-3.1.2 vs lib/rbnacl/sodium/version.rb in rbnacl-3.2.0
- old
+ new
@@ -1,9 +1,10 @@
-require 'rbnacl/sodium'
+require "rbnacl/sodium"
module RbNaCl
module Sodium
+ # libsodium version API
module Version
MINIMUM_LIBSODIUM_VERSION = "0.4.3"
extend Sodium
attach_function :sodium_version_string, [], :string
@@ -14,10 +15,10 @@
installed_version = [MAJOR, MINOR, PATCH]
minimum_version = MINIMUM_LIBSODIUM_VERSION.split(".").map(&:to_i)
case installed_version <=> minimum_version
when -1
- raise "Sorry, you need to install libsodium #{MINIMUM_LIBSODIUM_VERSION}+. You have #{Version::STRING} installed"
+ fail "Sorry, you need to install libsodium #{MINIMUM_LIBSODIUM_VERSION}+. You have #{Version::STRING} installed"
end
end
end
end