zyphr 0.1.22 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/docs/CreateTemplateRequest.md +1 -3
- data/docs/Template.md +1 -1
- data/docs/UpdateTemplateRequest.md +1 -3
- data/lib/zyphr/models/create_template_request.rb +4 -16
- data/lib/zyphr/models/template.rb +5 -2
- data/lib/zyphr/models/update_template_request.rb +4 -15
- data/spec/models/create_template_request_spec.rb +0 -6
- data/spec/models/update_template_request_spec.rb +0 -6
- data/zyphr.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9b8fcb1badee8f50b9507765d4c2bcc896b0b966dbae85a89028f881008176a9
|
|
4
|
+
data.tar.gz: 6ba51b317d1e0f17d6c0becd75b2e8c616932c37a24a4c166c08fce7e50cb7cf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ca806ff3567cfada05a98543b861f1974ab135e235edf03ad3ae4d4668a051817451f6503ab7c301bb5f02a9cb68649f64b7faa2fe5a98f1a0957e3079a6fbcf
|
|
7
|
+
data.tar.gz: 5ce7284db506e4e5afaff6cd23da1178b36cb7d544ccd3c9fe908c7f3c083739662ee5d7731fb0a285026e54bed23e09bc3c0aa0d0c090d83c9c8ba20a43e6a2
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
| **subject** | **String** | Email subject line (supports Handlebars) | [optional] |
|
|
10
10
|
| **html** | **String** | HTML body (supports Handlebars) | [optional] |
|
|
11
11
|
| **text** | **String** | Plain text body (supports Handlebars) | [optional] |
|
|
12
|
-
| **variables** | **Hash<String, Object>** | Default variable values | [optional] |
|
|
13
12
|
|
|
14
13
|
## Example
|
|
15
14
|
|
|
@@ -21,8 +20,7 @@ instance = Zyphr::CreateTemplateRequest.new(
|
|
|
21
20
|
description: null,
|
|
22
21
|
subject: Welcome to {{company_name}}!,
|
|
23
22
|
html: null,
|
|
24
|
-
text: null
|
|
25
|
-
variables: null
|
|
23
|
+
text: null
|
|
26
24
|
)
|
|
27
25
|
```
|
|
28
26
|
|
data/docs/Template.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
| **subject** | **String** | | [optional] |
|
|
11
11
|
| **html** | **String** | | [optional] |
|
|
12
12
|
| **text** | **String** | | [optional] |
|
|
13
|
-
| **variables** | **
|
|
13
|
+
| **variables** | **Array<String>** | Variable names auto-detected from `{{var}}` placeholders in subject, html, and text. Server-derived; ignored if supplied on create/update. | [optional][readonly] |
|
|
14
14
|
| **version** | **Integer** | | [optional] |
|
|
15
15
|
| **created_at** | **Time** | | [optional] |
|
|
16
16
|
| **updated_at** | **Time** | | [optional] |
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
| **subject** | **String** | | [optional] |
|
|
10
10
|
| **html** | **String** | | [optional] |
|
|
11
11
|
| **text** | **String** | | [optional] |
|
|
12
|
-
| **variables** | **Hash<String, Object>** | | [optional] |
|
|
13
12
|
|
|
14
13
|
## Example
|
|
15
14
|
|
|
@@ -21,8 +20,7 @@ instance = Zyphr::UpdateTemplateRequest.new(
|
|
|
21
20
|
description: null,
|
|
22
21
|
subject: null,
|
|
23
22
|
html: null,
|
|
24
|
-
text: null
|
|
25
|
-
variables: null
|
|
23
|
+
text: null
|
|
26
24
|
)
|
|
27
25
|
```
|
|
28
26
|
|
|
@@ -29,9 +29,6 @@ module Zyphr
|
|
|
29
29
|
# Plain text body (supports Handlebars)
|
|
30
30
|
attr_accessor :text
|
|
31
31
|
|
|
32
|
-
# Default variable values
|
|
33
|
-
attr_accessor :variables
|
|
34
|
-
|
|
35
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
33
|
def self.attribute_map
|
|
37
34
|
{
|
|
@@ -39,8 +36,7 @@ module Zyphr
|
|
|
39
36
|
:'description' => :'description',
|
|
40
37
|
:'subject' => :'subject',
|
|
41
38
|
:'html' => :'html',
|
|
42
|
-
:'text' => :'text'
|
|
43
|
-
:'variables' => :'variables'
|
|
39
|
+
:'text' => :'text'
|
|
44
40
|
}
|
|
45
41
|
end
|
|
46
42
|
|
|
@@ -61,8 +57,7 @@ module Zyphr
|
|
|
61
57
|
:'description' => :'String',
|
|
62
58
|
:'subject' => :'String',
|
|
63
59
|
:'html' => :'String',
|
|
64
|
-
:'text' => :'String'
|
|
65
|
-
:'variables' => :'Hash<String, Object>'
|
|
60
|
+
:'text' => :'String'
|
|
66
61
|
}
|
|
67
62
|
end
|
|
68
63
|
|
|
@@ -109,12 +104,6 @@ module Zyphr
|
|
|
109
104
|
if attributes.key?(:'text')
|
|
110
105
|
self.text = attributes[:'text']
|
|
111
106
|
end
|
|
112
|
-
|
|
113
|
-
if attributes.key?(:'variables')
|
|
114
|
-
if (value = attributes[:'variables']).is_a?(Hash)
|
|
115
|
-
self.variables = value
|
|
116
|
-
end
|
|
117
|
-
end
|
|
118
107
|
end
|
|
119
108
|
|
|
120
109
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -167,8 +156,7 @@ module Zyphr
|
|
|
167
156
|
description == o.description &&
|
|
168
157
|
subject == o.subject &&
|
|
169
158
|
html == o.html &&
|
|
170
|
-
text == o.text
|
|
171
|
-
variables == o.variables
|
|
159
|
+
text == o.text
|
|
172
160
|
end
|
|
173
161
|
|
|
174
162
|
# @see the `==` method
|
|
@@ -180,7 +168,7 @@ module Zyphr
|
|
|
180
168
|
# Calculates hash code according to all attributes.
|
|
181
169
|
# @return [Integer] Hash code
|
|
182
170
|
def hash
|
|
183
|
-
[name, description, subject, html, text
|
|
171
|
+
[name, description, subject, html, text].hash
|
|
184
172
|
end
|
|
185
173
|
|
|
186
174
|
# Builds the object from hash
|
|
@@ -27,6 +27,7 @@ module Zyphr
|
|
|
27
27
|
|
|
28
28
|
attr_accessor :text
|
|
29
29
|
|
|
30
|
+
# Variable names auto-detected from `{{var}}` placeholders in subject, html, and text. Server-derived; ignored if supplied on create/update.
|
|
30
31
|
attr_accessor :variables
|
|
31
32
|
|
|
32
33
|
attr_accessor :version
|
|
@@ -70,7 +71,7 @@ module Zyphr
|
|
|
70
71
|
:'subject' => :'String',
|
|
71
72
|
:'html' => :'String',
|
|
72
73
|
:'text' => :'String',
|
|
73
|
-
:'variables' => :'
|
|
74
|
+
:'variables' => :'Array<String>',
|
|
74
75
|
:'version' => :'Integer',
|
|
75
76
|
:'created_at' => :'Time',
|
|
76
77
|
:'updated_at' => :'Time'
|
|
@@ -129,7 +130,9 @@ module Zyphr
|
|
|
129
130
|
end
|
|
130
131
|
|
|
131
132
|
if attributes.key?(:'variables')
|
|
132
|
-
|
|
133
|
+
if (value = attributes[:'variables']).is_a?(Array)
|
|
134
|
+
self.variables = value
|
|
135
|
+
end
|
|
133
136
|
end
|
|
134
137
|
|
|
135
138
|
if attributes.key?(:'version')
|
|
@@ -25,8 +25,6 @@ module Zyphr
|
|
|
25
25
|
|
|
26
26
|
attr_accessor :text
|
|
27
27
|
|
|
28
|
-
attr_accessor :variables
|
|
29
|
-
|
|
30
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
29
|
def self.attribute_map
|
|
32
30
|
{
|
|
@@ -34,8 +32,7 @@ module Zyphr
|
|
|
34
32
|
:'description' => :'description',
|
|
35
33
|
:'subject' => :'subject',
|
|
36
34
|
:'html' => :'html',
|
|
37
|
-
:'text' => :'text'
|
|
38
|
-
:'variables' => :'variables'
|
|
35
|
+
:'text' => :'text'
|
|
39
36
|
}
|
|
40
37
|
end
|
|
41
38
|
|
|
@@ -56,8 +53,7 @@ module Zyphr
|
|
|
56
53
|
:'description' => :'String',
|
|
57
54
|
:'subject' => :'String',
|
|
58
55
|
:'html' => :'String',
|
|
59
|
-
:'text' => :'String'
|
|
60
|
-
:'variables' => :'Hash<String, Object>'
|
|
56
|
+
:'text' => :'String'
|
|
61
57
|
}
|
|
62
58
|
end
|
|
63
59
|
|
|
@@ -102,12 +98,6 @@ module Zyphr
|
|
|
102
98
|
if attributes.key?(:'text')
|
|
103
99
|
self.text = attributes[:'text']
|
|
104
100
|
end
|
|
105
|
-
|
|
106
|
-
if attributes.key?(:'variables')
|
|
107
|
-
if (value = attributes[:'variables']).is_a?(Hash)
|
|
108
|
-
self.variables = value
|
|
109
|
-
end
|
|
110
|
-
end
|
|
111
101
|
end
|
|
112
102
|
|
|
113
103
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -155,8 +145,7 @@ module Zyphr
|
|
|
155
145
|
description == o.description &&
|
|
156
146
|
subject == o.subject &&
|
|
157
147
|
html == o.html &&
|
|
158
|
-
text == o.text
|
|
159
|
-
variables == o.variables
|
|
148
|
+
text == o.text
|
|
160
149
|
end
|
|
161
150
|
|
|
162
151
|
# @see the `==` method
|
|
@@ -168,7 +157,7 @@ module Zyphr
|
|
|
168
157
|
# Calculates hash code according to all attributes.
|
|
169
158
|
# @return [Integer] Hash code
|
|
170
159
|
def hash
|
|
171
|
-
[name, description, subject, html, text
|
|
160
|
+
[name, description, subject, html, text].hash
|
|
172
161
|
end
|
|
173
162
|
|
|
174
163
|
# Builds the object from hash
|
data/zyphr.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zyphr
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.23
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Zyphr
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-05-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|