chewy 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +13 -5
  2. data/.gitignore +1 -0
  3. data/.travis.yml +5 -3
  4. data/CHANGELOG.md +75 -0
  5. data/README.md +487 -92
  6. data/Rakefile +3 -2
  7. data/chewy.gemspec +2 -2
  8. data/filters +76 -0
  9. data/lib/chewy.rb +5 -3
  10. data/lib/chewy/config.rb +36 -19
  11. data/lib/chewy/fields/base.rb +5 -1
  12. data/lib/chewy/index.rb +22 -10
  13. data/lib/chewy/index/actions.rb +13 -13
  14. data/lib/chewy/index/search.rb +7 -2
  15. data/lib/chewy/query.rb +382 -64
  16. data/lib/chewy/query/context.rb +174 -0
  17. data/lib/chewy/query/criteria.rb +127 -34
  18. data/lib/chewy/query/loading.rb +9 -9
  19. data/lib/chewy/query/nodes/and.rb +25 -0
  20. data/lib/chewy/query/nodes/base.rb +17 -0
  21. data/lib/chewy/query/nodes/bool.rb +32 -0
  22. data/lib/chewy/query/nodes/equal.rb +34 -0
  23. data/lib/chewy/query/nodes/exists.rb +20 -0
  24. data/lib/chewy/query/nodes/expr.rb +28 -0
  25. data/lib/chewy/query/nodes/field.rb +106 -0
  26. data/lib/chewy/query/nodes/missing.rb +20 -0
  27. data/lib/chewy/query/nodes/not.rb +25 -0
  28. data/lib/chewy/query/nodes/or.rb +25 -0
  29. data/lib/chewy/query/nodes/prefix.rb +18 -0
  30. data/lib/chewy/query/nodes/query.rb +20 -0
  31. data/lib/chewy/query/nodes/range.rb +63 -0
  32. data/lib/chewy/query/nodes/raw.rb +15 -0
  33. data/lib/chewy/query/nodes/regexp.rb +31 -0
  34. data/lib/chewy/query/nodes/script.rb +20 -0
  35. data/lib/chewy/query/pagination.rb +28 -22
  36. data/lib/chewy/railtie.rb +23 -0
  37. data/lib/chewy/rspec/update_index.rb +20 -3
  38. data/lib/chewy/type/adapter/active_record.rb +78 -5
  39. data/lib/chewy/type/adapter/base.rb +46 -0
  40. data/lib/chewy/type/adapter/object.rb +40 -8
  41. data/lib/chewy/type/base.rb +1 -1
  42. data/lib/chewy/type/import.rb +18 -44
  43. data/lib/chewy/type/observe.rb +24 -14
  44. data/lib/chewy/version.rb +1 -1
  45. data/lib/tasks/chewy.rake +27 -0
  46. data/spec/chewy/config_spec.rb +30 -12
  47. data/spec/chewy/fields/base_spec.rb +11 -5
  48. data/spec/chewy/index/actions_spec.rb +20 -20
  49. data/spec/chewy/index/search_spec.rb +5 -5
  50. data/spec/chewy/index_spec.rb +28 -8
  51. data/spec/chewy/query/context_spec.rb +173 -0
  52. data/spec/chewy/query/criteria_spec.rb +219 -12
  53. data/spec/chewy/query/loading_spec.rb +6 -4
  54. data/spec/chewy/query/nodes/and_spec.rb +16 -0
  55. data/spec/chewy/query/nodes/bool_spec.rb +22 -0
  56. data/spec/chewy/query/nodes/equal_spec.rb +32 -0
  57. data/spec/chewy/query/nodes/exists_spec.rb +18 -0
  58. data/spec/chewy/query/nodes/missing_spec.rb +15 -0
  59. data/spec/chewy/query/nodes/not_spec.rb +16 -0
  60. data/spec/chewy/query/nodes/or_spec.rb +16 -0
  61. data/spec/chewy/query/nodes/prefix_spec.rb +16 -0
  62. data/spec/chewy/query/nodes/query_spec.rb +12 -0
  63. data/spec/chewy/query/nodes/range_spec.rb +32 -0
  64. data/spec/chewy/query/nodes/raw_spec.rb +11 -0
  65. data/spec/chewy/query/nodes/regexp_spec.rb +31 -0
  66. data/spec/chewy/query/nodes/script_spec.rb +15 -0
  67. data/spec/chewy/query/pagination_spec.rb +3 -2
  68. data/spec/chewy/query_spec.rb +83 -26
  69. data/spec/chewy/rspec/update_index_spec.rb +20 -0
  70. data/spec/chewy/type/adapter/active_record_spec.rb +102 -0
  71. data/spec/chewy/type/adapter/object_spec.rb +82 -0
  72. data/spec/chewy/type/import_spec.rb +30 -1
  73. data/spec/chewy/type/mapping_spec.rb +1 -1
  74. data/spec/chewy/type/observe_spec.rb +46 -12
  75. data/spec/spec_helper.rb +7 -6
  76. data/spec/support/class_helpers.rb +2 -2
  77. metadata +98 -48
  78. data/.rvmrc +0 -1
  79. data/lib/chewy/index/client.rb +0 -13
  80. data/spec/chewy/index/client_spec.rb +0 -18
