ochko-flow_pagination 1.2.1 → 1.2.2
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.
- data/VERSION +1 -1
- data/lib/flow_pagination.rb +7 -2
- data/ochko-flow_pagination.gemspec +45 -0
- metadata +4 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.2
|
data/lib/flow_pagination.rb
CHANGED
@@ -10,12 +10,17 @@ module FlowPagination
|
|
10
10
|
if self.current_page < self.last_page
|
11
11
|
flow_pagination = @template.link_to_remote(
|
12
12
|
@template.t('flow_pagination.link', :default => 'more'),
|
13
|
-
:url => url_for(self.next_page),
|
14
|
-
|
13
|
+
{:url => url_for(self.next_page),
|
14
|
+
:method => @template.request.request_method}.
|
15
|
+
merge(ajax_options) )
|
15
16
|
end
|
16
17
|
|
17
18
|
@template.content_tag(:div, flow_pagination, :id => 'flow_pagination')
|
19
|
+
end
|
18
20
|
|
21
|
+
def ajax_options
|
22
|
+
return @ajax_options if @ajax_options
|
23
|
+
@ajax_options = Hash[@options.select{ |k,v| [:loading, :loaded, :interactive, :success, :failure, :complete, :confirm, :condition, :before, :after, :submit, :with, :update, :position].include? k }]
|
19
24
|
end
|
20
25
|
|
21
26
|
protected
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{ochko-flow_pagination}
|
8
|
+
s.version = "1.2.2"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Ochirkhuyag.L"]
|
12
|
+
s.date = %q{2010-05-19}
|
13
|
+
s.description = %q{Replace paginate links with remote 'more' link}
|
14
|
+
s.email = %q{ochkoo@gmail.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"README.rdoc"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
".gitignore",
|
20
|
+
"MIT-LICENSE",
|
21
|
+
"Manifest",
|
22
|
+
"README.rdoc",
|
23
|
+
"Rakefile",
|
24
|
+
"VERSION",
|
25
|
+
"init.rb",
|
26
|
+
"lib/flow_pagination.rb",
|
27
|
+
"ochko-flow_pagination.gemspec"
|
28
|
+
]
|
29
|
+
s.homepage = %q{http://github.com/ochko/flow_pagination}
|
30
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
31
|
+
s.require_paths = ["lib"]
|
32
|
+
s.rubygems_version = %q{1.3.7}
|
33
|
+
s.summary = %q{FlowPagination link renderer for WillPaginate}
|
34
|
+
|
35
|
+
if s.respond_to? :specification_version then
|
36
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
37
|
+
s.specification_version = 3
|
38
|
+
|
39
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
40
|
+
else
|
41
|
+
end
|
42
|
+
else
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ochko-flow_pagination
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 2
|
10
|
+
version: 1.2.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ochirkhuyag.L
|
@@ -36,6 +36,7 @@ files:
|
|
36
36
|
- VERSION
|
37
37
|
- init.rb
|
38
38
|
- lib/flow_pagination.rb
|
39
|
+
- ochko-flow_pagination.gemspec
|
39
40
|
has_rdoc: true
|
40
41
|
homepage: http://github.com/ochko/flow_pagination
|
41
42
|
licenses: []
|