Module: Bsdiff
- Defined in:
- lib/bsdiff/version.rb,
ext/bsdiff/rb_bsdiff.c
Constant Summary collapse
- VERSION =
'0.1.0'
Class Method Summary collapse
Class Method Details
.diff(oldfile, newfile, patchfile) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'ext/bsdiff/rb_bsdiff.c', line 7
static VALUE
bsdiff_diff(VALUE self, VALUE oldfile, VALUE newfile, VALUE patchfile)
{
if(diff(StringValueCStr(oldfile), StringValueCStr(newfile), StringValueCStr(patchfile))) {
return Qtrue;
}
return Qfalse;
}
|
.patch(oldfile, newfile, patchfile) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'ext/bsdiff/rb_bsdiff.c', line 16
static VALUE
bsdiff_patch(VALUE self, VALUE oldfile, VALUE newfile, VALUE patchfile)
{
if(patch(StringValueCStr(oldfile), StringValueCStr(newfile), StringValueCStr(patchfile))) {
return Qtrue;
}
return Qfalse;
}
|