wist 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +26 -21
  4. data/lib/wist.rb +8 -8
  5. data/wist.gemspec +1 -1
  6. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f403e9d1c710e821f19cfd772215424dbba8b5e59bf20ed7fa2d805590cd36ec
4
- data.tar.gz: bd3d923432d35fef5ed3ebb207f6d694131f1492c5f7bac617c28eb02d81fe99
3
+ metadata.gz: f50d2a4e813ee0d298dfd8c1bc146178d502100547924ce6c98c87d86f689efe
4
+ data.tar.gz: 479e8e67c13dc4c3f008e0300bdc9b1cc64b1fab8a8b8dc6cd5ea989b0bf9705
5
5
  SHA512:
6
- metadata.gz: '080bdc0fa6c0e13e6dc37c59c2905533ada9f847b305578272257ad72dcba50cfacf5e4c1fc151af3e91a225accc09fb3a2c5be8bf8c76a7bed1fd8eb798c931'
7
- data.tar.gz: '0073750638256f8ffb666ae198c9a7c5df318d629027d583a091c0a9a1cdd221f774fb9a5d5465d6dd804dcd447bf18ba997c473c2bbea12c26008758a98909b'
6
+ metadata.gz: fe381784ced54fa784608bba42ff0ed9fe38f85ff52e06916f5e1314c059ebffe7f4e01e44aca1fed743e2ff0d31e4152b11a386e45344a391effd86ed128775
7
+ data.tar.gz: 314c75cbb6cc1265fbaa9160d96cd0b334211928d483b14ff5bb2b694a6bfc817363491bf4b779406bf08ac97cf041d2bf59acc01256c39c6af05ef959d512d4
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source 'http://rubygems.org/'
2
2
  gemspec
3
3
 
4
- gem 'capybara', '3.22.0'
4
+ gem 'capybara', '3.36.0'
5
5
  gem 'pry'
6
6
  gem 'rake'
7
7
  gem 'minitest-reporters'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wist (0.5.0)
4
+ wist (0.6.0)
5
5
  capybara
6
6
  common_assert
7
7
  selenium-webdriver
@@ -9,47 +9,52 @@ PATH
9
9
  GEM
10
10
  remote: http://rubygems.org/
11
11
  specs:
12
- addressable (2.6.0)
13
- public_suffix (>= 2.0.2, < 4.0)
12
+ addressable (2.8.0)
13
+ public_suffix (>= 2.0.2, < 5.0)
14
14
  ansi (1.5.0)
15
15
  builder (3.2.2)
16
- capybara (3.22.0)
16
+ capybara (3.36.0)
17
17
  addressable
18
+ matrix
18
19
  mini_mime (>= 0.1.3)
19
20
  nokogiri (~> 1.8)
20
21
  rack (>= 1.6.0)
21
22
  rack-test (>= 0.6.3)
22
- regexp_parser (~> 1.5)
23
+ regexp_parser (>= 1.5, < 3.0)
23
24
  xpath (~> 3.2)
24
- childprocess (1.0.1)
25
- rake (< 13.0)
25
+ childprocess (4.1.0)
26
26
  coderay (1.1.2)
27
27
  common_assert (0.0.1)
28
+ matrix (0.4.2)
28
29
  method_source (0.9.2)
29
- mini_mime (1.0.1)
30
- mini_portile2 (2.4.0)
30
+ mini_mime (1.1.2)
31
+ mini_portile2 (2.7.1)
31
32
  minitest (5.5.1)
32
33
  minitest-reporters (1.0.11)
33
34
  ansi
34
35
  builder
35
36
  minitest (>= 5.0)
36
37
  ruby-progressbar
37
- nokogiri (1.10.3)
38
- mini_portile2 (~> 2.4.0)
38
+ nokogiri (1.13.1)
39
+ mini_portile2 (~> 2.7.0)
40
+ racc (~> 1.4)
39
41
  pry (0.12.2)
40
42
  coderay (~> 1.1.0)
41
43
  method_source (~> 0.9.0)
42
- public_suffix (3.1.0)
43
- rack (2.0.7)
44
+ public_suffix (4.0.6)
45
+ racc (1.6.0)
46
+ rack (2.2.3)
44
47
  rack-test (1.1.0)
45
48
  rack (>= 1.0, < 3)
46
- rake (12.3.2)
47
- regexp_parser (1.5.1)
49
+ rake (13.0.6)
50
+ regexp_parser (2.2.0)
51
+ rexml (3.2.5)
48
52
  ruby-progressbar (1.7.1)
49
- rubyzip (1.2.3)
50
- selenium-webdriver (3.142.3)
51
- childprocess (>= 0.5, < 2.0)
52
- rubyzip (~> 1.2, >= 1.2.2)
53
+ rubyzip (2.3.2)
54
+ selenium-webdriver (4.1.0)
55
+ childprocess (>= 0.5, < 5.0)
56
+ rexml (~> 3.2, >= 3.2.5)
57
+ rubyzip (>= 1.2.2)
53
58
  xpath (3.2.0)
54
59
  nokogiri (~> 1.8)
55
60
 
@@ -57,11 +62,11 @@ PLATFORMS
57
62
  ruby
58
63
 
59
64
  DEPENDENCIES
60
- capybara (= 3.22.0)
65
+ capybara (= 3.36.0)
61
66
  minitest-reporters
62
67
  pry
63
68
  rake
64
69
  wist!
65
70
 
66
71
  BUNDLED WITH
67
- 1.16.5
72
+ 2.3.5
data/lib/wist.rb CHANGED
@@ -42,8 +42,8 @@ module Wist
42
42
  end
43
43
  end
44
44
 
45
- def click(*args)
46
- find(*args).click
45
+ def click(...)
46
+ find(...).click
47
47
  end
48
48
 
49
49
  def set_value_and_trigger_evts(selector, val)
@@ -143,9 +143,9 @@ module Wist
143
143
  end
144
144
 
145
145
  %w(first all).each do |finder|
146
- define_method("#{finder}_with_wait") do |*args|
147
- has_css?(*args)
148
- send(finder.to_sym, *args)
146
+ define_method("#{finder}_with_wait") do |*args, **kwargs|
147
+ has_css?(*args, **kwargs)
148
+ send(finder.to_sym, *args, **kwargs)
149
149
  end
150
150
  end
151
151
 
@@ -171,12 +171,12 @@ module Wist
171
171
  %w(has has_no).each do |prefix|
172
172
  define_method("assert_#{prefix}_css") do |selector, opt = {}|
173
173
  opt[:visible] = true if opt[:visible].nil?
174
- common_assert_equal(send("#{prefix}_css?", selector, opt), true)
174
+ common_assert_equal(send("#{prefix}_css?", selector, **opt), true)
175
175
  end
176
176
  end
177
177
 
178
- def has_css_instant?(*args)
179
- do_instantly { has_css?(*args) }
178
+ def has_css_instant?(...)
179
+ do_instantly { has_css?(...) }
180
180
  end
181
181
 
182
182
  def get_capybara_wait_time
data/wist.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'wist'
3
- gem.version = '0.5.0'
3
+ gem.version = '0.6.0'
4
4
  gem.summary = 'capybara helpers'
5
5
  gem.author = 'Lihan Li'
6
6
  gem.email = 'frankieteardrop@gmail.com'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lihan Li
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-07 00:00:00.000000000 Z
11
+ date: 2022-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -93,8 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  requirements: []
96
- rubyforge_project:
97
- rubygems_version: 2.7.6
96
+ rubygems_version: 3.2.32
98
97
  signing_key:
99
98
  specification_version: 4
100
99
  summary: capybara helpers