codenamev-baseball-stats 0.0.3 → 0.0.4

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: 45ebe0e703bd7bf9dee0b2ab32303330025a34ff
4
- data.tar.gz: 1b7a93155365db0f0bc41510bacb6913710a8e05
3
+ metadata.gz: 39b593837acffbc483eef8ac4e6be218761b1033
4
+ data.tar.gz: 2b67ab2c759263e7b28d75f2d2d8049c52e4a9c7
5
5
  SHA512:
6
- metadata.gz: f87502b0a692b26c2ee7512bac41d05a357a9919d23ae49058eede0bdf933c1c401682e89645db055534de12dfa42eb105b976aa9b5b04c1844061b8b3e7da93
7
- data.tar.gz: 1785c72149a5cbc4e925a047de3a5f14888389d79879fe59a96852e693329dc5fed107333fad50002b730ef6b164abb32a23d65516658dfc852dc395fe20386d
6
+ metadata.gz: 93a0a4a5422ce2dac9d50228b3b70b5413a78f2a0ee11ba36f7896a6c1b8116e0bb954abdfce8046895cea551c03a024b1ca3a9177f8449369a1aa2b1bb7210e
7
+ data.tar.gz: 4bcc439a1ded3d60ff01c4e62ffc0d368be612dfa86fc45ad32ea7d96404dc9ec7e41eae9b5603454a508f841238d1c9bcde41c8fa8116978889e693c2fe4357
@@ -27,7 +27,7 @@ module BaseballStats
27
27
  end
28
28
 
29
29
  def connection
30
- ::ActiveRecord::Base.logger = Logger.new("log/#{self.env}.log")
30
+ ::ActiveRecord::Base.logger = Logger.new(File.join(@root_path, "log", "#{self.env}.log"))
31
31
  ::ActiveRecord::Base.establish_connection(configuration[self.env])
32
32
  end
33
33
  end
@@ -1,3 +1,3 @@
1
1
  module BaseballStats
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -33,7 +33,7 @@ describe BaseballStats::Database do
33
33
  subject { BaseballStats::Database.connection }
34
34
 
35
35
  it 'estabilishes a logger' do
36
- expect(Logger).to receive(:new).with('log/test.log')
36
+ expect(Logger).to receive(:new).with(File.expand_path('../../../log/test.log', __FILE__))
37
37
  subject
38
38
  end
39
39
 
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valentino Stoll