@@ -19,6 +19,11 @@ describe Chewy::Type::Import do
19
19
  let(:city) { CitiesIndex::City }
20
20
 
21
21
  describe '.import' do
22
+ specify { city.import.should be_true }
23
+ specify { city.import([]).should be_true }
24
+ specify { city.import(dummy_cities).should be_true }
25
+ specify { city.import(dummy_cities.map(&:id)).should be_true }
26
+
22
27
  specify { expect { city.import([]) }.not_to update_index(city) }
23
28
  specify { expect { city.import }.to update_index(city).and_reindex(dummy_cities) }
24
29
  specify { expect { city.import dummy_cities }.to update_index(city).and_reindex(dummy_cities) }
@@ -53,6 +58,16 @@ describe Chewy::Type::Import do
53
58
  city.import dummy_cities.map(&:id), batch_size: 1
54
59
  end
55
60
 
61
+ specify do
62
+ expect(CitiesIndex.client).to receive(:bulk).with(hash_including(refresh: true))
63
+ city.import dummy_cities
64
+ end
65
+
66
+ specify do
67
+ expect(CitiesIndex.client).to receive(:bulk).with(hash_including(refresh: false))
68
+ city.import dummy_cities, refresh: false
69
+ end
70
+
56
71
  context 'scoped' do
57
72
  before do
58
73
  stub_index(:cities) do
@@ -62,7 +77,21 @@ describe Chewy::Type::Import do
62
77
  end
63
78
  end
64
79
 
65
- specify { expect { CitiesIndex.import }.to update_index(city).and_reindex(dummy_cities.first(2)) }
80
+ specify { expect { city.import }.to update_index(city).and_reindex(dummy_cities.first(2)) }
81
+ specify { expect { city.import City.where(id: dummy_cities.first.id) }.to update_index(city).and_reindex(dummy_cities.first).only }
82
+ end
83
+
84
+ context 'instrumentation payload' do
85
+ specify do
86
+ outer_payload = nil
87
+ ActiveSupport::Notifications.subscribe('import_objects.chewy') do |name, start, finish, id, payload|
88
+ outer_payload = payload
89
+ end
90
+
91
+ dummy_cities.first.destroy
92
+ city.import dummy_cities
93
+ outer_payload.should == {type: CitiesIndex::City, import: {delete: 1, index: 2}}
94
+ end
66
95
  end
67
96
  end
68
97
  end
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
  describe Chewy::Type::Mapping do
4
4
  include ClassHelpers
5
5
 
6
- let(:product) { ProductsIndex.product }
6
+ let(:product) { ProductsIndex::Product }
7
7
 
8
8
  before do
9
9
  stub_index(:products) do
@@ -2,7 +2,6 @@ require 'spec_helper'
2
2
 
3
3
  describe Chewy::Type::Import do
4
4
  include ClassHelpers
5
- before { Chewy.stub(observing_enabled: true) }
6
5
 
7
6
  describe '.update_index' do
8
7
  before do
@@ -13,26 +12,28 @@ describe Chewy::Type::Import do
13
12
 
14
13
  let(:backreferenced) { 3.times.map { |i| double(id: i) } }
15
14
 
15
+ specify { expect { DummiesIndex.dummy.update_index(backreferenced, urgent: true) }
16
+ .to update_index('dummies#dummy', atomic: false).and_reindex(backreferenced) }
16
17
  specify { expect { DummiesIndex.dummy.update_index(backreferenced) }
17
- .to update_index(DummiesIndex.dummy).and_reindex(backreferenced) }
18
+ .not_to update_index('dummies#dummy', atomic: false) }
18
19
  specify { expect { DummiesIndex.dummy.update_index([]) }
19
- .not_to update_index(DummiesIndex.dummy) }
20
+ .not_to update_index('dummies#dummy') }
20
21
  specify { expect { DummiesIndex.dummy.update_index(nil) }
21
- .not_to update_index(DummiesIndex.dummy) }
22
+ .not_to update_index('dummies#dummy') }
22
23
  end
23
24
 
24
25
  context 'integration' do
25
26
  before do
26
27
  stub_model(:city) do
27
28
  belongs_to :country
28
- update_elasticsearch('cities#city') { self }
29
- update_elasticsearch('countries#country') { country }
29
+ update_index('cities#city') { self }
30
+ update_index 'countries#country', :country
30
31
  end
31
32
 
32
33
  stub_model(:country) do
33
34
  has_many :cities
34
- update_elasticsearch('cities#city') { cities }
35
- update_elasticsearch('countries#country') { self }
35
+ update_index('cities#city') { cities }
36
+ update_index 'countries#country', :self, urgent: true
36
37
  end
37
38
 
38
39
  stub_index(:cities) do
@@ -47,9 +48,42 @@ describe Chewy::Type::Import do
47
48
  let(:city) { City.create!(country: Country.create!) }
48
49
  let(:country) { Country.create!(cities: 2.times.map { City.create! }) }
49
50
 
50
- specify { expect { city.save! }.to update_index(CitiesIndex.city).and_reindex(city) }
51
- specify { expect { city.save! }.to update_index(CountriesIndex.country).and_reindex(city.country) }
52
- specify { expect { country.save! }.to update_index(CitiesIndex.city).and_reindex(country.cities) }
53
- specify { expect { country.save! }.to update_index(CountriesIndex.country).and_reindex(country) }
51
+ specify { expect { city.save! }.not_to update_index('cities#city', atomic: false) }
52
+ specify { expect { country.save! }.to update_index('countries#country').and_reindex(country) }
53
+
54
+ context do
55
+ specify { expect { city.save! }.to update_index('cities#city').and_reindex(city) }
56
+ specify { expect { city.save! }.to update_index('countries#country').and_reindex(city.country) }
57
+ specify { expect { country.save! }.to update_index('cities#city').and_reindex(country.cities) }
58
+ specify { expect { country.save! }.to update_index('countries#country').and_reindex(country) }
59
+ end
60
+
61
+ context do
62
+ let(:other_city) { City.create! }
63
+
64
+ specify do
65
+ expect(CitiesIndex::City).not_to receive(:import)
66
+ [city, other_city].map(&:save!)
67
+ end
68
+
69
+ specify do
70
+ expect(CitiesIndex::City).to receive(:import).with([city.id, other_city.id]).once
71
+ Chewy.atomic { [city, other_city].map(&:save!) }
72
+ end
73
+ end
74
+
75
+ context do
76
+ let(:other_country) { Country.create! }
77
+
78
+ specify do
79
+ expect(CountriesIndex::Country).to receive(:import).at_least(2).times
80
+ [country, other_country].map(&:save!)
81
+ end
82
+
83
+ specify do
84
+ expect(CountriesIndex::Country).to receive(:import).with([country.id, other_country.id]).once
85
+ Chewy.atomic { [country, other_country].map(&:save!) }
86
+ end
87
+ end
54
88
  end
55
89
  end
data/spec/spec_helper.rb CHANGED
@@ -3,6 +3,7 @@ Bundler.require
3
3
 
4
4
  require 'active_record'
5
5
  require 'database_cleaner'
6
+
6
7
  require 'support/fail_helpers'
7
8
  require 'support/class_helpers'
8
9
 
