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 +4 -4
- data/lib/baseball_stats.rb +1 -1
- data/lib/baseball_stats/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: a1021c160102c836859ba6efe6614c9a27682085
|
4
|
+
data.tar.gz: 7b55890761a6ef82299bc0b16984c03b4683cbf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e480a15a2a823fcb14b006907db38dbf915cafeafd67f032a02dbcca7349c015a4020d866929b20afa728b44efa4565bbb276d66591d89d3ee6ce6d7da2994ae
|
7
|
+
data.tar.gz: 38ed63bb2872d0735ae4169318ff93fc6cf9cfbaaf2f92cd80648c3ee8b0e6d7989fd2111b21ebdb69a286035231655f25fc77853d4bf596f71ec7ffc3ba9b93
|
data/lib/baseball_stats.rb
CHANGED
@@ -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 =
|
30
|
+
most_improved_batting_average = improvement
|
31
31
|
most_improved_player = batting.player_id
|
32
32
|
end
|
33
33
|
|
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
|
+
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-
|
11
|
+
date: 2014-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|