adknowledge 0.0.3
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.
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/README.md +114 -0
- data/Rakefile +6 -0
- data/adknowledge.gemspec +33 -0
- data/lib/adknowledge/config.rb +9 -0
- data/lib/adknowledge/integrated.rb +193 -0
- data/lib/adknowledge/performance.rb +255 -0
- data/lib/adknowledge/version.rb +3 -0
- data/lib/adknowledge.rb +9 -0
- data/lib/faraday_middleware/adknowledge.rb +33 -0
- data/spec/adknowledge/integrated_spec.rb +378 -0
- data/spec/adknowledge/performance_spec.rb +320 -0
- data/spec/adknowledge_spec.rb +0 -0
- data/spec/cassettes/map_multi_success.yml +68 -0
- data/spec/cassettes/map_single_success.yml +51 -0
- data/spec/cassettes/performance.yml +41 -0
- data/spec/spec_helper.rb +16 -0
- metadata +284 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: http://integrated.adstation.com/1.3
|
|
6
|
+
headers:
|
|
7
|
+
Accepts:
|
|
8
|
+
- application/xml
|
|
9
|
+
Accept-Encoding:
|
|
10
|
+
- gzip
|
|
11
|
+
Accept:
|
|
12
|
+
- ! '*/*'
|
|
13
|
+
User-Agent:
|
|
14
|
+
- Ruby
|
|
15
|
+
response:
|
|
16
|
+
status:
|
|
17
|
+
code: 200
|
|
18
|
+
message: OK
|
|
19
|
+
headers:
|
|
20
|
+
Content-Type:
|
|
21
|
+
- text/xml
|
|
22
|
+
Date:
|
|
23
|
+
- Sat, 09 Mar 2013 21:43:47 GMT
|
|
24
|
+
Accept-Ranges:
|
|
25
|
+
- bytes
|
|
26
|
+
Server:
|
|
27
|
+
- Noelios-Restlet-Engine/1.1..2
|
|
28
|
+
Transfer-Encoding:
|
|
29
|
+
- chunked
|
|
30
|
+
body:
|
|
31
|
+
encoding: ASCII-8BIT
|
|
32
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><result><email><test>true</test><requestid>bd485f2eed13f1d9110cc1bfb18c15d2</requestid><scheduledate>20130309154347</scheduledate><mailingid>8f69f262f5ffe843f0e0982168e20617</mailingid><mailingtypeid>2</mailingtypeid><scheduleeventtypeid>1</scheduleeventtypeid><recipient>004c58927df600d73d58c817bafc2155</recipient><list>9250</list><cid>1708</cid><ccid>1708</ccid><campaignrank>5</campaignrank><categoryid>1349</categoryid><testid>826</testid><creative><dname>Cruises</dname><from>Cruises</from><friendlyfrom>Cruises</friendlyfrom><subjectid>167825</subjectid><subject><![CDATA[Early-bird
|
|
33
|
+
cruise specials]]></subject><body><![CDATA[ \n<br /><br /><a href=\"http://fga.example.com/2069250/vuxtxumsl_tt6u_unqlt3umtfuv~5llpxq_t_unsy0rllysoyq_tx_tmswv0xnmqqtd/yumorn_trqpnstceupt7ul_m_usmtdfw3yu_7_e_vityxumptxveumop_ute3u_tnr/t0x0ut0xut7eunty1untf1umot2utezdeumteutyutw2utv3utvaut0u_xcf3dzdty/8u29e7v36_ox97tdy97utd3aut09ultcdaumtd3umrs_tnqtw3utwv8utweut80utecegu\">Cruise</a><br
|
|
34
|
+
/><br /><a href=\"http://fga.example.com/2069250/vuxtxumv~5sl_tt6u_unqlt3untfullpxq_t_unsy0rllysoyq_tx/_tmswv0xnmqqtdyumorn_trqpnstceupt7ul_m_usmtdfw3yu_7_/e_vityxumptxveumop_ute3u_tnrt0x0ut0xut7eunty1untf1um/ot2utezdeumteutyutw2utv3utvaut0u_xcf3dzdty8u29e7v36_/ox97tdy97utd3aut09ultcdaumtd3umrs_tnqtw3utwv8utweut80utecegu\">Relax
|
|
35
|
+
and enjoy your cruise.</a><br /><br /><a href=\"http://fga.example.com/2069250/vuxtxumsl_tt6uv~5_unqlt3uotfullpxq_t_unsy0rl/lysoyq_tx_tmswv0xnmqqtdyumorn_trqpnstceupt7/ul_m_usmtdfw3yu_7_e_vityxumptxveumop_ute3u_/tnrt0x0ut0xut7eunty1untf1umot2utezdeumteuty/utw2utv3utvaut0u_xcf3dzdty8u29e7v36_ox97tdy/97utd3aut09ultcdaumtd3umrs_tnqtw3utwv8utweut80utecegu\">Make
|
|
36
|
+
a cruise the vacation of your dreams by finding the perfect one here</a><br
|
|
37
|
+
/><br /><a href=\"http://fga.blueslatenews.com/2069250/vuxtxumsl_tt6u_unqlt3umtfuv~5llpxq_t_unsy0rllysoyq_tx_tmswv0xnmqqtd/yumorn_trqpnstceupt7ul_m_usmtdfw3yu_7_e_vityxumptxveumop_ute3u_tnr/t0x0ut0xut7eunty1untf1umot2utezdeumteutyutw2utv3utvaut0u_xcf3dzdty/8u29e7v36_ox97tdy97utd3aut09ultcdaumtd3umrs_tnqtw3utwv8utweut80utecegu\"><img
|
|
38
|
+
src=\"http://fga.blueslatenews.com/2069250/vu3txumsl_tt6u_unqlt3umtfullpxq_t_unsy0v~5rll/ysoyq_tx_tmswv0xnmqqtdyumorn_trqpnstceupt7ul/_m_usmtdfw3yu_7_e_vityxumptxveumop_ute3u_tnr/t0x0ut0xumt7eunty1untf1umot2utezdeumteutyutw/2utv3utvaut0u_xcf3dzdty8u29e7v36_ox97tdy97ut/d3aut09ultcdaumtd3umrs_tnqtw3utwv8utweut80utecegu.jpg\"
|
|
39
|
+
/></a><br /><br /><a style=\"font-size: 12px\" href=\"http://fga.blueslatenews.com/preferences.php/2069250/vuaxtxumsl_tt6u_unqlt3umtfullpxq_t_unsy0rllys/ov~5yq_tx_tmswv0xnmqqtdyumorn_trqpnstceupt7u/l_m_usmtdfw3yu_7_e_vityxumptxveumop_ute3u_tn/rt0x0ut0xut7eunty1untf1umot2utezdeumteutyutw/2utv3utvaut0u_xcf3dzdty8u29e7v36_ox97tdy97ut/d3aut09ultcdaumtd3umrs_tnqtw3utwv8utweut80utecegu\">Preferences</a><img
|
|
40
|
+
src=\"http://fga.blueslatenews.com/2069250/vu63gz_mcv7a_ma3iz6txumsl_tt6u_unqlt3umtv~5fullpxq_t_unsy0rllysoyq_tx_t/mswv0xnmqqtdyumorn_trqpnstceupt7ul_m_usmtdfw3yu_7_e_vityxumptxveumop_u/te3u_tnrt0x0ut0xut7eunty1untf1umot2utezdeumteutyutw2utv3utvaut0u_xcf3d/zdty8u29e7v36_ox97tdy97utd3aut09ultcdaumtd3umrs_tnqtw3utwv8utweut80utecegu.jpg\"
|
|
41
|
+
alt=\"\" width=\"1\" height=\"1\" border=\"0\" align=\"left\" hspace=\"0\"
|
|
42
|
+
vspace=\"0\" />\n<br /><br /><img src=\"http://fga.blueslatenews.com/2069250/vuevc1fd_ma3iz6tv~5xumsl_tt6u_unqlt3umtfullpxq_t_unsy0rllysoyq_tx_tmsw/v0xnmqqtdyumorn_trqpnstceupt7ul_m_usmtdfw3yu_7_e_vityxumptxveumop_ute/3u_tnrt0x0ut0xut7eunty1untf1umot2utezdeumteutyutw2utv3utvaut0u_xcf3dz/dty8u29e7v36_ox97tdy97utd3aut09ultcdaumtd3umrs_tnqtw3utwv8utweut80utecegu.jpg\"
|
|
43
|
+
alt=\"\" width=\"1\" height=\"1\" border=\"0\" align=\"left\" hspace=\"0\"
|
|
44
|
+
vspace=\"0\" />\n<img src=\"http://fga.blueslatenews.com/2069250/vuec3113e_ma3iz6txumsl_tt6u_unqlv~5t3umtfullpxq_t_unsy0rll/ysoyq_tx_tmswv0xnmqqtdyumorn_trqpnstceupt7ul_m_usmtdfw3yu/_7_e_vityxumptxveumop_ute3u_tnrt0x0ut0xut7eunty1untf1umot/2utezdeumteutyutw2utv3utvaut0u_xcf3dzdty8u29e7v36_ox97tdy/97utd3aut09ultcdaumtd3umrs_tnqtw3utwv8utweut80uteceguy7v_m_tlo\"
|
|
45
|
+
alt=\"\" width=\"1\" height=\"1\" border=\"0\" align=\"left\" hspace=\"0\"
|
|
46
|
+
vspace=\"0\" />\n\n ]]></body><textbody/><mobilebody/><htmlcreativelength>3443</htmlcreativelength><textcreativelength>0</textcreativelength><mobilecreativelength>0</mobilecreativelength></creative><mid>0</mid></email><email><test>true</test><requestid>e1c9633e09e645176019dd44aeb2054b</requestid><scheduledate>20130309154347</scheduledate><mailingid>f7d8cdc90aba997d7dfd73b05c806182</mailingid><mailingtypeid>5</mailingtypeid><scheduleeventtypeid>1</scheduleeventtypeid><recipient>004c58927df600d73d58c817bafc2156</recipient><list>9250</list><cid>5464</cid><ccid>5464</ccid><campaignrank>0</campaignrank><categoryid>341</categoryid><testid>826</testid><creative><dname>Platinum
|
|
47
|
+
Credit Cards</dname><from>PlatinumCreditCards</from><friendlyfrom>Platinum
|
|
48
|
+
Credit Cards</friendlyfrom><subjectid>69340</subjectid><subject><![CDATA[Become
|
|
49
|
+
an elite owner of a platinum credit card]]></subject><body><![CDATA[ \n<br
|
|
50
|
+
/><br /><a href=\"http://fga.blueslatenews.com/2069250/vuxtxuqprpt6u_unqlt3umtfullpxq_t_unsy0rllysoyqv~5_tx_tmswv0xnmqrtdyu/morn_trqpnstceupt7um_mrlstdfw3yu_7_e_vityxumptxveuopmte3u_tnrt0x0ut/0xut7euqty1umtf1u_lmt2utezdeumteutyutw2utv3utvaut0u_a6ve38f7_xczy3e/_xvcydty8uv96_ox97tdy97utd3aut09ultcdautd3ur_uopltw3utwv8utweut80utecegu\">Platinum
|
|
51
|
+
Credit Card</a><br /><br /><a href=\"http://fga.blueslatenews.com/2069250/vuxtxuqprpt6u_unqlt3untfullpxq_t_unsyv~50rllysoyq_tx_tmswv0xnmqrtdyu/morn_trqpnstceupt7um_mrlstdfw3yu_7_e_vityxumptxveuopmte3u_tnrt0x0ut/0xut7euqty1umtf1u_lmt2utezdeumteutyutw2utv3utvaut0u_a6ve38f7_xczy3e/_xvcydty8uv96_ox97tdy97utd3aut09ultcdautd3ur_uopltw3utwv8utweut80utecegu\">Join
|
|
52
|
+
the elite few who own a platinum credit card</a><br /><br /><a href=\"http://fga.blueslatenews.com/2069250/vuxtxuqprpt6u_uv~5nqlt3uotfullpxq_t_unsy0rllysoyq_tx_tmswv0xnmqrtdyu/morn_trqpnstceupt7um_mrlstdfw3yu_7_e_vityxumptxveuopmte3u_tnrt0x0ut/0xut7euqty1umtf1u_lmt2utezdeumteutyutw2utv3utvaut0u_a6ve38f7_xczy3e/_xvcydty8uv96_ox97tdy97utd3aut09ultcdautd3ur_uopltw3utwv8utweut80utecegu\">Click
|
|
53
|
+
here to shop and compare the best platinum credit cards for you</a><br /><br
|
|
54
|
+
/><a href=\"http://fga.blueslatenews.com/2069250/vuxtxuqprpt6u_unqlt3umtfullpxq_t_unsy0rllysoyqv~5_tx_tmswv0xnmqrtdyu/morn_trqpnstceupt7um_mrlstdfw3yu_7_e_vityxumptxveuopmte3u_tnrt0x0ut/0xut7euqty1umtf1u_lmt2utezdeumteutyutw2utv3utvaut0u_a6ve38f7_xczy3e/_xvcydty8uv96_ox97tdy97utd3aut09ultcdautd3ur_uopltw3utwv8utweut80utecegu\"><img
|
|
55
|
+
src=\"http://fga.blueslatenews.com/2069250/vu3txuqprpt6u_unqlt3umtfv~5ullpxq_t_unsy0rlly/soyq_tx_tmswv0xnmqrtdyumorn_trqpnstceupt7um_/mrlstdfw3yu_7_e_vityxumptxveuopmte3u_tnrt0x0/ut0xumt7euqty1umtf1u_lmt2utezdeumteutyutw2ut/v3utvaut0u_a6ve38f7_xczy3e_xvcydty8uv96_ox97/tdy97utd3aut09ultcdautd3ur_uopltw3utwv8utweut80utecegu.jpg\"
|
|
56
|
+
/></a><br /><br /><a style=\"font-size: 12px\" href=\"http://fga.blueslatenews.com/preferences.php/2069250/vuaxtxuqv~5prpt6u_unqlt3umtfullpxq_t_unsy0rllysoyq_tx_t/mswv0xnmqrtdyumorn_trqpnstceupt7um_mrlstdfw3yu_7_e_vit/yxumptxveuopmte3u_tnrt0x0ut0xut7euqty1umtf1u_lmt2utezd/eumteutyutw2utv3utvaut0u_a6ve38f7_xczy3e_xvcydty8uv96_/ox97tdy97utd3aut09ultcdautd3ur_uopltw3utwv8utweut80utecegu\">Preferences</a><img
|
|
57
|
+
src=\"http://fga.blueslatenews.com/2069250/vu63gzv~5_mcv7a_ma3iz6txuqprpt6u_unqlt3umtfullpxq_t_unsy0r/llysoyq_tx_tmswv0xnmqrtdyumorn_trqpnstceupt7um_mrlstdfw3y/u_7_e_vityxumptxveuopmte3u_tnrt0x0ut0xut7euqty1umtf1u_lmt/2utezdeumteutyutw2utv3utvaut0u_a6ve38f7_xczy3e_xvcydty8uv/96_ox97tdy97utd3aut09ultcdautd3ur_uopltw3utwv8utweut80utecegu.jpg\"
|
|
58
|
+
alt=\"\" width=\"1\" height=\"1\" border=\"0\" align=\"left\" hspace=\"0\"
|
|
59
|
+
vspace=\"0\" />\n<br /><br /><img src=\"http://fga.blueslatenews.com/2069250/vuevc1fd_ma3iz6v~5txuqprpt6u_unqlt3umtfullpxq_t_unsy0rllysoyq_tx_tmswv0/xnmqrtdyumorn_trqpnstceupt7um_mrlstdfw3yu_7_e_vityxumptxveuopmte3u_tnr/t0x0ut0xut7euqty1umtf1u_lmt2utezdeumteutyutw2utv3utvaut0u_a6ve38f7_xcz/y3e_xvcydty8uv96_ox97tdy97utd3aut09ultcdautd3ur_uopltw3utwv8utweut80utecegu.jpg\"
|
|
60
|
+
alt=\"\" width=\"1\" height=\"1\" border=\"0\" align=\"left\" hspace=\"0\"
|
|
61
|
+
vspace=\"0\" />\n<img src=\"http://fga.blueslatenews.com/2069250/vuec3113e_ma3iv~5z6txuqprpt6u_unqlt3umtfullpxq_/t_unsy0rllysoyq_tx_tmswv0xnmqrtdyumorn_trqpnst/ceupt7um_mrlstdfw3yu_7_e_vityxumptxveuopmte3u_/tnrt0x0ut0xut7euqty1umtf1u_lmt2utezdeumteutyut/w2utv3utvaut0u_a6ve38f7_xczy3e_xvcydty8uv96_ox/97tdy97utd3aut09ultcdautd3ur_uopltw3utwv8utweut80utecegu\"
|
|
62
|
+
alt=\"\" width=\"1\" height=\"1\" border=\"0\" align=\"left\" hspace=\"0\"
|
|
63
|
+
vspace=\"0\" />\n\n ]]></body><textbody/><mobilebody/><htmlcreativelength>3508</htmlcreativelength><textcreativelength>0</textcreativelength><mobilecreativelength>0</mobilecreativelength></creative><mid>0</mid></email><error><num>10</num><str>Domain
|
|
64
|
+
is suppressed\n</str><requestid>0</requestid><recipient>a2a8c7a5ce7c4249663803c7d040401f</recipient><list>9250</list></error><error><num>10</num><str>Domain
|
|
65
|
+
is suppressed\n</str><requestid>0</requestid><recipient>a2a8c7a5ce7c4249663803c7d040401e</recipient><list>9250</list></error></result>"
|
|
66
|
+
http_version: !!null
|
|
67
|
+
recorded_at: Sat, 09 Mar 2013 21:43:47 GMT
|
|
68
|
+
recorded_with: VCR 2.4.0
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: http://integrated.adstation.com/1.3
|
|
6
|
+
headers:
|
|
7
|
+
Accepts:
|
|
8
|
+
- application/xml
|
|
9
|
+
Accept-Encoding:
|
|
10
|
+
- gzip
|
|
11
|
+
Accept:
|
|
12
|
+
- ! '*/*'
|
|
13
|
+
User-Agent:
|
|
14
|
+
- Ruby
|
|
15
|
+
response:
|
|
16
|
+
status:
|
|
17
|
+
code: 200
|
|
18
|
+
message: OK
|
|
19
|
+
headers:
|
|
20
|
+
Content-Type:
|
|
21
|
+
- text/xml
|
|
22
|
+
Date:
|
|
23
|
+
- Sat, 09 Mar 2013 18:34:00 GMT
|
|
24
|
+
Accept-Ranges:
|
|
25
|
+
- bytes
|
|
26
|
+
Server:
|
|
27
|
+
- Noelios-Restlet-Engine/1.1..2
|
|
28
|
+
Transfer-Encoding:
|
|
29
|
+
- chunked
|
|
30
|
+
body:
|
|
31
|
+
encoding: ASCII-8BIT
|
|
32
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><result><email><test>true</test><requestid>3896146278cb759ba836b1c1e8a5b7e1</requestid><scheduledate>20130309123400</scheduledate><mailingid>879f6b476c8e46aa9129cbbacdea1839</mailingid><mailingtypeid>2</mailingtypeid><scheduleeventtypeid>1</scheduleeventtypeid><recipient>004c58927df600d73d58c817bafc2155</recipient><list>9250</list><cid>25451</cid><ccid>25451</ccid><campaignrank>4</campaignrank><categoryid>1178</categoryid><testid>826</testid><creative><dname>Email
|
|
33
|
+
to Fax</dname><from>TurnEmailIntoFax</from><friendlyfrom>Email to Fax</friendlyfrom><subjectid>16153</subjectid><subject><![CDATA[Faxes
|
|
34
|
+
delivered to your email.]]></subject><body><![CDATA[ \n<br /><br /><a href=\"http://fga.example.com/2069250/vuxtxunqpqmt6v~5u_unqlt3umtfullpxq_t_unsy0rlly/soyq_tx_tmswv0xnmqqtdyumorn_tqplpltceurt7ul_m/qostdfw3yu_7_e_vityxumptxveumms_tte3u_tnrt0x0/ut0xut7eunty1untf1umot2utezdeumteutyutw2utv3u/tvaut0u_efc8_z7v36_38e9_0vity8u29e7v36_ox97td/y97utd3aut09ultcdaumtd3umrmqotw3utwv8utweut80utecegu\">Email
|
|
35
|
+
Fax</a><br /><br /><a href=\"http://fga.example.com/2069250/vuxtxunqpqmt6uv~5_unqlt3untfullpxq_t_unsy0rllysoyq_tx_tmswv0xnmqqtdyu/morn_tqplpltceurt7ul_mqostdfw3yu_7_e_vityxumptxveumms_tte3u_tnrt0x0u/t0xut7eunty1untf1umot2utezdeumteutyutw2utv3utvaut0u_efc8_z7v36_38e9_/0vity8u29e7v36_ox97tdy97utd3aut09ultcdaumtd3umrmqotw3utwv8utweut80utecegu\">Online
|
|
36
|
+
fax to email services.</a><br /><br /><a href=\"http://fga.example.com/2069250/vuxtxunqpqmt6u_unqlt3uotfullpv~5xq_t_unsy0rllysoyq_tx_t/mswv0xnmqqtdyumorn_tqplpltceurt7ul_mqostdfw3yu_7_e_vit/yxumptxveumms_tte3u_tnrt0x0ut0xut7eunty1untf1umot2utez/deumteutyutw2utv3utvaut0u_efc8_z7v36_38e9_0vity8u29e7v/36_ox97tdy97utd3aut09ultcdaumtd3umrmqotw3utwv8utweut80utecegu\">Go
|
|
37
|
+
paperless, start sending and receiving faxes via email.</a><br /><br /><a
|
|
38
|
+
href=\"http://fga.example.com/2069250/vuxtxunqpqmt6v~5u_unqlt3umtfullpxq_t_unsy0rlly/soyq_tx_tmswv0xnmqqtdyumorn_tqplpltceurt7ul_m/qostdfw3yu_7_e_vityxumptxveumms_tte3u_tnrt0x0/ut0xut7eunty1untf1umot2utezdeumteutyutw2utv3u/tvaut0u_efc8_z7v36_38e9_0vity8u29e7v36_ox97td/y97utd3aut09ultcdaumtd3umrmqotw3utwv8utweut80utecegu\"><img
|
|
39
|
+
src=\"http://fga.example.com/2069250/vu3txunqpqmt6u_unqlt3umtfullpxq_t_unsy0rlv~5lysoyq_tx_t/mswv0xnmqqtdyumorn_tqplpltceurt7ul_mqostdfw3yu_7_e_vit/yxumptxveumms_tte3u_tnrt0x0ut0xumt7eunty1untf1umot2ute/zdeumteutyutw2utv3utvaut0u_efc8_z7v36_38e9_0vity8u29e7/v36_ox97tdy97utd3aut09ultcdaumtd3umrmqotw3utwv8utweut80utecegu.jpg\"
|
|
40
|
+
/></a><br /><br /><a style=\"font-size: 12px\" href=\"http://fga.example.com/preferences.php/2069250/vuaxtxunqpqmt6u_unqlt3umtfullpxq_t_unv~5sy0rll/ysoyq_tx_tmswv0xnmqqtdyumorn_tqplpltceurt7ul_/mqostdfw3yu_7_e_vityxumptxveumms_tte3u_tnrt0x/0ut0xut7eunty1untf1umot2utezdeumteutyutw2utv3/utvaut0u_efc8_z7v36_38e9_0vity8u29e7v36_ox97t/dy97utd3aut09ultcdaumtd3umrmqotw3utwv8utweut80utecegu\">Preferences</a><img
|
|
41
|
+
src=\"http://fga.example.com/2069250/vu63gz_mcv7a_ma3iz6txunqpqmt6u_unqlt3umtfuv~5llpxq_t_unsy0/rllysoyq_tx_tmswv0xnmqqtdyumorn_tqplpltceurt7ul_mqostdfw3/yu_7_e_vityxumptxveumms_tte3u_tnrt0x0ut0xut7eunty1untf1um/ot2utezdeumteutyutw2utv3utvaut0u_efc8_z7v36_38e9_0vity8u2/9e7v36_ox97tdy97utd3aut09ultcdaumtd3umrmqotw3utwv8utweut80utecegu.jpg\"
|
|
42
|
+
alt=\"\" width=\"1\" height=\"1\" border=\"0\" align=\"left\" hspace=\"0\"
|
|
43
|
+
vspace=\"0\" />\n<br /><br /><img src=\"http://fga.example.com/2069250/vuevc1fd_ma3iz6txunqpqmt6u_unqlt3umtfullpxq_t_un/v~5sy0rllysoyq_tx_tmswv0xnmqqtdyumorn_tqplpltce/urt7ul_mqostdfw3yu_7_e_vityxumptxveumms_tte3u_t/nrt0x0ut0xut7eunty1untf1umot2utezdeumteutyutw2u/tv3utvaut0u_efc8_z7v36_38e9_0vity8u29e7v36_ox97/tdy97utd3aut09ultcdaumtd3umrmqotw3utwv8utweut80utecegu.jpg\"
|
|
44
|
+
alt=\"\" width=\"1\" height=\"1\" border=\"0\" align=\"left\" hspace=\"0\"
|
|
45
|
+
vspace=\"0\" />\n<img src=\"http://fga.example.com/2069250/vuec3113e_ma3iz6txunqpqmt6u_v~5unqlt3umtfullpxq_t_unsy0rllysoyq_tx_tmswv0xn/mqqtdyumorn_tqplpltceurt7ul_mqostdfw3yu_7_e_vityxumptxveumms_tte3u_tnrt0x0/ut0xut7eunty1untf1umot2utezdeumteutyutw2utv3utvaut0u_efc8_z7v36_38e9_0vity/8u29e7v36_ox97tdy97utd3aut09ultcdaumtd3umrmqotw3utwv8utweut80uteceguy7v_m_tlo\"
|
|
46
|
+
alt=\"\" width=\"1\" height=\"1\" border=\"0\" align=\"left\" hspace=\"0\"
|
|
47
|
+
vspace=\"0\" />\n\n ]]></body><textbody/><mobilebody/><htmlcreativelength>3516</htmlcreativelength><textcreativelength>0</textcreativelength><mobilecreativelength>0</mobilecreativelength></creative><mid>0</mid></email><error><num>10</num><str>Domain
|
|
48
|
+
is suppressed\n</str><requestid>0</requestid><recipient>a2a8c7a5ce7c4249663803c7d040401f</recipient><list>9250</list></error></result>"
|
|
49
|
+
http_version: !!null
|
|
50
|
+
recorded_at: Sat, 09 Mar 2013 18:34:02 GMT
|
|
51
|
+
recorded_with: VCR 2.4.0
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
body:
|
|
6
|
+
encoding: US-ASCII
|
|
7
|
+
string: ''
|
|
8
|
+
headers:
|
|
9
|
+
User-Agent:
|
|
10
|
+
- Faraday v0.8.6
|
|
11
|
+
Accept-Encoding:
|
|
12
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
13
|
+
Accept:
|
|
14
|
+
- ! '*/*'
|
|
15
|
+
response:
|
|
16
|
+
status:
|
|
17
|
+
code: 200
|
|
18
|
+
message: OK
|
|
19
|
+
headers:
|
|
20
|
+
Date:
|
|
21
|
+
- Sun, 10 Mar 2013 00:55:29 GMT
|
|
22
|
+
Server:
|
|
23
|
+
- Apache/2.2.12 (Linux/SUSE)
|
|
24
|
+
X-Powered-By:
|
|
25
|
+
- PHP/5.3.8-ZS5.5.0 ZendServer/5.0
|
|
26
|
+
Set-Cookie:
|
|
27
|
+
- ZDEDebuggerPresent=php,phtml,php3; path=/
|
|
28
|
+
Cache-Control:
|
|
29
|
+
- no-cache, must-revalidate
|
|
30
|
+
Expires:
|
|
31
|
+
- Mon, 26 Jul 1997 05:00:00 GMT
|
|
32
|
+
Content-Length:
|
|
33
|
+
- '1718'
|
|
34
|
+
Content-Type:
|
|
35
|
+
- application/json
|
|
36
|
+
body:
|
|
37
|
+
encoding: US-ASCII
|
|
38
|
+
string: ! '{"status":1,"data":[{"subid":"101","report_date":"2013-03-08","revenue":"0.00","paid_clicks":"0"},{"subid":"101","report_date":"2013-03-09","revenue":"0.00","paid_clicks":"0"},{"subid":"3924621","report_date":"2013-03-09","revenue":"0.32","paid_clicks":"1"},{"subid":"4052755","report_date":"2013-03-09","revenue":"0.31","paid_clicks":"1"},{"subid":"4432499","report_date":"2013-03-08","revenue":"1.45","paid_clicks":"1"},{"subid":"4459811","report_date":"2013-03-09","revenue":"0.49","paid_clicks":"1"},{"subid":"4462612","report_date":"2013-03-08","revenue":"0.28","paid_clicks":"1"},{"subid":"4492234","report_date":"2013-03-08","revenue":"0.20","paid_clicks":"1"},{"subid":"4517827","report_date":"2013-03-09","revenue":"0.00","paid_clicks":"0"},{"subid":"4527947","report_date":"2013-03-08","revenue":"0.26","paid_clicks":"1"},{"subid":"4530689","report_date":"2013-03-08","revenue":"0.47","paid_clicks":"1"},{"subid":"4533364","report_date":"2013-03-08","revenue":"0.31","paid_clicks":"2"},{"subid":"4536573","report_date":"2013-03-08","revenue":"0.33","paid_clicks":"1"},{"subid":"4538370","report_date":"2013-03-09","revenue":"0.56","paid_clicks":"1"},{"subid":"4538781","report_date":"2013-03-08","revenue":"0.00","paid_clicks":"0"},{"subid":"4538833","report_date":"2013-03-08","revenue":"0.36","paid_clicks":"1"},{"subid":"4542071","report_date":"2013-03-08","revenue":"0.12","paid_clicks":"2"},{"subid":"4544113","report_date":"2013-03-08","revenue":"0.00","paid_clicks":"0"},{"subid":"4544119","report_date":"2013-03-08","revenue":"0.29","paid_clicks":"1"},{"subid":"4544122","report_date":"2013-03-08","revenue":"0.00","paid_clicks":"0"}],"messages":[],"errors":[],"code":200,"time":{"click":1362876599}}'
|
|
39
|
+
http_version: !!null
|
|
40
|
+
recorded_at: Sun, 10 Mar 2013 00:55:30 GMT
|
|
41
|
+
recorded_with: VCR 2.4.0
|
data/spec/spec_helper.rb
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
|
2
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
|
|
3
|
+
|
|
4
|
+
require 'adknowledge'
|
|
5
|
+
require 'rspec'
|
|
6
|
+
require 'vcr'
|
|
7
|
+
|
|
8
|
+
VCR.configure do |c|
|
|
9
|
+
c.hook_into :webmock
|
|
10
|
+
c.cassette_library_dir = 'spec/cassettes'
|
|
11
|
+
c.default_cassette_options = {
|
|
12
|
+
decode_compressed_response: true,
|
|
13
|
+
record: :once,
|
|
14
|
+
match_requests_on: [ :method ]
|
|
15
|
+
}
|
|
16
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: adknowledge
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.3
|
|
5
|
+
prerelease:
|
|
6
|
+
platform: ruby
|
|
7
|
+
authors:
|
|
8
|
+
- Aaron Spiegel
|
|
9
|
+
autorequire:
|
|
10
|
+
bindir: bin
|
|
11
|
+
cert_chain: []
|
|
12
|
+
date: 2013-03-10 00:00:00.000000000 Z
|
|
13
|
+
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
15
|
+
name: pry
|
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
|
17
|
+
none: false
|
|
18
|
+
requirements:
|
|
19
|
+
- - ! '>='
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '0'
|
|
22
|
+
type: :development
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
26
|
+
requirements:
|
|
27
|
+
- - ! '>='
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: '0'
|
|
30
|
+
- !ruby/object:Gem::Dependency
|
|
31
|
+
name: rspec
|
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
|
33
|
+
none: false
|
|
34
|
+
requirements:
|
|
35
|
+
- - ! '>='
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: '0'
|
|
38
|
+
type: :development
|
|
39
|
+
prerelease: false
|
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
+
none: false
|
|
42
|
+
requirements:
|
|
43
|
+
- - ! '>='
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: '0'
|
|
46
|
+
- !ruby/object:Gem::Dependency
|
|
47
|
+
name: webmock
|
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
|
49
|
+
none: false
|
|
50
|
+
requirements:
|
|
51
|
+
- - '='
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '1.10'
|
|
54
|
+
type: :development
|
|
55
|
+
prerelease: false
|
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
57
|
+
none: false
|
|
58
|
+
requirements:
|
|
59
|
+
- - '='
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '1.10'
|
|
62
|
+
- !ruby/object:Gem::Dependency
|
|
63
|
+
name: vcr
|
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
|
65
|
+
none: false
|
|
66
|
+
requirements:
|
|
67
|
+
- - ! '>='
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
version: '0'
|
|
70
|
+
type: :development
|
|
71
|
+
prerelease: false
|
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
73
|
+
none: false
|
|
74
|
+
requirements:
|
|
75
|
+
- - ! '>='
|
|
76
|
+
- !ruby/object:Gem::Version
|
|
77
|
+
version: '0'
|
|
78
|
+
- !ruby/object:Gem::Dependency
|
|
79
|
+
name: rake
|
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
|
81
|
+
none: false
|
|
82
|
+
requirements:
|
|
83
|
+
- - ! '>='
|
|
84
|
+
- !ruby/object:Gem::Version
|
|
85
|
+
version: '0'
|
|
86
|
+
type: :runtime
|
|
87
|
+
prerelease: false
|
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
89
|
+
none: false
|
|
90
|
+
requirements:
|
|
91
|
+
- - ! '>='
|
|
92
|
+
- !ruby/object:Gem::Version
|
|
93
|
+
version: '0'
|
|
94
|
+
- !ruby/object:Gem::Dependency
|
|
95
|
+
name: activesupport
|
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
|
97
|
+
none: false
|
|
98
|
+
requirements:
|
|
99
|
+
- - ! '>='
|
|
100
|
+
- !ruby/object:Gem::Version
|
|
101
|
+
version: '0'
|
|
102
|
+
type: :runtime
|
|
103
|
+
prerelease: false
|
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
105
|
+
none: false
|
|
106
|
+
requirements:
|
|
107
|
+
- - ! '>='
|
|
108
|
+
- !ruby/object:Gem::Version
|
|
109
|
+
version: '0'
|
|
110
|
+
- !ruby/object:Gem::Dependency
|
|
111
|
+
name: oj
|
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
|
113
|
+
none: false
|
|
114
|
+
requirements:
|
|
115
|
+
- - ! '>='
|
|
116
|
+
- !ruby/object:Gem::Version
|
|
117
|
+
version: '0'
|
|
118
|
+
type: :runtime
|
|
119
|
+
prerelease: false
|
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
+
none: false
|
|
122
|
+
requirements:
|
|
123
|
+
- - ! '>='
|
|
124
|
+
- !ruby/object:Gem::Version
|
|
125
|
+
version: '0'
|
|
126
|
+
- !ruby/object:Gem::Dependency
|
|
127
|
+
name: ox
|
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
|
129
|
+
none: false
|
|
130
|
+
requirements:
|
|
131
|
+
- - ! '>='
|
|
132
|
+
- !ruby/object:Gem::Version
|
|
133
|
+
version: '0'
|
|
134
|
+
type: :runtime
|
|
135
|
+
prerelease: false
|
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
137
|
+
none: false
|
|
138
|
+
requirements:
|
|
139
|
+
- - ! '>='
|
|
140
|
+
- !ruby/object:Gem::Version
|
|
141
|
+
version: '0'
|
|
142
|
+
- !ruby/object:Gem::Dependency
|
|
143
|
+
name: multi_xml
|
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
|
145
|
+
none: false
|
|
146
|
+
requirements:
|
|
147
|
+
- - ! '>='
|
|
148
|
+
- !ruby/object:Gem::Version
|
|
149
|
+
version: '0'
|
|
150
|
+
type: :runtime
|
|
151
|
+
prerelease: false
|
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
153
|
+
none: false
|
|
154
|
+
requirements:
|
|
155
|
+
- - ! '>='
|
|
156
|
+
- !ruby/object:Gem::Version
|
|
157
|
+
version: '0'
|
|
158
|
+
- !ruby/object:Gem::Dependency
|
|
159
|
+
name: addressable
|
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
|
161
|
+
none: false
|
|
162
|
+
requirements:
|
|
163
|
+
- - ! '>='
|
|
164
|
+
- !ruby/object:Gem::Version
|
|
165
|
+
version: '0'
|
|
166
|
+
type: :runtime
|
|
167
|
+
prerelease: false
|
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
169
|
+
none: false
|
|
170
|
+
requirements:
|
|
171
|
+
- - ! '>='
|
|
172
|
+
- !ruby/object:Gem::Version
|
|
173
|
+
version: '0'
|
|
174
|
+
- !ruby/object:Gem::Dependency
|
|
175
|
+
name: faraday
|
|
176
|
+
requirement: !ruby/object:Gem::Requirement
|
|
177
|
+
none: false
|
|
178
|
+
requirements:
|
|
179
|
+
- - ! '>='
|
|
180
|
+
- !ruby/object:Gem::Version
|
|
181
|
+
version: '0'
|
|
182
|
+
type: :runtime
|
|
183
|
+
prerelease: false
|
|
184
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
185
|
+
none: false
|
|
186
|
+
requirements:
|
|
187
|
+
- - ! '>='
|
|
188
|
+
- !ruby/object:Gem::Version
|
|
189
|
+
version: '0'
|
|
190
|
+
- !ruby/object:Gem::Dependency
|
|
191
|
+
name: faraday_middleware
|
|
192
|
+
requirement: !ruby/object:Gem::Requirement
|
|
193
|
+
none: false
|
|
194
|
+
requirements:
|
|
195
|
+
- - ! '>='
|
|
196
|
+
- !ruby/object:Gem::Version
|
|
197
|
+
version: '0'
|
|
198
|
+
type: :runtime
|
|
199
|
+
prerelease: false
|
|
200
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
201
|
+
none: false
|
|
202
|
+
requirements:
|
|
203
|
+
- - ! '>='
|
|
204
|
+
- !ruby/object:Gem::Version
|
|
205
|
+
version: '0'
|
|
206
|
+
- !ruby/object:Gem::Dependency
|
|
207
|
+
name: faraday_middleware-parse_oj
|
|
208
|
+
requirement: !ruby/object:Gem::Requirement
|
|
209
|
+
none: false
|
|
210
|
+
requirements:
|
|
211
|
+
- - ! '>='
|
|
212
|
+
- !ruby/object:Gem::Version
|
|
213
|
+
version: '0'
|
|
214
|
+
type: :runtime
|
|
215
|
+
prerelease: false
|
|
216
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
217
|
+
none: false
|
|
218
|
+
requirements:
|
|
219
|
+
- - ! '>='
|
|
220
|
+
- !ruby/object:Gem::Version
|
|
221
|
+
version: '0'
|
|
222
|
+
description: A collection of web-api helpers and parsing utils for Adknowlege's APIs
|
|
223
|
+
email:
|
|
224
|
+
- spiegela@gmail.com
|
|
225
|
+
executables: []
|
|
226
|
+
extensions: []
|
|
227
|
+
extra_rdoc_files: []
|
|
228
|
+
files:
|
|
229
|
+
- .gitignore
|
|
230
|
+
- Gemfile
|
|
231
|
+
- README.md
|
|
232
|
+
- Rakefile
|
|
233
|
+
- adknowledge.gemspec
|
|
234
|
+
- lib/adknowledge.rb
|
|
235
|
+
- lib/adknowledge/config.rb
|
|
236
|
+
- lib/adknowledge/integrated.rb
|
|
237
|
+
- lib/adknowledge/performance.rb
|
|
238
|
+
- lib/adknowledge/version.rb
|
|
239
|
+
- lib/faraday_middleware/adknowledge.rb
|
|
240
|
+
- spec/adknowledge/integrated_spec.rb
|
|
241
|
+
- spec/adknowledge/performance_spec.rb
|
|
242
|
+
- spec/adknowledge_spec.rb
|
|
243
|
+
- spec/cassettes/map_multi_success.yml
|
|
244
|
+
- spec/cassettes/map_single_success.yml
|
|
245
|
+
- spec/cassettes/performance.yml
|
|
246
|
+
- spec/spec_helper.rb
|
|
247
|
+
homepage: ''
|
|
248
|
+
licenses: []
|
|
249
|
+
post_install_message:
|
|
250
|
+
rdoc_options: []
|
|
251
|
+
require_paths:
|
|
252
|
+
- lib
|
|
253
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
254
|
+
none: false
|
|
255
|
+
requirements:
|
|
256
|
+
- - ! '>='
|
|
257
|
+
- !ruby/object:Gem::Version
|
|
258
|
+
version: '0'
|
|
259
|
+
segments:
|
|
260
|
+
- 0
|
|
261
|
+
hash: 387899590965844068
|
|
262
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
263
|
+
none: false
|
|
264
|
+
requirements:
|
|
265
|
+
- - ! '>='
|
|
266
|
+
- !ruby/object:Gem::Version
|
|
267
|
+
version: '0'
|
|
268
|
+
segments:
|
|
269
|
+
- 0
|
|
270
|
+
hash: 387899590965844068
|
|
271
|
+
requirements: []
|
|
272
|
+
rubyforge_project:
|
|
273
|
+
rubygems_version: 1.8.24
|
|
274
|
+
signing_key:
|
|
275
|
+
specification_version: 3
|
|
276
|
+
summary: Adknowledge API Tools
|
|
277
|
+
test_files:
|
|
278
|
+
- spec/adknowledge/integrated_spec.rb
|
|
279
|
+
- spec/adknowledge/performance_spec.rb
|
|
280
|
+
- spec/adknowledge_spec.rb
|
|
281
|
+
- spec/cassettes/map_multi_success.yml
|
|
282
|
+
- spec/cassettes/map_single_success.yml
|
|
283
|
+
- spec/cassettes/performance.yml
|
|
284
|
+
- spec/spec_helper.rb
|