ruby-pota-csv-to-adif 0.0.2 → 0.0.3
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 +4 -4
- data/bin/ruby-pota-csv-to-adif +1 -1
- data/lib/ruby-pota-csv-to-adif.rb +9 -9
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8d53cf050db58db48e2b227210b1b75b03d3fc21bf48d2cb45be971bac5af28
|
4
|
+
data.tar.gz: 4320edc082823b1529d2ea2a118c79e53ef83acae3a0df81d2f17d4abaf17236
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 162695c659dfdb38983375f125a38c0528414a65a1aa6de9aedd9e93e7cb2a7824d8591330d771e97faa65c048bfc0374c8ecc9939fe46b14982cb4c2bc596ea
|
7
|
+
data.tar.gz: 73dd5da4d488d3e7b07521adfe7c7a13e4372c6954c81899c9e045177afca7d8bf1e9cc71e411470b7b32c85e9b224ef07bd10d3566be19c6a6eddc397c8e7cc
|
data/bin/ruby-pota-csv-to-adif
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2021 Edward Copony
|
1
|
+
# Copyright (c) 2021-2022 Edward Copony
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -29,12 +29,12 @@ module PotaCsvToAdif
|
|
29
29
|
def convert
|
30
30
|
file = File.open(file_path)
|
31
31
|
csv = CSV.new(file, headers: true)
|
32
|
-
|
32
|
+
File.open("#{file_path[0...file_path.rindex('.')]}.adi", 'w') do |adif_file|
|
33
|
+
adif_file.puts header
|
33
34
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
adif_file.puts "#{field('CALL', row)}#{field('QSO_DATE', row)}#{field('TIME_ON', row)}#{field('BAND', row)}#{field('MODE', row)}#{field('OPERATOR', row)}<MY_SIG:4>POTA #{field('MY_SIG_INFO', row)}#{field('SIG_INFO', row)}#{field('STATION_CALLSIGN', row)}<EOR>"
|
35
|
+
csv.each do |row|
|
36
|
+
adif_file.puts "#{field('CALL', row)}#{field('QSO_DATE', row)}#{field('TIME_ON', row)}#{field('BAND', row)}#{field('MODE', row)}#{field('OPERATOR', row)}<MY_SIG:4>POTA #{field('MY_SIG_INFO', row)}#{field('SIG_INFO', row)}#{field('STATION_CALLSIGN', row)}<EOR>"
|
37
|
+
end
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
@@ -44,13 +44,13 @@ module PotaCsvToAdif
|
|
44
44
|
|
45
45
|
def header
|
46
46
|
<<-ADIF_HEAD
|
47
|
-
ADIF Export from ruby-pota-csv-to-adif v[0.
|
47
|
+
ADIF Export from ruby-pota-csv-to-adif v[0.3]
|
48
48
|
https://github.com/ecopony/ruby-pota-csv-to-adif
|
49
|
-
Copyright (C) 2021 Edward Copony
|
49
|
+
Copyright (C) 2021-2022 Edward Copony
|
50
50
|
File generated on #{Time.now.getutc.strftime('%d %b, %Y at %I:%M')}
|
51
51
|
<ADIF_VER:5>3.1.0
|
52
52
|
<PROGRAMID:21>ruby-pota-csv-to-adif
|
53
|
-
<PROGRAMVERSION:3>0.
|
53
|
+
<PROGRAMVERSION:3>0.3
|
54
54
|
<EOH>
|
55
55
|
|
56
56
|
ADIF_HEAD
|
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.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edward Copony
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-29 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
|
@@ -23,7 +23,7 @@ homepage: https://rubygems.org/gems/ruby-pota-csv-to-adif
|
|
23
23
|
licenses:
|
24
24
|
- MIT
|
25
25
|
metadata: {}
|
26
|
-
post_install_message:
|
26
|
+
post_install_message:
|
27
27
|
rdoc_options: []
|
28
28
|
require_paths:
|
29
29
|
- lib
|
@@ -38,8 +38,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: '0'
|
40
40
|
requirements: []
|
41
|
-
rubygems_version: 3.
|
42
|
-
signing_key:
|
41
|
+
rubygems_version: 3.3.7
|
42
|
+
signing_key:
|
43
43
|
specification_version: 4
|
44
44
|
summary: Converts a CSV file of a Parks on the Air log to ADIF
|
45
45
|
test_files: []
|