cuba-tools 0.0.8 → 0.0.9
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/api.rb +1 -1
- data/lib/cuba/tools/widget/helpers.rb +4 -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: 78eed97824918b49c08e09596c11db8edeae2747
|
4
|
+
data.tar.gz: 965bdb11a1f98f2ea6f258c7605b859b4fb40874
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37e9876debeffa9c9cc1941313c730a6f8e3797407c397fb6dadb581a96e1da3b7a93fe08a273167e08d47587407cc6e49492114858433f14e16593bf8847582
|
7
|
+
data.tar.gz: 5f18ee68979d0202778e5a775fa18861ff6bf629d4d244c9c233b44714098ca2c60d4d3e0b0f630e82103dc5e422f1207e30f28d15cecc8400b300e8bae438e2
|
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.9"
|
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}
|
data/lib/cuba/tools/api.rb
CHANGED
@@ -28,8 +28,11 @@ module Cuba::Tools
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def widget_div opts = {}, &block
|
31
|
+
w_name = req.env[:widget_name].gsub(/_/, '-')
|
32
|
+
w_state = req.env[:widget_state].gsub(/_/, '-')
|
33
|
+
|
31
34
|
defaults = {
|
32
|
-
id: "#{
|
35
|
+
id: "#{w_name}-#{w_state}"
|
33
36
|
}.merge opts
|
34
37
|
|
35
38
|
name = req.env[:widget_name].to_sym
|
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.9
|
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-
|
11
|
+
date: 2014-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cuba
|