dicebag 3.3.1 → 3.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/dicebag +1 -1
- data/lib/dicebag/parser.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f932f637949ae902d7a548f3f840bbac83eb889986468e02c149b23800e00b04
|
4
|
+
data.tar.gz: 21e477659ac97f48eba24053a5a2e07852dbac9f2220a84474d04b4624e96395
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7ee0173f907cac2f49d5f7e04750e0ea29b88d1a85ad21adbfa57217c1ab85fd731693e085b8265cdae78b18c1deb96776841ed66f98e90baaef4efce91a7ea
|
7
|
+
data.tar.gz: a7a1e68d305dcf024506262e63d1f08f12e9042280dadd80f711e6e25b2ec2edb685d6b04f103b464fd5bd5db7a242384d753c2d444b8efb615f6834da3bd53b
|
data/bin/dicebag
CHANGED
data/lib/dicebag/parser.rb
CHANGED
@@ -6,11 +6,11 @@ module DiceBag
|
|
6
6
|
# Base rules.
|
7
7
|
rule(:space?) { str(' ').repeat }
|
8
8
|
|
9
|
-
# Numbers are limited to
|
9
|
+
# Numbers are limited to 4 digit places.
|
10
10
|
#
|
11
11
|
# Why? To prevent abuse from people rolling: 999999999D999999999 and
|
12
12
|
# 'DOS'-ing the app.
|
13
|
-
rule(:number) { match('[0-9]').repeat(1,
|
13
|
+
rule(:number) { match('[0-9]').repeat(1, 4) }
|
14
14
|
rule(:number?) { number.maybe }
|
15
15
|
|
16
16
|
# Label rule
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dicebag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Randy "syntruth" Carnahan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
|
-
rubygems_version: 3.
|
79
|
+
rubygems_version: 3.3.26
|
80
80
|
signing_key:
|
81
81
|
specification_version: 4
|
82
82
|
summary: 'Dice Bag: Ruby Dice Rolling Library'
|