mongoid-elasticsearch 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4677ca4d511880593ad4caaa3db6a94d7b94eb8
4
- data.tar.gz: ce66a3fd85bf6b7ac28049076071fed86fbd935e
3
+ metadata.gz: fc7964bb909dec223e809ac38cdb534018ff9938
4
+ data.tar.gz: b3aaa57c0651bd32ab4af8968160c1f8834bef41
5
5
  SHA512:
6
- metadata.gz: 2d49b4a4f21afde4f6b0f9bc567c90867a543b43738f067fe48dbdf90fbb6fd84bc948606dc6b08c700352b56be795e596f93d89c7810524da45c252a20c8e1e
7
- data.tar.gz: c1adf29ebb70a6afc79a0180c7f690902520b91a660b91dcb4b5664cbfd9c4e601365199d3a7888798756a214be267639e541e8162d48b20b9cb71fd72b79a60
6
+ metadata.gz: 31af2bedb2d4154c70ae323ab30c8d4d52afae338c7015a6e5a4d4d41e365688a05b3e64f9a2e2fab15fa8e604b243c5b8b253afaf2eef822599bba859274b11
7
+ data.tar.gz: 9256b06ffcd1a22a09c438893118356692f35cd1533b20126946634fa9d3f2ab10003731faedce938ad7d1a055e62d5942eb3b63b581a9ef65e06e45229d1e3d
@@ -7,10 +7,8 @@ notifications:
7
7
 
8
8
  language: ruby
9
9
  rvm:
10
- - 1.9.3
11
10
  - 2.0.0
12
11
  - 2.1.1
13
- - jruby-19mode
14
12
  - jruby-20mode
15
13
 
16
14
  gemfile:
data/Gemfile CHANGED
@@ -1,5 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in mongoid-elasticsearch.gemspec
4
-
5
4
  gemspec
@@ -1,7 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "mongoid", github: "mongoid/mongoid", branch: "master"
3
+ gem "mongoid", "~> 4.0.0.beta1"
4
4
  gem 'elasticsearch', github: 'elasticsearch/elasticsearch-ruby', branch: "master"
5
- gem 'mongoid_slug', github: 'glebtv/mongoid-slug'
6
5
 
7
6
  gemspec path: "../"
@@ -2,6 +2,5 @@ source "https://rubygems.org"
2
2
 
3
3
  gem "mongoid", '~> 3.1.0'
4
4
  gem 'elasticsearch'
5
- gem 'mongoid_slug'
6
5
 
7
6
  gemspec path: "../"
@@ -100,7 +100,7 @@ module Mongoid
100
100
 
101
101
  options[:wrapper] ||= :model
102
102
 
103
- client = ::Elasticsearch::Client.new Mongoid::Elasticsearch.client_options
103
+ client = ::Elasticsearch::Client.new Mongoid::Elasticsearch.client_options.dup
104
104
  Response.new(client, query, true, nil, options)
105
105
  end
106
106
  end
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module Elasticsearch
3
- VERSION = "0.6.0"
3
+ VERSION = "0.6.1"
4
4
  end
5
5
  end
@@ -29,4 +29,5 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency "coveralls"
30
30
  spec.add_development_dependency "hashie"
31
31
  spec.add_development_dependency "mongoid_slug"
32
+ spec.add_development_dependency "glebtv-httpclient"
32
33
  end
@@ -7,7 +7,7 @@ describe Article do
7
7
  Article.es.index.name.should eq 'mongoid_es_news'
8
8
  Article.es.index.type.should eq 'article'
9
9
  Article.es_wrapper.should eq :load
10
- Article.es_client_options.should eq({})
10
+ Article.es_client_options.should eq(DEFAULT_OPT)
11
11
  end
12
12
 
13
13
  context 'index operations' do
@@ -171,7 +171,7 @@ describe Post do
171
171
  it 'properly uses options' do
172
172
  Post.es_index_name.should eq 'mongoid_es_test_posts'
173
173
  Post.es_wrapper.should eq :model
174
- Post.es_client_options.should eq({})
174
+ Post.es_client_options.should eq(DEFAULT_OPT)
175
175
  end
176
176
 
177
177
  context 'index operations' do
@@ -289,7 +289,7 @@ describe Namespaced::Model do
289
289
  Namespaced::Model.es.index.name.should eq 'mongoid_es_test_namespaced_models'
290
290
  Namespaced::Model.es.index.type.should eq 'namespaced/model'
291
291
  Namespaced::Model.es_wrapper.should eq :model
292
- Namespaced::Model.es_client_options.should eq({})
292
+ Namespaced::Model.es_client_options.should eq(DEFAULT_OPT)
293
293
  end
294
294
 
295
295
  context 'index operations' do
@@ -21,6 +21,14 @@ require "database_cleaner"
21
21
 
22
22
  require "mongoid-elasticsearch"
23
23
 
24
+ if ENV['CI_ADAPTER'] == 'httpclient'
25
+ require 'httpclient'
26
+ DEFAULT_OPT = {adapter: :httpclient}
27
+ else
28
+ DEFAULT_OPT = {}
29
+ end
30
+ Mongoid::Elasticsearch.client_options = DEFAULT_OPT.dup
31
+
24
32
  # Mongoid::Elasticsearch.client_options = {log: true}
25
33
 
26
34
  Mongoid::Elasticsearch.prefix = "mongoid_es_test_"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-12 00:00:00.000000000 Z
11
+ date: 2014-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid
@@ -156,6 +156,20 @@ dependencies:
156
156
  - - ">="
157
157
  - !ruby/object:Gem::Version
158
158
  version: '0'
159
+ - !ruby/object:Gem::Dependency
160
+ name: glebtv-httpclient
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: '0'
159
173
  description: Simple and easy integration of mongoid with the new elasticsearch gem
160
174
  email:
161
175
  - glebtv@gmail.com