diff
Version, currently 1.1.03 versions
- 1.1.0latestMar 26, 2019
- 1.0.1not indexedJan 7, 2021
- 1.0.0not indexedJan 7, 2021
github.com/MakeNowJust/crystal-diff
Crystal sequence differencing implementation.
39 stars
5 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
diff:
github: MakeNowJust/crystal-diff
version: ~> 1.1.0Then run:
shards installshard.yml
- Crystal
- no constraint declared
- License
- MIT
- Author
- TSUYUSATO Kitsune
Dependencies
This version declares no dependencies.
README
crystal-diff
Crystal sequence differencing implementation.
Based on the algorithm proposed in "An O(NP) Sequence Comparision Algorithm" (Wu, 1989)
Installation
Add this to your application's shard.yml:
dependencies:
diff:
github: MakeNowJust/crystal-diff
Usage
require "colorize"
require "../src/diff"
Diff.diff("hello world", "hello good-bye").each do |chunk|
print chunk.data.colorize(
chunk.append? ? :green : chunk.delete? ? :red : :dark_gray)
end
puts

Development
$ crystal spec
Contributing
- Fork it ( https://github.com/MakeNowJust/crystal-diff/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- MakeNowJust TSUYUSATO Kitsune - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.1.0- Tagged
- Mar 26, 2019
- Commit
58dce0148e4c- Indexed
- yes
Dependents
Repository
github.com/MakeNowJust/crystal-diff
Metadata
- Created
- Aug 16, 2026
- Updated
- Sep 18, 2026
- Synced
- Sep 18, 2026
- Versions
- 3