Project

flydays

0.0
No commit activity in last 3 years
No release in over 3 years
Search flights on Southwest.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.9
~> 2.13
~> 0.10
~> 10.0
~> 3.4
~> 0.2
~> 0.11
~> 0.8
~> 3.0
~> 1.21

Runtime

~> 2.7
 Project Readme

Flydays

Build Status Code Climate

Lightweight gem to search southwest for one way flights between airports.

Installation

Add this line to your application's Gemfile:

gem 'flydays'

And then execute:

$ bundle

Or install it yourself as:

$ gem install flydays

Usage

	flyday = Flyday.new
	flights = flyday.search(date: Date.today, orig: "MDW", "ATL")
	flights[0]
		=> "<#Flyday::Flight MDW->ATL 2016-07-01T05:25 seats:24, price_range:220-342>"
	flights[1]
		=> "<#Flyday::Flight MDW->MCI->ATL 2016-07-01T05:50 seats:17, price_range:228-350>"
	pp flights[1].flatten
		[
		  [0] <#Flyday::Flight MDW->MCI 2016-07-01T05:50 seats:24, price_range:179-272>,
		  [1] <#Flyday::Flight MCI->ATL 2016-07-01T09:00 seats:17, price_range:186-345>
		]

Testing

Rspec is used for testing, run tests with rspec. While developing use guard to run tests when files change.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request