card-mod-follow 0.11.3 → 0.11.7

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: ea9805ca78a42ac79578ea15887b9b783ab28b3ffde8ad7b6857ceb059b98048
4
- data.tar.gz: 6b103637f4754ef7eaf2d3efe6dfcb82a0f649c294a6d64c18c5f3466a6851a4
3
+ metadata.gz: ff4907a59dceae7b799516f3c5124b5b29114d65f190f19475ac1851f4dc97d6
4
+ data.tar.gz: b630f3cd035c8d45ccc6c6e25fe859ba2fc572d04a46639c9d15efcef2ea0fe0
5
5
  SHA512:
6
- metadata.gz: '0192c80e8bd0d4384f86bf67b03fef08d4ef59e658443b6c490751f4fbe2950102bb87673ccea3abf50a5e60871573c1880d27c9c9b0340cb8f6af707a0e6555'
7
- data.tar.gz: 9cf6b44d9f0e38a043009cbbf3b42bacfa8381315529cc19a2522d5dc660cf51050ba71113fc5f6f70ad8643af0b23b57a5cb5017345342cbd91eee07bc8838a
6
+ metadata.gz: cf8c12b12d12a962ef8ba4c51c16015b1f9d53e4b170d7cdffe2c1678b7d20780c44f042b4c07cc016c1025585be8ea602cd74d05a198371226a1edca37734fc
7
+ data.tar.gz: a0035def6346e579e52a04f820b1bc44de9f2ad0bf50ff5ed2c56c4bbfceb32585f406264f3d344389e02ea01dff297e4bf932fccfb7c2fe936146215e9e79cc
@@ -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
 
@@ -47,8 +47,7 @@ end
47
47
 
48
48
  format :html do
49
49
  view :edit, perms: :update, unknown: true do
50
- frame_and_form :update, hidden: { success: "_self",
51
- card: { update_all_users: false } } do
50
+ frame_and_form :update, hidden: { card: { update_all_users: false } } do
52
51
  [
53
52
  _render_content_formgroups,
54
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.3
4
+ version: 0.11.7
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-04-01 00:00:00.000000000 Z
13
+ date: 2021-08-01 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.3
21
+ version: 1.101.7
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.3
28
+ version: 1.101.7
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.3
35
+ version: 0.11.7
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.3
42
+ version: 0.11.7
43
43
  description: ''
44
44
  email:
45
45
  - info@decko.org
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  requirements: []
109
- rubygems_version: 3.1.4
109
+ rubygems_version: 3.1.6
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: follower notifications