card-mod-email 0.14.1 → 0.15.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: ab3f4568bcf9b5db1964ae50d13a737b72c06fb7843576e37056c38b0cb605eb
4
- data.tar.gz: 06c6ddcdc7c3143243ec62577396bf84217c6aa35b769e15393b946b176530ae
3
+ metadata.gz: 30aa56b47b3da69b29e924bce6b56efb4cb20db50659faacb58fe883e65c652d
4
+ data.tar.gz: 4cebc06f57a3da20f27d22ed2bff4a6fdb9aedf7bc9f7c2545df26b0dc0f248d
5
5
  SHA512:
6
- metadata.gz: d9e636952386a08d385998b6e07e237bb1abc5b2e018855bc16b542bc1ef46b1a6f37db6206081d2d6fc1a38477085a400d310a50d9c608355f21f15fded2ff7
7
- data.tar.gz: 457c809c999659821f41be03394319e5f93e6777001f9c70f0461865034cd929b8c017b7dad4c8d9c3c4ff168953a5034a60a4f2aa50319cc2172326fc9194d9
6
+ metadata.gz: 87e464304afe498af6cfdbb1750015e0cdad379e560cd9ed5064664a8a4f112ea1a29ddf9ab330f47bd78f9fbcc0696cb3e91e2fb51fe8c8e5b07da1688c83c6
7
+ data.tar.gz: 5b992c130bcd22b5cc8f60ba68c4d479411b2b29d022b7a2983cbc69a3104c7f0d9b7133241fcbfff80b8ea09fba552829d7757491a2331518fbf098a98c3609
data/data/real.yml ADDED
@@ -0,0 +1,71 @@
1
+ ---
2
+ - :name: Email template
3
+ :type: :cardtype
4
+ :codename: email_template
5
+ :fields:
6
+ :description: |-
7
+ Design custom emails to be triggered by card actions.
8
+ [[http://decko.org/actions|more]]
9
+ :type:
10
+ :fields:
11
+ :structure: |-
12
+ <p>
13
+ {{+*from | labeled | link}}
14
+ {{+*to | labeled | link}}
15
+ {{+*cc | labeled | link}}
16
+ {{+*bcc | labeled | link}}
17
+ {{+*subject | titled}}
18
+ {{+*html message | titled}}
19
+ {{+*text message | titled}}
20
+ {{+*attach | titled}}
21
+ </p>"
22
+
23
+ - :name: "*to"
24
+ :codename: to
25
+ :fields:
26
+ :right:
27
+ :fields:
28
+ :content_options:
29
+ :type: :search_type
30
+ :content: ' { "right_plus":{"codename":"account"} } '
31
+ - :name: "*from"
32
+ :codename: from
33
+ :fields:
34
+ :right:
35
+ :fields:
36
+ :content_options:
37
+ :type: :search_type
38
+ :content: ' { "right_plus":{"codename":"account"} } '
39
+ - :name: "*cc"
40
+ :codename: cc
41
+ :fields:
42
+ :right:
43
+ :fields:
44
+ :content_options:
45
+ :type: :search_type
46
+ :content: ' { "right_plus":{"codename":"account"} } '
47
+ - :name: "*bcc"
48
+ :codename: bcc
49
+ :fields:
50
+ :right:
51
+ :fields:
52
+ :content_options:
53
+ :type: :search_type
54
+ :content: ' { "right_plus":{"codename":"account"} } '
55
+ - :name: "*subject"
56
+ :codename: subject
57
+ - :name: "*attach"
58
+ :codename: attach
59
+ :fields:
60
+ :right:
61
+ :fields:
62
+ :content_options:
63
+ :type: :search_type
64
+ :content: |-
65
+ {"type": "File",
66
+ "sort": "update"
67
+ }
68
+ - :name: "*html message"
69
+ :codename: html_message
70
+ - :name: "*text message"
71
+ :codename: text_message
data/data/test.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ - :name:
3
+ - :signup_alert_email
4
+ - :to
5
+ :type: :list
6
+ :content: signups@decko.org
data/set/right/bcc.rb CHANGED
@@ -1 +1,3 @@
1
1
  include_set Abstract::EmailField
2
+
3
+ assign_type :list
data/set/right/cc.rb CHANGED
@@ -1 +1,3 @@
1
1
  include_set Abstract::EmailField
2
+
3
+ assign_type :list
data/set/right/from.rb CHANGED
@@ -1 +1,3 @@
1
1
  include_set Abstract::EmailField
2
+
3
+ assign_type :list
data/set/right/subject.rb CHANGED
@@ -1 +1,3 @@
1
1
  include_set Abstract::TestContext
2
+
3
+ assign_type :phrase
@@ -1 +1,3 @@
1
1
  include_set Abstract::TestContext
2
+
3
+ assign_type :plain_text
data/set/right/to.rb CHANGED
@@ -1 +1,3 @@
1
1
  include_set Abstract::EmailField
2
+
3
+ assign_type :list
@@ -4,11 +4,11 @@ EMAIL_FIELDS =
4
4
  EMAIL_FIELD_METHODS =
5
5
  { subject: :contextual_content,
6
6
  text_message: :contextual_content,
7
- attach: :extended_item_contents }.freeze
7
+ attach: :recursed_item_contents }.freeze
8
8
 
9
- # @param [Card] context the card in whose context all email fields will be interpreted
10
- # @param [Hash] fields override any templated field configurations with hash values
11
- # @param [Hash] opts options for rendering. unknown options become format options
9
+ # @param context [Card] the card in whose context all email fields will be interpreted
10
+ # @param fields [Hash] override any templated field configurations with hash values
11
+ # @param opts [Hash] options for rendering. unknown options become format options
12
12
  # @option opts [Card, String, Integer] :auth user identifier. render as this user
13
13
  def email_config context, fields={}, opts={}
14
14
  @active_email_context = context || self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-mod-email
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1
4
+ version: 0.15.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: 2022-01-04 00:00:00.000000000 Z
13
+ date: 2023-01-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: card
@@ -18,14 +18,56 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.104.1
21
+ version: 1.105.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.104.1
28
+ version: 1.105.0
29
+ - !ruby/object:Gem::Dependency
30
+ name: card-mod-search
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - '='
34
+ - !ruby/object:Gem::Version
35
+ version: 0.15.0
36
+ type: :runtime
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - '='
41
+ - !ruby/object:Gem::Version
42
+ version: 0.15.0
43
+ - !ruby/object:Gem::Dependency
44
+ name: card-mod-list
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - '='
48
+ - !ruby/object:Gem::Version
49
+ version: 0.15.0
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - '='
55
+ - !ruby/object:Gem::Version
56
+ version: 0.15.0
57
+ - !ruby/object:Gem::Dependency
58
+ name: card-mod-permissions
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - '='
62
+ - !ruby/object:Gem::Version
63
+ version: 0.15.0
64
+ type: :runtime
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - '='
69
+ - !ruby/object:Gem::Version
70
+ version: 0.15.0
29
71
  description: ''
30
72
  email:
31
73
  - info@decko.org
@@ -33,6 +75,8 @@ executables: []
33
75
  extensions: []
34
76
  extra_rdoc_files: []
35
77
  files:
78
+ - data/real.yml
79
+ - data/test.yml
36
80
  - lib/card/format/email_html_format.rb
37
81
  - lib/card/format/email_text_format.rb
38
82
  - set/abstract/email_field.rb
@@ -58,6 +102,7 @@ metadata:
58
102
  wiki_uri: https://decko.org
59
103
  documentation_url: http://docs.decko.org/
60
104
  card-mod: email
105
+ card-mod-group: gem-defaults
61
106
  post_install_message:
62
107
  rdoc_options: []
63
108
  require_paths:
@@ -73,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
118
  - !ruby/object:Gem::Version
74
119
  version: '0'
75
120
  requirements: []
76
- rubygems_version: 3.2.15
121
+ rubygems_version: 3.3.11
77
122
  signing_key:
78
123
  specification_version: 4
79
124
  summary: Email handling