cuba-tools 0.0.12 → 0.0.13

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: 485aa1326bbb4d84007924dea0a59214a806fbec
4
- data.tar.gz: c3e4989fcbcaecf215cd1b79132d9ef32bb7f47d
3
+ metadata.gz: 7dd5ee3cec221d1ee00b41edd6627c6db1a2f52f
4
+ data.tar.gz: 3e00ce5a5984c69c9a16a2e879ff84ba61f2a91f
5
5
  SHA512:
6
- metadata.gz: da51f3922789f2400763bcfb4a7f54e88838b1fb10c8befe4d9c3c5550893cf1a554742659af439d4e5e20a977f808952bab8d7237707e5d8b6647e778bfb5b2
7
- data.tar.gz: 4cc5fc303b0793337069e70dc75d2ced7f1d5ab44ac56580ef5a742a46d73af17b70270a4f70bfb6ec5b92684ebd186493f9e403726a16e0c3a04b9e20ed6223
6
+ metadata.gz: 8f3c0cacba853f53101c95f13d36819260b42a830f908995fb76cadce79993f558abf4c33295f9e37d98059f8248b1c2b38b6505e3ef26c38f07174198c5388c
7
+ data.tar.gz: 6c9e37d876441753b98b9e579bf0c63c6ef2349723d1adab4bbb29f32c12cb38f87501ee91f1305d0f2934668b98e167ddf97798cd394efca14ed853ca5aa329
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "cuba-tools"
7
- spec.version = "0.0.12"
7
+ spec.version = "0.0.13"
8
8
  spec.authors = ["cj"]
9
9
  spec.email = ["cjlazell@gmail.com"]
10
10
  spec.description = %q{Contains a group of tools to extend cuba}
@@ -34,9 +34,11 @@ class DeepOpenStruct < OpenStruct
34
34
 
35
35
  if v.is_a? Array
36
36
  @table[k.to_sym] ||= []
37
+ @hash_table[k.to_sym] ||= []
37
38
 
38
39
  v.each { | entry |
39
40
  @table[k.to_sym] << entry
41
+ @hash_table[k.to_sym] << entry
40
42
  }
41
43
  else
42
44
  @table[k.to_sym] = (v.is_a?(Hash) ? self.class.new(v) : v)
@@ -27,12 +27,12 @@ module Cuba::Tools
27
27
  end
28
28
 
29
29
  def render_state options = {}
30
- state = widget_state || options.delete(:state)
30
+ state = widget_state || options[:state]
31
31
 
32
32
  if method(state).parameters.length > 0
33
- send(state, options.to_deep_ostruct)
33
+ public_send(state, options.to_deep_ostruct)
34
34
  else
35
- send(state)
35
+ public_send(state)
36
36
  end
37
37
  end
38
38
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cuba-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-30 00:00:00.000000000 Z
11
+ date: 2014-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cuba