eventify 1.2.0 → 1.2.1

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: 8abdc4c8618df80a6520f297a5b780f364b7a4bc
4
- data.tar.gz: 9e454d453ec230e749f9c55bf282e2e0d3bb47b2
3
+ metadata.gz: 819663f5ded527ed7b8bb6be0612019a16043a29
4
+ data.tar.gz: 48830bde0cd6dba3a4a97467d16495c33effe64b
5
5
  SHA512:
6
- metadata.gz: 9d100ba91cd7eeab9630ea20e5441aaad095bf29df3af9f88c7146ba28eccae1b50d0aa5edbcf821fbc794963dde6a2e010233887d8b2cc3bc5f1793b67cfde9
7
- data.tar.gz: 5df5e24612f40b8c496634f7340337fc9f9215ad5ad815febe27a1e7037341fc82b5d0ea48a3331f630f7b85e80a9dee526429c865684cf6acfb28799055bd23
6
+ metadata.gz: 697ddd964a222f88fb9d6a49a21e3381698ea8673b92c2c5c31f30898cd696b6725d6b5ed4146e68801eee44730c2fbccc0d42c1749785e3e85a6411a2fcd69a
7
+ data.tar.gz: f628fd5e99711ea2009acee5a4d0eb9303ce0f003ec0621d0659f212bc23adb6ec835f4e6196cb51ed7cf421d6a5b1cf6e1c3dcd1c9f5f2ad179138cee47e566
data/eventify.gemspec CHANGED
@@ -22,6 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.add_dependency "nokogiri"
23
23
  spec.add_dependency "sqlite3"
24
24
  spec.add_dependency "mail"
25
+ spec.add_dependency "faraday"
25
26
 
26
27
  spec.add_development_dependency "bundler", "~> 1.3"
27
28
  spec.add_development_dependency "rake"
@@ -1,29 +1,16 @@
1
- require "simple-rss"
2
- require "open-uri"
1
+ require "faraday"
2
+ require "json"
3
3
 
4
4
  module Eventify::Provider
5
5
  class Piletilevi < Base
6
- # http://www.piletilevi.ee/est/uldinfo/rss
7
- URLS = [
8
- "http://www.piletilevi.ee/news.rss.php?path=est/uudised",
9
- "http://www.piletilevi.ee/news.rss.php?path=est/teatriuudised",
10
- "http://www.piletilevi.ee/news.rss.php?path=est/muudatused",
11
- "http://www.piletilevi.ee/category.rss.php?path=est/piletid/muusika",
12
- # 404?
13
- #"http://www.piletilevi.ee/category.rss.php?path=est/piletid/teater_-_kunst",
14
- "http://www.piletilevi.ee/category.rss.php?path=est/piletid/kogupere",
15
- "http://www.piletilevi.ee/category.rss.php?path=est/piletid/sport",
16
- "http://www.piletilevi.ee/category.rss.php?path=est/piletid/festival",
17
- "http://www.piletilevi.ee/category.rss.php?path=est/piletid/film",
18
- "http://www.piletilevi.ee/category.rss.php?path=est/piletid/kinkekaardid",
19
- "http://www.piletilevi.ee/category.rss.php?path=est/piletid/varia"
20
- ]
6
+ URL = URI.parse("http://www.piletilevi.ee/ajaxCaller/method:getConcertsList/start:0/limit:500/id:58103/type:any/")
21
7
 
22
8
  class << self
23
9
  def fetch
24
- URLS.each.reduce([]) do |memo, url|
25
- rss = SimpleRSS.parse open(url)
26
- memo + rss.entries.map { |entry| new id: entry.guid, title: entry.title, link: entry.link, date: entry.pubDate }
10
+ json = JSON.parse(Faraday.new(url: "#{URL.scheme}://#{URL.host}").get(URL.path).body) rescue {}
11
+ entries = json["responseData"] && json["responseData"]["concert"] || []
12
+ entries.map do |entry|
13
+ new id: entry["id"], title: entry["title"], link: entry["link"], date: Time.at(entry["modifiedTimeStamp"].to_i)
27
14
  end
28
15
  end
29
16
  end
