console-blackjack 1.1.6 → 1.1.7
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 +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +62 -49
- data/bj.txt +1 -1
- data/console-blackjack-1.1.6.gem +0 -0
- data/console-blackjack.gemspec +1 -1
- data/lib/blackjack/dealer_hand.rb +1 -1
- data/spec/blackjack/dealer_hand_spec.rb +2 -2
- data/spec/blackjack_spec.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ef8e4989eba88a39a3f558609e32198b6d0454fabdfdd8b5cae45290bf3e70e0
|
|
4
|
+
data.tar.gz: ad1c1b31022e800c2added6a2af3651a9b0acf27aadc1f4d24f9e5f9bb756eee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4833fcc886f3c49e76a88ecaae94bf6c9f67b9b07a10d7ae44c46cb45b2048b446b0edbc6f3d19a4af3a0d5fcf38a8de7d2b31e79869701989bb2b53ad51e92b
|
|
7
|
+
data.tar.gz: 36d66be3c10db6698997f273160e7c695bd8b74f42eb234827bf0692f3dd4b124f5b022623c69719068fe117f0dfc6caa62b94c521292ff44b509e10792a2381
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,86 +1,99 @@
|
|
|
1
1
|
GEM
|
|
2
2
|
remote: https://rubygems.org/
|
|
3
3
|
specs:
|
|
4
|
-
activesupport (
|
|
4
|
+
activesupport (8.0.3)
|
|
5
5
|
base64
|
|
6
|
+
benchmark (>= 0.3)
|
|
6
7
|
bigdecimal
|
|
7
|
-
concurrent-ruby (~> 1.0, >= 1.
|
|
8
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
8
9
|
connection_pool (>= 2.2.5)
|
|
9
10
|
drb
|
|
10
11
|
i18n (>= 1.6, < 2)
|
|
12
|
+
logger (>= 1.4.2)
|
|
11
13
|
minitest (>= 5.1)
|
|
12
|
-
|
|
13
|
-
tzinfo (~> 2.0)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
securerandom (>= 0.3)
|
|
15
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
16
|
+
uri (>= 0.13.1)
|
|
17
|
+
ast (2.4.3)
|
|
18
|
+
base64 (0.3.0)
|
|
19
|
+
benchmark (0.4.1)
|
|
20
|
+
bigdecimal (3.3.0)
|
|
21
|
+
concurrent-ruby (1.3.5)
|
|
22
|
+
connection_pool (2.5.4)
|
|
23
|
+
diff-lcs (1.6.2)
|
|
24
|
+
docile (1.4.1)
|
|
25
|
+
drb (2.2.3)
|
|
26
|
+
factory_bot (6.5.5)
|
|
27
|
+
activesupport (>= 6.1.0)
|
|
28
|
+
i18n (1.14.7)
|
|
25
29
|
concurrent-ruby (~> 1.0)
|
|
26
|
-
json (2.
|
|
27
|
-
language_server-protocol (3.17.0.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
json (2.15.1)
|
|
31
|
+
language_server-protocol (3.17.0.5)
|
|
32
|
+
lint_roller (1.1.0)
|
|
33
|
+
logger (1.7.0)
|
|
34
|
+
minitest (5.25.5)
|
|
35
|
+
parallel (1.27.0)
|
|
36
|
+
parser (3.3.9.0)
|
|
32
37
|
ast (~> 2.4.1)
|
|
33
38
|
racc
|
|
34
|
-
|
|
39
|
+
prism (1.5.1)
|
|
40
|
+
racc (1.8.1)
|
|
35
41
|
rainbow (3.1.1)
|
|
36
|
-
rake (13.
|
|
37
|
-
regexp_parser (2.
|
|
38
|
-
|
|
39
|
-
rspec (3.13.0)
|
|
42
|
+
rake (13.3.0)
|
|
43
|
+
regexp_parser (2.11.3)
|
|
44
|
+
rspec (3.13.1)
|
|
40
45
|
rspec-core (~> 3.13.0)
|
|
41
46
|
rspec-expectations (~> 3.13.0)
|
|
42
47
|
rspec-mocks (~> 3.13.0)
|
|
43
|
-
rspec-core (3.13.
|
|
48
|
+
rspec-core (3.13.5)
|
|
44
49
|
rspec-support (~> 3.13.0)
|
|
45
|
-
rspec-expectations (3.13.
|
|
50
|
+
rspec-expectations (3.13.5)
|
|
46
51
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
47
52
|
rspec-support (~> 3.13.0)
|
|
48
|
-
rspec-mocks (3.13.
|
|
53
|
+
rspec-mocks (3.13.5)
|
|
49
54
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
50
55
|
rspec-support (~> 3.13.0)
|
|
51
|
-
rspec-support (3.13.
|
|
52
|
-
rubocop (1.
|
|
56
|
+
rspec-support (3.13.6)
|
|
57
|
+
rubocop (1.81.1)
|
|
53
58
|
json (~> 2.3)
|
|
54
|
-
language_server-protocol (
|
|
59
|
+
language_server-protocol (~> 3.17.0.2)
|
|
60
|
+
lint_roller (~> 1.1.0)
|
|
55
61
|
parallel (~> 1.10)
|
|
56
62
|
parser (>= 3.3.0.2)
|
|
57
63
|
rainbow (>= 2.2.2, < 4.0)
|
|
58
|
-
regexp_parser (>= 2.
|
|
59
|
-
|
|
60
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
|
64
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
65
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
61
66
|
ruby-progressbar (~> 1.7)
|
|
62
|
-
unicode-display_width (>= 2.4.0, <
|
|
63
|
-
rubocop-ast (1.
|
|
64
|
-
parser (>= 3.3.
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
rubocop (~> 1.
|
|
69
|
-
rubocop-
|
|
70
|
-
|
|
67
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
68
|
+
rubocop-ast (1.47.1)
|
|
69
|
+
parser (>= 3.3.7.2)
|
|
70
|
+
prism (~> 1.4)
|
|
71
|
+
rubocop-factory_bot (2.27.1)
|
|
72
|
+
lint_roller (~> 1.1)
|
|
73
|
+
rubocop (~> 1.72, >= 1.72.1)
|
|
74
|
+
rubocop-rake (0.7.1)
|
|
75
|
+
lint_roller (~> 1.1)
|
|
76
|
+
rubocop (>= 1.72.1)
|
|
77
|
+
rubocop-rspec (3.7.0)
|
|
78
|
+
lint_roller (~> 1.1)
|
|
79
|
+
rubocop (~> 1.72, >= 1.72.1)
|
|
71
80
|
ruby-progressbar (1.13.0)
|
|
81
|
+
securerandom (0.4.1)
|
|
72
82
|
simplecov (0.22.0)
|
|
73
83
|
docile (~> 1.1)
|
|
74
84
|
simplecov-html (~> 0.11)
|
|
75
85
|
simplecov_json_formatter (~> 0.1)
|
|
76
|
-
simplecov-html (0.
|
|
86
|
+
simplecov-html (0.13.2)
|
|
77
87
|
simplecov_json_formatter (0.1.4)
|
|
78
88
|
tzinfo (2.0.6)
|
|
79
89
|
concurrent-ruby (~> 1.0)
|
|
80
|
-
unicode-display_width (2.
|
|
90
|
+
unicode-display_width (3.2.0)
|
|
91
|
+
unicode-emoji (~> 4.1)
|
|
92
|
+
unicode-emoji (4.1.0)
|
|
93
|
+
uri (1.0.4)
|
|
81
94
|
|
|
82
95
|
PLATFORMS
|
|
83
|
-
arm64-darwin-
|
|
96
|
+
arm64-darwin-25
|
|
84
97
|
ruby
|
|
85
98
|
|
|
86
99
|
DEPENDENCIES
|
|
@@ -94,7 +107,7 @@ DEPENDENCIES
|
|
|
94
107
|
simplecov
|
|
95
108
|
|
|
96
109
|
RUBY VERSION
|
|
97
|
-
ruby 3.4.
|
|
110
|
+
ruby 3.4.6p54
|
|
98
111
|
|
|
99
112
|
BUNDLED WITH
|
|
100
|
-
2.
|
|
113
|
+
2.7.2
|
data/bj.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1|1|1|
|
|
1
|
+
1|1|1|9000|500
|
|
Binary file
|
data/console-blackjack.gemspec
CHANGED
|
@@ -5,7 +5,7 @@ require 'rake'
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.required_ruby_version = '>= 3.4'
|
|
7
7
|
spec.name = 'console-blackjack'
|
|
8
|
-
spec.version = '1.1.
|
|
8
|
+
spec.version = '1.1.7'
|
|
9
9
|
spec.summary = 'Console Blackjack'
|
|
10
10
|
spec.description = 'Blackjack for your console, full version.'
|
|
11
11
|
spec.author = 'Greg Donald'
|
|
@@ -64,12 +64,12 @@ RSpec.describe DealerHand do
|
|
|
64
64
|
describe '#upcard_is_ace?' do
|
|
65
65
|
it 'returns false' do
|
|
66
66
|
dealer_hand.cards << ten << ace
|
|
67
|
-
expect(dealer_hand).
|
|
67
|
+
expect(dealer_hand).to be_upcard_is_ace
|
|
68
68
|
end
|
|
69
69
|
|
|
70
70
|
it 'returns true' do
|
|
71
71
|
dealer_hand.cards << ace << ten
|
|
72
|
-
expect(dealer_hand).
|
|
72
|
+
expect(dealer_hand).to_not be_upcard_is_ace
|
|
73
73
|
end
|
|
74
74
|
end
|
|
75
75
|
|
data/spec/blackjack_spec.rb
CHANGED
|
@@ -303,7 +303,7 @@ RSpec.describe Blackjack do
|
|
|
303
303
|
context 'when the dealer upcard is ace and player hand is not busted' do
|
|
304
304
|
before do
|
|
305
305
|
allow(blackjack).to receive(:build_new_hand).and_return(player_hand)
|
|
306
|
-
dealer_hand.cards <<
|
|
306
|
+
dealer_hand.cards << ten << ace
|
|
307
307
|
end
|
|
308
308
|
|
|
309
309
|
it 'asks about insurance' do
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: console-blackjack
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Greg Donald
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies: []
|
|
12
12
|
description: Blackjack for your console, full version.
|
|
13
13
|
email: gdonald@gmail.com
|
|
@@ -26,6 +26,7 @@ files:
|
|
|
26
26
|
- console-blackjack-1.1.3.gem
|
|
27
27
|
- console-blackjack-1.1.4.gem
|
|
28
28
|
- console-blackjack-1.1.5.gem
|
|
29
|
+
- console-blackjack-1.1.6.gem
|
|
29
30
|
- console-blackjack.gemspec
|
|
30
31
|
- lib/blackjack.rb
|
|
31
32
|
- lib/blackjack/card.rb
|
|
@@ -79,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
79
80
|
- !ruby/object:Gem::Version
|
|
80
81
|
version: '0'
|
|
81
82
|
requirements: []
|
|
82
|
-
rubygems_version: 3.6.
|
|
83
|
+
rubygems_version: 3.6.9
|
|
83
84
|
specification_version: 4
|
|
84
85
|
summary: Console Blackjack
|
|
85
86
|
test_files: []
|