ofsys 0.0.7 → 0.0.8

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
  SHA1:
3
- metadata.gz: 6fda9e5f441109d73abe7a7793b566e451df3295
4
- data.tar.gz: a57b5955f43f2d3f174082bc8814677c615397d0
3
+ metadata.gz: bf5cffe93a48fa14156fca5d470c5676d5500cc0
4
+ data.tar.gz: d14cdf00939820c6865ce239d939d62426f5224d
5
5
  SHA512:
6
- metadata.gz: 1bce9adb0c4dfdc33f64f2997649fa49214e4654321b663990be6b9d3b63fc06f81518f60b4349f1e512095e782bb8887c230405520ac317953be67e8f061577
7
- data.tar.gz: dd2cfb48f75a6d94424b4eb8d8e96b054d499a6d126e4bb7f14ff01acd2413044f3a58e3e4a3be1282f3e132ede2a9b74edf76b358f18ddca75b9926391cffbf
6
+ metadata.gz: f580aa30a2f16214993f0c8664fc1408b3a0855876ae3710c8b177680845267b487f16fb524692dd7a52951d6770edcf106ad36f4a7499aa273bf60f6841933e
7
+ data.tar.gz: 1850343c333ddd919432ac8cad1e20ef455b842a5831364101c26ddc45f39b54b98639f4e9692d54f8ede982e36beebe69bd3393b8b3721266f73f872917c91c
@@ -0,0 +1,7 @@
1
+ module Ofsys
2
+ module Request
3
+ class SendingsSendSingle2 < Ofsys::Request::Base
4
+ ENDPOINT = "#{ENDPOINT_BASE}/sendings.ashx?method=SendSingle2".freeze
5
+ end
6
+ end
7
+ end
data/lib/ofsys/request.rb CHANGED
@@ -9,3 +9,4 @@ require 'ofsys/request/contacts_merge'
9
9
  require 'ofsys/request/relational_tables_delete'
10
10
  require 'ofsys/request/relational_tables_merge'
11
11
  require 'ofsys/request/sendings_send_single'
12
+ require 'ofsys/request/sendings_send_single2'
data/lib/ofsys/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ofsys
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ofsys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandr Borisov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-09 00:00:00.000000000 Z
12
+ date: 2016-01-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: yajl-ruby
@@ -156,12 +156,11 @@ files:
156
156
  - lib/ofsys/request/relational_tables_delete.rb
157
157
  - lib/ofsys/request/relational_tables_merge.rb
158
158
  - lib/ofsys/request/sendings_send_single.rb
159
+ - lib/ofsys/request/sendings_send_single2.rb
159
160
  - lib/ofsys/version.rb
160
161
  - spec/config_spec.rb
161
162
  - spec/contacts_delete_spec.rb
162
163
  - spec/contacts_merge_spec.rb
163
- - spec/fixtures/vcr_cassettes/contacts_merge.yml
164
- - spec/fixtures/vcr_cassettes/sendings_send_single.yml
165
164
  - spec/send_single_spec.rb
166
165
  - spec/spec_helper.rb
167
166
  - spec/support/configure_helper.rb
@@ -185,17 +184,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
184
  version: '0'
186
185
  requirements: []
187
186
  rubyforge_project:
188
- rubygems_version: 2.2.2
187
+ rubygems_version: 2.5.1
189
188
  signing_key:
190
189
  specification_version: 4
191
190
  summary: Provides interface for ofsys.com (inteligentemails.com) service API
192
191
  test_files:
193
- - spec/contacts_delete_spec.rb
194
- - spec/fixtures/vcr_cassettes/contacts_merge.yml
195
- - spec/fixtures/vcr_cassettes/sendings_send_single.yml
196
- - spec/config_spec.rb
197
192
  - spec/spec_helper.rb
193
+ - spec/send_single_spec.rb
194
+ - spec/contacts_delete_spec.rb
198
195
  - spec/support/configure_helper.rb
196
+ - spec/config_spec.rb
199
197
  - spec/contacts_merge_spec.rb
