WPBDC 2013.1.3 → 2013.1.4

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.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/WPBDC.rb +5 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTZiNzg4YzcxZGNhNzUxOGRhZTgyYWUzY2FiMmM0M2JiOWRkODdkNg==
4
+ OWMxNzVlYzQ0ZTRlYzdlOWZmMTQ2ZmE2ZjQwNjBiM2ZlZmI3ODhkYw==
5
5
  data.tar.gz: !binary |-
6
- NGRmYzEyZjFhYzhlZmUyNmU5N2FhMWEyMDY2YjNiZTZjOGZlOTk2ZA==
6
+ MGQ2OTkwYWM2N2M3ZDllZTAwNmNkN2QzY2RlNTVkZDZmM2ZiMjllYg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZmI4ODkyNjYyNDUxNmU1ZDc1YTk1MTY5MTAzMTg2NWI1ZTZmOTlhZDFlZTVm
10
- ODMxMTNiNzE0NjMwYTQwMjI0NjRiOWIxNzdlYzY3ZjQ0ZTE0ZDZjYTczMWUx
11
- MmE2MGUzNzU1ZWI2OWNkZmZkNDYyNjA3MWUyNTVhZGNmZGU3Yzk=
9
+ OGZjOWIzNzNmMGI1Njk5MzlmYTA5NjA1OGYyOTUzMGNhOWIwMTE2MjNhZTE5
10
+ YmM2MWQyZjI2ZGU1ZDZlZTgxNmI0ZGYwZDVkY2IwNWExY2E3MWI1M2Y2NDZk
11
+ NmEwZTdjYzYzODE4MTYwNzg3YzIyZmVkZmViYWQ0MmFlNDY4NTg=
12
12
  data.tar.gz: !binary |-
13
- ZTllYjk0MjE1MDVmOTRjZGE2NTA2MmEwZjc3YjM0NjUwNjcyNDQ1YWFmNjAy
14
- MDI0ZWY5M2VmY2Q0NjlkNGY2NzgyMDljNjA4OGM5NjUxM2NhYzkwZjdkOGQ2
15
- YzJmZjU1ZWY5NzRjZjU0NjY4ZTE3OGRiZTMxMWJhYzIwMjVmNGU=
13
+ OTMyNWNlMTYxZjZmZjJkYzg4MWJhNjZhMjdkZTFlMjkwZDI4YzQxYTcxNWI5
14
+ NjU1OTRjNTdiZGRhNjg5NmM2YjYzZTU0NjlkMzNmNWZlOWVjOWYwNjVhNzky
15
+ M2E4OGNjOTA0ODZjODFjZDU3MWFjYTZkODk3NDMzYzI5ZTIzZTE=
data/lib/WPBDC.rb CHANGED
@@ -2,8 +2,10 @@ require 'WPBDC/WPBDC'
2
2
 
3
3
  module WPBDC
4
4
 
5
- def self.hello
6
- return 'WPBDC says, "Hello world!"'
5
+ ## Helper to extract scenario id from a complete 6-character local contest code
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 correct one
8
+ def self.local_contest_code_to_id(code)
9
+ code.length == 6 && local_contest_number_to_id(code[-3..-1])
7
10
  end
8
-
9
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.3
4
+ version: 2013.1.4
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-05-01 00:00:00.000000000 Z
11
+ date: 2013-05-12 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.