lookout-ahoy 0.3.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9eb509fb47d4d1e2d9c43c7f5a45b0944f9224b2fdb09b3a6a087f7a6eab582c
|
|
4
|
+
data.tar.gz: ccec65eddc3561cf139337aaf62e0133e98f368198d50a826afd963ccb465f3a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b39b76c6e689f08c9c77a6fbcb3acd1f61280a70e8de87c8f8ee73a4809039c59f845a979901739538d67d16fc64cc45b2871f8b985d27ebada32c25f07755cb
|
|
7
|
+
data.tar.gz: dc8116182b561da8cbff7896e7c97dfeeead7b93168f5edcb0c4d491f7e7bbb9055f65e738d68f168ccc9b62855f2efeb53d35e1459f9b97f71ede70bb2ed53f
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
module Lookout
|
|
2
2
|
class ApplicationController < ActionController::Base
|
|
3
|
-
|
|
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,6 +1,7 @@
|
|
|
1
1
|
module Lookout
|
|
2
2
|
module ApplicationHelper
|
|
3
|
-
|
|
3
|
+
# Pagy v9 needs this, v43+ has it integrated
|
|
4
|
+
include Pagy::Frontend if defined?(Pagy::Frontend)
|
|
4
5
|
|
|
5
6
|
def current_property_filter
|
|
6
7
|
return nil unless params[:q]
|
|
@@ -45,7 +46,7 @@ module Lookout
|
|
|
45
46
|
end
|
|
46
47
|
|
|
47
48
|
def number_to_percentage(number, options = {})
|
|
48
|
-
precision = options.fetch(:precision,
|
|
49
|
+
precision = options.fetch(:precision, 0)
|
|
49
50
|
"#{number.round(precision)}%"
|
|
50
51
|
end
|
|
51
52
|
|
|
@@ -115,7 +116,12 @@ module Lookout
|
|
|
115
116
|
|
|
116
117
|
def render_pagination
|
|
117
118
|
if @pagination
|
|
118
|
-
pagy_nav(
|
|
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
|
|
119
125
|
else
|
|
120
126
|
""
|
|
121
127
|
end
|
data/lib/lookout/version.rb
CHANGED
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
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- nativestranger
|
|
@@ -128,6 +128,9 @@ dependencies:
|
|
|
128
128
|
- - ">="
|
|
129
129
|
- !ruby/object:Gem::Version
|
|
130
130
|
version: '9.0'
|
|
131
|
+
- - "<"
|
|
132
|
+
- !ruby/object:Gem::Version
|
|
133
|
+
version: '44'
|
|
131
134
|
type: :runtime
|
|
132
135
|
prerelease: false
|
|
133
136
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -135,6 +138,9 @@ dependencies:
|
|
|
135
138
|
- - ">="
|
|
136
139
|
- !ruby/object:Gem::Version
|
|
137
140
|
version: '9.0'
|
|
141
|
+
- - "<"
|
|
142
|
+
- !ruby/object:Gem::Version
|
|
143
|
+
version: '44'
|
|
138
144
|
- !ruby/object:Gem::Dependency
|
|
139
145
|
name: rubyzip
|
|
140
146
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -667,7 +673,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
667
673
|
- !ruby/object:Gem::Version
|
|
668
674
|
version: '0'
|
|
669
675
|
requirements: []
|
|
670
|
-
rubygems_version: 3.
|
|
676
|
+
rubygems_version: 3.6.9
|
|
671
677
|
specification_version: 4
|
|
672
678
|
summary: A full-featured, mountable analytics dashboard for Rails, powered by Ahoy.
|
|
673
679
|
SQLite & PostgreSQL support.
|