warcards 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +3 -2
- data/lib/warcards.rb +15 -3
- data/lib/warcards/version.rb +1 -1
- data/spec/spec_helper.rb +2 -1
- data/warcards.gemspec +2 -1
- metadata +9 -9
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
warcards (0.0.
|
4
|
+
warcards (0.0.6)
|
5
5
|
bundler (~> 1.1)
|
6
6
|
querinator
|
7
7
|
rake (~> 0.9.2)
|
@@ -51,6 +51,7 @@ GEM
|
|
51
51
|
multi_json (~> 1.0)
|
52
52
|
simplecov-html (~> 0.5.3)
|
53
53
|
simplecov-html (0.5.3)
|
54
|
+
terminal-notifier-guard (1.5.3)
|
54
55
|
thor (0.15.4)
|
55
56
|
turn (0.9.6)
|
56
57
|
ansi
|
@@ -60,7 +61,6 @@ PLATFORMS
|
|
60
61
|
x86-mingw32
|
61
62
|
|
62
63
|
DEPENDENCIES
|
63
|
-
growl (~> 1.0.3)
|
64
64
|
guard (~> 1.2.3)
|
65
65
|
guard-minitest (~> 0.5.0)
|
66
66
|
minitest-growl
|
@@ -68,5 +68,6 @@ DEPENDENCIES
|
|
68
68
|
minitest-spec (~> 0.0.2)
|
69
69
|
rb-fsevent (~> 0.9.1)
|
70
70
|
simplecov (~> 0.6)
|
71
|
+
terminal-notifier-guard
|
71
72
|
turn (~> 0.9.6)
|
72
73
|
warcards!
|
data/lib/warcards.rb
CHANGED
@@ -4,9 +4,9 @@ require 'querinator'
|
|
4
4
|
module Cardgame
|
5
5
|
class Game
|
6
6
|
def initialize
|
7
|
-
@deck =
|
8
|
-
@player =
|
9
|
-
@ai =
|
7
|
+
@deck = deck
|
8
|
+
@player = player
|
9
|
+
@ai = ai
|
10
10
|
@gameplay = gameplay(:deck => @deck, :player => @player, :ai => @ai)
|
11
11
|
@gameplay.shuffle
|
12
12
|
@gameplay.deal
|
@@ -14,6 +14,18 @@ module Cardgame
|
|
14
14
|
@slow = TRUE
|
15
15
|
end
|
16
16
|
|
17
|
+
def deck
|
18
|
+
Deck.new
|
19
|
+
end
|
20
|
+
|
21
|
+
def ai
|
22
|
+
Ai.new
|
23
|
+
end
|
24
|
+
|
25
|
+
def player
|
26
|
+
Player.new
|
27
|
+
end
|
28
|
+
|
17
29
|
def gameplay(args)
|
18
30
|
deck = args[:deck]
|
19
31
|
player = args[:player]
|
data/lib/warcards/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -4,9 +4,10 @@ SimpleCov.start
|
|
4
4
|
require 'minitest/spec'
|
5
5
|
require "minitest/autorun"
|
6
6
|
require 'minitest/reporters'
|
7
|
-
require 'minitest/growl_notify'
|
7
|
+
#require 'minitest/growl_notify'
|
8
8
|
require 'turn'
|
9
9
|
require 'growl'
|
10
|
+
require 'terminal-notifier-guard'
|
10
11
|
|
11
12
|
MiniTest::Reporters.use!
|
12
13
|
|
data/warcards.gemspec
CHANGED
@@ -22,7 +22,8 @@ Gem::Specification.new do |gem|
|
|
22
22
|
gem.add_development_dependency 'minitest-growl'
|
23
23
|
gem.add_development_dependency 'guard', '~>1.2.3'
|
24
24
|
gem.add_development_dependency 'guard-minitest', '~>0.5.0'
|
25
|
-
gem.add_development_dependency '
|
25
|
+
gem.add_development_dependency 'terminal-notifier-guard'
|
26
|
+
#gem.add_development_dependency 'growl', '~>1.0.3'
|
26
27
|
gem.add_development_dependency 'turn', '~>0.9.6'
|
27
28
|
gem.add_development_dependency 'simplecov', '~>0.6'
|
28
29
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: warcards
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rb-fsevent
|
@@ -108,21 +108,21 @@ dependencies:
|
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: 0.5.0
|
110
110
|
- !ruby/object:Gem::Dependency
|
111
|
-
name:
|
111
|
+
name: terminal-notifier-guard
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
113
113
|
none: false
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ! '>='
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
none: false
|
122
122
|
requirements:
|
123
|
-
- -
|
123
|
+
- - ! '>='
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
125
|
+
version: '0'
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
127
|
name: turn
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
@@ -253,7 +253,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
253
253
|
version: '0'
|
254
254
|
segments:
|
255
255
|
- 0
|
256
|
-
hash: -
|
256
|
+
hash: -2512632559911738122
|
257
257
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
258
258
|
none: false
|
259
259
|
requirements:
|
@@ -262,7 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
262
262
|
version: '0'
|
263
263
|
segments:
|
264
264
|
- 0
|
265
|
-
hash: -
|
265
|
+
hash: -2512632559911738122
|
266
266
|
requirements: []
|
267
267
|
rubyforge_project:
|
268
268
|
rubygems_version: 1.8.24
|