madness 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/public/js/autocomplete.js +1 -1
- data/lib/madness/server.rb +1 -1
- data/lib/madness/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b8bd26b9b5e653feb97ff0a0b5cc2859729cfd5014d7a2fbeaaf3c7a5de7381
|
4
|
+
data.tar.gz: 13c24f4c4af034814918d9cd7543adb770ab62e13d819eb0d4d006b99629a64a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e346d93cc0b23989fcfcb66f1d3f65325420fe3999c3a0d37b9afee2d2954e14c51b5e7f77aaa6b990bda3d9cd7b0cb7057ab6b85ae046481aab56e475c2833a
|
7
|
+
data.tar.gz: ed1e9e6b986c450596d3853d7f45b3ecbd2da2bbca3032155f069434c5ea0542c18df02d90c8333402f76204e9e4f350d2ebf0a95524fe49d56a6f2453da9c44
|
data/lib/madness/server.rb
CHANGED
@@ -19,7 +19,7 @@ module Madness
|
|
19
19
|
return { suggestions: [] } if query.empty?
|
20
20
|
|
21
21
|
results = Search.new.search query
|
22
|
-
suggestions = results.map { |r| r[:label]
|
22
|
+
suggestions = results.map { |r| { value: r[:label], data: r[:file] } }
|
23
23
|
|
24
24
|
response = { suggestions: suggestions }
|
25
25
|
response.to_json
|
data/lib/madness/version.rb
CHANGED