Class: VCR::VersionChecker

Inherits:
Object
  • Object
show all
Defined in:
lib/vcr/util/version_checker.rb

Instance Method Summary collapse

Constructor Details

#initialize(library_name, library_version, min_version) ⇒ VersionChecker

Returns a new instance of VersionChecker.



4
5
6
7
8
9
10
11
# File 'lib/vcr/util/version_checker.rb', line 4

def initialize(library_name, library_version, min_version)
  @library_name    = library_name
  @library_version = library_version
  @min_version     = min_version

  @major,     @minor,     @patch     = parse_version(library_version)
  @min_major, @min_minor, @min_patch = parse_version(min_version)
end

Instance Method Details

#check_version!Object



13
14
15
# File 'lib/vcr/util/version_checker.rb', line 13

def check_version!
  raise_too_low_error if too_low?
end