searchkick 0.6.2 → 0.6.3

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: 9b2be48320f7dd756e116946199f07a52642b3e7
4
- data.tar.gz: dc9c8e1fc6c82afa143f55556157786f95fb1aeb
3
+ metadata.gz: 3e333fde534928a49167a9af2098eeb2aaeae55f
4
+ data.tar.gz: c5077e61c89975a0411acf57f9429ce8f946cf34
5
5
  SHA512:
6
- metadata.gz: 8d88370f0e37d4da8c5c9bb57cdfda98b242b830cf156b099e7d69b5be338b0924b52a37b5a1c38a57cdd7e75b8984c00f83504bbda6870df4fe8e68cf75b295
7
- data.tar.gz: 134b2bd7d3fd80cd5f2ff18288304edd543f0250e344303baf14bff18b1674e97468de3c5d7e93d99e5e531d2d2440658e51d75983295c43ed8a2fbd2a718aed
6
+ metadata.gz: ac18482615c6a1d5fa4854c17c9e907a507bcea1701f783371a0be657ba848727182a1e2fbd38e547dc675a7545874584cdaa84b861755f99b0d08f7dbda0ca4
7
+ data.tar.gz: c1b5edee46e4bf3d6d5ecbc6a425930630cc80ecb2a4034c1c71d39a78ab344f0aadee822d2130e9359ccf247407b44d9a025c5c3db0c04c82a979feaf512020
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.6.3
2
+
3
+ - Removed patron since no support for Windows
4
+ - Added error if `searchkick` is called multiple times
5
+
1
6
  ## 0.6.2
2
7
 
3
8
  - Added logging
data/lib/searchkick.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require "active_model"
2
- require "patron"
3
2
  require "elasticsearch"
4
3
  require "hashie"
5
4
  require "searchkick/version"
@@ -2,6 +2,8 @@ module Searchkick
2
2
  module Model
3
3
 
4
4
  def searchkick(options = {})
5
+ raise "Only call searchkick once per model" if respond_to?(:searchkick_index)
6
+
5
7
  class_eval do
6
8
  cattr_reader :searchkick_options, :searchkick_env, :searchkick_klass
7
9
 
@@ -1,3 +1,3 @@
1
1
  module Searchkick
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
data/searchkick.gemspec CHANGED
@@ -20,7 +20,6 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_dependency "activemodel"
22
22
  spec.add_dependency "elasticsearch", "~> 0.4.11"
23
- spec.add_dependency "patron" # persistent http connections for performance
24
23
  spec.add_dependency "hashie"
25
24
 
26
25
  spec.add_development_dependency "bundler", "~> 1.3"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: searchkick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-05 00:00:00.000000000 Z
11
+ date: 2014-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.4.11
41
- - !ruby/object:Gem::Dependency
42
- name: patron
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: hashie
57
43
  requirement: !ruby/object:Gem::Requirement