Skip to content

Commit 69bab48

Browse files
authored
Ensures this gem works with Rails 7, Ruby 3, and BL 8. (#61)
* Ensures this gem works with Rails 7, Ruby 3, and BL 8. * Up to 9. * removes rspec 'allow'
1 parent c89ddc3 commit 69bab48

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

blacklight-access_controls.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version = File.read(File.expand_path('../VERSION', __FILE__)).strip
33
module Blacklight
44
module AccessControls
55
def self.bl_version
6-
ENV['BLACKLIGHT_VERSION'] ? [ENV['BLACKLIGHT_VERSION']] : ['> 6.0', '< 8']
6+
ENV['BLACKLIGHT_VERSION'] ? [ENV['BLACKLIGHT_VERSION']] : ['> 6.0', '< 9']
77
end
88
end
99
end

lib/blacklight/access_controls/enforcement.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# frozen_string_literal: true
2+
require 'deprecation'
23

34
module Blacklight
45
module AccessControls
@@ -15,11 +16,11 @@ module Enforcement
1516
extend ActiveSupport::Concern
1617

1718
included do
18-
extend Deprecation
19+
extend ::Deprecation
1920
attr_writer :current_ability, :discovery_permissions
2021
deprecation_deprecate :current_ability=
2122

22-
Deprecation.warn(self, 'Blacklight::AccessControls::Enforcement is deprecated and will be removed in 1.0')
23+
::Deprecation.warn(self, 'Blacklight::AccessControls::Enforcement is deprecated and will be removed in 1.0')
2324
class_attribute :solr_access_filters_logic
2425
alias_method :add_access_controls_to_solr_params, :apply_gated_discovery
2526

0 commit comments

Comments
 (0)