algoliasearch-rails 1.11.16 → 1.11.17

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: 0314a1cf971498915381a9bc40d799957741dac9
4
- data.tar.gz: 1b4ec11e8dce8b6453668654196545da121c7ba5
3
+ metadata.gz: 55fbc5ac8483cb4609a0102a438d0d988f14950e
4
+ data.tar.gz: 487ba5769e40b3dee94861d2478d4809ce018c7a
5
5
  SHA512:
6
- metadata.gz: 7ddef9393f93047c462a3477a299d0738afbdf3eadcf42bd3f2c38b455291bf653f3a46daef5f8f27c83713ea3913f8727a17f346ee98a7683fe5a6d3c3929d7
7
- data.tar.gz: 1c45f458585ec12825c66d57b5895fd310bfaee34be6a8611c3ab7c9a13aadb9c10a64ade1f23ed4e6bb07669b6077f93805dff2323e8dc73b51ac8bda5e9709
6
+ metadata.gz: 007e97d90dff45d6fecb0e769bfd36f87d5721d5d5861a9225dc4a3758a0be167244019380fc753e3208d4ed2be157188dc49b8d0789a93db1ed88d16a6f720f
7
+ data.tar.gz: 68dbf288873f169a4f135f7ad4634266a27cb6a8123ed4624cce3f0c890e5fa9e9936dd45afcec4645e0be92eef62e46d37ea670964666a87f8e70543365eb34
data/.travis.yml CHANGED
@@ -7,6 +7,7 @@ rvm:
7
7
  - 1.9.3
8
8
  - 2.0.0
9
9
  - 2.1.0
10
+ - 2.2.0
10
11
  - jruby
11
12
  - rbx-2
12
13
  env:
data/ChangeLog CHANGED
@@ -1,5 +1,9 @@
1
1
  CHANGELOG
2
2
 
3
+ 2015-03-08 1.11.17
4
+
5
+ * Add missing index settings (including removeWordsIfNoResults, unretrievableAttributes and ignorePlurals)
6
+
3
7
  2015-02-23 1.11.16
4
8
 
5
9
  * Include jQuery & Angular related builds in the gem
data/Gemfile CHANGED
@@ -4,7 +4,7 @@ gem 'json', '>= 1.5.1'
4
4
  gem 'algoliasearch', '~> 1.2.14'
5
5
  gem 'rubysl', '~> 2.0', :platform => :rbx
6
6
 
7
- group :test do
7
+ group :test do
8
8
  gem 'rspec', '>= 2.5.0', '< 3.0'
9
9
  gem 'rails', '>= 3.2.0', '< 4.0'
10
10
  gem 'sqlite3', :platform => [:rbx, :ruby]
@@ -12,7 +12,7 @@ group :test do
12
12
  gem 'activerecord-jdbc-adapter', :platform => :jruby
13
13
  gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
14
14
  gem 'autotest'
15
- gem 'autotest-fsevent'
15
+ gem 'autotest-fsevent', '~> 0.2.10'
16
16
  gem 'redgreen'
17
17
  gem 'autotest-growl'
18
18
  end
data/Gemfile.lock CHANGED
@@ -41,7 +41,7 @@ GEM
41
41
  arel (3.0.3)
42
42
  autotest (4.4.6)
43
43
  ZenTest (>= 4.4.1)
44
- autotest-fsevent (0.2.9)
44
+ autotest-fsevent (0.2.10)
45
45
  sys-uname
46
46
  autotest-growl (0.2.16)
47
47
  backports (3.6.3)
@@ -381,7 +381,7 @@ DEPENDENCIES
381
381
  activerecord-jdbcsqlite3-adapter
382
382
  algoliasearch (~> 1.2.14)
383
383
  autotest
384
- autotest-fsevent
384
+ autotest-fsevent (~> 0.2.10)
385
385
  autotest-growl
386
386
  jdbc-sqlite3
387
387
  json (>= 1.5.1)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.11.16
1
+ 1.11.17
@@ -53,7 +53,9 @@ module AlgoliaSearch
53
53
  :highlightPreTag, :highlightPostTag,
54
54
  :ranking, :customRanking, :queryType, :attributesForFaceting,
55
55
  :separatorsToIndex, :optionalWords, :attributeForDistinct,
