r_odds 0.1.1 → 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/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/r_odds/version.rb +1 -1
- 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: f1f81483035576c8635338529143fa1948fc6791cf8bf9e819a1c36eb55710ae
|
|
4
|
+
data.tar.gz: 273808c424f6225f1f0c0d5fd418b00d9f70d0f7a87eb3f29e29795c7ef24d89
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e92058224f0c1cfe5438b1dac2c2a7e8e53d3a1496e4a21c90816eed3126fa7e637543359f623ab8de1d87be914afa4d944bcfcfa97f6c85fb545322a61237c2
|
|
7
|
+
data.tar.gz: 34d519a763eb3bdece0b16f3f7ac86a1cf7f394d99052e09142d0f60c23d5d53ccaca4172f8e3333e6bb08a40b5c7091232b819acbdfb9cc43501c786f36d8f4
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -15,7 +15,7 @@ require 'r_odds'
|
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## How to use the gem
|
|
18
|
-
Use the `:convert` method to convert between any of the following formats: `:american`, `:decimal`, `:fractional` or `:
|
|
18
|
+
Use the `:convert` method to convert between any of the following formats: `:american`, `:decimal`, `:fractional` or `:implied_probability`
|
|
19
19
|
|
|
20
20
|
```ruby
|
|
21
21
|
ROdds.convert('+150', to: :decimal)
|
|
@@ -32,7 +32,7 @@ You can also specify the format you're passing in for ambiguous formats like `'1
|
|
|
32
32
|
ROdds.convert('1/4', to: :decimal)
|
|
33
33
|
#=> 1.25
|
|
34
34
|
|
|
35
|
-
ROdds.convert('1/4', from: :
|
|
35
|
+
ROdds.convert('1/4', from: :implied_probability, to: :american)
|
|
36
36
|
#=> +300
|
|
37
37
|
```
|
|
38
38
|
|
data/lib/r_odds/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: r_odds
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- George Wambold
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-06-
|
|
11
|
+
date: 2018-06-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
128
128
|
version: '0'
|
|
129
129
|
requirements: []
|
|
130
130
|
rubyforge_project:
|
|
131
|
-
rubygems_version: 2.7.
|
|
131
|
+
rubygems_version: 2.7.7
|
|
132
132
|
signing_key:
|
|
133
133
|
specification_version: 4
|
|
134
134
|
summary: Simple odds conversions -- Written in Ruby!
|