clean_pagination 0.0.1 → 0.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7871f574a1cd0cc4500390a3dd1930ecb8609203
4
- data.tar.gz: e61becc7ff88048882a36f9fd87745ec8f26ad0a
3
+ metadata.gz: b737866c7f4b397d4ec60ec827a9d21894c63a2d
4
+ data.tar.gz: d42fa7e22b8b2c601b9113a53ca3166410bbfb49
5
5
  SHA512:
6
- metadata.gz: b6aac0a85646fddc51ec8ecab02c9cd43e33d8e3d41341cb7fec6981be975cba69e01aa89519d9a2c24fa28ae6dff01a6f904532dba5c8b62d2b746c41478e55
7
- data.tar.gz: b2b57c95951311739b1d93d92bc2cb5df1413bb10fce058c33110c764b36d610748e2b65a79ab851737cc50e4c797581b3b0b5100d0542f90495a9030e105fa3
6
+ metadata.gz: 0c1569f386585aa96e742dd984c800c682a41a6ad898f3f0e9e2ba7a578951436987eeb408f86ada4a58b40885fa2074dd47c26e0cac8a85b781b31f4e8b1e1c
7
+ data.tar.gz: 8f5d7448d783c194ddceddf9edd45cee1660325a7c05ceae8eb6144ae109c87b776da1b84b75504813c0b90d0352d24b4d375ea364b5fc7a76286c69840362e0
@@ -41,13 +41,13 @@ module CleanPagination
41
41
 
42
42
  links = []
43
43
  if available_to < total_items - 1
44
- links << "<#{request.path}>; rel=\"next\"; items=\"#{
44
+ links << "<#{request.url}>; rel=\"next\"; items=\"#{
45
45
  available_to + 1
46
46
  }-#{
47
47
  available_to + requested_limit
48
48
  }\""
49
49
 
50
- links << "<#{request.path}>; rel=\"last\"; items=\"#{
50
+ links << "<#{request.url}>; rel=\"last\"; items=\"#{
51
51
  # let rounding do the work
52
52
  ((total_items-1) / available_limit) * available_limit
53
53
  }-#{
@@ -57,13 +57,13 @@ module CleanPagination
57
57
  if requested_from > 0
58
58
  previous_from = [0, requested_from - [requested_limit, max_range_size].min].max
59
59
 
60
- links << "<#{request.path}>; rel=\"prev\"; items=\"#{
60
+ links << "<#{request.url}>; rel=\"prev\"; items=\"#{
61
61
  previous_from
62
62
  }-#{
63
63
  previous_from + requested_limit - 1
64
64
  }\""
65
65
 
66
- links << "<#{request.path}>; rel=\"first\"; items=\"0-#{requested_limit-1}\""
66
+ links << "<#{request.url}>; rel=\"first\"; items=\"0-#{requested_limit-1}\""
67
67
  end
68
68
 
69
69
  headers['Link'] = links.join ', '
@@ -1,3 +1,3 @@
1
1
  module CleanPagination
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -248,4 +248,14 @@ class ApplicationControllerTest < ActionController::TestCase
248
248
  assert_nil links['last']
249
249
  assert_nil links['next']
250
250
  end
251
+
252
+ test "preserves query parameters in link headers" do
253
+ @request.headers['Range-Unit'] = 'items'
254
+ @request.headers['Range'] = "20-29"
255
+ get :index, foo: 'bar'
256
+
257
+ response.headers['Link'].scan(/<[^>]+>/).each do |link|
258
+ assert_match /\?foo=bar/, link
259
+ end
260
+ end
251
261
  end
@@ -1,4 +1,4 @@
1
- Rails.application.configure do
1
+ Rails.application.config do |config|
2
2
  # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
4
  # The test environment is used exclusively to run your application's
@@ -0,0 +1,2 @@
1
+ Rails.application.config.secret_token = 'deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef'
2
+ Rails.application.config.secret_key_base = 'deadbeef' if Rails.application.config.respond_to?(:secret_key_base)
@@ -5965,3 +5965,820 @@ ApplicationControllerTest: test_shifts_penultimate_page_to_beginning,_preserving
5965
5965
  Processing by ApplicationController#index as HTML
5966
5966
  Completed 206 Partial Content in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
5967
5967
   (0.0ms) rollback transaction
