Apr 232009
 

You’ll notice, if you follow those screencasts (around now, anyway, as the plugin’s code is likely to change, or maybe the screencasts themselves) that when you add in_place_editing, you suddenly get broken HTML..

The fix is thankfully easy!

vendors > plugins > in_place_editing > lib > in_place_macros_helper.rb
Line 79:
tag = content_tag(tag_options.delete(:tag), h(instance_tag.value(instance_tag.object)), tag_options)

Change to :
tag = content_tag(tag_options.delete(:tag), instance_tag.value(instance_tag.object), tag_options)

And you’re set!

Apr 212009
 

This tutorial may be incomplete – I set this up from my system, which already has a lot of libraries and packages installed. The readme recommends glib, gtk, gtksourceview2 and such – YMMV.. This is what -I- had to do.
# eselect ruby set ruby18
# layman -S
# layman -a gnome

(if you are running on amd64)
# echo “dev-libs/libgee ~amd64″ >> /etc/portage/package.keywords/common
# echo “dev-lang/vala ~amd64″ >> /etc/portage/package.keywords/common

# emerge dev-libs/oniguruma dev-libs/libgee ruby-gnome2

AND HERE’S WHERE IT BIT IT. I couldn’t build ruby-gdkpixbuf2 against Ruby19 and I didn’t feel like uninstall Ruby19.

# gem install oniguruma activesupport rspec cucumber hoe open4 zerenity

I guess I’ll have to wait a little longer for this machine. I do have an old laptop running Ubuntu – and redcar gives detailed Ubuntu installation instructions.

Apr 172009
 

Taken straight from this blog

in a terminal.. First do a ‘locate mysql_config’ and then replace the path in the following command with where that file is.

$ sudo gem install mysql — –with-mysql-config=/usr/local/mysql/bin/mysql_config
Building native extensions. This could take a while…
Successfully installed mysql-2.7
1 gem installed

Apr 062009
 

UPDATE!
Cowlibob did a fix, find it at : http://github.com/cowlibob/rubyscript2exe

Untested!
From ‘The Higgs bozo’ on the ruby newsgroup. Apply change to both rubyscript2exe and tar2rubyscript. As far as I know that makes it work with newer versions of Ruby but I didn’t get to play with it yet.

— rubyscript2exe.rb.orig 2009-04-03 10:28:41.140806000 -0400
+++ rubyscript2exe.rb 2009-04-03 10:29:40.108423800 -0400
@@ -618,7 +618,7 @@

newlocation do
if __FILE__ == $0
- $0.replace(File.expand_path(“./init.rb”))
+ $0 = File.expand_path(“./init.rb”)

TAR2RUBYSCRIPT = true unless defined?(TAR2RUBYSCRIPT)