card-mod-follow 0.11.0 → 0.11.5
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 +4 -4
- data/set/all/follow/follow_link.rb +3 -2
- data/set/all/notify.rb +1 -0
- data/set/all/notify/base_views.rb +1 -0
- data/set/right/follow.rb +1 -1
- data/set/self/follow_defaults.rb +4 -3
- data/set/type/cardtype.rb +2 -2
- data/set/type_plus_right/user/follow.rb +3 -2
- metadata +13 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04e270da9f3ea02e6a58d594e00690f5735ef81f34ccf7c3c97f24de775e52d6
|
4
|
+
data.tar.gz: 7ffe7f6b22fa876a913899428f8cd7b2c9cf4027bf5784c507e6b2e21eb26069
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6937445b7363a90a64bfa9c64d7e5961786037119b99ce83615aa3e48acce023bf473612216355c947709564767447aa74a5e2a0955dbd8c67e7881e5f0658eb
|
7
|
+
data.tar.gz: 3dfb361d96c52cfe708e0ca9152c889d1dae97ddeac2b01858adc0ac9c9c6d7ac94838c10b4d819a5e16b1da63e71dee53eecee2ae8b9f672bb4e110f6c6d59b
|
@@ -25,7 +25,8 @@ class FollowLink
|
|
25
25
|
class: @format.css_classes("follow-link", link_opts[:class],
|
26
26
|
"slotter btn btn-sm btn-primary")
|
27
27
|
)
|
28
|
-
opts["data-update-foreign-slot"] =
|
28
|
+
opts["data-update-foreign-slot"] =
|
29
|
+
".d0-card-body > .card-slot.RIGHT-Xfollower.content-view"
|
29
30
|
opts["data-hover-text"] = hover_text if hover_text
|
30
31
|
link_to render_link_text, opts
|
31
32
|
end
|
@@ -51,7 +52,7 @@ class FollowLink
|
|
51
52
|
def path view=:follow_status
|
52
53
|
@format.path mark: mark,
|
53
54
|
action: :update,
|
54
|
-
success: {
|
55
|
+
success: { mark: @card.name, view: view },
|
55
56
|
card: { content: "[[#{rule_content}]]" }
|
56
57
|
end
|
57
58
|
|
data/set/all/notify.rb
CHANGED
data/set/right/follow.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# While the user follow dashboard ([User]+:follow`) is also in this Set, its
|
3
3
|
# customizations are handled in TypePlusRight::User::Follow
|
4
4
|
|
5
|
-
event :cache_expired_for_new_preference, :integrate, when: :
|
5
|
+
event :cache_expired_for_new_preference, :integrate, when: :preference? do
|
6
6
|
Card.follow_caches_expired
|
7
7
|
end
|
8
8
|
|
data/set/self/follow_defaults.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# DEPRECATED
|
2
2
|
#
|
3
|
-
#
|
3
|
+
# The card "*follow defaults"
|
4
|
+
#
|
5
|
+
# Despite its name, this card does not influence defaults for *follow rules.
|
4
6
|
# What it does is provide a mechanism (with interface) for updating all users so that
|
5
7
|
# they follow the items that are its content.
|
6
8
|
#
|
@@ -45,8 +47,7 @@ end
|
|
45
47
|
|
46
48
|
format :html do
|
47
49
|
view :edit, perms: :update, unknown: true do
|
48
|
-
frame_and_form :update, hidden: {
|
49
|
-
card: { update_all_users: false } } do
|
50
|
+
frame_and_form :update, hidden: { card: { update_all_users: false } } do
|
50
51
|
[
|
51
52
|
_render_content_formgroups,
|
52
53
|
_render_confirm_update_all,
|
data/set/type/cardtype.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
FOLLOW_TABS = { "Follow" =>
|
1
|
+
FOLLOW_TABS = { "Follow" => { view: "follow_tab" },
|
2
|
+
"Ignore" => { view: "ignore_tab" } }.freeze
|
2
3
|
|
3
4
|
# a virtual pointer to the sets that a user is following.
|
4
5
|
# (data is stored in preferences: `[Set]+[User]+:follow`)
|
@@ -36,7 +37,7 @@ format :html do
|
|
36
37
|
|
37
38
|
# renders follow tab and ignore tab
|
38
39
|
view :core do
|
39
|
-
tabs FOLLOW_TABS, "
|
40
|
+
tabs FOLLOW_TABS, "Follow", load: :lazy do
|
40
41
|
render_follow_tab
|
41
42
|
end
|
42
43
|
end
|
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.11.
|
4
|
+
version: 0.11.5
|
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: 2021-05-10 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.101.
|
21
|
+
version: 1.101.5
|
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.101.
|
28
|
+
version: 1.101.5
|
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.11.
|
35
|
+
version: 0.11.5
|
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.11.
|
42
|
+
version: 0.11.5
|
43
43
|
description: ''
|
44
44
|
email:
|
45
45
|
- info@decko.org
|
@@ -81,10 +81,15 @@ files:
|
|
81
81
|
- set/type_plus_right/user/follow.rb
|
82
82
|
- set/type_plus_right/user/follow/follow_editor.haml
|
83
83
|
- set/type_plus_right/user/follow/follow_editor_helper.rb
|
84
|
-
homepage:
|
84
|
+
homepage: https://decko.org
|
85
85
|
licenses:
|
86
86
|
- GPL-3.0
|
87
87
|
metadata:
|
88
|
+
source_code_uri: https://github.com/decko-commons/decko
|
89
|
+
homepage_uri: https://decko.org
|
90
|
+
bug_tracker_uri: https://github.com/decko-commons/decko/issues
|
91
|
+
wiki_uri: https://decko.org
|
92
|
+
documentation_url: http://docs.decko.org/
|
88
93
|
card-mod: follow
|
89
94
|
post_install_message:
|
90
95
|
rdoc_options: []
|
@@ -101,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
106
|
- !ruby/object:Gem::Version
|
102
107
|
version: '0'
|
103
108
|
requirements: []
|
104
|
-
rubygems_version: 3.
|
109
|
+
rubygems_version: 3.1.4
|
105
110
|
signing_key:
|
106
111
|
specification_version: 4
|
107
112
|
summary: follower notifications
|