5968
+  (0.2ms) begin transaction
5969
+ ------------------------------------------------------------
5970
+ ApplicationControllerTest: test_an_acceptable_range_succeeds
5971
+ ------------------------------------------------------------
5972
+ Processing by ApplicationController#index as HTML
5973
+ Rendered application/index.html.erb within layouts/application (1.0ms)
5974
+ Completed 206 Partial Content in 22ms (Views: 21.0ms | ActiveRecord: 0.0ms)
5975
+  (0.1ms) rollback transaction
5976
+  (0.0ms) begin transaction
5977
+ ---------------------------------------------------------------
5978
+ ApplicationControllerTest: test_an_oversized_range_is_truncated
5979
+ ---------------------------------------------------------------
5980
+ Processing by ApplicationController#index as HTML
5981
+ Completed 206 Partial Content in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
5982
+  (0.0ms) rollback transaction
5983
+  (0.0ms) begin transaction
5984
+ ----------------------------------------------------------------------
5985
+ ApplicationControllerTest: test_first_page_range_always_starts_at_zero
5986
+ ----------------------------------------------------------------------
5987
+ Processing by ApplicationController#index as HTML
5988
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
5989
+  (0.0ms) rollback transaction
5990
+  (0.0ms) begin transaction
5991
+ -------------------------------------------------------------------------------------
5992
+ ApplicationControllerTest: test_for_from_>_to-from,_next_is_the_right_inverse_of_prev
5993
+ -------------------------------------------------------------------------------------
5994
+ Processing by ApplicationController#index as HTML
5995
+ Completed 206 Partial Content in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
5996
+ Processing by ApplicationController#index as HTML
5997
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
5998
+ Processing by ApplicationController#index as HTML
5999
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6000
+ Processing by ApplicationController#index as HTML
6001
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6002
+ Processing by ApplicationController#index as HTML
6003
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6004
+ Processing by ApplicationController#index as HTML
6005
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6006
+ Processing by ApplicationController#index as HTML
6007
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6008
+ Processing by ApplicationController#index as HTML
6009
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6010
+ Processing by ApplicationController#index as HTML
6011
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6012
+ Processing by ApplicationController#index as HTML
6013
+ Completed 206 Partial Content in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
6014
+ Processing by ApplicationController#index as HTML
6015
+ Completed 206 Partial Content in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
6016
+ Processing by ApplicationController#index as HTML
6017
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6018
+ Processing by ApplicationController#index as HTML
6019
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6020
+ Processing by ApplicationController#index as HTML
6021
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6022
+ Processing by ApplicationController#index as HTML
6023
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6024
+ Processing by ApplicationController#index as HTML
6025
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6026
+ Processing by ApplicationController#index as HTML
6027
+ Completed 206 Partial Content in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)
6028
+ Processing by ApplicationController#index as HTML
6029
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6030
+ Processing by ApplicationController#index as HTML
6031
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6032
+ Processing by ApplicationController#index as HTML
6033
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6034
+ Processing by ApplicationController#index as HTML
6035
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6036
+ Processing by ApplicationController#index as HTML
6037
+ Completed 416 Requested Range Not Satisfiable in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
6038
+ Processing by ApplicationController#index as HTML
6039
+ Completed 206 Partial Content in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
6040
+ Processing by ApplicationController#index as HTML
6041
+ Completed 206 Partial Content in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
6042
+ Processing by ApplicationController#index as HTML
6043
+ Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)
6044
+ Processing by ApplicationController#index as HTML
6045
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6046
+ Processing by ApplicationController#index as HTML
6047
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6048
+ Processing by ApplicationController#index as HTML
6049
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6050
+ Processing by ApplicationController#index as HTML
6051
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6052
+ Processing by ApplicationController#index as HTML
6053
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
6054
+ Processing by ApplicationController#index as HTML
6055
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6056
+ Processing by ApplicationController#index as HTML
6057
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6058
+ Processing by ApplicationController#index as HTML
6059
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6060
+ Processing by ApplicationController#index as HTML
6061
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6062
+ Processing by ApplicationController#index as HTML
6063
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6064
+ Processing by ApplicationController#index as HTML
6065
+ Completed 206 Partial Content in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)
6066
+ Processing by ApplicationController#index as HTML
6067
+ Completed 206 Partial Content in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
6068
+ Processing by ApplicationController#index as HTML
6069
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6070
+ Processing by ApplicationController#index as HTML
6071
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6072
+ Processing by ApplicationController#index as HTML
6073
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6074
+ Processing by ApplicationController#index as HTML
6075
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6076
+ Processing by ApplicationController#index as HTML
6077
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6078
+ Processing by ApplicationController#index as HTML
6079
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6080
+ Processing by ApplicationController#index as HTML
6081
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6082
+ Processing by ApplicationController#index as HTML
6083
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6084
+ Processing by ApplicationController#index as HTML
6085
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6086
+ Processing by ApplicationController#index as HTML
6087
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6088
+ Processing by ApplicationController#index as HTML
6089
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6090
+ Processing by ApplicationController#index as HTML
6091
+ Completed 416 Requested Range Not Satisfiable in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6092
+ Processing by ApplicationController#index as HTML
6093
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6094
+ Processing by ApplicationController#index as HTML
6095
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6096
+ Processing by ApplicationController#index as HTML
6097
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6098
+ Processing by ApplicationController#index as HTML
6099
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6100
+ Processing by ApplicationController#index as HTML
6101
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6102
+ Processing by ApplicationController#index as HTML
6103
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6104
+ Processing by ApplicationController#index as HTML
6105
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6106
+ Processing by ApplicationController#index as HTML
6107
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6108
+ Processing by ApplicationController#index as HTML
6109
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6110
+ Processing by ApplicationController#index as HTML
6111
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6112
+ Processing by ApplicationController#index as HTML
6113
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6114
+ Processing by ApplicationController#index as HTML
6115
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6116
+ Processing by ApplicationController#index as HTML
6117
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6118
+ Processing by ApplicationController#index as HTML
6119
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6120
+ Processing by ApplicationController#index as HTML
6121
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6122
+ Processing by ApplicationController#index as HTML
6123
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6124
+ Processing by ApplicationController#index as HTML
6125
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6126
+ Processing by ApplicationController#index as HTML
6127
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6128
+ Processing by ApplicationController#index as HTML
6129
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6130
+ Processing by ApplicationController#index as HTML
6131
+ Completed 206 Partial Content in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
6132
+ Processing by ApplicationController#index as HTML
6133
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6134
+ Processing by ApplicationController#index as HTML
6135
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6136
+ Processing by ApplicationController#index as HTML
6137
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6138
+ Processing by ApplicationController#index as HTML
6139
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6140
+ Processing by ApplicationController#index as HTML
6141
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6142
+ Processing by ApplicationController#index as HTML
6143
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6144
+ Processing by ApplicationController#index as HTML
6145
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6146
+ Processing by ApplicationController#index as HTML
6147
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6148
+ Processing by ApplicationController#index as HTML
6149
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6150
+ Processing by ApplicationController#index as HTML
6151
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6152
+ Processing by ApplicationController#index as HTML
6153
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6154
+ Processing by ApplicationController#index as HTML
6155
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6156
+ Processing by ApplicationController#index as HTML
6157
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6158
+ Processing by ApplicationController#index as HTML
6159
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6160
+ Processing by ApplicationController#index as HTML
6161
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6162
+ Processing by ApplicationController#index as HTML
6163
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6164
+ Processing by ApplicationController#index as HTML
6165
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6166
+ Processing by ApplicationController#index as HTML
6167
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6168
+ Processing by ApplicationController#index as HTML
6169
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6170
+ Processing by ApplicationController#index as HTML
6171
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6172
+ Processing by ApplicationController#index as HTML
6173
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6174
+ Processing by ApplicationController#index as HTML
6175
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6176
+ Processing by ApplicationController#index as HTML
6177
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6178
+ Processing by ApplicationController#index as HTML
6179
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6180
+ Processing by ApplicationController#index as HTML
6181
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6182
+ Processing by ApplicationController#index as HTML
6183
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6184
+ Processing by ApplicationController#index as HTML
6185
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6186
+ Processing by ApplicationController#index as HTML
6187
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6188
+ Processing by ApplicationController#index as HTML
6189
+ Completed 206 Partial Content in 5ms (Views: 1.6ms | ActiveRecord: 0.0ms)
6190
+ Processing by ApplicationController#index as HTML
6191
+ Completed 206 Partial Content in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
6192
+ Processing by ApplicationController#index as HTML
6193
+ Completed 206 Partial Content in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
6194
+ Processing by ApplicationController#index as HTML
6195
+ Completed 206 Partial Content in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
6196
+ Processing by ApplicationController#index as HTML
6197
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
6198
+ Processing by ApplicationController#index as HTML
6199
+ Completed 206 Partial Content in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
6200
+ Processing by ApplicationController#index as HTML
6201
+ Completed 206 Partial Content in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
6202
+ Processing by ApplicationController#index as HTML
6203
+ Completed 206 Partial Content in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
6204
+ Processing by ApplicationController#index as HTML
6205
+ Completed 206 Partial Content in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
6206
+ Processing by ApplicationController#index as HTML
6207
+ Completed 416 Requested Range Not Satisfiable in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6208
+ Processing by ApplicationController#index as HTML
6209
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6210
+ Processing by ApplicationController#index as HTML
6211
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6212
+ Processing by ApplicationController#index as HTML
6213
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6214
+ Processing by ApplicationController#index as HTML
6215
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6216
+ Processing by ApplicationController#index as HTML
6217
+ Completed 206 Partial Content in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
6218
+ Processing by ApplicationController#index as HTML
6219
+ Completed 206 Partial Content in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
6220
+ Processing by ApplicationController#index as HTML
6221
+ Completed 206 Partial Content in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
6222
+ Processing by ApplicationController#index as HTML
6223
+ Completed 206 Partial Content in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
6224
+ Processing by ApplicationController#index as HTML
6225
+ Completed 206 Partial Content in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
6226
+ Processing by ApplicationController#index as HTML
6227
+ Completed 206 Partial Content in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
6228
+ Processing by ApplicationController#index as HTML
6229
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6230
+ Processing by ApplicationController#index as HTML
6231
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6232
+ Processing by ApplicationController#index as HTML
6233
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6234
+ Processing by ApplicationController#index as HTML
6235
+ Completed 416 Requested Range Not Satisfiable in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6236
+ Processing by ApplicationController#index as HTML
6237
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6238
+ Processing by ApplicationController#index as HTML
6239
+ Completed 206 Partial Content in 4ms (Views: 1.2ms | ActiveRecord: 0.0ms)
6240
+ Processing by ApplicationController#index as HTML
6241
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6242
+ Processing by ApplicationController#index as HTML
6243
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6244
+ Processing by ApplicationController#index as HTML
6245
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6246
+ Processing by ApplicationController#index as HTML
6247
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6248
+ Processing by ApplicationController#index as HTML
6249
+ Completed 206 Partial Content in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
6250
+ Processing by ApplicationController#index as HTML
6251
+ Completed 206 Partial Content in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
6252
+ Processing by ApplicationController#index as HTML
6253
+ Completed 206 Partial Content in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
6254
+ Processing by ApplicationController#index as HTML
6255
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
6256
+ Processing by ApplicationController#index as HTML
6257
+ Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
6258
+ Processing by ApplicationController#index as HTML
6259
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6260
+ Processing by ApplicationController#index as HTML
6261
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6262
+ Processing by ApplicationController#index as HTML
6263
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6264
+ Processing by ApplicationController#index as HTML
6265
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6266
+ Processing by ApplicationController#index as HTML
6267
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6268
+ Processing by ApplicationController#index as HTML
6269
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6270
+ Processing by ApplicationController#index as HTML
6271
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6272
+ Processing by ApplicationController#index as HTML
6273
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6274
+ Processing by ApplicationController#index as HTML
6275
+ Completed 206 Partial Content in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
6276
+ Processing by ApplicationController#index as HTML
6277
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6278
+ Processing by ApplicationController#index as HTML
6279
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6280
+ Processing by ApplicationController#index as HTML
6281
+ Completed 206 Partial Content in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6282
+ Processing by ApplicationController#index as HTML
6283
+ Completed 206 Partial Content in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
6284
+ Processing by ApplicationController#index as HTML
6285
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6286
+ Processing by ApplicationController#index as HTML
6287
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6288
+ Processing by ApplicationController#index as HTML
6289
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6290
+ Processing by ApplicationController#index as HTML
6291
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6292
+ Processing by ApplicationController#index as HTML
6293
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6294
+ Processing by ApplicationController#index as HTML
6295
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6296
+ Processing by ApplicationController#index as HTML
6297
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6298
+ Processing by ApplicationController#index as HTML
6299
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6300
+ Processing by ApplicationController#index as HTML
6301
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6302
+ Processing by ApplicationController#index as HTML
6303
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6304
+ Processing by ApplicationController#index as HTML
6305
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6306
+ Processing by ApplicationController#index as HTML
6307
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6308
+ Processing by ApplicationController#index as HTML
6309
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6310
+ Processing by ApplicationController#index as HTML
6311
+ Completed 416 Requested Range Not Satisfiable in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6312
+ Processing by ApplicationController#index as HTML
6313
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6314
+ Processing by ApplicationController#index as HTML
6315
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6316
+ Processing by ApplicationController#index as HTML
6317
+ Completed 206 Partial Content in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
6318
+ Processing by ApplicationController#index as HTML
6319
+ Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms)
6320
+  (0.1ms) rollback transaction
6321
+  (0.1ms) begin transaction
6322
+ --------------------------------------------------------------------------------------
6323
+ ApplicationControllerTest: test_handles_ranges_beyond_collection_length_via_truncation
6324
+ --------------------------------------------------------------------------------------
6325
+ Processing by ApplicationController#index as HTML
6326
+ Completed 206 Partial Content in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
6327
+  (0.0ms) rollback transaction
6328
+  (0.1ms) begin transaction
6329
+ -----------------------------------------------------
6330
+ ApplicationControllerTest: test_includes_link_headers
6331
+ -----------------------------------------------------
6332
+ Processing by ApplicationController#index as HTML
6333
+ Completed 206 Partial Content in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)
6334
+  (0.0ms) rollback transaction
6335
+  (0.1ms) begin transaction
6336
+ -------------------------------------------------------------------------------
6337
+ ApplicationControllerTest: test_last_page_range_can_extend_beyond_the_last_item
6338
+ -------------------------------------------------------------------------------
6339
+ Processing by ApplicationController#index as HTML
6340
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6341
+  (0.1ms) rollback transaction
6342
+  (0.1ms) begin transaction
6343
+ ---------------------------------------------------------------------------
6344
+ ApplicationControllerTest: test_next_page_range_can_extend_beyond_last_item
6345
+ ---------------------------------------------------------------------------
6346
+ Processing by ApplicationController#index as HTML
6347
+ Completed 206 Partial Content in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)
6348
+  (0.0ms) rollback transaction
6349
+  (0.1ms) begin transaction
6350
+ ----------------------------------------------------------------
6351
+ ApplicationControllerTest: test_omits_next_and_last_links_at_end
6352
+ ----------------------------------------------------------------
6353
+ Processing by ApplicationController#index as HTML
6354
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6355
+  (0.0ms) rollback transaction
6356
+  (0.0ms) begin transaction
6357
+ -------------------------------------------------------------------
6358
+ ApplicationControllerTest: test_omits_prev_and_first_links_at_start
6359
+ -------------------------------------------------------------------
6360
+ Processing by ApplicationController#index as HTML
6361
+ Completed 206 Partial Content in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
6362
+  (0.0ms) rollback transaction
6363
+  (0.1ms) begin transaction
6364
+ ---------------------------------------------------------------------
6365
+ ApplicationControllerTest: test_passes_along_exceptional_status_codes
6366
+ ---------------------------------------------------------------------
6367
+ Processing by ApplicationController#index as HTML
6368
+ Completed 100 Continue in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
6369
+ Processing by ApplicationController#index as HTML
6370
+ Completed 301 Moved Permanently in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6371
+ Processing by ApplicationController#index as HTML
6372
+ Completed 404 Not Found in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
6373
+ Processing by ApplicationController#index as HTML
6374
+ Completed 500 Internal Server Error in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6375
+  (0.0ms) rollback transaction
6376
+  (0.1ms) begin transaction
6377
+ --------------------------------------------------------------------------
6378
+ ApplicationControllerTest: test_preserves_query_parameters_in_link_headers
6379
+ --------------------------------------------------------------------------
6380
+ Processing by ApplicationController#index as HTML
6381
+ Parameters: {"foo"=>"bar"}
6382
+ Completed 206 Partial Content in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
6383
+  (0.0ms) rollback transaction
6384
+  (0.1ms) begin transaction
6385
+ ----------------------------------------------------------------
6386
+ ApplicationControllerTest: test_prev_is_the_left_inverse_of_next
6387
+ ----------------------------------------------------------------
6388
+ Processing by ApplicationController#index as HTML
6389
+ Completed 206 Partial Content in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
6390
+ Processing by ApplicationController#index as HTML
6391
+ Completed 206 Partial Content in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
6392
+ Processing by ApplicationController#index as HTML
6393
+ Completed 206 Partial Content in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)
6394
+ Processing by ApplicationController#index as HTML
6395
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6396
+ Processing by ApplicationController#index as HTML
6397
+ Completed 206 Partial Content in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)
6398
+ Processing by ApplicationController#index as HTML
6399
+ Completed 206 Partial Content in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
6400
+ Processing by ApplicationController#index as HTML
6401
+ Completed 206 Partial Content in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
6402
+ Processing by ApplicationController#index as HTML
6403
+ Completed 206 Partial Content in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
6404
+ Processing by ApplicationController#index as HTML
6405
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6406
+ Processing by ApplicationController#index as HTML
6407
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6408
+ Processing by ApplicationController#index as HTML
6409
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6410
+ Processing by ApplicationController#index as HTML
6411
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6412
+ Processing by ApplicationController#index as HTML
6413
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6414
+ Processing by ApplicationController#index as HTML
6415
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6416
+ Processing by ApplicationController#index as HTML
6417
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6418
+ Processing by ApplicationController#index as HTML
6419
+ Completed 206 Partial Content in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
6420
+ Processing by ApplicationController#index as HTML
6421
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6422
+ Processing by ApplicationController#index as HTML
6423
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6424
+ Processing by ApplicationController#index as HTML
6425
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6426
+ Processing by ApplicationController#index as HTML
6427
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6428
+ Processing by ApplicationController#index as HTML
6429
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6430
+ Processing by ApplicationController#index as HTML
6431
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6432
+ Processing by ApplicationController#index as HTML
6433
+ Completed 206 Partial Content in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
6434
+ Processing by ApplicationController#index as HTML
6435
+ Completed 206 Partial Content in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
6436
+ Processing by ApplicationController#index as HTML
6437
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
6438
+ Processing by ApplicationController#index as HTML
6439
+ Completed 206 Partial Content in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
6440
+ Processing by ApplicationController#index as HTML
6441
+ Completed 206 Partial Content in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
6442
+ Processing by ApplicationController#index as HTML
6443
+ Completed 206 Partial Content in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)
6444
+ Processing by ApplicationController#index as HTML
6445
+ Completed 206 Partial Content in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
6446
+ Processing by ApplicationController#index as HTML
6447
+ Completed 206 Partial Content in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
6448
+ Processing by ApplicationController#index as HTML
6449
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6450
+ Processing by ApplicationController#index as HTML
6451
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6452
+ Processing by ApplicationController#index as HTML
6453
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6454
+ Processing by ApplicationController#index as HTML
6455
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6456
+ Processing by ApplicationController#index as HTML
6457
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6458
+ Processing by ApplicationController#index as HTML
6459
+ Completed 206 Partial Content in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
6460
+ Processing by ApplicationController#index as HTML
6461
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6462
+ Processing by ApplicationController#index as HTML
6463
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6464
+ Processing by ApplicationController#index as HTML
6465
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6466
+ Processing by ApplicationController#index as HTML
6467
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6468
+ Processing by ApplicationController#index as HTML
6469
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6470
+ Processing by ApplicationController#index as HTML
6471
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6472
+ Processing by ApplicationController#index as HTML
6473
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6474
+ Processing by ApplicationController#index as HTML
6475
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6476
+ Processing by ApplicationController#index as HTML
6477
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6478
+ Processing by ApplicationController#index as HTML
6479
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6480
+ Processing by ApplicationController#index as HTML
6481
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6482
+ Processing by ApplicationController#index as HTML
6483
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6484
+ Processing by ApplicationController#index as HTML
6485
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6486
+ Processing by ApplicationController#index as HTML
6487
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6488
+ Processing by ApplicationController#index as HTML
6489
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6490
+ Processing by ApplicationController#index as HTML
6491
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6492
+ Processing by ApplicationController#index as HTML
6493
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6494
+ Processing by ApplicationController#index as HTML
6495
+ Completed 206 Partial Content in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
6496
+ Processing by ApplicationController#index as HTML
6497
+ Completed 206 Partial Content in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
6498
+ Processing by ApplicationController#index as HTML
6499
+ Completed 206 Partial Content in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
6500
+ Processing by ApplicationController#index as HTML
6501
+ Completed 206 Partial Content in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
6502
+ Processing by ApplicationController#index as HTML
6503
+ Completed 206 Partial Content in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
6504
+ Processing by ApplicationController#index as HTML
6505
+ Completed 206 Partial Content in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
6506
+ Processing by ApplicationController#index as HTML
6507
+ Completed 206 Partial Content in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
6508
+ Processing by ApplicationController#index as HTML
6509
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6510
+ Processing by ApplicationController#index as HTML
6511
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6512
+ Processing by ApplicationController#index as HTML
6513
+ Completed 206 Partial Content in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
6514
+ Processing by ApplicationController#index as HTML
6515
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6516
+ Processing by ApplicationController#index as HTML
6517
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6518
+ Processing by ApplicationController#index as HTML
6519
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6520
+ Processing by ApplicationController#index as HTML
6521
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6522
+ Processing by ApplicationController#index as HTML
6523
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6524
+ Processing by ApplicationController#index as HTML
6525
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6526
+ Processing by ApplicationController#index as HTML
6527
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6528
+ Processing by ApplicationController#index as HTML
6529
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6530
+ Processing by ApplicationController#index as HTML
6531
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6532
+ Processing by ApplicationController#index as HTML
6533
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6534
+ Processing by ApplicationController#index as HTML
6535
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6536
+ Processing by ApplicationController#index as HTML
6537
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6538
+ Processing by ApplicationController#index as HTML
6539
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6540
+ Processing by ApplicationController#index as HTML
6541
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6542
+ Processing by ApplicationController#index as HTML
6543
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6544
+ Processing by ApplicationController#index as HTML
6545
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6546
+ Processing by ApplicationController#index as HTML
6547
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6548
+ Processing by ApplicationController#index as HTML
6549
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6550
+ Processing by ApplicationController#index as HTML
6551
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6552
+ Processing by ApplicationController#index as HTML
6553
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6554
+ Processing by ApplicationController#index as HTML
6555
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6556
+ Processing by ApplicationController#index as HTML
6557
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6558
+ Processing by ApplicationController#index as HTML
6559
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6560
+ Processing by ApplicationController#index as HTML
6561
+ Completed 206 Partial Content in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
6562
+ Processing by ApplicationController#index as HTML
6563
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6564
+ Processing by ApplicationController#index as HTML
6565
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6566
+ Processing by ApplicationController#index as HTML
6567
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6568
+ Processing by ApplicationController#index as HTML
6569
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6570
+ Processing by ApplicationController#index as HTML
6571
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6572
+ Processing by ApplicationController#index as HTML
6573
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6574
+ Processing by ApplicationController#index as HTML
6575
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6576
+ Processing by ApplicationController#index as HTML
6577
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6578
+ Processing by ApplicationController#index as HTML
6579
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6580
+ Processing by ApplicationController#index as HTML
6581
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6582
+ Processing by ApplicationController#index as HTML
6583
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6584
+ Processing by ApplicationController#index as HTML
6585
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6586
+ Processing by ApplicationController#index as HTML
6587
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6588
+ Processing by ApplicationController#index as HTML
6589
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6590
+ Processing by ApplicationController#index as HTML
6591
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6592
+ Processing by ApplicationController#index as HTML
6593
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6594
+ Processing by ApplicationController#index as HTML
6595
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6596
+ Processing by ApplicationController#index as HTML
6597
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6598
+ Processing by ApplicationController#index as HTML
6599
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6600
+ Processing by ApplicationController#index as HTML
6601
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6602
+ Processing by ApplicationController#index as HTML
6603
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6604
+ Processing by ApplicationController#index as HTML
6605
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6606
+ Processing by ApplicationController#index as HTML
6607
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6608
+ Processing by ApplicationController#index as HTML
6609
+ Completed 206 Partial Content in 4ms (Views: 1.3ms | ActiveRecord: 0.0ms)
6610
+ Processing by ApplicationController#index as HTML
6611
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6612
+ Processing by ApplicationController#index as HTML
6613
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6614
+ Processing by ApplicationController#index as HTML
6615
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6616
+ Processing by ApplicationController#index as HTML
6617
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6618
+ Processing by ApplicationController#index as HTML
6619
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6620
+ Processing by ApplicationController#index as HTML
6621
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6622
+ Processing by ApplicationController#index as HTML
6623
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6624
+ Processing by ApplicationController#index as HTML
6625
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6626
+ Processing by ApplicationController#index as HTML
6627
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6628
+ Processing by ApplicationController#index as HTML
6629
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6630
+ Processing by ApplicationController#index as HTML
6631
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6632
+ Processing by ApplicationController#index as HTML
6633
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6634
+ Processing by ApplicationController#index as HTML
6635
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6636
+ Processing by ApplicationController#index as HTML
6637
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6638
+ Processing by ApplicationController#index as HTML
6639
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6640
+ Processing by ApplicationController#index as HTML
6641
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6642
+ Processing by ApplicationController#index as HTML
6643
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6644
+ Processing by ApplicationController#index as HTML
6645
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6646
+ Processing by ApplicationController#index as HTML
6647
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6648
+ Processing by ApplicationController#index as HTML
6649
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6650
+ Processing by ApplicationController#index as HTML
6651
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6652
+ Processing by ApplicationController#index as HTML
6653
+ Completed 206 Partial Content in 4ms (Views: 1.1ms | ActiveRecord: 0.0ms)
6654
+ Processing by ApplicationController#index as HTML
6655
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6656
+ Processing by ApplicationController#index as HTML
6657
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6658
+ Processing by ApplicationController#index as HTML
6659
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6660
+ Processing by ApplicationController#index as HTML
6661
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6662
+ Processing by ApplicationController#index as HTML
6663
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6664
+ Processing by ApplicationController#index as HTML
6665
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6666
+ Processing by ApplicationController#index as HTML
6667
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6668
+ Processing by ApplicationController#index as HTML
6669
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6670
+ Processing by ApplicationController#index as HTML
6671
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6672
+ Processing by ApplicationController#index as HTML
6673
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6674
+ Processing by ApplicationController#index as HTML
6675
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6676
+ Processing by ApplicationController#index as HTML
6677
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6678
+ Processing by ApplicationController#index as HTML
6679
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6680
+ Processing by ApplicationController#index as HTML
6681
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6682
+ Processing by ApplicationController#index as HTML
6683
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6684
+ Processing by ApplicationController#index as HTML
6685
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6686
+ Processing by ApplicationController#index as HTML
6687
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6688
+ Processing by ApplicationController#index as HTML
6689
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6690
+ Processing by ApplicationController#index as HTML
6691
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6692
+ Processing by ApplicationController#index as HTML
6693
+ Completed 206 Partial Content in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
6694
+ Processing by ApplicationController#index as HTML
6695
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6696
+ Processing by ApplicationController#index as HTML
6697
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6698
+ Processing by ApplicationController#index as HTML
6699
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6700
+ Processing by ApplicationController#index as HTML
6701
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6702
+ Processing by ApplicationController#index as HTML
6703
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6704
+ Processing by ApplicationController#index as HTML
6705
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6706
+ Processing by ApplicationController#index as HTML
6707
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6708
+ Processing by ApplicationController#index as HTML
6709
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6710
+ Processing by ApplicationController#index as HTML
6711
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6712
+ Processing by ApplicationController#index as HTML
6713
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6714
+ Processing by ApplicationController#index as HTML
6715
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6716
+ Processing by ApplicationController#index as HTML
6717
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6718
+ Processing by ApplicationController#index as HTML
6719
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6720
+ Processing by ApplicationController#index as HTML
6721
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6722
+ Processing by ApplicationController#index as HTML
6723
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
6724
+ Processing by ApplicationController#index as HTML
6725
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6726
+ Processing by ApplicationController#index as HTML
6727
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6728
+ Processing by ApplicationController#index as HTML
6729
+ Completed 206 Partial Content in 4ms (Views: 1.0ms | ActiveRecord: 0.0ms)
6730
+ Processing by ApplicationController#index as HTML
6731
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6732
+ Processing by ApplicationController#index as HTML
6733
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6734
+ Processing by ApplicationController#index as HTML
6735
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6736
+ Processing by ApplicationController#index as HTML
6737
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6738
+ Processing by ApplicationController#index as HTML
6739
+ Completed 206 Partial Content in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6740
+ Processing by ApplicationController#index as HTML
6741
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
6742
+  (0.0ms) rollback transaction
6743
+  (0.1ms) begin transaction
6744
+ ----------------------------------------------------------------------
6745
+ ApplicationControllerTest: test_previous_page_range_cannot_go_negative
6746
+ ----------------------------------------------------------------------
6747
+ Processing by ApplicationController#index as HTML
6748
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6749
+  (0.0ms) rollback transaction
6750
+  (0.0ms) begin transaction
6751
+ --------------------------------------------------------------------------------------------
6752
+ ApplicationControllerTest: test_rangeless_request_range_works_normally_if_max_range_>=_total
6753
+ --------------------------------------------------------------------------------------------
6754
+ Processing by ApplicationController#index as HTML
6755
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6756
+  (0.0ms) rollback transaction
6757
+  (0.0ms) begin transaction
6758
+ --------------------------------------------------------------------------------
6759
+ ApplicationControllerTest: test_rangeless_request_truncates_if_max_range_<_total
6760
+ --------------------------------------------------------------------------------
6761
+ Processing by ApplicationController#index as HTML
6762
+ Completed 206 Partial Content in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6763
+  (0.0ms) rollback transaction
6764
+  (0.0ms) begin transaction
6765
+ ------------------------------------------------------
6766
+ ApplicationControllerTest: test_refuses_offside_ranges
6767
+ ------------------------------------------------------
6768
+ Processing by ApplicationController#index as HTML
6769
+ Completed 416 Requested Range Not Satisfiable in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
6770
+  (0.0ms) rollback transaction
6771
+  (0.0ms) begin transaction
6772
+ -------------------------------------------------------------------
6773
+ ApplicationControllerTest: test_reports_infinite/unknown_collection
6774
+ -------------------------------------------------------------------
6775
+ Processing by ApplicationController#index as HTML
6776
+ Completed 206 Partial Content in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
6777
+  (0.0ms) rollback transaction
6778
+  (0.0ms) begin transaction
6779
+ ---------------------------------------------------------------------------------------
6780
+ ApplicationControllerTest: test_shifts_penultimate_page_to_beginning,_preserving_length
6781
+ ---------------------------------------------------------------------------------------
6782
+ Processing by ApplicationController#index as HTML
6783
+ Completed 206 Partial Content in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
6784
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clean_pagination
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Nelson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-10 00:00:00.000000000 Z
11
+ date: 2014-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.1.0.beta1
20
- type: :runtime
19
+ version: '3.2'
20
+ type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 4.1.0.beta1
26
+ version: '3.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sqlite3
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -102,6 +102,7 @@ files:
102
102
  - test/dummy/config/initializers/filter_parameter_logging.rb
103
103
  - test/dummy/config/initializers/inflections.rb
104
104
  - test/dummy/config/initializers/mime_types.rb
105
+ - test/dummy/config/initializers/secret_token.rb
105
106
  - test/dummy/config/initializers/session_store.rb
106
107
  - test/dummy/config/initializers/wrap_parameters.rb
107
108
  - test/dummy/config/locales/en.yml
@@ -140,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
141
  version: '0'
141
142
  requirements: []
142
143
  rubyforge_project:
143
- rubygems_version: 2.2.1
144
+ rubygems_version: 2.2.2
144
145
  signing_key:
145
146
  specification_version: 4
146
147
  summary: Mix into controllers to get pagination helpers
@@ -166,6 +167,7 @@ test_files:
166
167
  - test/dummy/config/initializers/filter_parameter_logging.rb
167
168
  - test/dummy/config/initializers/inflections.rb
168
169
  - test/dummy/config/initializers/mime_types.rb
170
+ - test/dummy/config/initializers/secret_token.rb
169
171
  - test/dummy/config/initializers/session_store.rb
170
172
  - test/dummy/config/initializers/wrap_parameters.rb
171
173
  - test/dummy/config/locales/en.yml