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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d6a1bf407df21848542b063515f569356025079
4
- data.tar.gz: 94cc9a3400af5ca7f1a5cb5f170d811cb1881b37
3
+ metadata.gz: 451fbc580b691b5782f728d49c30d737e79de6e1
4
+ data.tar.gz: d5b223fd315d63508431b250dfc62581762fbebc
5
5
  SHA512:
6
- metadata.gz: 1a5db13acee30b2bf14a2a6e59cf6c1cefefe2ee1b6283ae1cc219007b4d0003fb4ffdacebc3519b886e67d19c8bbd8934c033b9b5a8932a84bd58b0c1c2da02
7
- data.tar.gz: 7f2cfecf532739f066b59ffc9c333d4197066158349215748f135bb6d7ee70ef44342656e5c787d67ac0b7efed1b668b7bc41deec6f86d28519f6f672069dba7
6
+ metadata.gz: 1a4fdccbe11f5718502a6027acb39053841c015d0e4329930f250ef9b7ed0322ea4c07c04dad01aa73558703b47a01c9a5f905e2dc31eaf6d710762a8c6d9080
7
+ data.tar.gz: 2fb25aa6333d7e2801aa790d985742565d21eea2e4f3c848b537ee7ee81acf6e5ab6c91de5e1203d1362ccaf8cf59b60eaf69c83bef9416f4ba25c0ab875441d
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.3.3
2
+ * Require 'will_paginate' to make things, ya know, work correctly.
3
+
1
4
  == 0.3.2 / 2014-11-03
2
5
  * Adds `order` option.
3
6
  * Moving to the neo4j-will_paginate_redux gem officially because listing repo in Gemfile is annoying.
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
- Neo4j.rb 2.x: 0.2.1<br />
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-will_paginate` to your `Gemfile`.
17
- 2. `require 'neo4j-will_paginate'` somewhere from your code.
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/andreasronge/neo4j) for details.
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.(as: :p).where(age: 30).paginate(:page => 2, :per_page => 20, return: :p, order: :name)
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
- paginate @people
36
+ will_paginate @people
40
37
 
41
38
  ```
42
39
 
@@ -1,9 +1,9 @@
1
1
  require "neo4j-will_paginate_redux/version"
2
+ require 'will_paginate'
2
3
  require 'will_paginate/collection'
3
4
  require 'will_paginate/per_page'
4
5
  require 'neo4j'
5
6
 
6
-
7
7
  module Neo4j::ActiveNode::Query
8
8
  class QueryProxy
9
9
 
@@ -1,5 +1,5 @@
1
1
  module Neo4j
2
2
  module WillPaginateRedux
3
- VERSION = "0.3.2"
3
+ VERSION = "0.3.3"
4
4
  end
5
5
  end
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.2
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-03 00:00:00.000000000 Z
13
+ date: 2014-11-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec