search_and_resque 0.2.0 → 0.3.0

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: 7df05ec8241b807b79297c0162da94d081f5a59e
4
- data.tar.gz: cd629b3038930463f0518d05a469626ac784d9ca
3
+ metadata.gz: f1871f67e765442bdb5ffc6d20cdfbb9ced988ea
4
+ data.tar.gz: 31deba9088c4f742ffe5cd8d3c1beb7a1aa94284
5
5
  SHA512:
6
- metadata.gz: b9c3b05a1dcff21ce0ef93a4a830bff88210c27873773ed76c789a8c7dc2490e8f93f02393e5b067c3396e9fc6bc39cfe89384dd2fa75bec83eb87ed315caf04
7
- data.tar.gz: aad5a15f83e7727c7af2f06b3775a6e23d8ca221d9c5af32f9a650ffa547d8dbfd870579a82396b5f28a2ea8a08e6ba43eda2986fccedc6dfecbbee44617b10d
6
+ metadata.gz: 507c6863e9b365e53bee7f2864222e0d4fe6f3ade777ebac0bb121603b68d43be1e584fb6d6f9979914b0b5eccfacee3626a40a66dea4508cefc0d8ebf4f2d83
7
+ data.tar.gz: f3b984617b83c2db1cc5d3dc5024eb48ec35e9c958152bc983662043a3126134a0698ae0cd11117a4b85c347455657b6885a9b4152d264f13eb1526273bc56ec
@@ -5,7 +5,8 @@ module SearchAndResque
5
5
  end
6
6
 
7
7
  def self.perform(type_name, action, ids)
8
- type = SearchAndResque.index.types.find{ |t| t.type_name == type_name }
8
+ index = SearchAndResque.chewy_index
9
+ type = index.types.find{ |t| t.type_name == type_name }
9
10
  type.send(action, ids)
10
11
  end
11
12
 
@@ -1,3 +1,3 @@
1
1
  module SearchAndResque
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -16,16 +16,16 @@ module SearchAndResque
16
16
  @queue
17
17
  end
18
18
 
19
- def self.index_name=(name)
19
+ def self.chewy_index_name=(name)
20
20
  @index_name = "#{name}"
21
21
  end
22
22
 
23
- def self.index_name
23
+ def self.chewy_index_name
24
24
  @index_name
25
25
  end
26
26
 
27
27
  def self.chewy_index
28
- Object.const_get(index_name)
28
+ Object.const_get(chewy_index_name)
29
29
  end
30
30
 
31
31
  module ClassMethods
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: search_and_resque
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Woo