lambdatest-sdk-utils 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83f844c49aec7396b7f9db2a58be818a5ecfecc631674e5a13c86ff79a8b6faa
|
4
|
+
data.tar.gz: adcd3321b3553ae56cbe598cc43e9b2f38670043c98021a808124f0e65ebb4c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5450821a1f82fc6718b31064a5b937b53128fa27accec043acd5917739b455c3785e794b3908ad17f32998cb756a9ffa730723cbd8b708ff7c994c9e60b7c029
|
7
|
+
data.tar.gz: 037dd7938be760b2e3cfdd909a69b01af3c40b4c4a59b1f0d9c274d009a8e30cb6205fc7f5922b8096e012cec96d33381d9c67c92ccaf1826b315b23bf3ee78a
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/lambdatest/sdk/utils/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "lambdatest-sdk-utils"
|
7
|
+
spec.version = Lambdatest::Sdk::Utils::VERSION
|
8
|
+
spec.authors = ["LambdaTest"]
|
9
|
+
spec.email = ["keys@lambdatest.com"]
|
10
|
+
|
11
|
+
spec.summary = "Ruby Selenium SDK for testing with Smart UI"
|
12
|
+
spec.description = "Ruby Selenium SDK for testing with Smart UI"
|
13
|
+
spec.homepage = "https://www.lambdatest.com"
|
14
|
+
spec.license = "MIT"
|
15
|
+
spec.required_ruby_version = ">= 2.6.0"
|
16
|
+
|
17
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
18
|
+
spec.metadata["source_code_uri"] = "https://github.com/LambdaTest/lambdatest-ruby-sdk"
|
19
|
+
spec.metadata["changelog_uri"] = "https://github.com/LambdaTest/lambdatest-ruby-sdk/lambdatest-selenium-driver/CHANGELOG.md"
|
20
|
+
|
21
|
+
# Specify which files should be added to the gem when it is released.
|
22
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
23
|
+
spec.files = Dir.chdir(__dir__) do
|
24
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
25
|
+
(File.expand_path(f) == __FILE__) ||
|
26
|
+
f.start_with?(*%w[bin/ test/ spec/ features/ .git .github appveyor])
|
27
|
+
end
|
28
|
+
end
|
29
|
+
spec.bindir = "exe"
|
30
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
31
|
+
spec.require_paths = ["lib"]
|
32
|
+
|
33
|
+
# Uncomment to register a new dependency of your gem
|
34
|
+
# spec.add_dependency "example-gem", "~> 1.0"
|
35
|
+
|
36
|
+
# For more information and examples about making a new gem, check out our
|
37
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
38
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
|
2
|
+
module Lambdatest
|
3
|
+
module Sdk
|
4
|
+
module Utils
|
5
|
+
def self.get_pkg_name
|
6
|
+
"@lambdatest/ruby-selenium-driver".freeze
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.get_smart_ui_server_address
|
10
|
+
ENV.fetch('SMARTUI_SERVER_ADDRESS', 'http://localhost:8080')
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require "logger"
|
2
|
+
require_relative "constants"
|
3
|
+
|
4
|
+
module Lambdatest
|
5
|
+
module Sdk
|
6
|
+
module Utils
|
7
|
+
def self.log_level
|
8
|
+
if ENV['LT_SDK_DEBUG'] == 'true'
|
9
|
+
Logger::DEBUG
|
10
|
+
else
|
11
|
+
log_level_str = ENV.fetch('LT_SDK_LOG_LEVEL', 'info').downcase
|
12
|
+
case log_level_str
|
13
|
+
when 'debug'
|
14
|
+
Logger::DEBUG
|
15
|
+
when 'warning'
|
16
|
+
Logger::WARN
|
17
|
+
when 'error'
|
18
|
+
Logger::ERROR
|
19
|
+
when 'critical'
|
20
|
+
Logger::FATAL
|
21
|
+
else
|
22
|
+
Logger::INFO
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.get_logger
|
28
|
+
logger = Logger.new(STDOUT)
|
29
|
+
logger.level = log_level
|
30
|
+
logger.progname = get_pkg_name
|
31
|
+
logger
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
data/lib/lambdatest/sdk/utils.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lambdatest-sdk-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LambdaTest
|
@@ -24,7 +24,10 @@ files:
|
|
24
24
|
- LICENSE.txt
|
25
25
|
- README.md
|
26
26
|
- Rakefile
|
27
|
+
- lambdatest-sdk-utils.gemspec
|
27
28
|
- lib/lambdatest/sdk/utils.rb
|
29
|
+
- lib/lambdatest/sdk/utils/constants.rb
|
30
|
+
- lib/lambdatest/sdk/utils/logger.rb
|
28
31
|
- lib/lambdatest/sdk/utils/version.rb
|
29
32
|
- sig/lambdatest/sdk/utils.rbs
|
30
33
|
homepage: https://www.lambdatest.com
|