elastic_searchable 2.0.2 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ - 1.9.3
5
+ - ree
data/README.md CHANGED
@@ -1,3 +1,4 @@
1
+ [![Build Status](https://secure.travis-ci.org/socialcast/elastic_searchable.png?branch=master)](http://travis-ci.org/socialcast/elastic_searchable)http://travis-ci.org/#!/socialcast/elastic_searchable
1
2
  # elastic_searchable
2
3
 
3
4
  Integrate the elasticsearch library into Rails.
@@ -21,10 +21,10 @@ Gem::Specification.new do |s|
21
21
 
22
22
  s.add_runtime_dependency(%q<activerecord>, [">= 3.0.5"])
23
23
  s.add_runtime_dependency(%q<httparty>, [">= 0.6.0"])
24
- s.add_runtime_dependency(%q<backgrounded>, [">= 0.7.0"])
24
+ s.add_runtime_dependency(%q<backgrounded>, [">= 2.0.0"])
25
25
  s.add_runtime_dependency(%q<multi_json>, [">= 1.0.0"])
26
26
  s.add_development_dependency(%q<rake>, ["0.9.2.2"])
27
- s.add_development_dependency(%q<sqlite3>, ["1.3.4"])
27
+ s.add_development_dependency(%q<sqlite3>, ["1.3.5"])
28
28
  s.add_development_dependency(%q<pry>, ["0.9.6.2"])
29
29
  s.add_development_dependency(%q<shoulda>, ["2.11.3"])
30
30
  s.add_development_dependency(%q<mocha>, ["0.10.0"])
@@ -37,13 +37,8 @@ module ElasticSearchable
37
37
  ActiveSupport::Deprecation.warn ":index has been deprecated. Use ElasticSearchable.index_name instead.", caller
38
38
  end
39
39
 
40
- backgrounded :update_index_on_create => ElasticSearchable.backgrounded_options, :update_index_on_update => ElasticSearchable.backgrounded_options
41
- class << self
42
- backgrounded :delete_id_from_index => ElasticSearchable.backgrounded_options
43
- end
44
-
45
- after_commit :update_index_on_create_backgrounded, :if => :should_index?, :on => :create
46
- after_commit :update_index_on_update_backgrounded, :if => :should_index?, :on => :update
40
+ after_commit_backgrounded :update_index_on_create, :if => :should_index?, :on => :create, :backgrounded => ElasticSearchable.backgrounded_options
41
+ after_commit_backgrounded :update_index_on_update, :if => :should_index?, :on => :update, :backgrounded => ElasticSearchable.backgrounded_options
47
42
  after_commit :delete_from_index, :unless => :elasticsearch_offline?, :on => :destroy
48
43
  end
49
44
  end
@@ -245,7 +240,7 @@ module ElasticSearchable
245
240
 
246
241
  private
247
242
  def delete_from_index
248
- self.class.delete_id_from_index_backgrounded self.id
243
+ self.class.backgrounded(ElasticSearchable.backgrounded_options).delete_id_from_index self.id
249
244
  end
250
245
  def update_index_on_create
251
246
  reindex :create
@@ -1,3 +1,3 @@
1
1
  module ElasticSearchable
2
- VERSION = '2.0.2'
2
+ VERSION = '3.0.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic_searchable
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 3.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-23 00:00:00.000000000 Z
12
+ date: 2012-09-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
16
- requirement: &2151881900 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: 3.0.5
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2151881900
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 3.0.5
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: httparty
27
- requirement: &2151881240 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,21 +37,31 @@ dependencies:
32
37
  version: 0.6.0
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *2151881240
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 0.6.0
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: backgrounded
38
- requirement: &2151880600 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
42
52
  - !ruby/object:Gem::Version
43
- version: 0.7.0
53
+ version: 2.0.0
44
54
  type: :runtime
45
55
  prerelease: false
46
- version_requirements: *2151880600
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: 2.0.0
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: multi_json
49
- requirement: &2151880000 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ! '>='
@@ -54,73 +69,108 @@ dependencies:
54
69
  version: 1.0.0
55
70
  type: :runtime
56
71
  prerelease: false
57
- version_requirements: *2151880000
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: 1.0.0
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: rake
60
- requirement: &2151879320 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
- - - =
83
+ - - '='
64
84
  - !ruby/object:Gem::Version
65
85
  version: 0.9.2.2
66
86
  type: :development
67
87
  prerelease: false
68
- version_requirements: *2151879320
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - '='
92
+ - !ruby/object:Gem::Version
93
+ version: 0.9.2.2
69
94
  - !ruby/object:Gem::Dependency
70
95
  name: sqlite3
71
- requirement: &2151894960 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
72
97
  none: false
73
98
  requirements:
74
- - - =
99
+ - - '='
75
100
  - !ruby/object:Gem::Version
76
- version: 1.3.4
101
+ version: 1.3.5
77
102
  type: :development
78
103
  prerelease: false
79
- version_requirements: *2151894960
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - '='
108
+ - !ruby/object:Gem::Version
109
+ version: 1.3.5
80
110
  - !ruby/object:Gem::Dependency
81
111
  name: pry
82
- requirement: &2151894160 !ruby/object:Gem::Requirement
112
+ requirement: !ruby/object:Gem::Requirement
83
113
  none: false
84
114
  requirements:
85
- - - =
115
+ - - '='
86
116
  - !ruby/object:Gem::Version
87
117
  version: 0.9.6.2
88
118
  type: :development
89
119
  prerelease: false
90
- version_requirements: *2151894160
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - '='
124
+ - !ruby/object:Gem::Version
125
+ version: 0.9.6.2
91
126
  - !ruby/object:Gem::Dependency
92
127
  name: shoulda
93
- requirement: &2151893480 !ruby/object:Gem::Requirement
128
+ requirement: !ruby/object:Gem::Requirement
94
129
  none: false
95
130
  requirements:
96
- - - =
131
+ - - '='
97
132
  - !ruby/object:Gem::Version
98
133
  version: 2.11.3
99
134
  type: :development
100
135
  prerelease: false
101
- version_requirements: *2151893480
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - '='
140
+ - !ruby/object:Gem::Version
141
+ version: 2.11.3
102
142
  - !ruby/object:Gem::Dependency
103
143
  name: mocha
104
- requirement: &2151892820 !ruby/object:Gem::Requirement
144
+ requirement: !ruby/object:Gem::Requirement
105
145
  none: false
106
146
  requirements:
107
- - - =
147
+ - - '='
108
148
  - !ruby/object:Gem::Version
109
149
  version: 0.10.0
110
150
  type: :development
111
151
  prerelease: false
112
- version_requirements: *2151892820
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - '='
156
+ - !ruby/object:Gem::Version
157
+ version: 0.10.0
113
158
  - !ruby/object:Gem::Dependency
114
159
  name: pry
115
- requirement: &2151892120 !ruby/object:Gem::Requirement
160
+ requirement: !ruby/object:Gem::Requirement
116
161
  none: false
117
162
  requirements:
118
- - - =
163
+ - - '='
119
164
  - !ruby/object:Gem::Version
120
165
  version: 0.9.9.3
121
166
  type: :development
122
167
  prerelease: false
123
- version_requirements: *2151892120
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - '='
172
+ - !ruby/object:Gem::Version
173
+ version: 0.9.9.3
124
174
  description: integrate the elastic search engine with rails
125
175
  email:
126
176
  - ryan@codecrate.com
@@ -131,6 +181,7 @@ files:
131
181
  - .document
132
182
  - .gitignore
133
183
  - .rvmrc
184
+ - .travis.yml
134
185
  - CONTRIBUTORS.txt
135
186
  - Gemfile
136
187
  - LICENSE.txt
@@ -161,7 +212,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
161
212
  version: '0'
162
213
  segments:
163
214
  - 0
164
- hash: 2660925478965356473
215
+ hash: 2574852554425238072
165
216
  required_rubygems_version: !ruby/object:Gem::Requirement
166
217
  none: false
167
218
  requirements:
@@ -170,10 +221,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
221
  version: '0'
171
222
  segments:
172
223
  - 0
173
- hash: 2660925478965356473
224
+ hash: 2574852554425238072
174
225
  requirements: []
175
226
  rubyforge_project: elastic_searchable
176
- rubygems_version: 1.8.15
227
+ rubygems_version: 1.8.24
177
228
  signing_key:
178
229
  specification_version: 3
179
230
  summary: elastic search for activerecord