nerd_dice 0.4.0 → 0.4.1

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: 8f64389429514a7d0c2a8410b2e27575e5c11b316b50cee41b37c58d8f8af953
4
- data.tar.gz: 4d2365e3ce8139d4675695dfe47edf9ef5d52b9cc873beb5c7c314b8955aaa33
3
+ metadata.gz: 2652443ce77d0c00ceb8ec2cb15151d7b03a15bba2ad592c44bb3f080f2e613c
4
+ data.tar.gz: 1c91a3545d42ce5d5627ddb87169a05316cff352e4931e4b6970f92e2c17e98a
5
5
  SHA512:
6
- metadata.gz: d8bf0ea2c85e3aedf952d82d0f511463accedcad5122b14a7d6769a94100902887ca0e52cf85a6d8b69a75a6cd750858852ad71e34980e61624d39666bedff5b
7
- data.tar.gz: ee2e8117b3071872a3d07353dabd4685c4a20e188591e80cbcb93609ba9f134ab22082ae01bee152c34c9cdd1a81a6a40aec2b1521d3e2a106d10f0c8fa313ae
6
+ metadata.gz: 39909d95757e9ebf2fa6848e87350a09aeb3b00ee8791aecc50ae083b5e541b2f6426a7a5e280c530a594f6b39179a6f32e70ba053817115992608ee205f662d
7
+ data.tar.gz: b6fd6502fb2a5beb79d6367f71b7039800138edc4d366e8b6e05030acf56875a37f2124ebc18eab08e9575cb232eb07b15f5d6528ad49c55dd7b997525343f36
checksums.yaml.gz.sig CHANGED
Binary file
@@ -14,7 +14,7 @@ jobs:
14
14
  runs-on: ubuntu-latest
15
15
  strategy:
16
16
  matrix:
17
- ruby-version: ['2.7', '3.0']
17
+ ruby-version: ['3.0', '3.1', '3.2']
18
18
 
19
19
  steps:
20
20
  - uses: actions/checkout@v2
@@ -39,7 +39,7 @@ jobs:
39
39
  - name: Set up Ruby
40
40
  uses: ruby/setup-ruby@v1
41
41
  with:
42
- ruby-version: '3.0'
42
+ ruby-version: '3.2'
43
43
  bundler-cache: true # runs 'bundle install' and caches installed gems automatically
44
44
  - name: Run rubocop
45
45
  run: bundle exec rubocop --parallel
@@ -51,7 +51,7 @@ jobs:
51
51
  - name: Set up Ruby
52
52
  uses: ruby/setup-ruby@v1
53
53
  with:
54
- ruby-version: '3.0'
54
+ ruby-version: '3.2'
55
55
  bundler-cache: true # runs 'bundle install' and caches installed gems automatically
56
56
  - name: Run benchmark script
57
57
  run: bin/nerd_dice_benchmark
data/.rubocop.yml CHANGED
@@ -1,3 +1,11 @@
1
+ # RuboCop configuration file for NerdDice gem
2
+ #
3
+ # This is the RuboCop configuration for the gem. By default new cops are enabled
4
+ # by default when the RuboCop gems are updated in the bundle. Before the would
5
+ # show up as warnings until they were added to the configuration file. Now they
6
+ # will be enabled by default, and a case-by-case descision can be made whether
7
+ # to exclude new violations in the configuration explicitly or update the
8
+ # codebase to the gem to conform to the new standard.
1
9
  require:
2
10
  - rubocop-performance
3
11
  - rubocop-rake
@@ -8,14 +16,12 @@ AllCops:
8
16
  # RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
9
17
  # to ignore them, so only the ones explicitly set in this file are enabled.
10
18
  #DisabledByDefault: true
19
+
20
+ # New cops are now enabled by default as of 2023-02-20
21
+ NewCops: enable
11
22
  Exclude:
12
23
  - '**/templates/**/*'
13
24
  - '**/vendor/**/*'
14
- - 'node_modules/**/*'
15
-
16
- Performance:
17
- Exclude:
18
- - '**/test/**/*'
19
25
 
20
26
  # Prefer &&/|| over and/or.
21
27
  Style/AndOr:
@@ -111,15 +117,6 @@ Style/MethodDefParentheses:
111
117
  Style/FrozenStringLiteralComment:
112
118
  Enabled: true
113
119
  EnforcedStyle: always
114
- Exclude:
115
- - 'actionview/test/**/*.builder'
116
- - 'actionview/test/**/*.ruby'
117
- - 'actionpack/test/**/*.builder'
118
- - 'actionpack/test/**/*.ruby'
119
- - 'activestorage/db/migrate/**/*.rb'
120
- - 'activestorage/db/update_migrate/**/*.rb'
121
- - 'actionmailbox/db/migrate/**/*.rb'
122
- - 'actiontext/db/migrate/**/*.rb'
123
120
 
124
121
  Style/RedundantFreeze:
125
122
  Enabled: true
@@ -191,30 +188,6 @@ Lint/UselessAssignment:
191
188
  Lint/DeprecatedClassMethods:
192
189
  Enabled: true
193
190
 
