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 +4 -4
- data/.ruby-version +1 -1
- data/lib/tac_scribe/cache.rb +8 -7
- data/lib/tac_scribe/daemon.rb +1 -1
- data/lib/tac_scribe/version.rb +1 -1
- data/tac_scribe.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74ae9992c2a1db103b6b19fbfcfb298c505e8654138d0db9d673cc8fbf7651a2
|
4
|
+
data.tar.gz: 104b3949d73dead8bdcbef52d85b4e56ad9c04a54a0fdb7338847018ccb95082
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3df16168564a673864ce8eca754c76ace35221ef411473ea9056ff7f9af8420927b20d1eec751f3b3c6021264e14db1ad84131f1632cc6a351805b592a89de6b
|
7
|
+
data.tar.gz: 8595fe735b69f74f012f1c64ec4888ce129f63ac142e3e17b073e0119238a0b414e32d13f8764f912ff26bd616c5a33facf50af3f7cabc1ad7eb20c910821dad
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.
|
1
|
+
ruby-2.7.0
|
data/lib/tac_scribe/cache.rb
CHANGED
@@ -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 '
|
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].
|
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].
|
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
|
data/lib/tac_scribe/daemon.rb
CHANGED
data/lib/tac_scribe/version.rb
CHANGED
data/tac_scribe.gemspec
CHANGED
@@ -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.
|
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-
|
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
|