bridge 0.0.2 → 0.0.3
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.
- data/VERSION +1 -1
- data/bridge.gemspec +4 -4
- data/lib/bridge.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/bridge.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{bridge}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jakub Kuźma"]
|
12
|
-
s.date = %q{2010-02-
|
12
|
+
s.date = %q{2010-02-22}
|
13
13
|
s.description = %q{Useful contract bridge utilities - deal generator, id to deal and deal to id conversion}
|
14
14
|
s.email = %q{qoobaa+github@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -34,8 +34,8 @@ Gem::Specification.new do |s|
|
|
34
34
|
s.rubygems_version = %q{1.3.5}
|
35
35
|
s.summary = %q{Contract bridge utilities}
|
36
36
|
s.test_files = [
|
37
|
-
"test/
|
38
|
-
"test/
|
37
|
+
"test/helper.rb",
|
38
|
+
"test/test_bridge.rb"
|
39
39
|
]
|
40
40
|
|
41
41
|
if s.respond_to? :specification_version then
|
data/lib/bridge.rb
CHANGED
@@ -5,7 +5,7 @@ module Bridge
|
|
5
5
|
|
6
6
|
# Array with cards in the bridge deck (AKQJT98765432, four suits)
|
7
7
|
DECK = %w(S H D C).inject([]) do |d, s|
|
8
|
-
d += %w(A K Q J T 9 8 7 6 5 4 3 2).map { |c|
|
8
|
+
d += %w(A K Q J T 9 8 7 6 5 4 3 2).map { |c| s + c }
|
9
9
|
end
|
10
10
|
|
11
11
|
# Converts given id to deal (hash)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bridge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Jakub Ku\xC5\xBAma"
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-02-
|
12
|
+
date: 2010-02-22 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -71,5 +71,5 @@ signing_key:
|
|
71
71
|
specification_version: 3
|
72
72
|
summary: Contract bridge utilities
|
73
73
|
test_files:
|
74
|
-
- test/test_bridge.rb
|
75
74
|
- test/helper.rb
|
75
|
+
- test/test_bridge.rb
|