gpx 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f206f4729605d96cdaf65fe3fe52237c14f61eb1ae69558eb826c6f831e4076b
4
- data.tar.gz: b05a8fd9d66446f57640474b3dad428b5eab24617b2e0cb3b19e655d079ea0d6
3
+ metadata.gz: b894a8f06a91646472aa6311602be3da1c0d4767a7bc44867ba954ecf93d1909
4
+ data.tar.gz: 73b5b4e73fb783f3e10a007e2101f49db0e57f48e3675fea7b8255d1a21b84ad
5
5
  SHA512:
6
- metadata.gz: 28c8c86253452eb56383790c43189de24929482781b5d94ac9416ab93be596fbbe5259e0226a18bbb7e44070503d6b721671bff2b239a5512a935fcb21dbc19f
7
- data.tar.gz: be64658d5bf4cf3d7653b2457f286401971d3a7a272766002d78296341eedd2c4ad237dc5ac38d38debe7dd7288275185b6ac27bef99460d250c2e62bd3d9c5b
6
+ metadata.gz: 279dff5711fc5808537e5e69d9be696dc9439b899021f5ab3a7532a8c68d5c099a40b63fefd89d7ebba1c64c250e599211f4a157028d4f00663b41a77cbf4ae6
7
+ data.tar.gz: b0c69fe2fa5014edb2e3628fc73b949b1d9fdaad5e73ab7546e7fd74d47c295be5722451cb8cd7cec5ebeb7ba85cc32e9ac38682d9b72b6e223f0b3295e594a1
@@ -19,8 +19,9 @@ jobs:
19
19
 
20
20
  runs-on: ubuntu-latest
21
21
  strategy:
22
+ fail-fast: true
22
23
  matrix:
23
- ruby-version: ['2.7', '3.0', '3.1']
24
+ ruby-version: ['2.7', '3.0', '3.1', '3.2']
24
25
 
25
26
  steps:
26
27
  - uses: actions/checkout@v2
@@ -28,7 +29,7 @@ jobs:
28
29
  # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
29
30
  # change this to (see https://github.com/ruby/setup-ruby#versioning):
30
31
  # uses: ruby/setup-ruby@v1
31
- uses: ruby/setup-ruby@f0971f0dd45a5cbb3f119f7db77cc58057c53530
32
+ uses: ruby/setup-ruby@v1.149.0
32
33
  with:
33
34
  ruby-version: ${{ matrix.ruby-version }}
34
35
  bundler-cache: true # runs 'bundle install' and caches installed gems automatically
data/.rubocop ADDED
@@ -0,0 +1 @@
1
+ --server
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.5
2
+ TargetRubyVersion: 2.7
3
3
 
4
4
  Style/Alias:
5
5
  Enabled: false
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.2
1
+ 3.2.2
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.2.2
data/.travis.yml CHANGED
@@ -1,8 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.5
4
- - 2.6
5
3
  - 2.7
6
4
  - 3.0
7
- # - 3.1 # Not supported by Travis yet as of 2021-12-29
5
+ - 3.1
8
6
  script: "bundle exec rake"
