apdm 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +9 -0
  3. data/.rspec +1 -0
  4. data/Gemfile +4 -0
  5. data/README.md +223 -0
  6. data/Rakefile +1 -0
  7. data/apdm.gemspec +34 -0
  8. data/bin/apdm +6 -0
  9. data/features/ad_tech.feature +11 -0
  10. data/features/step_definitions/ad_tech_steps.rb +19 -0
  11. data/features/support/env.rb +5 -0
  12. data/fixtures/approvals/ad_tech_loader_scripts.approved.txt +42 -0
  13. data/fixtures/approvals/ad_tech_placeholders.approved.txt +6 -0
  14. data/lib/apdm.rb +24 -0
  15. data/lib/apdm/ad_tech.rb +96 -0
  16. data/lib/apdm/ad_tech/ad_loader.rb +67 -0
  17. data/lib/apdm/ad_tech/ads.csv +475 -0
  18. data/lib/apdm/ad_tech/data.rb +47 -0
  19. data/lib/apdm/channel.rb +87 -0
  20. data/lib/apdm/channels.rb +569 -0
  21. data/lib/apdm/credentials.rb +26 -0
  22. data/lib/apdm/design_elements.rb +60 -0
  23. data/lib/apdm/design_elements/api.rb +75 -0
  24. data/lib/apdm/feed.rb +65 -0
  25. data/lib/apdm/issues.rb +14 -0
  26. data/lib/apdm/issues/aasavis.rb +51 -0
  27. data/lib/apdm/issues/amta.rb +253 -0
  28. data/lib/apdm/issues/an.rb +302 -0
  29. data/lib/apdm/issues/auraavis.rb +154 -0
  30. data/lib/apdm/issues/austagderblad.rb +154 -0
  31. data/lib/apdm/issues/avisa-hordaland.rb +154 -0
  32. data/lib/apdm/issues/avisa-valdres.rb +177 -0
  33. data/lib/apdm/issues/ba.rb +352 -0
  34. data/lib/apdm/issues/bladet.rb +154 -0
  35. data/lib/apdm/issues/blv.rb +254 -0
  36. data/lib/apdm/issues/bygdeposten.rb +154 -0
  37. data/lib/apdm/issues/demokraten.rb +154 -0
  38. data/lib/apdm/issues/eikerbladet.rb +409 -0
  39. data/lib/apdm/issues/enebakkavis.rb +51 -0
  40. data/lib/apdm/issues/etl.rb +79 -0
  41. data/lib/apdm/issues/eub.rb +254 -0
  42. data/lib/apdm/issues/finnmarkdagblad.rb +302 -0
  43. data/lib/apdm/issues/finnmarken.rb +302 -0
  44. data/lib/apdm/issues/firda.rb +302 -0
  45. data/lib/apdm/issues/firdaposten.rb +153 -0
  46. data/lib/apdm/issues/fremover.rb +304 -0
  47. data/lib/apdm/issues/gd.rb +304 -0
  48. data/lib/apdm/issues/glomdalen.rb +302 -0
  49. data/lib/apdm/issues/ha-halden.rb +302 -0
  50. data/lib/apdm/issues/hadeland.rb +251 -0
  51. data/lib/apdm/issues/hardanger-folkeblad.rb +151 -0
  52. data/lib/apdm/issues/helgeland-arbeiderblad.rb +304 -0
  53. data/lib/apdm/issues/import.csv +12821 -0
  54. data/lib/apdm/issues/indre.rb +151 -0
  55. data/lib/apdm/issues/jarlsbergavis.rb +154 -0
  56. data/lib/apdm/issues/kvinnheringen.rb +202 -0
  57. data/lib/apdm/issues/lofot-tidende.rb +102 -0
  58. data/lib/apdm/issues/lofotposten.rb +304 -0
  59. data/lib/apdm/issues/mb.rb +103 -0
  60. data/lib/apdm/issues/namdalsavisa.rb +302 -0
  61. data/lib/apdm/issues/nordhordland.rb +103 -0
  62. data/lib/apdm/issues/nordlys.rb +304 -0
  63. data/lib/apdm/issues/oa.rb +302 -0
  64. data/lib/apdm/issues/op.rb +304 -0
  65. data/lib/apdm/issues/opdalingen.rb +150 -0
  66. data/lib/apdm/issues/oyene.rb +51 -0
  67. data/lib/apdm/issues/pd.rb +254 -0
  68. data/lib/apdm/issues/r-a.rb +152 -0
  69. data/lib/apdm/issues/ranablad.rb +304 -0
  70. data/lib/apdm/issues/rb.rb +302 -0
  71. data/lib/apdm/issues/retten.rb +151 -0
  72. data/lib/apdm/issues/ringblad.rb +304 -0
  73. data/lib/apdm/issues/rogalandsavis.rb +302 -0
  74. data/lib/apdm/issues/sa.rb +304 -0
  75. data/lib/apdm/issues/smaalenene.rb +304 -0
  76. data/lib/apdm/issues/sognavis.rb +254 -0
  77. data/lib/apdm/issues/ta.rb +304 -0
  78. data/lib/apdm/issues/tk.rb +304 -0
  79. data/lib/apdm/issues/tvedestrandsposten.rb +150 -0
  80. data/lib/apdm/issues/vestbyavis.rb +51 -0
  81. data/lib/apdm/local_paper_area.rb +21 -0
  82. data/lib/apdm/network.rb +49 -0
  83. data/lib/apdm/null_cache.rb +15 -0
  84. data/lib/apdm/origo.rb +46 -0
  85. data/lib/apdm/saxo.rb +58 -0
  86. data/lib/apdm/saxo/iptc.rb +69 -0
  87. data/lib/apdm/saxo/metadata.rb +36 -0
  88. data/lib/apdm/saxo/remote.rb +67 -0
  89. data/lib/apdm/sinatra.rb +85 -0
  90. data/lib/apdm/version.rb +3 -0
  91. data/lib/cli.rb +12 -0
  92. data/spec/ad_tech/ad_loader_spec.rb +27 -0
  93. data/spec/ad_tech/data_spec.rb +14 -0
  94. data/spec/ad_tech_spec.rb +70 -0
  95. data/spec/approvals_helper.rb +6 -0
  96. data/spec/channel_spec.rb +91 -0
  97. data/spec/channels_spec.rb +9 -0
  98. data/spec/credentials_integration_spec.rb +13 -0
  99. data/spec/credentials_spec.rb +34 -0
  100. data/spec/design_elements_spec.rb +132 -0
  101. data/spec/feed_spec.rb +49 -0
  102. data/spec/fixtures/ad_tech.csv +6 -0
  103. data/spec/fixtures/approvals/adtech/ad_loader.approved.txt +9 -0
  104. data/spec/fixtures/approvals/apdm_adtech/data/handles_artikkelboard.approved.txt +10 -0
  105. data/spec/fixtures/approvals/apdm_adtech/data/handles_bunnbanner.approved.txt +10 -0
  106. data/spec/fixtures/approvals/apdm_adtech/data/handles_skyskraper_1.approved.txt +10 -0
  107. data/spec/fixtures/approvals/apdm_adtech/data/handles_toppbanner.approved.txt +10 -0
  108. data/spec/fixtures/approvals/apdm_adtech/data/is_ok_with_new_bandwagon_data.approved.txt +10 -0
  109. data/spec/fixtures/approvals/apdm_adtech/data/loads_default_data.approved.txt +10 -0
  110. data/spec/fixtures/approvals/apdm_designelements/css/via_api.approved.txt +23 -0
  111. data/spec/fixtures/approvals/apdm_designelements/footer_html/via_api.approved.html +85 -0
  112. data/spec/fixtures/approvals/apdm_designelements/header_html/via_api.approved.html +40 -0
  113. data/spec/fixtures/approvals/apdm_designelements/tracking_scripts/api/keyword.approved.txt +54 -0
  114. data/spec/fixtures/approvals/apdm_designelements/tracking_scripts/api/placeholder.approved.txt +54 -0
  115. data/spec/fixtures/issues.csv +3 -0
  116. data/spec/fixtures/test.jpg +0 -0
  117. data/spec/fixtures/vcr_cassettes/apdm_credentials.yml +44 -0
  118. data/spec/fixtures/vcr_cassettes/css.yml +5588 -0
  119. data/spec/fixtures/vcr_cassettes/footer-html.yml +178 -0
  120. data/spec/fixtures/vcr_cassettes/header-html.yml +132 -0
  121. data/spec/fixtures/vcr_cassettes/origo_someone_credentials.yml +43 -0
  122. data/spec/fixtures/vcr_cassettes/origo_westerdal_credentials.yml +56 -0
  123. data/spec/fixtures/vcr_cassettes/site_stat.yml +172 -0
  124. data/spec/fixtures/vcr_cassettes/site_stat_custom_category.yml +172 -0
  125. data/spec/geo_spec.rb +10 -0
  126. data/spec/issues_etl_spec.rb +41 -0
  127. data/spec/mockcached.rb +36 -0
  128. data/spec/network_spec.rb +43 -0
  129. data/spec/null_cache_spec.rb +29 -0
  130. data/spec/origo_spec.rb +24 -0
  131. data/spec/saxo/iptc_spec.rb +105 -0
  132. data/spec/saxo/metadata_spec.rb +79 -0
  133. data/spec/saxo/remote_spec.rb +71 -0
  134. data/spec/saxo/saxo_spec.rb +82 -0
  135. data/spec/spec_helper.rb +22 -0
  136. data/spec/vcr_helper.rb +6 -0
  137. data/test/fixtures/config-example.yml +6 -0
  138. data/test/saxo/acceptance_spec.rb +109 -0
  139. metadata +427 -0
