Fix Ruby 1.9 "can't convert Pathname to String (TypeError)" error

Thursday, November 24, 2011 1 comments
Do you find yourself hitting this error when running your ruby code on ruby 1.9? Then on the line that actually tries to load the file (like the following examples) add the .to_s after what used to be the filename :

  • IO.read(filename) -> IO.read(filename.to_s)
  • require filename -> require filename.to_s
etc...

Some example commits from other projects :

Github flavored markdown in YARD documentation

Tuesday, November 22, 2011 1 comments
Would you like to do this in your README.md :

```ruby
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
```

And get this as the output :


In your Gemfile :

  gem 'yard'
  gem 'redcarpet'
  gem 'github-markup'

In your .yardopts file :

--markup-provider=redcarpet
--markup=markdown

Resources


HipChat git hooks

Tuesday, November 15, 2011 1 comments
Checkout git hooks for HipChat!



Kudos to eirc and graffic for their work! Love the integration!

Oh god! InvalidPluralizationData!

Friday, November 11, 2011 0 comments
Do you hate it when you see this only because a pluralized localization is missing ?



Go on and comment, help, brainstorm on https://github.com/svenfuchs/i18n/issues/123

Integrating a Rails application into Google Apps Marketplace™

0 comments

Are you thinking to integrate your rails application into the Google Apps Marketplace? Before starting out make sure you check out this presentation from the 7th Athens Ruby Meetup where we shared some of our experiences and lessons learned from the whole process of integrating Fraudpointer into Google Apps Marketplace.

Enjoy and feel free to share your comments!