WPBDC 2013.1.4 → 2013.1.5
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 +8 -8
- data/ext/WPBDC/WPBDC.c +1 -0
- data/lib/WPBDC.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTA1NzdjZjA3NGQzYmZlNzUzYjQ4Y2JjODAwNjUwNjUxZDRmZTUxZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTcyZDdiODExMDdkZTRjMWQ0NTBkNTE0MmFhYjg1NjEzMjdjZjAyOQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTBmMDEwODE2OTM1YzE4ZTUxMDJkMzc3ODJmNzQ3OTNmZGUwMzU4MjM3YTdk
|
10
|
+
NmFjMWY3YTRlMGY0ZmUwN2ZmNDkxNTg0NDBjNjY5OTM3ZjFlYWVlOTBmM2My
|
11
|
+
MzVhYjYwNTliOWE2ZWQ1MDExOGUwYmUyNTA0ZDdlOGNhOGU1MDk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
M2VhOGQ0NDhjMjkyMjk2YzJkYzAyOWE4NTRiZTM4NjZjOTA2NTYwOGE0YjVl
|
14
|
+
MGQ2OTAwNWI5Y2M3NDZkZGM0ZmYxYzYzZTY2MDQ2NjQ2ZTI2MmM3MGJiMGJm
|
15
|
+
NjNhMWYyNmUzMDFhOGQyZDU1NzQ3NzNlY2IyYmQyOWZmMWY2ZmE=
|
data/ext/WPBDC/WPBDC.c
CHANGED
@@ -173,6 +173,7 @@ static struct ict_entry {
|
|
173
173
|
char *name;
|
174
174
|
int val;
|
175
175
|
} int_const_table[] = {
|
176
|
+
INT_CONST_TABLE_ENTRY(CONTEST_YEAR),
|
176
177
|
INT_CONST_TABLE_ENTRY(BRIDGE_OK),
|
177
178
|
INT_CONST_TABLE_ENTRY(BRIDGE_MALFORMED),
|
178
179
|
INT_CONST_TABLE_ENTRY(BRIDGE_WRONGVERSION),
|
data/lib/WPBDC.rb
CHANGED
@@ -4,8 +4,8 @@ module WPBDC
|
|
4
4
|
|
5
5
|
## Helper to extract scenario id from a complete 6-character local contest code
|
6
6
|
# @param [String] code local contest code
|
7
|
-
# @return [String] scenario id, a 10-digit number or nil if the given code was not a
|
7
|
+
# @return [String] scenario id, a 10-digit number or nil if the given code was not a valid one
|
8
8
|
def self.local_contest_code_to_id(code)
|
9
|
-
code.length == 6
|
9
|
+
code.length == 6 ? local_contest_number_to_id(code[-3..-1]) : nil
|
10
10
|
end
|
11
11
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: WPBDC
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2013.1.
|
4
|
+
version: 2013.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gene Ressler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Container for C code extension that implements the West Point Bridge
|
14
14
|
Contest Judge.
|