diff
Version, currently 1.0.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
0 dependents
License: MIT
Nothing has been indexed for 1.0.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
diff:
github: makenowjust/crystal-diff
version: ~> 1.0.0Then run:
shards installshard.yml
No shard.yml has been indexed for 1.0.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
# crystal-diff
Crystal sequence differencing implementation.
Based on the algorithm proposed in ["An O(NP) Sequence Comparision Algorithm" (Wu, 1989)](https://publications.mpi-cbg.de/Wu_1990_6334.pdf)
[](https://travis-ci.org/MakeNowJust/crystal-diff)
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
diff:
github: MakeNowJust/crystal-diff
```
## Usage
```crystal
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
```console
$ crystal spec
```
## Contributing
1. Fork it ( https://github.com/MakeNowJust/crystal-diff/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request
## Contributors
- [MakeNowJust](https://github.com/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.0.0- Tagged
- Jan 7, 2021
- Commit
c8c39514f434- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/makenowjust/crystal-diff
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 12, 2026
- Versions
- 3