airports 1.7.0 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +4 -8
- data/.github/workflows/codeql-analysis.yml +72 -0
- data/.github/workflows/test_and_lint.yml +26 -0
- data/.ruby-version +1 -0
- data/.tool-versions +1 -0
- data/CHANGELOG.md +9 -0
- data/Gemfile +4 -4
- data/README.md +1 -1
- data/airports.gemspec +1 -0
- data/data/airports.json +1 -1
- data/data/patches.dat +2 -0
- data/lib/airports/airport.rb +0 -2
- data/lib/airports/version.rb +1 -1
- metadata +9 -5
- data/.circleci/config.yml +0 -49
data/data/patches.dat
CHANGED
@@ -4,3 +4,5 @@
|
|
4
4
|
13696,"Istanbul Airport","Istanbul","Turkey","IST","LTFM",41.275278,28.751944,325,3,"E","Europe/Istanbul","airport","OurAirports"
|
5
5
|
14111,"Berlin Brandenburg Airport","Berlin","Germany","BER","EDDB",52.366667,13.503333,157,1,"E","Europe/Berlin","airport","OurAirports"
|
6
6
|
14112,"Misrata Airport","Misrata","Libya","MRA","HLMS",32.3219,15.0574,18,2,"N","Africa/Tripoli","airport","OurAirports"
|
7
|
+
3371,"Changsha Huanghua International Airport","Changsha","China","CSX","ZGHA",28.189199447599997,113.220001221,217,8,"U","Asia/Shanghai","airport","OurAirports"
|
8
|
+
3387,"Ningbo Lishe International Airport","Ningbo","China","NGB","ZSNB",29.82670021057129,121.46199798583984,13,8,"U","Asia/Shanghai","airport","OurAirports"
|
data/lib/airports/airport.rb
CHANGED
@@ -5,7 +5,6 @@ module Airports
|
|
5
5
|
attr_reader :name, :city, :country, :iata, :icao, :latitude, :longitude,
|
6
6
|
:altitude, :timezone, :dst, :tz_name
|
7
7
|
|
8
|
-
# rubocop:disable Metrics/MethodLength
|
9
8
|
def initialize(name:, city:, country:, iata:, icao:, latitude:, longitude:,
|
10
9
|
altitude:, timezone:, dst:, tz_name:)
|
11
10
|
@name = name
|
@@ -20,6 +19,5 @@ module Airports
|
|
20
19
|
@dst = dst
|
21
20
|
@tz_name = tz_name
|
22
21
|
end
|
23
|
-
# rubocop:enable Metrics/MethodLength
|
24
22
|
end
|
25
23
|
end
|
data/lib/airports/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: airports
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Rogers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Access data on airports from around the world
|
14
14
|
email:
|
@@ -17,11 +17,14 @@ executables: []
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
-
- ".circleci/config.yml"
|
21
20
|
- ".github/dependabot.yml"
|
21
|
+
- ".github/workflows/codeql-analysis.yml"
|
22
|
+
- ".github/workflows/test_and_lint.yml"
|
22
23
|
- ".gitignore"
|
23
24
|
- ".rspec"
|
24
25
|
- ".rubocop.yml"
|
26
|
+
- ".ruby-version"
|
27
|
+
- ".tool-versions"
|
25
28
|
- CHANGELOG.md
|
26
29
|
- CODE_OF_CONDUCT.md
|
27
30
|
- Gemfile
|
@@ -39,7 +42,8 @@ files:
|
|
39
42
|
homepage: https://github.com/timrogers/airports
|
40
43
|
licenses:
|
41
44
|
- MIT
|
42
|
-
metadata:
|
45
|
+
metadata:
|
46
|
+
rubygems_mfa_required: 'true'
|
43
47
|
post_install_message:
|
44
48
|
rdoc_options: []
|
45
49
|
require_paths:
|
@@ -55,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
59
|
- !ruby/object:Gem::Version
|
56
60
|
version: '0'
|
57
61
|
requirements: []
|
58
|
-
rubygems_version: 3.
|
62
|
+
rubygems_version: 3.3.7
|
59
63
|
signing_key:
|
60
64
|
specification_version: 4
|
61
65
|
summary: Access data on airports from around the world
|
data/.circleci/config.yml
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
version: 2
|
2
|
-
references:
|
3
|
-
steps: &steps
|
4
|
-
- checkout
|
5
|
-
|
6
|
-
- type: cache-restore
|
7
|
-
key: airports-bundler-{{ checksum "airports.gemspec" }}
|
8
|
-
|
9
|
-
- run: gem install bundler
|
10
|
-
|
11
|
-
- run: bundle install --path vendor/bundle
|
12
|
-
|
13
|
-
- type: cache-save
|
14
|
-
key: airports-bundler-{{ checksum "airports.gemspec" }}
|
15
|
-
paths:
|
16
|
-
- vendor/bundle
|
17
|
-
|
18
|
-
- type: shell
|
19
|
-
command: |
|
20
|
-
bundle exec rspec --profile 10 \
|
21
|
-
--format RspecJunitFormatter \
|
22
|
-
--out /tmp/test-results/rspec.xml \
|
23
|
-
--format progress \
|
24
|
-
spec
|
25
|
-
|
26
|
-
- type: store_test_results
|
27
|
-
path: /tmp/test-results
|
28
|
-
|
29
|
-
- run: bundle exec rubocop
|
30
|
-
jobs:
|
31
|
-
build-ruby26:
|
32
|
-
docker:
|
33
|
-
- image: ruby:2.6
|
34
|
-
steps: *steps
|
35
|
-
build-ruby27:
|
36
|
-
docker:
|
37
|
-
- image: ruby:2.7
|
38
|
-
steps: *steps
|
39
|
-
build-ruby30:
|
40
|
-
docker:
|
41
|
-
- image: ruby:3.0
|
42
|
-
steps: *steps
|
43
|
-
workflows:
|
44
|
-
version: 2
|
45
|
-
tests:
|
46
|
-
jobs:
|
47
|
-
- build-ruby26
|
48
|
-
- build-ruby27
|
49
|
-
- build-ruby30
|