chop 0.38.9 → 0.38.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/chop/version.rb +1 -1
- data/lib/chop.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7eb7acecfc94a7b28b31c01d17ae6c577f68b3ff2933b4298c18abf8c9a01a91
|
|
4
|
+
data.tar.gz: e0e8300d66ed751412f446c16fe5ae43059841eb9bee74d8698553e6322ab785
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c7b856acd021a2c7db8ce3a1c8d78155c3b88be2333eba7e105cdf52520e3575b284d26b0cca06032ce6bf507cbdf91355b68b05d28a14aea80656b03ddd1967
|
|
7
|
+
data.tar.gz: 33c429caa85288d0ac1ec77bd8e3da87109b6bc3f354431cec2aa93007b3e336724085936d3124542d5e219f2f6a11284f49c49041001aaac17d54d1209f63d6
|
data/lib/chop/version.rb
CHANGED
data/lib/chop.rb
CHANGED
|
@@ -19,10 +19,15 @@ module Chop
|
|
|
19
19
|
def empty.diff! other_table, **kwargs, &block
|
|
20
20
|
if other_table.is_a?(String)
|
|
21
21
|
begin
|
|
22
|
-
|
|
22
|
+
kwargs[:as] ||= Capybara.current_session.find(other_table).tag_name
|
|
23
23
|
rescue Capybara::ElementNotFound
|
|
24
24
|
return
|
|
25
25
|
end
|
|
26
|
+
user_block = block
|
|
27
|
+
block = proc do
|
|
28
|
+
allow_not_found
|
|
29
|
+
instance_eval &user_block if user_block
|
|
30
|
+
end
|
|
26
31
|
end
|
|
27
32
|
super other_table, **kwargs.reverse_merge(surplus_col: true, surplus_row: true), &block
|
|
28
33
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.38.
|
|
4
|
+
version: 0.38.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Micah Geisel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|