diff --git a/test/cassettes/4f919df2b197de4933000003.yml b/test/cassettes/4f919df2b197de4933000003.yml new file mode 100644 index 0000000..1ac7217 --- /dev/null +++ b/test/cassettes/4f919df2b197de4933000003.yml @@ -0,0 +1,257 @@ +--- +http_interactions: +- request: + method: get + uri: http://majles.marsad.tn/fr/deputes/4f919df2b197de4933000003 + body: + encoding: US-ASCII + string: '' + headers: + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx/1.10.0 + Date: + - Thu, 27 Apr 2017 13:06:53 GMT + Content-Type: + - text/html; charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Set-Cookie: + - session=eyJfaWQiOnsiIGIiOiJabUZpWkRsbU5EVm1ObU0yT0dZME5EWXhNalF5TW1NMU5EUmtZbU5tTm1NPSJ9fQ.C-N-bQ.3N5FXOuukP45r-4CI1a_Vx1Mpao; + HttpOnly; Path=/ + body: + encoding: ASCII-8BIT + string: !binary |- + PCFET0NUWVBFIGh0bWw+CjxodG1sIHhtbG5zPSJodHRwOi8vd3d3LnczLm9y + Zy8xOTk5L3hodG1sIiB4bWxuczpvZz0iaHR0cDovL29ncC5tZS9ucyMiIGxh + bmc9ImZyIj4KPGhlYWQ+CiAgICAKPHRpdGxlPkhhYmliIEJyaWJlY2ggfCBN + YXJzYWQ8L3RpdGxlPgo8bWV0YSBwcm9wZXJ0eT0ib2c6aW1hZ2UiIGNvbnRl + bnQ9Imh0dHA6Ly93d3cubWFyc2FkLnRuL3VwbG9hZHMvaW1hZ2VzL0hhYmli + X1JlYmljaC5qcGciLz4KCiAgICAKICAgIDxtZXRhIGh0dHAtZXF1aXY9IkNv + bnRlbnQtVHlwZSIgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PVVURi04 + Ij4KICAgIDxtZXRhIHByb3BlcnR5PSJvZzp1cmwiIGNvbnRlbnQ9Imh0dHA6 +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j48L2E+CiAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAg + ICAgICAgIAogICAgICAgICAgICAgICAgPGRpdiBpZD0ibGFuZ3MiIGNsYXNz + PSJmbG9hdCI+CiAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAg + ICA8YSBjbGFzcz0iZmxvYXQgYXJhYmUiIGhyZWY9Ii9kZXB1dGVzLzRmOTE5 + ZGYyYjE5N2RlNDkzMzAwMDAwMyI+PC9hPgogICAgICAgICAgICAgICAgICAg + IDxzcGFuIGNsYXNzPSJmbG9hdCBmcmFuY2FpcyI+PC9zcGFuPgogICAgICAg + ICAgICAgICAgCiAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAg + PC9kaXY+CgogICAgICAgICAgICA8Zm9ybSBjbGFzcz0iZmxvYXRpIiBzdHls + ZT0ibWFyZ2luOjE1cHggMTcwcHggMCIgbWV0aG9kPSJHRVQiIGFjdGlvbj0i + L2ZyL3NlYXJjaCI+CiAgICAgICAgICAgICAgICA8aW5wdXQgaWQ9InJlY2hl + cmNoZSIgdHlwZT0idGV4dCIgbmFtZT0icSIgcGxhY2Vob2xkZXI9IlJlY2hl + cmNoZSIgYXV0b2NvbXBsZXRlPSJvZmYiPgogICAgICAgICAgICA8L2Zvcm0+ + CiAgICAgICAgPC9kaXY+CgogICAgICAgIDxkaXYgY2xhc3M9IndyYXBwZXIi + PgogICAgICAgIDxkaXYgaWQ9Im1lbnUiIGNsYXNzPSJkZXB1dGUiPgogICAg + ICAgICAgICA8YSBocmVmPSIvZnIvYW5jIiBjbGFzcz0iZmxvYXQgbWVudS1o + b21lIj5BY2N1ZWlsPC9hPgogICAgICAgICAgICA8YSBocmVmPSIvZnIvYXNz + ZW1ibGVlIiBjbGFzcz0iZmxvYXQgbWVudS1hc3NlbWJsZWUiPkFzc2VtYmzD + qWU8L2E+CiAgICAgICAgICAgIDxhIGhyZWY9Ii9mci9jb25zdGl0dXRpb24i + IGNsYXNzPSJmbG9hd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gICAgICAg + ICAgICA8YSBocmVmPSIvZnIvY29uc3RpdHV0aW9uIj5Db25zdGl0dXRpb248 + L2E+CiAgICAgICAgICAgICAgICAgICAgPGEgaHJlZj0iL2ZyL3ZvdGVzIj5W + b3RlczwvYT4KICAgICAgICAgICAgICAgICAgICA8YSBocmVmPSIvZnIvcXVl + c3Rpb25zIj5RdWVzdGlvbnM8L2E+CiAgICAgICAgICAgICAgICAgICAgPGEg + aHJlZj0iL2ZyL2RvY3MiPkRvY3VtZW50czwvYT4KICAgICAgICAgICAgICAg + ICAgICA8YSBocmVmPSIvZnIvYWdlbmRhIj5BZ2VuZGE8L2E+CiAgICAgICAg + ICAgICAgICAgICAgPGEgaHJlZj0iL2ZyL2Nocm9uaXF1ZXMiPkNocm9uaXF1 + ZXM8L2E+CiAgICAgICAgICAgICAgICA8L2Rpdj4KICAgICAgICAgICAgPC9k + aXY+CgogICAgICAgICAgICA8ZGl2IGNsYXNzPSJmbG9hdCBmb290ZXItY29s + dW1uIGxlZnQtNTAiPgogICAgICAgICAgICAgICAgPHN0cm9uZz5QYWdlcyBz + cMOpY2lhbGVzPC9zdHJvbmc+CiAgICAgICAgICAgICAgICAKICAgICAgICAg + ICAgICAgIAogICAgICAgICAgICAgICAgPGEgaHJlZj0iL2ZyL2xvaV9hbnRp + dGVycm9yaXN0ZS9pbmRleCI+CiAgICAgICAgICAgICAgICAKICAgICAgICAg + ICAgICAgIExvaSByZWxhdGl2ZSDDoCBsYSBsdXR0ZSBjb250cmUgbGUgdGVy + cm9yaXNtZSBldCBsYSByw6lwcmVzc2lvbiBkdSBibGFuY2hpbWVudCBk4oCZ + YXJnZW50PC9hPgogICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAK + ICAgICAgICAgICAgICAgIDxhIGhyZWY9Ii9mci9sZmNfMjAxNC9pbmRleCI+ + CiAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgIExvaSBkZSBGaW5h + bmNlcyBDb21wbMOpbWVudGFpcmUgcG91ciBsJiMzOTthbm7DqWUgMjAxNDwv + YT4KICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgCiAgICAgICAg + ICAgICAgICA8YSBocmVmPSIvZnIvaW5zdGFuY2VfY29udHJvbGVfY29uc3Rp + dHV0aW9ubmVsL2luZGV4Ij4KICAgICAgICAgICAgICAgIAogICAgICAgICAg + ICAgICAgSW5zdGFuY2UgUHJvdmlzb2lyZSBkZSBDb250csO0bGUgZGUgbGEg + Q29uc3RpdHV0aW9ubmFsaXTDqSBkZXMgUHJvamV0cyBkZSBMb2k8L2E+CiAg + ICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgIAogICAgICAgICAgICAg + ICAgPGEgaHJlZj0iL2ZyL3NpbXVsYXRpb25fbW9kZXNfc2NydXRpbiI+CiAg + ICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgIFNpbXVsYXRpb24gZGUg + bW9kZXMgZGUgc2NydXRpbjwvYT4KICAgICAgICAgICAgICAgIAogICAgICAg + ICAgICAgICAgCiAgICAgICAgICAgICAgICA8YSBocmVmPSIvZnIvbG9pX2Vs + ZWN0b3JhbGUvaW5kZXgiPgogICAgICAgICAgICAgICAgCiAgICAgICAgICAg + ICAgICBMb2kgw6lsZWN0b3JhbGU8L2E+CiAgICAgICAgICAgICAgICAKICAg + ICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgPGEgaHJlZj0iL2ZyL21l + cmNhdG8iPgogICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICBNZXJj + YXRvIGRlcyBwYXJ0aXMgZGUgbCYjMzk7QU5DPC9hPgogICAgICAgICAgICAg + ICAgCiAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgIDxhIGhyZWY9 + Ii9mci9idWRnZXQvMjAxNCI+CiAgICAgICAgICAgICAgICAKICAgICAgICAg + ICAgICAgIEJ1ZGdldCBkZSBsJiMzOTvDqXRhdCAyMDE0PC9hPgogICAgICAg + ICAgICAgICAgCiAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgIDxh + IGhyZWY9Ii9mci9pc2llL2luZGV4Ij4KICAgICAgICAgICAgICAgIAogICAg + ICAgICAgICAgICAgTCYjMzk7SW5zdGFuY2UgU3Vww6lyaWV1cmUgSW5kw6lw + ZW5kYW50ZSBwb3VyIGxlcyDDiWxlY3Rpb25zPC9hPgogICAgICAgICAgICAg + ICAgCiAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgIDxhIGhyZWY9 + Ii9mci8xYW4vaW5kZXgiPgogICAgICAgICAgICAgICAgCiAgICAgICAgICAg + ICAgICAxIGFuIMOgIGwmIzM5O2Fzc2VtYmzDqWUgbmF0aW9uYWxlIGNvbnN0 + aXR1YW50ZTwvYT4KICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAg + CiAgICAgICAgICAgICAgICA8YSBocmVmPSIvZnIvYnVkZ2V0LzIwMTMiPgog + ICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICBCdWRnZXQgZGUgbCYj + Mzk7w6l0YXQgMjAxMzwvYT4KICAgICAgICAgICAgICAgIAogICAgICAgICAg + ICA8L2Rpdj4KCiAgICAgICAgICAgIDxhIGhyZWY9Imh0dHA6Ly93d3cuYWxi + YXdzYWxhLmNvbSIgY2xhc3M9ImZsb2F0aSIgdGFyZ2V0PSJfYmxhbmsiPgog + ICAgICAgICAgICAgICAgPGltZyBzcmM9Ii9zdGF0aWMvaW1hZ2VzL2xvZ29f + YWxiYXdzYWxhLnBuZyIvPgogICAgICAgICAgICA8L2E+CiAgICAgICAgPC9k + aXY+CiAgICAgICAgPC9kaXY+CgogICAgPC9kaXY+Cgo8L2JvZHk+CjwvaHRt + bD4= + http_version: + recorded_at: Thu, 27 Apr 2017 14:06:10 GMT +recorded_with: VCR 3.0.3 diff --git a/test/data/4f919df2b197de4933000003.yml b/test/data/4f919df2b197de4933000003.yml new file mode 100644 index 0000000..ac52ad1 --- /dev/null +++ b/test/data/4f919df2b197de4933000003.yml @@ -0,0 +1,14 @@ +--- +:class: MemberLink +:url: http://majles.marsad.tn/fr/deputes/4f919df2b197de4933000003 +# TODO: Ensure all available data is captured (issue: #1) +:to_h: + :id: + :name: + :image: http://majles.marsad.tn/fr/deputes/4f919df2b197de4933000003 + :partylist: + :faction: + :faction_id: + :area: + :gender: + :source: