chemlab 0.9.1 → 0.9.2
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 +4 -4
- data/lib/chemlab/runtime/browser.rb +6 -14
- data/lib/chemlab/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5511ef5fd5d6d4aba05a6ad59ba41d25d75c019b5314a2b079feada7cba946db
|
|
4
|
+
data.tar.gz: 9bbfbf9bf30ddd61c2f6caf5ede340be131217c2cf3e8e0db462abcad21b30c6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 88ade200b47c7f01db6a4ca215da19a3c877cc9aede859ece778591f039d597def1f2d986146677ec5143d9e1df585ac23b3627e9f6dc06de1bab0061cb3f47e
|
|
7
|
+
data.tar.gz: f1b87c97400fee349d7eac0e94576eaec15ccc9694e0a92826e02865e79135f6a812b9dce3491961fa4fdcf2f1d9fd1a43621e10aacf73881875176ca6dda25c
|
|
@@ -49,25 +49,17 @@ module Chemlab
|
|
|
49
49
|
return Chemlab.configuration.browser.navigate_to(Chemlab.configuration.base_url + page_class.path)
|
|
50
50
|
end
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
uri = if URI(page_class.name.root_module.base_url).scheme == 'file'
|
|
54
|
-
URI(File.join(page_class.name.root_module.base_url, page_class.path))
|
|
55
|
-
else
|
|
56
|
-
URI.join(page_class.name.root_module.base_url, page_class.path)
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
Chemlab.configuration.browser.navigate_to(uri)
|
|
52
|
+
Chemlab.configuration.browser.navigate_to(File.join(page_class.name.root_module.base_url, page_class.path))
|
|
60
53
|
end
|
|
61
54
|
|
|
62
|
-
# Navigate to a
|
|
63
|
-
# @param [
|
|
64
|
-
# @return [
|
|
55
|
+
# Navigate to a Path
|
|
56
|
+
# @param [String] path the path to navigate to, relative to the +base_url+
|
|
57
|
+
# @return [String] the path that was navigated to
|
|
65
58
|
# @example
|
|
66
59
|
# Chemlab.configuration.browser.navigate_to('/path') #=> /path
|
|
67
|
-
|
|
68
|
-
def navigate_to(uri_or_path)
|
|
60
|
+
def navigate_to(path)
|
|
69
61
|
@session ||= Chemlab.configuration.browser.session
|
|
70
|
-
@session.engine.goto(
|
|
62
|
+
@session.engine.goto(path.to_s)
|
|
71
63
|
end
|
|
72
64
|
|
|
73
65
|
# The options used to create the browser session
|
data/lib/chemlab/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chemlab
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GitLab Quality
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-10-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: climate_control
|