dice_nom_shim 0.1.0 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9073976885e7bdb918cad785c50a94c17b7a0c9c86e9550626976f2e0e7b28b4
4
- data.tar.gz: b902054aa172939f467e91c63eeebdf630237a8ac359ee72fccf95180dc8fd4e
3
+ metadata.gz: 6c8390d2cb017e2c27ee0bfff0f65ce00772e1848157980e9d4e3fca29025f5a
4
+ data.tar.gz: 40f4155328f170d1e49893bf1b21ea81670692761e8b6fdd3167a876ce8af208
5
5
  SHA512:
6
- metadata.gz: 5168c359cbe666120ffc8e21d3c28de159718afbf389854e2790e032e8dad1cd93b9adaf1ff50b1e62f2afb0d1e9be016e6232ae557b22fb69dcd8beda51cc1f
7
- data.tar.gz: 4607d78428cc6969ea1c1fc9f2a09e8d909b7d6115ef64c53d05cb0c615780de7b70c7bcd7f36ab6ce886412858596f181f45ca8f1bbe08e019189efaab8b9c1
6
+ metadata.gz: 186f137fa29bf8f799343b45c5d840a40e4d0079393ce573220fd8b8d7b87c170710c2bd53e7e25ab5e9f8a482edcc902f2a8e88868aadbfdc08a22c19f851b6
7
+ data.tar.gz: 2de8f45d1ad06af133c0de6d81a5cf0b338c266cc31b42b19fa81b79b4267f4f94a07ef31325825c0e16ba44c7a96c515305ece3f853b67a1bf68d431ec2cb92
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 UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
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 UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DiceNomShim
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dice_nom_shim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - G Palmer