@@ -1,3 +1,3 @@
1
1
  class Eventify
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
@@ -3,34 +3,44 @@ require "spec_helper"
3
3
  describe Eventify::Provider::Piletilevi do
4
4
  context "#fetch" do
5
5
  it "fetches events" do
6
- stub_request(:get, Eventify::Provider::Piletilevi::URLS[0]).to_return(body: File.read(File.expand_path("../../support/piletilevi-music.xml", __dir__)))
7
- stub_request(:get, Eventify::Provider::Piletilevi::URLS[1]).to_return(body: File.read(File.expand_path("../../support/piletilevi-news.xml", __dir__)))
8
-
9
- Eventify::Provider::Piletilevi::URLS[2..-1].each do |url|
10
- stub_request(:get, url).to_return(body: File.read(File.expand_path("../../support/piletilevi-empty.xml", __dir__)))
11
- end
6
+ stub_request(:get, Eventify::Provider::Piletilevi::URL.to_s).to_return(body: File.read(File.expand_path("../../support/piletilevi.json", __dir__)))
12
7
 
13
8
  events = Eventify::Provider::Piletilevi.fetch
14
9
  events.should == [
15
10
  Eventify::Provider::Piletilevi.new(
16
- title: "Koit Toome ja Karl-Erik Taukar 17.01.2014 - 21:00 - Rock Cafe, Tallinn, Eesti",
17
- link: "http://www.piletilevi.ee/est/piletid/muusika/rock_ja_pop/?concert=138090",
18
- date: Time.parse("2013-12-27 12:30:11"),
19
- id: "86362"
11
+ title: "Deemonid",
12
+ link: "http://www.piletilevi.ee/est/piletid/teater/muu/deemonid-146082/",
13
+ date: Time.at(1399661703),
14
+ id: "146082"
20
15
  ),
21
16
  Eventify::Provider::Piletilevi.new(
22
- title: "Ott Lepland 04.01.2014 - 21:00 - Rock Cafe, Tallinn, Eesti",
23
- link: "http://www.piletilevi.ee/est/piletid/muusika/show/?concert=138050",
24
- date: Time.parse("2013-12-27 11:16:14"),
25
- id: "86359"
17
+ title: "Naeru Akadeemia",
18
+ link: "http://www.piletilevi.ee/est/piletid/teater/muu/naeru-akadeemia-146075/",
19
+ date: Time.at(1399659968),
20
+ id: "146075"
26
21
  ),
27
22
  Eventify::Provider::Piletilevi.new(
28
- title: "Homme startiva Green Christmasi ajakava on paigas",
29
- link: "http://www.piletilevi.ee/est/uudised/homme-startiva-green-christmasi-ajakava-on-paigas",
30
- date: Time.parse("Fri, 27 Dec 13 00:00:00 +0200"),
31
- id: "61041"
23
+ title: "Utoopia rannik. III osa. Kaldale heidetud.",
24
+ link: "http://www.piletilevi.ee/est/piletid/teater/muu/utoopia-rannik-iii-osa-kaldale-heidetud-146055/",
25
+ date: Time.at(1399657875),
26
+ id: "146055"
32
27
  )
33
28
  ]
34
29
  end
30
+
31
+ it "works without concerts" do
32
+ stub_request(:get, Eventify::Provider::Piletilevi::URL.to_s).to_return(body: %q|{"responseData": {}}|)
33
+ Eventify::Provider::Piletilevi.fetch.should == []
34
+ end
35
+
36
+ it "works without response data" do
37
+ stub_request(:get, Eventify::Provider::Piletilevi::URL.to_s).to_return(body: %q|{"foo": {}}|)
38
+ Eventify::Provider::Piletilevi.fetch.should == []
39
+ end
40
+
41
+ it "works without json response" do
42
+ stub_request(:get, Eventify::Provider::Piletilevi::URL.to_s).to_return(body: %q|foo|)
43
+ Eventify::Provider::Piletilevi.fetch.should == []
44
+ end
35
45
  end
36
46
  end
