tac_scribe 0.1.0 → 0.1.1

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: 42a39845c511575c6fa441f8ba718d29bdb42eb16776ed80c7d4a06eee502148
4
- data.tar.gz: 2210d0fa857ae275e8e49fe46ca98c38eb5d886ab1a019f9aba8223e288658ca
3
+ metadata.gz: 982a3d54dbd52c5d2bc541f58d09b6c0343f522a8d3b4ddcb399d9c575969043
4
+ data.tar.gz: f4bb78f70f1993b5b427f7330f2be7b9621045edcc6875496a3e386ad0471c6e
5
5
  SHA512:
6
- metadata.gz: 74ed6a4ddc0f84d63f191e89de80991afeb00426a4fb4d1d268fbf5df476c7b98b5ebf9f6a3c3106e6ffe92e664ddafcb05654f8524ba603283a2041e176f8a4
7
- data.tar.gz: e5152534a385ae72983ed9ed098092d542679fdf8a2b9f4f5bda190e150bea7d801c0b72186c2960082c294aa8c968fe57c53ef5a2db3da0923a0ff34aa61817
6
+ metadata.gz: 70d21673d4f39172e609a807d96c7caf9b74f1fd68361e659ab43e2c1a993b169cf05aaef71654c5f08971d69c7e582196f3eb9c41876d0666b8c6eba9b241ca
7
+ data.tar.gz: d89e9d38ca8a73285316aac94067d251f28023634c3d10a5e8d2b651a98bac6a80c365281f4f66873350519cc65d98c6d15d7d246e9dddb213482ab653d937f8
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /tmp/
9
9
  Gemfile.lock
10
10
  *.swp
11
+ *.gem
@@ -48,6 +48,14 @@ module TacScribe
48
48
  start_processing_threads
49
49
  @client.connect
50
50
  sleep 30
51
+ # Rescuing reliably from Net::HTTP is a complete bear so rescue
52
+ # StandardError. It ain't pretty but it is reliable. We will puts
53
+ # the exception just in case
54
+ # https://stackoverflow.com/questions/5370697/what-s-the-best-way-to-handle-exceptions-from-nethttp
55
+ rescue StandardError => e
56
+ puts e.message
57
+ puts e.backtrace
58
+ next
51
59
  end
52
60
  end
53
61
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TacScribe
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
data/scratchpad ADDED
@@ -0,0 +1,11 @@
1
+ # Request Bogey Dope
2
+ SELECT b.id, ST_AsText(b.position) AS human_position, b.position AS binary_position, b.altitude, b.heading, b.group, b.type, ST_DISTANCE(sub.position, b.position) as distance, degrees(ST_AZIMUTH(sub.position, b.position)) as bearing
3
+ FROM public.units AS b CROSS JOIN LATERAL
4
+ ( SELECT s.position, s.coalition
5
+ FROM public.units AS s
6
+ WHERE ID = '102'
7
+ ) as sub
8
+ WHERE NOT b.coalition = sub.coalition
9
+ AND b.type LIKE 'Air+%'
10
+ ORDER BY sub.position <-> b.position ASC
11
+ LIMIT 10
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tac_scribe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeffrey Jones
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-03 00:00:00.000000000 Z
11
+ date: 2019-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: georuby
@@ -194,6 +194,7 @@ files:
194
194
  - lib/tac_scribe/event_processor.rb
195
195
  - lib/tac_scribe/event_queue.rb
196
196
  - lib/tac_scribe/version.rb
197
+ - scratchpad
197
198
  - tac_scribe.gemspec
198
199
  homepage: https://gitlab.com/overlord-bot/tac_scribe
199
200
  licenses: