README.md in airports-1.6.1 vs README.md in airports-1.7.0
- old
+ new
@@ -1,19 +1,19 @@
# Airports
-[![Gem Version](https://badge.fury.io/rb/airports.svg)](http://badge.fury.io/rb/airports) [![Build Status](https://travis-ci.org/timrogers/airports.svg)](https://travis-ci.org/timrogers/airports)
+[![Gem Version](https://badge.fury.io/rb/airports.svg)](http://badge.fury.io/rb/airports)
-Airports gives you access to data on airports around the world.
+Airports gives you access to data on airports around the world from your Ruby applications.
It's based on data from [OpenFlights](http://openflights.org), with a bit of massaging on the way (dropping airports without an IATA code, giving Doha its IATA code and adding `HYD` and `BER` which are missing entirely).
## Usage
Install the gem by adding it to your Gemfile:
```ruby
-gem 'airports', '~> 1.6.1'
+gem "airports", "~> 1.7.0"
```
You can then look up an airport by its IATA code (e.g. `LHR` for London Heathrow) using `Airports.find_by_iata_code`, which returns an object with a bunch of accessors like `name` and `city`:
```ruby
@@ -34,10 +34,10 @@
```ruby
validates :destination_airport, inclusion: { in: Airports.iata_codes, message: "is not a valid airport" }
```
-Or `Airport.all` will provide `Airports::Airport` objects representing all the airports the gem knows about.
+Or `Airports.all` will provide `Airports::Airport` objects representing all the airports the gem knows about.
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.