Sha256: 3202f686d434c257ae03dbc2583c3b20ac1db5b34617b94fb0f16df7895454a9

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

module Bake
  class Version
    def self.number
      "2.37.7"
    end

    def self.printBakeVersion(ry = "")
      puts "-- bake#{ry} #{Bake::Version.number}, ruby #{RUBY_VERSION}p#{RUBY_PATCHLEVEL}, platform #{RUBY_PLATFORM} --"
    end

    def self.printBakeryVersion()
      printBakeVersion("ry")
    end

    def self.printBakeqacVersion()
      printBakeVersion("qac")
    end

    def self.printBakecleanVersion()
      printBakeVersion("clean")
    end
  end

  expectedRGen = "0.8.2"
  expectedRText = "0.9.0"
  expectedConcurrent = "1.0.5"

  begin
    gem "rgen", "=#{expectedRGen}"
  rescue Exception => e
    puts "Warning: Failed to load rgen #{expectedRGen}, using latest version"
  end

  begin
    gem "rtext", "=#{expectedRText}"
  rescue Exception => e
    puts "Warning: Failed to load rtext #{expectedRText}, using latest version"
  end

  begin
    gem "concurrent-ruby", "=#{expectedConcurrent}"
  rescue Exception => e
    puts "Warning: Failed to load concurrent-ruby #{expectedConcurrent}, using latest version"
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bake-toolkit-2.37.7 lib/common/version.rb