codenamev-baseball-stats 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/lib/baseball_stats/database.rb +1 -1
- data/lib/baseball_stats/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c417a1b413d90176dc6f70512e1ade4e5960fae3
|
4
|
+
data.tar.gz: 6720d67cd34ab5e2809ae2774557136c97b31f5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65e7b299497cf8aafa69c17e010a490cd5cb97ad89ffb39d4b05437d7dede1c775afa49d527c8552850e1e5c3300e124425ecde0d4e3e6992a196311d23c3670
|
7
|
+
data.tar.gz: 5feca95cba15116f0184d3b9aac2f5ba221795f78f3962f96db25f0c7b0a57aafc098ebd04c95193c50f7e84553f2d59100467a1721dc05661f129ffcb7d4c5c
|
data/README.md
CHANGED
@@ -26,6 +26,11 @@ display the results to the following excersize:
|
|
26
26
|
3. Who was the AL and NL tripple crown winner for 2011 and 2012. If no one won
|
27
27
|
the crown should be "(No winner)"
|
28
28
|
|
29
|
+
## Running tests
|
30
|
+
|
31
|
+
1. `bundle exec rake db:migrate db:test:prepare`
|
32
|
+
2. `rake`
|
33
|
+
|
29
34
|
## NOTES
|
30
35
|
|
31
36
|
The first run of the command imports two fairly large CSV files with sample
|
@@ -13,9 +13,9 @@ module BaseballStats
|
|
13
13
|
@env = nil
|
14
14
|
@logger = nil
|
15
15
|
@connection = nil
|
16
|
-
@configuration = YAML::load(IO.read('db/config.yml')).freeze
|
17
16
|
@root_path = File.expand_path('../../..', __FILE__).freeze
|
18
17
|
@db_dir = File.join(@root_path, 'db').freeze
|
18
|
+
@configuration = YAML::load(IO.read("#{@db_dir}/config.yml")).freeze
|
19
19
|
@migrations_paths = [File.join(@root_path, 'db/migrate')].freeze
|
20
20
|
|
21
21
|
attr_accessor :configuration, :db_dir, :migrations_paths
|