icu_tournament 1.9.8 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/icu_tournament/result.rb +2 -2
- data/lib/icu_tournament/tournament_krause.rb +1 -1
- data/lib/icu_tournament/util.rb +4 -4
- data/lib/icu_tournament/version.rb +1 -1
- metadata +10 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a381a56e723de1cfb4dd03d9b48d30bec0392949664a0ec79fb8436c293e0eef
|
4
|
+
data.tar.gz: c3e6cb085ec3023bed84e7b9a1a081b542572150e63ee17a8c518cb37c36a46c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79f24f02e5cc402a54b88dc3843666277ea05ce0713b3ed3130294518a04579693a8779fe0a5e38b8890ee69b604d79b4864ab830226db40812812b3d15d3d37
|
7
|
+
data.tar.gz: 6d3db507492a9cccbdab10be94fc1fbd8de9b2a3f436c3746443c053eeec1b9157797fb23ee3dc3b4765110ce427b49d5a5e4ca53101f723828517af454063c5
|
@@ -129,7 +129,7 @@ module ICU
|
|
129
129
|
def opponent=(opponent)
|
130
130
|
@opponent = case opponent
|
131
131
|
when nil then nil
|
132
|
-
when
|
132
|
+
when Integer then opponent
|
133
133
|
when /^\s*$/ then nil
|
134
134
|
else opponent.to_i
|
135
135
|
end
|
@@ -198,4 +198,4 @@ module ICU
|
|
198
198
|
true
|
199
199
|
end
|
200
200
|
end
|
201
|
-
end
|
201
|
+
end
|
@@ -470,7 +470,7 @@ module ICU
|
|
470
470
|
return false unless total <= sum + full_byes.size * 1.0 + half_byes.size * 0.5
|
471
471
|
full_byes.each_index do |i|
|
472
472
|
bye = full_byes[i]
|
473
|
-
if bye.class ==
|
473
|
+
if bye.class == Integer
|
474
474
|
# Round number - create a half-point bye in that round.
|
475
475
|
result = Result.new(bye, player, '=')
|
476
476
|
@results << ['none', player, "extra bye for player #{player} in round #{bye}", result]
|
data/lib/icu_tournament/util.rb
CHANGED
@@ -72,7 +72,7 @@ module ICU
|
|
72
72
|
names.each do |name|
|
73
73
|
attr_accessor(name) do |val|
|
74
74
|
tmp = val.to_i
|
75
|
-
raise "invalid integer (#{val}) for #{name}" unless val.is_a?(
|
75
|
+
raise "invalid integer (#{val}) for #{name}" unless val.is_a?(Integer) || (val.is_a?(::String) && val.include?(tmp.to_s))
|
76
76
|
tmp
|
77
77
|
end
|
78
78
|
end
|
@@ -83,7 +83,7 @@ module ICU
|
|
83
83
|
attr_accessor(name) do |val|
|
84
84
|
tmp = case val
|
85
85
|
when nil then nil
|
86
|
-
when
|
86
|
+
when Integer then val
|
87
87
|
when /^\s*$/ then nil
|
88
88
|
else val.to_i
|
89
89
|
end
|
@@ -108,7 +108,7 @@ module ICU
|
|
108
108
|
attr_accessor(name) do |val|
|
109
109
|
tmp = case val
|
110
110
|
when nil then nil
|
111
|
-
when
|
111
|
+
when Integer then val
|
112
112
|
when /^\s*$/ then nil
|
113
113
|
else val.to_i
|
114
114
|
end
|
@@ -166,4 +166,4 @@ module ICU
|
|
166
166
|
end
|
167
167
|
end
|
168
168
|
end
|
169
|
-
end
|
169
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: icu_tournament
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Orr
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-06-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dbf
|
@@ -57,6 +57,9 @@ dependencies:
|
|
57
57
|
name: icu_utils
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '1.3'
|
60
63
|
- - ">="
|
61
64
|
- !ruby/object:Gem::Version
|
62
65
|
version: 1.3.2
|
@@ -64,6 +67,9 @@ dependencies:
|
|
64
67
|
prerelease: false
|
65
68
|
version_requirements: !ruby/object:Gem::Requirement
|
66
69
|
requirements:
|
70
|
+
- - "~>"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '1.3'
|
67
73
|
- - ">="
|
68
74
|
- !ruby/object:Gem::Version
|
69
75
|
version: 1.3.2
|
@@ -169,15 +175,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
169
175
|
requirements:
|
170
176
|
- - ">="
|
171
177
|
- !ruby/object:Gem::Version
|
172
|
-
version: '
|
178
|
+
version: '2.4'
|
173
179
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
174
180
|
requirements:
|
175
181
|
- - ">="
|
176
182
|
- !ruby/object:Gem::Version
|
177
183
|
version: '0'
|
178
184
|
requirements: []
|
179
|
-
|
180
|
-
rubygems_version: 2.7.8
|
185
|
+
rubygems_version: 3.0.1
|
181
186
|
signing_key:
|
182
187
|
specification_version: 4
|
183
188
|
summary: For reading and writing files of chess tournament data.
|