isomorfeus-policy 2.0.22 → 2.1.0

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: f36f37d53b7161ef2f7c45d03c9bbcf85fe6f5b991303c85772b83a7cb56ea62
4
- data.tar.gz: 5cd1c545bad65c49cb70d84962452568950e66766e057cee43f2fd0c7f32cc7e
3
+ metadata.gz: 4cb7a385a1637efa3ef4e88ef8bc067adaff778183eae613572dd654cc53717b
4
+ data.tar.gz: fe041cec58e8953527119d4fc02d72588e18c5ddfebca19daf1c006e41ab5f6b
5
5
  SHA512:
6
- metadata.gz: f6fe025993b10bc33acca224167af816633c976db7f9c89bdf0f62dd702b1e914b5cd889158272d15b58ea0b35c8243b7bd7b443718c5a965d450c4eff33b55a
7
- data.tar.gz: 60c9f19ba044974e46f6991e2c30356f16ca9016aaf09e5a95a928b60a0914a32586c04b27a09309f2c3b87f82fb58044637bb76bd5902c4e58957057376c49e
6
+ metadata.gz: 4074e2b0bdbb5b8ec426ea76d56e9c4a020288573662c03834b46438bcddd808b9a67cce9063f1c23a58eaa0903601e445e3a432e8320c29864eb238b6a24110
7
+ data.tar.gz: 0c1a04905c537f06d2f8aa6507fb85040b0dec965361eba6cbe093bb5e201030d3ad3e4032cd996640bca24ae3602bde286525b9de759966bccc7b3800e3a45e
@@ -1,5 +1,5 @@
1
1
  module Isomorfeus
2
2
  module Policy
3
- VERSION = '2.0.22'
3
+ VERSION = '2.1.0'
4
4
  end
5
5
  end
@@ -14,5 +14,9 @@ module LucidPolicy
14
14
  def deny
15
15
  nil
16
16
  end
17
+
18
+ def current_user
19
+ Isomorfeus.current_user
20
+ end
17
21
  end
18
22
  end
data/lib/lucid_props.rb CHANGED
@@ -2,6 +2,9 @@ class LucidProps
2
2
  def initialize(props_hash)
3
3
  props_hash = {} unless props_hash
4
4
  @props_hash = props_hash
5
+ if RUBY_ENGINE != 'opal'
6
+ @props_hash.freeze
7
+ end
5
8
  end
6
9
 
7
10
  def any?
@@ -21,10 +24,6 @@ class LucidProps
21
24
  @props_hash[prop_name]
22
25
  end
23
26
 
24
- def []=(prop_name, value)
25
- @props_hash[prop_name] = value
26
- end
27
-
28
27
  def key?(prop_name)
29
28
  @props_hash.key?(prop_name)
30
29
  end
@@ -58,10 +57,6 @@ class LucidProps
58
57
  nil
59
58
  end
60
59
 
61
- def []=(prop_name, value)
62
- @props_hash[prop_name.to_sym] = value
63
- end
64
-
65
60
  def key?(prop_name)
66
61
  @props_hash.key?(prop_name.to_sym) || @props_hash.key?(prop_name.to_s)
67
62
  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: 2.0.22
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-12 00:00:00.000000000 Z
11
+ date: 2022-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.14.9
33
+ version: 0.14.10
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.14.9
40
+ version: 0.14.10
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: isomorfeus-preact
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 10.6.31
47
+ version: 10.6.34
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 10.6.31
54
+ version: 10.6.34
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: isomorfeus-redux
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 2.0.22
75
+ version: 2.1.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 2.0.22
82
+ version: 2.1.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement