toolset of beansmile

Post on 08-May-2015

688 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

tools/solutions used in Beansmile

TRANSCRIPT

Toolset of Beansmilethings we’d love to share

beansmile.com

Thursday, September 22, 11

Talk about• API framework: Grape

• SMS & Call solution: Twillio

• Chart: HighCharts

• i18n: routing-filter

• Testing: show_me_the_cookies

• PDF: wicked_pdf

Thursday, September 22, 11

Grape• A Ruby framework for rapid API

development with great conventions.

• gem 'grape'https://github.com/intridea/grape

• api doc: http://rubydoc.info/gems/grape/0.1.5/frames

• feature:- simple, easy reading, easy coding- one version one file

Thursday, September 22, 11

Demoroutes

before filter

Thursday, September 22, 11

Twilio• Twilio provides infrastructure APIs for

businesses to build scalable, reliable voice and text messaging apps.http://www.twilio.com/

• gem 'twilio-ruby'

A Ruby gem for communicating with the Twilio API and generating TwiMLhttps://github.com/twilio/twilio-ruby

• api doc: http://www.twilio.com/docs

Thursday, September 22, 11

Demo

Thursday, September 22, 11

Demonotifications#deliver

deliver.xml.builder

Thursday, September 22, 11

Highcharts• Highcharts is a charting library written in

pure JavaScript, offering intuitive, interactive charts to your web site or web application. Highcharts currently supports line, spline, area, areaspline, column, bar, pie and scatter chart types.

• homepage: http://www.highcharts.com/

• railscasts: http://railscasts.com/episodes/223-charts

• Free for Non-commercialThursday, September 22, 11

Demo

more demos: http://www.highcharts.com/demo

Thursday, September 22, 11

DemoUpdate chart with Ajax

Thursday, September 22, 11

routing-filter

• routing-filter wraps around the complex beast that the Rails routing system is, allowing for unseen flexibility and power in Rails URL recognition and generation.

• gem 'routing-filter'

• source: https://github.com/svenfuchs/routing-filter

Thursday, September 22, 11

Demo

Thursday, September 22, 11

show_me_the_cookies

• Cookie manipulation for Capybara (view, delete, …)

• gem 'show_me_the_cookies'

• https://github.com/nruth/show_me_the_cookies

• Example usage

Thursday, September 22, 11

DemoRSpec demo

Thursday, September 22, 11

cucumber demo

key steps

Thursday, September 22, 11

wicked_pdf

• PDF generator (from HTML) plugin for Ruby on Railshttps://github.com/mileszs/wicked_pdf

• require 'wkhtmltopdf' : http://code.google.com/p/wkhtmltopdf/

• gem 'wicked_pdf'

Thursday, September 22, 11

DemoBase usage

Thursday, September 22, 11

DemoSend email

Thursday, September 22, 11

Quenstions?

Thursday, September 22, 11

top related