tac_scribe 0.6.0-java → 0.6.4-java

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: a4f7e36f9c7d3dcc3fcad923b1840c2a1ff889de5f076e27511f3d0e6de61a82
4
- data.tar.gz: 8c00eaf5d6816c45a15aaf2776028af026654c887814f8d84458fc7520c4b8c5
3
+ metadata.gz: 8881e000c175770bea69e9ff636fc807853995610424c0efa2a09d0634ecadc5
4
+ data.tar.gz: 933d5e0b9d02db30dcdb221e23112e4bda7cfcd8ba66d28ac5f0848256769fa0
5
5
  SHA512:
6
- metadata.gz: e2e9a0c6b73d94bf7cbef046022ce40ca967287611357cef8d2349dd2b84252c2da1249c54d9c6480a6b06c506bf29fc65dbe5895d18816fab255b28278a5766
7
- data.tar.gz: 7749e5326bb78bf985e827ed412baf83e87da9c9c5c91ee29f189d96d28b5b23e1b6bd1af1253b1d50ed4b7a183cbe282676ef72446fed02c224e6bd3e10c1be
6
+ metadata.gz: 48dee82033bde6e6dbc771365051c69e9b772c19610018a85f4d2bf89d26ee5285fa44ec9c45d8a1a1c937930607bf775e8730f2326c0f9b3ace33af96d2884f
7
+ data.tar.gz: fbe115ae9f89a18c4d33f558c4c80f0b2e1234d5e8231fa3d2aa1bf87504c482d6663780c85b0d7210da41f1d7383f6123dcf0548ad7460bf1e120ba0a715233
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.6.2]
8
+ ### Changed
9
+ - Fixed typo causing app to fail
10
+
11
+ ## [0.6.1]
12
+ ### Changed
13
+ - Test build for gem issue
14
+
7
15
  ## [0.6.0]
8
16
  ### Added
9
17
  - Calculates and stores speed of units
@@ -52,7 +52,7 @@ OptionParser.new do |opts|
52
52
  'Postgresql server port (Default: 5432)') do |v|
53
53
  options[:db_port] = v
54
54
  end
