will_paginate 2.3.12 → 2.3.14

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.

Potentially problematic release.


This version of will_paginate might be problematic. Click here for more details.

data/CHANGELOG.rdoc CHANGED
@@ -46,7 +46,7 @@
46
46
  == 2.3.3, released 2008-08-29
47
47
 
48
48
  * Ensure that paginate_by_sql doesn't change the original SQL query.
49
- * RDoc love (now live at http://mislav.caboo.se/static/will_paginate/doc/)
49
+ * RDoc love (now live at http://gitrdoc.com/mislav/will_paginate/tree/master)
50
50
  * Rename :prev_label to :previous_label for consistency. old name still functions but is deprecated
51
51
  * ActiveRecord 2.1: Remove :include option from count_all query when it's possible.
52
52
 
data/README.rdoc CHANGED
@@ -94,7 +94,7 @@ Denis Barushev, Ben Pickles.
94
94
  == Usable pagination in the UI
95
95
 
96
96
  There are some CSS styles to get you started in the "examples/" directory. They
97
- are {showcased online here}[http://mislav.caboo.se/static/will_paginate/].
97
+ are {showcased online here}[http://mislav.uniqpath.com/will_paginate/].
98
98
 
99
99
  More reading about pagination as design pattern:
100
100
 
@@ -33,11 +33,9 @@ module WillPaginate
33
33
  #
34
34
  # If you are writing a library that provides a collection which you would like
35
35
  # to conform to this API, you don't have to copy these methods over; simply
36
- # make your plugin/gem dependant on the "mislav-will_paginate" gem:
36
+ # make your plugin/gem dependant on this library and do:
37
37
  #
38
- # gem 'mislav-will_paginate'
39
38
  # require 'will_paginate/collection'
40
- #
41
39
  # # WillPaginate::Collection is now available for use
42
40
  class Collection < Array
43
41
  attr_reader :current_page, :per_page, :total_entries, :total_pages
@@ -2,7 +2,7 @@ module WillPaginate
2
2
  module VERSION
3
3
  MAJOR = 2
4
4
  MINOR = 3
5
- TINY = 12
5
+ TINY = 14
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -238,6 +238,7 @@ module WillPaginate
238
238
  links.push page_link_or_span(@collection.next_page, 'disabled next_page', @options[:next_label])
239
239
 
240
240
  html = links.join(@options[:separator])
241
+ html = html.html_safe if html.respond_to? :html_safe
241
242
  @options[:container] ? @template.content_tag(:div, html, html_attributes) : html
242
243
  end
243
244
 
@@ -297,6 +298,7 @@ module WillPaginate
297
298
 
298
299
  def page_link_or_span(page, span_class, text = nil)
299
300
  text ||= page.to_s
301
+ text = text.html_safe if text.respond_to? :html_safe
300
302
 
301
303
  if page and page != current_page
302
304
  classnames = span_class && span_class.index(' ') && span_class.split(' ', 2).last
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: will_paginate
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.12
4
+ hash: 31
5
+ prerelease: false
6
+ segments:
7
+ - 2
8
+ - 3
9
+ - 14
10
+ version: 2.3.14
5
11
  platform: ruby
6
12
  authors:
7
13
  - "Mislav Marohni\xC4\x87"
@@ -10,7 +16,7 @@ autorequire:
10
16
  bindir: bin
11
17
  cert_chain: []
12
18
 
13
- date: 2010-01-19 00:00:00 +01:00
19
+ date: 2010-05-26 00:00:00 +02:00
14
20
  default_executable:
15
21
  dependencies: []
16
22
 
@@ -74,21 +80,27 @@ rdoc_options:
74
80
  require_paths:
75
81
  - lib
76
82
  required_ruby_version: !ruby/object:Gem::Requirement
83
+ none: false
77
84
  requirements:
78
85
  - - ">="
79
86
  - !ruby/object:Gem::Version
87
+ hash: 3
88
+ segments:
89
+ - 0
80
90
  version: "0"
81
- version:
82
91
  required_rubygems_version: !ruby/object:Gem::Requirement
92
+ none: false
83
93
  requirements:
84
94
  - - ">="
85
95
  - !ruby/object:Gem::Version
96
+ hash: 3
97
+ segments:
98
+ - 0
86
99
  version: "0"
87
- version:
88
100
  requirements: []
89
101
 
90
102
  rubyforge_project:
91
- rubygems_version: 1.3.5
103
+ rubygems_version: 1.3.7
92
104
  signing_key:
93
105
  specification_version: 3
94
106
  summary: Pagination for Rails