sportdb-langs 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 +4 -4
- data/config/pt.yml +1 -1
- data/lib/sportdb/langs/lang.rb +5 -5
- data/lib/sportdb/langs/version.rb +1 -1
- data/test/helper.rb +0 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 176389caa3c0b4e452b48868909ba6f74b99cd7d
|
4
|
+
data.tar.gz: '098a1c16190dfc34f946e6195b57ed0c3dce4975'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f4d1090fc85df18761d9f3d73cd068fa1344f0a06201fe37a0a258c05bc3c97f71c0e8df3c90fe1e3cf2df1e6de9e162b6581849e9423a784c74c07d06bdda2
|
7
|
+
data.tar.gz: '09eef41bc1a4c6a45498139b58279d3bf9b2b0f4b30dc1814e913357cb50c061f3cf79dc771ee1a53d89f3426344cc617fd74865544a3e2d36b18027537f7866'
|
data/config/pt.yml
CHANGED
data/lib/sportdb/langs/lang.rb
CHANGED
@@ -82,7 +82,7 @@ class Lang
|
|
82
82
|
|
83
83
|
def build_group
|
84
84
|
h = @words[ @lang ]
|
85
|
-
values = String.new # note: always construct a new string (do NOT use a reference to hash value)
|
85
|
+
values = String.new('') # note: always construct a new string (do NOT use a reference to hash value)
|
86
86
|
values << h['group']
|
87
87
|
values
|
88
88
|
end
|
@@ -94,7 +94,7 @@ class Lang
|
|
94
94
|
## sort by length first - to allow best match e.g.
|
95
95
|
## 3rd place play-off instead of Play-off ?? etc. - why? why not?
|
96
96
|
h = @words[ @lang ]
|
97
|
-
values = String.new # note: always construct a new string (do NOT use a reference to hash value)
|
97
|
+
values = String.new('') # note: always construct a new string (do NOT use a reference to hash value)
|
98
98
|
values << h['round']
|
99
99
|
|
100
100
|
### add knockout rounds values too
|
@@ -111,21 +111,21 @@ class Lang
|
|
111
111
|
|
112
112
|
def build_leg1
|
113
113
|
h = @words[ @lang ]
|
114
|
-
values = String.new # note: always construct a new string (do NOT use a reference to hash value)
|
114
|
+
values = String.new('') # note: always construct a new string (do NOT use a reference to hash value)
|
115
115
|
values << h['leg1']
|
116
116
|
values
|
117
117
|
end
|
118
118
|
|
119
119
|
def build_leg2
|
120
120
|
h = @words[ @lang ]
|
121
|
-
values = String.new # note: always construct a new string (do NOT use a reference to hash value)
|
121
|
+
values = String.new('') # note: always construct a new string (do NOT use a reference to hash value)
|
122
122
|
values << h['leg2']
|
123
123
|
values
|
124
124
|
end
|
125
125
|
|
126
126
|
def build_knockout_round
|
127
127
|
h = @words[ @lang ]
|
128
|
-
values = String.new # note: always construct a new string (do NOT use a reference to hash value)
|
128
|
+
values = String.new('') # note: always construct a new string (do NOT use a reference to hash value)
|
129
129
|
values << h['round32']
|
130
130
|
values << "|" << h['round16']
|
131
131
|
values << "|" << h['quarterfinals']
|
data/test/helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportdb-langs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logutils
|