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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1376d7ace6063ba0f7eaf60c8dc1b35d76bb505d
4
- data.tar.gz: e01409a3acd1fdb92da2cce2223b35b6987832e3
3
+ metadata.gz: eb8e8a241219ba735ecf2be07fc3747b8cb4a388
4
+ data.tar.gz: 8877cb142d86b489d9786927cc5b60d1863c1136
5
5
  SHA512:
6
- metadata.gz: d9184cc277ac8eaeb9d9a4fb1475c2c9a37341531ffd995f84e2ebf47d763bb7e736c15881379fefb9a69ec3473eb9ad76d75e293f436654ba45e2bd9fca985a
7
- data.tar.gz: 92c6699135010fd0734d7edbbfa229c76af9b159c6a785121313fa836a037dc978b8ac7cbc05aaf1ad3d17b248cf498a5729e2db68bf5af6a45b2a49a70ea837
6
+ metadata.gz: acd3b9bc75faf04d85f1a16b9e5e1f31814c450a26934484bd0e5cdb4ac4183374560cf27120730caed19bbdf7fe41d33c98c068184143fda05d5c752359de63
7
+ data.tar.gz: '0794fe5a63733a42b01d25e260a903f15cb3a126a0509c5e7040c46db936b74fd01d6555026ca418776fbc0e1f6aec5d206175679243bf398bd4a9f098903afe'
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Oddsmaker
2
- VERSION = "0.1.0" # :nodoc:
2
+ VERSION = "0.1.1" # :nodoc:
3
3
  end
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.0
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-08 00:00:00.000000000 Z
11
+ date: 2017-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler