rails-jquery-autocomplete 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf8cc770234ad7b4dc2e5f40ce94eeef32f8d863
4
- data.tar.gz: db3cdccdece71ac86dbe930c2ddfdf1978520651
3
+ metadata.gz: 75f1d8fc10d956833a2e3c8bc8f55c08d9e6f0c1
4
+ data.tar.gz: f33455b827bc5793fe83682250d40542636d9b18
5
5
  SHA512:
6
- metadata.gz: 5d9890a5fa77fa0067d4d8ccb8669ea04622c11a645da8e7e01861a18bd5ad45a86b155756fa1a6db8762304e2c95ab0873a8930c0f4d28bcb9f28393b45439d
7
- data.tar.gz: 3a6deefdc47513cdcd6830a4349f64972791de3d6f6536dee5d53c2f68d43c2fe0d37691161d9f3dcb2499467cca82630b2b0d0e2d6bcfbe426364b6a4fa85ac
6
+ metadata.gz: f64ae0807e77f728ae0f666650c6ee68e4ed0db2f44392058269e38407f51a31a90ad1e761a6f52328e0ae785f85aca45584c29d4f7c3ad05f9a9784e0095721
7
+ data.tar.gz: ed1f836c1705b34c2811be92c0596dd498ffd1c17cd6fee6d98522500f2f5a1b59c3c3d9bf60df6bc7ecf4a055ca54878f01f3005c6fa40e46a2e69f77ec0cf1
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ * 1.0.2
4
+ * Fixes compatibility with newer versions of Simple Form gem
5
+ * Fixes issue of not propagating events and issue of selected value not a string
6
+ * Fixes bug where form 'false' values are treated as true due to being
7
+ a string value.
8
+ * 1.0.1
9
+ * Option to enable/disable no matches found labeling
10
+ * 1.0.0
11
+ * Adds support for Rails 4
12
+
13
+ ___
14
+
15
+ Changes from here on are for the rails3-jquery-autocomplete gem release versions
16
+
17
+
3
18
  * 1.0.11
4
19
  * mongoid: escape regular expression in search
5
20
  * When possible, use jQuery .on() rather than .live()
data/README.md CHANGED
@@ -51,7 +51,7 @@ Install it
51
51
 
52
52
  bundle install
53
53
 
54
- ### Rails 4.x.x
54
+ ### Rails < 4.x.x
55
55
 
56
56
  Run the generator
57
57
 
@@ -82,14 +82,32 @@ Just add it to your app/assets/javascripts/application.js file
82
82
 
83
83
  //= require jquery
84
84
  //= require jquery_ujs
85
- //= require jquery-ui
85
+ //= require jquery-ui/autocomplete
86
86
  //= require autocomplete-rails
87
87
 
88
88
  ## Usage
89
89
 
90
+ ### Demo Application by [Yifei](https://github.com/yifeiwu)
91
+
92
+ A live demo can be seen
93
+
94
+ [here](https://rocky-thicket-9286.herokuapp.com/)
95
+
96
+ [source](https://github.com/yifeiwu/rails4-autocomplete-demo)
97
+
98
+ As a new developer, I had some issues getting this to work by following the documentation. However after trying some things and reading [Yoni Weisbrod](http://www.yoniweisbrod.com/autocomplete-magic-with-rails/)'s blog post, I was able to make the autocomplete work and implement a few useful features.
99
+
100
+ ##Some implemented features
101
+
102
+ 1. The css has been changed such that the results show up better against the box of suggestions. See `<app/assets/stylesheets/food.scss>` for details. I obtained this from a gist(forgive me I don't remember who the author is at the moment, please contact me if you do and I'll give credit). Upon mouseover/arrowkey presses, the selection will be highlighted.
103
+
104
+ 2. One Yoni's improvements, you can click on a suggested item to submit the search, instead of having to click on the submit button after clicking on the item. This is an example of how to hook onto the *railsAutocomplete.select* event.
105
+
106
+ 3. The autocomplete is implemented in the context of a search form with a simple scope search(see the food model and controller).
107
+
90
108
  ### Model Example
91
109
 
92
- Assuming you have a Brand model:
110
+ Assuming you have a Brand model that contains a name attribute:
93
111
 
94
112
  class Brand < ActiveRecord::Base
95
113
  end
@@ -112,6 +130,8 @@ This will create an action _autocomplete_brand_name_ on your controller, don't f
112
130
  resources :products do
113
131
  get :autocomplete_brand_name, :on => :collection
114
132
  end
133
+
134
+ Verify this path using `rake routes`, you will need it later for the **view** section.
115
135
 
116
136
  ### Options
117
137
 
@@ -79,7 +79,7 @@
79
79
  options[key] = attrVal ? attrVal : value;
80
80
  }
81
81
  });
82
- if(arguments[0].length == 0 && options.showNoMatches) {
82
+ if(arguments[0].length == 0 && jQuery.inArray(options.showNoMatches, [true, 'true'])) {
83
83
  arguments[0] = [];
84
84
  arguments[0][0] = { id: "", label: options.noMatchesLabel };
85
85
  }
@@ -97,7 +97,7 @@
97
97
  jQuery(jQuery(this).attr('data-id-element')).val() === "") {
98
98
  return;
99
99
  }
100
- jQuery(jQuery(this).attr('data-id-element')).val(ui.item ? ui.item.id : "");
100
+ jQuery(jQuery(this).attr('data-id-element')).val(ui.item ? ui.item.id : "").trigger('change');
101
101
 
102
102
  if (jQuery(this).attr('data-update-elements')) {
103
103
  var update_elements = jQuery.parseJSON(jQuery(this).attr("data-update-elements"));
@@ -112,7 +112,7 @@
112
112
  element.prop('checked', data[key]);
113
113
  }
114
114
  } else {
115
- element.val(ui.item ? data[key] : "");
115
+ element.val(ui.item ? data[key] : "").trigger('change');
116
116
  }
117
117
  }
118
118
  }
@@ -129,6 +129,8 @@
129
129
  return false;
130
130
  },
131
131
  select: function( event, ui ) {
132
+ // first ensure value is a string
133
+ ui.item.value = ui.item.value.toString();
132
134
  if(ui.item.value.toLowerCase().indexOf('no match') != -1 || ui.item.value.toLowerCase().indexOf('too many results') != -1){
133
135
  jQuery(this).trigger('railsAutocomplete.noMatch', ui);
134
136
  return false;
@@ -145,7 +147,7 @@
145
147
  } else {
146
148
  this.value = terms.join("");
147
149
  if (jQuery(this).attr('data-id-element')) {
148
- jQuery(jQuery(this).attr('data-id-element')).val(ui.item.id);
150
+ jQuery(jQuery(this).attr('data-id-element')).val(ui.item.id).trigger('change');
149
151
  }
150
152
  if (jQuery(this).attr('data-update-elements')) {
151
153
  var data = ui.item;
@@ -162,9 +164,9 @@
162
164
  }
163
165
  else{
164
166
  if((new_record && data[key] && data[key].indexOf('Create New') == -1) || !new_record){
165
- jQuery(update_elements[key]).val(data[key]);
167
+ jQuery(update_elements[key]).val(data[key]).trigger('change');
166
168
  }else{
167
- jQuery(update_elements[key]).val('');
169
+ jQuery(update_elements[key]).val('').trigger('change');
168
170
  }
169
171
  }
170
172
  }
@@ -173,7 +175,7 @@
173
175
  var remember_string = this.value;
174
176
  jQuery(this).bind('keyup.clearId', function(){
175
177
  if(jQuery.trim(jQuery(this).val()) != jQuery.trim(remember_string)){
176
- jQuery(jQuery(this).attr('data-id-element')).val("");
178
+ jQuery(jQuery(this).attr('data-id-element')).val("").trigger('change');
177
179
  jQuery(this).unbind('keyup.clearId');
178
180
  }
179
181
  });
@@ -1 +1 @@
1
- !function(t){t.fn.railsAutocomplete=function(){var e=function(){this.railsAutoCompleter||(this.railsAutoCompleter=new t.railsAutocomplete(this))};return void 0!==t.fn.on?t(document).on("focus",this.selector,e):this.live("focus",e)},t.railsAutocomplete=function(t){var e=t;this.init(e)},t.railsAutocomplete.options={showNoMatches:!0,noMatchesLabel:"no existing match"},t.railsAutocomplete.fn=t.railsAutocomplete.prototype={railsAutocomplete:"0.0.1"},t.railsAutocomplete.fn.extend=t.railsAutocomplete.extend=t.extend,t.railsAutocomplete.fn.extend({init:function(e){function a(t){return t.split(e.delimiter)}function i(t){return a(t).pop().replace(/^\s+/,"")}e.delimiter=t(e).attr("data-delimiter")||null,e.min_length=t(e).attr("min-length")||2,e.append_to=t(e).attr("data-append-to")||null,e.autoFocus=t(e).attr("data-auto-focus")||!1,t(e).autocomplete({appendTo:e.append_to,autoFocus:e.autoFocus,delay:t(e).attr("delay")||0,source:function(a,n){var o=this.element[0],r={term:i(a.term)};t(e).attr("data-autocomplete-fields")&&t.each(t.parseJSON(t(e).attr("data-autocomplete-fields")),function(e,a){r[e]=t(a).val()}),t.getJSON(t(e).attr("data-autocomplete"),r,function(){var a={};t.extend(a,t.railsAutocomplete.options),t.each(a,function(i,n){if(a.hasOwnProperty(i)){var o=t(e).attr("data-"+i);a[i]=o?o:n}}),0==arguments[0].length&&a.showNoMatches&&(arguments[0]=[],arguments[0][0]={id:"",label:a.noMatchesLabel}),t(arguments[0]).each(function(a,i){var n={};n[i.id]=i,t(e).data(n)}),n.apply(null,arguments),t(o).trigger("railsAutocomplete.source",arguments)})},change:function(e,a){if(t(this).is("[data-id-element]")&&""!==t(t(this).attr("data-id-element")).val()&&(t(t(this).attr("data-id-element")).val(a.item?a.item.id:""),t(this).attr("data-update-elements"))){var i=t.parseJSON(t(this).attr("data-update-elements")),n=a.item?t(this).data(a.item.id.toString()):{};if(i&&""===t(i.id).val())return;for(var o in i){var r=t(i[o]);r.is(":checkbox")?null!=n[o]&&r.prop("checked",n[o]):r.val(a.item?n[o]:"")}}},search:function(){var t=i(this.value);return t.length<e.min_length?!1:void 0},focus:function(){return!1},select:function(i,n){if(-1!=n.item.value.toLowerCase().indexOf("no match")||-1!=n.item.value.toLowerCase().indexOf("too many results"))return t(this).trigger("railsAutocomplete.noMatch",n),!1;var o=a(this.value);if(o.pop(),o.push(n.item.value),null!=e.delimiter)o.push(""),this.value=o.join(e.delimiter);else if(this.value=o.join(""),t(this).attr("data-id-element")&&t(t(this).attr("data-id-element")).val(n.item.id),t(this).attr("data-update-elements")){var r=n.item,l=-1!=n.item.value.indexOf("Create New")?!0:!1,u=t.parseJSON(t(this).attr("data-update-elements"));for(var s in u)"checkbox"===t(u[s]).attr("type")?r[s]===!0||1===r[s]?t(u[s]).attr("checked","checked"):t(u[s]).removeAttr("checked"):t(u[s]).val(l&&r[s]&&-1==r[s].indexOf("Create New")||!l?r[s]:"")}var c=this.value;return t(this).bind("keyup.clearId",function(){t.trim(t(this).val())!=t.trim(c)&&(t(t(this).attr("data-id-element")).val(""),t(this).unbind("keyup.clearId"))}),t(e).trigger("railsAutocomplete.select",n),!1}})}}),t(document).ready(function(){t("input[data-autocomplete]").railsAutocomplete()})}(jQuery);
1
+ !function(t){t.fn.railsAutocomplete=function(){var e=function(){this.railsAutoCompleter||(this.railsAutoCompleter=new t.railsAutocomplete(this))};return void 0!==t.fn.on?t(document).on("focus",this.selector,e):this.live("focus",e)},t.railsAutocomplete=function(t){var e=t;this.init(e)},t.railsAutocomplete.options={showNoMatches:!0,noMatchesLabel:"no existing match"},t.railsAutocomplete.fn=t.railsAutocomplete.prototype={railsAutocomplete:"0.0.1"},t.railsAutocomplete.fn.extend=t.railsAutocomplete.extend=t.extend,t.railsAutocomplete.fn.extend({init:function(e){function a(t){return t.split(e.delimiter)}function i(t){return a(t).pop().replace(/^\s+/,"")}e.delimiter=t(e).attr("data-delimiter")||null,e.min_length=t(e).attr("min-length")||2,e.append_to=t(e).attr("data-append-to")||null,e.autoFocus=t(e).attr("data-auto-focus")||!1,t(e).autocomplete({appendTo:e.append_to,autoFocus:e.autoFocus,delay:t(e).attr("delay")||0,source:function(a,r){var n=this.element[0],o={term:i(a.term)};t(e).attr("data-autocomplete-fields")&&t.each(t.parseJSON(t(e).attr("data-autocomplete-fields")),function(e,a){o[e]=t(a).val()}),t.getJSON(t(e).attr("data-autocomplete"),o,function(){var a={};t.extend(a,t.railsAutocomplete.options),t.each(a,function(i,r){if(a.hasOwnProperty(i)){var n=t(e).attr("data-"+i);a[i]=n?n:r}}),0==arguments[0].length&&t.inArray(a.showNoMatches,[!0,"true"])&&(arguments[0]=[],arguments[0][0]={id:"",label:a.noMatchesLabel}),t(arguments[0]).each(function(a,i){var r={};r[i.id]=i,t(e).data(r)}),r.apply(null,arguments),t(n).trigger("railsAutocomplete.source",arguments)})},change:function(e,a){if(t(this).is("[data-id-element]")&&""!==t(t(this).attr("data-id-element")).val()&&(t(t(this).attr("data-id-element")).val(a.item?a.item.id:"").trigger("change"),t(this).attr("data-update-elements"))){var i=t.parseJSON(t(this).attr("data-update-elements")),r=a.item?t(this).data(a.item.id.toString()):{};if(i&&""===t(i.id).val())return;for(var n in i){var o=t(i[n]);o.is(":checkbox")?null!=r[n]&&o.prop("checked",r[n]):o.val(a.item?r[n]:"").trigger("change")}}},search:function(){var t=i(this.value);return t.length<e.min_length?!1:void 0},focus:function(){return!1},select:function(i,r){if(r.item.value=r.item.value.toString(),-1!=r.item.value.toLowerCase().indexOf("no match")||-1!=r.item.value.toLowerCase().indexOf("too many results"))return t(this).trigger("railsAutocomplete.noMatch",r),!1;var n=a(this.value);if(n.pop(),n.push(r.item.value),null!=e.delimiter)n.push(""),this.value=n.join(e.delimiter);else if(this.value=n.join(""),t(this).attr("data-id-element")&&t(t(this).attr("data-id-element")).val(r.item.id).trigger("change"),t(this).attr("data-update-elements")){var o=r.item,l=-1!=r.item.value.indexOf("Create New")?!0:!1,u=t.parseJSON(t(this).attr("data-update-elements"));for(var s in u)"checkbox"===t(u[s]).attr("type")?o[s]===!0||1===o[s]?t(u[s]).attr("checked","checked"):t(u[s]).removeAttr("checked"):l&&o[s]&&-1==o[s].indexOf("Create New")||!l?t(u[s]).val(o[s]).trigger("change"):t(u[s]).val("").trigger("change")}var c=this.value;return t(this).bind("keyup.clearId",function(){t.trim(t(this).val())!=t.trim(c)&&(t(t(this).attr("data-id-element")).val("").trigger("change"),t(this).unbind("keyup.clearId"))}),t(e).trigger("railsAutocomplete.select",r),!1}})}}),t(document).ready(function(){t("input[data-autocomplete]").railsAutocomplete()})}(jQuery);
@@ -17,14 +17,6 @@ module SimpleForm
17
17
  class AutocompleteInput < Base
18
18
  include Autocomplete
19
19
 
20
- def input
21
- @builder.autocomplete_field(
22
- attribute_name,
23
- options[:url],
24
- rewrite_autocomplete_option
25
- )
26
- end
27
-
28
20
  protected
29
21
  def limit
30
22
  column && column.limit
@@ -33,12 +25,29 @@ module SimpleForm
33
25
  def has_placeholder?
34
26
  placeholder_present?
35
27
  end
28
+
29
+ def input(args = nil)
30
+ # This branching is to deal with a change beginning in simple_form 3.0.2 and above to ensure backwards compatibility
31
+ if args.nil?
32
+ @builder.autocomplete_field(
33
+ attribute_name,
34
+ options[:url],
35
+ rewrite_autocomplete_option
36
+ )
37
+ else
38
+ @builder.autocomplete_field(
39
+ attribute_name,
40
+ options[:url],
41
+ merge_wrapper_options(rewrite_autocomplete_option, args)
42
+ )
43
+ end
44
+ end
36
45
  end
37
46
 
38
47
  class AutocompleteCollectionInput < CollectionInput
39
48
  include Autocomplete
40
49
 
41
- def input
50
+ def input(opts)
42
51
  # http://www.codeofficer.com/blog/entry/form_builders_in_rails_discovering_field_names_and_ids_for_javascript/
43
52
  hidden_id = "#{object_name}_#{attribute_name}_hidden".gsub(/\]\[|[^-a-zA-Z0-9:.]/, "_").sub(/_$/, "")
44
53
  id_element = options[:id_element]
@@ -48,8 +57,14 @@ module SimpleForm
48
57
  id_element = "#" + hidden_id
49
58
  end
50
59
  options[:id_element] = id_element
51
- autocomplete_options = rewrite_autocomplete_option
52
- #
60
+
61
+ # This branching is to deal with a change beginning in simple_form 3.0.2 and above to ensure backwards compatibility
62
+ if opts.nil?
63
+ autocomplete_options = rewrite_autocomplete_option
64
+ else
65
+ merge_wrapper_options(rewrite_autocomplete_option, args)
66
+ end
67
+
53
68
  label_method, value_method = detect_collection_methods
54
69
  association = object.send(reflection.name)
55
70
  if association && association.respond_to?(label_method)
@@ -1,3 +1,3 @@
1
1
  module RailsJQueryAutocomplete
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-jquery-autocomplete
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Padilla
@@ -10,174 +10,174 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-06-22 00:00:00.000000000 Z
13
+ date: 2015-08-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - '>='
19
+ - - ">="
20
20
  - !ruby/object:Gem::Version
21
21
  version: '3.2'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - '>='
26
+ - - ">="
27
27
  - !ruby/object:Gem::Version
28
28
  version: '3.2'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: sqlite3-ruby
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - '>='
33
+ - - ">="
34
34
  - !ruby/object:Gem::Version
35
35
  version: '0'
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - '>='
40
+ - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: mongoid
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - '>='
47
+ - - ">="
48
48
  - !ruby/object:Gem::Version
49
49
  version: 2.0.0
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - '>='
54
+ - - ">="
55
55
  - !ruby/object:Gem::Version
56
56
  version: 2.0.0
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: mongo_mapper
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - '>='
61
+ - - ">="
62
62
  - !ruby/object:Gem::Version
63
63
  version: '0.9'
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - '>='
68
+ - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0.9'
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: bson_ext
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - ~>
75
+ - - "~>"
76
76
  - !ruby/object:Gem::Version
77
77
  version: 1.6.2
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - ~>
82
+ - - "~>"
83
83
  - !ruby/object:Gem::Version
84
84
  version: 1.6.2
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: guard
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
- - - '>='
89
+ - - ">="
90
90
  - !ruby/object:Gem::Version
91
91
  version: '0'
92
92
  type: :development
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - '>='
96
+ - - ">="
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: guard-test
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - '>='
103
+ - - ">="
104
104
  - !ruby/object:Gem::Version
105
105
  version: '0'
106
106
  type: :development
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - '>='
110
+ - - ">="
111
111
  - !ruby/object:Gem::Version
112
112
  version: '0'
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: test-unit
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - ~>
117
+ - - "~>"
118
118
  - !ruby/object:Gem::Version
119
119
  version: 2.2.0
120
120
  type: :development
121
121
  prerelease: false
122
122
  version_requirements: !ruby/object:Gem::Requirement
123
123
  requirements:
124
- - - ~>
124
+ - - "~>"
125
125
  - !ruby/object:Gem::Version
126
126
  version: 2.2.0
127
127
  - !ruby/object:Gem::Dependency
128
128
  name: shoulda
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
- - - ~>
131
+ - - "~>"
132
132
  - !ruby/object:Gem::Version
133
133
  version: 3.0.1
134
134
  type: :development
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
- - - ~>
138
+ - - "~>"
139
139
  - !ruby/object:Gem::Version
140
140
  version: 3.0.1
141
141
  - !ruby/object:Gem::Dependency
142
142
  name: uglifier
143
143
  requirement: !ruby/object:Gem::Requirement
144
144
  requirements:
145
- - - '>='
145
+ - - ">="
146
146
  - !ruby/object:Gem::Version
147
147
  version: '0'
148
148
  type: :development
149
149
  prerelease: false
150
150
  version_requirements: !ruby/object:Gem::Requirement
151
151
  requirements:
152
- - - '>='
152
+ - - ">="
153
153
  - !ruby/object:Gem::Version
154
154
  version: '0'
155
155
  - !ruby/object:Gem::Dependency
156
156
  name: rr
157
157
  requirement: !ruby/object:Gem::Requirement
158
158
  requirements:
159
- - - '>='
159
+ - - ">="
160
160
  - !ruby/object:Gem::Version
161
161
  version: '0'
162
162
  type: :development
163
163
  prerelease: false
164
164
  version_requirements: !ruby/object:Gem::Requirement
165
165
  requirements:
166
- - - '>='
166
+ - - ">="
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  - !ruby/object:Gem::Dependency
170
170
  name: simple_form
171
171
  requirement: !ruby/object:Gem::Requirement
172
172
  requirements:
173
- - - ~>
173
+ - - "~>"
174
174
  - !ruby/object:Gem::Version
175
175
  version: '1.5'
176
176
  type: :development
177
177
  prerelease: false
178
178
  version_requirements: !ruby/object:Gem::Requirement
179
179
  requirements:
180
- - - ~>
180
+ - - "~>"
181
181
  - !ruby/object:Gem::Version
182
182
  version: '1.5'
183
183
  description: Use jQuery's autocomplete plugin with Rails 4+.
@@ -186,28 +186,28 @@ executables: []
186
186
  extensions: []
187
187
  extra_rdoc_files: []
188
188
  files:
189
+ - CHANGELOG.md
190
+ - LICENSE
191
+ - README.md
192
+ - Rakefile
189
193
  - lib/assets/javascripts/autocomplete-rails-uncompressed.js
190
194
  - lib/assets/javascripts/autocomplete-rails.js
191
195
  - lib/cucumber/autocomplete.rb
192
196
  - lib/generators/autocomplete/install_generator.rb
193
197
  - lib/generators/autocomplete/uncompressed_generator.rb
198
+ - lib/rails-jquery-autocomplete.rb
194
199
  - lib/rails-jquery-autocomplete/autocomplete.rb
195
200
  - lib/rails-jquery-autocomplete/form_helper.rb
196
201
  - lib/rails-jquery-autocomplete/formtastic.rb
197
202
  - lib/rails-jquery-autocomplete/formtastic_plugin.rb
203
+ - lib/rails-jquery-autocomplete/orm.rb
198
204
  - lib/rails-jquery-autocomplete/orm/active_record.rb
199
205
  - lib/rails-jquery-autocomplete/orm/mongo_mapper.rb
200
206
  - lib/rails-jquery-autocomplete/orm/mongoid.rb
201
- - lib/rails-jquery-autocomplete/orm.rb
202
207
  - lib/rails-jquery-autocomplete/rails/engine.rb
203
208
  - lib/rails-jquery-autocomplete/simple_form_plugin.rb
204
209
  - lib/rails-jquery-autocomplete/version.rb
205
- - lib/rails-jquery-autocomplete.rb
206
210
  - lib/steak/autocomplete.rb
207
- - CHANGELOG.md
208
- - LICENSE
209
- - README.md
210
- - Rakefile
211
211
  - test/form_helper_test.rb
212
212
  - test/generators/autocomplete/install_generator_test.rb
213
213
  - test/generators/autocomplete/uncompressed_generator_test.rb
@@ -229,17 +229,17 @@ require_paths:
229
229
  - lib
230
230
  required_ruby_version: !ruby/object:Gem::Requirement
231
231
  requirements:
232
- - - '>='
232
+ - - ">="
233
233
  - !ruby/object:Gem::Version
234
234
  version: '0'
235
235
  required_rubygems_version: !ruby/object:Gem::Requirement
236
236
  requirements:
237
- - - '>='
237
+ - - ">="
238
238
  - !ruby/object:Gem::Version
239
239
  version: '0'
240
240
  requirements: []
241
241
  rubyforge_project:
242
- rubygems_version: 2.1.11
242
+ rubygems_version: 2.4.6
243
243
  signing_key:
244
244
  specification_version: 4
245
245
  summary: Use jQuery's autocomplete plugin with Rails 4+.