194
- Lint/DuplicateBranch: # (new in 1.3)
195
- Enabled: true
196
-
197
- Lint/DuplicateRegexpCharacterClassElement: # (new in 1.1)
198
- Enabled: true
199
-
200
- Lint/EmptyBlock: # (new in 1.1)
201
- Enabled: true
202
-
203
- Lint/EmptyClass: # (new in 1.3)
204
- Enabled: true
205
-
206
- Lint/NoReturnInBeginEndBlocks: # (new in 1.2)
207
- Enabled: true
208
-
209
- Lint/ToEnumArguments: # (new in 1.1)
210
- Enabled: true
211
-
212
- Lint/UnexpectedBlockArity: # (new in 1.5)
213
- Enabled: true
214
-
215
- Lint/UnmodifiedReduceAccumulator: # (new in 1.1)
216
- Enabled: true
217
-
218
191
  Style/ParenthesesAroundCondition:
219
192
  Enabled: true
220
193
 
@@ -236,27 +209,6 @@ Style/ColonMethodCall:
236
209
  Style/TrivialAccessors:
237
210
  Enabled: true
238
211
 
239
- Style/ArgumentsForwarding: # (new in 1.1)
240
- Enabled: true
241
-
242
- Style/CollectionCompact: # (new in 1.2)
243
- Enabled: true
244
-
245
- Style/DocumentDynamicEvalDefinition: # (new in 1.1)
246
- Enabled: true
247
-
248
- Style/NegatedIfElseCondition: # (new in 1.2)
249
- Enabled: true
250
-
251
- Style/NilLambda: # (new in 1.3)
252
- Enabled: true
253
-
254
- Style/RedundantArgument: # (new in 1.4)
255
- Enabled: true
256
-
257
- Style/SwapValues: # (new in 1.1)
258
- Enabled: true
259
-
260
212
  Performance/FlatMap:
261
213
  Enabled: true
262
214
 
@@ -275,147 +227,9 @@ Performance/RegexpMatch:
275
227
  Performance/UnfreezeString:
276
228
  Enabled: true
277
229
 
278
- Performance/AncestorsInclude: # (new in 1.7)
279
- Enabled: true
280
-
281
- Performance/BigDecimalWithNumericArgument: # (new in 1.7)
282
- Enabled: true
283
-
284
- Performance/BlockGivenWithExplicitBlock: # (new in 1.9)
285
- Enabled: true
286
-
287
- Performance/CollectionLiteralInLoop: # (new in 1.8)
288
- Enabled: true
289
-
290
- Performance/ConstantRegexp: # (new in 1.9)
291
- Enabled: true
292
-
293
- Performance/MethodObjectAsBlock: # (new in 1.9)
294
- Enabled: true
295
-
296
- Performance/RedundantSortBlock: # (new in 1.7)
297
- Enabled: true
298
-
299
- Performance/RedundantStringChars: # (new in 1.7)
300
- Enabled: true
301
-
302
- Performance/ReverseFirst: # (new in 1.7)
303
- Enabled: true
304
-
305
- Performance/SortReverse: # (new in 1.7)
306
- Enabled: true
307
-
308
- Performance/Squeeze: # (new in 1.7)
309
- Enabled: true
310
-
311
- Performance/StringInclude: # (new in 1.7)
312
- Enabled: true
313
-
314
- Performance/Sum: # (new in 1.8)
315
- Enabled: true
316
-
317
- Layout/SpaceBeforeBrackets: # (new in 1.7)
318
- Enabled: true
319
-
320
- Lint/AmbiguousAssignment: # (new in 1.7)
321
- Enabled: true
322
-
323
- Lint/DeprecatedConstants: # (new in 1.8)
324
- Enabled: true
325
-
326
- Lint/LambdaWithoutLiteralBlock: # (new in 1.8)
327
- Enabled: true
328
-
329
- Lint/RedundantDirGlobSort: # (new in 1.8)
330
- Enabled: true
331
-
332
- Style/EndlessMethod: # (new in 1.8)
333
- Enabled: true
334
-
335
- Style/HashExcept: # (new in 1.7)
336
- Enabled: true
337
-
338
- # Added 2021-08-14
339
- Gemspec/DateAssignment: # (new in 1.10)
340
- Enabled: true
341
-
342
- Layout/LineEndStringConcatenationIndentation: # (new in 1.18)
343
- Enabled: true
344
-
345
- Lint/EmptyInPattern: # (new in 1.16)
346
- Enabled: true
347
-
348
- Lint/NumberedParameterAssignment: # (new in 1.9)
349
- Enabled: true
350
-
351
- Lint/OrAssignmentToConstant: # (new in 1.9)
352
- Enabled: true
353
-
354
- Lint/SymbolConversion: # (new in 1.9)
355
- Enabled: true
356
-
357
- Lint/TripleQuotes: # (new in 1.9)
358
- Enabled: true
359
-
360
- Naming/InclusiveLanguage: # (new in 1.18)
361
- Enabled: false
362
-
363
- Style/HashConversion: # (new in 1.10)
364
- Enabled: true
365
-
366
- Style/IfWithBooleanLiteralBranches: # (new in 1.9)
367
- Enabled: true
368
-
369
- Style/InPatternThen: # (new in 1.16)
370
- Enabled: true
371
-
372
- Style/MultilineInPatternThen: # (new in 1.16)
373
- Enabled: true
374
-
375
- Style/QuotedSymbols: # (new in 1.16)
376
- Enabled: true
377
-
378
- Style/StringChars: # (new in 1.12)
379
- Enabled: true
380
-
381
- Performance/MapCompact: # (new in 1.11)
382
- Enabled: true
383
-
384
- Performance/RedundantEqualityComparisonBlock: # (new in 1.10)
385
- Enabled: true
386
-
387
- Performance/RedundantSplitRegexpArgument: # (new in 1.10)
388
- Enabled: true
389
-
390
- RSpec/IdenticalEqualityAssertion: # (new in 2.4)
391
- Enabled: true
392
-
393
- RSpec/Rails/AvoidSetupHook: # (new in 2.4)
394
- Enabled: true
395
-
396
230
  RSpec/MessageSpies:
