Skip to content

Commit

Permalink
Merge pull request #76 from yujideveloper/feature/support-diff-lcs-1.4
Browse files Browse the repository at this point in the history
Support diff-lcs 1.4
  • Loading branch information
nishio-dens committed Jun 25, 2020
2 parents b084661 + 5963b90 commit 0163f8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ GEM
specs:
ast (2.4.0)
coderay (1.1.2)
diff-lcs (1.3)
diff-lcs (1.4.2)
diffy (3.3.0)
ffi (1.11.3)
formatador (0.2.5)
Expand Down
2 changes: 1 addition & 1 deletion lib/convergence/diff.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def scan_change_order_column(from, to, delta)
from_columns = from.columns.keys
to_columns = to.columns.keys
order_changed_columns = Diff::LCS.diff(from_columns, to_columns)
.flatten
.flatten(1)
.select(&:adding?)
.map(&:element)
order_changed_columns.each do |column|
Expand Down

0 comments on commit 0163f8d

Please sign in to comment.