Sha256: c9802f8ed4ea05562c51d73d0e4c85787243330934ef4d28c93e8e4b2b64d399

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

module Bake
  class Version
    def self.number
      "2.43.0"
    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.43.0 lib/common/version.rb