397
231
  EnforcedStyle: receive
398
232
 
399
- Lint/AmbiguousRange: # new in 1.19
400
- Enabled: true
401
- Style/RedundantSelfAssignmentBranch: # new in 1.19
402
- Enabled: true
403
-
404
- Lint/AmbiguousOperatorPrecedence: # new in 1.21
405
- Enabled: true
406
- Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
407
- Enabled: true
408
- Lint/RequireRelativeSelfPath: # new in 1.22
409
- Enabled: true
410
- Security/IoMethods: # new in 1.22
411
- Enabled: true
412
- Style/NumberedParameters: # new in 1.22
413
- Enabled: true
414
- Style/NumberedParametersLimit: # new in 1.22
415
- Enabled: true
416
- Style/SelectByRegexp: # new in 1.22
417
- Enabled: true
418
- RSpec/ExcessiveDocstringSpacing: # new in 2.5
419
- Enabled: true
420
- RSpec/SubjectDeclaration: # new in 2.5
421
- Enabled: true
233
+ # Disable inclusive language cop. None of RuboCop's business
234
+ Naming/InclusiveLanguage:
235
+ Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,82 +1,8 @@
1
1
  # Nerd Dice Changelog
2
2
 
3
- ## master \(unreleased\)
4
- ### Added
5
- ### Changed
6
- ### Fixed
3
+ <img src="https://i.kym-cdn.com/photos/images/newsfeed/000/186/610/thankyou.png?1318726198" alt="Our CHANGELOG is in another castle" />
7
4
 
