lib/podoff.rb in podoff-1.2.1 vs lib/podoff.rb in podoff-1.2.2
- old
+ new
@@ -1,6 +1,5 @@
-
#--
# Copyright (c) 2015-2017, John Mettraux, jmettraux@gmail.com
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@@ -28,11 +27,11 @@
require 'stringio'
module Podoff
- VERSION = '1.2.1'
+ VERSION = '1.2.2'
def self.load(path, encoding)
Podoff::Document.load(path, encoding)
end
@@ -45,10 +44,10 @@
class Document
def self.load(path, encoding)
Podoff::Document.new(
- File.open(path, 'r:' + encoding) { |f| f.read },
+ File.open(path, 'rb:' + encoding) { |f| f.read },
encoding
)
end
def self.parse(s)