From 65fe76125bb4c596cfe614c03e981b309c925547 Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Fri, 29 Nov 2024 10:43:53 +0000 Subject: [PATCH] v1.10.0 - Add new `.icao_codes` method (@FinnLawrence) --- CHANGELOG.md | 58 ++++++++++++++++++++++------------------- README.md | 3 +-- lib/airports/version.rb | 2 +- 3 files changed, 33 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a05a2f3..7ca1f81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,68 +1,72 @@ +## v1.10.0 (29 November, 2024) + +- Add new `.icao_codes` method (@FinnLawrence) + ## v1.9.0 (4 May, 2024) -* Add new `.find_all_by_country_name` method (@wilburhimself) +- Add new `.find_all_by_country_name` method (@wilburhimself) ## v1.8.3 (31 March, 2024) -* Add Kertajati International Airport (KJT) (@chakraskun) +- Add Kertajati International Airport (KJT) (@chakraskun) ## v1.8.2 (22 March, 2024) -* Add the new Tulum Airport (TQO) (@rmm5t) +- Add the new Tulum Airport (TQO) (@rmm5t) ## v1.8.1 (17 February 2023) -* Fix the name of Tromsø Airport (TOS) (@pcothenet) +- Fix the name of Tromsø Airport (TOS) (@pcothenet) ## v1.8.0 (13 March 2022) -* Add support for Ruby 3.1 (@timrogers) -* Fix the names of Ningbo (NGB) and Changsha (CSX) airports in China (@ratazzi) +- Add support for Ruby 3.1 (@timrogers) +- Fix the names of Ningbo (NGB) and Changsha (CSX) airports in China (@ratazzi) # v1.7.0 (25 August 2021) -* Add support for Ruby 3.0 (@timrogers, with thanks to @kleinjm) -* Add Misrata Airport (`MRA`) in Libya (@timrogers, with thanks to @a21-kevin) -* Drop support for Ruby 2.4 and 2.5, which are no longer officially supported (@timrogers) -* Remove unnecessary dependencies from the gemspec, moving them to the `Gemfile` (@timrogers) +- Add support for Ruby 3.0 (@timrogers, with thanks to @kleinjm) +- Add Misrata Airport (`MRA`) in Libya (@timrogers, with thanks to @a21-kevin) +- Drop support for Ruby 2.4 and 2.5, which are no longer officially supported (@timrogers) +- Remove unnecessary dependencies from the gemspec, moving them to the `Gemfile` (@timrogers) # v1.6.1 (9 May 2020) -* Add an entry for Berlin Brandenburg Airport (`BER`), which is missing from [OpenFlights](http://openflights.org) (@PavelWeSki) -* Update airport data with the latest from [OpenFlights](http://openflights.org) +- Add an entry for Berlin Brandenburg Airport (`BER`), which is missing from [OpenFlights](http://openflights.org) (@PavelWeSki) +- Update airport data with the latest from [OpenFlights](http://openflights.org) # v1.6.0 (25 January 2020) -* Update airport data with the latest from [OpenFlights](http://openflights.org) -* Refactor how incorrect or missing data from OpenFlights is patched (@MatjazKavcic) +- Update airport data with the latest from [OpenFlights](http://openflights.org) +- Refactor how incorrect or missing data from OpenFlights is patched (@MatjazKavcic) # v1.5.0 (5 December 2019) -* Support looking up airports by the name of the city they -are located in with `Airports.find_all_by_city_name` (@viral810, @timrogers) -* Refactor `Airports` so `Airport` objects are only generated once -and the code is cleaner (@timrogers) +- Support looking up airports by the name of the city they + are located in with `Airports.find_all_by_city_name` (@viral810, @timrogers) +- Refactor `Airports` so `Airport` objects are only generated once + and the code is cleaner (@timrogers) # v1.4.1 (14 November 2019) -* Correct the time zone of Istanbul Airport (`IST`) (@aliismayilov) -* Correct the name of Aviador Carlos Campos Airport (`CPC`) (@jpgarritano) +- Correct the time zone of Istanbul Airport (`IST`) (@aliismayilov) +- Correct the name of Aviador Carlos Campos Airport (`CPC`) (@jpgarritano) # v1.4.0 (30 June 2019) -* Drop support for Ruby 2.2 and 2.3, which are no longer officially supported (@timrogers) -* Test against Ruby 2.6 (@timrogers) -* Convert "nulls" in the source data, expressed as "\\N", to Ruby `nil`s (@gabebw) +- Drop support for Ruby 2.2 and 2.3, which are no longer officially supported (@timrogers) +- Test against Ruby 2.6 (@timrogers) +- Convert "nulls" in the source data, expressed as "\\N", to Ruby `nil`s (@gabebw) # v1.3.0 (26 June 2019) -* Expose the time zone that an airport is located in with `#tz_name` (@gabebw) +- Expose the time zone that an airport is located in with `#tz_name` (@gabebw) # v1.2.0 (11 March 2018) -* Drop support for Ruby 2.2, which has reached end-of-life and no longer receives security updates (@timrogers) -* Enforce code style using Rubocop (@timrogers) +- Drop support for Ruby 2.2, which has reached end-of-life and no longer receives security updates (@timrogers) +- Enforce code style using Rubocop (@timrogers) # v1.1.0 (11 March 2018) -* Add new `.find_by_icao_code` for finding airports by their ICAO code (@ryanburnette) +- Add new `.find_by_icao_code` for finding airports by their ICAO code (@ryanburnette) diff --git a/README.md b/README.md index 33515f8..7368e34 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ It's based on data from [OpenFlights](http://openflights.org), with a bit of mas Install the gem by adding it to your Gemfile: ```ruby -gem "airports", "~> 1.9.0" +gem "airports", "~> 1.10.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`: @@ -57,4 +57,3 @@ Big thanks to [OpenFlights](http://openflights.org) for collecting and making th ## License The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT). - diff --git a/lib/airports/version.rb b/lib/airports/version.rb index dacd42e..4f5b83b 100644 --- a/lib/airports/version.rb +++ b/lib/airports/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Airports - VERSION = "1.9.0" + VERSION = "1.10.0" end