@@ -10,6 +11,8 @@ require 'chewy/rspec'
10
11
 
11
12
  ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:')
12
13
 
14
+ Kaminari::Hooks.init
15
+
13
16
  ActiveRecord::Schema.define do
14
17
  create_table :countries do |t|
15
18
  t.column :name, :string
@@ -23,13 +26,14 @@ ActiveRecord::Schema.define do
23
26
  end
24
27
  end
25
28
 
26
- Kaminari::Hooks.init
27
-
28
- Chewy.client_options = { port: 9250 }
29
+ Chewy.client_options = { host: 'localhost:9250' }
29
30
 
30
31
  RSpec.configure do |config|
31
32
  config.mock_with :rspec
32
33
 
34
+ config.include FailHelpers
35
+ config.include ClassHelpers
36
+
33
37
  config.before(:suite) do
34
38
  DatabaseCleaner.clean_with :truncation
35
39
  DatabaseCleaner.strategy = :transaction
@@ -42,7 +46,4 @@ RSpec.configure do |config|
42
46
  config.after do
43
47
  DatabaseCleaner.clean
44
48
  end
45
-
46
- config.include FailHelpers
47
- config.include ClassHelpers
48
49
  end
@@ -10,7 +10,7 @@ module ClassHelpers
10
10
  .tap { |i| i.class_eval(&block) if block }
11
11
  end
12
12
 
13
- def stub_class name, superclass, &block
14
- stub_const(name.to_s.camelize, Class.new(superclass, &block))
13
+ def stub_class name, superclass = nil, &block
14
+ stub_const(name.to_s.camelize, Class.new(superclass || Object, &block))
15
15
  end
16
16
  end
metadata CHANGED
@@ -1,139 +1,139 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chewy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - pyromaniac
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-11 00:00:00.000000000 Z
11
+ date: 2014-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - '>='
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rake
15
+ type: :development
29
16
  requirement: !ruby/object:Gem::Requirement
30
17
  requirements:
31
- - - '>='
18
+ - - ! '>='
32
19
  - !ruby/object:Gem::Version
33
20
  version: '0'
34
- type: :development
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
38
- - - '>='
24
+ - - ! '>='
39
25
  - !ruby/object:Gem::Version
40
26
  version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: rspec
29
+ type: :development
43
30
  requirement: !ruby/object:Gem::Requirement
44
31
  requirements:
45
- - - '>='
32
+ - - ~>
46
33
  - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
34
+ version: '2.14'
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
- - - '>='
38
+ - - ~>
53
39
  - !ruby/object:Gem::Version
54
- version: '0'
40
+ version: '2.14'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: sqlite3
43
+ type: :development
57
44
  requirement: !ruby/object:Gem::Requirement
58
45
  requirements:
59
- - - '>='
46
+ - - ! '>='
60
47
  - !ruby/object:Gem::Version
61
48
  version: '0'
62
- type: :development
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
- - - '>='
52
+ - - ! '>='
67
53
  - !ruby/object:Gem::Version
68
54
  version: '0'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: kaminari
57
+ type: :development
71
58
  requirement: !ruby/object:Gem::Requirement
72
59
  requirements:
73
- - - '>='
60
+ - - ! '>='
74
61
  - !ruby/object:Gem::Version
75
62
  version: '0'
76
- type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
- - - '>='
66
+ - - ! '>='
81
67
  - !ruby/object:Gem::Version
82
68
  version: '0'
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: activerecord
71
+ type: :development
85
72
  requirement: !ruby/object:Gem::Requirement
86
73
  requirements:
87
- - - '>='
74
+ - - ! '>='
88
75
  - !ruby/object:Gem::Version
89
76
  version: '3.2'
90
- type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
- - - '>='
80
+ - - ! '>='
95
81
  - !ruby/object:Gem::Version
96
82
  version: '3.2'
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: database_cleaner
85
+ type: :development
99
86
  requirement: !ruby/object:Gem::Requirement
100
87
  requirements:
101
- - - '>='
88
+ - - ! '>='
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ! '>='
102
95
  - !ruby/object:Gem::Version
103
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: elasticsearch-extensions
104
99
  type: :development
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ! '>='
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
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
  - !ruby/object:Gem::Dependency
