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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e33af9b542767ff7bead274db11e41bd1b1f8d33ebf63c5baebfa93afc611d6
4
- data.tar.gz: 3952bad7dd3a9d28a310a144aa23afc7f3c192a708a75199f69c1ec585f576b7
3
+ metadata.gz: ef8e4989eba88a39a3f558609e32198b6d0454fabdfdd8b5cae45290bf3e70e0
4
+ data.tar.gz: ad1c1b31022e800c2added6a2af3651a9b0acf27aadc1f4d24f9e5f9bb756eee
5
5
  SHA512:
6
- metadata.gz: 1b64f0be69a10c946a9fada714d31fdf09c233ff35938adad84401060956d76d26c1bdf26ab01eb9b5f46abb954769eb5722d2e7857fbd83213d3192fe196cf0
7
- data.tar.gz: 05ce3a76552f6b551654674e1de88518507061ab0f008fdb0823ca3baa3140c17dd417c6730f58e0d187773b27869dcc07f9d0df6e4373df7f635eba74ffa9c4
6
+ metadata.gz: 4833fcc886f3c49e76a88ecaae94bf6c9f67b9b07a10d7ae44c46cb45b2048b446b0edbc6f3d19a4af3a0d5fcf38a8de7d2b31e79869701989bb2b53ad51e92b
7
+ data.tar.gz: 36d66be3c10db6698997f273160e7c695bd8b74f42eb234827bf0692f3dd4b124f5b022623c69719068fe117f0dfc6caa62b94c521292ff44b509e10792a2381
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ruby '3.4.1'
3
+ ruby file: '.ruby-version'
4
4
 
5
5
  source 'https://rubygems.org'
6
6
 
data/Gemfile.lock CHANGED
@@ -1,86 +1,99 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- activesupport (7.1.3.4)
4
+ activesupport (8.0.3)
5
5
  base64
6
+ benchmark (>= 0.3)
6
7
  bigdecimal
7
- concurrent-ruby (~> 1.0, >= 1.0.2)
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
- mutex_m
13
- tzinfo (~> 2.0)
14
- ast (2.4.2)
15
- base64 (0.2.0)
16
- bigdecimal (3.1.8)
17
- concurrent-ruby (1.3.3)
18
- connection_pool (2.4.1)
19
- diff-lcs (1.5.1)
20
- docile (1.4.0)
21
- drb (2.2.1)
22
- factory_bot (6.4.6)
23
- activesupport (>= 5.0.0)
24
- i18n (1.14.5)
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.7.2)
27
- language_server-protocol (3.17.0.3)
28
- minitest (5.24.1)
29
- mutex_m (0.2.0)
30
- parallel (1.25.1)
31
- parser (3.3.4.0)
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
- racc (1.8.0)
39
+ prism (1.5.1)
40
+ racc (1.8.1)
35
41
  rainbow (3.1.1)
36
- rake (13.2.1)
37
- regexp_parser (2.9.2)
38
- rexml (3.3.9)
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.0)
48
+ rspec-core (3.13.5)
44
49
  rspec-support (~> 3.13.0)
45
- rspec-expectations (3.13.1)
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.1)
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.1)
52
- rubocop (1.65.0)
56
+ rspec-support (3.13.6)
57
+ rubocop (1.81.1)
53
58
  json (~> 2.3)
54
- language_server-protocol (>= 3.17.0)
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.4, < 3.0)
59
- rexml (>= 3.2.5, < 4.0)
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, < 3.0)
63
- rubocop-ast (1.31.3)
64
- parser (>= 3.3.1.0)
65
- rubocop-factory_bot (2.26.1)
66
- rubocop (~> 1.61)
67
- rubocop-rake (0.6.0)
68
- rubocop (~> 1.0)
69
- rubocop-rspec (3.0.3)
70
- rubocop (~> 1.61)
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.12.3)
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.5.0)
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-22
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.1p0
110
+ ruby 3.4.6p54
98
111
 
99
112
  BUNDLED WITH
100
- 2.4.22
113
+ 2.7.2
data/bj.txt CHANGED
@@ -1 +1 @@
1
- 1|1|1|10000|500
1
+ 1|1|1|9000|500
Binary file
@@ -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.6'
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'
@@ -11,7 +11,7 @@ class DealerHand < Hand
11
11
  end
12
12
 
13
13
  def upcard_is_ace?
14
- cards.first.ace?
14
+ cards.last.ace?
15
15
  end
16
16
 
17
17
  def draw
@@ -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).to_not be_upcard_is_ace
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).to be_upcard_is_ace
72
+ expect(dealer_hand).to_not be_upcard_is_ace
73
73
  end
74
74
  end
75
75
 
@@ -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 << ace << ten
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.6
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: 2025-01-18 00:00:00.000000000 Z
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.2
83
+ rubygems_version: 3.6.9
83
84
  specification_version: 4
84
85
  summary: Console Blackjack
85
86
  test_files: []