looker 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/looker.rb +4 -9
- data/lib/looker/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: 60cf223e471dae943f61300eaad5fe790d7ef13b
|
4
|
+
data.tar.gz: e2201457b8f4d228bbfac23a2fd351c10602d62d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b884a0ed8c3eb4d58ff6443cf63937da70165dc827a228d08f191a985536287ee775de13d6a4c46d805c36cf5126d484a4a61ae42f152092a312518e02af574
|
7
|
+
data.tar.gz: e9226ca595b3e8d96b31b9f79f25b0133c42692798e518fbd4420a6b805b4795449432b4cc04975d714dc124a51faf308eb7bfa56f74586ed9d872a9cda7cf51
|
data/Gemfile.lock
CHANGED
data/lib/looker.rb
CHANGED
@@ -3,15 +3,10 @@ require "looker/version"
|
|
3
3
|
require "looker/table"
|
4
4
|
|
5
5
|
module Looker
|
6
|
-
extend Forwardable
|
7
|
-
include Enumerable
|
8
|
-
def_delegators :tables, :each
|
9
|
-
|
10
6
|
class << self
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
end
|
7
|
+
extend Forwardable
|
8
|
+
include Enumerable
|
9
|
+
def_delegators :@tables, :each
|
15
10
|
|
16
11
|
def add(data={})
|
17
12
|
data.each do |name, rows|
|
@@ -21,7 +16,7 @@ module Looker
|
|
21
16
|
raise ArgumentError.new(message)
|
22
17
|
end
|
23
18
|
Looker.const_set table.constant_name, table
|
24
|
-
tables << table
|
19
|
+
(@tables ||= []) << table
|
25
20
|
end
|
26
21
|
end
|
27
22
|
|
data/lib/looker/version.rb
CHANGED