Sha256: d9e45ca1156c7d699bfdfe4c9da6b11068a2febd1f0432674d11fc00b692c18b

Contents?: true

Size: 490 Bytes

Versions: 1

Compression:

Stored size: 490 Bytes

Contents

module Tapestry
  module_function

  VERSION = "0.6.0".freeze

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tapestry-0.6.0 lib/tapestry/version.rb