sequel-elasticsearch 0.3.0 → 0.3.2

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
  SHA256:
3
- metadata.gz: b87c9a8747c0bd243d305af4f02882448d70aa520df3796f2873d01a3f541c20
4
- data.tar.gz: 60c22bb219e9ff03d2a0d0643e88ee444e13eae054c72bf5d0763b833bfc25ac
3
+ metadata.gz: c8260688e9dc94491a1a01b53304f853a9ffbea3b61ac23709aacf5659581307
4
+ data.tar.gz: 69b8b7917a4e443b8cccd1a4e84d623bdb6852485749844d0708f6a2a7eda750
5
5
  SHA512:
6
- metadata.gz: 0ef4ffc7a7beb5e2c90a54ec37ab64a5b656880d7ac3246b33772dd26a93339993d2f5fe7df18eff1485c9cae1002477ba7965566e536d1648915e0114d43481
7
- data.tar.gz: 23937b2f2d737e0b1eddad6348132604b0a99cd220f2bccb8e29d941effb7e42061d8d46b944d259bb4c6238be7103fd253161b7f18fa25678893715959c758f
6
+ metadata.gz: c739c3145aa85fdd3d0fdee97bf9459b52a534fcee17daa3b87fe9d923ab22bec561fd9c0cfe1224400f6a20d803ae30aa128db36011440111c5674feddecd8a
7
+ data.tar.gz: ad01667caf9ac32e3e26fe9bee9c12d78878d8b0e94c36f131bfd0f39bf484f7928269b17a3824d3b92696ec01dee9e2100c1bf923733e012269e208fafddfbd
data/README.md CHANGED
@@ -24,7 +24,13 @@ Or install it yourself as:
24
24
 
25
25
  ## Usage
26
26
 
27
- You firstly need an Elasticsearch cluster to sync your data to. By default the gem will try to connect to `http://localhost:9200`. Set the `ELASTICSEARCH_URL` ENV variable to the URL of your cluster.
27
+ Require the gem with:
28
+
29
+ ```ruby
30
+ require 'sequel/plugins/elasticsearch'
31
+ ```
32
+
33
+ You'll need an Elasticsearch cluster to sync your data to. By default the gem will try to connect to `http://localhost:9200`. Set the `ELASTICSEARCH_URL` ENV variable to the URL of your cluster.
28
34
 
29
35
  This is a Sequel plugin, so you can enable it DB wide:
30
36
 
@@ -1,5 +1,5 @@
1
1
  module Sequel
2
2
  module Elasticsearch
3
- VERSION = '0.3.0'.freeze
3
+ VERSION = '0.3.2'.freeze
4
4
  end
5
5
  end
@@ -87,7 +87,7 @@ module Sequel
87
87
 
88
88
  def index_document
89
89
  params = document_path
90
- params[:body] = values
90
+ params[:body] = values.each_key { |k| values[k] = values[k].strftime('%FT%T%:z') if values[k].is_a?(Time) }
91
91
  es_client.index params
92
92
  end
93
93
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel-elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jurgens du Toit
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-06 00:00:00.000000000 Z
11
+ date: 2018-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: elasticsearch