56
- :synonyms, :placeholders]
56
+ :synonyms, :placeholders, :removeWordsIfNoResults, :replaceSynonymsInHighlight,
57
+ :unretrievableAttributes, :disableTypoToleranceOn, :altCorrections,
58
+ :ignorePlurals, :maxValuesPerFacet, :distinct]
57
59
  OPTIONS.each do |k|
58
60
  define_method k do |v|
59
61
  instance_variable_set("@#{k}", v)
@@ -224,7 +226,7 @@ module AlgoliaSearch
224
226
  self.algoliasearch_settings = IndexSettings.new(options, block_given? ? Proc.new : nil)
225
227
  self.algoliasearch_options = { :type => algolia_full_const_get(model_name.to_s), :per_page => algoliasearch_settings.get_setting(:hitsPerPage) || 10, :page => 1 }.merge(options)
226
228
 
227
- attr_accessor :highlight_result
229
+ attr_accessor :highlight_result, :snippet_result
228
230
 
229
231
  if options[:synchronous] == true
230
232
  after_validation :algolia_mark_synchronous if respond_to?(:after_validation)
@@ -422,6 +424,7 @@ module AlgoliaSearch
422
424
  o = results_by_id[hit['objectID']]
423
425
  if o
424
426
  o.highlight_result = hit['_highlightResult']
427
+ o.snippet_result = hit['_snippetResult']
425
428
  o
426
429
  end
427
430
  end.compact
metadata CHANGED
@@ -1,111 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: algoliasearch-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.16
4
+ version: 1.11.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Algolia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-23 00:00:00.000000000 Z
11
+ date: 2015-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.5.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.5.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: algoliasearch
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.2.14
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.2.14
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: will_paginate
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 2.3.15
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: 2.3.15
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: kaminari
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: travis
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rdoc
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  description: AlgoliaSearch integration to your favorite ORM
@@ -117,9 +117,9 @@ extra_rdoc_files:
117
117
  - LICENSE
118
118
  - README.md
119
119
  files:
120
- - .document
121
- - .rspec
122
- - .travis.yml
120
+ - ".document"
121
+ - ".rspec"
122
+ - ".travis.yml"
123
123
  - ChangeLog
124
124
  - Gemfile
125
125
  - Gemfile.lock
@@ -138,16 +138,16 @@ files:
138
138
  - lib/algoliasearch/utilities.rb
139
139
  - spec/spec_helper.rb
140
140
  - spec/utilities_spec.rb
141
- - vendor/assets/javascripts/algolia/algoliasearch.js
142
- - vendor/assets/javascripts/algolia/algoliasearch.min.js
143
- - vendor/assets/javascripts/algolia/algoliasearch.jquery.js
144
- - vendor/assets/javascripts/algolia/algoliasearch.jquery.min.js
145
141
  - vendor/assets/javascripts/algolia/algoliasearch.angular.js
146
142
  - vendor/assets/javascripts/algolia/algoliasearch.angular.min.js
147
- - vendor/assets/javascripts/algolia/typeahead.jquery.js
143
+ - vendor/assets/javascripts/algolia/algoliasearch.jquery.js
144
+ - vendor/assets/javascripts/algolia/algoliasearch.jquery.min.js
145
+ - vendor/assets/javascripts/algolia/algoliasearch.js
146
+ - vendor/assets/javascripts/algolia/algoliasearch.min.js
147
+ - vendor/assets/javascripts/algolia/bloodhound.js
148
148
  - vendor/assets/javascripts/algolia/typeahead.bundle.js
149
149
  - vendor/assets/javascripts/algolia/typeahead.bundle.min.js
150
- - vendor/assets/javascripts/algolia/bloodhound.js
150
+ - vendor/assets/javascripts/algolia/typeahead.jquery.js
151
151
  homepage: http://github.com/algolia/algoliasearch-rails
152
152
  licenses:
153
153
  - MIT
@@ -158,17 +158,17 @@ require_paths:
158
158
  - lib
159
159
  required_ruby_version: !ruby/object:Gem::Requirement
160
160
  requirements:
161
- - - '>='
161
+ - - ">="
162
162
  - !ruby/object:Gem::Version
163
163
  version: '0'
164
164
  required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  requirements:
166
- - - '>='
166
+ - - ">="
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  requirements: []
170
170
  rubyforge_project:
171
- rubygems_version: 2.0.14
171
+ rubygems_version: 2.2.2
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: AlgoliaSearch integration to your favorite ORM