Module: DiffNews

Defined in:
lib/version.rb,
lib/service.rb,
lib/revision.rb,
lib/file_history.rb,
lib/default_history.rb,
lib/news_service/faz.rb,
lib/news_service/nzz.rb,
lib/news_service/mock.rb,
lib/news_service/20min.rb,
lib/news_service/tagesanzeiger.rb

Overview

POD for revision, container for the revision data stored in file or db

Defined Under Namespace

Classes: DefaultHistory, FAZ, FileHistory, MockService, NZZ, Revision, Service, Tagesanzeiger, UnknownNewspageError, ZwanzigMinunten

Class Method Summary collapse

Class Method Details

.versionObject



10
11
12
# File 'lib/version.rb', line 10

def self.version
  File.open(version_path, &:readline)
end

.version_pathObject



6
7
8
# File 'lib/version.rb', line 6

def self.version_path
  File.expand_path("version.info", File.dirname(__FILE__))
end