@@ -0,0 +1,178 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://www.avisnavn.no/?app=default&element=footer&key=automated-test-key&service=designElements&version=4
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ X-Trace-App:
16
+ - ! '[relax ; blixt.api.kunder.linpro.no ; Wed Apr 11 09:45:35 CEST 2012]'
17
+ - ! '[relax ; knuff.api.kunder.linpro.no ; Wed Apr 11 09:45:35 CEST 2012]'
18
+ - ! '[seamstress ; dold.api.kunder.linpro.no ; Wed Apr 11 09:51:11 CEST 2012]'
19
+ X-Ua-Compatible:
20
+ - IE=Edge
21
+ Content-Language:
22
+ - nb-NO-www.avisnavn.no
23
+ Content-Type:
24
+ - text/html; charset=utf-8
25
+ Server:
26
+ - Jetty(6.1.24)
27
+ X-Varnish:
28
+ - '1062852793'
29
+ - '2703459550'
30
+ Via:
31
+ - 1.1 varnish
32
+ - 1.1 varnish
33
+ X-Src-Webcache:
34
+ - regolit.api.kunder.linpro.no dold
35
+ Transfer-Encoding:
36
+ - chunked
37
+ Date:
38
+ - Wed, 11 Apr 2012 07:51:11 GMT
39
+ Age:
40
+ - '0'
41
+ Connection:
42
+ - keep-alive
43
+ Cache-Control:
44
+ - must-revalidate
45
+ X-Country-Code:
46
+ - 'NO'
47
+ body:
48
+ encoding: UTF-8
49
+ string: ! '<div class="apiFooter">
50
+
51
+ <table cellpadding="0" cellspacing="0" border="0" width="100%">
52
+
53
+ <tr>
54
+
55
+ <td>
56
+
57
+ <table class="apiInnerFooter" cellpadding="0" cellspacing="0" border="0">
58
+
59
+ <tr>
60
+
61
+ <td>
62
+
63
+ <h1>TIPS API SUPPORT</h1>
64
+
65
+ <p>
66
+
67
+ <span class="apiValue">Telefon: 815 21 125 - tastevalg 2</span><br>
68
+
69
+ <span class="apiValue">SMS: SUPTIPS til 2005</span><br>
70
+
71
+ <span class="apiValue">E-post <a onclick="api.core.decodemailto(this);" rel="nofollow"
72
+ href="mailto:support[at]api[dot]no">support@api.no</a></span><br>
73
+
74
+ </p>
75
+
76
+ </td>
77
+
78
+ <td>
79
+
80
+ <h1>KONTAKT API</h1>
81
+
82
+ <p>
83
+
84
+ <span class="apiValue">A-Pressen Interaktiv</span><br>
85
+
86
+ <span class="apiValue">Urtegata 9, 0134 Oslo</span><br>
87
+
88
+ <span class="apiValue">Tlf sentralbord: 21 00 60 00</span><br>
89
+
90
+ <span class="apiValue">E-post <a onclick="api.core.decodemailto(this);" rel="nofollow"
91
+ href="mailto:api[at]api[dot]no">api@api.no</a></span><br>
92
+
93
+ </p>
94
+
95
+ </td>
96
+
97
+ <td>
98
+
99
+ <h1>ANNONSER</h1>
100
+
101
+ <p>
102
+
103
+ <span class="apiValue">Telefon: 815 21 125 - tastevalg 1</span><br>
104
+
105
+ <span class="apiValue">E-post <a onclick="api.core.decodemailto(this);" rel="nofollow"
106
+ href="mailto:annonser[at]apms[dot]no">annonser@apms.no</a></span><br>
107
+
108
+ </p>
109
+
110
+ </td>
111
+
112
+ <td>
113
+
114
+ <h1>ANSVARLIGE</h1>
115
+
116
+ <p>
117
+
118
+ <span class="apiValue">Thor Henrik Nordvik</span><br>
119
+
120
+ <span class="apiValue">Lars Thorsen</span><br>
121
+
122
+ <span class="apiValue">Anett Østmoe</span><br>
123
+
124
+ <span class="apiValue">Kristine H. Svensen</span><br>
125
+
126
+ </p>
127
+
128
+ </td>
129
+
130
+ </tr>
131
+
132
+ </table>
133
+
134
+ </td>
135
+
136
+ <td class="apiRedans apiNoBorder">
137
+
138
+ <a href="http://www.nored.no/Redaktoeransvar/Redaktoerplakaten" title="Redaktøransvar"><img
139
+ src="http://r.api.no/componada/resources/web/gfx/redaktor_segl.jpg" alt="Redaktøransvar"></a>
140
+
141
+ </td>
142
+
143
+ </tr>
144
+
145
+ </table>
146
+
147
+ </div>
148
+
149
+ <div class="apiCopyright">
150
+
151
+ <div class="editorFooterimage">
152
+
153
+ <a href="http://www.nored.no/Redaktoeransvar/Redaktoerplakaten" title="Redaktøransvar"><img
154
+ src="http://r.api.no/componada/resources/web/gfx/redaktor_segl.jpg" alt="Redaktøransvar"></a>
155
+
156
+ </div>
157
+
158
+ Innholdet i utskriften er vernet etter åndsverklovens regler.<br> Utskriften
159
+ er kun til privat bruk og kan ikke benyttes på annen måte.<br> Kopiering eller
160
+ spredning av innholdet krever avtale med rettighetshaver eller Kopinor. </div>
161
+
162
+ <!--
163
+
164
+ Cache-Control: max-age=86400, groups=/componada-dold, /relax-blixt, /pub2463514,
165
+ /dashboard, /com-global-footer, /sec39827, /art4205127
166
+
167
+ X-Trace-App: [componada ; dold.api.kunder.linpro.no ; Tue Apr 10 17:13:35
168
+ CEST 2012]
169
+
170
+ X-Trace-App: [relax ; blixt.api.kunder.linpro.no ; Tue Apr 10 17:13:35 CEST
171
+ 2012]
172
+
173
+ -->
174
+
175
+ '
176
+ http_version:
177
+ recorded_at: Wed, 11 Apr 2012 07:51:10 GMT
178
+ recorded_with: VCR 2.0.1
@@ -0,0 +1,132 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://www.avisnavn.no/?app=default&element=slimTop&key=automated-test-key&service=designElements&version=4
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ X-Trace-App:
16
+ - ! '[relax ; blixt.api.kunder.linpro.no ; Mon May 07 14:18:09 CEST 2012]'
17
+ - ! '[relax ; knuff.api.kunder.linpro.no ; Mon May 07 14:18:09 CEST 2012]'
18
+ - ! '[seamstress ; textur.api.kunder.linpro.no ; Mon May 07 14:18:09 CEST 2012]'
19
+ X-Ua-Compatible:
20
+ - IE=Edge
21
+ Content-Language:
22
+ - nb-NO-www.avisnavn.no
23
+ Content-Type:
24
+ - text/html; charset=utf-8
25
+ Server:
26
+ - Jetty(6.1.24)
27
+ X-Varnish:
28
+ - 1434938830 1434862634
29
+ - '644849707'
30
+ Via:
31
+ - 1.1 varnish
32
+ - 1.1 varnish
33
+ X-Src-Webcache:
34
+ - regolit.api.kunder.linpro.no textur
35
+ Transfer-Encoding:
36
+ - chunked
37
+ Date:
38
+ - Mon, 07 May 2012 12:20:15 GMT
39
+ Age:
40
+ - '126'
41
+ Connection:
42
+ - keep-alive
43
+ Cache-Control:
44
+ - must-revalidate
45
+ X-Country-Code:
46
+ - 'NO'
47
+ body:
48
+ encoding: US-ASCII
49
+ string: ! '<div id="apiTopMenuWrapper">
50
+
51
+ <div id="apiSlimMenu">
52
+
53
+ <ul>
54
+
55
+ <li class="apiSlimLogo">
56
+
57
+ <a href="http://www.avisnavn.no/"><img src="http://r.api.no/local/v3/publications/www.avisnavn.no/gfx/lav_logo.gif"
58
+ alt=""></a>
59
+
60
+ </li>
61
+
62
+ <li>
63
+
64
+ <a class="active" href="http://www.avisnavn.no/">Forsiden</a>
65
+
66
+ </li>
67
+
68
+ <li>
69
+
70
+ <a href="http://www.avisnavn.no/spaltemaler/">Spaltemaler</a>
71
+
72
+ </li>
73
+
74
+ <li>
75
+
76
+ <a href="http://www.avisnavn.no/nyhet/">Nyhetsartikkel</a>
77
+
78
+ </li>
79
+
80
+ <li>
81
+
82
+ <a href="http://www.avisnavn.no/bilder/">Bilder</a>
83
+
84
+ </li>
85
+
86
+ <li>
87
+
88
+ <a href="http://www.avisnavn.no/video_import/">Video</a>
89
+
90
+ </li>
91
+
92
+ <li>
93
+
94
+ <a href="http://www.avisnavn.no/rss/">RSS</a>
95
+
96
+ </li>
97
+
98
+ <li>
99
+
100
+ <a href="http://www.avisnavn.no/anb_stoff/">ANB</a>
101
+
102
+ </li>
103
+
104
+ <li>
105
+
106
+ <a href="http://www.avisnavn.no/magasin/">Magasin</a>
107
+
108
+ </li>
109
+
110
+ </ul>
111
+
112
+ </div>
113
+
114
+ </div>
115
+
116
+ <!--
117
+
118
+ Cache-Control: max-age=35915, groups=/componada-bravur, /relax-blixt, /pub2463514,
119
+ /menu2463514, /menus, /ece_frontpage, /com-navigation-menu_slimtop, /sec39688
120
+
121
+ X-Trace-App: [componada ; bravur.api.kunder.linpro.no ; Mon May 07 14:18:09
122
+ CEST 2012]
123
+
124
+ X-Trace-App: [relax ; blixt.api.kunder.linpro.no ; Mon May 07 14:01:24 CEST
125
+ 2012]
126
+
127
+ -->
128
+
129
+ '
130
+ http_version:
131
+ recorded_at: Mon, 07 May 2012 12:20:14 GMT
132
+ recorded_with: VCR 2.0.1
@@ -0,0 +1,43 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://origo.no/-/api/v2/credential/find?api_key=49rgnfu9tdtovs1bn2k9xbdq141thogpjbll3bn460d559gk0o&include_organization=true&user_id=4111
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: !binary |-
14
+ T0s=
15
+ headers:
16
+ !binary "Q2FjaGUtQ29udHJvbA==":
17
+ - !binary |-
18
+ cHJpdmF0ZSwgbWF4LWFnZT0wLCBtdXN0LXJldmFsaWRhdGU=
19
+ !binary "WC1SdW50aW1l":
20
+ - !binary |-
21
+ MjI=
22
+ !binary "Q29udGVudC1UeXBl":
23
+ - !binary |-
24
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
25
+ !binary "Q29udGVudC1MZW5ndGg=":
26
+ - !binary |-
27
+ MTk3
28
+ !binary "RXRhZw==":
29
+ - !binary |-
30
+ IjExMjkzZTRiMGE4NzgyOTNmOGFkZTZmNjM0YzMwYjNjIg==
31
+ !binary "Q29ubmVjdGlvbg==":
32
+ - !binary |-
33
+ Y2xvc2U=
34
+ !binary "U2VydmVy":
35
+ - !binary |-
36
+ dGhpbiAxLjIuMTEgY29kZW5hbWUgQmF0LVNoaXQgQ3Jhenk=
37
+ body:
38
+ encoding: UTF-8
39
+ string: ! '[{"authorized":true,"role":"Redaktør","organization":{"tags":[],"municipalities":[],"id":95,"title":"Østlands-Posten
40
+ AS"},"privileged":true,"id":25878,"processed_at":"2010-08-28T09:35:54+02:00"}]'
41
+ http_version:
42
+ recorded_at: Tue, 14 Aug 2012 09:25:39 GMT
43
+ recorded_with: VCR 2.2.2
@@ -0,0 +1,56 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://origo.no/-/api/v2/credential/find?api_key=49rgnfu9tdtovs1bn2k9xbdq141thogpjbll3bn460d559gk0o&include_organization=true&user_id=1034291
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: !binary |-
14
+ T0s=
15
+ headers:
16
+ !binary "Q29udGVudC1UeXBl":
17
+ - !binary |-
18
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
19
+ !binary "WC1SdW50aW1l":
20
+ - !binary |-
21
+ MjQ=
22
+ !binary "Q29udGVudC1MZW5ndGg=":
23
+ - !binary |-
24
+ NjA5
25
+ !binary "Q2FjaGUtQ29udHJvbA==":
26
+ - !binary |-
27
+ cHJpdmF0ZSwgbWF4LWFnZT0wLCBtdXN0LXJldmFsaWRhdGU=
28
+ !binary "RXRhZw==":
29
+ - !binary |-
30
+ ImNiODY1OGM0NGUwYzIzZTAxZjcwY2VlNjMzMzVlYmE2Ig==
31
+ !binary "Q29ubmVjdGlvbg==":
32
+ - !binary |-
33
+ Y2xvc2U=
34
+ !binary "U2VydmVy":
35
+ - !binary |-
36
+ dGhpbiAxLjIuMTEgY29kZW5hbWUgQmF0LVNoaXQgQ3Jhenk=
37
+ body:
38
+ encoding: ASCII-8BIT
39
+ string: !binary |-
40
+ W3sib3JnYW5pemF0aW9uIjp7Im11bmljaXBhbGl0aWVzIjpbXSwidGFncyI6
41
+ W10sImlkIjoxMjg3MiwidGl0bGUiOiJXZXN0ZXJmYWcifSwicHJvY2Vzc2Vk
42
+ X2F0IjoiMjAxMi0wOC0yMlQwOToxNDo0OCswMjowMCIsImF1dGhvcml6ZWQi
43
+ OnRydWUsImlkIjo3MTIwMiwicHJpdmlsZWdlZCI6ZmFsc2UsInJvbGUiOiJT
44
+ dHVkZW50In0seyJvcmdhbml6YXRpb24iOnsibXVuaWNpcGFsaXRpZXMiOltd
45
+ LCJ0YWdzIjpbXSwiaWQiOjEyODcyLCJ0aXRsZSI6Ildlc3RlcmZhZyJ9LCJw
46
+ cm9jZXNzZWRfYXQiOiIyMDEyLTA3LTAxVDAzOjQwOjQ4KzAyOjAwIiwiYXV0
47
+ aG9yaXplZCI6dHJ1ZSwiaWQiOjcwMTc5LCJwcml2aWxlZ2VkIjpmYWxzZSwi
48
+ cm9sZSI6IlN0dWRlbnQgR3JhZmlzayBEZXNpZ24gLSAyMDEwIn0seyJvcmdh
49
+ bml6YXRpb24iOnsibXVuaWNpcGFsaXRpZXMiOltdLCJ0YWdzIjpbXSwiaWQi
50
+ OjEyODcyLCJ0aXRsZSI6Ildlc3RlcmZhZyJ9LCJwcm9jZXNzZWRfYXQiOiIy
51
+ MDExLTA5LTAxVDIwOjIzOjIwKzAyOjAwIiwiYXV0aG9yaXplZCI6dHJ1ZSwi
52
+ aWQiOjU3MDk0LCJwcml2aWxlZ2VkIjpmYWxzZSwicm9sZSI6IlN0dWRlbnQg
53
+ R3JhZmlzayBEZXNpZ24gLSAyMDA5In1d
54
+ http_version:
55
+ recorded_at: Thu, 23 Aug 2012 09:16:41 GMT
56
+ recorded_with: VCR 2.2.3
@@ -0,0 +1,172 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://www.avisnavn.no/?app=default&counterName=PLACEHOLDER&element=traffic&key=automated-test-key&service=designElements&version=4
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ X-Trace-App:
16
+ - ! '[relax ; blixt.api.kunder.linpro.no ; Sat Apr 28 15:14:03 CEST 2012]'
17
+ - ! '[relax ; knuff.api.kunder.linpro.no ; Sat Apr 28 15:14:03 CEST 2012]'
18
+ - ! '[seamstress ; glitter.api.kunder.linpro.no ; Sat Apr 28 15:14:03 CEST 2012]'
19
+ X-Ua-Compatible:
20
+ - IE=Edge
21
+ Content-Language:
22
+ - nb-NO-www.avisnavn.no
23
+ Content-Type:
24
+ - text/html; charset=utf-8
25
+ Server:
26
+ - Jetty(6.1.24)
27
+ X-Varnish:
28
+ - '1596237928'
29
+ - '2243496462'
30
+ Via:
31
+ - 1.1 varnish
32
+ - 1.1 varnish
33
+ X-Src-Webcache:
34
+ - regolit.api.kunder.linpro.no glitter
35
+ Transfer-Encoding:
36
+ - chunked
37
+ Date:
38
+ - Sat, 28 Apr 2012 13:14:03 GMT
39
+ Age:
40
+ - '0'
41
+ Connection:
42
+ - keep-alive
43
+ Cache-Control:
44
+ - must-revalidate
45
+ X-Country-Code:
46
+ - 'NO'
47
+ body:
48
+ encoding: US-ASCII
49
+ string: ! '<!-- PATH: -->
50
+
51
+ <!-- Spring Score : start -->
52
+
53
+ <script type="text/javascript" src="http://r.api.no/local/v3/common/js/spring/spring.js">
54
+ </script>
55
+
56
+ <script type="text/javascript">
57
+
58
+ <!--
59
+
60
+ var api_sp_e02 = {
61
+
62
+ "s":"api",
63
+
64
+ "cp":"API/www.avisnavn.no",
65
+
66
+ "url": "http://www.avisnavn.no/designelement"
67
+
68
+ }
69
+
70
+ spring.c(api_sp_e02);
71
+
72
+ //-->
73
+
74
+ </script>
75
+
76
+ <noscript><img src="http://api.tns-cs.net/j0=,,,;+,cp=API/www.avisnavn.no+url=http%3A%2F%2Fwww.avisnavn.no%2Fdesignelement;;;"
77
+ alt=""></noscript>
78
+
79
+ <!-- Spring Score : end -->
80
+
81
+ <!--
82
+
83
+ Cache-Control: max-age=86400, groups=/componada-dold, /relax-blixt, /pub2463514,
84
+ /ece_frontpage, /com-global-traffic_tns, /sec39688
85
+
86
+ X-Trace-App: [componada ; dold.api.kunder.linpro.no ; Sat Apr 28 15:14:03
87
+ CEST 2012]
88
+
89
+ X-Trace-App: [relax ; blixt.api.kunder.linpro.no ; Sat Apr 28 13:05:37 CEST
90
+ 2012]
91
+
92
+ -->
93
+
94
+ <img src="http://cachetest.api.no/pix.gif" width="1" height="1" alt="">
95
+
96
+ <!--
97
+
98
+ Cache-Control: max-age=86400, groups=/componada-drag, /static, /com-global-traffic_apipix
99
+
100
+ X-Trace-App: [componada ; drag.api.kunder.linpro.no ; Sat Apr 28 07:16:35
101
+ CEST 2012]
102
+
103
+ -->
104
+
105
+ <!-- Begin Sitestat4 code -->
106
+
107
+ <script language="JavaScript1.1" type="text/javascript">
108
+
109
+ <!--
110
+
111
+ function sitestat(u){
112
+
113
+ var d=document,l=d.location;
114
+
115
+ u += "&ns__t="+(new Date().getTime());
116
+
117
+ // Gets the search result total from the search_results component
118
+
119
+ if(typeof ns_searchResults != "undefined")if(ns_searchResults)u += "&amp;ns_search_result="
120
+ + ns_searchResults;
121
+
122
+ ns_pixelUrl = u;
123
+
124
+ u=ns_pixelUrl+"&ns_c="+((d.characterSet)?d.characterSet:d.defaultCharset)+"&ns_ti="+escape(d.title)+"&ns_jspageurl="+escape(l&&l.href?l.href:d.URL)+"&ns_referrer="+escape(d.referrer);
125
+
126
+ (d.images)?new Image().src=u:d.write(''<''+''p><img src="''+u+''" height="1"
127
+ width="1" alt="*"><''+''/p>'');
128
+
129
+ }
130
+
131
+ fullStatUrl = ''http://int.sitestat.com/a-pi/x/s?PLACEHOLDER&amp;category='';
132
+
133
+ sitestat(fullStatUrl);
134
+
135
+ // Used in click in / out scripts.
136
+
137
+ var nedstat_site = ''x'';
138
+
139
+ var nedstat_siteHost = ''http://www.avisnavn.no'';
140
+
141
+ var nedstat_active = ''true'';
142
+
143
+ //-->
144
+
145
+ </script>
146
+
147
+ <noscript>
148
+
149
+ <img src="http://int.sitestat.com/a-pi/x/s?PLACEHOLDER&amp;category=" width="1"
150
+ height="1" alt="">
151
+
152
+ </noscript>
153
+
154
+ <!-- End Sitestat code -->
155
+
156
+ <!--
157
+
158
+ Cache-Control: max-age=86400, groups=/componada-drag, /relax-blixt, /pub2463514,
159
+ /ece_frontpage, /com-global-traffic_nedstat_section, /sec39688
160
+
161
+ X-Trace-App: [componada ; drag.api.kunder.linpro.no ; Sat Apr 28 15:14:03
162
+ CEST 2012]
163
+
164
+ X-Trace-App: [relax ; blixt.api.kunder.linpro.no ; Sat Apr 28 13:05:37 CEST
165
+ 2012]
166
+
167
+ -->
168
+
169
+ '
170
+ http_version:
171
+ recorded_at: Sat, 28 Apr 2012 13:14:05 GMT
172
+ recorded_with: VCR 2.0.1