rudra 1.1.4 → 1.1.5

This diff has not been reviewed by any users.
Log in in order to be able to vote.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rudra.rb +7 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fea1605ee31709cb1dcb4c868ec5df73c650b459dcafea5c78504b3e90abe4f6
4
- data.tar.gz: 0e3ea81a32db0e5f85e3b90af70abac74c54842dc8556f57256fc1f39b1e3f0e
3
+ metadata.gz: 27e45015364b99148e3e92162d6069446d7b711745d660089661d14ce1da5113
4
+ data.tar.gz: c9fb052da4d604b1247440f1ce660b31c0cbeb67d20cad5c0c90bc481a5805cd
5
5
  SHA512:
6
- metadata.gz: 3634c208291be7f59897a94b85c1cec4b2666db41551b5aad64b3761590819524c7a43ea501dbf031285284bb5df6ab2f12d0354d5428707bd17f76e3da6d4c7
7
- data.tar.gz: 1359e36111a9f186fbc53d8d7b7e183f0c6f40465a895e28d28a6ab54a0e680b2235b2a8f2dfe2b7fa358b788a85e74bb68c5259d2c7fbeca978b174dfe85d6c
6
+ metadata.gz: a8213217762733881e6249e7e5f23c380ff88ea6b4378a2b495792f8838327dee6f6de1ed4c940f0742b09da9c7357a69352652047da038deb2c81baaaed335c
7
+ data.tar.gz: 56d3540043140a8c1c2ed1b00e1fd16e4ec7521956670a9a158455b5881b49628de0c30fc48f5f0b0bb182850462efb742954b3e0409ad47758ebaaac43b4716
@@ -1284,9 +1284,13 @@ class Rudra
1284
1284
  options.add_argument('--headless')
1285
1285
  options.add_argument("--window-size=#{window_size}")
1286
1286
  end
1287
- if auth_username && auth_password
1288
- encoded = chrome_basic_auth_extension(auth_username, auth_password)
1289
- options.add_encoded_extension(encoded)
1287
+ if auth_username
1288
+ if headless
1289
+ $stdout.puts('Basic Access Authentication Extension cannot be installed while headless')
1290
+ else
1291
+ encoded = chrome_basic_auth_extension(auth_username, auth_password)
1292
+ options.add_encoded_extension(encoded)
1293
+ end
1290
1294
  end
1291
1295
  options.add_option(
1292
1296
  'excludeSwitches',
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rudra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Chen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-19 00:00:00.000000000 Z
11
+ date: 2020-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yard