card-mod-follow 0.13.1 → 0.14.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: 54a104879baf59cd70abf59f31b49cc3b359369f22e6b9d1c778d8b9085219b7
4
- data.tar.gz: 1f4bd03ca63653b85bf898d2d8e092119b8f256de7f145f09d2efc704f2e4724
3
+ metadata.gz: 86436d95d91a3b2dfd3bbfdaad1fb6e5bcf5ac7f95dfe75ec541002a15be15c4
4
+ data.tar.gz: acc2d1c471768f3188eb03ae9a45420441dcfcbdfd26a073e12dd46a774991c3
5
5
  SHA512:
6
- metadata.gz: d8007f3c41d7b206ec69d974099e94b15c9f02609dabd70bd7ab2683f36d4a61cc46b53a42f2b68c4a316200b3b423dd68b900177d1ca4d983f689a3c48d6607
7
- data.tar.gz: c52d20e58a02efd35b6a3d95d52f915586cb95b0c1e9e7e9625f1f0899e55398c0b1904439ca2637c305950bdcfaa6e997481c581b76999e10d717ee8d090f74
6
+ metadata.gz: bcace86dc5a38b3d05179156149b329fd3cb9598c82abec9fba22986128df65025d919535565a8be17308e64b411cd3b68b70d6d9d829baabbf1d4e38c924391
7
+ data.tar.gz: 6965fb99511b537a8a637a5d22731c00ff7ad04b5e9117f69857cfce1d9f592756b334f8de7c806dd960eb2ab63ac4620118317492609aade9e0f21b719ddbe3
@@ -1,6 +1,6 @@
1
1
  FOLLOWER_IDS_CACHE_KEY = "FOLLOWER_IDS".freeze
2
2
 
3
- card_accessor :followers
3
+ card_accessor :followers, type: :list
4
4
 
5
5
  event :cache_expired_for_type_change, :store, on: :update, changed: %i[type_id name] do
6
6
  act_card&.schedule_preference_expiration
data/set/right/follow.rb CHANGED
@@ -10,10 +10,10 @@ def option_cards
10
10
  Card::FollowOption.cards.compact
11
11
  end
12
12
 
13
- def options_rule_card
13
+ def options_card
14
14
  Card.new(
15
15
  name: "follow_options_card",
16
- type_code: :pointer,
16
+ type: :list,
17
17
  content: option_cards.map { |oc| "[[#{oc.name}]]" }.join("\n")
18
18
  )
19
19
  end
@@ -34,7 +34,7 @@ format :html do
34
34
  def rules_and_options_by_set_pattern rule_opts_hash
35
35
  pattern_hash = a_set_pattern_hash rule_opts_hash
36
36
  empty = true
37
- Card.set_patterns.reverse.map do |pattern|
37
+ Pattern.concrete.reverse.map do |pattern|
38
38
  pattern_hash[pattern].each do |rule_card, options|
39
39
  options.each do |option|
40
40
  yield rule_card, option
@@ -60,6 +60,7 @@ format :html do
60
60
  end
61
61
 
62
62
  # TODO: research and generalize
63
+ # LOCALIZE
63
64
  # this does not look specific to following!
64
65
  view :errors, perms: :none do
65
66
  return unless card.errors.any?
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.13.1
4
+ version: 0.14.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: 2021-08-06 00:00:00.000000000 Z
13
+ date: 2021-12-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.103.1
21
+ version: 1.104.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.103.1
28
+ version: 1.104.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.13.1
35
+ version: 0.14.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.13.1
42
+ version: 0.14.0
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.6
109
+ rubygems_version: 3.2.15
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: follower notifications