rbbt-rest 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -167,7 +167,10 @@ module Sinatra
167
167
 
168
168
  error Exception do |e|
169
169
  raise e unless @format == :html
170
- halt 500, [e.class.to_s, e.message] * " => "
170
+
171
+ content_type "text"
172
+
173
+ halt 500, [e.class.to_s, e.message] * " => " << "\n\n" << (e.backtrace * "\n").gsub('`',"'")
171
174
  end
172
175
 
173
176
  require 'rbbt/rest/monitor'
@@ -25,6 +25,6 @@ li.find
25
25
  @media #{$not-large}
26
26
  display: none
27
27
  position: absolute
28
- bottom: 1px
28
+ bottom: -3px
29
29
  right: 0
30
30
  height: 2em
@@ -35,17 +35,14 @@ $vindent: 22px
35
35
 
36
36
  =css-triangle($a,$b,$c)
37
37
 
38
- @import "zen"
39
-
40
-
41
- $zen-column-count: 12
42
- $zen-gutter-width: 30px
43
-
44
- =grid_row()
45
- @include zen-clear()
46
- @include zen-grid-container()
47
- overflow: visible !important
48
-
38
+ @import "susy"
39
+ =grid_row($size:12)
40
+ @include container($size)
41
+ //@include clearfix()
42
+
49
43
  =grid_column($size:1, $float:left, $last_column:false)
50
- @include zen-grid-item($size,1,$float)
44
+ @if $last_column
45
+ @include span($size of 12 last)
46
+ @else
47
+ @include span($size of 12)
51
48
 
@@ -176,7 +176,8 @@
176
176
  padding-top: $margin
177
177
  padding-left: $margin
178
178
  li
179
- +grid_column
179
+ +grid_column()
180
+ width: auto
180
181
  +_rbbt_menu_item($color_item_bg, $color_item_text)
181
182
  border: 1px solid $color_menu_border
182
183
  padding: $padding
@@ -1,12 +1,24 @@
1
1
  var defferred_execution = [];
2
2
 
3
- function deffer(func){
4
- defferred_execution.push(func);
3
+ function deffer(deps, func){
4
+ if (undefined === func){
5
+ func = deps;
6
+ deps = undefined;
7
+ }
8
+ if (undefined !== deps){
9
+ defferred_execution.push([deps, func]);
10
+ }else{
11
+ defferred_execution.push(func)
12
+ }
5
13
  }
6
14
 
7
15
  function start_defferred(){
8
16
  $(defferred_execution).each(function(pos,func){
9
- func.call();
17
+ if (typeof(func) == 'object'){
18
+ require_js(func[0], func[1]);
19
+ }else{
20
+ func.call();
21
+ }
10
22
  })
11
23
  defferred_execution = [];
12
24
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-09 00:00:00.000000000 Z
11
+ date: 2014-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -204,6 +204,7 @@ files:
204
204
  - lib/rbbt/rest/helpers.rb
205
205
  - lib/rbbt/rest/knowledge_base.rb
206
206
  - lib/rbbt/rest/knowledge_base/helpers.rb
207
+ - lib/rbbt/rest/knowledge_base/query.rb
207
208
  - lib/rbbt/rest/main.rb
208
209
  - lib/rbbt/rest/monitor.rb
209
210
  - lib/rbbt/rest/web_tool.rb