Skip to content

Commit

Permalink
Add no_empty option
Browse files Browse the repository at this point in the history
  • Loading branch information
ohler55 committed Dec 19, 2019
1 parent ce1fc1e commit 4cd0792
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All changes to the Ox gem are documented here. Releases follow semantic versioni

## [Unreleased]

## [2.12.0] - 2019-12-18

- Add `no_empty` option to not allow <xyz/> and use <xyz></xyz> instead.

## [2.11.0] - 2019-06-14

### Changed
Expand Down
2 changes: 1 addition & 1 deletion ext/ox/ox.c
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ load_file(int argc, VALUE *argv, VALUE self) {
xml = ALLOCA_N(char, len + 1);
}
fseek(f, 0, SEEK_SET);
if (len != fread(xml, 1, len, f)) {
if ((size_t)len != fread(xml, 1, len, f)) {
ox_err_set(&err, rb_eLoadError, "Failed to read %ld bytes from %s.\n", (long)len, path);
obj = Qnil;
} else {
Expand Down
2 changes: 1 addition & 1 deletion lib/ox/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

module Ox
# Current version of the module.
VERSION = '2.11.0'
VERSION = '2.12.0'
end

0 comments on commit 4cd0792

Please sign in to comment.