conjoin 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/conjoin/version.rb +1 -1
- data/lib/conjoin/widgets.rb +10 -2
- 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: 836e7101787f76311801fb2aa38035ce70c1ab58
|
4
|
+
data.tar.gz: 7d48b81888db49e598070a6820c634cc53eb92a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2aa96039522a96034f6bc7b8218c126afd371ab09f2faed7f39ebe14598ff96977537134a7dd4bb2ee740eaf252fe2075947885871e908171265423670b591f
|
7
|
+
data.tar.gz: d32d81c661e56e2baa6b2b4aee1abc3e5bee79cc4141291f21f0aa81386f0fba959414b3cccf274b9042d4755e6238e579bbe9ca8ee9ad0067fed3209834e55e
|
data/lib/conjoin/version.rb
CHANGED
data/lib/conjoin/widgets.rb
CHANGED
@@ -236,8 +236,16 @@ module Conjoin
|
|
236
236
|
@widget_state = state
|
237
237
|
end
|
238
238
|
|
239
|
-
def
|
240
|
-
|
239
|
+
def state
|
240
|
+
@widget_state
|
241
|
+
end
|
242
|
+
|
243
|
+
def render_state options = {}
|
244
|
+
if method(state).parameters.length > 0
|
245
|
+
send(state, options.to_ostruct)
|
246
|
+
else
|
247
|
+
send(state)
|
248
|
+
end
|
241
249
|
end
|
242
250
|
|
243
251
|
def partial view, options
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conjoin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cuba
|