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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: acb7552d7a23954ccfba2d541bf47d2e846503f9
4
- data.tar.gz: 83e90cb66fa98e0b4936c5f7efe16b05be24eed2
3
+ metadata.gz: 836e7101787f76311801fb2aa38035ce70c1ab58
4
+ data.tar.gz: 7d48b81888db49e598070a6820c634cc53eb92a9
5
5
  SHA512:
6
- metadata.gz: d417e25978870e0c76092afe29103cfa38182a07f78cd3d1f163384d94b9e1b42f0c4cbe3e409ec087d97462ac4b3b157c2fb80b9c59bcf01053b21d72beec0c
7
- data.tar.gz: 04b4c45ba3495c78ae805684b3873d477997845cc29b9514ad7472c71eb0b98bc128b75e675111b1511ce2dc831f7f450ed99e7597171cef55fee96ed75178e7
6
+ metadata.gz: f2aa96039522a96034f6bc7b8218c126afd371ab09f2faed7f39ebe14598ff96977537134a7dd4bb2ee740eaf252fe2075947885871e908171265423670b591f
7
+ data.tar.gz: d32d81c661e56e2baa6b2b4aee1abc3e5bee79cc4141291f21f0aa81386f0fba959414b3cccf274b9042d4755e6238e579bbe9ca8ee9ad0067fed3209834e55e
@@ -1,3 +1,3 @@
1
1
  module Conjoin
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
@@ -236,8 +236,16 @@ module Conjoin
236
236
  @widget_state = state
237
237
  end
238
238
 
239
- def render_state
240
- render state: widget_state
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.10
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-16 00:00:00.000000000 Z
11
+ date: 2014-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cuba