@@ -0,0 +1 @@
1
+ {"responseData":{"limit":"3","concert":[{"id":"146082","systemId":"89824","modifiedTimeStamp":"1399661703","title":"Deemonid","showId":"33588","link":"http:\/\/www.piletilevi.ee\/est\/piletid\/teater\/muu\/deemonid-146082\/","url":"http:\/\/www.piletilevi.ee\/est\/piletid\/teater\/muu\/deemonid-146082\/","shopUrl":"http:\/\/shop.piletilevi.ee\/public\/?concert=146082&design=piletilevi&lang=est&center=7","shopAppUrl":"http:\/\/shop.piletilevi.ee\/public\/app\/?concert=146082&design=piletilevi&lang=est&center=7","mobileUrl":"http:\/\/m.piletilevi.ee\/est\/#view=concert&concert=146082","trackingUrl":"http:\/\/www.piletilevi.ee\/est\/piletid\/\/?concert=146082","description":"Suhetelugu paarist, kellel on raske olla koos, aga sama v&otilde;imatu olla ka lahus.<br \/>\n<br \/>\nLars Nor&eacute;n<br \/>\n<strong>DEEMONID<\/strong><br \/>\nDraama kahes vaatuses<br \/>\n<br \/>\n<strong>T&otilde;lge rootsi keelest <\/strong>&Uuml;lev Aaloe<br \/>\n<strong>Lavastaja <\/strong>Andres Noormets<br \/>\n<strong>Kunstnik<\/strong> Maarja Meeru<br \/>\n<strong>Muusikaline kujundaja<\/strong> Andres Noormets<br \/>\n<strong>Valguskunstnik<\/strong> Imbi M&auml;lk<br \/>\n<br \/>\n<strong>Osades<\/strong>: Marika Baraban&scaron;t&scaron;ikova, Piret Laurimaa, Margus Jaanovits, Sten Karpov<br \/>\n<br \/>\n&quot;Deemonid&quot; on ehe ja t&auml;nap&auml;evane draama, kus oma suhtes keerukasse etappi j&otilde;udnud Frank ja Katarina kutsuvad hetkeimpulsi ajel k&uuml;lla samas majas elava abielupaari, keda nad eriti ei tunnegi. &Otilde;htu Jenna ja Thomasega algab meeldivalt, ent l&otilde;peb t&auml;ieliku krahhiga. K&uuml;llakutsujate omavahelistes suhetes valitsevad deemonid tulevad p&auml;evavalgele, v&otilde;tavad v&otilde;imust ja viivad s&otilde;braliku naabripere hapra pereid&uuml;lli purunemise &auml;&auml;rele.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br \/>\n<br \/>\n&quot;Deemoneid&quot; on &uuml;lesehituse ja meeleolude t&otilde;ttu sageli v&otilde;rreldud Edward Albee kuulsa n&auml;idendiga &quot;Kes kardab Virginia Woolfi?&quot; ning kindlasti mitte asjatult, sest pinget, ootamatuid p&ouml;&ouml;rdeid ja valusalt vaimukat dialoogi on selles loos k&uuml;llaga.<br \/>\n<br \/>\nEsietendus 19. septembril 2014 Vanemuise v&auml;ikeses majas.<br \/>\n<br \/>\nSooduspilet pension&auml;ridele, &otilde;pilastele, ISIC- ja ITIC-kaardi omanikele.<br \/>\nSoodustust t&otilde;endav dokument peab olema etendusel kaasas.<br \/>\nOstetud pileteid ei vahetata ega osteta tagasi!<br \/>\n<strong>T&auml;helepanu!<\/strong> V&auml;ikeses majas k&uuml;lgr&otilde;du 2.-4. rida on piiratud n&auml;htavusega!","startTime":{"stamp":"1411142400","date":"19","month":"09","weekDay":4,"time":"19:00","year":"2014","shortDate":"R \/ 19.09.2014"},"endTime":{"stamp":"1411142400","date":"19","month":"09","weekDay":4,"time":"19:00","year":"2014","shortDate":"R \/ 19.09.2014"},"salesTime":{"stamp":1399532400,"date":"08","month":"05","weekDay":3,"time":"10:00","year":"2014"},"deliveryTypes":["zebra","person","mail"],"prices":"13.00 - 19.00","availableInApp":true,"salesStatus":"active","image":"","imageUrl":"http:\/\/www.piletilevi.ee\/images\/show_default.jpg","shortImageUrl":"http:\/\/www.piletilevi.ee\/image\/type\/concertShort\/ID\/\/","originalImageUrl":"","audio":"","video":"","videoUrl":"","venueId":"820","venueTitle":"Teater Vanemuine, v\u00e4ike maja, Tartu","searchText":null,"specialStatus":"new"},{"id":"146075","systemId":"89816","modifiedTimeStamp":"1399659968","title":"Naeru Akadeemia","showId":"33587","link":"http:\/\/www.piletilevi.ee\/est\/piletid\/teater\/muu\/naeru-akadeemia-146075\/","url":"http:\/\/www.piletilevi.ee\/est\/piletid\/teater\/muu\/naeru-akadeemia-146075\/","shopUrl":"http:\/\/shop.piletilevi.ee\/public\/?concert=146075&design=piletilevi&lang=est&center=7","shopAppUrl":"http:\/\/shop.piletilevi.ee\/public\/app\/?concert=146075&design=piletilevi&lang=est&center=7","mobileUrl":"http:\/\/m.piletilevi.ee\/est\/#view=concert&concert=146075","trackingUrl":"http:\/\/www.piletilevi.ee\/est\/piletid\/\/?concert=146075","description":"Vaimukas v&auml;gikaikavedu n&auml;itekirjaniku ja tsensori vahel. Kas v&otilde;idab vaba vaim v&otilde;i k&auml;sumajandus?<br \/>\n<br \/>\nKoki Mitani<br \/>\n<strong>NAERU AKADEEMIA<\/strong><br \/>\nKom&ouml;&ouml;dia kahes vaatuses<br \/>\n<br \/>\n<strong>T&otilde;lkija<\/strong> Margit Juurikas<br \/>\n<strong>Lavastaja <\/strong>Aare Toikka (VAT teater)<br \/>\n<strong>Kunstnik <\/strong>Iir Hermeliin<br \/>\n<br \/>\n<strong>Osades<\/strong> Hannes Kaljuj&auml;rv ja Riho K&uuml;tsar<br \/>\n<br \/>\nOn 1940. aasta s&uuml;gis Tokyos. Juba 27. septembril kirjutakse Berliinis alla Jaapani-Saksa-Itaalia kolmikpaktile, millega Jaapanist saab Hitleri Saksamaa s&otilde;jaline liitlane. Kuid praegu on veel septembri algus ja teatrihooaeg on algamas.<br \/>\nKom&ouml;&ouml;diakirjanik ja teatritrupi &quot;Naeru Akadeemia&quot; lavastaja on valmis saanud uue n&auml;item&auml;ngu ja tahab selle kiiresti lavale tuua. N&auml;idendi etendamiseks tuleb saada tsensori luba, kuid see on Jaapani kultuuris tavaline rutiin. Paraku pole &auml;sja ametisse astunud tsensoril v&auml;himatki huumorimeelt. Ta n&otilde;uab teksti &uuml;mbertegemist. Siis uut &uuml;mbertegemist, ja siis j&auml;rgmist &uuml;mbertegemist. N&auml;dal aega kestev vaimne v&auml;gikaikavedu peab v&auml;lja selgitama, kas huumor, vaimukus ja vaba vaim suudavad seljatada juhmi k&auml;sumajanduse.<br \/>\n<br \/>\nJaapani kaasaegse kirjaniku Koki Mitani mitmekihiline kahemehelugu on vaatajaid naerutanud &otilde;ige mitmel kontinendil. Tartu lavale seab selle p&ouml;&ouml;raselt vaimuka duelli VAT Teatri kunstiline juht Aare Toikka.<br \/>\n<br \/>\nEsietendus 17. aprillil 2015 Vanemuise v&auml;ikeses majas.<br \/>\n<br \/>\n<br \/>\nSooduspilet pension&auml;ridele, &otilde;pilastele, ISIC- ja ITIC-kaardi omanikele.<br \/>\nSoodustust t&otilde;endav dokument peab olema etendusel kaasas.<br \/>\nOstetud pileteid ei vahetata ega osteta tagasi!<br \/>\n<strong>T&auml;helepanu! <\/strong>V&auml;ikeses majas k&uuml;lgr&otilde;du 2.-4. rida on piiratud n&auml;htavusega!","startTime":{"stamp":"1429286400","date":"17","month":"04","weekDay":4,"time":"19:00","year":"2015","shortDate":"R \/ 17.04.2015"},"endTime":{"stamp":"1429286400","date":"17","month":"04","weekDay":4,"time":"19:00","year":"2015","shortDate":"R \/ 17.04.2015"},"salesTime":{"stamp":1399532400,"date":"08","month":"05","weekDay":3,"time":"10:00","year":"2014"},"deliveryTypes":["zebra","person","mail"],"prices":"13.00 - 19.00","availableInApp":true,"salesStatus":"active","image":"","imageUrl":"http:\/\/www.piletilevi.ee\/images\/show_default.jpg","shortImageUrl":"http:\/\/www.piletilevi.ee\/image\/type\/concertShort\/ID\/\/","originalImageUrl":"","audio":"","video":"","videoUrl":"","venueId":"820","venueTitle":"Teater Vanemuine, v\u00e4ike maja, Tartu","searchText":null,"specialStatus":"new"},{"id":"146055","systemId":"89795","modifiedTimeStamp":"1399657875","title":"Utoopia rannik. III osa. Kaldale heidetud.","showId":"29707","link":"http:\/\/www.piletilevi.ee\/est\/piletid\/teater\/muu\/utoopia-rannik-iii-osa-kaldale-heidetud-146055\/","url":"http:\/\/www.piletilevi.ee\/est\/piletid\/teater\/muu\/utoopia-rannik-iii-osa-kaldale-heidetud-146055\/","shopUrl":"http:\/\/shop.piletilevi.ee\/public\/?concert=146055&design=piletilevi&lang=est&center=7","shopAppUrl":"http:\/\/shop.piletilevi.ee\/public\/app\/?concert=146055&design=piletilevi&lang=est&center=7","mobileUrl":"http:\/\/m.piletilevi.ee\/est\/#view=concert&concert=146055","trackingUrl":"http:\/\/www.piletilevi.ee\/est\/piletid\/\/?concert=146055","description":"<p>\n\tInglise tippkirjaniku intellektuaalne draama 19. sajandi vene revolutsion&auml;&auml;ride p&otilde;lvkonnast.<br \/>\n\t<br \/>\n\tTom Stoppard<br \/>\n\t<strong>Utoopia rannik. III osa. Kaldale heidetud.<\/strong><br \/>\n\t\/The Coast of Utopia. Salvage.\/<br \/>\n\tKolmes vaatuses<br \/>\n\t<br \/>\n\t<strong>T&otilde;lkija<\/strong> Kalle Hein<br \/>\n\t<strong>Lavastaja<\/strong> Heiti Pakk<br \/>\n\t<strong>Lavakunstnik<\/strong> Silver Vahtre<br \/>\n\t<strong>Kost&uuml;&uuml;mikunstnik<\/strong> Maarja Meeru<br \/>\n\t<strong>Muusikaline kujundaja <\/strong>Peeter Konovalov<br \/>\n\t<strong>Liikumisjuht <\/strong>Oleg Titov<br \/>\n\t<strong>Valguskunstnik<\/strong> Rene Liivam&auml;gi<br \/>\n\t<br \/>\n\t<strong>Osades:<\/strong><br \/>\n\t<u>Ugalast: <\/u>Meelis R&auml;mmeld, Arvo Raimo, Peeter J&uuml;rgens, Tarvo Vridolin, Martin Mill, Tanel<br \/>\n\tIngi, Andres Tabun, Margus Vaher, Triinu Meriste, Kiiri Tamm, Janek Vadi, Oleg Titov, Andre K&otilde;iv<br \/>\n\t<u>Vanemuisest:<\/u> K&uuml;lliki Saldre, Marika Baraban&scaron;t&scaron;ikova, Margus Jaanovits, Kais Adlas, Raivo<br \/>\n\tAdlas<br \/>\n\t<u>K&uuml;lalised:<\/u> Indrek Taalmaa (P&auml;rnu Endla), Janek Joost, Artur Linnus, Fatme-Helge Leevald, Sander Rebane, Marta Soro v&otilde;i Iris R&auml;mmeld<br \/>\n\t<br \/>\n\t&Uuml;he s&auml;ravaima n&uuml;&uuml;disaegse draamakirjaniku Tom Stoppardi triloogia &bdquo;Utoopia rannik&quot; kolmas osa &bdquo;Kaldale heidetud&quot; r&auml;&auml;gib 19. sajandil Venemaal tekkinud ning Euroopa revolutsioonide laines kaasa l&ouml;&ouml;nud uue p&otilde;lvkonna,&nbsp; nn. intelligentsi, elust&nbsp; paguluses. 1848. aasta rahvuslike revolutsioonide laine on paisanud need &bdquo;romantilised pagulased&quot; Inglismaale, viimasele vabaduse saarele keset ajaloo tormi. Stoppardi kirgliku poliitilise draama keskmes on vene kirjanik, filosoof ja revolutsion&auml;&auml;r Aleksandr Herzen, kelle pere elab aastatel 1853-1866 Londonis ja Genfis. Herzen kirjutab teiselt kaldalt oma kodumaale ning annab v&auml;lja venekeelset ajalehte Kolokol, p&uuml;&uuml;des sel moel m&otilde;jutada olukorda Venemaal. Tema pagulaskodus kohtuvad Karl Marx, Ivan Turgenev, Mihhail Bakunin, Nikolai T&scaron;ern&otilde;&scaron;evski, Nikolai Ogarjov ja paljud teised tuntud ja v&auml;hem tuntud emigrandid, kelle poliitiline tegevus ja tuleviku&uuml;hiskonna &uuml;le peetavad vaidlused moodustavadki &uuml;he n&auml;idendi telgedest. Teisena on n&auml;idendi keskmes perekond, armastus ja isiklikud suhted, mis on sageli sama keerulised ja idealistlikud nagu soov &uuml;mber korraldada &uuml;mbritsevat maailma ja &uuml;hiskonda. Laval muutuvad nimed ajalooraamatutest elusateks inimesteks, kes &uuml;ksteist &uuml;listavad ja pilkavad, armastavad ja petavad, vihastavad ja r&otilde;&otilde;mustavad, kasvatavad lapsi ja unistavad paremast tulevikust. Elavad oma t&otilde;elisi ja v&auml;ljam&otilde;eldud elusid ajas, mida nad ise kujundavad ja mis neid kujundab.<br \/>\n\t<br \/>\n\tTom Stoppardi triloogia kaks esimest osa &bdquo;Teekond&quot; ja &bdquo;Laevahukk&quot; esietendusid&nbsp; Tallinna Linnateatri ja Eesti Draamateatri koost&ouml;&ouml;s 2013. aasta kevadel. <strong>Kolmas osa &bdquo;Kaldale heidetud&quot; valmis Vanemuise ja Ugala &uuml;hist&ouml;&ouml;na.<\/strong><br \/>\n\t<br \/>\n\tEsietendus 22. novembril 2013 Ugalas ja 28. novembril 2013 Vanemuise v&auml;ikeses majas.<br \/>\n\t<br \/>\n\tSooduspilet pension&auml;ridele, &otilde;pilastele, ISIC- ja ITIC-kaardi omanikele.<br \/>\n\tSoodustust t&otilde;endav dokument peab olema etendusel kaasas.<br \/>\n\tOstetud pileteid ei vahetata ega osteta tagasi!<br \/>\n\t<strong>T&auml;helepanu! <\/strong>V&auml;ikeses majas k&uuml;lgr&otilde;du 2.-4. rida on piiratud n&auml;htavusega!<\/p>\n","startTime":{"stamp":"1412092800","date":"30","month":"09","weekDay":1,"time":"19:00","year":"2014","shortDate":"T \/ 30.09.2014"},"endTime":{"stamp":"1412092800","date":"30","month":"09","weekDay":1,"time":"19:00","year":"2014","shortDate":"T \/ 30.09.2014"},"salesTime":{"stamp":1399100400,"date":"03","month":"05","weekDay":5,"time":"10:00","year":"2014"},"deliveryTypes":["zebra","person","mail"],"prices":"10.40 - 17.00","availableInApp":true,"salesStatus":"active","image":"9de8ae408df71f8c7916e91af7a5197d","imageUrl":"http:\/\/www.piletilevi.ee\/picture_w.php?type=showLeft&ID=9de8ae408df71f8c7916e91af7a5197d","shortImageUrl":"http:\/\/www.piletilevi.ee\/image\/type\/concertShort\/ID\/9de8ae408df71f8c7916e91af7a5197d\/","originalImageUrl":"9de8ae408df71f8c7916e91af7a5197d","audio":"","video":"In3BWfk-mSY","videoUrl":"https:\/\/www.youtube.com\/watch?v=In3BWfk-mSY","venueId":"820","venueTitle":"Teater Vanemuine, v\u00e4ike maja, Tartu","searchText":null,"specialStatus":"new"}],"totalAmount":712,"venue":[{"id":"820","modifiedTimeStamp":"0","title":"Teater Vanemuine, v\u00e4ike maja, Tartu","address":"Vanemuise 45a","city":"Tartu","county":"Tartumaa","region":"L\u00f5una-Eesti","location_country":"Eesti","logoImageUrl":"http:\/\/www.piletilevi.ee\/image\/type\/venueShort\/ID\/174ffd7516cb0dc29265998359d6e6d2\/","externalUrl":"http:\/\/www.vanemuine.ee\/mangukava","url":"","link":"http:\/\/www.piletilevi.ee\/est\/meelelahutus\/saalid\/teater-vanemuine-vaike-maja-tartu\/","map":{"type":"google","embedUrl":"http:\/\/maps.google.com\/maps\/ms?ie=UTF8&hl=en&msa=0&output=embed&ll=58.373616,26.714802&z=15&spn=0.004501,0.00854&msid=201386919712689360250.0004d2eee60e671f8ee26","externalUrl":"http:\/\/maps.google.com\/maps\/ms?ie=UTF8&hl=en&msa=0&source=embed&ll=58.373616,26.714802&z=15&spn=0.004501,0.00854&msid=201386919712689360250.0004d2eee60e671f8ee26","embedCode":"<iframe width=\"200\" height=\"200\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" src=\"http:\/\/maps.google.com\/maps\/ms?ie=UTF8&hl=en&msa=0&output=embed&ll=58.373616,26.714802&z=15&spn=0.004501,0.00854&msid=201386919712689360250.0004d2eee60e671f8ee26\"><\/iframe>"}}]},"responseStatus":"success"}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eventify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jarmo Pertman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-18 00:00:00.000000000 Z
11
+ date: 2014-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simple-rss
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: faraday
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: bundler
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -172,9 +186,7 @@ files:
172
186
  - spec/eventify_spec.rb
