chemlab 0.1.0 → 0.2.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: f82c920b4402cead6b7bced74d33d7517d6af16df04c93e8b50c852a691c7ead
4
- data.tar.gz: 9934077c6073531b4251c3839ff3b02faa736642165039db57039ebdd4849b1c
3
+ metadata.gz: 73e83a84ab7f922018db0d907b81f78c94db589fc76ec38fbef6b9ddeda4dd75
4
+ data.tar.gz: e5c5de40de3781d65bd1ae9a08b1a60edf59e3e08fd18ad34fadc5fd87537234
5
5
  SHA512:
6
- metadata.gz: 4db0c48669a8f13199bd35760cf890ed76c4d4ff2e83897a062ad14424b4b3960ac7be2dcf055f41643ceb0931eebccea638bfa93789a36659f450129de445e0
7
- data.tar.gz: 7c756ff0d2fb485b0a394f07ce84309e08c5a80b5e94854d11523ff1e9ec73ac2f3af2f0570963ad7ec4f2ce609884f0e83b95e56d07462479561c4e1499d3f5
6
+ metadata.gz: 48258bdf4fb43b50f7a92aca8c889656c9e137b83b016c7f65a4462415272fcdac4836e8445b2c0704055159702e1b0b8fcd485111be6cd27abaac9ecaac0b07
7
+ data.tar.gz: cc20189ed0de8989635305e004070c25deec1f3f6a2ac3d5124ed6ddb99750b2ff29e912fa25c8f90cff0db15fa7f4180a22de982ecb0ee38f9b18b3df13e1f3
@@ -16,6 +16,16 @@ module Chemlab
16
16
  @browser = Runtime::Browser.new(browser)
17
17
  end
18
18
 
19
+ attr_reader :libraries
20
+ # Specify which libraries to load
21
+ def libraries=(libraries=[])
22
+ @libraries = Chemlab.const_set('Vendor', Module.new)
23
+
24
+ libraries.each do |library|
25
+ @libraries.const_set(library.to_s, library)
26
+ end
27
+ end
28
+
19
29
  # Call RSpec.configure for additional configuration
20
30
  def configure_rspec
21
31
  RSpec.configure do |rspec|
@@ -30,7 +30,7 @@ module Chemlab
30
30
  def initialize(url, browser)
31
31
  @engine = Watir::Browser.new(*browser)
32
32
 
33
- @engine.goto(Chemlab.configuration.base_url)
33
+ @engine.goto(Chemlab.configuration.base_url + url)
34
34
  end
35
35
 
36
36
  def current_url
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Chemlab
4
- VERSION = '0.1.0'
4
+ VERSION = '0.2.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.1.0
4
+ version: 0.2.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: 2020-11-07 00:00:00.000000000 Z
11
+ date: 2020-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debase