112
112
  name: activesupport
113
+ type: :runtime
113
114
  requirement: !ruby/object:Gem::Requirement
114
115
  requirements:
115
- - - '>='
116
+ - - ! '>='
116
117
  - !ruby/object:Gem::Version
117
118
  version: '3.2'
118
- type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ! '>='
123
123
  - !ruby/object:Gem::Version
124
124
  version: '3.2'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: elasticsearch
127
+ type: :runtime
127
128
  requirement: !ruby/object:Gem::Requirement
128
129
  requirements:
129
- - - '>='
130
+ - - ! '>='
130
131
  - !ruby/object:Gem::Version
131
132
  version: '0'
132
- type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ! '>='
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  description: Chewy provides functionality for Elasticsearch index handling, documents
@@ -146,14 +146,15 @@ extra_rdoc_files: []
146
146
  files:
147
147
  - .gitignore
148
148
  - .rspec
149
- - .rvmrc
150
149
  - .travis.yml
150
+ - CHANGELOG.md
151
151
  - Gemfile
152
152
  - Guardfile
153
153
  - LICENSE.txt
154
154
  - README.md
155
155
  - Rakefile
156
156
  - chewy.gemspec
157
+ - filters
157
158
  - lib/chewy.rb
158
159
  - lib/chewy/config.rb
159
160
  - lib/chewy/fields/base.rb
@@ -161,16 +162,34 @@ files:
161
162
  - lib/chewy/fields/root.rb
162
163
  - lib/chewy/index.rb
163
164
  - lib/chewy/index/actions.rb
164
- - lib/chewy/index/client.rb
165
165
  - lib/chewy/index/search.rb
166
166
  - lib/chewy/query.rb
167
+ - lib/chewy/query/context.rb
167
168
  - lib/chewy/query/criteria.rb
168
169
  - lib/chewy/query/loading.rb
170
+ - lib/chewy/query/nodes/and.rb
171
+ - lib/chewy/query/nodes/base.rb
172
+ - lib/chewy/query/nodes/bool.rb
173
+ - lib/chewy/query/nodes/equal.rb
174
+ - lib/chewy/query/nodes/exists.rb
175
+ - lib/chewy/query/nodes/expr.rb
176
+ - lib/chewy/query/nodes/field.rb
177
+ - lib/chewy/query/nodes/missing.rb
178
+ - lib/chewy/query/nodes/not.rb
179
+ - lib/chewy/query/nodes/or.rb
180
+ - lib/chewy/query/nodes/prefix.rb
181
+ - lib/chewy/query/nodes/query.rb
182
+ - lib/chewy/query/nodes/range.rb
183
+ - lib/chewy/query/nodes/raw.rb
184
+ - lib/chewy/query/nodes/regexp.rb
185
+ - lib/chewy/query/nodes/script.rb
169
186
  - lib/chewy/query/pagination.rb
187
+ - lib/chewy/railtie.rb
170
188
  - lib/chewy/rspec.rb
171
189
  - lib/chewy/rspec/update_index.rb
172
190
  - lib/chewy/type.rb
173
191
  - lib/chewy/type/adapter/active_record.rb
192
+ - lib/chewy/type/adapter/base.rb
174
193
  - lib/chewy/type/adapter/object.rb
175
194
  - lib/chewy/type/base.rb
176
195
  - lib/chewy/type/import.rb
@@ -178,19 +197,35 @@ files:
178
197
  - lib/chewy/type/observe.rb
179
198
  - lib/chewy/type/wrapper.rb
180
199
  - lib/chewy/version.rb
200
+ - lib/tasks/chewy.rake
181
201
  - spec/chewy/config_spec.rb
182
202
  - spec/chewy/fields/base_spec.rb
183
203
  - spec/chewy/fields/default_spec.rb
184
204
  - spec/chewy/fields/root_spec.rb
185
205
  - spec/chewy/index/actions_spec.rb
186
- - spec/chewy/index/client_spec.rb
187
206
  - spec/chewy/index/search_spec.rb
188
207
  - spec/chewy/index_spec.rb
208
+ - spec/chewy/query/context_spec.rb
189
209
  - spec/chewy/query/criteria_spec.rb
