kaminari-neo4j 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +6 -1
- data/lib/kaminari/neo4j/criteria_methods.rb +2 -1
- data/lib/kaminari/neo4j/paginated.rb +2 -1
- data/lib/kaminari/neo4j/version.rb +1 -1
- metadata +3 -5
- data/Gemfile.lock +0 -102
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76f66fd795d4e6043e32435ad220086cce05a682
|
4
|
+
data.tar.gz: 7b20102e40d63ddd963c28438b60cdda88eedc1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 639da9d0504f514f06701147b4988f6eda1af0f8d8810815d9767a61beb19024febd6fe5fadc0c155dfa9c36ab7f2a40f0c9efbf4d75950bfff2333f313201c9
|
7
|
+
data.tar.gz: 6d98af4d836c77de054872a88645b6de03eb11bbf09cce1ed508e488ce72dc8c90719ee1020e3d3c79f3915f98dbf7cf8aca1acbcaf3d617a44766c088ea830d
|
data/.gitignore
CHANGED
@@ -3,7 +3,8 @@ module Kaminari
|
|
3
3
|
module CriteriaMethods
|
4
4
|
include Kaminari::PageScopeMethods
|
5
5
|
|
6
|
-
delegate :
|
6
|
+
delegate :model, to: :source
|
7
|
+
delegate :default_per_page, :max_per_page, :max_pages, to: :model
|
7
8
|
|
8
9
|
def entry_name
|
9
10
|
model.model_name.human.downcase
|
@@ -15,6 +15,7 @@ module Kaminari
|
|
15
15
|
def initialize(source, current_page, per_page = nil)
|
16
16
|
self.source = source
|
17
17
|
self.current_page = (current_page || 1).to_i
|
18
|
+
self.current_page = 1 if self.current_page < 1
|
18
19
|
self.per_page = (per_page || default_per_page).to_i
|
19
20
|
end
|
20
21
|
|
@@ -44,4 +45,4 @@ module Kaminari
|
|
44
45
|
end
|
45
46
|
end
|
46
47
|
end
|
47
|
-
end
|
48
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kaminari-neo4j
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dieter Pisarewski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -61,7 +61,6 @@ extra_rdoc_files: []
|
|
61
61
|
files:
|
62
62
|
- ".gitignore"
|
63
63
|
- Gemfile
|
64
|
-
- Gemfile.lock
|
65
64
|
- LICENSE
|
66
65
|
- README.md
|
67
66
|
- Rakefile
|
@@ -92,9 +91,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
91
|
version: '0'
|
93
92
|
requirements: []
|
94
93
|
rubyforge_project:
|
95
|
-
rubygems_version: 2.
|
94
|
+
rubygems_version: 2.4.5.1
|
96
95
|
signing_key:
|
97
96
|
specification_version: 4
|
98
97
|
summary: Neo4j support for kaminari
|
99
98
|
test_files: []
|
100
|
-
has_rdoc:
|
data/Gemfile.lock
DELETED
@@ -1,102 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
kaminari-neo4j (0.0.1)
|
5
|
-
activesupport (>= 3.0)
|
6
|
-
kaminari (>= 0.16.3)
|
7
|
-
neo4j (>= 4.0)
|
8
|
-
|
9
|
-
GEM
|
10
|
-
remote: https://rubygems.org/
|
11
|
-
specs:
|
12
|
-
actionpack (4.2.1)
|
13
|
-
actionview (= 4.2.1)
|
14
|
-
activesupport (= 4.2.1)
|
15
|
-
rack (~> 1.6)
|
16
|
-
rack-test (~> 0.6.2)
|
17
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
18
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
19
|
-
actionview (4.2.1)
|
20
|
-
activesupport (= 4.2.1)
|
21
|
-
builder (~> 3.1)
|
22
|
-
erubis (~> 2.7.0)
|
23
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
24
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
25
|
-
active_attr (0.8.5)
|
26
|
-
activemodel (>= 3.0.2, < 5.0)
|
27
|
-
activesupport (>= 3.0.2, < 5.0)
|
28
|
-
activemodel (4.2.1)
|
29
|
-
activesupport (= 4.2.1)
|
30
|
-
builder (~> 3.1)
|
31
|
-
activesupport (4.2.1)
|
32
|
-
i18n (~> 0.7)
|
33
|
-
json (~> 1.7, >= 1.7.7)
|
34
|
-
minitest (~> 5.1)
|
35
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
36
|
-
tzinfo (~> 1.1)
|
37
|
-
builder (3.2.2)
|
38
|
-
erubis (2.7.0)
|
39
|
-
faraday (0.9.1)
|
40
|
-
multipart-post (>= 1.2, < 3)
|
41
|
-
faraday_middleware (0.9.1)
|
42
|
-
faraday (>= 0.7.4, < 0.10)
|
43
|
-
httparty (0.13.3)
|
44
|
-
json (~> 1.8)
|
45
|
-
multi_xml (>= 0.5.2)
|
46
|
-
httpclient (2.6.0.1)
|
47
|
-
i18n (0.7.0)
|
48
|
-
json (1.8.2)
|
49
|
-
kaminari (0.16.3)
|
50
|
-
actionpack (>= 3.0.0)
|
51
|
-
activesupport (>= 3.0.0)
|
52
|
-
loofah (2.0.1)
|
53
|
-
nokogiri (>= 1.5.9)
|
54
|
-
mini_portile (0.6.2)
|
55
|
-
minitest (5.6.1)
|
56
|
-
multi_xml (0.5.5)
|
57
|
-
multipart-post (2.0.0)
|
58
|
-
neo4j (4.1.5)
|
59
|
-
active_attr (~> 0.8)
|
60
|
-
activemodel (~> 4)
|
61
|
-
activesupport (~> 4)
|
62
|
-
neo4j-core (~> 4.0.0)
|
63
|
-
orm_adapter (~> 0.5.0)
|
64
|
-
neo4j-core (4.0.7)
|
65
|
-
activesupport
|
66
|
-
faraday (~> 0.9.0)
|
67
|
-
faraday_middleware (~> 0.9.1)
|
68
|
-
httparty
|
69
|
-
httpclient
|
70
|
-
json
|
71
|
-
net-http-persistent
|
72
|
-
os
|
73
|
-
zip
|
74
|
-
net-http-persistent (2.9.4)
|
75
|
-
nokogiri (1.6.6.2)
|
76
|
-
mini_portile (~> 0.6.0)
|
77
|
-
orm_adapter (0.5.0)
|
78
|
-
os (0.9.6)
|
79
|
-
rack (1.6.0)
|
80
|
-
rack-test (0.6.3)
|
81
|
-
rack (>= 1.0)
|
82
|
-
rails-deprecated_sanitizer (1.0.3)
|
83
|
-
activesupport (>= 4.2.0.alpha)
|
84
|
-
rails-dom-testing (1.0.6)
|
85
|
-
activesupport (>= 4.2.0.beta, < 5.0)
|
86
|
-
nokogiri (~> 1.6.0)
|
87
|
-
rails-deprecated_sanitizer (>= 1.0.1)
|
88
|
-
rails-html-sanitizer (1.0.2)
|
89
|
-
loofah (~> 2.0)
|
90
|
-
rake (10.4.2)
|
91
|
-
thread_safe (0.3.5)
|
92
|
-
tzinfo (1.2.2)
|
93
|
-
thread_safe (~> 0.1)
|
94
|
-
zip (2.0.2)
|
95
|
-
|
96
|
-
PLATFORMS
|
97
|
-
ruby
|
98
|
-
|
99
|
-
DEPENDENCIES
|
100
|
-
bundler (~> 1.7)
|
101
|
-
kaminari-neo4j!
|
102
|
-
rake (~> 10.0)
|