Ruby Idioms (TextMate Bundle)

Just a short note here, for TextMate users. I’ve made my bundle of
Ruby goodies available at:

bundle-for-textmate

Enjoy.

James Edward G. II

On Apr 13, 2006, at 6:22 AM, James Edward G. II wrote:

Just a short note here, for TextMate users. I’ve made my bundle of
Ruby goodies available at:

http://blog.grayproductions.net/articles/2006/04/12/ruby-idioms-
bundle-for-textmate

Enjoy.

James Edward G. II

James-

THank you for this. On first glance it looks very comprehensive and

super useful.

Thanks again-
-Ezra

I’m wondering that where the similar thing in Emacs is ?

I’m getting an error compiling ruby 1.8.4 on a mac book pro.

After running configure as follows:

./configure --prefix=/usr/local --with-readline-dir=/usr/local
–enable-shared --enable-pthread

make stops with this error:

gcc main.o libruby-static.a -lpthread -ldl -lobjc -o miniruby -g
-O2 -fno-common -pipe -fno-common -DRUBY_EXPORT
/usr/bin/ld: Undefined symbols:
_Init_ext
collect2: ld returned 1 exit status
make: *** [miniruby] Error 1

Any ideas?

Thanks

I thought I had run make clean … but after running it “again” I got
ruby 1.8.4 to compile fine on the intel mac.

I’m having a problem installing rubygems-0.8.11 on my mac, I’m
getting this error running:

sudo ruby setup.rb:

dyld: NSLinkModule() error
dyld: Symbol not found: _syckparse
Referenced from: /usr/local/lib/ruby/1.8/i686-darwin8.6.1/syck.bundle
Expected in: flat namespace

Trace/BPT trap

----here’s the complete output—

ruby setup.rb
—> bin
<— bin
—> lib
—> lib/rubygems
<— lib/rubygems
<— lib
—> bin
adjusting shebang: gem_mirror
<— bin
—> lib
—> lib/rubygems
<— lib/rubygems
<— lib
rm -f InstalledFiles
—> bin
mkdir -p /usr/local/bin/
install gem /usr/local/bin/
setup.rb:513:in initialize': Permission denied - /usr/local/bin/gem (Errno::EACCES) from setup.rb:513:ininstall’
from setup.rb:1193:in install_files' from setup.rb:1192:ininstall_files’
from setup.rb:1172:in install_dir_bin' from setup.rb:1321:intraverse’
from setup.rb:1338:in dive_into' from setup.rb:1319:intraverse’
from setup.rb:1313:in exec_task_traverse' from setup.rb:1308:inexec_task_traverse’
from setup.rb:1168:in exec_install' from setup.rb:887:inexec_install’
from setup.rb:705:in invoke' from setup.rb:674:ininvoke’
from setup.rb:1352
[-bash stephen:~/dev/ruby/src/rubygems-0.8.11]sudo ruby setup.rb
Password:
—> bin
<— bin
—> lib
—> lib/rubygems
<— lib/rubygems
<— lib
—> bin
adjusting shebang: gem_mirror
<— bin
—> lib
—> lib/rubygems
<— lib/rubygems
<— lib
rm -f InstalledFiles
—> bin
mkdir -p /usr/local/bin/
install gem /usr/local/bin/
install gem_mirror /usr/local/bin/
install gem_server /usr/local/bin/
install gemwhich /usr/local/bin/
install generate_yaml_index.rb /usr/local/bin/
install update_rubygems /usr/local/bin/
<— bin
—> lib
mkdir -p /usr/local/lib/ruby/site_ruby/1.8/
install gemconfigure.rb /usr/local/lib/ruby/site_ruby/1.8/
install rubygems.rb /usr/local/lib/ruby/site_ruby/1.8/
install ubygems.rb /usr/local/lib/ruby/site_ruby/1.8/
—> lib/rubygems
mkdir -p /usr/local/lib/ruby/site_ruby/1.8/rubygems
install builder.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install cmd_manager.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install command.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install config_file.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install custom_require.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install dependency_list.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install deployment.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install doc_manager.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install format.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install gem_commands.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install gem_openssl.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install gem_runner.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install installer.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install loadpath_manager.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install old_format.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install open-uri.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install package.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install remote_installer.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install rubygems_version.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install security.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install source_index.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install specification.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install timer.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install user_interaction.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install validator.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
install version.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems
<— lib/rubygems
<— lib

