Ruby no Noite Hoje - Rs on Rails 2011
Upcoming SlideShare
Loading in...5
×
 

Ruby no Noite Hoje - Rs on Rails 2011

on

  • 778 views

Minha apresentação no RS on Rails 2011 sobre a tecnologia por trás do noitehoje.com.br

Minha apresentação no RS on Rails 2011 sobre a tecnologia por trás do noitehoje.com.br

Statistics

Views

Total Views
778
Views on SlideShare
777
Embed Views
1

Actions

Likes
1
Downloads
4
Comments
0

1 Embed 1

http://twitter.com 1

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Ruby no Noite Hoje - Rs on Rails 2011 Ruby no Noite Hoje - Rs on Rails 2011 Presentation Transcript

  • Felipe Lima@felipecsl
  • 1. Introdução
  • O que é?
  • Festas e Shows
  • Multiplataforma
  • Web iOSAndroid
  • Como funciona?
  • Web Crawlers
  • Implementação Genérica
  • class MyCrawler include Crawler event :title, “xpath=/title” event :date, “css=.event .date” venue :name, “xpath=/venue/name” ...end
  • event :evt_type, "xpath=." do |title| title.split(" | ") .first.strip .casecmp(SHOW) == 0 ? :show : :partyend
  • 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
  • Cron
  • Rails?
  • Rails?
  • 2. Arquitetura
  • 3. API
  • RESTFul
  • JSON
  • 1. getEvents2. getEvent3. getCities4. getLocations
  • 4. Ambientes
  • Development Staging Production
  • 5. Dificuldades
  • Eventosduplicados
  • Dadosinconsistentes
  • 6. Futuro
  • Integração Contínua
  • Autenticação viaFacebook, Twitter e Foursquare
  • Open Source clients
  • API pública
  • Separarcomponentesda aplicação
  • noitehoje-api.heroku.comnoitehoje-webapp.heroku.com noitehoje-admin.heroku.com
  • Quer colaborar? :)
  • Perguntas?