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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6073fa411505bf50a4f7c5083764546b4d11cca651c9ba5d498d5d9bd90c3851
4
- data.tar.gz: f6f56915ce8f5ad2e680c3c734669b57d554af13b2db8c6c3b2d83406f09ecb8
3
+ metadata.gz: eebdd4311fc697ea25598f38762c106619a212ce5d5fc58748d0a71ef14374c7
4
+ data.tar.gz: e56f9ae407213118bc436c86b43af1a04ed5d7e61230d2929292206d3e324810
5
5
  SHA512:
6
- metadata.gz: 3afa132cc68d01734d8833dbb236a51efb3884b6a220901e57bea9470bbfe82d133ba7564405e4d554c029aa93c72287f8e6c8e185410b9a4c4bb939fbbed715
7
- data.tar.gz: a4fe16ab52225cc0de5a5cd297e86f48602828bb45b36475ec6d6091e5eb5dc7120ad127abd52fdb20f5be343a50e8aa60a932938be00b154a5ebd428be277c8
6
+ metadata.gz: 4ce8168f22c1210c16e86d5a1335c3cd0b1f95577c11d6845ff119737d23fa0aec3cf480f24f34d41365e7eaccfa97c0995d5a154513e9279dbae7cabfaff76c
7
+ data.tar.gz: 4a99f5ecdba02e2d5105b92baf68565127784eb1a02654413a377878cafa85514fdd32a0d502af4fe4a364d5471ef57a22603215de0033f8f5e6a4dabbea873a
data/config/admin.yml ADDED
@@ -0,0 +1,7 @@
1
+ settings:
2
+ - follow_fields
3
+ - follow
4
+
5
+ cardtypes:
6
+ template:
7
+ - notification_template
data/set/all/follow.rb CHANGED
@@ -29,5 +29,5 @@ def follow_rule_card user=nil, args={}
29
29
  end
30
30
 
31
31
  def follow_rule? user=nil
32
- Card.exists? follow_rule_name(user)
32
+ Card.exist? follow_rule_name(user)
33
33
  end
@@ -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: "#{active_notice(:follower)}+#{:follow.cardname}",
48
+ card_url path(mark: [active_notice(:follower), :follow].cardname,
49
49
  action: :update,
50
- card: { subcards: { rule_name => Card[:never].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
- permit :delete
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].include?(action) && allowed_to_change_follow_status?
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.16.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: 2023-11-18 00:00:00.000000000 Z
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.106.0
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.106.0
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.16.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.16.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: '2.5'
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.4.10
123
+ rubygems_version: 3.5.7
123
124
  signing_key:
124
125
  specification_version: 4
125
126
  summary: follower notifications