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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b33ca4cb16746cbe51209792863e034860525fe7
4
- data.tar.gz: b91099734a0144e57d78e6f6bce5ad00d7bdaf1c
3
+ metadata.gz: 60cf223e471dae943f61300eaad5fe790d7ef13b
4
+ data.tar.gz: e2201457b8f4d228bbfac23a2fd351c10602d62d
5
5
  SHA512:
6
- metadata.gz: e10c6ec67d4bfbb3d6364303ac365bd76d23bf3a9838d18e7cbd244d106bc6cbb90703cbbd61b64e229d4caa8ed83a775663049272ab11a83d9fdc46d048382c
7
- data.tar.gz: 59e9dcc96fd43d0a3d8faf69ca7c823729278a91998f58147ea7a93abdb73b82c595d3d324637c50362e5012bedb72a4b1a32e24ce276b4f6f0bb34b9d352c7c
6
+ metadata.gz: 1b884a0ed8c3eb4d58ff6443cf63937da70165dc827a228d08f191a985536287ee775de13d6a4c46d805c36cf5126d484a4a61ae42f152092a312518e02af574
7
+ data.tar.gz: e9226ca595b3e8d96b31b9f79f25b0133c42692798e518fbd4420a6b805b4795449432b4cc04975d714dc124a51faf308eb7bfa56f74586ed9d872a9cda7cf51
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- looker (0.2.0)
4
+ looker (0.2.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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
- def tables
13
- @tables ||= []
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
 
@@ -1,3 +1,3 @@
1
1
  module Looker
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: looker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Hopkins