ucb_rails_user 7.0.1 → 7.2.0

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: 257e831bdad1d8d187610c1caed878cbddfb30239ad2ed44d8a6252a7e12951a
4
- data.tar.gz: d38a31a914830a99d25d3a779845cdcdc4e32e490fcf984676143d85ee63602d
3
+ metadata.gz: 4d08ac0dc34a2e4e062b2386e5c5e5b1a7cb46463b06e3ee9a5a1dab28f869ca
4
+ data.tar.gz: ca95ff926a2c85929ac1c5758ba45cdf03ccc87af263c68d84a647aabbc50694
5
5
  SHA512:
6
- metadata.gz: 8888d695cd175919db1080cbae50e64bc0aa4ac6c98fac6814f8bf0a090b9caeebbbbd0c8500ab81db7a7f00165a468aaabfd906210cc8c0665ac2e06b65d3c6
7
- data.tar.gz: 3e05c1ccc08f947c9670ceb5a2b1d9eeb48b0d58b13ae5fcb1cd4433a6a9fe16eea337b62da48222bcbaa6ca2fe4a19ff04b895ab7a56cde6f704f4a3610c56f
6
+ metadata.gz: 2f6997c633dc9f48888db78606a52e1b036d771a6872ac8c869cae78cd467dff387e0ca25a290482e30c113e31800d21c3b906404a3fbc09c9ffbdd3a8a8756d
7
+ data.tar.gz: 874765647b3bd159d2cdaa06c9ce384bbc7c46c664deb6446a9e0278593bbfdfd5f698c4e46149bcd957354e9b2c78502e7098d06f514d90c4d955f963f2b268
@@ -0,0 +1,6 @@
1
+ # Optionally override some pagy default with your own in the pagy initializer
2
+ Pagy::DEFAULT[:limit] = 10 # items per page
3
+ # Better user experience handled automatically
4
+ require 'pagy/extras/overflow'
5
+ Pagy::DEFAULT[:overflow] = :last_page
6
+
@@ -1,3 +1,5 @@
1
+ return if !UcbRailsUser.use_bootstrap_config
2
+
1
3
  # Use this setup block to configure all options available in SimpleForm.
2
4
  SimpleForm.setup do |config|
3
5
  config.error_notification_class = 'alert alert-danger'
@@ -1,3 +1,3 @@
1
1
  module UcbRailsUser
2
- VERSION = '7.0.1'
2
+ VERSION = '7.2.0'
3
3
  end
@@ -10,6 +10,7 @@ require "active_attr"
10
10
  module UcbRailsUser
11
11
 
12
12
  mattr_accessor :user_class
13
+ mattr_accessor :use_bootstrap_config
13
14
 
14
15
  def self.logger
15
16
  Rails.logger
@@ -19,4 +20,8 @@ module UcbRailsUser
19
20
  @@user_class&.constantize || ::User
20
21
  end
21
22
 
23
+ def self.use_bootstrap_config
24
+ @@use_bootstrap_config.nil? ? true : @@use_bootstrap_config
25
+ end
26
+
22
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ucb_rails_user
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.1
4
+ version: 7.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Downey
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2025-07-01 00:00:00.000000000 Z
15
+ date: 2025-12-10 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rails
@@ -148,16 +148,22 @@ dependencies:
148
148
  name: faraday
149
149
  requirement: !ruby/object:Gem::Requirement
150
150
  requirements:
151
- - - "~>"
151
+ - - ">="
152
152
  - !ruby/object:Gem::Version
153
153
  version: '1.0'
154
+ - - "<"
155
+ - !ruby/object:Gem::Version
156
+ version: '3.0'
154
157
  type: :runtime
155
158
  prerelease: false
156
159
  version_requirements: !ruby/object:Gem::Requirement
157
160
  requirements:
158
- - - "~>"
161
+ - - ">="
159
162
  - !ruby/object:Gem::Version
160
163
  version: '1.0'
164
+ - - "<"
165
+ - !ruby/object:Gem::Version
166
+ version: '3.0'
161
167
  - !ruby/object:Gem::Dependency
162
168
  name: puma
163
169
  requirement: !ruby/object:Gem::Requirement
@@ -369,6 +375,7 @@ files:
369
375
  - app/views/ucb_rails_user/users/index.html.haml
370
376
  - app/views/ucb_rails_user/users/new.html.haml
371
377
  - app/views/ucb_rails_user/users/search.js.haml
378
+ - config/initializers/pagy.rb
372
379
  - config/initializers/simple_form.rb
373
380
  - config/initializers/simple_form_bootstrap.rb
374
381
  - config/locales/simple_form.en.yml