RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Submit a post

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

whatson gem - Use $ beerfest to list upcoming beer festivals on command line

Hello, for fun I’ve added another dataset to the whatson gem that lets you list upcoming beer festivals from around the world. Ever wonder how many days to the next Oktoberfest? Just type in your shell: $ beerfest The command will fetch the beerfest event calendar page (from the intertubes) and print out: in 9d Ottakringer Braukultur Wochen, Thu-Wed Jul/2-Sep/2 (63d) @ 16., Ottakring › Vienna › Austria; in 88d Oktoberfest ("Die Wiesn"), Sat-Sun Sep/19-Oct/4 (16d) @ Munich › Upper Bavaria ... and so on. Cheers. Prost. Kampai.

To Serialize Or Not To Serialize: ActiveModel Serializers

Structuring data can be complicated, and on the web, everything is just a game of passing data back and forth. When it comes to serializing data into a JSON format, there’s one gem that can make your life infinitely easier: active_model_serializers! This blog post highlights when and how to implement a serializer in your Rails app, and how to customize it to fit your needs.

A gem to sync your CHANGELOG to GitHub’s release notes

I like GitHub’s Releases UI, but keeping it updated in addition to maintaining a CHANGELOG is tedious. So I created a gem called “chandler” to do it automatically. If you maintain a gem, just add chandler to your Rakefile, and rake release will now update GitHub’s release notes in addition to tagging and uploading to rubygems. Chandler also works interactively on the command line. Give it a shot!

whatson gem - Use $ rubyconf to list upcoming Ruby conferences on command line

Hello, I’ve put together a Ruby gem, that is, whatson, that lets you list all upcoming Ruby conferences on the command line. Type in your shell: $ rubyconf The command will fetch the awesome ruby events page (from the intertubes) and print out: Jul/1+2 - RubyMotion Conference - #inspect @ Paris, France; Jul/20 - Brighton Ruby Conference @ Brighton, East Sussex, England ... and so on. Cheers.

Render Markdown views with Redcarpet and Pygment in Rails

This Lugo Labs Tutor tutorial shows a way how to create a Rails renderer for Markdown so we can use it in views as we do when we write HTML. The view will need to support all Markdown syntax and Pygments, to prettify any code we have in the view. The code should be wrapped within a tag decorated with a class specifying the language in which the code is written, following standard Markdown syntax.

Why Pygments if you have better syntax colouring support in pure Ruby with Roug…
Loading older posts