warcards 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- warcards (0.0.5)
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!
@@ -4,9 +4,9 @@ require 'querinator'
4
4
  module Cardgame
5
5
  class Game
6
6
  def initialize
7
- @deck = Deck.new
8
- @player = Player.new
9
- @ai = Ai.new
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]
@@ -1,5 +1,5 @@
1
1
  module Cardgame
2
2
 
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
 
5
5
  end
@@ -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
 
@@ -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 'growl', '~>1.0.3'
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.5
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-08 00:00:00.000000000 Z
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: growl
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: 1.0.3
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: 1.0.3
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: -569622757642697416
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: -569622757642697416
265
+ hash: -2512632559911738122
266
266
  requirements: []
267
267
  rubyforge_project:
268
268
  rubygems_version: 1.8.24