rails3-jquery-autocomplete 1.0.13 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +35 -0
- data/lib/assets/javascripts/autocomplete-rails-uncompressed.js +27 -6
- data/lib/assets/javascripts/autocomplete-rails.js +15 -1
- data/lib/rails3-jquery-autocomplete/autocomplete.rb +2 -2
- data/lib/rails3-jquery-autocomplete/form_helper.rb +2 -0
- data/lib/rails3-jquery-autocomplete/simple_form_plugin.rb +1 -0
- data/lib/rails3-jquery-autocomplete/version.rb +1 -1
- metadata +169 -139
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 97a7eb65d8d430956188d9b7521b0952d833186f
|
4
|
+
data.tar.gz: 9fbc518289ed0d1fd2c0eefaa488fe3963c98086
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e618d647ff1ac67840f71ea52c3c4d32272c64f74782d1b26404e6ccf1a847ad0e6348f665d05086846e68355e1f55c4f32c7ecff0885d02a341ae33d8c8e8fd
|
7
|
+
data.tar.gz: 253967303d8868ab4c1ee5e9a4ee43c6fd84b6d413dc3ddcd0394c1d5fa95f997a8823a640b24553f8dcebbaba92759b3d6a3031aa484523806c3cf1fea37a50
|
data/README.md
CHANGED
@@ -274,6 +274,41 @@ If you need to use the id of the selected object, you can use the *id_element* a
|
|
274
274
|
|
275
275
|
This will update the field with id *#some_element with the id of the selected object. The value for this option can be any jQuery selector.
|
276
276
|
|
277
|
+
### Changing destination element
|
278
|
+
|
279
|
+
If you need to change destination element where the autocomplete box will be appended to, you can use the **:append_to** option which generates a **data-append-to** HTML attribute that is used in jQuery autocomplete as append_to attribute.
|
280
|
+
|
281
|
+
The :append_to option accepts a string containing jQuery selector for destination element:
|
282
|
+
|
283
|
+
f.autocomplete_field :product_name, '/products/autocomplete_product_name', :append_to => "#product_modal"
|
284
|
+
|
285
|
+
The previous example would append the autocomplete box containing suggestions to element jQuery('#product_modal').
|
286
|
+
This is very useful on page where you use various z-indexes and you need to append the box to the topmost element, for example using modal window.
|
287
|
+
|
288
|
+
### Sending extra search fields
|
289
|
+
|
290
|
+
If you want to send extra fields from your form to the search action,
|
291
|
+
you can use the **:fields** options which generates a **data-autocomplete-fields**
|
292
|
+
HTML attribute.
|
293
|
+
|
294
|
+
The :fields option accepts a hash where the keys represent the Ajax request
|
295
|
+
parameter name and the values represent the jQuery selectors to retrieve the
|
296
|
+
form elements to get the values:
|
297
|
+
|
298
|
+
f.autocomplete_field :product_name, '/products/autocomplete_product_name', :fields => {:brand_id => '#brand_element', :country => '#country_element'}
|
299
|
+
|
300
|
+
class ProductsController < Admin::BaseController
|
301
|
+
def autocomplete_product_name
|
302
|
+
term = params[:term]
|
303
|
+
brand_id = params[:brand_id]
|
304
|
+
country = params[:country]
|
305
|
+
products = Product.where('brand = ? AND country = ? AND name LIKE ?', brand_id, country, "%#{term}%").order(:name).all
|
306
|
+
render :json => products.map { |product| {:id => product.id, :label => product.name, :value => product.name} }
|
307
|
+
end
|
308
|
+
end
|
309
|
+
|
310
|
+
The previous example would fetch the extra attribute slogan and update jQuery('#some_other_element') with the slogan value.
|
311
|
+
|
277
312
|
### Getting extra object data
|
278
313
|
|
279
314
|
If you need to extra data about the selected object, you can use the *:update_elements* HTML attribute.
|
@@ -45,6 +45,7 @@
|
|
45
45
|
init: function(e) {
|
46
46
|
e.delimiter = jQuery(e).attr('data-delimiter') || null;
|
47
47
|
e.min_length = jQuery(e).attr('min-length') || 2;
|
48
|
+
e.append_to = jQuery(e).attr('data-append-to') || null;
|
48
49
|
function split( val ) {
|
49
50
|
return val.split( e.delimiter );
|
50
51
|
}
|
@@ -53,10 +54,15 @@
|
|
53
54
|
}
|
54
55
|
|
55
56
|
jQuery(e).autocomplete({
|
57
|
+
appendTo: e.append_to,
|
56
58
|
source: function( request, response ) {
|
57
|
-
|
58
|
-
|
59
|
-
|
59
|
+
params = {term: extractLast( request.term )}
|
60
|
+
if (jQuery(e).attr('data-autocomplete-fields')) {
|
61
|
+
jQuery.each(jQuery.parseJSON(jQuery(e).attr('data-autocomplete-fields')), function(field, selector) {
|
62
|
+
params[field] = jQuery(selector).val();
|
63
|
+
});
|
64
|
+
}
|
65
|
+
jQuery.getJSON( jQuery(e).attr('data-autocomplete'), params, function() {
|
60
66
|
if(arguments[0].length == 0) {
|
61
67
|
arguments[0] = []
|
62
68
|
arguments[0][0] = { id: "", label: "no existing match" }
|
@@ -70,7 +76,8 @@
|
|
70
76
|
});
|
71
77
|
},
|
72
78
|
change: function( event, ui ) {
|
73
|
-
if(jQuery(
|
79
|
+
if(!jQuery(this).is('[data-id-element]') ||
|
80
|
+
jQuery(jQuery(this).attr('data-id-element')).val() == "") {
|
74
81
|
return;
|
75
82
|
}
|
76
83
|
jQuery(jQuery(this).attr('data-id-element')).val(ui.item ? ui.item.id : "");
|
@@ -82,7 +89,14 @@
|
|
82
89
|
return;
|
83
90
|
}
|
84
91
|
for (var key in update_elements) {
|
85
|
-
jQuery(update_elements[key])
|
92
|
+
element = jQuery(update_elements[key]);
|
93
|
+
if (element.is(':checkbox')) {
|
94
|
+
if (data[key] != null) {
|
95
|
+
element.prop('checked', data[key]);
|
96
|
+
}
|
97
|
+
} else {
|
98
|
+
element.val(ui.item ? data[key] : "");
|
99
|
+
}
|
86
100
|
}
|
87
101
|
}
|
88
102
|
},
|
@@ -116,7 +130,14 @@
|
|
116
130
|
var data = jQuery(this).data(ui.item.id.toString());
|
117
131
|
var update_elements = jQuery.parseJSON(jQuery(this).attr("data-update-elements"));
|
118
132
|
for (var key in update_elements) {
|
119
|
-
|
133
|
+
element = jQuery(update_elements[key]);
|
134
|
+
if (element.is(':checkbox')) {
|
135
|
+
if (data[key] != null) {
|
136
|
+
element.prop('checked', data[key]);
|
137
|
+
}
|
138
|
+
} else {
|
139
|
+
element.val(data[key]);
|
140
|
+
}
|
120
141
|
}
|
121
142
|
}
|
122
143
|
}
|
@@ -1 +1,15 @@
|
|
1
|
-
|
1
|
+
/*
|
2
|
+
* Unobtrusive autocomplete
|
3
|
+
*
|
4
|
+
* To use it, you just have to include the HTML attribute autocomplete
|
5
|
+
* with the autocomplete URL as the value
|
6
|
+
*
|
7
|
+
* Example:
|
8
|
+
* <input type="text" data-autocomplete="/url/to/autocomplete">
|
9
|
+
*
|
10
|
+
* Optionally, you can use a jQuery selector to specify a field that can
|
11
|
+
* be updated with the element id whenever you find a matching value
|
12
|
+
*
|
13
|
+
* Example:
|
14
|
+
* <input type="text" data-autocomplete="/url/to/autocomplete" data-id-element="#id_field">
|
15
|
+
*/(function(e){var t=null;e.fn.railsAutocomplete=function(){var t=function(){this.railsAutoCompleter||(this.railsAutoCompleter=new e.railsAutocomplete(this))};return e.fn.on!==undefined?e(document).on("focus",this.selector,t):this.live("focus",t)},e.railsAutocomplete=function(e){_e=e,this.init(_e)},e.railsAutocomplete.fn=e.railsAutocomplete.prototype={railsAutocomplete:"0.0.1"},e.railsAutocomplete.fn.extend=e.railsAutocomplete.extend=e.extend,e.railsAutocomplete.fn.extend({init:function(t){function n(e){return e.split(t.delimiter)}function r(e){return n(e).pop().replace(/^\s+/,"")}t.delimiter=e(t).attr("data-delimiter")||null,t.min_length=e(t).attr("min-length")||2,t.append_to=e(t).attr("data-append-to")||null,e(t).autocomplete({appendTo:t.append_to,source:function(n,i){params={term:r(n.term)},e(t).attr("data-autocomplete-fields")&&e.each(e.parseJSON(e(t).attr("data-autocomplete-fields")),function(t,n){params[t]=e(n).val()}),e.getJSON(e(t).attr("data-autocomplete"),params,function(){arguments[0].length==0&&(arguments[0]=[],arguments[0][0]={id:"",label:"no existing match"}),e(arguments[0]).each(function(n,r){var i={};i[r.id]=r,e(t).data(i)}),i.apply(null,arguments)})},change:function(t,n){if(!e(this).is("[data-id-element]")||e(e(this).attr("data-id-element")).val()=="")return;e(e(this).attr("data-id-element")).val(n.item?n.item.id:"");if(e(this).attr("data-update-elements")){var r=e.parseJSON(e(this).attr("data-update-elements")),i=n.item?e(this).data(n.item.id.toString()):{};if(r&&e(r["id"]).val()=="")return;for(var s in r)element=e(r[s]),element.is(":checkbox")?i[s]!=null&&element.prop("checked",i[s]):element.val(n.item?i[s]:"")}},search:function(){var e=r(this.value);if(e.length<t.min_length)return!1},focus:function(){return!1},select:function(r,i){var s=n(this.value);s.pop(),s.push(i.item.value);if(t.delimiter!=null)s.push(""),this.value=s.join(t.delimiter);else{this.value=s.join(""),e(this).attr("data-id-element")&&e(e(this).attr("data-id-element")).val(i.item.id);if(e(this).attr("data-update-elements")){var o=e(this).data(i.item.id.toString()),u=e.parseJSON(e(this).attr("data-update-elements"));for(var a in u)element=e(u[a]),element.is(":checkbox")?o[a]!=null&&element.prop("checked",o[a]):element.val(o[a])}}var f=this.value;return e(this).bind("keyup.clearId",function(){e.trim(e(this).val())!=e.trim(f)&&(e(e(this).attr("data-id-element")).val(""),e(this).unbind("keyup.clearId"))}),e(t).trigger("railsAutocomplete.select",i),!1}})}}),e(document).ready(function(){e("input[data-autocomplete]").railsAutocomplete()})})(jQuery);
|
@@ -72,7 +72,7 @@ module Rails3JQueryAutocomplete
|
|
72
72
|
items = {}
|
73
73
|
end
|
74
74
|
|
75
|
-
render :json => json_for_autocomplete(items, options[:display_value] ||= method, options[:extra_data], &block)
|
75
|
+
render :json => json_for_autocomplete(items, options[:display_value] ||= method, options[:extra_data], &block), root: false
|
76
76
|
end
|
77
77
|
end
|
78
78
|
end
|
@@ -97,7 +97,7 @@ module Rails3JQueryAutocomplete
|
|
97
97
|
# Hash also includes a key/value pair for each method in extra_data
|
98
98
|
#
|
99
99
|
def json_for_autocomplete(items, method, extra_data=[])
|
100
|
-
items.collect
|
100
|
+
items = items.collect do |item|
|
101
101
|
hash = {"id" => item.id.to_s, "label" => item.send(method), "value" => item.send(method)}
|
102
102
|
extra_data.each do |datum|
|
103
103
|
hash[datum] = item.send(datum)
|
@@ -33,8 +33,10 @@ module ActionView
|
|
33
33
|
#
|
34
34
|
private
|
35
35
|
def rewrite_autocomplete_option(options)
|
36
|
+
options["data-autocomplete-fields"] = JSON.generate(options.delete :fields) if options[:fields]
|
36
37
|
options["data-update-elements"] = JSON.generate(options.delete :update_elements) if options[:update_elements]
|
37
38
|
options["data-id-element"] = options.delete :id_element if options[:id_element]
|
39
|
+
options["data-append-to"] = options.delete :append_to if options[:append_to]
|
38
40
|
options
|
39
41
|
end
|
40
42
|
end
|
@@ -7,6 +7,7 @@ module SimpleForm
|
|
7
7
|
#
|
8
8
|
def rewrite_autocomplete_option
|
9
9
|
new_options = {}
|
10
|
+
new_options["data-autocomplete-fields"] = JSON.generate(options.delete :fields) if options[:fields]
|
10
11
|
new_options["data-update-elements"] = JSON.generate(options.delete :update_elements) if options[:update_elements]
|
11
12
|
new_options["data-id-element"] = options.delete :id_element if options[:id_element]
|
12
13
|
input_html_options.merge new_options
|
metadata
CHANGED
@@ -1,171 +1,205 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails3-jquery-autocomplete
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 1.0.13
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.14
|
6
5
|
platform: ruby
|
7
|
-
authors:
|
6
|
+
authors:
|
8
7
|
- David Padilla
|
9
8
|
- Joiey Seeley
|
10
9
|
- Manu S Ajith
|
11
10
|
autorequire:
|
12
11
|
bindir: bin
|
13
12
|
cert_chain: []
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2014-03-31 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
18
16
|
name: rails
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
- !ruby/object:Gem::Version
|
25
|
-
version: "3.0"
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '3.0'
|
26
22
|
type: :runtime
|
27
|
-
version_requirements: *id001
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
|
-
name: sqlite3-ruby
|
30
23
|
prerelease: false
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - '>='
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: '3.0'
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: sqlite3-ruby
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - '>='
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '0'
|
37
36
|
type: :development
|
38
|
-
version_requirements: *id002
|
39
|
-
- !ruby/object:Gem::Dependency
|
40
|
-
name: mongoid
|
41
37
|
prerelease: false
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - '>='
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: mongoid
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - '>='
|
48
|
+
- !ruby/object:Gem::Version
|
47
49
|
version: 2.0.0
|
48
50
|
type: :development
|
49
|
-
version_requirements: *id003
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: mongo_mapper
|
52
51
|
prerelease: false
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 2.0.0
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: mongo_mapper
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - '>='
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0.9'
|
59
64
|
type: :development
|
60
|
-
version_requirements: *id004
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: mongo
|
63
65
|
prerelease: false
|
64
|
-
|
65
|
-
|
66
|
-
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0.9'
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: mongo
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
67
75
|
- - ~>
|
68
|
-
- !ruby/object:Gem::Version
|
76
|
+
- !ruby/object:Gem::Version
|
69
77
|
version: 1.6.2
|
70
78
|
type: :development
|
71
|
-
version_requirements: *id005
|
72
|
-
- !ruby/object:Gem::Dependency
|
73
|
-
name: bson_ext
|
74
79
|
prerelease: false
|
75
|
-
|
76
|
-
|
77
|
-
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ~>
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 1.6.2
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: bson_ext
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
78
89
|
- - ~>
|
79
|
-
- !ruby/object:Gem::Version
|
90
|
+
- !ruby/object:Gem::Version
|
80
91
|
version: 1.6.2
|
81
92
|
type: :development
|
82
|
-
version_requirements: *id006
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: guard
|
85
93
|
prerelease: false
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ~>
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: 1.6.2
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
name: guard
|
101
|
+
requirement: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - '>='
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '0'
|
92
106
|
type: :development
|
93
|
-
version_requirements: *id007
|
94
|
-
- !ruby/object:Gem::Dependency
|
95
|
-
name: guard-test
|
96
107
|
prerelease: false
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - '>='
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0'
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: guard-test
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - '>='
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '0'
|
103
120
|
type: :development
|
104
|
-
version_requirements: *id008
|
105
|
-
- !ruby/object:Gem::Dependency
|
106
|
-
name: test-unit
|
107
121
|
prerelease: false
|
108
|
-
|
109
|
-
|
110
|
-
|
122
|
+
version_requirements: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - '>='
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: test-unit
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
111
131
|
- - ~>
|
112
|
-
- !ruby/object:Gem::Version
|
132
|
+
- !ruby/object:Gem::Version
|
113
133
|
version: 2.2.0
|
114
134
|
type: :development
|
115
|
-
version_requirements: *id009
|
116
|
-
- !ruby/object:Gem::Dependency
|
117
|
-
name: shoulda
|
118
135
|
prerelease: false
|
119
|
-
|
120
|
-
|
121
|
-
requirements:
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
122
138
|
- - ~>
|
123
|
-
- !ruby/object:Gem::Version
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: 2.2.0
|
141
|
+
- !ruby/object:Gem::Dependency
|
142
|
+
name: shoulda
|
143
|
+
requirement: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - ~>
|
146
|
+
- !ruby/object:Gem::Version
|
124
147
|
version: 3.0.1
|
125
148
|
type: :development
|
126
|
-
version_requirements: *id010
|
127
|
-
- !ruby/object:Gem::Dependency
|
128
|
-
name: uglifier
|
129
149
|
prerelease: false
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
150
|
+
version_requirements: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - ~>
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: 3.0.1
|
155
|
+
- !ruby/object:Gem::Dependency
|
156
|
+
name: uglifier
|
157
|
+
requirement: !ruby/object:Gem::Requirement
|
158
|
+
requirements:
|
159
|
+
- - '>='
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: '0'
|
136
162
|
type: :development
|
137
|
-
version_requirements: *id011
|
138
|
-
- !ruby/object:Gem::Dependency
|
139
|
-
name: rr
|
140
163
|
prerelease: false
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
164
|
+
version_requirements: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - '>='
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: '0'
|
169
|
+
- !ruby/object:Gem::Dependency
|
170
|
+
name: rr
|
171
|
+
requirement: !ruby/object:Gem::Requirement
|
172
|
+
requirements:
|
173
|
+
- - '>='
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: '0'
|
147
176
|
type: :development
|
148
|
-
version_requirements: *id012
|
149
|
-
- !ruby/object:Gem::Dependency
|
150
|
-
name: simple_form
|
151
177
|
prerelease: false
|
152
|
-
|
153
|
-
|
154
|
-
|
178
|
+
version_requirements: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - '>='
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '0'
|
183
|
+
- !ruby/object:Gem::Dependency
|
184
|
+
name: simple_form
|
185
|
+
requirement: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
155
187
|
- - ~>
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
version:
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '1.5'
|
158
190
|
type: :development
|
159
|
-
|
191
|
+
prerelease: false
|
192
|
+
version_requirements: !ruby/object:Gem::Requirement
|
193
|
+
requirements:
|
194
|
+
- - ~>
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
version: '1.5'
|
160
197
|
description: Use jQuery's autocomplete plugin with Rails 3.
|
161
198
|
email: david.padilla@crowdint.com joiey.seeley@gmail.com neo@codingarena.in
|
162
199
|
executables: []
|
163
|
-
|
164
200
|
extensions: []
|
165
|
-
|
166
201
|
extra_rdoc_files: []
|
167
|
-
|
168
|
-
files:
|
202
|
+
files:
|
169
203
|
- lib/assets/javascripts/autocomplete-rails-uncompressed.js
|
170
204
|
- lib/assets/javascripts/autocomplete-rails.js
|
171
205
|
- lib/cucumber/autocomplete.rb
|
@@ -200,33 +234,30 @@ files:
|
|
200
234
|
- test/test_helper.rb
|
201
235
|
- test/view_test_helper.rb
|
202
236
|
homepage: http://github.com/crowdint/rails3-jquery-autocomplete
|
203
|
-
licenses:
|
237
|
+
licenses:
|
204
238
|
- MIT
|
239
|
+
metadata: {}
|
205
240
|
post_install_message:
|
206
241
|
rdoc_options: []
|
207
|
-
|
208
|
-
require_paths:
|
242
|
+
require_paths:
|
209
243
|
- lib
|
210
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
- !ruby/object:Gem::Version
|
221
|
-
version: "0"
|
244
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
245
|
+
requirements:
|
246
|
+
- - '>='
|
247
|
+
- !ruby/object:Gem::Version
|
248
|
+
version: '0'
|
249
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
250
|
+
requirements:
|
251
|
+
- - '>='
|
252
|
+
- !ruby/object:Gem::Version
|
253
|
+
version: '0'
|
222
254
|
requirements: []
|
223
|
-
|
224
255
|
rubyforge_project:
|
225
|
-
rubygems_version: 1.
|
256
|
+
rubygems_version: 2.1.11
|
226
257
|
signing_key:
|
227
|
-
specification_version:
|
258
|
+
specification_version: 4
|
228
259
|
summary: Use jQuery's autocomplete plugin with Rails 3.
|
229
|
-
test_files:
|
260
|
+
test_files:
|
230
261
|
- test/form_helper_test.rb
|
231
262
|
- test/generators/autocomplete/install_generator_test.rb
|
232
263
|
- test/generators/autocomplete/uncompressed_generator_test.rb
|
@@ -238,4 +269,3 @@ test_files:
|
|
238
269
|
- test/lib/rails3-jquery-autocomplete_test.rb
|
239
270
|
- test/test_helper.rb
|
240
271
|
- test/view_test_helper.rb
|
241
|
-
has_rdoc:
|