Project

tinyletter

0.0
No commit activity in last 3 years
No release in over 3 years
Retrieves the metadata of a given tinyletter.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 3.5, >= 3.5.1
~> 10.0
>= 0.49.0

Runtime

~> 2.7.4, >= 2.7.4
 Project Readme

Ruby gem that retrieves the metadata of a given tinyletter newsletter.

Installation

gem install tinyletter

Usage

require 'rubygems'
require 'tinyletter'

newsletter = Tinyletter::Newsletter.new('metafoundry')
puts newsletter.metadata 

That will output:

{
  :title => "Metafoundry",
  :by => "Deb Chachra",
  :description => "Ingredients include: technology, systems, design, language, social justice, and geography. Less than 0.1% cats by volume. Manufactured in a facility that contains personality, emotions and a worldview.", 
  :archive_url => "http://tinyletter.com/metafoundry/archive"
}

Requesting the newsletter archive

require 'rubygems'
require 'tinyletter'

newsletter = Tinyletter::Newsletter.new('vruba', { with_archive: true })
puts newsletter.metadata

If the newsletter has enabled its archives, that will output:

{
  :title => "6",
  :by => "Charlie Loyd",
  :description => "Notes on things I’m thinking about, most weekends. Strictly a personal project, representing my own views alone. Recurring themes include psychogeography, space shuttles, food, and complaining.", 
  :archive_url => "http://tinyletter.com/vruba/archive",
  :archive => [{
    :date => "2016-07-25",
    :title => "6, 84: Antennapedia",
    :url => "http://tinyletter.com/vruba/letters/6-84-antennapedia",
    :description => "Of course everyone is talking about the Martha Nussbaum profile in *The New Yorker*  (via @equartey"
  }, {
    :date => "2016-07-11",
    :title => "6, 83: Build a ray",
    :url => "http://tinyletter.com/vruba/letters/6-83-build-a-ray",
    :description => "Hi! I think it’s time to re-introduce myself. This is an irregular newsletter on mixed topics. It comes from wanting to stay in loose touch with more people than I can personally. What I put here is..."
  }]
}

License

This work is licensed under the MIT License (MIT) and it is not associated with TinyLetter in any way.