card-mod-follow 0.17.0 → 0.18.1

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: 21b95a0210a0044183559bb5318976bb7d397219d45791ff3c9b79ed1eb74e41
4
- data.tar.gz: '052926436100ca6d8c997885794df81ef33942284d90dc283cd8f4408c9a36be'
3
+ metadata.gz: 43c3019329b1995d177289f4bdb793a5f6035158b3bb567e49614a49a1b7964c
4
+ data.tar.gz: 7efe9cb89137648689803e1dfa05ef59ecde0b89c44b1e067be880e64dfe5cfb
5
5
  SHA512:
6
- metadata.gz: 0ba5e6b11c2c964c5e99af9d76d54c7ef5ebfc2f84711f161fd9c4b567bc5a16077b2735691c994a3b04f9119c1b822554c0a8e2d2ae9e4b945d8900410285df
7
- data.tar.gz: 1f8d45dfb1c0e04e4554906ea50e46fb5f0e6eb204610e18aec83b284172cd4cd0d3dd8e124ece163c8bd127cb6f2220276d41c8e60752367f2eddb89a66317b
6
+ metadata.gz: f39f513018f22a1f026abcc3bf98f999497e0d2b1334d855fa59a7dc275ecdc9b41cc2a2ce19b9e16918cbdfa8b3c3e9928763dd541b75c5966457bece21ac82
7
+ data.tar.gz: a29aae59c0eaa06117837647122c7de535e3dfdd39bd3ca375fc732e8c9dd5b407bb1715c12cf26e255cb81cd04c6e4fc42a798d33c0946f86bd7f0799194c95
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
@@ -32,16 +32,16 @@ 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.17.0
4
+ version: 0.18.1
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: 2024-06-12 00:00:00.000000000 Z
13
+ date: 2024-11-22 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.107.0
21
+ version: 1.108.1
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.107.0
28
+ version: 1.108.1
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.17.0
35
+ version: 0.18.1
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.17.0
42
+ version: 0.18.1
43
43
  description: ''
44
44
  email:
45
45
  - info@decko.org
@@ -96,7 +96,7 @@ files:
96
96
  - set/type_plus_right/user/follow/follow_editor_helper.rb
97
97
  homepage: https://decko.org
98
98
  licenses:
99
- - GPL-3.0
99
+ - GPL-3.0-or-later
100
100
  metadata:
101
101
  source_code_uri: https://github.com/decko-commons/decko
102
102
  homepage_uri: https://decko.org