dice_roller 0.0.1 → 0.0.2

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.
Files changed (2) hide show
  1. data/lib/dice_roller/cli.rb +5 -5
  2. metadata +2 -2
@@ -7,19 +7,19 @@ class DiceRoller::Cli
7
7
 
8
8
  def initialize(args)
9
9
  # default the number of each type of dice to zero
10
- four = six = eight = ten = twelve = twenty = percentile = 0
10
+ @four = @six = @eight = @ten = @twelve = @twenty = @percentile = 0
11
11
 
12
12
  # default result set to sum
13
- type = :sum
13
+ @type = :sum
14
14
 
15
15
  # default minimum value for success to 8
16
- minimum = 8
16
+ @minimum = 8
17
17
 
18
18
  # default reroll value to 10
19
- reroll = 10
19
+ @reroll = 10
20
20
 
21
21
  # default to ones not subtracting successes
22
- subtract = false
22
+ @subtract = false
23
23
 
24
24
  options = OptionParser.new do |opts|
25
25
  opts.banner = "Usage: dice-roller"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Alex Chvatal