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 +4 -4
- data/lib/alephant/lookup.rb +1 -1
- data/lib/alephant/lookup/lookup_helper.rb +1 -3
- data/lib/alephant/lookup/version.rb +1 -1
- data/spec/lookup_spec.rb +4 -4
- 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: 8bf13840e4df33ae379a436e8d688674fda2ce5a
|
4
|
+
data.tar.gz: fe15ca487472888a48e48385d624d99afb32b953
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77a0e9f2d5b1410b049014b0941e924ba465fcc4f8abdcbc66db4ed633478cfbe6594eb8b75f7d02e9183a0d414f4d90aa6e9e8a63da0b04126398617ea3152c
|
7
|
+
data.tar.gz: 70e55499c2f15e6b59abb2e723e3ab216996a0d762315421fa4839d248d8a82fe4e42d01fa3bf5997d1bccb5b57066b1b5085efb45e266516609843dbf411a4c
|
data/lib/alephant/lookup.rb
CHANGED
@@ -10,9 +10,7 @@ module Alephant
|
|
10
10
|
|
11
11
|
attr_reader :lookup_table
|
12
12
|
|
13
|
-
def initialize(lookup_table
|
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
|
data/spec/lookup_spec.rb
CHANGED
@@ -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
|
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
|
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
|
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
|
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.
|
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:
|
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
|