Sha256: dd7b11629df725d0dcb8cf29d4e287ce551b6c557d86d1e670aab679fc17c6e5
Contents?: true
Size: 527 Bytes
Versions: 1
Compression:
Stored size: 527 Bytes
Contents
module Testable module_function VERSION = "0.9.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.9.0 | lib/testable/version.rb |