rollr 0.0.6 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.ruby-version +1 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.md +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +141 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/rollr/die.rb +28 -0
- data/lib/rollr/roll_result.rb +22 -0
- data/lib/rollr/version.rb +3 -0
- data/lib/rollr.rb +5 -90
- data/rollr.gemspec +25 -0
- metadata +92 -20
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 107c19f3d3fb4c489bf0cd139aa3b7220407a929
|
4
|
+
data.tar.gz: 4c39c86ddcc4c4741d6f69754ca8a812bd2f5d20
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d233a5b67b864749d0a5bdf4a7ad2b39c23e7d2a5306310f5250cfc15a88e5a4886df36b0d634adea26d19477dddbc0c03ee4384486b58c6336ce7d695b468a8
|
7
|
+
data.tar.gz: 927817bb49c9b13c649b08dc65eef1ec046999051155831698a3388e6593363f325178a837d335121b859a49a5334d89d2b12b0e6548da60094d9ae375e1dbe0
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.3.0
|
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at alxjrvs@gmail.com. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/LICENSE.md
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
Copyright (c) 2012 Alex Jarvis
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
|
+
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
6
|
+
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Alex Jarvis
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,141 @@
|
|
1
|
+
# Rollr
|
2
|
+
|
3
|
+
Rollr is a gem that simulates rolling dice.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'rollr'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install rollr
|
20
|
+
|
21
|
+
## How to Get Rolling
|
22
|
+
|
23
|
+
```
|
24
|
+
$ gem install rollr
|
25
|
+
$ irb
|
26
|
+
> require 'rollr'
|
27
|
+
#=> true
|
28
|
+
```
|
29
|
+
|
30
|
+
### The `Die` Class
|
31
|
+
|
32
|
+
`Rollr` lets you make `Die`, and these `die` can have any number of sides.
|
33
|
+
|
34
|
+
```
|
35
|
+
> d6 = Rollr::Die.new(6)
|
36
|
+
```
|
37
|
+
|
38
|
+
When you roll a `Die`, you get a `RollResult`.
|
39
|
+
|
40
|
+
```
|
41
|
+
> d6.roll
|
42
|
+
#=> <Rollr::RollResult #hash total: 3, rolls: [3], number_of_dice: 1, die_sides: 6>
|
43
|
+
> d6.roll
|
44
|
+
#=> <Rollr::RollResult #hash total: 6, rolls: [6], number_of_dice: 1, die_sides: 6>
|
45
|
+
```
|
46
|
+
|
47
|
+
You can roll multiple dice of the same kind by passing a number to the `roll` argument with the `number` keyword argument.
|
48
|
+
|
49
|
+
```
|
50
|
+
> d6.roll(number: 3)
|
51
|
+
#=> <Rollr::RollResult #hash total: 9, rolls: [3, 5, 1], number_of_dice: 3, die_sides: 6>
|
52
|
+
```
|
53
|
+
|
54
|
+
### `RollResult`s
|
55
|
+
```
|
56
|
+
> result = d6.roll(number: 3)
|
57
|
+
#=> <Rollr::RollResult #hash total: 14, rolls: [2, 6, 6], number_of_dice: 3, die_sides: 6>
|
58
|
+
```
|
59
|
+
|
60
|
+
The `RollResult` has few helpful things to report about your roll.
|
61
|
+
|
62
|
+
The `#total` method represents the sum total of the dice that were rolled:
|
63
|
+
|
64
|
+
```
|
65
|
+
> result.total
|
66
|
+
#=> 14
|
67
|
+
```
|
68
|
+
|
69
|
+
The `#rolls` array, which reports the individual results of any dice rolled:
|
70
|
+
|
71
|
+
```
|
72
|
+
> result.rolls
|
73
|
+
#=> [2, 6, 6]
|
74
|
+
```
|
75
|
+
|
76
|
+
`#number_of_dice` tells you how many dice were rolled this time:
|
77
|
+
|
78
|
+
```
|
79
|
+
result.number_of_dice
|
80
|
+
#=> 3
|
81
|
+
```
|
82
|
+
|
83
|
+
`#die_sides` reports the number of sides on the dice rolled in this result:
|
84
|
+
|
85
|
+
```
|
86
|
+
result.die_sides
|
87
|
+
#=> 6
|
88
|
+
```
|
89
|
+
|
90
|
+
### Dice Constants
|
91
|
+
|
92
|
+
Rollr comes pre-packaged with several shortcuts for popular Die sizes:
|
93
|
+
|
94
|
+
```
|
95
|
+
#D20
|
96
|
+
> result = Rollr::D20.roll
|
97
|
+
#=> <Rollr::RollResult #hash total: 18, rolls: [18], number_of_dice: 1, die_sides: 20>
|
98
|
+
|
99
|
+
#D12
|
100
|
+
> result = Rollr::D12.roll
|
101
|
+
#=> <Rollr::RollResult #hash total: 6, rolls: [6], number_of_dice: 1, die_sides: 12>
|
102
|
+
|
103
|
+
#D10
|
104
|
+
> result = Rollr::D10.roll
|
105
|
+
#=> <Rollr::RollResult #hash total: 6, rolls: [6], number_of_dice: 1, die_sides: 12>
|
106
|
+
|
107
|
+
#D8
|
108
|
+
> result = Rollr::D8.roll
|
109
|
+
#=> <Rollr::RollResult #hash total: 6, rolls: [6], number_of_dice: 1, die_sides: 12>
|
110
|
+
|
111
|
+
#D6
|
112
|
+
> result = Rollr::D6.roll
|
113
|
+
#=> <Rollr::RollResult #hash total: 6, rolls: [6], number_of_dice: 1, die_sides: 12>
|
114
|
+
|
115
|
+
#D4
|
116
|
+
> result = Rollr::D4.roll
|
117
|
+
#=> <Rollr::RollResult #hash total: 6, rolls: [6], number_of_dice: 1, die_sides: 12>
|
118
|
+
|
119
|
+
#D3
|
120
|
+
> result = Rollr::D3.roll
|
121
|
+
#=> <Rollr::RollResult #hash total: 6, rolls: [6], number_of_dice: 1, die_sides: 12>
|
122
|
+
|
123
|
+
#D2
|
124
|
+
> result = Rollr::D2.roll
|
125
|
+
#=> <Rollr::RollResult #hash total: 6, rolls: [6], number_of_dice: 1, die_sides: 12>
|
126
|
+
```
|
127
|
+
|
128
|
+
## Development
|
129
|
+
|
130
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
131
|
+
|
132
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
133
|
+
|
134
|
+
## Contributing
|
135
|
+
|
136
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/alxjrvs/rollr. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
137
|
+
|
138
|
+
|
139
|
+
## License
|
140
|
+
|
141
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "rollr"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/lib/rollr/die.rb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'securerandom'
|
2
|
+
|
3
|
+
module Rollr
|
4
|
+
class Die
|
5
|
+
attr_accessor :sides, :rolls
|
6
|
+
|
7
|
+
def initialize(sides)
|
8
|
+
@sides = sides
|
9
|
+
end
|
10
|
+
|
11
|
+
def roll(number: 1)
|
12
|
+
Rollr::RollResult.new(
|
13
|
+
rolls: array_of_rolls(number),
|
14
|
+
sides: sides
|
15
|
+
)
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
|
20
|
+
def single_roll
|
21
|
+
SecureRandom.random_number(sides)
|
22
|
+
end
|
23
|
+
|
24
|
+
def array_of_rolls(number)
|
25
|
+
(1..number).map { single_roll }
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module Rollr
|
2
|
+
class RollResult
|
3
|
+
attr_accessor :rolls
|
4
|
+
|
5
|
+
def initialize(sides:, rolls:)
|
6
|
+
@sides = sides
|
7
|
+
@rolls = rolls
|
8
|
+
end
|
9
|
+
|
10
|
+
def die_sides
|
11
|
+
@sides
|
12
|
+
end
|
13
|
+
|
14
|
+
def total
|
15
|
+
@_total ||= rolls.inject(:+)
|
16
|
+
end
|
17
|
+
|
18
|
+
def number_of_dice
|
19
|
+
@_number_of_dice ||= rolls.count
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/lib/rollr.rb
CHANGED
@@ -1,93 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
# which can track the rolls made to the die over time, as well as the individual
|
5
|
-
# results of rolls within a pool of rolls (so, for instance, if you rolled 20
|
6
|
-
# 6 six sided die, you could see the result of each individual roll of each
|
7
|
-
# die.
|
8
|
-
#
|
9
|
-
# @author Alex Jarvis
|
10
|
-
|
11
|
-
require 'rubygems'
|
1
|
+
require "rollr/version"
|
2
|
+
require "rollr/die"
|
3
|
+
require "rollr/roll_result"
|
12
4
|
|
13
5
|
module Rollr
|
14
6
|
|
15
|
-
|
16
|
-
# Represents a single instance of a die
|
17
|
-
#
|
18
|
-
class Die
|
19
|
-
|
20
|
-
|
21
|
-
# @attribute sides [Integer] The number of sides the die has
|
22
|
-
#
|
23
|
-
attr_accessor :sides, :rolls
|
24
|
-
|
25
|
-
# New instance of Die
|
26
|
-
#
|
27
|
-
# @param [Integer] sides
|
28
|
-
# @return [Object] Die object
|
29
|
-
#
|
30
|
-
def initialize(sides)
|
31
|
-
@sides = sides
|
32
|
-
@rolls = []
|
33
|
-
end #initialize
|
34
|
-
|
35
|
-
# Roll a new die. This creates a DiceRoll Object, and adds it to the array of rolls from this Die.
|
36
|
-
# Then, return the total of that Roll.
|
37
|
-
#
|
38
|
-
# @param [Integer] count
|
39
|
-
# @return [Integer] The result of the rolls, by way of a DiceRoll object.
|
40
|
-
#
|
41
|
-
def roll(count=1)
|
42
|
-
individual_rolls = (1..count).map { |d| rand(self.sides) + 1 }
|
43
|
-
@rolls << DiceRoll.new(individual_rolls, self.sides, count)
|
44
|
-
@rolls.last.total
|
45
|
-
end #roll
|
46
|
-
|
47
|
-
# Roll a new die. This creates a DiceRoll Object, and adds it to the array of rolls from this Die.
|
48
|
-
# Then, drop the lowest number of die rolls equal to the second argument
|
49
|
-
# Then, return the total of that Roll.
|
50
|
-
#
|
51
|
-
# @param [Integer] count
|
52
|
-
# @param [Integer] drop_die
|
53
|
-
# @return [Integer] The result of the rolls, by way of a DiceRoll object.
|
54
|
-
#
|
55
|
-
def roll_drop_lowest(count=1, drop_die = 0)
|
56
|
-
individual_rolls = (1..count).map { |d| rand(self.sides) + 1 }.sort.drop(drop_die)
|
57
|
-
@rolls << DiceRoll.new(individual_rolls, self.sides, count)
|
58
|
-
@rolls.last.total
|
59
|
-
end #roll_drop_lowest
|
60
|
-
end #Die
|
61
|
-
|
62
|
-
#DiceRoll is a class that holds information regarding a single instance of a rolled die.
|
63
|
-
#
|
64
|
-
class DiceRoll
|
65
|
-
|
66
|
-
# @attribute each_side [Array] the individual result of a single roll of a die.
|
67
|
-
# @attribute total [Integer] the combined total of the individual rolls
|
68
|
-
# @attribute dice_sides [Integer] the number of sides the rolled die had
|
69
|
-
# @attribute number_of_dice [Integer] the number of dice rolled.
|
70
|
-
#
|
71
|
-
attr_accessor :each_die, :total, :dice_sides, :number_of_dice
|
72
|
-
|
73
|
-
|
74
|
-
# New instance of DiceRoll
|
75
|
-
#
|
76
|
-
# @param [Array] individual
|
77
|
-
# @param [Integer] sides
|
78
|
-
# @param [Integer] number
|
79
|
-
# @return [Object] Die object
|
80
|
-
#
|
81
|
-
def initialize(individual, sides, number)
|
82
|
-
@each_die = individual
|
83
|
-
@dice_sides = sides
|
84
|
-
@number_of_dice = number
|
85
|
-
@total = individual.inject(0) { |total, d| total += d }
|
86
|
-
end #initialize
|
87
|
-
|
88
|
-
end #DiceRoll
|
89
|
-
#Die Constants
|
90
|
-
|
7
|
+
D2 = Die.new(2)
|
91
8
|
D3 = Die.new(3)
|
92
9
|
D4 = Die.new(4)
|
93
10
|
D6 = Die.new(6)
|
@@ -96,6 +13,4 @@ module Rollr
|
|
96
13
|
D12 = Die.new(12)
|
97
14
|
D20 = Die.new(20)
|
98
15
|
|
99
|
-
end
|
100
|
-
|
101
|
-
|
16
|
+
end
|
data/rollr.gemspec
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'rollr/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "rollr"
|
8
|
+
spec.version = Rollr::VERSION
|
9
|
+
spec.authors = ["Alex Jarvis"]
|
10
|
+
spec.email = ["alxjrvs@gmail.com"]
|
11
|
+
spec.summary = %q{Random Numbers, With Style.}
|
12
|
+
spec.description = %q{Rollr is a Gem that provides a more familiar interface for generating random numbers - Rolling Dice. Using Rollr, developers can generate psuedorandom numbers securely and succinctly.}
|
13
|
+
spec.homepage = "http://www.github.com/alxjrvs/rollr"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
+
spec.bindir = "exe"
|
18
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
22
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
23
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
24
|
+
spec.add_development_dependency "pry", "~> 0.10.3"
|
25
|
+
end
|
metadata
CHANGED
@@ -1,48 +1,120 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rollr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Alex Jarvis
|
9
8
|
autorequire:
|
10
|
-
bindir:
|
9
|
+
bindir: exe
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
13
|
-
dependencies:
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
-
|
11
|
+
date: 2016-03-29 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.11'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.11'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.10.3
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.10.3
|
69
|
+
description: Rollr is a Gem that provides a more familiar interface for generating
|
70
|
+
random numbers - Rolling Dice. Using Rollr, developers can generate psuedorandom
|
71
|
+
numbers securely and succinctly.
|
72
|
+
email:
|
73
|
+
- alxjrvs@gmail.com
|
74
|
+
executables: []
|
19
75
|
extensions: []
|
20
76
|
extra_rdoc_files: []
|
21
77
|
files:
|
22
|
-
-
|
78
|
+
- ".gitignore"
|
79
|
+
- ".rspec"
|
80
|
+
- ".ruby-version"
|
81
|
+
- ".travis.yml"
|
82
|
+
- CODE_OF_CONDUCT.md
|
83
|
+
- Gemfile
|
84
|
+
- LICENSE.md
|
85
|
+
- LICENSE.txt
|
86
|
+
- README.md
|
87
|
+
- Rakefile
|
88
|
+
- bin/console
|
23
89
|
- bin/rollr
|
24
|
-
|
25
|
-
|
90
|
+
- bin/setup
|
91
|
+
- lib/rollr.rb
|
92
|
+
- lib/rollr/die.rb
|
93
|
+
- lib/rollr/roll_result.rb
|
94
|
+
- lib/rollr/version.rb
|
95
|
+
- rollr.gemspec
|
96
|
+
homepage: http://www.github.com/alxjrvs/rollr
|
97
|
+
licenses:
|
98
|
+
- MIT
|
99
|
+
metadata: {}
|
26
100
|
post_install_message:
|
27
101
|
rdoc_options: []
|
28
102
|
require_paths:
|
29
103
|
- lib
|
30
104
|
required_ruby_version: !ruby/object:Gem::Requirement
|
31
|
-
none: false
|
32
105
|
requirements:
|
33
|
-
- -
|
106
|
+
- - ">="
|
34
107
|
- !ruby/object:Gem::Version
|
35
108
|
version: '0'
|
36
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
37
|
-
none: false
|
38
110
|
requirements:
|
39
|
-
- -
|
111
|
+
- - ">="
|
40
112
|
- !ruby/object:Gem::Version
|
41
113
|
version: '0'
|
42
114
|
requirements: []
|
43
115
|
rubyforge_project:
|
44
|
-
rubygems_version:
|
116
|
+
rubygems_version: 2.5.1
|
45
117
|
signing_key:
|
46
|
-
specification_version:
|
47
|
-
summary:
|
118
|
+
specification_version: 4
|
119
|
+
summary: Random Numbers, With Style.
|
48
120
|
test_files: []
|