dyspatch_client 2.0.0 → 5.0.1

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.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -1
  3. data/README.md +50 -34
  4. data/Rakefile +2 -0
  5. data/docs/APIError.md +12 -1
  6. data/docs/CompiledRead.md +13 -0
  7. data/docs/Cursor.md +11 -1
  8. data/docs/DraftMetaRead.md +27 -0
  9. data/docs/DraftRead.md +31 -0
  10. data/docs/DraftsApi.md +476 -0
  11. data/docs/DraftsRead.md +19 -0
  12. data/docs/InlineObject.md +17 -0
  13. data/docs/LocalizationKeyRead.md +19 -0
  14. data/docs/LocalizationMetaRead.md +15 -1
  15. data/docs/LocalizationRead.md +19 -1
  16. data/docs/LocalizationsApi.md +16 -18
  17. data/docs/TemplateMetaRead.md +15 -0
  18. data/docs/TemplateRead.md +16 -0
  19. data/docs/TemplatesApi.md +39 -40
  20. data/docs/TemplatesRead.md +10 -0
  21. data/dyspatch_client.gemspec +10 -16
  22. data/lib/dyspatch_client.rb +10 -4
  23. data/lib/dyspatch_client/api/drafts_api.rb +620 -0
  24. data/lib/dyspatch_client/api/localizations_api.rb +52 -34
  25. data/lib/dyspatch_client/api/templates_api.rb +100 -69
  26. data/lib/dyspatch_client/api_client.rb +54 -55
  27. data/lib/dyspatch_client/api_error.rb +23 -4
  28. data/lib/dyspatch_client/configuration.rb +49 -10
  29. data/lib/dyspatch_client/models/api_error.rb +50 -30
  30. data/lib/dyspatch_client/models/compiled_read.rb +49 -78
  31. data/lib/dyspatch_client/models/cursor.rb +47 -28
  32. data/lib/dyspatch_client/models/draft_meta_read.rb +258 -0
  33. data/lib/dyspatch_client/models/draft_read.rb +279 -0
  34. data/lib/dyspatch_client/models/drafts_read.rb +219 -0
  35. data/lib/dyspatch_client/models/inline_object.rb +206 -0
  36. data/lib/dyspatch_client/models/localization_key_read.rb +216 -0
  37. data/lib/dyspatch_client/models/localization_meta_read.rb +70 -39
  38. data/lib/dyspatch_client/models/localization_read.rb +73 -42
  39. data/lib/dyspatch_client/models/template_meta_read.rb +52 -33
  40. data/lib/dyspatch_client/models/template_read.rb +53 -34
  41. data/lib/dyspatch_client/models/templates_read.rb +45 -26
  42. data/lib/dyspatch_client/version.rb +5 -5
  43. data/pkg/dyspatch_client-5.0.0.gem +0 -0
  44. data/pkg/dyspatch_client-5.0.1.gem +0 -0
  45. data/spec/api/drafts_api_spec.rb +146 -0
  46. data/spec/api/localizations_api_spec.rb +12 -12
  47. data/spec/api/templates_api_spec.rb +24 -24
  48. data/spec/api_client_spec.rb +39 -39
  49. data/spec/configuration_spec.rb +12 -12
  50. data/spec/integration_spec.rb +41 -0
  51. data/spec/models/api_error_spec.rb +12 -13
  52. data/spec/models/compiled_read_spec.rb +10 -11
  53. data/spec/models/cursor_spec.rb +7 -8
  54. data/spec/models/draft_meta_read_spec.rb +77 -0
  55. data/spec/models/draft_read_spec.rb +83 -0
  56. data/spec/models/drafts_read_spec.rb +47 -0
  57. data/spec/models/inline_object_spec.rb +41 -0
  58. data/spec/models/localization_key_read_spec.rb +47 -0
  59. data/spec/models/localization_meta_read_spec.rb +18 -13
  60. data/spec/models/localization_read_spec.rb +20 -15
  61. data/spec/models/template_meta_read_spec.rb +12 -13
  62. data/spec/models/template_read_spec.rb +13 -14
  63. data/spec/models/templates_read_spec.rb +7 -8
  64. data/spec/spec_helper.rb +4 -4
  65. metadata +34 -128
  66. data/git_push.sh +0 -55
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Dyspatch API
3
3
 
4
- ## Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for popular languages and web frameworks. - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby)
4
+ ## Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for popular languages and web frameworks. - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby)
5
5
 
6
- OpenAPI spec version: 2019.03
6
+ The version of the OpenAPI document: 2020.04
7
7
  Contact: support@dyspatch.io
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dyspatch_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dyspatch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-07 00:00:00.000000000 Z
11
+ date: 2020-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -70,132 +70,12 @@ dependencies:
70
70
  - - "~>"
71
71
  - !ruby/object:Gem::Version
72
72
  version: '3.6'
