icu_tournament 1.10.0 → 1.11.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/player.rb +1 -0
- data/lib/icu_tournament/version.rb +1 -1
- data/spec/player_spec.rb +4 -0
- 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: c9f5ebb60437a28fd66022167c933153271bcd138c47503b3a6082f8ffb2c235
|
4
|
+
data.tar.gz: e59666cca208d270d61b787625c356779003c289836bb613ecfa63542a12ff6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53991697d9454d160f34b4e30139f08965af76ed53833b671a15a927f829707fed16242dca1640acb878e7a6c90311fb43c985a4395776e37a38d7acd0cf083d
|
7
|
+
data.tar.gz: b580e1fd42864b5fbc363a33f0efa44c380e05cba236d308b7d968663b04d1c81bd97fb847a300e71db154e3f5ae872f4b2c5654ebf4e455d65b7262adc873c7
|
@@ -153,6 +153,7 @@ module ICU
|
|
153
153
|
@title << 'M' if @title.match(/[A-LN-Z]$/)
|
154
154
|
@title = 'IM' if @title == 'M'
|
155
155
|
@title = 'WIM' if @title == 'WM'
|
156
|
+
@title = '' if @title.match(/^(AFM|AIM|AGM)$/)
|
156
157
|
@title = nil if @title == ''
|
157
158
|
raise "invalid chess title (#{title})" unless @title.nil? || @title.match(/^W?[GIFCN]M$/)
|
158
159
|
end
|
data/spec/player_spec.rb
CHANGED
@@ -133,6 +133,10 @@ module ICU
|
|
133
133
|
expect(Player.new('Eamon', 'Keogh', 6, :title => 'nm').title).to eq('NM')
|
134
134
|
expect { Player.new('Mark', 'Orr', 3, :title => 'Dr') }.to raise_error(/invalid chess title/)
|
135
135
|
end
|
136
|
+
|
137
|
+
it "should ignore Arena titles" do
|
138
|
+
expect(Player.new('Darko', 'Polimac', 3, :title => 'AGM').title).to be_nil
|
139
|
+
end
|
136
140
|
end
|
137
141
|
|
138
142
|
context "rating" do
|
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.11.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: 2021-
|
12
|
+
date: 2021-08-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dbf
|