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 +4 -4
- data/cuba-tools.gemspec +1 -1
- data/lib/cuba/tools/inflectors.rb +2 -0
- data/lib/cuba/tools/widget/base.rb +3 -3
- 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: 7dd5ee3cec221d1ee00b41edd6627c6db1a2f52f
|
4
|
+
data.tar.gz: 3e00ce5a5984c69c9a16a2e879ff84ba61f2a91f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f3c0cacba853f53101c95f13d36819260b42a830f908995fb76cadce79993f558abf4c33295f9e37d98059f8248b1c2b38b6505e3ef26c38f07174198c5388c
|
7
|
+
data.tar.gz: 6c9e37d876441753b98b9e579bf0c63c6ef2349723d1adab4bbb29f32c12cb38f87501ee91f1305d0f2934668b98e167ddf97798cd394efca14ed853ca5aa329
|
data/cuba-tools.gemspec
CHANGED
@@ -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.
|
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
|
30
|
+
state = widget_state || options[:state]
|
31
31
|
|
32
32
|
if method(state).parameters.length > 0
|
33
|
-
|
33
|
+
public_send(state, options.to_deep_ostruct)
|
34
34
|
else
|
35
|
-
|
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.
|
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-
|
11
|
+
date: 2014-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cuba
|