neo4j-will_paginate_redux 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG +3 -0
- data/README.md +8 -11
- data/lib/neo4j-will_paginate_redux.rb +1 -1
- data/lib/neo4j-will_paginate_redux/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 451fbc580b691b5782f728d49c30d737e79de6e1
|
4
|
+
data.tar.gz: d5b223fd315d63508431b250dfc62581762fbebc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a4fdccbe11f5718502a6027acb39053841c015d0e4329930f250ef9b7ed0322ea4c07c04dad01aa73558703b47a01c9a5f905e2dc31eaf6d710762a8c6d9080
|
7
|
+
data.tar.gz: 2fb25aa6333d7e2801aa790d985742565d21eea2e4f3c848b537ee7ee81acf6e5ab6c91de5e1203d1362ccaf8cf59b60eaf69c83bef9416f4ba25c0ab875441d
|
data/CHANGELOG
CHANGED
data/README.md
CHANGED
@@ -1,29 +1,26 @@
|
|
1
1
|
Integration for Neo4j.rb and will_paginate
|
2
2
|
============================================
|
3
3
|
|
4
|
-
This gem is just a simple integration of will_paginate and neo4j.
|
4
|
+
This gem is just a simple integration of will_paginate and neo4j. It was formerly known as [neo4j-will_paginate](https://github.com/dnagir/neo4j-will_paginate) but is being maintained here.
|
5
5
|
|
6
6
|
Which version do I use?
|
7
7
|
==================
|
8
8
|
|
9
|
-
|
10
|
-
Neo4j.rb 3.0 < alpha 8: 0.2.2<br />
|
11
|
-
Neo4j.rb 3.0 > alpha 7: Latest
|
9
|
+
If you're using Neo4jrb 3, use this; otherwise, use the legacy version linked above.
|
12
10
|
|
13
11
|
Installation
|
14
12
|
==================
|
15
13
|
|
16
|
-
1. Add `neo4j-
|
17
|
-
2. `require 'neo4j-
|
14
|
+
1. Add `neo4j-will_paginate_redux` to your `Gemfile`.
|
15
|
+
2. `require 'neo4j-will_paginate_redux'` somewhere from your code.
|
18
16
|
|
19
17
|
Using
|
20
18
|
==================
|
21
19
|
|
22
20
|
Please see the [will_paginate](https://github.com/mislav/will_paginate)
|
23
|
-
and [neo4j.rb](https://github.com/
|
24
|
-
|
25
|
-
But here is simple example:
|
21
|
+
and [neo4j.rb](https://github.com/neo4jrb/neo4j) for details.
|
26
22
|
|
23
|
+
But here is a simple example:
|
27
24
|
|
28
25
|
```ruby
|
29
26
|
# Probably in the Rails controller:
|
@@ -32,11 +29,11 @@ def index
|
|
32
29
|
# :per_page is optional
|
33
30
|
# :return is also optional. To return multiple objects, use an array of symbols
|
34
31
|
# :order is -- you guessed it -- optional, too. It accepts the same arguments as Neo4j::ActiveNode::QueryProxy's `order` method
|
35
|
-
@people = Person.(
|
32
|
+
@people = Person.as(:p).where(age: 30).paginate(:page => 2, :per_page => 20, return: :p, order: :name)
|
36
33
|
end
|
37
34
|
|
38
35
|
# Then in the view:
|
39
|
-
|
36
|
+
will_paginate @people
|
40
37
|
|
41
38
|
```
|
42
39
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neo4j-will_paginate_redux
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmytrii Nagirniak
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-11-
|
13
|
+
date: 2014-11-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|