bogo-ui 0.1.2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/bogo-ui/table.rb +13 -1
- data/lib/bogo-ui/ui.rb +1 -0
- data/lib/bogo-ui/version.rb +1 -1
- 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: d1d767eb2099b0f4ac0cbc40e21c2ea0bcd83814
|
4
|
+
data.tar.gz: 1dfa7f6d9850e33fc991a96a7337a105104d9ef8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f25fa2fcf0718ed7fa21f8b54d9481527a9f3ac583720fc4be5890f9e11d0eb3b2f58ccfade8324624b34268bcf8e4f085b9d8a25670c283b068ecff23fe648b
|
7
|
+
data.tar.gz: 14567b0044081fdac3ab67c864e990287ccf4b06c0ea0aaefe03fd381819ef6f3e25042c95943bc702b850a05b8cc1d1d87f10edd06fc9d133b0ed94d024ac3b
|
data/CHANGELOG.md
CHANGED
data/lib/bogo-ui/table.rb
CHANGED
@@ -13,19 +13,31 @@ module Bogo
|
|
13
13
|
attr_reader :ui
|
14
14
|
# @return [Array<Proc>]
|
15
15
|
attr_reader :table
|
16
|
+
# @return [Object]
|
17
|
+
attr_reader :proxy_to
|
16
18
|
|
17
19
|
# Create a new instance
|
18
20
|
#
|
19
21
|
# @param ui [Bogo::Ui]
|
20
22
|
# @yield table content
|
21
23
|
# @return [self]
|
22
|
-
def initialize(ui, &block)
|
24
|
+
def initialize(ui, inst=nil, &block)
|
25
|
+
@proxy_to = inst
|
23
26
|
@ui = ui
|
24
27
|
@base = block
|
25
28
|
@content = []
|
26
29
|
@printed_lines = 0
|
27
30
|
end
|
28
31
|
|
32
|
+
# If proxy instance is provided, forward if possible
|
33
|
+
def method_missing(m_name, *args, &block)
|
34
|
+
if(proxy_to && proxy_to.respond_to?(m_name, true))
|
35
|
+
proxy_to.send(m_name, *args, &block)
|
36
|
+
else
|
37
|
+
super
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
29
41
|
# Update the table content
|
30
42
|
#
|
31
43
|
# @yield table content
|
data/lib/bogo-ui/ui.rb
CHANGED
data/lib/bogo-ui/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bogo-ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Roberts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bogo
|