postrest 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/public/index.htm +5 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5bbd3ddb75df5360d27e049bd8c4b5bc67625cce
4
- data.tar.gz: 118afd3dd7ef034f9bf22f139fdd2efa3a4b3a80
3
+ metadata.gz: e1bcaff14a1ca582d6b9165ab22ce34ca5250058
4
+ data.tar.gz: 47dfc1a6826db3197b6cdb6933c4accdf8b05821
5
5
  SHA512:
6
- metadata.gz: 9084502a5ae1c5ff0385b57fc549f6520f62c15a1eb3659135886630b986f07d37733858e0063d611671097a89fa239e33c60f66df7fddc86513cb173bb69cc2
7
- data.tar.gz: 98fb08f157b0315ddc64ea70849dfeb6e34f815b361165073f848858025f93237eab9e11a786939bd744b8338db587a6b238483ba0dddb5d33b9c68d9a8d8363
6
+ metadata.gz: 94a43e15fa134f8bb74ec5709abde78a0ae0bda90420195c6aa8e612612a88c8d9bb5b222a4b4140bf874e04866f195395206f7e80825d2bb1c221dc9ac09aa8
7
+ data.tar.gz: e4ff991987e5c4f76eb52c437e03870ff00cc5c27bbd2087c0f4d6ff48210927b198c31c023c9e1c1d021c3baa0f0fae9e54e916eddb3231a093c2ac88394be8
data/public/index.htm CHANGED
@@ -88,7 +88,12 @@
88
88
  sql: $(".form .sql").val()
89
89
  }
90
90
 
91
+ $("#output").empty();
91
92
  $.post("/sql", payload, function(l) {
93
+ if ( l.length === 0 ) {
94
+ $("#output").html('<div style="width: 80%;margin: auto;">No rows returned.</div>');
95
+ return;
96
+ }
92
97
  console.log( 'l: ', l );
93
98
  $("#output").pivotUI(l, {
94
99
  renderers: renderers,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guy Irvine
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-05 00:00:00.000000000 Z
11
+ date: 2016-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json