Module: NewspaperWorksFixtures

Defined in:
lib/newspaper_works_fixtures.rb,
lib/newspaper_works_fixtures/engine.rb,
lib/newspaper_works_fixtures/version.rb

Overview

Newspaper works modules

Defined Under Namespace

Classes: Engine

Constant Summary collapse

GEM_PATH =

module constants:

Gem::Specification.find_by_name("newspaper_works_fixtures").gem_dir
VERSION =
'0.3.0'.freeze

Class Method Summary collapse

Class Method Details

.article_segmented_batch_deseret_newsObject

returns the full path to the Deseret News batch



26
27
28
# File 'lib/newspaper_works_fixtures.rb', line 26

def self.article_segmented_batch_deseret_news
  File.join(file_fixtures, 'article_segmented', 'batch_deseret_news')
end

.article_segmented_batch_topaz_timesObject

returns the full path to the Topaz Times batch



31
32
33
# File 'lib/newspaper_works_fixtures.rb', line 31

def self.article_segmented_batch_topaz_times
  File.join(file_fixtures, 'article_segmented', 'batch_topaz_times')
end

.file_fixturesObject

returns the full path to the fixture files dir



11
12
13
# File 'lib/newspaper_works_fixtures.rb', line 11

def self.file_fixtures
  File.join(root, 'spec', 'fixtures', 'files')
end

.ndnp_chronam_batchObject

returns the full path to the NDNP sample batch



16
17
18
# File 'lib/newspaper_works_fixtures.rb', line 16

def self.ndnp_chronam_batch
  File.join(file_fixtures, 'ndnp', 'batch_test_ver01')
end

.ndnp_local_batchObject

returns the full path to the NDNP local batch



21
22
23
# File 'lib/newspaper_works_fixtures.rb', line 21

def self.ndnp_local_batch
  File.join(file_fixtures, 'ndnp', 'batch_local')
end

.pdf_batchObject

returns the PDF batch (single publication) for Chicopee Weekly



36
37
38
# File 'lib/newspaper_works_fixtures.rb', line 36

def self.pdf_batch
  File.join(file_fixtures, 'pdf_batch', 'sn93059126')
end

.rootObject

returns the full path the the gem installation



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

def self.root
  @root ||= File.expand_path(File.dirname(File.dirname(__FILE__)))
end

.tiff_batchObject

returns the TIFF batch (extracted from materials in PDF batch)



41
42
43
# File 'lib/newspaper_works_fixtures.rb', line 41

def self.tiff_batch
  File.join(file_fixtures, 'tiff_batch', 'sn93059126')
end