gem 'papertime_client', '~> 0.0.3', :git => '[email protected]:origo/papertime_client.git'
pc = PapertimeClient.new(paper_time_server_url)
Get all viable publication dates after today given a required processing time of :production_days for the publication identified with the :domain e.g. client.get_publication_dates(:domain => 'op.no', :production_days => 6) returns a hash with the single key 'issues' which points to an array of Date-objects
Compute the deadline for publication on :publication_date given a processing time of :production_days for the publication identified with the :domain e.g. client.get_deadline_date(:domain => 'amta.no', :publication_date => Date.today+9, :production_days => 4) returns the Date
Compute the nearest possible publication date from a :domain and :desired_publication_date e.g. client.get_nearest_publication_date(:domain => 'amta.no', :desired_publication_date => Date.today+9) returns the Date
Finds publication by domain name (both with and without www)
Finds publications by lat/lon (float)
Returns all coverage areas in the database as GeoJSON.
gem build papertime_client.gemspec
gem install papertime_client-0.0.1.gem
bundle install
rspec spec