Sha256: 4934e6897f339e4d34cdf4f2287ccc58d70a220a2550c915aa2d4534af073808
Contents?: true
Size: 634 Bytes
Versions: 2
Compression:
Stored size: 634 Bytes
Contents
# -*- encoding : utf-8 -*- module Cardio module Version class << self CARD_MINOR = { 0 => 90, 1 => 1000 }.freeze # can remove and hardcode after 1.0 def release @version ||= File.read(File.expand_path("../../../card/VERSION", __dir__)).strip end def card_release @card_release ||= [1, minor, point].compact.map(&:to_s).join "." end private def bits release.split(".").map(&:to_i) end def major bits[0] end def minor CARD_MINOR[major] + bits[1] end def point bits[2] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
card-1.104.1 | lib/cardio/version.rb |
card-1.104.0 | lib/cardio/version.rb |