alephant-lookup 0.4.0 → 0.4.1

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: 95e6500e901639ebf9ae2f1d5327e00b2b2907c9
4
- data.tar.gz: 941cf0d7e4d938e3863c757a3ef05967ded40f43
3
+ metadata.gz: 8bf13840e4df33ae379a436e8d688674fda2ce5a
4
+ data.tar.gz: fe15ca487472888a48e48385d624d99afb32b953
5
5
  SHA512:
6
- metadata.gz: 321f7db3302893ee226a045e942fc3aedb6189fbe8e3c84cabb34149846c087fed5d6c3e260955817a57df534bda0042882ee16c394a13d7bb97aa4878e06c53
7
- data.tar.gz: 54bf6b4a8ef4366aa05e284ef73e6af3290cbaf9beea50a950173ea4133ece835b9bfe5286cee27b2d73a6627c10a159ed883e3e098258b7d7a856fe0748d4b7
6
+ metadata.gz: 77a0e9f2d5b1410b049014b0941e924ba465fcc4f8abdcbc66db4ed633478cfbe6594eb8b75f7d02e9183a0d414f4d90aa6e9e8a63da0b04126398617ea3152c
7
+ data.tar.gz: 70e55499c2f15e6b59abb2e723e3ab216996a0d762315421fa4839d248d8a82fe4e42d01fa3bf5997d1bccb5b57066b1b5085efb45e266516609843dbf411a4c
@@ -11,7 +11,7 @@ module Alephant
11
11
 
12
12
  def self.create(table_name)
13
13
  @@lookup_tables[table_name] ||= LookupTable.new(table_name)
14
- LookupHelper.new(@@lookup_tables[table_name], Logger.get_logger)
14
+ LookupHelper.new(@@lookup_tables[table_name])
15
15
  end
16
16
  end
17
17
  end
@@ -10,9 +10,7 @@ module Alephant
10
10
 
11
11
  attr_reader :lookup_table
12
12
 
13
- def initialize(lookup_table, logger)
14
- Logger.set_logger(logger)
15
-
13
+ def initialize(lookup_table)
16
14
  logger.info "LookupHelper#initialize(#{lookup_table.table_name})"
17
15
 
18
16
  @lookup_table = lookup_table
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Lookup
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
4
4
  end
5
5
  end
@@ -18,7 +18,7 @@ describe Alephant::Lookup do
18
18
  it "calls create on lookup_table" do
19
19
  table = double()
20
20
  table.should_receive(:table_name)
21
- subject.new(table, Logger.new(STDOUT))
21
+ subject.new(table)
22
22
  end
23
23
  end
24
24
 
@@ -63,7 +63,7 @@ describe Alephant::Lookup do
63
63
  table = double().as_null_object
64
64
  table.stub(:table_name).and_return("table_name")
65
65
 
66
- instance = subject.new(table, Logger.new(STDOUT))
66
+ instance = subject.new(table)
67
67
  lookup = instance.read("id", 0, {:variant => "foo"})
68
68
 
69
69
  expect(lookup.location).to eq("/location")
@@ -97,7 +97,7 @@ describe Alephant::Lookup do
97
97
  .stub(:lookup_table)
98
98
  .and_return(lookup_table)
99
99
 
100
- instance = subject.new(lookup_table, Logger.new(STDOUT))
100
+ instance = subject.new(lookup_table)
101
101
  instance.write("id",{},"0","/location")
102
102
  end
103
103
  end
@@ -109,7 +109,7 @@ describe Alephant::Lookup do
109
109
  table.should_receive(:table_name)
110
110
  table.should_receive(:truncate!)
111
111
 
112
- subject = Alephant::Lookup::LookupHelper.new(table, Logger.new(STDOUT))
112
+ subject = Alephant::Lookup::LookupHelper.new(table)
113
113
  subject.truncate!
114
114
  end
115
115
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alephant-lookup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Kenny
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-12 00:00:00.000000000 Z
11
+ date: 2015-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement