ruby no noite hoje - rs on rails 2011
TRANSCRIPT
![Page 1: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/1.jpg)
Felipe Lima@felipecsl
![Page 2: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/2.jpg)
![Page 3: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/3.jpg)
1. Introdução
![Page 4: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/4.jpg)
O que é?
![Page 5: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/5.jpg)
![Page 6: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/6.jpg)
Festas e Shows
![Page 7: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/7.jpg)
Multiplataforma
![Page 8: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/8.jpg)
WebiOS
Android
![Page 9: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/9.jpg)
Como funciona?
![Page 10: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/10.jpg)
Web Crawlers
![Page 11: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/11.jpg)
Implementação Genérica
![Page 12: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/12.jpg)
class MyCrawlerinclude Crawlerevent :title, “xpath=/title”event :date, “css=.event .date”venue :name, “xpath=/venue/name”...
end
![Page 13: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/13.jpg)
event :evt_type, "xpath=." do |title|title.split(" | ").first.strip.casecmp('SHOW') == 0 ? :show : :party
end
![Page 14: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/14.jpg)
with_details_page "xpath=.//a[1]/@href" do event :description, "css=#main-content", :html venue :phone, "css=span.tel .value" venue :image, "xpath=//div[@id='image']/div/img/@src" city :name, "css=span.locality" location :street, "css=span.street" do |street| street.gsub(/\n/, '').gsub(/ /, '') endend
![Page 15: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/15.jpg)
Cron
![Page 16: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/16.jpg)
![Page 17: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/17.jpg)
Rails?
![Page 18: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/18.jpg)
Rails?
![Page 19: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/19.jpg)
![Page 20: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/20.jpg)
![Page 21: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/21.jpg)
![Page 22: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/22.jpg)
2. Arquitetura
![Page 23: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/23.jpg)
![Page 24: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/24.jpg)
3. API
![Page 25: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/25.jpg)
RESTFul
![Page 26: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/26.jpg)
JSON
![Page 27: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/27.jpg)
1. getEvents2. getEvent3. getCities4. getLocations
![Page 28: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/28.jpg)
4. Ambientes
![Page 29: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/29.jpg)
DevelopmentStaging
Production
![Page 30: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/30.jpg)
5. Dificuldades
![Page 31: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/31.jpg)
Eventos duplicados
![Page 32: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/32.jpg)
Dados inconsistentes
![Page 33: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/33.jpg)
6. Futuro
![Page 34: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/34.jpg)
Integração Contínua
![Page 35: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/35.jpg)
Autenticação via Facebook, Twitter e
Foursquare
![Page 36: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/36.jpg)
Open Source clients
![Page 37: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/37.jpg)
API pública
![Page 38: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/38.jpg)
Separar componentesda aplicação
![Page 39: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/39.jpg)
noitehoje-api.heroku.comnoitehoje-webapp.heroku.comnoitehoje-admin.heroku.com
![Page 40: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/40.jpg)
![Page 41: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/41.jpg)
Quer colaborar? :)
![Page 42: Ruby no Noite Hoje - Rs on Rails 2011](https://reader031.vdocuments.us/reader031/viewer/2022030403/54bd18fb4a7959135f8b45f4/html5/thumbnails/42.jpg)
Perguntas?