oddsmaker 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/oddsmaker/market.rb +1 -1
- data/lib/oddsmaker/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb8e8a241219ba735ecf2be07fc3747b8cb4a388
|
4
|
+
data.tar.gz: 8877cb142d86b489d9786927cc5b60d1863c1136
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acd3b9bc75faf04d85f1a16b9e5e1f31814c450a26934484bd0e5cdb4ac4183374560cf27120730caed19bbdf7fe41d33c98c068184143fda05d5c752359de63
|
7
|
+
data.tar.gz: '0794fe5a63733a42b01d25e260a903f15cb3a126a0509c5e7040c46db936b74fd01d6555026ca418776fbc0e1f6aec5d206175679243bf398bd4a9f098903afe'
|
data/lib/oddsmaker/market.rb
CHANGED
@@ -80,7 +80,7 @@ module Oddsmaker
|
|
80
80
|
# Hash representation of a market.
|
81
81
|
# @return [Hash]
|
82
82
|
def to_h
|
83
|
-
full_odds = if self.total_probability != 1
|
83
|
+
full_odds = if self.total_probability != 1 && self.odds.size > 1
|
84
84
|
no_vig = self.without_vig_odds
|
85
85
|
odds.map.with_index { |odd, index| odd.to_h.merge(actual: no_vig[index].implied_probability.value, without_vig: no_vig[index].value) }
|
86
86
|
else
|
data/lib/oddsmaker/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oddsmaker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Hoffer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|