card-mod-follow 0.13.2 → 0.14.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: 85304f19270cd41234c4af840b7abd446c9ee44a91d6541944f81ab4e7c7774c
4
- data.tar.gz: 695da6af0370762b08a833f257da35f034095d65f117c989272f2ba57b27a2ab
3
+ metadata.gz: e6c96e3dcf879891f5ddd36d4ed15312b0354e857d9bf8f5f36170e6a370216f
4
+ data.tar.gz: c5179e42850f8af395c7bf4e16e8e87764b4d78abccabd95b402e7e1cc5a949d
5
5
  SHA512:
6
- metadata.gz: e905fbcf1899895b5ef76ed058ce42e808017e8bcfe2bfb9af70083a3e8e14762095d448f99e7cdd4051f355ea643628440f159b499e843b10e520ffa3df2132
7
- data.tar.gz: 40026d7a40bbbacc51d58ae213cf4257ebc21fe8373cf0085b610745a64471a22a79627ccb34971af4ade918a5861067cdf7bfae1f5a63275ce42bc3258d0cfc
6
+ metadata.gz: 4fe14bca663bf3fa74f45ee74cc35f05385339a99d76687cc842737b069d973ab42397ca3accac289fc613c53b98daa2046ad54f4de0c1c7ae2b98abce90ccea
7
+ data.tar.gz: 0243153d7c04a5aa05febe4ce34663002a0603191f330cf645e5682a6b6069ffec42148b0b8dbb2e9409c86efc4fba7e99c3a460f342be88d15044d268105ded
@@ -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.2
4
+ version: 0.14.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: 2021-08-06 00:00:00.000000000 Z
13
+ date: 2022-01-04 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.2
21
+ version: 1.104.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.103.2
28
+ version: 1.104.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.13.2
35
+ version: 0.14.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.13.2
42
+ version: 0.14.1
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