200
- - spec/send_single_spec.rb
201
- has_rdoc:
@@ -1,55 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://ofsys.com/webservices/ofc4/contacts.ashx?method=Merge
6
- body:
7
- encoding: UTF-8
8
- string: '{"Records":[{"ID":{"key_f_EMail":"user@example.com"},"Data":{"f_EMail":"user@example.com"}}],"MergeOptions":{"AllowInsert":true,"AllowUpdate":true,"SkipDuplicateRecords":false,"SkipUnmatchedRecords":false,"ReturnRecordsOnSuccess":false,"ReturnRecordsOnError":false,"FieldOptions":null},"AuthKey":{"Key":"aQTxvqkkYtWt2Q39edLWE0EdzeNWzxH8","idKey":"13103"},"idProject":"5781"}'
9
- headers:
10
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Cache-Control:
22
- - private
23
- Content-Length:
24
- - '1121'
25
- Content-Type:
26
- - application/json; charset=utf-8
27
- Server:
28
- - Microsoft-IIS/8.5
29
- X-Powered-By:
30
- - ASP.NET
31
- X-Ua-Compatible:
32
- - IE=Edge
33
- Date:
34
- - Tue, 09 Dec 2014 08:54:14 GMT
35
- body:
36
- encoding: UTF-8
37
- string: "{\r\n \"Success\": true,\r\n \"ErrorCode\": null,\r\n \"ErrorMessage\":
38
- null,\r\n \"CreatedRecords\": 0,\r\n \"UpdatedRecords\": 1,\r\n \"Records\":
39
- [\r\n {\r\n \"IdRecord\": 2,\r\n \"Status\": \"Updated\",\r\n
40
- \ \"ValidationResult\": \"OK\",\r\n \"Message\": null,\r\n \"ID\":
41
- {\r\n \"key_f_EMail\": \"user@example.com\"\r\n },\r\n \"Data\":
42
- null,\r\n \"Record\": null\r\n }\r\n ],\r\n \"idRequest\": 21378949,\r\n
43
- \ \"Trace\": \"Beginning request (03:54:15)\\r\\n\\tchecking OFSYS User authentication:
44
- False\\r\\n\\tchecking Dialog Insight administrator: False\\r\\nTargeted service:
45
- Contacts.Merge\\r\\nDeserializing JSON...\\r\\nDeserializing JSON completed\\r\\nValidating
46
- parameters...\\r\\nRecords count: 1\\r\\nRecords candidates for insert: 1\\r\\nRecords
47
- candidates for update: 1\\r\\nValidating parameterscompleted with success\\r\\nExecuting
48
- method...\\r\\n\\tRecords bulked: 1\\r\\n\\tRecords matched by PK: 1\\r\\n\\tRecords
49
- dupes, source versus source: 0\\r\\n\\tRecords dupes, source versus target:
50
- 0\\r\\n\\tRecords updated: 1\\r\\n\\tRecords created: 0\\r\\n\\tEMails changed:
51
- 0\\r\\n\\tOptins field changed: no flag involved\\r\\nExecuting method completed
52
- with success\"\r\n}"
53
- http_version:
54
- recorded_at: Tue, 09 Dec 2014 08:54:16 GMT
55
- recorded_with: VCR 2.9.3
@@ -1,46 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://ofsys.com/webservices/ofc4/sendings.ashx?method=SendSingle
6
- body:
7
- encoding: UTF-8
8
- string: '{"idMessage":639093,"contactFilter":{"Mode":"Clauses","TableClauses":[{"TableCode":"Contact","Clause":{"$type":"FieldClause","Field":{"TableCode":"Contact","Name":"f_EMail"},"TypeOperator":"Equal","ComparisonValue":"user@example.com"}}]},"AuthKey":{"Key":"aQTxvqkkYtWt2Q39edLWE0EdzeNWzxH8","idKey":"13103"},"idProject":"5781"}'
9
- headers:
10
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Cache-Control:
22
- - private
23
- Content-Length:
24
- - '502'
25
- Content-Type:
26
- - application/json; charset=utf-8
27
- Server:
28
- - Microsoft-IIS/8.5
29
- X-Powered-By:
30
- - ASP.NET
31
- X-Ua-Compatible:
32
- - IE=Edge
33
- Date:
34
- - Tue, 09 Dec 2014 09:41:20 GMT
35
- body:
36
- encoding: UTF-8
37
- string: "{\r\n \"Success\": true,\r\n \"ErrorCode\": null,\r\n \"ErrorMessage\":
38
- null,\r\n \"AffectedContacts\": 1,\r\n \"idRequest\": 21390791,\r\n \"Trace\":
39
- \"Beginning request (04:41:21)\\r\\n\\tchecking OFSYS User authentication:
40
- False\\r\\n\\tchecking Dialog Insight administrator: False\\r\\nTargeted service:
41
- Sendings.SendSingle\\r\\nDeserializing JSON...\\r\\nDeserializing JSON completed\\r\\nValidating
42
- parameters...\\r\\nValidating parameterscompleted with success\\r\\nExecuting
43
- method...\\r\\nExecuting method completed with success\"\r\n}"
44
- http_version:
45
- recorded_at: Tue, 09 Dec 2014 09:41:21 GMT
46
- recorded_with: VCR 2.9.3