8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/peatio/bitgo/hooks.rb', line 8
def check_compatibility
unless Gem::Requirement.new(BLOCKCHAIN_VERSION_REQUIREMENT)
.satisfied_by?(Gem::Version.new(Peatio::Blockchain::VERSION))
[
"Bitgo blockchain version requirement was not satisfied by Peatio::Blockchain.",
"Bitgo blockchain requires #{BLOCKCHAIN_VERSION_REQUIREMENT}.",
"Peatio::Blockchain version is #{Peatio::Blockchain::VERSION}"
].join('\n').tap { |s| Kernel.abort s }
end
unless Gem::Requirement.new(WALLET_VERSION_REQUIREMENT)
.satisfied_by?(Gem::Version.new(Peatio::Wallet::VERSION))
[
"Bitgo wallet version requirement was not satisfied by Peatio::Wallet.",
"Bitgo wallet requires #{WALLET_VERSION_REQUIREMENT}.",
"Peatio::Wallet version is #{Peatio::Wallet::VERSION}"
].join('\n').tap { |s| Kernel.abort s }
end
end
|