73
- - !ruby/object:Gem::Dependency
74
- name: vcr
75
- requirement: !ruby/object:Gem::Requirement
76
- requirements:
77
- - - "~>"
78
- - !ruby/object:Gem::Version
79
- version: '3.0'
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: 3.0.1
83
- type: :development
84
- prerelease: false
85
- version_requirements: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '3.0'
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- version: 3.0.1
93
- - !ruby/object:Gem::Dependency
94
- name: webmock
95
- requirement: !ruby/object:Gem::Requirement
96
- requirements:
97
- - - "~>"
98
- - !ruby/object:Gem::Version
99
- version: '1.24'
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- version: 1.24.3
103
- type: :development
104
- prerelease: false
105
- version_requirements: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: '1.24'
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- version: 1.24.3
113
- - !ruby/object:Gem::Dependency
114
- name: autotest
115
- requirement: !ruby/object:Gem::Requirement
116
- requirements:
117
- - - "~>"
118
- - !ruby/object:Gem::Version
119
- version: '4.4'
120
- - - ">="
121
- - !ruby/object:Gem::Version
122
- version: 4.4.6
123
- type: :development
124
- prerelease: false
125
- version_requirements: !ruby/object:Gem::Requirement
126
- requirements:
127
- - - "~>"
128
- - !ruby/object:Gem::Version
129
- version: '4.4'
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- version: 4.4.6
133
- - !ruby/object:Gem::Dependency
134
- name: autotest-rails-pure
135
- requirement: !ruby/object:Gem::Requirement
136
- requirements:
137
- - - "~>"
138
- - !ruby/object:Gem::Version
139
- version: '4.1'
140
- - - ">="
141
- - !ruby/object:Gem::Version
142
- version: 4.1.2
143
- type: :development
144
- prerelease: false
145
- version_requirements: !ruby/object:Gem::Requirement
146
- requirements:
147
- - - "~>"
148
- - !ruby/object:Gem::Version
149
- version: '4.1'
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: 4.1.2
153
- - !ruby/object:Gem::Dependency
154
- name: autotest-growl
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: '0.2'
160
- - - ">="
161
- - !ruby/object:Gem::Version
162
- version: 0.2.16
163
- type: :development
164
- prerelease: false
165
- version_requirements: !ruby/object:Gem::Requirement
166
- requirements:
167
- - - "~>"
168
- - !ruby/object:Gem::Version
169
- version: '0.2'
170
- - - ">="
171
- - !ruby/object:Gem::Version
172
- version: 0.2.16
173
- - !ruby/object:Gem::Dependency
174
- name: autotest-fsevent
175
- requirement: !ruby/object:Gem::Requirement
176
- requirements:
177
- - - "~>"
178
- - !ruby/object:Gem::Version
179
- version: '0.2'
180
- - - ">="
181
- - !ruby/object:Gem::Version
182
- version: 0.2.12
183
- type: :development
184
- prerelease: false
185
- version_requirements: !ruby/object:Gem::Requirement
186
- requirements:
187
- - - "~>"
188
- - !ruby/object:Gem::Version
189
- version: '0.2'
190
- - - ">="
191
- - !ruby/object:Gem::Version
192
- version: 0.2.12
193
73
  description: "# Introduction The Dyspatch API is based on the REST paradigm, and
194
74
  features resource based URLs with standard HTTP response codes to indicate errors.
195
75
  We use standard HTTP authentication and request verbs, and all responses are JSON
196
76
  formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/)
197
- for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch
198
- provides API Clients for popular languages and web frameworks. - [Java](https://github.com/getdyspatch/dyspatch-java)
77
+ for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch
78
+ provides API Clients for popular languages and web frameworks. - [Java](https://github.com/getdyspatch/dyspatch-java)
199
79
  - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python)
200
80
  - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang)