190
210
  - spec/chewy/query/loading_spec.rb
211
+ - spec/chewy/query/nodes/and_spec.rb
212
+ - spec/chewy/query/nodes/bool_spec.rb
213
+ - spec/chewy/query/nodes/equal_spec.rb
214
+ - spec/chewy/query/nodes/exists_spec.rb
215
+ - spec/chewy/query/nodes/missing_spec.rb
216
+ - spec/chewy/query/nodes/not_spec.rb
217
+ - spec/chewy/query/nodes/or_spec.rb
218
+ - spec/chewy/query/nodes/prefix_spec.rb
219
+ - spec/chewy/query/nodes/query_spec.rb
220
+ - spec/chewy/query/nodes/range_spec.rb
221
+ - spec/chewy/query/nodes/raw_spec.rb
222
+ - spec/chewy/query/nodes/regexp_spec.rb
223
+ - spec/chewy/query/nodes/script_spec.rb
191
224
  - spec/chewy/query/pagination_spec.rb
192
225
  - spec/chewy/query_spec.rb
193
226
  - spec/chewy/rspec/update_index_spec.rb
227
+ - spec/chewy/type/adapter/active_record_spec.rb
228
+ - spec/chewy/type/adapter/object_spec.rb
194
229
  - spec/chewy/type/import_spec.rb
195
230
  - spec/chewy/type/mapping_spec.rb
196
231
  - spec/chewy/type/observe_spec.rb
@@ -210,17 +245,17 @@ require_paths:
210
245
  - lib
211
246
  required_ruby_version: !ruby/object:Gem::Requirement
212
247
  requirements:
213
- - - '>='
248
+ - - ! '>='
214
249
  - !ruby/object:Gem::Version
215
250
  version: '0'
216
251
  required_rubygems_version: !ruby/object:Gem::Requirement
217
252
  requirements:
218
- - - '>='
253
+ - - ! '>='
219
254
  - !ruby/object:Gem::Version
220
255
  version: '0'
221
256
  requirements: []
222
257
  rubyforge_project:
223
- rubygems_version: 2.1.11
258
+ rubygems_version: 2.1.10
224
259
  signing_key:
225
260
  specification_version: 4
226
261
  summary: Elasticsearch ODM client wrapper
@@ -230,14 +265,29 @@ test_files:
230
265
  - spec/chewy/fields/default_spec.rb
231
266
  - spec/chewy/fields/root_spec.rb
232
267
  - spec/chewy/index/actions_spec.rb
233
- - spec/chewy/index/client_spec.rb
234
268
  - spec/chewy/index/search_spec.rb
235
269
  - spec/chewy/index_spec.rb
270
+ - spec/chewy/query/context_spec.rb
236
271
  - spec/chewy/query/criteria_spec.rb
237
272
  - spec/chewy/query/loading_spec.rb
273
+ - spec/chewy/query/nodes/and_spec.rb
274
+ - spec/chewy/query/nodes/bool_spec.rb
275
+ - spec/chewy/query/nodes/equal_spec.rb
276
+ - spec/chewy/query/nodes/exists_spec.rb
277
+ - spec/chewy/query/nodes/missing_spec.rb
278
+ - spec/chewy/query/nodes/not_spec.rb
279
+ - spec/chewy/query/nodes/or_spec.rb
280
+ - spec/chewy/query/nodes/prefix_spec.rb
281
+ - spec/chewy/query/nodes/query_spec.rb
282
+ - spec/chewy/query/nodes/range_spec.rb
283
+ - spec/chewy/query/nodes/raw_spec.rb
284
+ - spec/chewy/query/nodes/regexp_spec.rb
285
+ - spec/chewy/query/nodes/script_spec.rb
238
286
  - spec/chewy/query/pagination_spec.rb
239
287
  - spec/chewy/query_spec.rb
240
288
  - spec/chewy/rspec/update_index_spec.rb
289
+ - spec/chewy/type/adapter/active_record_spec.rb
290
+ - spec/chewy/type/adapter/object_spec.rb
241
291
  - spec/chewy/type/import_spec.rb
242
292
  - spec/chewy/type/mapping_spec.rb
243
293
  - spec/chewy/type/observe_spec.rb