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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7e8c02269e17c656939964800da2bedefcbc10a
4
- data.tar.gz: 62346ee55cbc1e1520f70d7d9f61ff6059267c48
3
+ metadata.gz: 78eed97824918b49c08e09596c11db8edeae2747
4
+ data.tar.gz: 965bdb11a1f98f2ea6f258c7605b859b4fb40874
5
5
  SHA512:
6
- metadata.gz: 0b139c6e3a64f0c0c75365802045e972aaa34adc494aaba44488ab901f1e368d3db8225717752c711f92cd42944ef5c001a69b0ac81e82dc9abc177cb273a38d
7
- data.tar.gz: c0053430342791859b987a8885091346ca8afbbc733cd294d7a70240ae2b720cd7d105636568dfdb0b617ed436712bd0dab23629d362a74da8ad4e49cf065c4e
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.8"
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}
@@ -65,7 +65,7 @@ module Cuba::Tools
65
65
  if defined? Rails
66
66
  @request = req
67
67
  end
68
-
68
+
69
69
  sign_in user
70
70
  end
71
71
 
@@ -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: "#{req.env[:widget_name]}_#{req.env[:widget_state]}"
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.8
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-27 00:00:00.000000000 Z
11
+ date: 2014-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cuba