neo4j-will_paginate 0.2.0-java → 0.2.1-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0b14d7ed7b55ade42fed7e2564458b25cd4dedae
4
+ data.tar.gz: 9b7e8bef4d848426c7270bd7b1486717d23e440a
5
+ SHA512:
6
+ metadata.gz: ccdce37b490a47c0cddacd7cc4d7570f8fa96e74779bacb356ce0c72cabb5211823de6ebccbe98d9da961d0753b7a6eb1de7c83b09d55bc339c3151ccdd14f63
7
+ data.tar.gz: cc8576fbdefae331fc5e99c88365b4464efcd68b7bc8d5ca4295c1fc9a1f1e7f795e28981802092a6b049cd504784753c27d5c0c34af7811c8b5d6f998e327cb
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.2.1 / 2013-06-22
2
+
3
+ * Make per_page optional like the doc says (#5)
4
+
1
5
  == 0.2.0 / 2012-10-02
2
6
 
3
- * Upgrade to use neo4j-cypher 1.0.0 gem
7
+ * Upgrade to use neo4j-cypher 1.0.0 gem
@@ -1,5 +1,5 @@
1
1
  module Neo4j
2
2
  module WillPaginate
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
@@ -1,5 +1,6 @@
1
1
  require "neo4j-will_paginate/version"
2
2
  require 'will_paginate/collection'
3
+ require 'will_paginate/per_page'
3
4
  require 'neo4j'
4
5
 
5
6
 
@@ -11,7 +12,6 @@ module Neo4j
11
12
  module Pagination
12
13
  include ::WillPaginate::CollectionMethods
13
14
 
14
-
15
15
  # Paginates the {Enumerable} and returns {::WillPaginate::Collection} instance.
16
16
  #
17
17
  # @param [Hash] options a hash of options for the pagination.
@@ -26,7 +26,7 @@ module Neo4j
26
26
  # Person.all(:conditions => "name: Dmytrii*").paginate(:page => 5, :per_page => 10)
27
27
  def paginate(options={})
28
28
  page = (options[:page] || 1).to_i
29
- per_page = (options[:per] || options[:per_page] || options[:limit] || WillPaginate.per_page).to_i
29
+ per_page = (options[:per] || options[:per_page] || options[:limit] || ::WillPaginate.per_page).to_i
30
30
  ::WillPaginate::Collection.create(page, per_page) do |pager|
31
31
  res = ::Neo4j::Paginated.create_from(self, page, per_page)
32
32
  pager.replace res.to_a
@@ -62,6 +62,11 @@ module Specs
62
62
  end
63
63
  end
64
64
 
65
+ it 'should default to WillPaginate.per_page' do
66
+ pager = Person.all.paginate
67
+ pager.per_page.should == ::WillPaginate.per_page
68
+ end
69
+
65
70
  end
66
71
 
67
72
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo4j-will_paginate
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.2.0
4
+ version: 0.2.1
6
5
  platform: java
7
6
  authors:
8
7
  - Dmytrii Nagirniak
@@ -10,24 +9,20 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2012-10-02 00:00:00.000000000 Z
12
+ date: 2013-06-22 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: rspec
17
16
  version_requirements: !ruby/object:Gem::Requirement
18
17
  requirements:
19
- - - ! '>='
18
+ - - '>='
20
19
  - !ruby/object:Gem::Version
21
- version: !binary |-
22
- MA==
23
- none: false
20
+ version: '0'
24
21
  requirement: !ruby/object:Gem::Requirement
25
22
  requirements:
26
- - - ! '>='
23
+ - - '>='
27
24
  - !ruby/object:Gem::Version
28
- version: !binary |-
29
- MA==
30
- none: false
25
+ version: '0'
31
26
  prerelease: false
32
27
  type: :development
33
28
  - !ruby/object:Gem::Dependency
@@ -37,13 +32,11 @@ dependencies:
37
32
  - - ~>
38
33
  - !ruby/object:Gem::Version
39
34
  version: '3.0'
40
- none: false
41
35
  requirement: !ruby/object:Gem::Requirement
42
36
  requirements:
43
37
  - - ~>
44
38
  - !ruby/object:Gem::Version
45
39
  version: '3.0'
46
- none: false
47
40
  prerelease: false
48
41
  type: :runtime
49
42
  - !ruby/object:Gem::Dependency
@@ -53,13 +46,11 @@ dependencies:
53
46
  - - ~>
54
47
  - !ruby/object:Gem::Version
55
48
  version: '3.0'
56
- none: false
57
49
  requirement: !ruby/object:Gem::Requirement
58
50
  requirements:
59
51
  - - ~>
60
52
  - !ruby/object:Gem::Version
61
53
  version: '3.0'
62
- none: false
63
54
  prerelease: false
64
55
  type: :runtime
65
56
  - !ruby/object:Gem::Dependency
@@ -69,13 +60,11 @@ dependencies:
69
60
  - - ~>
70
61
  - !ruby/object:Gem::Version
71
62
  version: '2.2'
72
- none: false
73
63
  requirement: !ruby/object:Gem::Requirement
74
64
  requirements:
75
65
  - - ~>
76
66
  - !ruby/object:Gem::Version
77
67
  version: '2.2'
78
- none: false
79
68
  prerelease: false
80
69
  type: :runtime
81
70
  description: Integration between neo4j.rb and will_paginate.
@@ -100,35 +89,26 @@ files:
100
89
  - spec/spec_helper.rb
101
90
  homepage: https://github.com/dnagir/neo4j-will_paginate
102
91
  licenses: []
92
+ metadata: {}
103
93
  post_install_message:
104
94
  rdoc_options: []
105
95
  require_paths:
106
96
  - lib
107
97
  required_ruby_version: !ruby/object:Gem::Requirement
108
98
  requirements:
109
- - - ! '>='
99
+ - - '>='
110
100
  - !ruby/object:Gem::Version
111
- segments:
112
- - 0
113
- hash: 2
114
- version: !binary |-
115
- MA==
116
- none: false
101
+ version: '0'
117
102
  required_rubygems_version: !ruby/object:Gem::Requirement
118
103
  requirements:
119
- - - ! '>='
104
+ - - '>='
120
105
  - !ruby/object:Gem::Version
121
- segments:
122
- - 0
123
- hash: 2
124
- version: !binary |-
125
- MA==
126
- none: false
106
+ version: '0'
127
107
  requirements: []
128
108
  rubyforge_project: neo4j-will_paginate
129
- rubygems_version: 1.8.24
109
+ rubygems_version: 2.0.3
130
110
  signing_key:
131
- specification_version: 3
111
+ specification_version: 4
132
112
  summary: Integration between neo4j.rb and will_paginate.
133
113
  test_files:
134
114
  - spec/neo4j-will_paginate_spec.rb