cuprite-downloads 0.1.1 → 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: bd73ef03de423340cc643136bb155add7663193ec50a0b72e1fa0d514abf3d8a
4
- data.tar.gz: cb6a60ac4636048c71281bdc035fda55260d2b31c01a3ab0347bd31d4880a9d4
3
+ metadata.gz: 4b9d2e11a18cd5d0699ceea126a053c5ea23627c92ef4fdf9faf045c56f9d75a
4
+ data.tar.gz: 19c8549fddc3231a204d02b6d17dbaafcf705bee09850fd7355b189025f7a62e
5
5
  SHA512:
6
- metadata.gz: 3005cf9c6ab2961ef1b558d82c321356e108fd3865e47c7895169ce6f57b4e7996937538a66273b6c6aa7a6a87dc46b2e31c80d3e1d1da988fdfd0af3892b374
7
- data.tar.gz: c525aaac9b3f2fa82b117d1cdf675794aad507dd298aa88e233e465b6a9432cd0afc3d8db370cb12e661a2a1d2f67f59aa496006f4d877f805a5acaf0800ecaf
6
+ metadata.gz: 461f04d9f0382c693da4311c5b8e3a064c28abd5c8357d3d85ecc7351d70756d8d8b1f6834315a828b4d82fe615bb80b46454dc779cd66860739d66779196313
7
+ data.tar.gz: '069dd98db25fd8edf4aad1d2432e2e964788a582673653e185fcd80ff86c82244255ef97a0cab110201a3104ee9037209c1219cb361ea273697d68be14a69aa8'
data/Gemfile.lock CHANGED
@@ -1,13 +1,44 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cuprite-downloads (0.1.0)
4
+ cuprite-downloads (0.2.0)
5
+ cuprite
5
6
 
6
7
  GEM
7
8
  remote: https://rubygems.org/
8
9
  specs:
10
+ addressable (2.8.1)
11
+ public_suffix (>= 2.0.2, < 6.0)
12
+ capybara (3.38.0)
13
+ addressable
14
+ matrix
15
+ mini_mime (>= 0.1.3)
16
+ nokogiri (~> 1.8)
17
+ rack (>= 1.6.0)
18
+ rack-test (>= 0.6.3)
19
+ regexp_parser (>= 1.5, < 3.0)
20
+ xpath (~> 3.2)
21
+ concurrent-ruby (1.1.10)
22
+ cuprite (0.14.3)
23
+ capybara (~> 3.0)
24
+ ferrum (~> 0.13.0)
9
25
  diff-lcs (1.4.4)
26
+ ferrum (0.13)
27
+ addressable (~> 2.5)
28
+ concurrent-ruby (~> 1.1)
29
+ webrick (~> 1.7)
30
+ websocket-driver (>= 0.6, < 0.8)
31
+ matrix (0.4.2)
32
+ mini_mime (1.1.2)
33
+ nokogiri (1.13.10-x86_64-linux)
34
+ racc (~> 1.4)
35
+ public_suffix (5.0.1)
36
+ racc (1.6.1)
37
+ rack (3.0.2)
38
+ rack-test (2.0.2)
39
+ rack (>= 1.3)
10
40
  rake (13.0.6)
41
+ regexp_parser (2.6.1)
11
42
  rspec (3.10.0)
12
43
  rspec-core (~> 3.10.0)
13
44
  rspec-expectations (~> 3.10.0)
@@ -21,6 +52,12 @@ GEM
21
52
  diff-lcs (>= 1.2.0, < 2.0)
22
53
  rspec-support (~> 3.10.0)
23
54
  rspec-support (3.10.2)
55
+ webrick (1.7.0)
56
+ websocket-driver (0.7.5)
57
+ websocket-extensions (>= 0.1.0)
58
+ websocket-extensions (0.1.5)
59
+ xpath (3.2.0)
60
+ nokogiri (~> 1.8)
24
61
 
25
62
  PLATFORMS
26
63
  x86_64-linux
@@ -31,4 +68,4 @@ DEPENDENCIES
31
68
  rspec (~> 3.0)
32
69
 
33
70
  BUNDLED WITH
34
- 2.2.3
71
+ 2.2.32
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cuprite
4
4
  module Downloads
5
- VERSION = "0.1.1"
5
+ VERSION = "0.2.0"
6
6
  end
7
7
  end
@@ -32,8 +32,8 @@ module Capybara
32
32
  pathname.entries.reject(&:directory?).map(&:to_s)
33
33
  end
34
34
 
35
- def [] filename
36
- Capybara.current_session.document.synchronize do
35
+ def [] filename, wait: Capybara.default_max_wait_time
36
+ Capybara.current_session.document.synchronize(wait, errors: [NotFound]) do
37
37
  begin
38
38
  File.open(pathname.join(filename))
39
39
  rescue Errno::ENOENT
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cuprite-downloads
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-05 00:00:00.000000000 Z
11
+ date: 2022-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cuprite