jm81-paginate 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jm81-paginate}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jared Morgan"]
12
- s.date = %q{2010-08-11}
12
+ s.date = %q{2010-12-02}
13
13
  s.description = %q{This paginate library assists in paginating collections and results of database
14
14
  queries. It is particularly designed for use with DataMapper and ActiveRecord,
15
15
  and for the Merb and Rails frameworks, but can be used in many other situations.
@@ -17,60 +17,58 @@ and for the Merb and Rails frameworks, but can be used in many other situations.
17
17
  s.email = %q{jmorgan@morgancreative.net}
18
18
  s.extra_rdoc_files = [
19
19
  "LICENSE",
20
- "README.md",
21
- "TODO"
20
+ "README.md",
21
+ "TODO"
22
22
  ]
23
23
  s.files = [
24
- ".gitignore",
25
- "LICENSE",
26
- "README.md",
27
- "Rakefile",
28
- "TODO",
29
- "jm81-paginate.gemspec",
30
- "lib/helpers/merb.rb",
31
- "lib/helpers/rails.rb",
32
- "lib/helpers/shared.rb",
33
- "lib/jm81-paginate.rb",
34
- "lib/jm81-paginate/version.rb",
35
- "lib/paginate/ar.rb",
36
- "lib/paginate/dm.rb",
37
- "lib/paginate/simple.rb",
38
- "lib/paginators/orm.rb",
39
- "lib/paginators/simple.rb",
40
- "spec/fixtures/ar.rb",
41
- "spec/fixtures/dm.rb",
42
- "spec/helpers/merb_spec.rb",
43
- "spec/helpers/rails_spec.rb",
44
- "spec/helpers/shared_spec.rb",
45
- "spec/paginate/ar_spec.rb",
46
- "spec/paginate/config_spec.rb",
47
- "spec/paginate/dm_spec.rb",
48
- "spec/paginate/simple_spec.rb",
49
- "spec/paginators/orm_spec.rb",
50
- "spec/paginators/simple_spec.rb",
51
- "spec/shared.rb",
52
- "spec/spec.opts",
53
- "spec/spec_helper.rb"
24
+ "LICENSE",
25
+ "README.md",
26
+ "Rakefile",
27
+ "TODO",
28
+ "jm81-paginate.gemspec",
29
+ "lib/helpers/merb.rb",
30
+ "lib/helpers/rails.rb",
31
+ "lib/helpers/shared.rb",
32
+ "lib/jm81-paginate.rb",
33
+ "lib/jm81-paginate/version.rb",
34
+ "lib/paginate/ar.rb",
35
+ "lib/paginate/dm.rb",
36
+ "lib/paginate/simple.rb",
37
+ "lib/paginators/orm.rb",
38
+ "lib/paginators/simple.rb",
39
+ "spec/fixtures/ar.rb",
40
+ "spec/fixtures/dm.rb",
41
+ "spec/helpers/merb_spec.rb",
42
+ "spec/helpers/rails_spec.rb",
43
+ "spec/helpers/shared_spec.rb",
44
+ "spec/paginate/ar_spec.rb",
45
+ "spec/paginate/config_spec.rb",
46
+ "spec/paginate/dm_spec.rb",
47
+ "spec/paginate/simple_spec.rb",
48
+ "spec/paginators/orm_spec.rb",
49
+ "spec/paginators/simple_spec.rb",
50
+ "spec/shared.rb",
51
+ "spec/spec.opts",
52
+ "spec/spec_helper.rb"
54
53
  ]
55
54
  s.homepage = %q{http://github.com/jm81/paginate}
56
- s.rdoc_options = ["--charset=UTF-8"]
57
55
  s.require_paths = ["lib"]
58
56
  s.rubygems_version = %q{1.3.7}
59
57
  s.summary = %q{Pagination for DataMapper, ActiveRecord, and Array}
60
58
  s.test_files = [
61
- "spec/spec_helper.rb",
62
- "spec/shared.rb",
63
- "spec/paginators/orm_spec.rb",
64
- "spec/paginators/simple_spec.rb",
65
- "spec/helpers/shared_spec.rb",
66
- "spec/helpers/merb_spec.rb",
67
- "spec/helpers/rails_spec.rb",
68
- "spec/paginate/dm_spec.rb",
69
- "spec/paginate/config_spec.rb",
70
- "spec/paginate/simple_spec.rb",
71
- "spec/paginate/ar_spec.rb",
72
- "spec/fixtures/dm.rb",
73
- "spec/fixtures/ar.rb"
59
+ "spec/fixtures/ar.rb",
60
+ "spec/fixtures/dm.rb",
61
+ "spec/helpers/merb_spec.rb",
62
+ "spec/helpers/rails_spec.rb",
63
+ "spec/helpers/shared_spec.rb",
64
+ "spec/paginate/ar_spec.rb",
65
+ "spec/paginate/config_spec.rb",
66
+ "spec/paginate/dm_spec.rb",
67
+ "spec/paginate/simple_spec.rb",
68
+ "spec/paginators/orm_spec.rb",
69
+ "spec/paginators/simple_spec.rb",
70
+ "spec/shared.rb",
71
+ "spec/spec_helper.rb"
74
72
  ]
75
73
 
76
74
  if s.respond_to? :specification_version then
data/lib/helpers/rails.rb CHANGED
@@ -43,9 +43,9 @@ module Paginate
43
43
  content_tag(:div, {:class => 'pageLinks'}, false) do
44
44
  html = ''.html_safe
45
45
  if current == 1
46
- html << content_tag(:span, :class => 'pageDisabled pagePrevious') { '&laquo;' }
46
+ html << content_tag(:span, :class => 'pageDisabled pagePrevious') { '&laquo;'.html_safe }
47
47
  else
48
- html << content_tag(:a, :href => url_for_pagination(current - 1), :class => 'pagePrevious') { '&laquo;' }
48
+ html << content_tag(:a, :href => url_for_pagination(current - 1), :class => 'pagePrevious') { '&laquo;'.html_safe }
49
49
  end
50
50
 
51
51
  page_set(current, pages, padding).each do |page|
@@ -60,9 +60,9 @@ module Paginate
60
60
  end
61
61
 
62
62
  if current == pages
63
- html << content_tag(:span, :class => 'pageDisabled pageNext') { '&raquo;' }
63
+ html << content_tag(:span, :class => 'pageDisabled pageNext') { '&raquo;'.html_safe }
64
64
  else
65
- html << content_tag(:a, :href => url_for_pagination(current + 1), :class => 'pageNext') { '&raquo;' }
65
+ html << content_tag(:a, :href => url_for_pagination(current + 1), :class => 'pageNext') { '&raquo;'.html_safe }
66
66
  end
67
67
  html
68
68
  end
@@ -1,3 +1,3 @@
1
1
  module Paginate
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.2.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jm81-paginate
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jared Morgan
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-11 00:00:00 -05:00
18
+ date: 2010-12-02 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -34,7 +34,6 @@ extra_rdoc_files:
34
34
  - README.md
35
35
  - TODO
36
36
  files:
37
- - .gitignore
38
37
  - LICENSE
39
38
  - README.md
40
39
  - Rakefile
@@ -69,8 +68,8 @@ homepage: http://github.com/jm81/paginate
69
68
  licenses: []
70
69
 
71
70
  post_install_message:
72
- rdoc_options:
73
- - --charset=UTF-8
71
+ rdoc_options: []
72
+
74
73
  require_paths:
75
74
  - lib
76
75
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -99,16 +98,16 @@ signing_key:
99
98
  specification_version: 3
100
99
  summary: Pagination for DataMapper, ActiveRecord, and Array
101
100
  test_files:
102
- - spec/spec_helper.rb
103
- - spec/shared.rb
104
- - spec/paginators/orm_spec.rb
105
- - spec/paginators/simple_spec.rb
106
- - spec/helpers/shared_spec.rb
101
+ - spec/fixtures/ar.rb
102
+ - spec/fixtures/dm.rb
107
103
  - spec/helpers/merb_spec.rb
108
104
  - spec/helpers/rails_spec.rb
109
- - spec/paginate/dm_spec.rb
105
+ - spec/helpers/shared_spec.rb
106
+ - spec/paginate/ar_spec.rb
110
107
  - spec/paginate/config_spec.rb
108
+ - spec/paginate/dm_spec.rb
111
109
  - spec/paginate/simple_spec.rb
112
- - spec/paginate/ar_spec.rb
113
- - spec/fixtures/dm.rb
114
- - spec/fixtures/ar.rb
110
+ - spec/paginators/orm_spec.rb
111
+ - spec/paginators/simple_spec.rb
112
+ - spec/shared.rb
113
+ - spec/spec_helper.rb
data/.gitignore DELETED
@@ -1,10 +0,0 @@
1
- *.sw?
2
- .DS_Store
3
- coverage
4
- rdoc
5
- pkg
6
- .project
7
- .loadpath
8
- *qt_temp*
9
- *~
10
- *.gem