173
187
  - spec/spec_helper.rb
174
188
  - spec/support/fbi.html
175
- - spec/support/piletilevi-empty.xml
176
- - spec/support/piletilevi-music.xml
177
- - spec/support/piletilevi-news.xml
189
+ - spec/support/piletilevi.json
178
190
  - spec/support/solaris_kino.html
179
191
  - spec/support/ticketpro.xml
180
192
  homepage: https://github.com/jarmo/eventify
@@ -213,9 +225,7 @@ test_files:
213
225
  - spec/eventify_spec.rb
214
226
  - spec/spec_helper.rb
215
227
  - spec/support/fbi.html
216
- - spec/support/piletilevi-empty.xml
217
- - spec/support/piletilevi-music.xml
218
- - spec/support/piletilevi-news.xml
228
+ - spec/support/piletilevi.json
219
229
  - spec/support/solaris_kino.html
220
230
  - spec/support/ticketpro.xml
221
231
  has_rdoc:
@@ -1,10 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <rss version="2.0">
3
- <channel>
4
- <title>Piletilevi.ee</title>
5
- <link>http://www.piletilevi.ee/</link>
6
- <description>Piletilevi.ee RSS</description>
7
- <language>et</language>
8
- <ttl>60</ttl>
9
- </channel>
10
- </rss>
@@ -1,51 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <rss version="2.0">
3
- <channel>
4
- <title>Piletilevi.ee</title>
5
- <link>http://www.piletilevi.ee/</link>
6
- <description>Piletilevi.ee RSS</description>
7
- <language>et</language>
8
- <ttl>60</ttl>
9
- <item>
10
- <title><![CDATA[Koit Toome ja Karl-Erik Taukar 17.01.2014 - 21:00 - Rock Cafe, Tallinn, Eesti]]></title>
11
- <link>http://www.piletilevi.ee/est/piletid/muusika/rock_ja_pop/?concert=138090</link>
12
- <description><![CDATA[<strong>Esimestele kiirematele pilet hinnaga 6 &euro;!<br />
13
- Edasi piletid hinnaga 8 &euro;</strong><br />
14
- <br />
15
- <strong>Ostmisel valida esmalt odavam hind, kallim hind ei sisalda lisav&auml;&auml;rtusi! </strong><br />
16
- <br />
17
- <strong>Lisainfo:</strong><br />
18
- Kestus 5 h<br />
19
- Sissep&auml;&auml;s al. 21.00<br />
20
- Vanusepiirang&nbsp;al. 12 eluaastast<br />
21
- Ligip&auml;&auml;s ratastooliga puudub.<br />
22
- Tegemist on siseruumides toimuva &uuml;ritusega.<br />
23
- Pildistamine/ filmimine ei ole lubatud!]]></description>
24
- <pubDate>2013-12-27 12:30:11</pubDate>
25
- <guid>86362</guid>
26
- </item>
27
- <item>
28
- <title><![CDATA[Ott Lepland 04.01.2014 - 21:00 - Rock Cafe, Tallinn, Eesti]]></title>
29
- <link>http://www.piletilevi.ee/est/piletid/muusika/show/?concert=138050</link>
30
- <description><![CDATA[<strong>Esimesed piletid hinnaga&nbsp;6 &euro;, edasi&nbsp;8 &euro;<br />
31
- NB! PILETI OSTMISEL VALIDA ESMALT SOODSAM PILETIHIND!</strong><br />
32
- <br />
33
- Rock Cafe kontsertklubi VIP liikmele kliendikaardi esitamisel Piletilevi m&uuml;&uuml;gipunktis pileti hind -20% soodsam!<br />
34
- &Uuml;hele kliendile 1 soodustusega pilet.<br />
35
- <br />
36
- K&otilde;ikidele American Expressi krediitkaardi omanikele soodustus -10%, kuni 4 pileti ostmiseks<br />
37
- Soodustusega pileti ostmiseks kasutage oma isiklikku sooduskoodi!<br />
38
- American Expressi kaardiomaniku kood moodustub j&auml;rgmiselt:<br />
39
- Blue kaart - AB + 5 viimast kaardi numbrit ;<br />
40
- Gold kaart - AG + 5 viimast kaardi numbrit;<br />
41
- Platinum kaart - AP + 5 viimast kaardi numbrit;<br />
42
- <br />
43
- Vanusepiirang 18 a.<br />
44
- Uksed avatakse kell 21:00.<br />
45
- &Uuml;rituse kestus 5 tundi.<br />
46
- Fotoaparaat, kaamera - ei ole lubatud.]]></description>
47
- <pubDate>2013-12-27 11:16:14</pubDate>
48
- <guid>86359</guid>
49
- </item>
50
- </channel>
51
- </rss>
@@ -1,17 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <rss version="2.0">
3
- <channel>
4
- <title>Piletilevi.ee</title>
5
- <link>http://www.piletilevi.ee/</link>
6
- <description>Piletilevi.ee RSS</description>
7
- <language>et</language>
8
- <ttl>60</ttl>
9
- <item>
10
- <title><![CDATA[Homme startiva Green Christmasi ajakava on paigas]]></title>
11
- <link>http://www.piletilevi.ee/est/uudised/homme-startiva-green-christmasi-ajakava-on-paigas</link>
12
- <description><![CDATA[Juba homme algab traditsiooniliselt aasta lõpus toimuv festival Green Christmas. Rakvere Teatrimäel astuvad kahes saalis üles...]]></description>
13
- <pubDate>Fri, 27 Dec 13 00:00:00 +0200</pubDate>
14
- <guid>61041</guid>
15
- </item>
16
- </channel>
17
- </rss>