codenamev-baseball-stats 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e68b76699a7b187eca62f659bc71d0b31fb4ac06
4
- data.tar.gz: 042a059cee664f3e48d39b540b99bd7299dba664
3
+ metadata.gz: c417a1b413d90176dc6f70512e1ade4e5960fae3
4
+ data.tar.gz: 6720d67cd34ab5e2809ae2774557136c97b31f5a
5
5
  SHA512:
6
- metadata.gz: dfb71a29b8e9f88d6d7dd382367204a2d3aa160613f80744adc4a7d298e0178a9220702ddaf4e0e6a1f6d7c2c6d04346d3a4ea8bf423524b1b7f8316bc376376
7
- data.tar.gz: 8541554cefc58a772afd0ef0700e7c4004ca4ca00fc23f2ac9c52b9d0fbabfe3d50d28fe355518a82e3d3202b74fb8408eba73df631ab2369efb608300d40537
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
@@ -1,3 +1,3 @@
1
1
  module BaseballStats
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codenamev-baseball-stats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valentino Stoll