tac_scribe 0.6.4-java → 0.7.0-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: 8881e000c175770bea69e9ff636fc807853995610424c0efa2a09d0634ecadc5
4
- data.tar.gz: 933d5e0b9d02db30dcdb221e23112e4bda7cfcd8ba66d28ac5f0848256769fa0
3
+ metadata.gz: 74ae9992c2a1db103b6b19fbfcfb298c505e8654138d0db9d673cc8fbf7651a2
4
+ data.tar.gz: 104b3949d73dead8bdcbef52d85b4e56ad9c04a54a0fdb7338847018ccb95082
5
5
  SHA512:
6
- metadata.gz: 48dee82033bde6e6dbc771365051c69e9b772c19610018a85f4d2bf89d26ee5285fa44ec9c45d8a1a1c937930607bf775e8730f2326c0f9b3ace33af96d2884f
7
- data.tar.gz: fbe115ae9f89a18c4d33f558c4c80f0b2e1234d5e8231fa3d2aa1bf87504c482d6663780c85b0d7210da41f1d7383f6123dcf0548ad7460bf1e120ba0a715233
6
+ metadata.gz: 3df16168564a673864ce8eca754c76ace35221ef411473ea9056ff7f9af8420927b20d1eec751f3b3c6021264e14db1ad84131f1632cc6a351805b592a89de6b
7
+ data.tar.gz: 8595fe735b69f74f012f1c64ec4888ce129f63ac142e3e17b073e0119238a0b414e32d13f8764f912ff26bd616c5a33facf50af3f7cabc1ad7eb20c910821dad
@@ -1 +1 @@
1
- ruby-2.6.3
1
+ ruby-2.7.0
@@ -38,14 +38,15 @@ module TacScribe
38
38
  object.delete(key)
39
39
  end
40
40
 
41
+ # https://wiki.hoggitworld.com/view/DCS_singleton_coalition
41
42
  if object[:coalition]
42
43
  object[:coalition] = case object[:coalition]
43
- when 'Allies'
44
- 0
45
- when 'Enemies'
46
- 1
47
- else
44
+ when 'Enemies' # Enemies is Bluefor
48
45
  2
46
+ when 'Allies' # Allies is Redfor
47
+ 1
48
+ else # Neutral
49
+ 0
49
50
  end
50
51
  end
51
52
 
@@ -102,13 +103,13 @@ module TacScribe
102
103
  longitude = if object.key?(:longitude)
103
104
  object[:longitude]
104
105
  else
105
- cache_object[:position].y
106
+ cache_object[:position].x
106
107
  end
107
108
 
108
109
  latitude = if object.key?(:latitude)
109
110
  object[:latitude]
110
111
  else
111
- cache_object[:position].x
112
+ cache_object[:position].y
112
113
  end
113
114
 
114
115
  # This "Point" class is not lat/long aware which is why we are
@@ -154,7 +154,7 @@ module TacScribe
154
154
  altitude: BigDecimal(airfield['alt'].to_s),
155
155
  type: 'Ground+Static+Aerodrome',
156
156
  name: airfield['name'],
157
- coalition: 2
157
+ coalition: 0 # Neutral
158
158
  )
159
159
  end
160
160
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TacScribe
4
- VERSION = '0.6.4'
4
+ VERSION = '0.7.0'
5
5
  end
@@ -26,11 +26,11 @@ Gem::Specification.new do |spec|
26
26
 
27
27
  spec.metadata['yard.run'] = 'yri'
28
28
 
29
+ spec.platform = RUBY_PLATFORM == 'java' ? 'java' : 'ruby'
30
+
29
31
  if RUBY_PLATFORM == 'java'
30
- spec.platform = 'java'
31
32
  spec.add_dependency 'activerecord-jdbcpostgresql-adapter'
32
33
  else
33
- spec.platform = 'ruby'
34
34
  spec.add_dependency 'pg', '~>1.1'
35
35
  end
36
36
 
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.6.4
4
+ version: 0.7.0
5
5
  platform: java
6
6
  authors:
7
7
  - Jeffrey Jones
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-27 00:00:00.000000000 Z
11
+ date: 2020-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement