From fa12d1ab2963a810d0114e4a45f8efa5941fc569 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Thu, 12 Nov 2015 13:08:14 +0100 Subject: fileutil: add access to File object, bump to 1.2.6 --- lib/zipf/fileutil.rb | 4 ++++ zipf.gemspec | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/zipf/fileutil.rb b/lib/zipf/fileutil.rb index 7ae0c55..d9f3e24 100644 --- a/lib/zipf/fileutil.rb +++ b/lib/zipf/fileutil.rb @@ -14,6 +14,10 @@ class ReadFile end end + def get + return @f + end + def gets @f.gets { |line| yield line } end diff --git a/zipf.gemspec b/zipf.gemspec index c192810..b97c716 100644 --- a/zipf.gemspec +++ b/zipf.gemspec @@ -1,7 +1,7 @@ Gem::Specification.new do |s| s.name = 'zipf' - s.version = '1.2.5' - s.date = '2015-07-16' + s.version = '1.2.6' + s.date = '2015-11-12' s.summary = 'zipf' s.description = 'NLP related tools and classes' s.authors = ['Patrick Simianer'] -- cgit v1.2.3