card-mod-follow 0.17.0 → 0.18.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/set/all/follow.rb +1 -1
- data/set/all/notify/base_views.rb +2 -2
- data/set/right/follow.rb +4 -4
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43c3019329b1995d177289f4bdb793a5f6035158b3bb567e49614a49a1b7964c
|
4
|
+
data.tar.gz: 7efe9cb89137648689803e1dfa05ef59ecde0b89c44b1e067be880e64dfe5cfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f39f513018f22a1f026abcc3bf98f999497e0d2b1334d855fa59a7dc275ecdc9b41cc2a2ce19b9e16918cbdfa8b3c3e9928763dd541b75c5966457bece21ac82
|
7
|
+
data.tar.gz: a29aae59c0eaa06117837647122c7de535e3dfdd39bd3ca375fc732e8c9dd5b407bb1715c12cf26e255cb81cd04c6e4fc42a798d33c0946f86bd7f0799194c95
|
data/set/all/follow.rb
CHANGED
@@ -45,9 +45,9 @@ format do
|
|
45
45
|
view :unfollow_url, perms: :none, compact: true, cache: :never do
|
46
46
|
return "" unless (rule_name = live_follow_rule_name)
|
47
47
|
|
48
|
-
card_url path(mark:
|
48
|
+
card_url path(mark: [active_notice(:follower), :follow].cardname,
|
49
49
|
action: :update,
|
50
|
-
card: { subcards: { rule_name =>
|
50
|
+
card: { subcards: { rule_name => :never.cardname } })
|
51
51
|
end
|
52
52
|
|
53
53
|
def relevant_fields action
|
data/set/right/follow.rb
CHANGED
@@ -32,16 +32,16 @@ def ok_to_create?
|
|
32
32
|
permit :create
|
33
33
|
end
|
34
34
|
|
35
|
-
def ok_to_delete?
|
36
|
-
|
37
|
-
end
|
35
|
+
# def ok_to_delete?
|
36
|
+
# permit :delete
|
37
|
+
# end
|
38
38
|
|
39
39
|
def raw_help_text
|
40
40
|
"Get notified about changes"
|
41
41
|
end
|
42
42
|
|
43
43
|
def permit action, verb=nil
|
44
|
-
if %i[create delete update]
|
44
|
+
if action.in?(%i[create delete update]) && allowed_to_change_follow_status?
|
45
45
|
true
|
46
46
|
else
|
47
47
|
super action, verb
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: card-mod-follow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ethan McCutchen
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2024-
|
13
|
+
date: 2024-11-22 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: card
|
@@ -18,28 +18,28 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.
|
21
|
+
version: 1.108.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 1.
|
28
|
+
version: 1.108.1
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: card-mod-carrierwave
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.
|
35
|
+
version: 0.18.1
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - '='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.
|
42
|
+
version: 0.18.1
|
43
43
|
description: ''
|
44
44
|
email:
|
45
45
|
- info@decko.org
|
@@ -96,7 +96,7 @@ files:
|
|
96
96
|
- set/type_plus_right/user/follow/follow_editor_helper.rb
|
97
97
|
homepage: https://decko.org
|
98
98
|
licenses:
|
99
|
-
- GPL-3.0
|
99
|
+
- GPL-3.0-or-later
|
100
100
|
metadata:
|
101
101
|
source_code_uri: https://github.com/decko-commons/decko
|
102
102
|
homepage_uri: https://decko.org
|