No commit activity in last 3 years
No release in over 3 years
If you're using Transloadit with the callback URL options, this gem will fetch assemblies from Transloadit periodically and post them to your local environment allowing for substantially easier development.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

transloadit_fetcher

If you use Transloadit and their Assembly Notifications (webhooks) then Transloadit Fetcher can help make your local development far easier.

In order to simulate the notification process you must visit your Transloadit dashboard, view your assemblies, find the one you care about, view the JSON that it outputs, and then manually POST that to your local development server. Transloadit-Fetcher automates this process.

It checks for new assemblies every minute, only fetching ones created since it last found any assemblies. It pulls these down, and performs a POST to a URL of your choosing that emulates the Transloadit assembly notification.

The current version is 0.0.2

Installation

In your gemfile:

gem 'transloadit_fetcher', group :development

In your terminal:

bundle install

Usage

Find your API Key and Secret here: https://transloadit.com/accounts/credentials

bundle exec transloadit_fetcher -l my_api_key my_api_secret http://127.0.0.1:3000

The -l tells it to loop and check every 1 minute.

ToDo:

  • Improve handling of first fetch. It probably should just fetch all assemblies that were created in the last minute
  • Add some better output depending on the response code of the HTTP POST.
  • General Code cleanup

Changelog:

0.0.2 - Fix bug causing since parameter to be lost.

0.0.1 - Initial release