Socket
Book a DemoInstallSign in
Socket

das_catalog

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

das_catalog

0.2.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

Das Catalog

The Das Catalog gem - used for downloading screencasts from the Destroy All Software screencasts catalog. Uses the rss feed plus Mechanize to log you in and then download unsaved movies to a local directory.

This gem is in not linked to Destroy All Software or endorsed by Gary Bernhardt. I just like his stuff.

Requirements

I've written and only run the gem on Ruby 1.9.2. YMMV, but 1.8.x will definitely blow up.

The gem also expects that wget exists in your path, as it uses it for downloaded the movie file.

Installation

Install the gem

$ gem install das_catalog

Usage

Run from the command line:

$ das_catalog_sync

It will prompt your for some settings (username, password, storage directory) and then be off and running.

Stored Configuration

If you don't provide configuration, das_catalog_sync will prompt you for configuration values when you run it.

However, you can persist a full or partial config in ~/.das_catalog.yml as such:

---
username: your_username
password: your_password
downloads_directory: /Users/programmer/Movies/DAS

If you wish to exclude any config, leave it out and das_catalog_sync will prompt your for it at runtime.

Basic Process

The steps by which the gem works are fairly simple:

  • Fetch the rss feed to see what is in the catalog
  • Use Mechanize to log in at the DAS sign in page
  • Find links in the feed that have not been downloaded yet
  • Construct a download link, and grab the location header from the redirect (the movie on S3)
  • Offload the download to wget for efficient processing

TODO

  • Finish missing spec coverage (mostly in DasCatalog toplevel namespace)
  • Hook up Aruba for bin testing
  • Switch bin to GLI?
  • CLI interface for tracking if you've watched a specific screencast
  • Make missing directory automatically
  • better wget detection/warnings
  • Lighten some dependencies (feed fetching, highline, etc)
  • Better cli access to modify the underlying pstore

FAQs

Package last updated on 02 Mar 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.