ruby-pota-csv-to-adif 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 88b6691fc7f3ae4eaf7f54422b5db20a2fdb50653a30bc6a431c93da04329cd3
4
- data.tar.gz: '0688ff4ce576e0a54b69a6b3ab1133a0d6937d783356602cc38e775b14517ada'
3
+ metadata.gz: 849cf5c306fb2a99f0c131a4f73df169a571da5471f611964ae4e7a33f69c572
4
+ data.tar.gz: 5149d1cedad76af5f93f0262b1756d91d745b81e705734206afca25e454d823a
5
5
  SHA512:
6
- metadata.gz: 10268ce00497132bb11871cc4e41236af6fd48fa02156b8e3fab92e98fbc48ef8da3e97fccb1959f636a10c8a17e7cf315a9067cdf27f6e0b08d9d14bd41dae7
7
- data.tar.gz: 2c17835f5ca7faa66a32dcacbd8aad922384925e56dad4b3f92f61cf2b7cbe1aec4b4bb7271ae1104435d43c1f4cfcacf4db99f5cbe0895b2128cc3d94ea0a9d
6
+ metadata.gz: 66f041b1185b5706fb1b6326097344ae7cc31734a62cc3fdec7b3865adb1249c02480035eb52b318a10062f5f2314cec7791693bd847517c7d8e36f8e7e4f40f
7
+ data.tar.gz: 6f4bb410fe407453c6ffd7b86a8ad14c2e64fcdddddd72fe3249d4a64fa2f38728826cb9bd674d47401b8c9a38e7a3d1dd005d2363fbd8b1a285e9307e60f252
@@ -1,4 +1,23 @@
1
1
  #!/usr/bin/env ruby
2
+ # Copyright (c) 2021 Edward Copony
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ # of this software and associated documentation files (the "Software"), to deal
6
+ # in the Software without restriction, including without limitation the rights
7
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ # copies of the Software, and to permit persons to whom the Software is
9
+ # furnished to do so, subject to the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be included in all
12
+ # copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ # SOFTWARE.
2
21
 
3
22
  require 'ruby-pota-csv-to-adif'
4
23
 
@@ -57,7 +57,7 @@ File generated on #{Time.now.getutc.strftime('%d %b, %Y at %I:%M')}
57
57
  end
58
58
 
59
59
  def field(name, row)
60
- value = row[name]
60
+ value = row[name]&.strip
61
61
  return if value.nil?
62
62
  "<#{name.upcase}:#{value.size}>#{value} "
63
63
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-pota-csv-to-adif
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edward Copony
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-27 00:00:00.000000000 Z
11
+ date: 2021-03-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Converts a CSV file of a Parks on the Air log to ADIF
14
14
  email: ecopony@gmail.com