dice_nom_shim 0.1.0 → 0.1.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.
- checksums.yaml +4 -4
- data/Cargo.lock +2 -2
- data/README.md +6 -4
- data/ext/dice_nom_shim/Cargo.toml +1 -1
- data/lib/dice_nom_shim/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eda4762fe4651253b3eb38c24f8dcc48f056c2de968d7508b91ed7a7b51d4bf1
|
4
|
+
data.tar.gz: 175f8d593c217bace5302a84ed7188038ceb6f1b8e681071650c74497efef9a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33df7ac7f31a27fb51d88d26e214d0b097318d782d92c1f183ccf8b5121562afbbfae749d31ac753139a87c287bf6a699654e57750d703ba42bf8dae8753be3b
|
7
|
+
data.tar.gz: 15bf625b5b91fc8729715dea36c013164de7317c1d281face8f745f188c6e4ad7a3ceb1f0f48dcdfc26b7648269e51c74217886291e8601bdb9c8abc8e02dd92
|
data/Cargo.lock
CHANGED
@@ -185,9 +185,9 @@ checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
|
|
185
185
|
|
186
186
|
[[package]]
|
187
187
|
name = "dice-nom"
|
188
|
-
version = "0.1.
|
188
|
+
version = "0.1.1"
|
189
189
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
190
|
-
checksum = "
|
190
|
+
checksum = "3fc38ea3cf5a5ebd5df2249291dc160b65482f1cca8ae588f30a8d3effcfc91a"
|
191
191
|
dependencies = [
|
192
192
|
"clap",
|
193
193
|
"nom 6.1.2",
|
data/README.md
CHANGED
@@ -4,22 +4,24 @@ This is a simple shim around the rust library (dice-nom)[https://github.com/palm
|
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
8
|
-
|
9
7
|
Install the gem and add to the application's Gemfile by executing:
|
10
8
|
|
11
9
|
```bash
|
12
|
-
bundle add
|
10
|
+
bundle add dice_nom_shim
|
13
11
|
```
|
14
12
|
|
15
13
|
If bundler is not being used to manage dependencies, install the gem by executing:
|
16
14
|
|
17
15
|
```bash
|
18
|
-
gem install
|
16
|
+
gem install dice_nom_shim
|
19
17
|
```
|
20
18
|
|
21
19
|
## Usage
|
22
20
|
|
21
|
+
```
|
22
|
+
hsh = JSON.parse(DiceNomShim.roll("3d6"))
|
23
|
+
puts(hsh.dig("lhs", "value")) # => 15
|
24
|
+
```
|
23
25
|
|
24
26
|
|
25
27
|
## Development
|