isomorfeus-policy 1.0.0.zeta5 → 1.0.0.zeta6

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: 7134e19c0aa95cc46633b2a5e19bd0f572a32ba15fb3c901e8c03adad5a9246d
4
- data.tar.gz: f1f619ae74b51f1d600532bf5ceac8b6619182f2427f907f8ee701528c765095
3
+ metadata.gz: 0424d887691ab087ae165290a2e888b0d01a4776e92241d9492c10ac15a3eccc
4
+ data.tar.gz: bbe95ade8ffc94ecdaeaf216d2ddd9970c7eef097cb52f34b2a82a3c642b6424
5
5
  SHA512:
6
- metadata.gz: 937f374c27084e58eff76cc6aba6cee945acd26dc6b5d6d33c18379d07a4d03b8efe61a01f55e251744d550f6f25ab89ebf69fc4a976ceb064075e3d12b89713
7
- data.tar.gz: f38e9788328f485b03b7aa155577bfb67704ceda73a5e90f9e99fa92fb6bbc60796a79361a15d035647efd21e11077d26f090d78f20d83e19da4e55c95bdff5a
6
+ metadata.gz: fe30ff265958adfce1b55a9ecde01e76864771dc256b0cc6abad370668e93cbc5c1920f463f1f0503d013d9c8383674d16151db192a0b5095e2037c68591c776
7
+ data.tar.gz: a81b2458a8c148b861a9c0fb786053e4aec6039f0a94a5f5d2474ec78cbea021722d5313230ea132269ab262c4460a22b4121d06dfcb11113b7b6d24bb9c6c92
data/README.md CHANGED
@@ -1,9 +1,15 @@
1
1
  # isomorfeus-policy
2
+
2
3
  Policy for Isomorfeus
3
4
 
4
- Policy is enforced on the server, however, the same policy rules are also available on the client to allow for making consistent decisions everywhere.
5
+
6
+ ### Community and Support
7
+ At the [Isomorfeus Framework Project](http://isomorfeus.com)
5
8
 
6
9
  ## Usage
10
+
11
+ Policy is enforced on the server, however, the same policy rules are also available on the client to allow for making consistent decisions everywhere.
12
+
7
13
  Everything that is not explicitly allowed somewhere is denied.
8
14
 
9
15
  Place the policy file in your projects `isomorfeus/policies`.
@@ -5,6 +5,7 @@ module Isomorfeus
5
5
  end
6
6
 
7
7
  def cached_policy_class(class_name)
8
+ return "::#{class_name}".constantize if Isomorfeus.development?
8
9
  return cached_policy_classes[class_name] if cached_policy_classes.key?(class_name)
9
10
  cached_policy_classes[class_name] = "::#{class_name}".constantize
10
11
  end
@@ -25,4 +26,4 @@ module Isomorfeus
25
26
  end
26
27
  end
27
28
  end
28
- end
29
+ end
@@ -1,5 +1,5 @@
1
1
  module Isomorfeus
2
2
  module Policy
3
- VERSION = '1.0.0.zeta5'
3
+ VERSION = '1.0.0.zeta6'
4
4
  end
5
5
  end
@@ -1,5 +1,3 @@
1
- require 'opal'
2
- require 'isomorfeus-redux'
3
1
  require 'isomorfeus-react'
4
2
  require 'isomorfeus/policy/config'
5
3
  require 'lucid_policy/exception'
@@ -10,17 +8,10 @@ require 'anonymous'
10
8
  require 'isomorfeus/policy/anonymous_policy'
11
9
 
12
10
  if RUBY_ENGINE == 'opal'
13
- Opal::Autoloader.add_load_path('policies')
11
+ Isomorfeus.zeitwerk.push_dir('policies')
14
12
  else
15
13
  Opal.append_path(__dir__.untaint) unless Opal.paths.include?(__dir__.untaint)
16
14
 
17
- require 'active_support/dependencies'
18
-
19
15
  path = File.expand_path(File.join('isomorfeus', 'policies'))
20
-
21
- ActiveSupport::Dependencies.autoload_paths << path
22
- # we also need to require them all, so classes are registered accordingly
23
- Dir.glob("#{path}/**/*.rb").each do |file|
24
- require file
25
- end
26
- end
16
+ Isomorfeus.zeitwerk.push_dir(path)
17
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-policy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.zeta5
4
+ version: 1.0.0.zeta6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-29 00:00:00.000000000 Z
11
+ date: 2019-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal
@@ -16,84 +16,70 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 1.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.11.0
27
- - !ruby/object:Gem::Dependency
28
- name: opal-autoloader
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 0.1.0
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 0.1.0
26
+ version: 1.0.0
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: isomorfeus-react
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - ">="
46
32
  - !ruby/object:Gem::Version
47
- version: 16.9.23
33
+ version: 16.12.1
48
34
  type: :runtime
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
38
  - - ">="
53
39
  - !ruby/object:Gem::Version
54
- version: 16.9.23
40
+ version: 16.12.1
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: isomorfeus-redux
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
45
  - - "~>"
60
46
  - !ruby/object:Gem::Version
61
- version: 4.0.13
47
+ version: 4.0.16
62
48
  type: :runtime
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
52
  - - "~>"
67
53
  - !ruby/object:Gem::Version
68
- version: 4.0.13
54
+ version: 4.0.16
69
55
  - !ruby/object:Gem::Dependency
70
- name: isomorfeus-installer
56
+ name: isomorfeus
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - '='
74
60
  - !ruby/object:Gem::Version
75
- version: 1.0.0.zeta5
61
+ version: 1.0.0.zeta6
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
66
  - - '='
81
67
  - !ruby/object:Gem::Version
82
- version: 1.0.0.zeta5
68
+ version: 1.0.0.zeta6
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: opal-webpack-loader
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
73
  - - ">="
88
74
  - !ruby/object:Gem::Version
89
- version: 0.9.5
75
+ version: 0.9.9
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
80
  - - ">="
95
81
  - !ruby/object:Gem::Version
96
- version: 0.9.5
82
+ version: 0.9.9
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: rake
99
85
  requirement: !ruby/object:Gem::Requirement