card-mod-follow 0.11.1 → 0.11.6

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: 13f9bdd18c63539565e2f87f066d6ca143c37003daaeef34420a8a7d1aa63717
4
- data.tar.gz: 12d080bd4eddbff1152c12b7c20343fc0dcd5bb8f241a9b9050862f819403268
3
+ metadata.gz: df4dbf56060e1eded7c11b827c5ec7ab925e44ac42225c15099e6c0ea57b91be
4
+ data.tar.gz: b24e60300e76ac751f7fe18c5818d57909c0f2c0af38d57acf8ef7e633927f7d
5
5
  SHA512:
6
- metadata.gz: 2f9248653c5fcec6a8b204e5ef1b4490a3744de061f7aaedcd5e279d6e3e95c6ad01577e07a9a7ae58ff7af973f387cff033a3ca10d332091ef80b0353c698b6
7
- data.tar.gz: decf6e2d7dd42929a97f18c531dc1bbd55c0db5e475f08aaed2448714c010bf77045d0d33ed0856cce7d9f163962de9e54094fe48b9a379542534edb0fea69ba
6
+ metadata.gz: 5b156001a4a152515276d4b399727ebca48ebd84f199a43e571a0b0b3d617a7e33bc2ef63d9c76a8bef50bc4a3e4e389ad5eec0c9d4bad7745cc052c8c71f4f4
7
+ data.tar.gz: 311e0fb164c32e7dab7b445724b19fda00d52e9d3205bd00436737a8864a2679dd41566e5be8bbc94b91f8ff9c9885afbd986e1becf52069cc20dd65af2ccb7e
@@ -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"] = ".d0-card-body > .card-slot.RIGHT-Xfollower.content-view"
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: { id: @card.name, view: view },
55
+ success: { mark: @card.name, view: view },
55
56
  card: { content: "[[#{rule_content}]]" }
56
57
  end
57
58
 
data/set/all/notify.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  attr_accessor :follower_stash
2
+
2
3
  mattr_accessor :force_notifications
3
4
 
4
5
  event :silence_notifications, :initialize, when: :silence_notifications? do
@@ -87,6 +87,7 @@ format do
87
87
 
88
88
  def edit_info_for field, action
89
89
  return nil unless (value = action.value field)
90
+
90
91
  value = action.previous_value if action.action_type == :delete
91
92
  wrap_list_item " #{notification_action_label action} #{field}: #{value}"
92
93
  end
data/set/right/account.rb CHANGED
@@ -9,7 +9,7 @@ end
9
9
  def notify_of_act act
10
10
  Auth.as(left.id) do
11
11
  Card[:follower_notification_email].deliver(
12
- act.card, { to: email }, auth: left, active_notice: yield
12
+ act.card, { to: email }, { auth: left, active_notice: yield }
13
13
  )
14
14
  end
15
15
  end
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: :is_preference? do
5
+ event :cache_expired_for_new_preference, :integrate, when: :preference? do
6
6
  Card.follow_caches_expired
7
7
  end
8
8
 
@@ -1,6 +1,8 @@
1
1
  # DEPRECATED
2
2
  #
3
- # Despite its name (*follow defaults)card does not influence defaults for *follow rules.
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: { success: "_self",
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
@@ -16,6 +16,6 @@ end
16
16
 
17
17
  format :html do
18
18
  def related_by_type_items
19
- super.unshift ["#{card.name} cards", [card, :type, :by_name], mark: :absolute]
19
+ super.unshift ["#{card.name} cards", [card, :type, :by_name], { mark: :absolute }]
20
20
  end
21
- end
21
+ 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.1
4
+ version: 0.11.6
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: 2021-03-02 00:00:00.000000000 Z
13
+ date: 2021-05-21 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.1
21
+ version: 1.101.6
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.1
28
+ version: 1.101.6
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.1
35
+ version: 0.11.6
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.1
42
+ version: 0.11.6
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: http://decko.org
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.0.3
109
+ rubygems_version: 3.1.4
105
110
  signing_key:
106
111
  specification_version: 4
107
112
  summary: follower notifications