Sha256: e9515e4bc208c5d80652b8597e822499e6a12704f7b4485093182fde325a0023

Contents?: true

Size: 527 Bytes

Versions: 1

Compression:

Stored size: 527 Bytes

Contents

module Testable
  module_function

  VERSION = "0.4.0".freeze

  def version
    """
Testable v#{Testable::VERSION}
watir: #{gem_version('watir')}
selenium-webdriver: #{gem_version('selenium-webdriver')}
capybara: #{gem_version('capybara')}
    """
  end

  def gem_version(name)
    Gem.loaded_specs[name].version
  rescue NoMethodError
    puts "No gem loaded for #{name}."
  end

  def dependencies
    Gem.loaded_specs.values.map { |spec| "#{spec.name} #{spec.version}\n" }
       .uniq.sort.join(",").split(",")
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
testable-0.4.0 lib/testable/version.rb