card-mod-follow 0.16.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/admin.yml +7 -0
- data/set/all/follow.rb +1 -1
- data/set/all/notify/base_views.rb +2 -2
- data/set/right/follow.rb +6 -6
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eebdd4311fc697ea25598f38762c106619a212ce5d5fc58748d0a71ef14374c7
|
4
|
+
data.tar.gz: e56f9ae407213118bc436c86b43af1a04ed5d7e61230d2929292206d3e324810
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ce8168f22c1210c16e86d5a1335c3cd0b1f95577c11d6845ff119737d23fa0aec3cf480f24f34d41365e7eaccfa97c0995d5a154513e9279dbae7cabfaff76c
|
7
|
+
data.tar.gz: 4a99f5ecdba02e2d5105b92baf68565127784eb1a02654413a377878cafa85514fdd32a0d502af4fe4a364d5471ef57a22603215de0033f8f5e6a4dabbea873a
|
data/config/admin.yml
ADDED
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
@@ -24,24 +24,24 @@ def add_follow_item? condition
|
|
24
24
|
new_card? || !include_item?(condition)
|
25
25
|
end
|
26
26
|
|
27
|
-
def ok_to_update
|
27
|
+
def ok_to_update?
|
28
28
|
permit :update
|
29
29
|
end
|
30
30
|
|
31
|
-
def ok_to_create
|
31
|
+
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.0
|
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:
|
13
|
+
date: 2024-10-31 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.0
|
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.0
|
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.0
|
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.0
|
43
43
|
description: ''
|
44
44
|
email:
|
45
45
|
- info@decko.org
|
@@ -51,6 +51,7 @@ files:
|
|
51
51
|
- README.md
|
52
52
|
- assets/script/follow.js.coffee
|
53
53
|
- assets/style/follow.scss
|
54
|
+
- config/admin.yml
|
54
55
|
- data/files/mod_follow_script_asset_output/file.js
|
55
56
|
- data/real.yml
|
56
57
|
- data/test.yml
|
@@ -95,7 +96,7 @@ files:
|
|
95
96
|
- set/type_plus_right/user/follow/follow_editor_helper.rb
|
96
97
|
homepage: https://decko.org
|
97
98
|
licenses:
|
98
|
-
- GPL-3.0
|
99
|
+
- GPL-3.0-or-later
|
99
100
|
metadata:
|
100
101
|
source_code_uri: https://github.com/decko-commons/decko
|
101
102
|
homepage_uri: https://decko.org
|
@@ -112,14 +113,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
112
113
|
requirements:
|
113
114
|
- - ">="
|
114
115
|
- !ruby/object:Gem::Version
|
115
|
-
version: '
|
116
|
+
version: '3.0'
|
116
117
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
118
|
requirements:
|
118
119
|
- - ">="
|
119
120
|
- !ruby/object:Gem::Version
|
120
121
|
version: '0'
|
121
122
|
requirements: []
|
122
|
-
rubygems_version: 3.
|
123
|
+
rubygems_version: 3.5.7
|
123
124
|
signing_key:
|
124
125
|
specification_version: 4
|
125
126
|
summary: follower notifications
|