chemlab 0.9.1 → 0.10.0

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: af0d8dedf01608e38acfc484a962e9de977f9295465c34ad1f0966508f2b445e
4
+ data.tar.gz: 7215d12dcaa5a553f8a8dec115cf0071d27fd43a57c8957625fdfe6104261361
5
5
  SHA512:
6
- metadata.gz: 461fe6fd2f7608d2058a9866c6cf8128b186afcf3a86e9153dd04849aa4e5c88399cef65b696de5823b8f8c24316a341984a596c862087e7f7926db5dd8e9ce4
7
- data.tar.gz: c72ef8cbb15aefb4c29098cefe12bf6009c3bec514c860c51a456e9ca9a175d51176d3714cc66b80cc07ca46ed6e5a986243fda9f09883c813a6ee2f236e1da5
6
+ metadata.gz: 6b17e06556b3acbb32169b1b4ce0ecdb3ddbd57fa7a7e3bdefa35c29a7ecf52f56242044cb818f85663f8ae403a96a86107a714deb65567ed76a95aadf3c60a2
7
+ data.tar.gz: 21ad99860894e2bb2990ff667063b5400d9bd9c3203d46b5db4812690d94153a718e28cb3adfded773183cf4f6433c178967ab856127da91aa5434b13043e00f
data/bin/chemlab-suite CHANGED
@@ -1 +1 @@
1
- bin/chemlab
1
+ chemlab
data/bin/chemlab-test CHANGED
@@ -1 +1 @@
1
- bin/chemlab
1
+ chemlab
@@ -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.10.0'
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.10.0
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: 2022-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control
@@ -256,7 +256,8 @@ files:
256
256
  homepage: https://about.gitlab.com/
257
257
  licenses:
258
258
  - MIT
259
- metadata: {}
259
+ metadata:
260
+ source_code_uri: https://gitlab.com/gitlab-org/quality/chemlab
260
261
  post_install_message:
261
262
  rdoc_options: []
262
263
  require_paths:
@@ -272,7 +273,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
272
273
  - !ruby/object:Gem::Version
273
274
  version: '0'
274
275
  requirements: []
275
- rubygems_version: 3.1.4
276
+ rubygems_version: 3.3.3
276
277
  signing_key:
277
278
  specification_version: 4
278
279
  summary: Automation framework built by GitLab, for the world.