sportdb-langs 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc468d78eb485c9290e234bab4d4feb388150d0b
4
- data.tar.gz: ad8c172046d9a201f4ce89fb5db3fc0e7a5ecaee
3
+ metadata.gz: 176389caa3c0b4e452b48868909ba6f74b99cd7d
4
+ data.tar.gz: '098a1c16190dfc34f946e6195b57ed0c3dce4975'
5
5
  SHA512:
6
- metadata.gz: 694eacc5beab88c50e3d9e3d5233e5d05ab8f09ff0ed1a5cfa1a5b5b0f021e2d329c24aa0061b73ac3d68965aef497775f1da6ca3162ce3ccde9f5f9845e923f
7
- data.tar.gz: 38d98282d7f1412e57d6a7fe604702c2661c4bc0bcaaeaee2c65fc524645841e75d62ad80c5e9ddd7ab75baf11242bb19caf41686e11fa374be2b0b9c95e7b79
6
+ metadata.gz: 1f4d1090fc85df18761d9f3d73cd068fa1344f0a06201fe37a0a258c05bc3c97f71c0e8df3c90fe1e3cf2df1e6de9e162b6581849e9423a784c74c07d06bdda2
7
+ data.tar.gz: '09eef41bc1a4c6a45498139b58279d3bf9b2b0f4b30dc1814e913357cb50c061f3cf79dc771ee1a53d89f3426344cc617fd74865544a3e2d36b18027537f7866'
@@ -4,7 +4,7 @@
4
4
 
5
5
  group: Grupo
6
6
 
7
- round: Rodada
7
+ round: Rodada|Jornada
8
8
 
9
9
  stage: Fase de grupos|Fase final|Primeira Fase|Segunda Fase
10
10
 
@@ -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']
@@ -6,7 +6,7 @@ module Langs ## note: we use Langs with s (plular)
6
6
 
7
7
  MAJOR = 0 ## todo: namespace inside version or something - why? why not??
8
8
  MINOR = 1
9
- PATCH = 0
9
+ PATCH = 1
10
10
  VERSION = [MAJOR,MINOR,PATCH].join('.')
11
11
 
12
12
  def self.version
@@ -1,5 +1,3 @@
1
- ## $:.unshift(File.dirname(__FILE__))
2
-
3
1
  ## minitest setup
4
2
  require 'minitest/autorun'
5
3
 
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.0
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-01-01 00:00:00.000000000 Z
11
+ date: 2020-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logutils