201
81
  - [Ruby](https://github.com/getdyspatch/dyspatch-ruby) "
@@ -212,6 +92,12 @@ files:
212
92
  - docs/APIError.md
213
93
  - docs/CompiledRead.md
214
94
  - docs/Cursor.md
95
+ - docs/DraftMetaRead.md
96
+ - docs/DraftRead.md
97
+ - docs/DraftsApi.md
98
+ - docs/DraftsRead.md
99
+ - docs/InlineObject.md
100
+ - docs/LocalizationKeyRead.md
215
101
  - docs/LocalizationMetaRead.md
216
102
  - docs/LocalizationRead.md
217
103
  - docs/LocalizationsApi.md
@@ -220,8 +106,8 @@ files:
220
106
  - docs/TemplatesApi.md
221
107
  - docs/TemplatesRead.md
222
108
  - dyspatch_client.gemspec
223
- - git_push.sh
224
109
  - lib/dyspatch_client.rb
110
+ - lib/dyspatch_client/api/drafts_api.rb
225
111
  - lib/dyspatch_client/api/localizations_api.rb
226
112
  - lib/dyspatch_client/api/templates_api.rb
227
113
  - lib/dyspatch_client/api_client.rb
@@ -230,19 +116,33 @@ files:
230
116
  - lib/dyspatch_client/models/api_error.rb
231
117
  - lib/dyspatch_client/models/compiled_read.rb
232
118
  - lib/dyspatch_client/models/cursor.rb
119
+ - lib/dyspatch_client/models/draft_meta_read.rb
120
+ - lib/dyspatch_client/models/draft_read.rb
121
+ - lib/dyspatch_client/models/drafts_read.rb
122
+ - lib/dyspatch_client/models/inline_object.rb
123
+ - lib/dyspatch_client/models/localization_key_read.rb
233
124
  - lib/dyspatch_client/models/localization_meta_read.rb
234
125
  - lib/dyspatch_client/models/localization_read.rb
235
126
  - lib/dyspatch_client/models/template_meta_read.rb
236
127
  - lib/dyspatch_client/models/template_read.rb
237
128
  - lib/dyspatch_client/models/templates_read.rb
238
129
  - lib/dyspatch_client/version.rb
130
+ - pkg/dyspatch_client-5.0.0.gem
131
+ - pkg/dyspatch_client-5.0.1.gem
132
+ - spec/api/drafts_api_spec.rb
239
133
  - spec/api/localizations_api_spec.rb
240
134
  - spec/api/templates_api_spec.rb
241
135
  - spec/api_client_spec.rb
242
136
  - spec/configuration_spec.rb
137
+ - spec/integration_spec.rb
243
138
  - spec/models/api_error_spec.rb
244
139
  - spec/models/compiled_read_spec.rb
245
140
  - spec/models/cursor_spec.rb
141
+ - spec/models/draft_meta_read_spec.rb
142
+ - spec/models/draft_read_spec.rb
143
+ - spec/models/drafts_read_spec.rb
144
+ - spec/models/inline_object_spec.rb
145
+ - spec/models/localization_key_read_spec.rb
246
146
  - spec/models/localization_meta_read_spec.rb
247
147
  - spec/models/localization_read_spec.rb
248
148
  - spec/models/template_meta_read_spec.rb
@@ -268,23 +168,29 @@ required_rubygems_version: !ruby/object:Gem::Requirement
268
168
  - !ruby/object:Gem::Version
269
169
  version: '0'
270
170
  requirements: []
271
- rubygems_version: 3.0.3
171
+ rubygems_version: 3.0.6
272
172
  signing_key:
273
173
  specification_version: 4
274
174
  summary: Dyspatch is an email production platform that helps teams create and change
275
- transactional and triggered emails faster. See https://www.dyspatch.io for more
276
- information.
175
+ emails faster. See https://www.dyspatch.io for more information.
277
176
  test_files:
278
177
  - spec/api/localizations_api_spec.rb
178
+ - spec/api/drafts_api_spec.rb
279
179
  - spec/api/templates_api_spec.rb
280
180
  - spec/api_client_spec.rb
281
181
  - spec/configuration_spec.rb
182
+ - spec/integration_spec.rb
282
183
  - spec/models/cursor_spec.rb
184
+ - spec/models/draft_meta_read_spec.rb
283
185
  - spec/models/api_error_spec.rb
186
+ - spec/models/inline_object_spec.rb
284
187
  - spec/models/template_meta_read_spec.rb
285
188
  - spec/models/localization_meta_read_spec.rb
189
+ - spec/models/draft_read_spec.rb
190
+ - spec/models/drafts_read_spec.rb
286
191
  - spec/models/template_read_spec.rb
287
192
  - spec/models/compiled_read_spec.rb
288
193
  - spec/models/templates_read_spec.rb
289
194
  - spec/models/localization_read_spec.rb
195
+ - spec/models/localization_key_read_spec.rb
290
196
  - spec/spec_helper.rb
@@ -1,55 +0,0 @@
1
- #!/bin/sh
2
- #
3
- # Generated by: https://github.com/swagger-api/swagger-codegen.git
4
- #
5
- # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
6
- #
7
- # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
8
-
9
- git_user_id=$1
10
- git_repo_id=$2
11
- release_note=$3
12
-
13
- if [ "$git_user_id" = "" ]; then
14
- git_user_id="GIT_USER_ID"
15
- echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
16
- fi
17
-
18
- if [ "$git_repo_id" = "" ]; then
19
- git_repo_id="GIT_REPO_ID"
20
- echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
21
- fi
22
-
23
- if [ "$release_note" = "" ]; then
24
- release_note="Minor update"
25
- echo "[INFO] No command line input provided. Set \$release_note to $release_note"
26
- fi
27
-
28
- # Initialize the local directory as a Git repository
29
- git init
30
-
31
- # Adds the files in the local repository and stages them for commit.
32
- git add .
33
-
34
- # Commits the tracked changes and prepares them to be pushed to a remote repository.
35
- git commit -m "$release_note"
36
-
37
- # Sets the new remote
38
- git_remote=`git remote`
39
- if [ "$git_remote" = "" ]; then # git remote not defined
40
-
41
- if [ "$GIT_TOKEN" = "" ]; then
42
- echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
43
- git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
44
- else
45
- git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
46
- fi
47
-
48
- fi
49
-
50
- git pull origin master
51
-
52
- # Pushes (Forces) the changes in the local repository up to the remote repository
53
- echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
54
- git push origin master 2>&1 | grep -v 'To https'
55
-