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 0 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 0 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