Sha256: 5f942e79c362857015f3466a1f1d974de3b9bfdcf9964387afa33c174a608b8e
Contents?: true
Size: 720 Bytes
Versions: 4
Compression:
Stored size: 720 Bytes
Contents
require_relative './version' module Percy def self.client_info "percy-capybara/#{VERSION}" end def self.environment_info env_strings = [ "rails/#{self._rails_version}", "sinatra/#{self._sinatra_version}", "ember-cli-rails/#{self._ember_cli_rails_version}", ].reject do |info| info =~ /\/$/ # reject if version is empty end env_strings.empty? ? 'unknown' : env_strings.join('; ') end def self._ember_cli_rails_version return unless defined? EmberCli require 'ember_cli/version' EmberCli::VERSION end def self._rails_version Rails.version if defined? Rails end def self._sinatra_version Sinatra::VERSION if defined? Sinatra end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
percy-capybara-4.2.0 | lib/environment.rb |
percy-capybara-4.1.1 | lib/environment.rb |
percy-capybara-4.1.0 | lib/environment.rb |
percy-capybara-4.0.2 | lib/environment.rb |