droll 1.0 → 1.0.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.
- data/README.md +4 -3
- data/bin/droll +3 -2
- data/bin/drollbot +3 -3
- data/lib/droll.rb +1 -1
- metadata +5 -4
data/README.md
CHANGED
@@ -80,9 +80,10 @@ file.
|
|
80
80
|
### Ruby 1.8
|
81
81
|
|
82
82
|
Droll assumes Ruby 1.9.x, and some die code validation (for zero-based die
|
83
|
-
codes, e.g. 1d05) does not work properly. Normally,
|
84
|
-
system using a version of Ruby older than 1.9, but
|
85
|
-
you wish by using the `-f` option with the `gem
|
83
|
+
codes, e.g. 1d05) does not work properly with older Ruby versions. Normally,
|
84
|
+
it will not install on a system using a version of Ruby older than 1.9, but
|
85
|
+
this can be overridden if you wish by using the `-f` option with the `gem
|
86
|
+
install` command:
|
86
87
|
|
87
88
|
$ gem install -f droll
|
88
89
|
|
data/bin/droll
CHANGED
@@ -41,8 +41,9 @@ SYNTAX
|
|
41
41
|
add it to the total.
|
42
42
|
|
43
43
|
k Only use the highest die values, up to a number of dice
|
44
|
-
equal to a
|
45
|
-
|
44
|
+
equal to a threshold value. When the threshold is not
|
45
|
+
specified, the default is 1. When the "k" is capitalized "K",
|
46
|
+
use the lowest die values instead.
|
46
47
|
|
47
48
|
n Count the number of dice that yield values equal to or
|
48
49
|
higher than a threshhold value. When the "n" is capitalized
|
data/bin/drollbot
CHANGED
@@ -99,7 +99,7 @@ OptionParser.new do |opts|
|
|
99
99
|
opts.banner = @usage
|
100
100
|
|
101
101
|
opts.on('--file=FILE', '-f=FILE', help_text[:file]) do |val|
|
102
|
-
|
102
|
+
filename = val.chomp
|
103
103
|
end
|
104
104
|
|
105
105
|
opts.on('--config', '-c', help_text[:config]) do
|
@@ -138,7 +138,7 @@ if ARGV[0] == 'start'
|
|
138
138
|
end
|
139
139
|
end
|
140
140
|
|
141
|
-
on :channel, /^([0-9]*[
|
141
|
+
on :channel, /^([0-9]*[dekKnNx][0-9]+(\.\d+)?[+-]?[0-9]*)\s*(.*)/ do
|
142
142
|
droll = Droll.new match[0]
|
143
143
|
result = droll.roll
|
144
144
|
output = "<#{nick}> rolls " + result
|
@@ -151,7 +151,7 @@ if ARGV[0] == 'start'
|
|
151
151
|
msg channel, output
|
152
152
|
end
|
153
153
|
|
154
|
-
on :private, /^([0-9]*[
|
154
|
+
on :private, /^([0-9]*[dekKnNx][0-9]+(\.\d+)?[+-]?[0-9]*)\s*(.*)/ do
|
155
155
|
droll = Droll.new match[0]
|
156
156
|
result = droll.roll
|
157
157
|
output = 'result of ' + result
|
data/lib/droll.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: droll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: isaac
|
16
|
-
requirement: &
|
16
|
+
requirement: &6703640 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0.2'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *6703640
|
25
25
|
description: ! " Droll is a Ruby library providing dice roller functionality, with
|
26
26
|
a command\n line utility and an IRC bot as included user interfaces. It was
|
27
27
|
created\n with roleplaying gamers in mind, with a range of sophisticated capabilities\n
|
@@ -70,3 +70,4 @@ signing_key:
|
|
70
70
|
specification_version: 3
|
71
71
|
summary: Droll - Dice Roller Library
|
72
72
|
test_files: []
|
73
|
+
has_rdoc: true
|