As of RubyGems 0.8.0, library stubs are no longer needed.
Searching $LOAD_PATH for stubs to optionally delete (may take a
while)…
…done.
No library stubs found.

dyld: NSLinkModule() error
dyld: Symbol not found: _syckparse
Referenced from: /usr/local/lib/ruby/1.8/i686-darwin8.6.1/syck.bundle
Expected in: flat namespace

Trace/BPT trap

On Apr 13, 2006, at 10:48 PM, Stephen B. wrote:

I’m having a problem installing rubygems-0.8.11 on my mac, I’m
getting this error running:

You’re likely to get more help if you start a new thread instead of
hijacking an existing one. As is, a lot of people won’t ever see
your mail unless they open this thread.

Caleb

On Apr 13, 2006, at 6:56 PM, Ezra Z. wrote:

THank you for this. On first glance it looks very comprehensive
and super useful.

You bet. I hope you find it as helpful as I do.

It sound like Allan intend to make at least some portion of it part
of TextMate’s default Ruby bundle…

James Edward G. II

On Apr 13, 2006, at 10:48 PM, Stephen B. wrote:

I’m having a problem installing rubygems-0.8.11 on my mac, I’m getting this error running:

You’re likely to get more help if you start a new thread instead of hijacking an existing one. As is, a lot of people won’t ever see your mail unless they open this thread.

Thanks for taking the time to point out the problem Caleb,

I hadn’t realized that there were extra mail headers that are used by
some clients to display message threads. In my email client the thread
is constructed just using the subject line. I constructed my original
message by replying to an existing message and changing the subject
line. The Reply-To header was [email protected] (which generates
the correct To: header when I reply) however the In-Reply-To: still
specified the original email (which gets passed along in my message).

This explains why when I view some of my messages in the mail list
archive they don’t appear in the thread they started – and obviously
also in the email client you use!

On Apr 14, 2006, at 12:35 PM, James Edward G. II wrote:

It sound like Allan intend to make at least some portion of it part
of TextMate’s default Ruby bundle…

An improved version of the bundle is now in the official bundle
repository. I recommend all users delete their local copy and do a
bundle checkout[1] instead.

James Edward G. II

1: http://macromates.com/wiki/Main/SubversionCheckout

Very cool.

How are the snippets sorted on the menu? I installed all this, and
I’d just assume that it all come alphabetically, but I can not see
any reason to the sorting.

-albert

Somehow this wasn’t obvious to simpleton me when I first looked at
it, but I can see it now. Still, would there be a way to add some
sort of title for each groupings on the menu, and then have them
listed within the grouping? As I see it, the menu is quite long, and
it would be nice to have a bit more orientation as one moves up and
down the pop-up.

-albert

On Apr 26, 2006, at 11:09 AM, Albert Vernon S. wrote:

Very cool.

How are the snippets sorted on the menu? I installed all this, and
I’d just assume that it all come alphabetically, but I can not see
any reason to the sorting.

You can open the bundle editor and sort them by hand. By default, I
grouped them by functionality, then sorted alphabetically.

James Edward G. II

On Apr 26, 2006, at 11:31 AM, Albert Vernon S. wrote:

Somehow this wasn’t obvious to simpleton me when I first looked at
it, but I can see it now. Still, would there be a way to add some
sort of title for each groupings on the menu, and then have them
listed within the grouping? As I see it, the menu is quite long,
and it would be nice to have a bit more orientation as one moves up
and down the pop-up.

TextMate doesn’t currently support this, but I’ve forwarded your
request to Allan Odgaard (creator of TextMate). He responded, “yeah,
something like that will eventually appear.”

James Edward G. II