openstax_utilities 5.0.0 → 5.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f669c295f76fbae48ac64196c9e7f2766de0117bf6c782bf3d7b756d504d7202
4
- data.tar.gz: d2848098c86245d8dbf392ea5baebddb45308d56d89795fd9b66f22461edd426
3
+ metadata.gz: b6b4a1617ff2a15831620ed25b06188c82509acd7754385a199dc5a720e8c3c8
4
+ data.tar.gz: ec843fec376ba727268a5c87935f3b28aa6fcfaa810a445f3703786aa32114fd
5
5
  SHA512:
6
- metadata.gz: 0e1fd6032f2d551ff8a3892dca07b9e21526c0b4ea17099fd4feb46ad600da894da92beded99fa4f2047091cdef63ab1b7d5012a20318a9877fd6f58f1b387f6
7
- data.tar.gz: bfe7a0eb33ee4b661300d3b9e65a5f45642dd6ecb39b9a7d22c06d5d0e49b45470f6dda9583442eaf79fd6f4180f494ef3320765bfbc6cfcd95964d16b29c0db
6
+ metadata.gz: 2c05ba5ecb8f2f70444a44f55371586bc8eec3c9dd7057ec6f0d91754530f4107014636e9251c3fa6b5bced827bda5d7efee545884cd4490719ec9b8c5d26806
7
+ data.tar.gz: 189bd0b1eb0d2a0822bef91051bd2d5687c8df01d27e44a23bea28448368d3c9731de7baa23d766a0888c5b18d7e70221da9bf0995a6f57688f4998d423399e8
@@ -56,7 +56,7 @@ module OpenStax
56
56
 
57
57
  fatal_error(offending_inputs: :per_page,
58
58
  message: 'Invalid page size',
59
- code: :invalid_per_page) if !per_page.nil? && per_page < 1
59
+ code: :invalid_per_page) if !per_page.nil? && per_page < 0
60
60
  fatal_error(offending_inputs: :page,
61
61
  message: 'Invalid page number',
62
62
  code: :invalid_page) if page < 1
@@ -11,7 +11,7 @@ module OpenStax
11
11
  isolate_namespace OpenStax::Utilities
12
12
 
13
13
  config.after_initialize do
14
- if Rails::VERSION::MAJOR == 6
14
+ if Rails::VERSION::MAJOR >= 6
15
15
  OSU::SITE_NAME = ::Rails.application.class.module_parent_name.underscore
16
16
  else
17
17
  OSU::SITE_NAME = ::Rails.application.class.parent_name.underscore
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Utilities
3
- VERSION = '5.0.0'
3
+ VERSION = '5.1.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstax_utilities
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Slavinsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-19 00:00:00.000000000 Z
11
+ date: 2024-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '5.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7.0'
22
+ version: '8.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '5.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7.0'
32
+ version: '8.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: lev
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -259,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
259
259
  - !ruby/object:Gem::Version
260
260
  version: '0'
261
261
  requirements: []
262
- rubygems_version: 3.1.4
262
+ rubygems_version: 3.1.6
263
263
  signing_key:
264
264
  specification_version: 4
265
265
  summary: Utilities for OpenStax web sites