No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
A ruby wrapper for the gtfs-data-exchange.com api. List all agencies, or find a specific agency by its data exchange identifier.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.7
~> 0.10
~> 10.0
~> 3.1

Runtime

~> 0.13
 Project Readme

GTFS DataExchange API

A ruby wrapper for the gtfs-data-exchange.com api.

List all agencies, or find a specific agency by its data exchange identifier.

Gem Version

Installation

Add this line to your application's Gemfile:

gem 'gtfs_data_exchange_api'

And then execute:

$ bundle

Or install it yourself as:

$ gem install gtfs_data_exchange_api

Usage

Agencies

List all agencies.

agencies = GTFSDataExchangeAPI.agencies

By default, this will return an Array of Ruby Hash objects. Pass the 'csv' format option to return a CSV String instead.

agencies = GTFSDataExchangeAPI.agencies(:format => "csv")

Agency

Find an agency by its data exchange identifier.

agency = GTFSDataExchangeAPI.agency(:dataexchange_id => "shore-line-east")

By default, this will return a Ruby Hash object.

Contributing

  1. Fork the repo
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Test your changes (optional, but encouraged rspec spec/)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create a new Pull Request

Releasing

For instructions below, X.X.X refers to the gem version.

  1. Build gem (gem build gtfs_data_exchange_api.gemspec)
  2. Install gem locally (gem install ./gtfs_data_exchange_api-X.X.X.gem)
  3. Run tests (bundle exec rspec spec/)
  4. Manually test, as desired:
  • pry
  • require 'gtfs_data_exchange_api'
  • test functionality
  1. Create a new release tag
  2. Push gem build to rubygems (gem push gtfs_data_exchange_api-X.X.X.gem)
  3. Merge version-named branch into master, if applicable