data/CHANGELOG.md CHANGED
@@ -1,10 +1,17 @@
1
- ## [1.1.0] - 202
1
+ ## [1.1.1] - 2023-05-19
2
+
3
+ * updates CI, minimal Ruby version now 2.7, updates tooling like rubocop and GitHub actions
4
+ * adds support for Ruby 3.2
5
+ * adds UPGRADING.md to document changes between versions
6
+
7
+ ## [1.1.0] - 2023-05-18
2
8
  * Specify UTF-8 encoding for XML encoding (#35 via @sh1nduu)
3
9
  * Added GeoJSON conversion (#38 via @tyrauber and @niborg)
4
10
  * Support Ruby 3 (#43 via @LocoDelAssembly)
5
11
  * Fix nil-to-Time comparison (#46 via @frodrigo)
6
12
  * Fix bug when <rte> GPX file does not specify <name> tag (#41 via @niborg)
7
13
  * Drop Ruby 2.5 and 2.6 from CI (#50 via @niborg)
14
+
8
15
  ## [1.0.0] - 2018-03-06
9
16
 
10
17
  * Fix duplication of points on appending segment to track (#20 via @niborg)
data/README.md CHANGED
@@ -16,7 +16,8 @@ and it also calculates some meta-data about the tracks and points in a file (suc
16
16
 
17
17
  ## Requirements
18
18
 
19
- As of `1.0.0`, `gpx` requires at least Ruby 2.2 to run.
19
+ - As of `1.1.1`, `gpx` requires at least Ruby 2.7 to run.
20
+ - As of `1.0.0`, `gpx` requires at least Ruby 2.2 to run.
20
21
 
21
22
  ## Installation
22
23
  Add to your gemfile:
data/UPGRADING.md ADDED
@@ -0,0 +1,7 @@
1
+ # Upgrading
2
+
3
+ You will find all the information you need to upgrade from one version to another here.
4
+
5
+ ## Version 1.0.0 to 1.1.1
6
+
7
+ Please make sure, that you need at least Ruby 2.7.0 to use this gem now. As support for Ruby versions below 2.7.0 has been dropped.
data/gpx.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.summary = 'A basic API for reading and writing GPX files.'
13
13
  s.description = 'A basic API for reading and writing GPX files.'
14
14
 
15
- s.required_ruby_version = '>= 2.5', '< 4'
15
+ s.required_ruby_version = '>= 2.7', '< 4'
16
16
 
17
17
  s.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
18
18
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
@@ -51,7 +51,7 @@ module GPX
51
51
  lat = -lat if lat_hemi == 'S'
52
52
 
53
53
  lon_deg = row[LON][0..2]
54
- lon_min = row[LON][3..-1]
54
+ lon_min = row[LON][3..]
55
55
  lon_hemi = row[LON_HEMI]
56
56
 
57
57
  lon = lon_deg.to_f + (lon_min.to_f / 60.0)
data/lib/gpx/segment.rb CHANGED
@@ -193,7 +193,7 @@ module GPX
193
193
  elsif time <= pts[midpoint].time
194
194
  find_closest(pts[0..midpoint], time)
195
195
  else
196
- find_closest(pts[(midpoint + 1)..-1], time)
196
+ find_closest(pts[(midpoint + 1)..], time)
197
197
  end
198
198
  end
199
199
 
data/lib/gpx/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GPX
4
- VERSION = "1.1.0"
4
+ VERSION = "1.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gpx
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Dott
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-05-19 00:00:00.000000000 Z
13
+ date: 2023-05-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: nokogiri
@@ -93,14 +93,17 @@ extra_rdoc_files: []
93
93
  files:
94
94
  - ".github/workflows/ruby.yml"
95
95
  - ".gitignore"
96
+ - ".rubocop"
96
97
  - ".rubocop.yml"
97
98
  - ".ruby-version"
99
+ - ".tool-versions"
98
100
  - ".travis.yml"
99
101
  - CHANGELOG.md
100
102
  - Gemfile
101
103
  - LICENSE.txt
102
104
  - README.md
103
105
  - Rakefile
106
+ - UPGRADING.md
104
107
  - bin/gpx_distance
105
108
  - bin/gpx_smooth
106
109
  - gpx.gemspec
@@ -158,7 +161,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
158
161
  requirements:
159
162
  - - ">="
160
163
  - !ruby/object:Gem::Version
161
- version: '2.5'
164
+ version: '2.7'
162
165
  - - "<"
163
166
  - !ruby/object:Gem::Version
164
167
  version: '4'
@@ -168,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
171
  - !ruby/object:Gem::Version
169
172
  version: '0'
170
173
  requirements: []
171
- rubygems_version: 3.2.22
174
+ rubygems_version: 3.4.10
172
175
  signing_key:
173
176
  specification_version: 4
174
177
  summary: A basic API for reading and writing GPX files.