Memphis Ruby

Memphis Ruby

Fork me on GitHub

The Memphis Ruby Users Group is a software group interested in topics related to the Ruby programming language. We have monthly meetups at various locations throughout the Greater Memphis Area. We usually have two presentations each month, given by local practitioners. Our members and topics range from novice to expert, and we welcome newcomers.

Join Us for the Next Meeting!

{{ date }} — {{ event.venue.name }} — {{ event.yes_rsvp_count}} RSVPS

Meetings & Updates

Jason Charnes — September 30, 2014

Unitwise

Our September meetup featured an extensive look at the gem Unitwise. Unitwise is a Ruby library for unit measurement conversion and math.

Josh, Unitwise creator and fellow Memphis Rubyist, walked us through Unitwise. For those who haven’t needed such in-depth measurement conversion, myself included, he shared his initial use case for a unit conversion tool. Once everyone was on the same page, he moved to the core of the gem and all it’s amazing capabilites. Josh loaded up a Ruby console and showed us the inner workings of Unitwise, while showing us the code behind it all.

For me to try and explain all of Unitwise’s true capabilites wouldn’t give it justice. Josh has set up a demo site that will let you see it in action. I recommend you check it out!

Shout-outs

Next Meeup

Have something you want to share with us? Slots are still open for next month.

Tagged: ruby, gems, unitwise
Josh W. Lewis — August 19, 2014

This month, we had another fun an informative meetup at Coroutine. Just one presentation this time, but a good one:

Generating Word Documents with Caracal

John Dugan gave us a great walkthrough of Caracal. It’s an open source library for generating Microsoft Word documents with an HTML-like Ruby API. Caracal lets you build word documents like this:

Caracal::Document.save 'example.docx' do |docx|
  # page 1
  docx.h1 'Some Title'
  docx.hr
  docx.br
  docx.h2 'Some Section'
  docx.p  'Lorem ipsum dolor....'
  docx.br
  docx.table @my_data, border_size: 4 do
    cell_style rows[0], background: 'cccccc', bold: true
  end

  # page 2
  docx.page
  docx.p  'Lorem ipsum dolor....'
  docx.ul do
    li 'Item 1'
    li 'Item 2'
  end
  docx.br
  docx.img image_url('graph.png'), width: 500, height: 300
end

The review demonstrated the library’s functionality but also a good portion of the libraries internal architecture.

The overall response was very positive. Caracal appears to be a well thought out library. It has a great API, and it’s internals abide by the principles of SOLID.

Thanks to all who came, and to Coroutine for the food and meeting space.

Tagged: ruby, gem