lookout-ahoy 0.4.0 → 0.4.1

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
  SHA256:
3
- metadata.gz: 43ca7a24f9a05a6c13e8953bb00633c57f86fccee8cb022d1e4558af8e524a39
4
- data.tar.gz: fa173b00e17986052ae54987b8464d7903610f0f71f63b266303721df1629a33
3
+ metadata.gz: 9eb509fb47d4d1e2d9c43c7f5a45b0944f9224b2fdb09b3a6a087f7a6eab582c
4
+ data.tar.gz: ccec65eddc3561cf139337aaf62e0133e98f368198d50a826afd963ccb465f3a
5
5
  SHA512:
6
- metadata.gz: aebbbce5cfdddf26126f4669e944fbdd42e47cfa63f26310a780b1a8a796e4d6a77e7170f0074611dfc59f923435569d403f3870ce02197b13c86ee376d4ce6c
7
- data.tar.gz: 1e2b06efdb5ea6a6af518c7a12918fb6470867f0c1dfcbf5fede35a88deea551938bdb4bc5d29dfd02984a4b36e9e9188c874dce45686d087264629993833a29
6
+ metadata.gz: b39b76c6e689f08c9c77a6fbcb3acd1f61280a70e8de87c8f8ee73a4809039c59f845a979901739538d67d16fc64cc45b2871f8b985d27ebada32c25f07755cb
7
+ data.tar.gz: dc8116182b561da8cbff7896e7c97dfeeead7b93168f5edcb0c4d491f7e7bbb9055f65e738d68f168ccc9b62855f2efeb53d35e1459f9b97f71ede70bb2ed53f
@@ -1,6 +1,7 @@
1
1
  module Lookout
2
2
  class ApplicationController < ActionController::Base
3
- include Pagy::Method
3
+ # Support both Pagy v9 (Backend) and v43+ (Method)
4
+ include defined?(Pagy::Method) ? Pagy::Method : Pagy::Backend
4
5
  include CompareMode
5
6
  include RangeOptions
6
7
  include Rangeable
@@ -1,5 +1,8 @@
1
1
  module Lookout
2
2
  module ApplicationHelper
3
+ # Pagy v9 needs this, v43+ has it integrated
4
+ include Pagy::Frontend if defined?(Pagy::Frontend)
5
+
3
6
  def current_property_filter
4
7
  return nil unless params[:q]
5
8
 
@@ -113,7 +116,12 @@ module Lookout
113
116
 
114
117
  def render_pagination
115
118
  if @pagination
116
- @pagination.series_nav.html_safe
119
+ # Support both Pagy v9 (pagy_nav helper) and v43+ (series_nav method)
120
+ if @pagination.respond_to?(:series_nav)
121
+ @pagination.series_nav.html_safe
122
+ else
123
+ pagy_nav(@pagination).html_safe
124
+ end
117
125
  else
118
126
  ""
119
127
  end
@@ -1,3 +1,3 @@
1
1
  module Lookout
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lookout-ahoy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nativestranger