bootstrap3_autocomplete_input 0.0.5 → 0.0.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dce427122daa9a942e3c09976533bce7c2a56d84
4
- data.tar.gz: afd05f07f091b24d4d451be7d85c5bd034a766ee
3
+ metadata.gz: 2eac81ff05fbf008f9a0e8b58724f011c2cbf748
4
+ data.tar.gz: 4f14fec30b6c3a36e68f51518537e5b12c1a384f
5
5
  SHA512:
6
- metadata.gz: 7e9093fa731b8049512f743e8613a0f25f518ff21d85a75872ffe3188f1f444579684208d8c5ed3b1d37b1863dcbdcc9e76582989578e22a5fedbd3a4fef7f1f
7
- data.tar.gz: 90b789b27c87ae4ffbbc7e971494935663f3b1736a2deabe7cfeb2bab96f5c40f4658c750c01226a06a9686929f5f3dd8d3054f1f65bb1564c728d5531788da9
6
+ metadata.gz: 40855326ab659cafde1a57b3554da1d81957be2f4ed9728fb54e535b2cf677c517a3cd50688c719c2b9cc32677e40cc39f060c430d26d0ae93c7ca9e4e3d9dcb
7
+ data.tar.gz: 88f4c94c5b3f09b38fb86f15313df415ed8c20300c6b05ac5320f9c349d84f82c87c3aa16cc99245bb5304300eff32934bd9a8b9db3e1626fae9895c18d4daf9
@@ -82,10 +82,11 @@ $(document).ready(function() {
82
82
  , items: obj.attr('data-items')
83
83
  , minLength: obj.attr('data-min-length')
84
84
  , afterSelect: function(item){
85
- var fn = obj.attr('data-afterSelect') || '';
86
-
87
- if (fn!=''){
88
- window[fn](item);
85
+ var name = obj.attr('data-afterSelect') || '';
86
+ if (name!='') {
87
+ var fn = window[name];
88
+ if (typeof(fn) == "function")
89
+ fn(item);
89
90
  }
90
91
 
91
92
  }
@@ -1 +1 @@
1
- var autocomplete_data_static={};$(document).ready(function(){$('input[data-provide="typeahead"][data-source-array]').each(function(){obj=$(this);var t=JSON.parse(obj.attr("data-source-array").replace(/"/g,'"'));obj.typeahead({source:t,items:obj.attr("data-items"),minLength:obj.attr("data-min-length")})}),$('input[data-provide="typeahead"][data-source]').each(function(){obj=$(this);var t=obj.attr("id");autocomplete_data_static[t]={map:[],values:[]},$.get(obj.attr("data-source"),function(a){$.each(a,function(a,e){autocomplete_data_static[t].values.push(e[1]),autocomplete_data_static[t].map[e[1]]=e[0]}),obj.typeahead({source:autocomplete_data_static[t].values,updater:function(a){return obj_id=$("#"+obj.attr("data-field-id")),obj_id&&obj_id.val(autocomplete_data_static[t].map[a]),a},items:obj.attr("data-items"),minLength:obj.attr("data-min-length")})},"json")}),$('input[data-provide="typeahead"][data-source-query]').each(function(){obj=$(this),obj.typeahead({source:function(t,a){obj=this.$element,rows=[];var e=obj.attr("name");autocomplete_data_static[e]={map:[],values:[]},$.getJSON(obj.attr("data-source-query"),{q:t},function(t){$.each(t,function(t,a){autocomplete_data_static[e].values.push(a[1]),autocomplete_data_static[e].map[a[1]]=a[0]}),a(autocomplete_data_static[e].values)})},updater:function(t){obj=this.$element;var a=obj.attr("name");return obj_id=$("#"+obj.attr("data-field-id")),obj_id&&obj_id.val(autocomplete_data_static[a].map[t]),t},items:obj.attr("data-items"),minLength:obj.attr("data-min-length"),afterSelect:obj.attr("data-afterSelect")})})});
1
+ var autocomplete_data_static={};$(document).ready(function(){$('input[data-provide="typeahead"][data-source-array]').each(function(){obj=$(this);var t=JSON.parse(obj.attr("data-source-array").replace(/"/g,'"'));obj.typeahead({source:t,items:obj.attr("data-items"),minLength:obj.attr("data-min-length")})}),$('input[data-provide="typeahead"][data-source]').each(function(){obj=$(this);var t=obj.attr("id");autocomplete_data_static[t]={map:[],values:[]},$.get(obj.attr("data-source"),function(a){$.each(a,function(a,e){autocomplete_data_static[t].values.push(e[1]),autocomplete_data_static[t].map[e[1]]=e[0]}),obj.typeahead({source:autocomplete_data_static[t].values,updater:function(a){return obj_id=$("#"+obj.attr("data-field-id")),obj_id&&obj_id.val(autocomplete_data_static[t].map[a]),a},items:obj.attr("data-items"),minLength:obj.attr("data-min-length")})},"json")}),$('input[data-provide="typeahead"][data-source-query]').each(function(){obj=$(this),obj.typeahead({source:function(t,a){obj=this.$element,rows=[];var e=obj.attr("name");autocomplete_data_static[e]={map:[],values:[]},$.getJSON(obj.attr("data-source-query"),{q:t},function(t){$.each(t,function(t,a){autocomplete_data_static[e].values.push(a[1]),autocomplete_data_static[e].map[a[1]]=a[0]}),a(autocomplete_data_static[e].values)})},updater:function(t){obj=this.$element;var a=obj.attr("name");return obj_id=$("#"+obj.attr("data-field-id")),obj_id&&obj_id.val(autocomplete_data_static[a].map[t]),t},items:obj.attr("data-items"),minLength:obj.attr("data-min-length"),afterSelect:function(t){var a=obj.attr("data-afterSelect")||"";if(""!=a){var e=window[a];"function"==typeof e&&e(t)}}})})});
@@ -1,3 +1,3 @@
1
1
  module Bootstrap3AutocompleteInput
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -15,4 +15,4 @@
15
15
  //= require jquery_ujs
16
16
  //= require bootstrap
17
17
  //= require bootstrap3-typeahead.min
18
- //= require bootstrap3-autocomplete-input
18
+ //= require bootstrap3-autocomplete-input.min
@@ -51,5 +51,7 @@
51
51
  <script>
52
52
  function after_select_client(item){
53
53
  console.log('item is selected');
54
+ console.log(item);
55
+
54
56
  }
55
57
  </script>
@@ -1047,3 +1047,382 @@ Processing by OrdersController#autocomplete_client_name as JSON
1047
1047
  Parameters: {"q"=>"b"}
1048
1048
  Client Load (0.0ms) SELECT clients.id, clients.name FROM "clients" WHERE (LOWER(clients.name) LIKE 'b%') ORDER BY clients.name ASC LIMIT 10
1049
1049
  Completed 200 OK in 5ms (Views: 0.0ms | ActiveRecord: 0.0ms)
1050
+
1051
+
1052
+ Started GET "/orders/new" for 127.0.0.1 at 2015-03-18 03:08:47 +0200
1053
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
1054
+ Processing by OrdersController#new as HTML
1055
+ Rendered orders/_form.html.erb (112.0ms)
1056
+ Rendered orders/new.html.erb within layouts/application (116.0ms)
1057
+ Completed 200 OK in 293ms (Views: 287.0ms | ActiveRecord: 0.0ms)
1058
+
1059
+
1060
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-03-18 03:08:47 +0200
1061
+
1062
+
1063
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-03-18 03:08:48 +0200
1064
+
1065
+
1066
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-03-18 03:08:48 +0200
1067
+
1068
+
1069
+ Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2015-03-18 03:08:48 +0200
1070
+
1071
+
1072
+ Started GET "/assets/bootstrap3-typeahead.min.js?body=1" for 127.0.0.1 at 2015-03-18 03:08:48 +0200
1073
+
1074
+
1075
+ Started GET "/assets/bootstrap3-autocomplete-input.js?body=1" for 127.0.0.1 at 2015-03-18 03:08:48 +0200
1076
+
1077
+
1078
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-03-18 03:08:48 +0200
1079
+
1080
+
1081
+ Started GET "/orders/autocomplete_client_name?q=b" for 127.0.0.1 at 2015-03-18 03:11:31 +0200
1082
+ Processing by OrdersController#autocomplete_client_name as JSON
1083
+ Parameters: {"q"=>"b"}
1084
+ Client Load (0.0ms) SELECT clients.id, clients.name FROM "clients" WHERE (LOWER(clients.name) LIKE 'b%') ORDER BY clients.name ASC LIMIT 10
1085
+ Completed 200 OK in 5ms (Views: 0.0ms | ActiveRecord: 0.0ms)
1086
+
1087
+
1088
+ Started GET "/orders/new" for 127.0.0.1 at 2015-03-18 03:11:43 +0200
1089
+ Processing by OrdersController#new as HTML
1090
+ Rendered orders/_form.html.erb (7.0ms)
1091
+ Rendered orders/new.html.erb within layouts/application (9.0ms)
1092
+ Completed 200 OK in 84ms (Views: 83.0ms | ActiveRecord: 0.0ms)
1093
+
1094
+
1095
+ Started GET "/orders/autocomplete_client_name?q=Banana" for 127.0.0.1 at 2015-03-18 03:11:43 +0200
1096
+ Processing by OrdersController#autocomplete_client_name as JSON
1097
+ Parameters: {"q"=>"Banana"}
1098
+ Client Load (1.0ms) SELECT clients.id, clients.name FROM "clients" WHERE (LOWER(clients.name) LIKE 'banana%') ORDER BY clients.name ASC LIMIT 10
1099
+ Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 1.0ms)
1100
+
1101
+
1102
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-03-18 03:11:43 +0200
1103
+
1104
+
1105
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-03-18 03:11:43 +0200
1106
+
1107
+
1108
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-03-18 03:11:43 +0200
1109
+
1110
+
1111
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-03-18 03:11:43 +0200
1112
+
1113
+
1114
+ Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2015-03-18 03:11:43 +0200
1115
+
1116
+
1117
+ Started GET "/assets/bootstrap3-typeahead.min.js?body=1" for 127.0.0.1 at 2015-03-18 03:11:43 +0200
1118
+
1119
+
1120
+ Started GET "/assets/bootstrap3-autocomplete-input.js?body=1" for 127.0.0.1 at 2015-03-18 03:11:43 +0200
1121
+
1122
+
1123
+ Started GET "/orders/autocomplete_client_name?q=b" for 127.0.0.1 at 2015-03-18 03:11:44 +0200
1124
+ Processing by OrdersController#autocomplete_client_name as JSON
1125
+ Parameters: {"q"=>"b"}
1126
+ Client Load (0.0ms) SELECT clients.id, clients.name FROM "clients" WHERE (LOWER(clients.name) LIKE 'b%') ORDER BY clients.name ASC LIMIT 10
1127
+ Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)
1128
+
1129
+
1130
+ Started GET "/orders/new" for 127.0.0.1 at 2015-03-18 03:11:54 +0200
1131
+ Processing by OrdersController#new as HTML
1132
+ Rendered orders/_form.html.erb (7.0ms)
1133
+ Rendered orders/new.html.erb within layouts/application (9.0ms)
1134
+ Completed 200 OK in 92ms (Views: 91.0ms | ActiveRecord: 0.0ms)
1135
+
1136
+
1137
+ Started GET "/orders/autocomplete_client_name?q=Banana" for 127.0.0.1 at 2015-03-18 03:11:54 +0200
1138
+ Processing by OrdersController#autocomplete_client_name as JSON
1139
+ Parameters: {"q"=>"Banana"}
1140
+ Client Load (1.0ms) SELECT clients.id, clients.name FROM "clients" WHERE (LOWER(clients.name) LIKE 'banana%') ORDER BY clients.name ASC LIMIT 10
1141
+ Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 1.0ms)
1142
+
1143
+
1144
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-03-18 03:11:54 +0200
1145
+
1146
+
1147
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-03-18 03:11:54 +0200
1148
+
1149
+
1150
+ Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2015-03-18 03:11:54 +0200
1151
+
1152
+
1153
+ Started GET "/assets/bootstrap3-typeahead.min.js?body=1" for 127.0.0.1 at 2015-03-18 03:11:54 +0200
1154
+
1155
+
1156
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-03-18 03:11:54 +0200
1157
+
1158
+
1159
+ Started GET "/assets/bootstrap3-autocomplete-input.js?body=1" for 127.0.0.1 at 2015-03-18 03:11:54 +0200
1160
+
1161
+
1162
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-03-18 03:11:54 +0200
1163
+
1164
+
1165
+ Started GET "/orders/autocomplete_client_name?q=v" for 127.0.0.1 at 2015-03-18 03:11:56 +0200
1166
+ Processing by OrdersController#autocomplete_client_name as JSON
1167
+ Parameters: {"q"=>"v"}
1168
+ Client Load (0.0ms) SELECT clients.id, clients.name FROM "clients" WHERE (LOWER(clients.name) LIKE 'v%') ORDER BY clients.name ASC LIMIT 10
1169
+ Completed 200 OK in 2ms (Views: 0.0ms | ActiveRecord: 0.0ms)
1170
+
1171
+
1172
+ Started GET "/orders/autocomplete_client_name?q=b" for 127.0.0.1 at 2015-03-18 03:11:58 +0200
1173
+ Processing by OrdersController#autocomplete_client_name as JSON
1174
+ Parameters: {"q"=>"b"}
1175
+ Client Load (0.0ms) SELECT clients.id, clients.name FROM "clients" WHERE (LOWER(clients.name) LIKE 'b%') ORDER BY clients.name ASC LIMIT 10
1176
+ Completed 200 OK in 2ms (Views: 0.0ms | ActiveRecord: 0.0ms)
1177
+
1178
+
1179
+ Started GET "/orders/new" for 127.0.0.1 at 2015-03-18 03:13:21 +0200
1180
+ Processing by OrdersController#new as HTML
1181
+ Rendered orders/_form.html.erb (6.0ms)
1182
+ Rendered orders/new.html.erb within layouts/application (7.0ms)
1183
+ Completed 200 OK in 118ms (Views: 118.0ms | ActiveRecord: 0.0ms)
1184
+
1185
+
1186
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-03-18 03:13:21 +0200
1187
+
1188
+
1189
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-03-18 03:13:21 +0200
1190
+
1191
+
1192
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-03-18 03:13:21 +0200
1193
+
1194
+
1195
+ Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2015-03-18 03:13:21 +0200
1196
+
1197
+
1198
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-03-18 03:13:21 +0200
1199
+
1200
+
1201
+ Started GET "/assets/bootstrap3-typeahead.min.js?body=1" for 127.0.0.1 at 2015-03-18 03:13:21 +0200
1202
+
1203
+
1204
+ Started GET "/assets/bootstrap3-autocomplete-input.js?body=1" for 127.0.0.1 at 2015-03-18 03:13:21 +0200
1205
+
1206
+
1207
+ Started GET "/orders/autocomplete_client_name?q=b" for 127.0.0.1 at 2015-03-18 03:13:24 +0200
1208
+ Processing by OrdersController#autocomplete_client_name as JSON
1209
+ Parameters: {"q"=>"b"}
1210
+ Client Load (0.0ms) SELECT clients.id, clients.name FROM "clients" WHERE (LOWER(clients.name) LIKE 'b%') ORDER BY clients.name ASC LIMIT 10
1211
+ Completed 200 OK in 2ms (Views: 0.0ms | ActiveRecord: 0.0ms)
1212
+
1213
+
1214
+ Started GET "/orders/new" for 127.0.0.1 at 2015-03-18 03:13:34 +0200
1215
+ Processing by OrdersController#new as HTML
1216
+ Rendered orders/_form.html.erb (8.0ms)
1217
+ Rendered orders/new.html.erb within layouts/application (9.0ms)
1218
+ Completed 200 OK in 61ms (Views: 60.0ms | ActiveRecord: 0.0ms)
1219
+
1220
+
1221
+ Started GET "/orders/autocomplete_client_name?q=Banana" for 127.0.0.1 at 2015-03-18 03:13:34 +0200
1222
+ Processing by OrdersController#autocomplete_client_name as JSON
1223
+ Parameters: {"q"=>"Banana"}
1224
+ Client Load (1.0ms) SELECT clients.id, clients.name FROM "clients" WHERE (LOWER(clients.name) LIKE 'banana%') ORDER BY clients.name ASC LIMIT 10
1225
+ Completed 200 OK in 60ms (Views: 58.0ms | ActiveRecord: 1.0ms)
1226
+
1227
+
1228
+ Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2015-03-18 03:13:34 +0200
1229
+
1230
+
1231
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-03-18 03:13:34 +0200
1232
+
1233
+
1234
+ Started GET "/assets/bootstrap3-typeahead.min.js?body=1" for 127.0.0.1 at 2015-03-18 03:13:34 +0200
1235
+
1236
+
1237
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-03-18 03:13:34 +0200
1238
+
1239
+
1240
+ Started GET "/assets/bootstrap3-autocomplete-input.js?body=1" for 127.0.0.1 at 2015-03-18 03:13:34 +0200
1241
+
1242
+
1243
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-03-18 03:13:34 +0200
1244
+
1245
+
1246
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-03-18 03:13:34 +0200
1247
+
1248
+
1249
+ Started GET "/orders/autocomplete_client_name?q=b" for 127.0.0.1 at 2015-03-18 03:13:36 +0200
1250
+ Processing by OrdersController#autocomplete_client_name as JSON
1251
+ Parameters: {"q"=>"b"}
1252
+ Client Load (0.0ms) SELECT clients.id, clients.name FROM "clients" WHERE (LOWER(clients.name) LIKE 'b%') ORDER BY clients.name ASC LIMIT 10
1253
+ Completed 200 OK in 2ms (Views: 0.0ms | ActiveRecord: 0.0ms)
1254
+
1255
+
1256
+ Started GET "/orders/new" for 127.0.0.1 at 2015-03-18 03:14:15 +0200
1257
+ Processing by OrdersController#new as HTML
1258
+ Rendered orders/_form.html.erb (11.0ms)
1259
+ Rendered orders/new.html.erb within layouts/application (12.0ms)
1260
+ Completed 200 OK in 180ms (Views: 180.0ms | ActiveRecord: 0.0ms)
1261
+
1262
+
1263
+ Started GET "/orders/autocomplete_client_name?q=Banana" for 127.0.0.1 at 2015-03-18 03:14:15 +0200
1264
+ Processing by OrdersController#autocomplete_client_name as JSON
1265
+ Parameters: {"q"=>"Banana"}
1266
+ Client Load (0.0ms) SELECT clients.id, clients.name FROM "clients" WHERE (LOWER(clients.name) LIKE 'banana%') ORDER BY clients.name ASC LIMIT 10
1267
+ Completed 200 OK in 2ms (Views: 0.0ms | ActiveRecord: 0.0ms)
1268
+
1269
+
1270
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-03-18 03:14:15 +0200
1271
+
1272
+
1273
+ Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2015-03-18 03:14:15 +0200
1274
+
1275
+
1276
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-03-18 03:14:15 +0200
1277
+
1278
+
1279
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-03-18 03:14:15 +0200
1280
+
1281
+
1282
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-03-18 03:14:15 +0200
1283
+
1284
+
1285
+ Started GET "/assets/bootstrap3-typeahead.min.js?body=1" for 127.0.0.1 at 2015-03-18 03:14:15 +0200
1286
+
1287
+
1288
+ Started GET "/assets/bootstrap3-autocomplete-input.js?body=1" for 127.0.0.1 at 2015-03-18 03:14:15 +0200
1289
+
1290
+
1291
+ Started GET "/orders/autocomplete_client_name?q=b" for 127.0.0.1 at 2015-03-18 03:14:17 +0200
1292
+ Processing by OrdersController#autocomplete_client_name as JSON
1293
+ Parameters: {"q"=>"b"}
1294
+ Client Load (0.0ms) SELECT clients.id, clients.name FROM "clients" WHERE (LOWER(clients.name) LIKE 'b%') ORDER BY clients.name ASC LIMIT 10
1295
+ Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
1296
+
1297
+
1298
+ Started GET "/orders/new" for 127.0.0.1 at 2015-03-18 03:14:22 +0200
1299
+ Processing by OrdersController#new as HTML
1300
+ Rendered orders/_form.html.erb (7.0ms)
1301
+ Rendered orders/new.html.erb within layouts/application (9.0ms)
1302
+ Completed 200 OK in 80ms (Views: 80.0ms | ActiveRecord: 0.0ms)
1303
+
1304
+
1305
+ Started GET "/orders/autocomplete_client_name?q=Banana" for 127.0.0.1 at 2015-03-18 03:14:22 +0200
1306
+ Processing by OrdersController#autocomplete_client_name as JSON
1307
+ Parameters: {"q"=>"Banana"}
1308
+ Client Load (0.0ms) SELECT clients.id, clients.name FROM "clients" WHERE (LOWER(clients.name) LIKE 'banana%') ORDER BY clients.name ASC LIMIT 10
1309
+ Completed 200 OK in 2ms (Views: 0.0ms | ActiveRecord: 0.0ms)
1310
+
1311
+
1312
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-03-18 03:14:23 +0200
1313
+
1314
+
1315
+ Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2015-03-18 03:14:23 +0200
1316
+
1317
+
1318
+ Started GET "/assets/bootstrap3-typeahead.min.js?body=1" for 127.0.0.1 at 2015-03-18 03:14:23 +0200
1319
+
1320
+
1321
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-03-18 03:14:23 +0200
1322
+
1323
+
1324
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-03-18 03:14:23 +0200
1325
+
1326
+
1327
+ Started GET "/assets/bootstrap3-autocomplete-input.js?body=1" for 127.0.0.1 at 2015-03-18 03:14:23 +0200
1328
+
1329
+
1330
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-03-18 03:14:23 +0200
1331
+
1332
+
1333
+ Started GET "/orders/autocomplete_client_name?q=b" for 127.0.0.1 at 2015-03-18 03:14:24 +0200
1334
+ Processing by OrdersController#autocomplete_client_name as JSON
1335
+ Parameters: {"q"=>"b"}
1336
+ Client Load (0.0ms) SELECT clients.id, clients.name FROM "clients" WHERE (LOWER(clients.name) LIKE 'b%') ORDER BY clients.name ASC LIMIT 10
1337
+ Completed 200 OK in 2ms (Views: 0.0ms | ActiveRecord: 0.0ms)
1338
+
1339
+
1340
+ Started GET "/orders/new" for 127.0.0.1 at 2015-03-18 03:14:28 +0200
1341
+ Processing by OrdersController#new as HTML
1342
+ Rendered orders/_form.html.erb (9.0ms)
1343
+ Rendered orders/new.html.erb within layouts/application (25.0ms)
1344
+ Completed 200 OK in 76ms (Views: 76.0ms | ActiveRecord: 0.0ms)
1345
+
1346
+
1347
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-03-18 03:14:28 +0200
1348
+
1349
+
1350
+ Started GET "/assets/bootstrap3-typeahead.min.js?body=1" for 127.0.0.1 at 2015-03-18 03:14:28 +0200
1351
+
1352
+
1353
+ Started GET "/assets/bootstrap3-autocomplete-input.js?body=1" for 127.0.0.1 at 2015-03-18 03:14:28 +0200
1354
+
1355
+
1356
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-03-18 03:14:28 +0200
1357
+
1358
+
1359
+ Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2015-03-18 03:14:28 +0200
1360
+
1361
+
1362
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-03-18 03:14:28 +0200
1363
+
1364
+
1365
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-03-18 03:14:28 +0200
1366
+
1367
+
1368
+ Started GET "/orders/autocomplete_client_name?q=b" for 127.0.0.1 at 2015-03-18 03:14:30 +0200
1369
+ Processing by OrdersController#autocomplete_client_name as JSON
1370
+ Parameters: {"q"=>"b"}
1371
+ Client Load (0.0ms) SELECT clients.id, clients.name FROM "clients" WHERE (LOWER(clients.name) LIKE 'b%') ORDER BY clients.name ASC LIMIT 10
1372
+ Completed 200 OK in 2ms (Views: 0.0ms | ActiveRecord: 0.0ms)
1373
+
1374
+
1375
+ Started GET "/orders/new" for 127.0.0.1 at 2015-03-18 03:17:15 +0200
1376
+ Processing by OrdersController#new as HTML
1377
+ Rendered orders/_form.html.erb (7.0ms)
1378
+ Rendered orders/new.html.erb within layouts/application (7.0ms)
1379
+ Completed 200 OK in 147ms (Views: 146.0ms | ActiveRecord: 0.0ms)
1380
+
1381
+
1382
+ Started GET "/orders/autocomplete_client_name?q=Banana" for 127.0.0.1 at 2015-03-18 03:17:16 +0200
1383
+ Processing by OrdersController#autocomplete_client_name as JSON
1384
+ Parameters: {"q"=>"Banana"}
1385
+ Client Load (0.0ms) SELECT clients.id, clients.name FROM "clients" WHERE (LOWER(clients.name) LIKE 'banana%') ORDER BY clients.name ASC LIMIT 10
1386
+ Completed 200 OK in 2ms (Views: 0.0ms | ActiveRecord: 0.0ms)
1387
+
1388
+
1389
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-03-18 03:17:16 +0200
1390
+
1391
+
1392
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-03-18 03:17:16 +0200
1393
+
1394
+
1395
+ Started GET "/assets/bootstrap3-autocomplete-input.min.js?body=1" for 127.0.0.1 at 2015-03-18 03:17:16 +0200
1396
+
1397
+
1398
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-03-18 03:17:16 +0200
1399
+
1400
+
1401
+ Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2015-03-18 03:17:16 +0200
1402
+
1403
+
1404
+ Started GET "/assets/bootstrap3-typeahead.min.js?body=1" for 127.0.0.1 at 2015-03-18 03:17:16 +0200
1405
+
1406
+
1407
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-03-18 03:17:16 +0200
1408
+
1409
+
1410
+ Started GET "/orders/autocomplete_client_name?q=v" for 127.0.0.1 at 2015-03-18 03:17:19 +0200
1411
+ Processing by OrdersController#autocomplete_client_name as JSON
1412
+ Parameters: {"q"=>"v"}
1413
+ Client Load (0.0ms) SELECT clients.id, clients.name FROM "clients" WHERE (LOWER(clients.name) LIKE 'v%') ORDER BY clients.name ASC LIMIT 10
1414
+ Completed 200 OK in 2ms (Views: 0.0ms | ActiveRecord: 0.0ms)
1415
+
1416
+
1417
+ Started GET "/orders/autocomplete_client_name?q=b" for 127.0.0.1 at 2015-03-18 03:17:19 +0200
1418
+ Processing by OrdersController#autocomplete_client_name as JSON
1419
+ Parameters: {"q"=>"b"}
1420
+ Client Load (1.0ms) SELECT clients.id, clients.name FROM "clients" WHERE (LOWER(clients.name) LIKE 'b%') ORDER BY clients.name ASC LIMIT 10
1421
+ Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 1.0ms)
1422
+
1423
+
1424
+ Started GET "/orders/autocomplete_client_name?q=Banana" for 127.0.0.1 at 2015-03-18 03:17:25 +0200
1425
+ Processing by OrdersController#autocomplete_client_name as JSON
1426
+ Parameters: {"q"=>"Banana"}
1427
+ Client Load (0.0ms) SELECT clients.id, clients.name FROM "clients" WHERE (LOWER(clients.name) LIKE 'banana%') ORDER BY clients.name ASC LIMIT 10
1428
+ Completed 200 OK in 2ms (Views: 0.0ms | ActiveRecord: 0.0ms)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap3_autocomplete_input
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Ivak
@@ -17,7 +17,7 @@ dependencies:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.1'
20
- type: :runtime
20
+ type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
@@ -401,7 +401,6 @@ files:
401
401
  - test/dummy/tmp/cache/assets/development/sprockets/f8f634cf3fb2563597257d30d0cc25fc
402
402
  - test/dummy/tmp/cache/assets/development/sprockets/fc1c8dd76249106a788624558da20062
403
403
  - test/dummy/tmp/cache/assets/development/sprockets/fff835239214e2c684bd8ff954854862
404
- - test/dummy/tmp/pids/server.pid
405
404
  - test/test_helper.rb
406
405
  homepage: https://github.com/maxivak/bootstrap3_autocomplete_input
407
406
  licenses:
@@ -752,5 +751,4 @@ test_files:
752
751
  - test/dummy/tmp/cache/assets/development/sprockets/f8f634cf3fb2563597257d30d0cc25fc
753
752
  - test/dummy/tmp/cache/assets/development/sprockets/fc1c8dd76249106a788624558da20062
754
753
  - test/dummy/tmp/cache/assets/development/sprockets/fff835239214e2c684bd8ff954854862
755
- - test/dummy/tmp/pids/server.pid
756
754
  - test/test_helper.rb
@@ -1 +0,0 @@
1
- 9700