8
- ## 0.4.0 \(2021-10-23\)
9
- ### Added
10
- * Add `NerdDice::ConvenienceMethods` method_missing mixin module that allows for dynamic invocation of patterns in the method name that get converted into calls to `NerdDice.roll_dice` or `NerdDice.total_dice` along with allowing the advantage/disadvantage mechanic or bonuses to be parsed from the method name. Full documentation of the module can be found in the [Convenience Methods Mixin](README.md#convenience-methods-mixin) section of the README.
11
- * Add exensive specs to support the ConvenienceMethods module
12
- ### Changed
13
- * Replace `Benchmark.bmbm` with `Benchmark.bm` in the nerd_dice_benchmark
14
- * Add convenience_methods to nerd_dice_benchmark
15
- * Extend `NerdDice::ConvenienceMethods` into top-level module as class methods
16
- ### Fixed
17
- * Fix typos and horizontal scrolling in README
18
- * Fix CodeClimate Code Smell on harvest_totals
5
+ ## Legacy Branch: See master
6
+ This is a legacy maintenance branch.
19
7
 
20
- ## 0.3.0 \(2021-09-11\)
21
- ### Added
22
- * Add new options to `NerdDice::Configuration`
23
- - `ability_score_number_of_sides`
24
- - `ability_score_dice_rolled`
25
- - `ability_score_dice_kept`
26
- * Add `NerdDice.harvest_totals` method that takes in a collection and returns the results of calling `total` on each element
27
- * Add `NerdDice.roll_ability_scores` convenience method that returns an array of `DiceSet` objects based on options and/or configuration
28
- * Add `NerdDice.total_ability_scores` convenience method that returns an array of integers based on options and/or configuration
29
- * Add `NerdDice::Die` class that represents a single die object and mixes in the `Comparable` module
30
- * Add `NerdDice::DiceSet` class that represents a collection of `Die` objects and mixes in the `Enumerable` module
31
- * Add `NerdDice::SetsRandomizationTechnique` mixin module and include in the `DiceSet` and `Die` classes
32
- * Add `die_background_color` and `die_foreground_color` to `Configuration` class with defaults defined as constants
33
- * Add `NerdDice.roll_dice` method that behaves in a similar fashion to `total_dice` but returns a `DiceSet` object instead of an `Integer` and has additional optional arguments relating to the non-numeric attributes of the dice
34
- * Add `coveralls_reborn` to RSpec and GitHub actions
35
- * Add build badge to README
36
- * Add Code Climate maintainability integration and badge to README
37
- * Add `nerd_dice_benchmark` script to bin directory
38
- * Add GitHub Action CI build
39
- - Run RSpec test suite, fail if specs fail, report coverage via Coveralls
40
- - Run RuboCop and fail if violations
41
- - Run benchmark suite and fail if outside of allowed ratios
42
- ### Changed
43
- * Update RuboCop version and configuration
44
- * Break up the NerdDice source code file into several smaller files that are included by the module
45
- * Enforce that `NerdDice.configuration.ability_score_array_size` must be a positive duck-type integer
46
- ### Fixed
47
-
48
- ## 0.2.0 \(2021-01-28\)
49
- ### Added
50
- * Add ability to configure with `NerdDice.configure` block or `NerdDice.configuration`
51
- - Configure `randomization_technique` as `:random_rand`, `:securerandom`, `:random_object`, or `randomized`
52
- - Configure `refresh_seed_interval` to allow a periodic refresh of the seed
53
- * Add `randomization_technique` option to `NerdDice.total_dice` method keyword arguments
54
- * Add a lower-level `execute_die_roll` method that allows you to roll a single die with a generator specified
55
- * Add ability to manually refresh or specify seed with `:refresh_seed!` method
56
- ### Changed
57
- * Change `opts = {}` final argument to use keyword args `**opts` in the `NerdDice.total_dice` method. Now the method can be called as follows:
58
- ```ruby
59
- # old
60
- NerdDice.total_dice(20, 1, {bonus: 5})
61
- NerdDice.total_dice(6, 3, {bonus: 1})
62
-
63
- # new
64
- NerdDice.total_dice(20, bonus: 5)
65
- NerdDice.total_dice(6, 3, bonus: 1)
66
- ```
67
- * Call `:to_i` on bonus instead of using `:is_a?` and raise ArgumentError in the `NerdDice.total_dice` method if it doesn't respond to `:to_i`
68
- * Added `securerandom` as an explicit dependency due to Ruby 3.x change to bundled gem
69
- * `total_dice` no longer calls unqualified `.rand` which improves performance on all generators except for `:securerandom`
70
- ### Fixed
71
-
72
- ## 0.1.1 \(2020-12-12\)
73
- ### Added
74
- ### Changed
75
- ### Fixed
76
- * Fix broken link to CHANGELOG in gemspec
77
- * Fix rubocop offenses from 0.1.0 and refactor specs
78
-
79
- ## 0.1.0 \(2020-12-07\)
80
-
81
- ### Added
82
- * Add NerdDice.total_dice class method with the ability to roll multiple polyhedral dice and add a bonus
8
+ The [authoritative version of the CHANGELOG](https://github.com/statelesscode/nerd_dice/blob/master/CHANGELOG.md) is found on the master branch. All other release and maintenance branches are updated to point to master after being created.
data/Gemfile CHANGED
@@ -6,4 +6,4 @@ source "https://rubygems.org"
6
6
  gemspec
7
7
 
8
8
  gem "rake", "~> 13.0"
9
- gem "rspec", "~> 3.10"
9
+ gem "rspec", "~> 3.12"
data/Gemfile.lock CHANGED
@@ -1,87 +1,92 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nerd_dice (0.4.0)
5
- securerandom (~> 0.1, >= 0.1.1)
4
+ nerd_dice (0.4.1)
5
+ securerandom (~> 0.2, >= 0.2.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
10
  ast (2.4.2)
11
- coveralls_reborn (0.23.0)
12
- simplecov (>= 0.18.1, < 0.22.0)
13
- term-ansicolor (~> 1.6)
14
- thor (>= 0.20.3, < 2.0)
15
- tins (~> 1.16)
16
- diff-lcs (1.4.4)
11
+ coveralls_reborn (0.27.0)
12
+ simplecov (~> 0.22.0)
13
+ term-ansicolor (~> 1.7)
14
+ thor (~> 1.2)
15
+ tins (~> 1.32)
16
+ diff-lcs (1.5.0)
17
17
  docile (1.4.0)
18
- parallel (1.21.0)
19
- parser (3.0.2.0)
18
+ json (2.6.3)
19
+ parallel (1.22.1)
20
+ parser (3.2.1.0)
20
21
  ast (~> 2.4.1)
21
- rainbow (3.0.0)
22
+ rainbow (3.1.1)
22
23
  rake (13.0.6)
23
- regexp_parser (2.1.1)
24
+ regexp_parser (2.7.0)
24
25
  rexml (3.2.5)
25
- rspec (3.10.0)
26
- rspec-core (~> 3.10.0)
27
- rspec-expectations (~> 3.10.0)
28
- rspec-mocks (~> 3.10.0)
29
- rspec-core (3.10.1)
30
- rspec-support (~> 3.10.0)
31
- rspec-expectations (3.10.1)
26
+ rspec (3.12.0)
27
+ rspec-core (~> 3.12.0)
28
+ rspec-expectations (~> 3.12.0)
29
+ rspec-mocks (~> 3.12.0)
30
+ rspec-core (3.12.1)
31
+ rspec-support (~> 3.12.0)
32
+ rspec-expectations (3.12.2)
32
33
  diff-lcs (>= 1.2.0, < 2.0)
33
- rspec-support (~> 3.10.0)
34
- rspec-mocks (3.10.2)
34
+ rspec-support (~> 3.12.0)
35
+ rspec-mocks (3.12.3)
35
36
  diff-lcs (>= 1.2.0, < 2.0)
36
- rspec-support (~> 3.10.0)
37
- rspec-support (3.10.2)
38
- rubocop (1.22.2)
37
+ rspec-support (~> 3.12.0)
38
+ rspec-support (3.12.0)
39
+ rubocop (1.46.0)
40
+ json (~> 2.3)
39
41
  parallel (~> 1.10)
40
- parser (>= 3.0.0.0)
42
+ parser (>= 3.2.0.0)
41
43
  rainbow (>= 2.2.2, < 4.0)
42
44
  regexp_parser (>= 1.8, < 3.0)
43
- rexml
44
- rubocop-ast (>= 1.12.0, < 2.0)
45
+ rexml (>= 3.2.5, < 4.0)
46
+ rubocop-ast (>= 1.26.0, < 2.0)
45
47
  ruby-progressbar (~> 1.7)
46
- unicode-display_width (>= 1.4.0, < 3.0)
47
- rubocop-ast (1.12.0)
48
- parser (>= 3.0.1.1)
49
- rubocop-performance (1.11.5)
48
+ unicode-display_width (>= 2.4.0, < 3.0)
49
+ rubocop-ast (1.26.0)
50
+ parser (>= 3.2.1.0)
51
+ rubocop-capybara (2.17.1)
52
+ rubocop (~> 1.41)
53
+ rubocop-performance (1.16.0)
50
54
  rubocop (>= 1.7.0, < 2.0)
51
55
  rubocop-ast (>= 0.4.0)
52
56
  rubocop-rake (0.6.0)
53
57
  rubocop (~> 1.0)
54
- rubocop-rspec (2.5.0)
55
- rubocop (~> 1.19)
58
+ rubocop-rspec (2.18.1)
59
+ rubocop (~> 1.33)
60
+ rubocop-capybara (~> 2.17)
56
61
  ruby-progressbar (1.11.0)
57
- securerandom (0.1.1)
58
- simplecov (0.21.2)
62
+ securerandom (0.2.2)
63
+ simplecov (0.22.0)
59
64
  docile (~> 1.1)
60
65
  simplecov-html (~> 0.11)
61
66
  simplecov_json_formatter (~> 0.1)
62
67
  simplecov-html (0.12.3)
63
68
  simplecov-lcov (0.8.0)
64
- simplecov_json_formatter (0.1.3)
69
+ simplecov_json_formatter (0.1.4)
65
70
  sync (0.5.0)
66
71
  term-ansicolor (1.7.1)
67
72
  tins (~> 1.0)
68
- thor (1.1.0)
69
- tins (1.29.1)
73
+ thor (1.2.1)
74
+ tins (1.32.1)
70
75
  sync
71
- unicode-display_width (2.1.0)
76
+ unicode-display_width (2.4.2)
72
77
 
73
78
  PLATFORMS
74
79
  ruby
75
80
 
76
81
  DEPENDENCIES
77
- coveralls_reborn (~> 0.23.0)
82
+ coveralls_reborn (~> 0.27.0)
78
83
  nerd_dice!
79
84
  rake (~> 13.0)
80
- rspec (~> 3.10)
81
- rubocop (~> 1.22, >= 1.22.2)
82
- rubocop-performance (~> 1.11, >= 1.11.5)
85
+ rspec (~> 3.12)
86
+ rubocop (~> 1.46, >= 1.46.0)
87
+ rubocop-performance (~> 1.16, >= 1.16.0)
83
88
  rubocop-rake (~> 0.6, >= 0.6.0)
84
- rubocop-rspec (~> 2.5, >= 2.5.0)
89
+ rubocop-rspec (~> 2.18, >= 2.18.1)
85
90
  simplecov-lcov (~> 0.8.0)
86
91
 
87
92
  BUNDLED WITH
data/README.md CHANGED
@@ -406,8 +406,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
406
406
 
407
407
  ## Contributing
408
408
 
409
- Bug reports and pull requests are welcome on GitHub at https://github.com/statelesscode/nerd_dice/issues. We welcome and encourage your participation in this open-source project. We welcome those of all backgrounds and abilities, but we refuse to adopt the Contributor Covenant for reasons outlined in [BURN_THE_CONTRIBUTOR_COVENANT_WITH_FIRE.md](https://github.com/statelesscode/nerd_dice/blob/master/BURN_THE_CONTRIBUTOR_COVENANT_WITH_FIRE.md)
410
-
409
+ Bug reports and pull requests are welcome on GitHub at https://github.com/statelesscode/nerd_dice/issues. We welcome and encourage your participation in this open-source project. We welcome those of all backgrounds and abilities, but we refuse to adopt the Contributor Covenant for reasons outlined in [BURN_THE_CONTRIBUTOR_COVENANT_WITH_FIRE.md](BURN_THE_CONTRIBUTOR_COVENANT_WITH_FIRE.md)
411
410
 
412
411
  ## Unlicense, License, and Copyright
413
412
 
@@ -7,7 +7,7 @@ version = ARGV[0]
7
7
  built_gem_path = "pkg/nerd_dice-#{version}.gem"
8
8
  checksum = Digest::SHA512.new.hexdigest(File.read(built_gem_path))
9
9
  checksum_path = "checksum/nerd_dice-#{version}.gem.sha512"
10
- File.open(checksum_path, "w") { |f| f.write(checksum) }
10
+ File.write(checksum_path, checksum)
11
11
  sha256 = Digest::SHA256.new.hexdigest(File.read(built_gem_path))
12
12
  checksum_256_path = "checksum/nerd_dice-#{version}.gem.sha256"
13
- File.open(checksum_256_path, "w") { |f| f.write(sha256) }
13
+ File.write(checksum_256_path, sha256)
@@ -1,26 +1,27 @@
1
1
  -----BEGIN CERTIFICATE-----
2
- MIIETTCCArWgAwIBAgIBATANBgkqhkiG9w0BAQsFADAoMSYwJAYDVQQDDB1zdGF0
3
- ZWxlc3Njb2RlL0RDPWdtYWlsL0RDPWNvbTAeFw0yMDEyMDYyMzQ1NTZaFw0yMTEy
4
- MDYyMzQ1NTZaMCgxJjAkBgNVBAMMHXN0YXRlbGVzc2NvZGUvREM9Z21haWwvREM9
5
- Y29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAyHIMJi0o3bwBZsx5
6
- TQ35XByFsdDRsro3T+0NY7EAILtOiU04o9C2NPOp/RQE7BXQgMjGebwp6bT6QvzN
7
- 6noV4jPL7Fi5pWw08QygG7f+73YUBb+8d8o+3xGrC+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dDgQWBBRP42hSa0JV
16
+ QGDSobiGTYyfM570hjAiBgNVHREEGzAZgRdzdGF0ZWxlc3Njb2RlQGdtYWlsLmNv
17
+ bTAiBgNVHRIEGzAZgRdzdGF0ZWxlc3Njb2RlQGdtYWlsLmNvbTANBgkqhkiG9w0B
18
+ AQsFAAOCAYEANtaR6OV7p1IJOsvVgGQzVg88NIOeXrfOaEDUPb6eg4JMOSL0Cvvl
19
+ 2F7lB/ykbQcO4Oe7NucuavC7ClyG3c/V5eQ5TtPNWkMbVN9ESVR8wk5SjhiI8L35
20
+ MBxJ6YU27eyDmazQJ7eCYcRJkuyWt3KcqgsEh7JyNnKcJ/3rgf1QW0IyJiGsXM1I
21
+ SssQ/t7Ia2tVMrVMsvs834v9FRpVbO3dHdCO4t7zQBIADVcj4NqCDV10D6aji/Aa
22
+ 35YJHwlkhuZH6AYC45QHt9dW0/OLmbFwoJqW7syrso2PParyMr4YcJwucXViRiL7
23
+ l5aVpYdz/RTqdB92Mmud5Hj5zkuEE4CHBh8L8AJC5kZu/YUXXDtuECSMVhg5O84h
24
+ QsdcuygyVASmw2aliMAFXfIBDYelduG0XwjdOREN3q4SDTKP+pfBxx6OdD1RfsYF
25
+ /9HhtVbKLq34iQftF4oIH66bYDEyG5y4CLKQ8Nq0WDWq50OcaP9KpDiS21BC43SW
26
+ t+NX7PDOWx4k
26
27
  -----END CERTIFICATE-----
@@ -0,0 +1 @@
1
+ a74239be73e7c9926d6aec4afd8ef2e5e516f536fcf0d66d7471e9f374644df5
@@ -0,0 +1 @@
1
+ c43b3cf00e6ca319f7a522d9a84c71c793b645a97130544ea1f0dcb149863b9ba9d25065dd813f496d2f6d53ad6c169b6129997ffe05c52504ae4df3af351880
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # rubocop:disable Metrics/ModuleLength
3
4
  module NerdDice
4
5
  # The NerdDice::ConvenienceMethods module overrides the default behavior of method_missing to
5
6
  # provide the ability to dynamically roll dice with methods names that match specific patterns.
@@ -244,9 +245,27 @@ module NerdDice
244
245
  specified_number = method_name.to_s.match(/(#{ADV}|#{DIS})\d+/o)
245
246
 
246
247
  # set the default to 1 if only one die or number minus 1 if multiple
247
- default = number_of_dice == 1 ? 1 : number_of_dice - 1
248
+ default = get_default_from_number_of_dice(number_of_dice)
248
249
 
249
250
  # return pattern match if one exists or number of dice -1 if no pattern match
251
+ get_pattern_match_or_default(specified_number, default)
252
+ end
253
+
254
+ # Determines what the default number_to_keep should be based on the number of dice being rolled
255
+ # using the advantage/disadvantage mechanics if you don't specify a number to keep
256
+ #
257
+ # If the number of dice being rolled is 1, you have to keep the one die. Otherwise
258
+ # you take the number of dice - 1. So if you do roll_4d6_with_advantage, you will get
259
+ # the highest three dice kept by default
260
+ def get_default_from_number_of_dice(number_of_dice)
261
+ number_of_dice == 1 ? 1 : number_of_dice - 1
262
+ end
263
+
264
+ # Takes the specified number match from the method name and determines
265
+ # whether it is only digits. If this matches and only contains digits
266
+ # the method returns the integer value of the specified digits. Otherwise
267
+ # it will return the default that was passed in the second parameter
268
+ def get_pattern_match_or_default(specified_number, default)
250
269
  specified_number ? specified_number.to_s.match(/\d+/).to_s.to_i : default
251
270
  end
252
271
 
@@ -277,3 +296,4 @@ module NerdDice
277
296
  end
278
297
  end
279
298
  end
299
+ # rubocop:enable Metrics/ModuleLength
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NerdDice
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
data/nerd_dice.gemspec CHANGED
@@ -28,6 +28,7 @@ Gem::Specification.new do |spec|
28
28
  spec.metadata["bug_tracker_uri"] = "https://github.com/statelesscode/nerd_dice/issues"
29
29
  spec.metadata["documentation_uri"] = "https://github.com/statelesscode/nerd_dice/README.md"
30
30
  spec.metadata["github_repo"] = "https://github.com/statelesscode/nerd_dice"
31
+ spec.metadata["rubygems_mfa_required"] = "true"
31
32
 
32
33
  # Specify which files should be added to the gem when it is released.
33
34
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -43,13 +44,13 @@ Gem::Specification.new do |spec|
43
44
  spec.signing_key = File.expand_path("~/.ssh/gem-private_key.pem") if $PROGRAM_NAME.end_with?("gem")
44
45
 
45
46
  # Dependencies
46
- spec.add_dependency "securerandom", "~> 0.1", ">= 0.1.1"
47
+ spec.add_dependency "securerandom", "~> 0.2", ">= 0.2.2"
47
48
 
48
49
  # Development Dependencies
49
- spec.add_development_dependency "coveralls_reborn", "~> 0.23.0"
50
- spec.add_development_dependency "rubocop", "~> 1.22", ">= 1.22.2"
51
- spec.add_development_dependency "rubocop-performance", "~> 1.11", ">= 1.11.5"
50
+ spec.add_development_dependency "coveralls_reborn", "~> 0.27.0"
51
+ spec.add_development_dependency "rubocop", "~> 1.46", ">= 1.46.0"
52
+ spec.add_development_dependency "rubocop-performance", "~> 1.16", ">= 1.16.0"
52
53
  spec.add_development_dependency "rubocop-rake", "~> 0.6", ">= 0.6.0"
53
- spec.add_development_dependency "rubocop-rspec", "~> 2.5", ">= 2.5.0"
54
+ spec.add_development_dependency "rubocop-rspec", "~> 2.18", ">= 2.18.1"
54
55
  spec.add_development_dependency "simplecov-lcov", "~> 0.8.0"
55
56
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nerd_dice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Duchemin
@@ -10,32 +10,33 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIETTCCArWgAwIBAgIBATANBgkqhkiG9w0BAQsFADAoMSYwJAYDVQQDDB1zdGF0
14
- ZWxlc3Njb2RlL0RDPWdtYWlsL0RDPWNvbTAeFw0yMDEyMDYyMzQ1NTZaFw0yMTEy
15
- MDYyMzQ1NTZaMCgxJjAkBg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xix7gW1wBbEp7eWSQf1k3k9XEh32SRsPq
24
+ NJObRfhkzoa9p1tPkVP3nasDTK5gtisolwhb7Vimeup54yKfT/THv2iNEnGTvK1P
25
+ sV4vC8nch88lBI1mIecmSh/mwED4Mb1dNtcyuB/+XnSI8vIzXJKAAKaT0eMCAwEA
26
+ AaOBgTB/MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBRP42hSa0JV
27
+ QGDSobiGTYyfM570hjAiBgNVHREEGzAZgRdzdGF0ZWxlc3Njb2RlQGdtYWlsLmNv
28
+ bTAiBgNVHRIEGzAZgRdzdGF0ZWxlc3Njb2RlQGdtYWlsLmNvbTANBgkqhkiG9w0B
29
+ AQsFAAOCAYEANtaR6OV7p1IJOsvVgGQzVg88NIOeXrfOaEDUPb6eg4JMOSL0Cvvl
30
+ 2F7lB/ykbQcO4Oe7NucuavC7ClyG3c/V5eQ5TtPNWkMbVN9ESVR8wk5SjhiI8L35
31
+ MBxJ6YU27eyDmazQJ7eCYcRJkuyWt3KcqgsEh7JyNnKcJ/3rgf1QW0IyJiGsXM1I
32
+ SssQ/t7Ia2tVMrVMsvs834v9FRpVbO3dHdCO4t7zQBIADVcj4NqCDV10D6aji/Aa
33
+ 35YJHwlkhuZH6AYC45QHt9dW0/OLmbFwoJqW7syrso2PParyMr4YcJwucXViRiL7
34
+ l5aVpYdz/RTqdB92Mmud5Hj5zkuEE4CHBh8L8AJC5kZu/YUXXDtuECSMVhg5O84h
35
+ QsdcuygyVASmw2aliMAFXfIBDYelduG0XwjdOREN3q4SDTKP+pfBxx6OdD1RfsYF
36
+ /9HhtVbKLq34iQftF4oIH66bYDEyG5y4CLKQ8Nq0WDWq50OcaP9KpDiS21BC43SW
37
+ t+NX7PDOWx4k
37
38
  -----END CERTIFICATE-----
38
- date: 2021-10-23 00:00:00.000000000 Z
39
+ date: 2023-02-24 00:00:00.000000000 Z
39
40
  dependencies:
40
41
  - !ruby/object:Gem::Dependency
41
42
  name: securerandom
@@ -43,74 +44,74 @@ dependencies:
43
44
  requirements:
44
45
  - - "~>"
45
46
  - !ruby/object:Gem::Version
46
- version: '0.1'
47
+ version: '0.2'
47
48
  - - ">="
48
49
  - !ruby/object:Gem::Version
49
- version: 0.1.1
50
+ version: 0.2.2
50
51
  type: :runtime
51
52
  prerelease: false
52
53
  version_requirements: !ruby/object:Gem::Requirement
53
54
  requirements:
54
55
  - - "~>"
55
56
  - !ruby/object:Gem::Version
56
- version: '0.1'
57
+ version: '0.2'
57
58
  - - ">="
58
59
  - !ruby/object:Gem::Version
59
- version: 0.1.1
60
+ version: 0.2.2
60
61
  - !ruby/object:Gem::Dependency
61
62
  name: coveralls_reborn
62
63
  requirement: !ruby/object:Gem::Requirement
63
64
  requirements:
64
65
  - - "~>"
65
66
  - !ruby/object:Gem::Version
66
- version: 0.23.0
67
+ version: 0.27.0
67
68
  type: :development
68
69
  prerelease: false
69
70
  version_requirements: !ruby/object:Gem::Requirement
70
71
  requirements:
71
72
  - - "~>"
72
73
  - !ruby/object:Gem::Version
73
- version: 0.23.0
74
+ version: 0.27.0
74
75
  - !ruby/object:Gem::Dependency
75
76
  name: rubocop
76
77
  requirement: !ruby/object:Gem::Requirement
77
78
  requirements:
78
79
  - - "~>"
79
80
  - !ruby/object:Gem::Version
80
- version: '1.22'
81
+ version: '1.46'
81
82
  - - ">="
82
83
  - !ruby/object:Gem::Version
83
- version: 1.22.2
84
+ version: 1.46.0
84
85
  type: :development
85
86
  prerelease: false
86
87
  version_requirements: !ruby/object:Gem::Requirement
87
88
  requirements:
88
89
  - - "~>"
89
90
  - !ruby/object:Gem::Version
90
- version: '1.22'
91
+ version: '1.46'
91
92
  - - ">="
92
93
  - !ruby/object:Gem::Version
93
- version: 1.22.2
94
+ version: 1.46.0
94
95
  - !ruby/object:Gem::Dependency
95
96
  name: rubocop-performance
96
97
  requirement: !ruby/object:Gem::Requirement
97
98
  requirements:
98
99
  - - "~>"
99
100
  - !ruby/object:Gem::Version
100
- version: '1.11'
101
+ version: '1.16'
101
102
  - - ">="
102
103
  - !ruby/object:Gem::Version
103
- version: 1.11.5
104
+ version: 1.16.0
104
105
  type: :development
105
106
  prerelease: false
106
107
  version_requirements: !ruby/object:Gem::Requirement
107
108
  requirements:
108
109
  - - "~>"
109
110
  - !ruby/object:Gem::Version
110
- version: '1.11'
111
+ version: '1.16'
111
112
  - - ">="
112
113
  - !ruby/object:Gem::Version
113
- version: 1.11.5
114
+ version: 1.16.0
114
115
  - !ruby/object:Gem::Dependency
115
116
  name: rubocop-rake
116
117
  requirement: !ruby/object:Gem::Requirement
@@ -137,20 +138,20 @@ dependencies:
137
138
  requirements:
138
139
  - - "~>"
139
140
  - !ruby/object:Gem::Version
140
- version: '2.5'
141
+ version: '2.18'
141
142
  - - ">="
142
143
  - !ruby/object:Gem::Version
143
- version: 2.5.0
144
+ version: 2.18.1
144
145
  type: :development
145
146
  prerelease: false
146
147
  version_requirements: !ruby/object:Gem::Requirement
147
148
  requirements:
148
149
  - - "~>"
149
150
  - !ruby/object:Gem::Version
150
- version: '2.5'
151
+ version: '2.18'
151
152
  - - ">="
152
153
  - !ruby/object:Gem::Version
153
- version: 2.5.0
154
+ version: 2.18.1
154
155
  - !ruby/object:Gem::Dependency
155
156
  name: simplecov-lcov
156
157
  requirement: !ruby/object:Gem::Requirement
@@ -206,6 +207,8 @@ files:
206
207
  - checksum/nerd_dice-0.2.0.gem.sha512
207
208
  - checksum/nerd_dice-0.3.0.gem.sha256
208
209
  - checksum/nerd_dice-0.3.0.gem.sha512
210
+ - checksum/nerd_dice-0.4.0.gem.sha256
211
+ - checksum/nerd_dice-0.4.0.gem.sha512
209
212
  - lib/nerd_dice.rb
210
213
  - lib/nerd_dice/class_methods.rb
211
214
  - lib/nerd_dice/class_methods/configure.rb
@@ -235,6 +238,7 @@ metadata:
235
238
  bug_tracker_uri: https://github.com/statelesscode/nerd_dice/issues
236
239
  documentation_uri: https://github.com/statelesscode/nerd_dice/README.md
237
240
  github_repo: https://github.com/statelesscode/nerd_dice
241
+ rubygems_mfa_required: 'true'
238
242
  post_install_message:
239
243
  rdoc_options: []
240
244
  require_paths:
@@ -250,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
250
254
  - !ruby/object:Gem::Version
251
255
  version: '0'
252
256
  requirements: []
253
- rubygems_version: 3.2.22
257
+ rubygems_version: 3.4.7
254
258
  signing_key:
255
259
  specification_version: 4
256
260
  summary: A Ruby Gem for rolling polyhedral dice.
metadata.gz.sig CHANGED
Binary file