55
- opts.on('-u', '--db-username=username',
55
+ opts.on('-u', '--db-user=username',
56
56
  'Postgresql username (Required)') do |v|
57
57
  options[:db_user] = v
58
58
  end
@@ -83,6 +83,8 @@ module TacScribe
83
83
 
84
84
  def clear
85
85
  @@cache.clear
86
+ self.reference_latitude = nil
87
+ self.reference_longitude = nil
86
88
  end
87
89
 
88
90
  private
@@ -65,6 +65,8 @@ module TacScribe
65
65
  # If this code is executed it means we have been disconnected without
66
66
  # exceptions. We will still sleep to stop a retry storm. Just not as
67
67
  # long.
68
+ puts "Disconnected from Tacview"
69
+ kill_threads
68
70
  sleep 10
69
71
  # Rescuing reliably from Net::HTTP is a complete bear so rescue
70
72
  # StandardError. It ain't pretty but it is reliable. We will puts
@@ -28,6 +28,7 @@ module TacScribe
28
28
  rescue StandardError => e
29
29
  puts wrapped_event
30
30
  puts e.inspect
31
+ puts e.backtrace
31
32
  next
32
33
  end
33
34
  end
@@ -65,7 +66,7 @@ module TacScribe
65
66
  # @option event [BigDecimal] :altitude The object altitude above sea level
66
67
  # in meters to 1 decimal place.
67
68
  def update_object(event, time)
68
- return if ignore_unit?(even)
69
+ return if ignore_unit?(event)
69
70
 
70
71
  event[:game_time] = time
71
72
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TacScribe
4
- VERSION = '0.6.0'
4
+ VERSION = '0.6.4'
5
5
  end
@@ -4,6 +4,8 @@ lib = File.expand_path('lib', __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require 'tac_scribe/version'
6
6
 
7
+ puts "RUBY_PLATFORM = #{RUBY_PLATFORM}"
8
+
7
9
  Gem::Specification.new do |spec|
8
10
  spec.name = 'tac_scribe'
9
11
  spec.version = TacScribe::VERSION
@@ -21,13 +23,14 @@ Gem::Specification.new do |spec|
21
23
  spec.bindir = 'exe'
22
24
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
25
  spec.require_paths = ['lib']
24
- spec.platform = 'java'
25
26
 
26
27
  spec.metadata['yard.run'] = 'yri'
27
28
 
28
29
  if RUBY_PLATFORM == 'java'
30
+ spec.platform = 'java'
29
31
  spec.add_dependency 'activerecord-jdbcpostgresql-adapter'
30
32
  else
33
+ spec.platform = 'ruby'
31
34
  spec.add_dependency 'pg', '~>1.1'
32
35
  end
33
36
 
metadata CHANGED
@@ -1,192 +1,192 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tac_scribe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.4
5
5
  platform: java
6
6
  authors:
7
7
  - Jeffrey Jones
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-19 00:00:00.000000000 Z
11
+ date: 2020-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: pg
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - "~>"
16
+ - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: '1.1'
20
- type: :runtime
18
+ version: '0'
19
+ name: activerecord-jdbcpostgresql-adapter
21
20
  prerelease: false
21
+ type: :runtime
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.1'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: georuby
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
30
  - - "~>"
32
31
  - !ruby/object:Gem::Version
33
32
  version: '2.5'
34
- type: :runtime
33
+ name: georuby
35
34
  prerelease: false
35
+ type: :runtime
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2.5'
41
41
  - !ruby/object:Gem::Dependency
42
- name: sequel
43
42
  requirement: !ruby/object:Gem::Requirement
44
43
  requirements:
45
44
  - - "~>"
46
45
  - !ruby/object:Gem::Version
47
46
  version: '5.22'
48
- type: :runtime
47
+ name: sequel
49
48
  prerelease: false
49
+ type: :runtime
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '5.22'
55
55
  - !ruby/object:Gem::Dependency
56
- name: concurrent-ruby
57
56
  requirement: !ruby/object:Gem::Requirement
58
57
  requirements:
59
58
  - - "~>"
60
59
  - !ruby/object:Gem::Version
61
60
  version: 1.1.5
62
- type: :runtime
61
+ name: concurrent-ruby
63
62
  prerelease: false
63
+ type: :runtime
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 1.1.5
69
69
  - !ruby/object:Gem::Dependency
70
- name: haversine
71
70
  requirement: !ruby/object:Gem::Requirement
72
71
  requirements:
73
72
  - - "~>"
74
73
  - !ruby/object:Gem::Version
75
74
  version: '0.3'
76
- type: :runtime
75
+ name: haversine
77
76
  prerelease: false
77
+ type: :runtime
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.3'
83
83
  - !ruby/object:Gem::Dependency
84
- name: sequel-postgis-georuby
85
84
  requirement: !ruby/object:Gem::Requirement
86
85
  requirements:
87
86
  - - '='
88
87
  - !ruby/object:Gem::Version
89
88
  version: 0.1.2
90
- type: :runtime
89
+ name: sequel-postgis-georuby
91
90
  prerelease: false
91
+ type: :runtime
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
96
  version: 0.1.2
97
97
  - !ruby/object:Gem::Dependency
98
- name: tacview_client
99
98
  requirement: !ruby/object:Gem::Requirement
100
99
  requirements:
101
100
  - - "~>"
102
101
  - !ruby/object:Gem::Version
103
102
  version: '0.1'
104
- type: :runtime
103
+ name: tacview_client
105
104
  prerelease: false
105
+ type: :runtime
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0.1'
111
111
  - !ruby/object:Gem::Dependency
112
- name: bundler
113
112
  requirement: !ruby/object:Gem::Requirement
114
113
  requirements:
115
114
  - - "~>"
116
115
  - !ruby/object:Gem::Version
117
116
  version: '2.0'
118
- type: :development
117
+ name: bundler
119
118
  prerelease: false
119
+ type: :development
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '2.0'
125
125
  - !ruby/object:Gem::Dependency
126
- name: rake
127
126
  requirement: !ruby/object:Gem::Requirement
128
127
  requirements:
129
128
  - - "~>"
130
129
  - !ruby/object:Gem::Version
131
130
  version: '10.0'
132
- type: :development
131
+ name: rake
133
132
  prerelease: false
133
+ type: :development
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: '10.0'
139
139
  - !ruby/object:Gem::Dependency
140
- name: rspec
141
140
  requirement: !ruby/object:Gem::Requirement
142
141
  requirements:
143
142
  - - "~>"
144
143
  - !ruby/object:Gem::Version
145
144
  version: '3.8'
146
- type: :development
145
+ name: rspec
147
146
  prerelease: false
147
+ type: :development
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
152
  version: '3.8'
153
153
  - !ruby/object:Gem::Dependency
154
- name: rubocop
155
154
  requirement: !ruby/object:Gem::Requirement
156
155
  requirements:
157
156
  - - "~>"
158
157
  - !ruby/object:Gem::Version
159
158
  version: '0.73'
160
- type: :development
159
+ name: rubocop
161
160
  prerelease: false
161
+ type: :development
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0.73'
167
167
  - !ruby/object:Gem::Dependency
168
- name: simplecov
169
168
  requirement: !ruby/object:Gem::Requirement
170
169
  requirements:
171
170
  - - "~>"
172
171
  - !ruby/object:Gem::Version
173
172
  version: '0.17'
174
- type: :development
173
+ name: simplecov
175
174
  prerelease: false
175
+ type: :development
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0.17'
181
181
  - !ruby/object:Gem::Dependency
182
- name: yard
183
182
  requirement: !ruby/object:Gem::Requirement
184
183
  requirements:
185
184
  - - "~>"
186
185
  - !ruby/object:Gem::Version
187
186
  version: '0.9'
188
- type: :development
187
+ name: yard
189
188
  prerelease: false
189
+ type: :development
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
@@ -233,7 +233,7 @@ licenses:
233
233
  - AGPL-3.0-or-later
234
234
  metadata:
235
235
  yard.run: yri
236
- post_install_message:
236
+ post_install_message:
237
237
  rdoc_options: []
238
238
  require_paths:
239
239
  - lib
@@ -248,8 +248,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
248
  - !ruby/object:Gem::Version
249
249
  version: '0'
250
250
  requirements: []
251
- rubygems_version: 3.0.3
252
- signing_key:
251
+ rubyforge_project:
252
+ rubygems_version: 2.7.10
253
+ signing_key:
253
254
  specification_version: 4
254
255
  summary: Write Tacview data to PostGIS database
255
256
  test_files: []