socketlabs-injectionapi 1.0.1 → 1.1.0
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 +5 -5
- data/.idea/socketlabs-ruby.iml +2 -2
- data/.idea/workspace.xml +158 -88
- data/CONTRIBUTING.md +47 -0
- data/README.MD +18 -9
- data/gemfile.lock +17 -17
- data/lib/socketlabs/injectionapi/core/injection_request_factory.rb +1 -0
- data/lib/socketlabs/injectionapi/core/serialization/message_json.rb +7 -0
- data/lib/socketlabs/injectionapi/message/basic_message.rb +1 -0
- data/lib/socketlabs/injectionapi/message/bulk_message.rb +1 -0
- data/lib/socketlabs/injectionapi/message/message_base.rb +10 -0
- data/lib/socketlabs/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6836ca1a20d067ff9b472ed43b5cc27355216e03f67ceba0afbfe658581b6aca
|
4
|
+
data.tar.gz: 370b18591dc5cc3bc1ee4c30f42871d7ec7c53423ec68c15136e36a3a353ebfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 485ce4f186821ae6faf881e8931e5f7583d6e6131c754c4aabb8a4c57e938110a860bbe31a0bb21fe00363a60fe1041ea72f59dc86e4e7c65f37f1466869626b
|
7
|
+
data.tar.gz: 63b65f20755c0f31d1c3208c6007ddf57164b811e0b7d515abcc9ca2944781370f9bf294fd5455237105184a2f1293f22f5558de1057f4725c0fdbbc2baab66c
|
data/.idea/socketlabs-ruby.iml
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
</component>
|
6
6
|
<component name="NewModuleRootManager">
|
7
7
|
<content url="file://$MODULE_DIR$" />
|
8
|
-
<orderEntry type="jdk" jdkName="ruby-2.
|
8
|
+
<orderEntry type="jdk" jdkName="ruby-2.6.6-p146" jdkType="RUBY_SDK" />
|
9
9
|
<orderEntry type="sourceFolder" forTests="false" />
|
10
|
-
<orderEntry type="library" scope="PROVIDED" name="bundler (
|
10
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.17.2, ruby-2.6.6-p146) [gem]" level="application" />
|
11
11
|
</component>
|
12
12
|
</module>
|
data/.idea/workspace.xml
CHANGED
@@ -3,9 +3,28 @@
|
|
3
3
|
<component name="AnalysisUIOptions">
|
4
4
|
<option name="SCOPE_TYPE" value="3" />
|
5
5
|
</component>
|
6
|
+
<component name="BranchesTreeState">
|
7
|
+
<expand>
|
8
|
+
<path>
|
9
|
+
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
10
|
+
<item name="LOCAL_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
11
|
+
</path>
|
12
|
+
<path>
|
13
|
+
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
14
|
+
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
15
|
+
</path>
|
16
|
+
<path>
|
17
|
+
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
18
|
+
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
19
|
+
<item name="GROUP_NODE:origin" type="e8cecc67:BranchNodeDescriptor" />
|
20
|
+
</path>
|
21
|
+
</expand>
|
22
|
+
<select />
|
23
|
+
</component>
|
6
24
|
<component name="ChangeListManager">
|
7
25
|
<list default="true" id="85d88e06-b233-47b5-8542-3cede01dcf1c" name="Default Changelist" comment="">
|
8
|
-
<change beforePath="$PROJECT_DIR
|
26
|
+
<change beforePath="$PROJECT_DIR$/.idea/socketlabs-ruby.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/socketlabs-ruby.iml" afterDir="false" />
|
27
|
+
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
9
28
|
</list>
|
10
29
|
<option name="SHOW_DIALOG" value="false" />
|
11
30
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
@@ -16,22 +35,25 @@
|
|
16
35
|
<SUITE FILE_PATH="coverage/socketlabs_ruby@test.rcov" NAME="basic_send_complex Coverage Results" MODIFIED="1579119951554" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/examples/basic" MODULE_NAME="socketlabs-ruby" />
|
17
36
|
<SUITE FILE_PATH="coverage/socketlabs_ruby@bulk_send_complex.rcov" NAME="bulk_send_complex Coverage Results" MODIFIED="1579527705705" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/examples/bulk/" MODULE_NAME="socketlabs-ruby" />
|
18
37
|
</component>
|
19
|
-
<component name="FavoritesManager">
|
20
|
-
<favorites_list name="socketlabs-ruby" />
|
21
|
-
</component>
|
22
38
|
<component name="FileTemplateManagerImpl">
|
23
39
|
<option name="RECENT_TEMPLATES">
|
24
40
|
<list>
|
25
41
|
<option value="Ruby Module Template" />
|
26
42
|
<option value="Ruby Class Template" />
|
27
|
-
<option value="Ruby File" />
|
28
43
|
<option value="Ruby Class" />
|
44
|
+
<option value="Ruby File" />
|
29
45
|
</list>
|
30
46
|
</option>
|
31
47
|
</component>
|
32
48
|
<component name="Git.Settings">
|
33
49
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
34
50
|
</component>
|
51
|
+
<component name="JsFlowSettings">
|
52
|
+
<service-enabled>true</service-enabled>
|
53
|
+
<exe-path />
|
54
|
+
<other-services-enabled>true</other-services-enabled>
|
55
|
+
<auto-save>true</auto-save>
|
56
|
+
</component>
|
35
57
|
<component name="ProjectId" id="1Wf8exPEJ9I7WRFA1Z68UdLNPKa" />
|
36
58
|
<component name="ProjectInspectionProfilesVisibleTreeState">
|
37
59
|
<entry key="Project Default">
|
@@ -53,21 +75,16 @@
|
|
53
75
|
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
54
76
|
<component name="ProjectViewState">
|
55
77
|
<option name="hideEmptyMiddlePackages" value="true" />
|
56
|
-
<option name="showExcludedFiles" value="true" />
|
57
78
|
<option name="showLibraryContents" value="true" />
|
58
79
|
</component>
|
59
80
|
<component name="PropertiesComponent">
|
81
|
+
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
60
82
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
61
|
-
<property name="last_opened_file_path" value="$PROJECT_DIR
|
62
|
-
<property name="
|
83
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$/examples/bulk/bulk_send_with_amp_body.rb" />
|
84
|
+
<property name="nodejs_package_manager_path" value="npm" />
|
85
|
+
<property name="settings.editor.selected.configurable" value="project.propVCSSupport.Mappings" />
|
63
86
|
</component>
|
64
87
|
<component name="RecentsManager">
|
65
|
-
<key name="CopyFile.RECENT_KEYS">
|
66
|
-
<recent name="C:\Projects\socketlabs-ruby\examples\bulk" />
|
67
|
-
<recent name="C:\Projects\socketlabs-ruby\examples" />
|
68
|
-
<recent name="C:\Projects\socketlabs-ruby\socketlabs\injectionapi" />
|
69
|
-
<recent name="C:\Projects\socketlabs-ruby\socketlabs\injectionapi\message" />
|
70
|
-
</key>
|
71
88
|
<key name="MoveFile.RECENT_KEYS">
|
72
89
|
<recent name="C:\Projects\socketlabs-ruby\examples\basic" />
|
73
90
|
<recent name="C:\Projects\socketlabs-ruby\lib" />
|
@@ -75,6 +92,13 @@
|
|
75
92
|
<recent name="C:\Projects\socketlabs-ruby" />
|
76
93
|
<recent name="C:\Projects\socketlabs-ruby\socketlabs\injectionapi\message" />
|
77
94
|
</key>
|
95
|
+
<key name="CopyFile.RECENT_KEYS">
|
96
|
+
<recent name="C:\Projects\forks\socketlabs-ruby\examples\bulk" />
|
97
|
+
<recent name="C:\Projects\socketlabs-ruby\examples\bulk" />
|
98
|
+
<recent name="C:\Projects\socketlabs-ruby\examples" />
|
99
|
+
<recent name="C:\Projects\socketlabs-ruby\socketlabs\injectionapi" />
|
100
|
+
<recent name="C:\Projects\socketlabs-ruby\socketlabs\injectionapi\message" />
|
101
|
+
</key>
|
78
102
|
</component>
|
79
103
|
<component name="RunAnythingCache">
|
80
104
|
<option name="a">
|
@@ -126,6 +150,21 @@
|
|
126
150
|
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
127
151
|
<method v="2" />
|
128
152
|
</configuration>
|
153
|
+
<configuration name="basic_send_with_amp_body" type="RubyRunConfigurationType" factoryName="Ruby">
|
154
|
+
<module name="socketlabs-ruby" />
|
155
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="" />
|
156
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/examples/basic" />
|
157
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
158
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="ruby-2.7.1-p83" />
|
159
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
160
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
161
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
162
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov" />
|
163
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.rails.run.RailsRunConfigurationExtension" SCRATCH_USE_RAILS_RUNNER="false" />
|
164
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/examples/basic/basic_send_with_amp_body.rb" />
|
165
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
166
|
+
<method v="2" />
|
167
|
+
</configuration>
|
129
168
|
<configuration name="basic_send_with_api_template" type="RubyRunConfigurationType" factoryName="Ruby">
|
130
169
|
<module name="socketlabs-ruby" />
|
131
170
|
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="" />
|
@@ -136,6 +175,7 @@
|
|
136
175
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
137
176
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
138
177
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov" />
|
178
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.rails.run.RailsRunConfigurationExtension" SCRATCH_USE_RAILS_RUNNER="false" />
|
139
179
|
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/examples/basic/basic_send_with_api_template.rb" />
|
140
180
|
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
141
181
|
<method v="2" />
|
@@ -150,6 +190,7 @@
|
|
150
190
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
151
191
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
152
192
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov" />
|
193
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.rails.run.RailsRunConfigurationExtension" SCRATCH_USE_RAILS_RUNNER="false" />
|
153
194
|
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/examples/basic/basic_send_with_ascii_charset.rb" />
|
154
195
|
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
155
196
|
<method v="2" />
|
@@ -248,10 +289,26 @@
|
|
248
289
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
249
290
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
250
291
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov" />
|
292
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.rails.run.RailsRunConfigurationExtension" SCRATCH_USE_RAILS_RUNNER="false" />
|
251
293
|
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/examples/bulk/bulk_send_from_data_source_with_merge_data.rb" />
|
252
294
|
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
253
295
|
<method v="2" />
|
254
296
|
</configuration>
|
297
|
+
<configuration name="bulk_send_with_amp_body" type="RubyRunConfigurationType" factoryName="Ruby">
|
298
|
+
<module name="socketlabs-ruby" />
|
299
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="" />
|
300
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/examples/bulk/" />
|
301
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
302
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
303
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
304
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
305
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
306
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov" />
|
307
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.rails.run.RailsRunConfigurationExtension" SCRATCH_USE_RAILS_RUNNER="false" />
|
308
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/examples/bulk/bulk_send_with_amp_body.rb" />
|
309
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
310
|
+
<method v="2" />
|
311
|
+
</configuration>
|
255
312
|
<configuration name="bulk_send_with_ascii_charset_merge_data" type="RubyRunConfigurationType" factoryName="Ruby">
|
256
313
|
<module name="socketlabs-ruby" />
|
257
314
|
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="" />
|
@@ -290,6 +347,7 @@
|
|
290
347
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
291
348
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
292
349
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov" />
|
350
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.rails.run.RailsRunConfigurationExtension" SCRATCH_USE_RAILS_RUNNER="false" />
|
293
351
|
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/examples/example_code.rb" />
|
294
352
|
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
295
353
|
<method v="2" />
|
@@ -299,6 +357,7 @@
|
|
299
357
|
<item itemvalue="Ruby.basic_send_complex" />
|
300
358
|
<item itemvalue="Ruby.basic_send_from_html_file" />
|
301
359
|
<item itemvalue="Ruby.basic_send_with_api_template" />
|
360
|
+
<item itemvalue="Ruby.basic_send_with_amp_body" />
|
302
361
|
<item itemvalue="Ruby.basic_send_with_ascii_charset" />
|
303
362
|
<item itemvalue="Ruby.basic_send_with_attachment" />
|
304
363
|
<item itemvalue="Ruby.basic_send_with_custom_headers" />
|
@@ -306,24 +365,14 @@
|
|
306
365
|
<item itemvalue="Ruby.basic_send_with_proxy" />
|
307
366
|
<item itemvalue="Ruby.bulk_send" />
|
308
367
|
<item itemvalue="Ruby.bulk_send_complex" />
|
309
|
-
<item itemvalue="Ruby.bulk_send_from_data_source_with_merge_data" />
|
310
368
|
<item itemvalue="Ruby.bulk_send_with_ascii_charset_merge_data" />
|
369
|
+
<item itemvalue="Ruby.bulk_send_from_data_source_with_merge_data" />
|
370
|
+
<item itemvalue="Ruby.bulk_send_with_amp_body" />
|
311
371
|
<item itemvalue="Ruby.bulk_send_with_merge_data" />
|
312
372
|
<item itemvalue="Ruby.example_code" />
|
313
373
|
</list>
|
314
374
|
</component>
|
315
|
-
<component name="
|
316
|
-
<option name="viewStates">
|
317
|
-
<list>
|
318
|
-
<serviceView>
|
319
|
-
<treeState>
|
320
|
-
<expand />
|
321
|
-
<select />
|
322
|
-
</treeState>
|
323
|
-
</serviceView>
|
324
|
-
</list>
|
325
|
-
</option>
|
326
|
-
</component>
|
375
|
+
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
327
376
|
<component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" RAKE_SPRING_PRE_LOADER_OPTION="false" RAILS_SPRING_PRE_LOADER_OPTION="false" />
|
328
377
|
<component name="TaskManager">
|
329
378
|
<task active="true" id="Default" summary="Default task">
|
@@ -352,76 +401,96 @@
|
|
352
401
|
<workItem from="1579285524030" duration="11653000" />
|
353
402
|
<workItem from="1579527438339" duration="228000" />
|
354
403
|
<workItem from="1579529396526" duration="17580000" />
|
355
|
-
<workItem from="1579786700388" duration="
|
404
|
+
<workItem from="1579786700388" duration="35630000" />
|
405
|
+
<workItem from="1580318657330" duration="17000" />
|
406
|
+
<workItem from="1596209797155" duration="13791000" />
|
407
|
+
<workItem from="1596561671262" duration="3442000" />
|
408
|
+
<workItem from="1596570240506" duration="4367000" />
|
356
409
|
</task>
|
357
410
|
<servers />
|
358
411
|
</component>
|
359
412
|
<component name="TypeScriptGeneratedFilesManager">
|
360
|
-
<option name="version" value="
|
413
|
+
<option name="version" value="3" />
|
414
|
+
</component>
|
415
|
+
<component name="Vcs.Log.Tabs.Properties">
|
416
|
+
<option name="TAB_STATES">
|
417
|
+
<map>
|
418
|
+
<entry key="MAIN">
|
419
|
+
<value>
|
420
|
+
<State />
|
421
|
+
</value>
|
422
|
+
</entry>
|
423
|
+
</map>
|
424
|
+
</option>
|
361
425
|
</component>
|
362
426
|
<component name="WindowStateProjectService">
|
363
|
-
<state x="
|
364
|
-
<screen x="0" y="0" width="
|
365
|
-
</state>
|
366
|
-
<state x="414" y="179" key="#com.intellij.execution.impl.EditConfigurationsDialog/0.0.1920.1040/-1920.0.1920.1040@0.0.1920.1040" timestamp="1580304775116" />
|
367
|
-
<state width="759" height="466" key="DebuggerActiveHint" timestamp="1580218533395">
|
368
|
-
<screen x="0" y="0" width="1920" height="1040" />
|
369
|
-
</state>
|
370
|
-
<state width="759" height="466" key="DebuggerActiveHint/0.0.1920.1040/-1920.0.1920.1040@0.0.1920.1040" timestamp="1580218533395" />
|
371
|
-
<state x="740" y="279" key="FileChooserDialogImpl" timestamp="1580317883075">
|
372
|
-
<screen x="0" y="0" width="1920" height="1040" />
|
427
|
+
<state x="223" y="0" width="1089" height="824" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1598376897932">
|
428
|
+
<screen x="0" y="0" width="1536" height="824" />
|
373
429
|
</state>
|
374
|
-
<state x="
|
375
|
-
<state
|
376
|
-
<screen x="0" y="0" width="
|
430
|
+
<state x="223" y="0" width="1089" height="824" key="#com.intellij.execution.impl.EditConfigurationsDialog/0.0.1536.824/-1920.6.1536.824@0.0.1536.824" timestamp="1598376897932" />
|
431
|
+
<state x="548" y="167" key="FileChooserDialogImpl" timestamp="1598376734084">
|
432
|
+
<screen x="0" y="0" width="1536" height="824" />
|
377
433
|
</state>
|
378
|
-
<state
|
379
|
-
<state width="
|
380
|
-
<screen x="0" y="0" width="
|
434
|
+
<state x="548" y="167" key="FileChooserDialogImpl/0.0.1536.824/-1920.6.1536.824@0.0.1536.824" timestamp="1598376734084" />
|
435
|
+
<state width="1493" height="261" key="GridCell.Tab.0.bottom" timestamp="1598377144504">
|
436
|
+
<screen x="0" y="0" width="1536" height="824" />
|
381
437
|
</state>
|
382
|
-
<state width="
|
383
|
-
<state width="
|
384
|
-
|
438
|
+
<state width="1493" height="261" key="GridCell.Tab.0.bottom/0.0.1536.824/-1920.6.1536.824@0.0.1536.824" timestamp="1598377144504" />
|
439
|
+
<state width="1493" height="160" key="GridCell.Tab.0.bottom/0.0.1536.824@0.0.1536.824" timestamp="1596574157638" />
|
440
|
+
<state width="1493" height="261" key="GridCell.Tab.0.center" timestamp="1598377144504">
|
441
|
+
<screen x="0" y="0" width="1536" height="824" />
|
385
442
|
</state>
|
386
|
-
<state width="
|
387
|
-
<state width="
|
388
|
-
|
443
|
+
<state width="1493" height="261" key="GridCell.Tab.0.center/0.0.1536.824/-1920.6.1536.824@0.0.1536.824" timestamp="1598377144504" />
|
444
|
+
<state width="1493" height="160" key="GridCell.Tab.0.center/0.0.1536.824@0.0.1536.824" timestamp="1596574157638" />
|
445
|
+
<state width="1493" height="261" key="GridCell.Tab.0.left" timestamp="1598377144503">
|
446
|
+
<screen x="0" y="0" width="1536" height="824" />
|
389
447
|
</state>
|
390
|
-
<state width="
|
391
|
-
<state width="
|
392
|
-
|
448
|
+
<state width="1493" height="261" key="GridCell.Tab.0.left/0.0.1536.824/-1920.6.1536.824@0.0.1536.824" timestamp="1598377144503" />
|
449
|
+
<state width="1493" height="160" key="GridCell.Tab.0.left/0.0.1536.824@0.0.1536.824" timestamp="1596574157638" />
|
450
|
+
<state width="1493" height="261" key="GridCell.Tab.0.right" timestamp="1598377144504">
|
451
|
+
<screen x="0" y="0" width="1536" height="824" />
|
393
452
|
</state>
|
394
|
-
<state width="
|
395
|
-
<state width="
|
396
|
-
|
453
|
+
<state width="1493" height="261" key="GridCell.Tab.0.right/0.0.1536.824/-1920.6.1536.824@0.0.1536.824" timestamp="1598377144504" />
|
454
|
+
<state width="1493" height="160" key="GridCell.Tab.0.right/0.0.1536.824@0.0.1536.824" timestamp="1596574157638" />
|
455
|
+
<state width="1493" height="261" key="GridCell.Tab.1.bottom" timestamp="1598377144505">
|
456
|
+
<screen x="0" y="0" width="1536" height="824" />
|
397
457
|
</state>
|
398
|
-
<state width="
|
399
|
-
<state width="
|
400
|
-
<screen x="0" y="0" width="
|
458
|
+
<state width="1493" height="261" key="GridCell.Tab.1.bottom/0.0.1536.824/-1920.6.1536.824@0.0.1536.824" timestamp="1598377144505" />
|
459
|
+
<state width="1493" height="261" key="GridCell.Tab.1.center" timestamp="1598377144505">
|
460
|
+
<screen x="0" y="0" width="1536" height="824" />
|
401
461
|
</state>
|
402
|
-
<state width="
|
403
|
-
<state width="
|
404
|
-
<screen x="0" y="0" width="
|
462
|
+
<state width="1493" height="261" key="GridCell.Tab.1.center/0.0.1536.824/-1920.6.1536.824@0.0.1536.824" timestamp="1598377144505" />
|
463
|
+
<state width="1493" height="261" key="GridCell.Tab.1.left" timestamp="1598377144505">
|
464
|
+
<screen x="0" y="0" width="1536" height="824" />
|
405
465
|
</state>
|
406
|
-
<state width="
|
407
|
-
<state
|
408
|
-
<screen x="0" y="0" width="
|
466
|
+
<state width="1493" height="261" key="GridCell.Tab.1.left/0.0.1536.824/-1920.6.1536.824@0.0.1536.824" timestamp="1598377144505" />
|
467
|
+
<state width="1493" height="261" key="GridCell.Tab.1.right" timestamp="1598377144505">
|
468
|
+
<screen x="0" y="0" width="1536" height="824" />
|
409
469
|
</state>
|
410
|
-
<state
|
411
|
-
<state
|
412
|
-
<screen x="0" y="0" width="
|
470
|
+
<state width="1493" height="261" key="GridCell.Tab.1.right/0.0.1536.824/-1920.6.1536.824@0.0.1536.824" timestamp="1598377144505" />
|
471
|
+
<state x="278" y="58" key="SettingsEditor" timestamp="1598376867375">
|
472
|
+
<screen x="0" y="0" width="1536" height="824" />
|
413
473
|
</state>
|
414
|
-
<state
|
415
|
-
<state x="
|
416
|
-
|
474
|
+
<state x="278" y="58" key="SettingsEditor/0.0.1536.824/-1920.6.1536.824@0.0.1536.824" timestamp="1598376867375" />
|
475
|
+
<state x="278" y="58" key="SettingsEditor/0.0.1536.824@0.0.1536.824" timestamp="1596568157811" />
|
476
|
+
<state x="222" y="11" width="1116" height="801" key="find.popup" timestamp="1596633144560">
|
477
|
+
<screen x="0" y="0" width="1536" height="824" />
|
417
478
|
</state>
|
418
|
-
<state x="
|
419
|
-
<state x="667" y="276" width="586" height="488" key="find.popup" timestamp="1580317019024">
|
420
|
-
<screen x="0" y="0" width="1920" height="1040" />
|
421
|
-
</state>
|
422
|
-
<state x="667" y="276" width="586" height="488" key="find.popup/0.0.1920.1040/-1920.0.1920.1040@0.0.1920.1040" timestamp="1580317019024" />
|
479
|
+
<state x="222" y="11" width="1116" height="801" key="find.popup/0.0.1536.824@0.0.1536.824" timestamp="1596633144560" />
|
423
480
|
</component>
|
424
481
|
<component name="XDebuggerManager">
|
482
|
+
<breakpoint-manager>
|
483
|
+
<breakpoints>
|
484
|
+
<line-breakpoint enabled="true" type="ruby-line">
|
485
|
+
<url>file://$PROJECT_DIR$/examples/basic/basic_send_with_amp_body.rb</url>
|
486
|
+
<line>10</line>
|
487
|
+
<properties myBlockOrdinal="-1">
|
488
|
+
<option name="block-ordinal" value="-1" />
|
489
|
+
</properties>
|
490
|
+
<option name="timeStamp" value="1" />
|
491
|
+
</line-breakpoint>
|
492
|
+
</breakpoints>
|
493
|
+
</breakpoint-manager>
|
425
494
|
<watches-manager>
|
426
495
|
<configuration name="RubyRunConfigurationType">
|
427
496
|
<watch expression="@body" />
|
@@ -430,20 +499,21 @@
|
|
430
499
|
</watches-manager>
|
431
500
|
</component>
|
432
501
|
<component name="com.intellij.coverage.CoverageDataManagerImpl">
|
433
|
-
<SUITE FILE_PATH="coverage/socketlabs_ruby@
|
502
|
+
<SUITE FILE_PATH="coverage/socketlabs_ruby@basic_send_with_ascii_charset.rcov" NAME="basic_send_with_ascii_charset Coverage Results" MODIFIED="1580218384809" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/examples/basic" MODULE_NAME="socketlabs-ruby" />
|
503
|
+
<SUITE FILE_PATH="coverage/socketlabs_ruby@basic_send_with_attachment.rcov" NAME="basic_send_with_attachment Coverage Results" MODIFIED="1579790742609" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/examples/basic" MODULE_NAME="socketlabs-ruby" />
|
504
|
+
<SUITE FILE_PATH="coverage/socketlabs_ruby@basic_send_with_amp_body.rcov" NAME="basic_send_with_amp_body Coverage Results" MODIFIED="1598377002712" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/examples/basic" MODULE_NAME="socketlabs-ruby" />
|
505
|
+
<SUITE FILE_PATH="coverage/socketlabs_ruby@bulk_send_from_data_source_with_merge_data.rcov" NAME="bulk_send_from_data_source_with_merge_data Coverage Results" MODIFIED="1580218138668" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/examples/bulk/" MODULE_NAME="socketlabs-ruby" />
|
506
|
+
<SUITE FILE_PATH="coverage/socketlabs_ruby@basic_send_complex.rcov" NAME="basic_send_complex Coverage Results" MODIFIED="1579791684895" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/examples/basic" MODULE_NAME="socketlabs-ruby" />
|
507
|
+
<SUITE FILE_PATH="coverage/socketlabs_ruby@bulk_send_with_merge_data.rcov" NAME="bulk_send_with_merge_data Coverage Results" MODIFIED="1580218838740" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/examples/bulk/" MODULE_NAME="socketlabs-ruby" />
|
508
|
+
<SUITE FILE_PATH="coverage/socketlabs_ruby@basic_send_with_custom_headers.rcov" NAME="basic_send_with_custom_headers Coverage Results" MODIFIED="1579790723504" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/examples/basic" MODULE_NAME="socketlabs-ruby" />
|
434
509
|
<SUITE FILE_PATH="coverage/socketlabs_ruby@basic_send_with_embedded_image.rcov" NAME="basic_send_with_embedded_image Coverage Results" MODIFIED="1579790668047" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/examples/basic" MODULE_NAME="socketlabs-ruby" />
|
435
510
|
<SUITE FILE_PATH="coverage/socketlabs_ruby@basic_send.rcov" NAME="basic_send Coverage Results" MODIFIED="1579800210587" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/examples/basic" MODULE_NAME="socketlabs-ruby" />
|
436
|
-
<SUITE FILE_PATH="coverage/socketlabs_ruby@
|
437
|
-
<SUITE FILE_PATH="coverage/socketlabs_ruby@
|
511
|
+
<SUITE FILE_PATH="coverage/socketlabs_ruby@basic_send_with_api_template.rcov" NAME="basic_send_with_api_template Coverage Results" MODIFIED="1579790803165" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/examples/basic" MODULE_NAME="socketlabs-ruby" />
|
512
|
+
<SUITE FILE_PATH="coverage/socketlabs_ruby@example_code.rcov" NAME="example_code Coverage Results" MODIFIED="1598377050382" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/examples/bulk/" MODULE_NAME="socketlabs-ruby" />
|
438
513
|
<SUITE FILE_PATH="coverage/socketlabs_ruby@bulk_send.rcov" NAME="bulk_send Coverage Results" MODIFIED="1580217378528" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/examples/bulk/" MODULE_NAME="socketlabs-ruby" />
|
439
|
-
<SUITE FILE_PATH="coverage/socketlabs_ruby@basic_send_with_ascii_charset.rcov" NAME="basic_send_with_ascii_charset Coverage Results" MODIFIED="1580218384809" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/examples/basic" MODULE_NAME="socketlabs-ruby" />
|
440
|
-
<SUITE FILE_PATH="coverage/socketlabs_ruby@example_code.rcov" NAME="example_code Coverage Results" MODIFIED="1580247020470" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/examples/bulk/" MODULE_NAME="socketlabs-ruby" />
|
441
514
|
<SUITE FILE_PATH="coverage/socketlabs_ruby@bulk_send_with_ascii_charset_merge_data.rcov" NAME="bulk_send_with_ascii_charset_merge_data Coverage Results" MODIFIED="1580218733739" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/examples/bulk/" MODULE_NAME="socketlabs-ruby" />
|
442
|
-
<SUITE FILE_PATH="coverage/socketlabs_ruby@
|
443
|
-
<SUITE FILE_PATH="coverage/socketlabs_ruby@
|
444
|
-
<SUITE FILE_PATH="coverage/socketlabs_ruby@
|
445
|
-
<SUITE FILE_PATH="coverage/socketlabs_ruby@bulk_send_with_merge_data.rcov" NAME="bulk_send_with_merge_data Coverage Results" MODIFIED="1580218838740" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/examples/bulk/" MODULE_NAME="socketlabs-ruby" />
|
446
|
-
<SUITE FILE_PATH="coverage/socketlabs_ruby@basic_send_complex.rcov" NAME="basic_send_complex Coverage Results" MODIFIED="1579791684895" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/examples/basic" MODULE_NAME="socketlabs-ruby" />
|
447
|
-
<SUITE FILE_PATH="coverage/socketlabs_ruby@bulk_send_from_data_source_with_merge_data.rcov" NAME="bulk_send_from_data_source_with_merge_data Coverage Results" MODIFIED="1580218138668" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/examples/bulk/" MODULE_NAME="socketlabs-ruby" />
|
515
|
+
<SUITE FILE_PATH="coverage/socketlabs_ruby@basic_send_from_html_file.rcov" NAME="basic_send_from_html_file Coverage Results" MODIFIED="1579791581439" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/examples/basic" MODULE_NAME="socketlabs-ruby" />
|
516
|
+
<SUITE FILE_PATH="coverage/socketlabs_ruby@bulk_send_complex.rcov" NAME="bulk_send_complex Coverage Results" MODIFIED="1579800706226" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/examples/bulk/" MODULE_NAME="socketlabs-ruby" />
|
517
|
+
<SUITE FILE_PATH="coverage/socketlabs_ruby@basic_send_with_proxy.rcov" NAME="basic_send_with_proxy Coverage Results" MODIFIED="1579800569525" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/examples/basic" MODULE_NAME="socketlabs-ruby" />
|
448
518
|
</component>
|
449
519
|
</project>
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# Contributing to 'socketlabs-ruby'
|
2
|
+
|
3
|
+
If you discover issues, have ideas for improvements or new features,
|
4
|
+
please report them to the [issue tracker](https://github.com/socketlabs/socketlabs-ruby/issues) of the repository or
|
5
|
+
submit a pull request. Please, try to follow these guidelines when you
|
6
|
+
do so.
|
7
|
+
|
8
|
+
- [Issue Reporting](#reporting)
|
9
|
+
- [Feature Requests](#feature)
|
10
|
+
- [Pull Requests](#pull)
|
11
|
+
|
12
|
+
|
13
|
+
## <a name="reporting"></a>Issue reporting
|
14
|
+
|
15
|
+
* Check that the issue has not already been reported.
|
16
|
+
* Check that the issue has not already been fixed in the latest code
|
17
|
+
(a.k.a. `main`).
|
18
|
+
* Be clear, concise and precise in your description of the problem.
|
19
|
+
* Open an issue with a descriptive title and a summary in grammatically correct,
|
20
|
+
complete sentences.
|
21
|
+
* Mention the version info.
|
22
|
+
|
23
|
+
## <a name="feature"></a> Want a Feature?
|
24
|
+
|
25
|
+
You can request a new feature by submitting an issue to our
|
26
|
+
[GitHub Repository](https://github.com/socketlabs/socketlabs-ruby). If you would like to implement a new feature then
|
27
|
+
consider what kind of change it is:
|
28
|
+
|
29
|
+
* **Major Changes** that you wish to contribute to the project should be
|
30
|
+
discussed first with `socketlabs-ruby` contributors in an issue or pull request so
|
31
|
+
that we can develop a proper solution and better coordinate our efforts,
|
32
|
+
prevent duplication of work, and help you to craft the change so that it is
|
33
|
+
successfully accepted into the project.
|
34
|
+
* **Small Changes** can be crafted and submitted to the
|
35
|
+
[GitHub Repository](https://github.com/socketlabs/socketlabs-ruby) as a Pull Request.
|
36
|
+
|
37
|
+
## <a name="pull"></a> Creating a Pull Request?
|
38
|
+
|
39
|
+
- Create a personal fork of the project on Github.
|
40
|
+
- If you created your fork a while ago be sure to pull upstream changes into your local repository.
|
41
|
+
- Create a new branch to work on! Branch from `main`.
|
42
|
+
- Implement/fix your feature, comment your code.
|
43
|
+
- Write or adapt tests as needed.
|
44
|
+
- Add or change the documentation as needed.
|
45
|
+
- Squash your commits into a single commit with git's [interactive rebase](https://help.github.com/articles/interactive-rebase). Create a new branch if necessary.
|
46
|
+
- Push your branch to your fork on Github, the remote `origin`.
|
47
|
+
- From your fork open a pull request with a clear title and description in grammatically correct, complete sentences.
|
data/README.MD
CHANGED
@@ -1,10 +1,7 @@
|
|
1
|
-
[](https://twitter.com/socketlabs) [](./LICENSE) [](https://github.com/socketlabs/socketlabs-
|
3
|
-
<!--
|
4
|
-
[](https://github.com/socketlabs/socketlabs-python/graphs/contributors)
|
5
|
-
-->
|
1
|
+
[](https://www.socketlabs.com/developers)
|
2
|
+
# [](https://twitter.com/socketlabs) [](./LICENSE) [](https://github.com/socketlabs/socketlabs-nodejs/blob/master/CONTRIBUTING.md)
|
6
3
|
|
7
|
-
The SocketLabs Email Delivery Ruby library allows you to easily send email messages via the [SocketLabs Injection API](https://www.socketlabs.com/
|
4
|
+
The SocketLabs Email Delivery Ruby library allows you to easily send email messages via the [SocketLabs Injection API](https://www.socketlabs.com/docs/inject/). The library makes it easy to build and send any type of message supported by the API, from a simple message to a single recipient all the way to a complex bulk message sent to a group of recipients with unique merge data per recipient.
|
8
5
|
|
9
6
|
# Table of Contents
|
10
7
|
* [Prerequisites and Installation](#prerequisites-and-installation)
|
@@ -62,7 +59,7 @@ A basic message can have many recipients, including multiple To addresses, CC ad
|
|
62
59
|
You can also send a file attachment in a basic message.
|
63
60
|
|
64
61
|
```ruby
|
65
|
-
require "socketlabs-injectionapi
|
62
|
+
require "socketlabs-injectionapi"
|
66
63
|
|
67
64
|
include SocketLabs::InjectionApi
|
68
65
|
include SocketLabs::InjectionApi::Message
|
@@ -100,9 +97,9 @@ response = client.send(message)
|
|
100
97
|
A bulk message usually contains a single recipient per message
|
101
98
|
and is generally used to send the same content to many recipients,
|
102
99
|
optionally customizing the message via the use of MergeData.
|
103
|
-
For more information about using Merge data, please see the [Injection API documentation](https://www.socketlabs.com/
|
100
|
+
For more information about using Merge data, please see the [Injection API documentation](https://www.socketlabs.com/docs/inject/).
|
104
101
|
```ruby
|
105
|
-
require "socketlabs-injectionapi
|
102
|
+
require "socketlabs-injectionapi"
|
106
103
|
|
107
104
|
include SocketLabs::InjectionApi
|
108
105
|
include SocketLabs::InjectionApi::Message
|
@@ -178,6 +175,10 @@ This example demonstrates how to embed an image in your message.
|
|
178
175
|
### [Basic send with a web proxy](https://github.com/socketlabs/socketlabs-ruby/blob/master/examples/basic/basic_send_with_proxy.rb)
|
179
176
|
This example demonstrates how to use a proxy with your HTTP client.
|
180
177
|
|
178
|
+
### [Basic send with Amp ](https://github.com/socketlabs/socketlabs-ruby/blob/master/examples/basic/basic_send_with_amp_body.rb)
|
179
|
+
This example demonstrates how to send a basic message with an AMP Html body.
|
180
|
+
For more information about AMP please see [AMP Project](https://amp.dev/documentation/)
|
181
|
+
|
181
182
|
### [Basic send with invalid file attachment](https://github.com/socketlabs/socketlabs-ruby/blob/master/examples/basic/invalid/basic_send_with_invalid_attachment.rb)
|
182
183
|
This example demonstrates the results of attempting to do a send with an invalid attachment.
|
183
184
|
|
@@ -206,6 +207,14 @@ your recipients from a database and create a bulk mailing with merge data.
|
|
206
207
|
This example demonstrates how to send a bulk message with a specified character
|
207
208
|
set and special characters.
|
208
209
|
|
210
|
+
### [Bulk send with Amp ](https://github.com/socketlabs/socketlabs-ruby/blob/master/examples/bulk/bulk_send_with_amp_body.rb )
|
211
|
+
This example demonstrates how to send a bulk message with an AMP Html body.
|
212
|
+
For more information about AMP please see [AMP Project](https://amp.dev/documentation/)
|
213
|
+
|
214
|
+
<a name="version"></a>
|
215
|
+
# Version
|
216
|
+
* 1.1.0 - Adds Amp Html Support
|
217
|
+
* 1.0.0 - Initial Release
|
209
218
|
|
210
219
|
<a name="license" id="license"></a>
|
211
220
|
# License
|
data/gemfile.lock
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
socketlabs-injectionapi (1.
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: http://rubygems.org/
|
8
|
-
specs:
|
9
|
-
|
10
|
-
PLATFORMS
|
11
|
-
x64-mingw32
|
12
|
-
|
13
|
-
DEPENDENCIES
|
14
|
-
socketlabs-injectionapi!
|
15
|
-
|
16
|
-
BUNDLED WITH
|
17
|
-
2.1.4
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
socketlabs-injectionapi (1.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: http://rubygems.org/
|
8
|
+
specs:
|
9
|
+
|
10
|
+
PLATFORMS
|
11
|
+
x64-mingw32
|
12
|
+
|
13
|
+
DEPENDENCIES
|
14
|
+
socketlabs-injectionapi!
|
15
|
+
|
16
|
+
BUNDLED WITH
|
17
|
+
2.1.4
|
@@ -62,6 +62,7 @@ module SocketLabs
|
|
62
62
|
message_json.subject = message.subject
|
63
63
|
message_json.plain_text_body = message.plain_text_body
|
64
64
|
message_json.html_body = message.html_body
|
65
|
+
message_json.amp_body = message.amp_body
|
65
66
|
message_json.mailing_id = message.mailing_id
|
66
67
|
message_json.message_id = message.message_id
|
67
68
|
message_json.charset = message.charset
|
@@ -11,6 +11,8 @@ module SocketLabs
|
|
11
11
|
attr_accessor :plain_text_body
|
12
12
|
# the HTML portion of the message body.
|
13
13
|
attr_accessor :html_body
|
14
|
+
# the AMP portion of the message body.
|
15
|
+
attr_accessor :amp_body
|
14
16
|
# the api template.
|
15
17
|
attr_accessor :api_template
|
16
18
|
# the custom mailing id.
|
@@ -32,6 +34,7 @@ module SocketLabs
|
|
32
34
|
@subject = nil
|
33
35
|
@plain_text_body = nil
|
34
36
|
@html_body = nil
|
37
|
+
@amp_body = nil
|
35
38
|
@api_template = nil
|
36
39
|
@mailing_id = nil
|
37
40
|
@message_id = nil
|
@@ -170,6 +173,10 @@ module SocketLabs
|
|
170
173
|
json[:htmlBody] = @html_body
|
171
174
|
end
|
172
175
|
|
176
|
+
unless @amp_body.nil? || @amp_body.empty?
|
177
|
+
json[:ampBody] = @amp_body
|
178
|
+
end
|
179
|
+
|
173
180
|
unless @plain_text_body.nil? || @plain_text_body.empty?
|
174
181
|
json[:textBody] = @plain_text_body
|
175
182
|
end
|
@@ -8,10 +8,16 @@ module SocketLabs
|
|
8
8
|
# the message Subject.
|
9
9
|
attr_accessor :subject
|
10
10
|
# the plain text portion of the message body.
|
11
|
+
# (Optional) Either TextBody or HtmlBody must be used with the AmpBody or use a ApiTemplate
|
11
12
|
attr_accessor :plain_text_body
|
12
13
|
# the HTML portion of the message body.
|
14
|
+
# (Optional) Either TextBody or HtmlBody must be used with the AmpBody or use a ApiTemplate
|
13
15
|
attr_accessor :html_body
|
16
|
+
# the AMP portion of the message body.
|
17
|
+
# (Optional) Either TextBody or HtmlBody must be used with the AmpBody or use a ApiTemplate
|
18
|
+
attr_accessor :amp_body
|
14
19
|
# the Api Template for the message.
|
20
|
+
# (Optional) Either TextBody or HtmlBody must be used with the AmpBody or use a ApiTemplate
|
15
21
|
attr_accessor :api_template
|
16
22
|
# the custom MailingId for the message.
|
17
23
|
# See https://www.injectionapi.com/blog/best-practices-for-using-custom-mailingids-and-messageids/
|
@@ -40,6 +46,10 @@ module SocketLabs
|
|
40
46
|
@html_body = arguments[:html_body]
|
41
47
|
end
|
42
48
|
|
49
|
+
unless arguments[:amp_body].nil? || arguments[:amp_body].empty?
|
50
|
+
@amp_body = arguments[:amp_body]
|
51
|
+
end
|
52
|
+
|
43
53
|
unless arguments[:api_template].nil? || arguments[:api_template].empty?
|
44
54
|
@api_template = arguments[:api_template]
|
45
55
|
end
|
data/lib/socketlabs/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: socketlabs-injectionapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Schrenker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: SocketLabs Email Delivery Ruby Client library
|
14
14
|
email: developers@socketlabs.com
|
@@ -23,6 +23,7 @@ files:
|
|
23
23
|
- ".idea/socketlabs-ruby.iml"
|
24
24
|
- ".idea/vcs.xml"
|
25
25
|
- ".idea/workspace.xml"
|
26
|
+
- CONTRIBUTING.md
|
26
27
|
- LICENSE.MD
|
27
28
|
- README.MD
|
28
29
|
- gemfile
|
@@ -77,8 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
78
|
- !ruby/object:Gem::Version
|
78
79
|
version: '0'
|
79
80
|
requirements: []
|
80
|
-
|
81
|
-
rubygems_version: 2.6.14.3
|
81
|
+
rubygems_version: 3.0.3
|
82
82
|
signing_key:
|
83
83
|
specification_version: 4
|
84
84
|
summary: SocketLabs Injection Api
|