rollr 1.0.3 → 1.0.4

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
  SHA1:
3
- metadata.gz: abb626fa239a16084db24fe697c926e487125b85
4
- data.tar.gz: f073bf80d411236ce05498f09ce15f16217b5715
3
+ metadata.gz: 305739b5f3af52bd0527a124d52ac47c37c2ea36
4
+ data.tar.gz: b13519a9d8c7a0d8936ad832b720f7a6a853b29f
5
5
  SHA512:
6
- metadata.gz: 9c0f428e1589a7d00a8d0d2ce82b433101f024a2ef322990a4492b74004e37b6c62fcf14743f5396804af5abb0228b6de92b836e06c765624c308d7604333225
7
- data.tar.gz: 774957eb15c28d9fd4257b888b32f01efa012390e907078aa27783065575fbf162dc9df0636034be5aa471c3439498081c371d484e6fe410fc13dd25128472e2
6
+ metadata.gz: 4757a06656f0f6301b0ff959f3393054a7aa828bc1fdef6a3e5539aa89d4100a25f11e85ab6e943276f8053159913f8fc4f71302ffb6082306ca9ff8f816c345
7
+ data.tar.gz: 6477df1ec94af2acf60c5f7202c0a8b7b53fe185f63b07570290d09bfe7b7d97d1bddb6fa753bbbf11726957347353e5839bbef5761aafb7cbb2639bd6caebd3
data/README.md CHANGED
@@ -44,7 +44,7 @@ When you roll a `Die`, you get a `RollResult`.
44
44
  #=> <Rollr::RollResult #hash total: 6, rolls: [6], number_of_dice: 1, die_sides: 6>
45
45
  ```
46
46
 
47
- You can roll multiple dice of the same kind by passing a number to the `roll` argument with the `number` keyword argument.
47
+ You can roll multiple dice of the same kind by passing a number to the `roll` argument.
48
48
 
49
49
  ```
50
50
  > d6.roll(number: 3)
data/lib/rollr/die.rb CHANGED
@@ -8,9 +8,9 @@ module Rollr
8
8
  @sides = sides
9
9
  end
10
10
 
11
- def roll(number: 1)
11
+ def roll(num = 1)
12
12
  Rollr::RollResult.new(
13
- rolls: rolls(number),
13
+ rolls: rolls(num),
14
14
  sides: sides
15
15
  )
16
16
  end
data/lib/rollr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rollr
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rollr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Jarvis