codenamev-baseball-stats 0.0.4 → 0.0.5

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: 39b593837acffbc483eef8ac4e6be218761b1033
4
- data.tar.gz: 2b67ab2c759263e7b28d75f2d2d8049c52e4a9c7
3
+ metadata.gz: a1021c160102c836859ba6efe6614c9a27682085
4
+ data.tar.gz: 7b55890761a6ef82299bc0b16984c03b4683cbf9
5
5
  SHA512:
6
- metadata.gz: 93a0a4a5422ce2dac9d50228b3b70b5413a78f2a0ee11ba36f7896a6c1b8116e0bb954abdfce8046895cea551c03a024b1ca3a9177f8449369a1aa2b1bb7210e
7
- data.tar.gz: 4bcc439a1ded3d60ff01c4e62ffc0d368be612dfa86fc45ad32ea7d96404dc9ec7e41eae9b5603454a508f841238d1c9bcde41c8fa8116978889e693c2fe4357
6
+ metadata.gz: e480a15a2a823fcb14b006907db38dbf915cafeafd67f032a02dbcca7349c015a4020d866929b20afa728b44efa4565bbb276d66591d89d3ee6ce6d7da2994ae
7
+ data.tar.gz: 38ed63bb2872d0735ae4169318ff93fc6cf9cfbaaf2f92cd80648c3ee8b0e6d7989fd2111b21ebdb69a286035231655f25fc77853d4bf596f71ec7ffc3ba9b93
@@ -27,7 +27,7 @@ module BaseballStats
27
27
  next unless prev_year_batting = battings_for_previous_year.where(player_id: batting.player_id).first
28
28
  improvement = batting.batting_average - prev_year_batting.batting_average
29
29
  next unless improvement > most_improved_batting_average
30
- most_improved_batting_average = batting.batting_average
30
+ most_improved_batting_average = improvement
31
31
  most_improved_player = batting.player_id
32
32
  end
33
33
 
@@ -1,3 +1,3 @@
1
1
  module BaseballStats
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codenamev-baseball-stats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valentino Stoll
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-30 00:00:00.000000000 Z
11
+ date: 2014-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord