rails-jquery-autocomplete 1.0.4 → 1.0.5

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
- SHA256:
3
- metadata.gz: e21bc924451dba3cd1ccc4a3da6ec66e3b9eddacd534cd6a32a3fe6909472bad
4
- data.tar.gz: 4de8ba96113b9358f3f9da751e0c5d834e62cc894d38de8be686f4e4696f9839
2
+ SHA1:
3
+ metadata.gz: 6d901891bb3f9329f5587262b58ddd7c9d1e168c
4
+ data.tar.gz: 574bb2d664bb288d188c830f7b57aa1b1ccdb2b3
5
5
  SHA512:
6
- metadata.gz: 97dbdb5a5f5c046354bcae02e454dc02f3edee15df554f4868e8f18591951443289182d15cd599574f1bf6ed5b6385c3ca18028a751eb0e38bf5f8fc5ee58ba7
7
- data.tar.gz: 38e820dcf8ac26a62bfd02d1ac2ad528508f17af473b181c8dbf4a6336e9484be9a8619b164eccad5a3602300480278d4556c66665c47bb640c72b9bffd6bd2d
6
+ metadata.gz: 9b6a4af95fbbc3cb3e9b9da37ddc1294e2d0744309da0106df3f1c895d4a42b9683eee58e105038205b0f046f5113176d05806361e0bdd453fc05bffdfe407e7
7
+ data.tar.gz: f48fd7a901517b5ff02237635a2f1134e44d8c4b0472996a6374d385a2c17b3fb995a855aa897f81fa440de2967363df0476b80b715df8eeded183317152c4e5
@@ -5,11 +5,13 @@ module RailsJQueryAutocomplete
5
5
  order = options[:order]
6
6
 
7
7
  table_prefix = model ? "#{model.table_name}." : ""
8
- if sqlite?
8
+ sql = if sqlite?
9
9
  order || "LOWER(#{method}) ASC"
10
10
  else
11
11
  order || "LOWER(#{table_prefix}#{method}) ASC"
12
12
  end
13
+
14
+ Arel.sql(sql)
13
15
  end
14
16
 
15
17
  def active_record_get_autocomplete_items(parameters)
@@ -1,3 +1,3 @@
1
1
  module RailsJQueryAutocomplete
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
data/test/test_helper.rb CHANGED
@@ -11,11 +11,12 @@ module Rails
11
11
  end
12
12
  end
13
13
 
14
+ require 'minitest/autorun'
14
15
  require 'rails/all'
15
16
  require 'mongoid'
16
17
  require 'mongo_mapper'
17
18
  require 'shoulda'
18
- require 'rr'
19
+ require 'test/unit/rr'
19
20
  require 'rails/test_help'
20
21
  require 'rails-jquery-autocomplete'
21
22
 
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.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Padilla
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-07-12 00:00:00.000000000 Z
13
+ date: 2018-11-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -40,6 +40,20 @@ dependencies:
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
+ - !ruby/object:Gem::Dependency
44
+ name: minitest
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ type: :development
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
43
57
  - !ruby/object:Gem::Dependency
44
58
  name: mongoid
45
59
  requirement: !ruby/object:Gem::Requirement
@@ -111,19 +125,19 @@ dependencies:
111
125
  - !ruby/object:Gem::Version
112
126
  version: '0'
113
127
  - !ruby/object:Gem::Dependency
114
- name: test-unit
128
+ name: test-unit-rr
115
129
  requirement: !ruby/object:Gem::Requirement
116
130
  requirements:
117
- - - "~>"
131
+ - - ">="
118
132
  - !ruby/object:Gem::Version
119
- version: 2.2.0
133
+ version: '0'
120
134
  type: :development
121
135
  prerelease: false
122
136
  version_requirements: !ruby/object:Gem::Requirement
123
137
  requirements:
124
- - - "~>"
138
+ - - ">="
125
139
  - !ruby/object:Gem::Version
126
- version: 2.2.0
140
+ version: '0'
127
141
  - !ruby/object:Gem::Dependency
128
142
  name: shoulda
129
143
  requirement: !ruby/object:Gem::Requirement
@@ -152,20 +166,6 @@ dependencies:
152
166
  - - ">="
153
167
  - !ruby/object:Gem::Version
154
168
  version: '0'
155
- - !ruby/object:Gem::Dependency
156
- name: rr
157
- requirement: !ruby/object:Gem::Requirement
158
- requirements:
159
- - - ">="
160
- - !ruby/object:Gem::Version
161
- version: '0'
162
- type: :development
163
- prerelease: false
164
- version_requirements: !ruby/object:Gem::Requirement
165
- requirements:
166
- - - ">="
167
- - !ruby/object:Gem::Version
168
- version: '0'
169
169
  - !ruby/object:Gem::Dependency
170
170
  name: simple_form
171
171
  requirement: !ruby/object:Gem::Requirement
@@ -253,7 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
253
253
  version: '0'
254
254
  requirements: []
255
255
  rubyforge_project:
256
- rubygems_version: 2.7.7
256
+ rubygems_version: 2.4.3
257
257
  signing_key:
258
258
  specification_version: 4
259
259
  summary: Use jQuery's autocomplete plugin with Rails 4+.