neo4j-searchkick 0.0.1 → 0.0.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
  SHA1:
3
- metadata.gz: 707954b978018db1f0ad81c242dd2b81313a575a
4
- data.tar.gz: ce2c469a7a002a55fbea66f471fde91b4ca01a88
3
+ metadata.gz: 92cc6ec36c3f79d2e1c6400d5bc94fab5798564f
4
+ data.tar.gz: 96b90ee444af4a5a13c8631825a1fc7764fbc92b
5
5
  SHA512:
6
- metadata.gz: 7c93881d328a3ed0f20e580513ffbb2ad0f537a698890e6d0cfd809db06204614e19449ce030ad6c3946e8ef8c5610311dec3d8e48c3a1ecd6cc54e416fded44
7
- data.tar.gz: 009f79590e29a8411d27e1b09e02f303d85ca23187d127503c28d02605bbc3c79933ddd3dcad6f0b782bae79035d014b3d4321e044f3a469f08d25caa3a86202
6
+ metadata.gz: c066d9d2617b3aec56aebbe892191050e4220aa1770d5a32dfec3dd41db40b9d6c6636d4dd9947fae01c7570f63d45b8fdb0eec7b97deac36a41f2b599c12055
7
+ data.tar.gz: 7293d15e05c334354744412d4a150fe65f6d25e169d919e5716935eca36fb00dc915f7ecbd485e0c42872dced27f5ef2faa201ba6c2f7288a1951f5de7e37fef
data/Gemfile CHANGED
@@ -2,3 +2,5 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in neo4j-searchkick.gemspec
4
4
  gemspec
5
+
6
+ gem 'neo4j', github: 'neo4jrb/neo4j', branch: 'master'
data/README.md CHANGED
@@ -20,13 +20,15 @@ Or install it yourself as:
20
20
 
21
21
  Use with Searchkick as you would normally. See [Searchkick's documentation](https://github.com/ankane/searchkick) for more information.
22
22
 
23
- At the moment, this gem is not built with Neo4j performance in mind. ActiveRel's queries are not using parameters and as a result, you may take a performance
24
- hit if using this in a busy production environment. Please see Github issues or contact Chris if you'd like to help or an update on the status.
25
-
26
23
  TODO:
27
24
 
28
25
  * Tests would be nice.
29
26
 
27
+ ## BEWARE!
28
+
29
+ This gem is under development. Inclusion in your gemfile will use the Neo4j gem from the master branch. That branch is almost always stable but please be aware that
30
+ this may result in unexpected behavior.
31
+
30
32
  ## Contributing
31
33
 
32
34
  1. Fork it ( https://github.com/[my-github-username]/neo4j-searchkick/fork )
@@ -17,7 +17,7 @@ module Searchkick
17
17
  # ActiveRecord
18
18
  records.where(records.primary_key => grouped_hits.map{|hit| hit["_id"] }).to_a
19
19
  elsif records.respond_to?(:from_class)
20
- records.where("ID(r1) in #{grouped_hits.map { |hit| hit['_id'].to_i }}")
20
+ records.array_load(grouped_hits.map { |hit| hit['_id'].to_i })
21
21
  elsif records.respond_to?(:all) and records.all.respond_to?(:for_ids)
22
22
  # Mongoid 2
23
23
  records.all.for_ids(grouped_hits.map{|hit| hit["_id"] }).to_a
@@ -1,5 +1,5 @@
1
1
  module Neo4j
2
2
  module Searchkick
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo4j-searchkick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Grigg
@@ -107,3 +107,4 @@ signing_key:
107
107
  specification_version: 4
108
108
  summary: Provides support for Neo4jrb 3.0 ActiveRel models
109
109
  test_files: []
110
+ has_rdoc: