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