Toolset of Beansmile
                             things 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
Demo
                                routes



                                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 TwiML
                             https://github.com/twilio/twilio-ruby
                  • api doc: http://www.twilio.com/docs
Thursday, September 22, 11
Demo




Thursday, September 22, 11
Demo
       notifications#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-commercial
Thursday, September 22, 11
Demo




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

Thursday, September 22, 11
Demo
        Update 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
RSpec demo
                             Demo




Thursday, September 22, 11
cucumber demo




       key steps
Thursday, September 22, 11
wicked_pdf

  • PDF generator (from HTML) plugin for Ruby on Rails
          https://github.com/mileszs/wicked_pdf
  • require 'wkhtmltopdf' : http://code.google.com/p/
          wkhtmltopdf/
  • gem 'wicked_pdf'


Thursday, September 22, 11
Demo
                        Base usage




Thursday, September 22, 11
Demo
             Send email




Thursday, September 22, 11
Quenstions?



Thursday, September 22, 11

Toolset of Beansmile

  • 1.
    Toolset of Beansmile things we’d love to share beansmile.com Thursday, September 22, 11
  • 2.
    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
  • 3.
    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
  • 4.
    Demo routes before filter Thursday, September 22, 11
  • 5.
    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 TwiML https://github.com/twilio/twilio-ruby • api doc: http://www.twilio.com/docs Thursday, September 22, 11
  • 6.
  • 7.
    Demo notifications#deliver deliver.xml.builder Thursday, September 22, 11
  • 8.
    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-commercial Thursday, September 22, 11
  • 9.
    Demo more demos: http://www.highcharts.com/demo Thursday, September 22, 11
  • 10.
    Demo Update chart with Ajax Thursday, September 22, 11
  • 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
  • 12.
  • 13.
    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
  • 14.
    RSpec demo Demo Thursday, September 22, 11
  • 15.
    cucumber demo key steps Thursday, September 22, 11
  • 16.
    wicked_pdf •PDF generator (from HTML) plugin for Ruby on Rails https://github.com/mileszs/wicked_pdf • require 'wkhtmltopdf' : http://code.google.com/p/ wkhtmltopdf/ • gem 'wicked_pdf' Thursday, September 22, 11
  • 17.
    Demo Base usage Thursday, September 22, 11
  • 18.
    Demo Send email Thursday, September 22, 11
  • 19.