ae_declarative_authorization 1.1.0 → 1.3.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: ad033e42d9f72123a0e793e0a9df37d5c1f494d868dc7ea97d496fd5e6b40b75
4
- data.tar.gz: a0c1baff8ec79a33b89198ab54e2833c305447e3d5255cce3f8463b46c88378e
3
+ metadata.gz: 109d7f06d55bf881913fc6da042161c75cd1072f65b2cbf71308f73885485c57
4
+ data.tar.gz: 65ab92a85db9e907bb8fd64ef426b34b9fd00ca4f314183fa5b6fbc11a133d8b
5
5
  SHA512:
6
- metadata.gz: 101589523e4e5afad008fba401aad111dfd81825e21faa8ef931d3a1f0f031d40e638322be838155be1b37da307403a51a93f849a4f27d3c3b94fd79b84efb88
7
- data.tar.gz: 604b5e2731553c38de17e8313f3d3ed693e45b54bc7615b9a8d623294e63aa7bb5b2332dd265a6685f78e1c9a03334743678c01d6835078cfdb93aaa2ac8e966
6
+ metadata.gz: 7cb9f6727a83a476cc4380851d88d54c46e5d78ab921342a2122f67a7d58789c6888c7a2d487a14072c75335a6e82819351a6de3332ae8597b923b8ba1645504
7
+ data.tar.gz: ff391767bdf4426a379cd4c53eeba0013fdf3bc8d900b47f2849c8478a17b8a67b4bde0bd26987606bbbcefecd59cfa54b9b0bce9083364e8b6af9ed07d44ef8
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2017-2023 AppFolio, Inc., Steffen Bartsch
1
+ Copyright (c) 2017-2024 AppFolio, Inc., Steffen Bartsch
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -3,21 +3,21 @@
3
3
  require_relative 'lib/declarative_authorization/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
- spec.name = 'ae_declarative_authorization'
7
- spec.version = DeclarativeAuthorization::VERSION
8
- spec.platform = Gem::Platform::RUBY
9
- spec.author = 'AppFolio'
10
- spec.email = 'opensource@appfolio.com'
11
- spec.description = 'Rails gem for maintainable authorization based on readable authorization rules.'
12
- spec.summary = spec.description
13
- spec.homepage = 'https://github.com/appfolio/ae_declarative_authorization'
14
- spec.license = 'MIT'
15
- spec.files = Dir['**/*'].select { |f| f[%r{^(lib/|LICENSE.txt|.*gemspec)}] }
16
- spec.require_paths = ['lib']
17
- spec.required_ruby_version = Gem::Requirement.new('>= 2.6.3')
6
+ spec.name = 'ae_declarative_authorization'
7
+ spec.version = DeclarativeAuthorization::VERSION
8
+ spec.platform = Gem::Platform::RUBY
9
+ spec.author = 'AppFolio'
10
+ spec.email = 'opensource@appfolio.com'
11
+ spec.description = 'Rails gem for maintainable authorization based on readable authorization rules.'
12
+ spec.summary = spec.description
13
+ spec.homepage = 'https://github.com/appfolio/ae_declarative_authorization'
14
+ spec.license = 'MIT'
15
+ spec.files = Dir['**/*'].select { |f| f[%r{^(lib/|LICENSE.txt|.*gemspec)}] }
16
+ spec.require_paths = ['lib']
18
17
 
18
+ spec.required_ruby_version = Gem::Requirement.new('< 3.4')
19
19
  spec.metadata['allowed_push_host'] = 'https://rubygems.org'
20
20
 
21
21
  spec.add_dependency('blockenspiel', ['>= 0.5', '< 1'])
22
- spec.add_dependency('rails', ['>= 6', '< 7.1'])
22
+ spec.add_dependency('rails', ['>= 6.1', '< 7.2'])
23
23
  end
@@ -46,13 +46,7 @@ module Authorization
46
46
  def initialize(model, options)
47
47
  @finder_options = {}
48
48
 
49
- if Rails.version >= "5.2"
50
- super(model, table: model.table_name)
51
- elsif Rails.version >= "5"
52
- super(model, model.table_name, nil)
53
- else
54
- super(model, model.table_name)
55
- end
49
+ super(model, table: model.table_name)
56
50
  end
57
51
 
58
52
  def scope
@@ -1,3 +1,3 @@
1
1
  module DeclarativeAuthorization
2
- VERSION = '1.1.0'.freeze
2
+ VERSION = '1.3.0'.freeze
3
3
  end
@@ -8,11 +8,6 @@ if defined?(ActiveRecord)
8
8
  require File.join(%w{declarative_authorization obligation_scope})
9
9
  end
10
10
 
11
- min_rails_version = Gem::Version.new('4.2.5.2')
12
- if Gem::Version.new(Rails::VERSION::STRING) < min_rails_version
13
- raise "ae_declarative_authorization requires Rails #{min_rails_version}. You are using #{Rails::VERSION::STRING}."
14
- end
15
-
16
11
  require File.join(%w{declarative_authorization railsengine}) if defined?(::Rails::Engine)
17
12
 
18
13
  if defined?(ActionController)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ae_declarative_authorization
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - AppFolio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-05 00:00:00.000000000 Z
11
+ date: 2024-02-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: blockenspiel
@@ -36,20 +36,20 @@ dependencies:
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: '6'
39
+ version: '6.1'
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '7.1'
42
+ version: '7.2'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: '6'
49
+ version: '6.1'
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '7.1'
52
+ version: '7.2'
53
53
  description: Rails gem for maintainable authorization based on readable authorization
54
54
  rules.
55
55
  email: opensource@appfolio.com
@@ -89,16 +89,16 @@ require_paths:
89
89
  - lib
90
90
  required_ruby_version: !ruby/object:Gem::Requirement
91
91
  requirements:
92
- - - ">="
92
+ - - "<"
93
93
  - !ruby/object:Gem::Version
94
- version: 2.6.3
94
+ version: '3.4'
95
95
  required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  requirements:
97
97
  - - ">="
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  requirements: []
101
- rubygems_version: 3.4.8
101
+ rubygems_version: 3.5.3
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: Rails gem for maintainable authorization based on readable authorization