chemlab 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 00e25e2624a8c4ad20d1fa15db8bcd16ebe1940a91186465981963a462a958dd
4
- data.tar.gz: ffbc472131c05820118af09dc12d78c7f373bb91af996dcd083788894eba4d51
3
+ metadata.gz: 5511ef5fd5d6d4aba05a6ad59ba41d25d75c019b5314a2b079feada7cba946db
4
+ data.tar.gz: 9bbfbf9bf30ddd61c2f6caf5ede340be131217c2cf3e8e0db462abcad21b30c6
5
5
  SHA512:
6
- metadata.gz: 461fe6fd2f7608d2058a9866c6cf8128b186afcf3a86e9153dd04849aa4e5c88399cef65b696de5823b8f8c24316a341984a596c862087e7f7926db5dd8e9ce4
7
- data.tar.gz: c72ef8cbb15aefb4c29098cefe12bf6009c3bec514c860c51a456e9ca9a175d51176d3714cc66b80cc07ca46ed6e5a986243fda9f09883c813a6ee2f236e1da5
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
- # workaround for file:// protocol. URI.join() does not work with URI.join('file:///Users', '/user')
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 URI or Path
63
- # @param [URI,String] uri_or_path the URI or path
64
- # @return [URI,String] the URI or Path that was navigated to
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
- # Chemlab.configuration.browser.navigate_to(URI('https://example.com/path')) #=> URI('https://example.com/path')
68
- def navigate_to(uri_or_path)
60
+ def navigate_to(path)
69
61
  @session ||= Chemlab.configuration.browser.session
70
- @session.engine.goto(uri_or_path.to_s)
62
+ @session.engine.goto(path.to_s)
71
63
  end
72
64
 
73
65
  # The options used to create the browser session
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Chemlab
4
- VERSION = '0.9.1'
4
+ VERSION = '0.9.2'
5
5
  end
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.1
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-09-24 00:00:00.000000000 Z
11
+ date: 2021-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control