chop 0.30.0 → 0.31.1

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: e7abe69b089b6ecea7a858c4f3b8976836898cb4059272ea0cf75564478c55ec
4
- data.tar.gz: 3cb9b264816068b341a25dc31f64a6720c3342fa147e65226f2f40855f581ad3
3
+ metadata.gz: 158fa51ecc35f7dd713a47d04e038ad4fee577f919dca67d8d1902cdba1654bd
4
+ data.tar.gz: 86fd8fa4d9c7f3f37de1f89009a99fe6cf147419d547e099894e0058f5442d36
5
5
  SHA512:
6
- metadata.gz: 43fe87ba581cdcc8a53d1f0e52f8f8a8de20fc7254ec00326e669c41e3fd999014c9fc29d91b93d52c65ec68a35aa42448aacc445521de91ad44da30ba70c8d5
7
- data.tar.gz: 15f0337c814421702e794364e2fb1f038bd024cdfab7092bad0119e0b749ffb5d2368a2956352014bd7d0175c91cbaa539a26f8b620c3982ed1a24791d35ac21
6
+ metadata.gz: 8a368238f01db7db5d00796bd1e480ca3389024ee1ce68f6d86c0d4053792747ea31925528339df4ed3f92ef692b9cafcebd7f65a017214a440e6285a21b1844
7
+ data.tar.gz: 79584ba932bc5282fbddb521ee5fb6283ab0d204059e90b95f2a5b6f06a354bda6a328ca355c5fa59b392f293dd3a893e7573a5d598c3cd0b15068fee8eeaa2e
data/lib/chop/dsl.rb CHANGED
@@ -35,7 +35,7 @@ module Chop
35
35
 
36
36
  def diff! other_table="table", **kwargs, &block
37
37
  if other_table.respond_to?(:tag_name) || (other_table.is_a?(String) && !other_table.include?("|"))
38
- DSL.diff! other_table, self, **kwargs, &block
38
+ DSL.diff! other_table, self.dup, **kwargs, &block
39
39
  else
40
40
  super
41
41
  end
@@ -1,7 +1,7 @@
1
- require "chop/diff"
1
+ require "chop/definition_list"
2
2
 
3
3
  module Chop
4
- class UnorderedList < Diff
4
+ class UnorderedList < DefinitionList
5
5
  self.default_selector = "ul"
6
6
  self.rows_finder = ->(root) { root.all("li") }
7
7
  self.cells_finder = ->(row) { [row] }
data/lib/chop/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Chop
2
- VERSION = "0.30.0"
2
+ VERSION = "0.31.1"
3
3
  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.30.0
4
+ version: 0.31.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-11 00:00:00.000000000 Z
11
+ date: 2025-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord