percy/environment.rb in percy-appium-app-0.0.1 vs percy/environment.rb in percy-appium-app-0.0.2.pre.beta.0
- old
+ new
@@ -2,24 +2,26 @@
require 'appium_lib'
require 'appium_lib/version'
require_relative 'version'
-class Environment
- @percy_build_id = nil
- @percy_build_url = nil
- @session_type = nil
+module Percy
+ class Percy::Environment
+ @percy_build_id = nil
+ @percy_build_url = nil
+ @session_type = nil
- class << self
- attr_accessor :percy_build_id, :percy_build_url, :session_type
+ class << self
+ attr_accessor :percy_build_id, :percy_build_url, :session_type
- def get_client_info(flag = false)
- sdk_version = SDK_VERSION
- flag ? "percy-appium-app-ruby/#{sdk_version}" : "percy-appium-app/#{sdk_version}"
- end
+ def get_client_info(flag = false)
+ sdk_version = Percy::VERSION
+ flag ? "percy-appium-app-ruby/#{sdk_version}" : "percy-appium-app/#{sdk_version}"
+ end
- def get_env_info
- appium_version = Appium::VERSION # This assumes the 'appium_lib' gem provides a VERSION constant.
- ["appium/#{appium_version}", "ruby/#{RUBY_VERSION}"]
+ def get_env_info
+ appium_version = Appium::VERSION # This assumes the 'appium_lib' gem provides a VERSION constant.
+ ["appium/#{appium_version}", "ruby/#{RUBY_VERSION}"]
+ end
end
end
end