Wirble On windows:
Pre: Windows XP SP2, GEMS, RUBY.
(i got Rails 2.0.2, ruby in c:\ruby)
1. gem install wirble (or go to http://pablotron.org/software/wirble/ )
2. gem install win32console (or http://raa.ruby-lang.org/project/win32_console/ )
3. create "w.rb" file in /config/ folder (folder with environment.rb)
4. inside w.rb put this code:
#-- for wirble
require 'rubygems' rescue nil
require 'win32/console/ansi'
ENV['IRB_HISTORY_FILE'] = "c:\.irb_history"
# load rubygems and wirble
require 'wirble'
# load wirble
Wirble.init
Wirble.colorize
#--
5. save w.rb file
Now run your console
inside console write: require "w"
=> []
now u got wirblezed console.
notes:
1.change ENV['IRB_HISTORY_FILE'] = "" to any value you want where to store your history, can be global (C:\) or application separate, (in this case put "c:\my_rails_applications\my_new_project\logs\.irchistory"
2.dont make file "w.rb" as "wirble.rb" it will not works,
Finally BIG thanks and respect to Paul for this wonderful gem (dont want to use others)
Paul home page: http://pablotron.org/software/wirble/
8 comments:
great tip... i was trying to install it on xp but without the rails app, but i just couldnt get ahead with it.
Can you help me out if you know?
what usage of wirble ?
its useless without rails, it build for it.
i wouldn't call it useless without rails.. i use it for watir :)
just load w.rb like so:
irb -r c:\some\location\w.rb
you can put it in .irbrc in your %HOME% folder. it loads automatically then.
Instead of C:\.irb_history, I'd suggest '%USERPROFILE%/.irb/.history' which on win32 would map to your home dir slash .irb slash history file. That's a bit neater and more typical location for such data.
oops, not that language, correction:
"#{ENV['USERPROFILE']}/.irb/history"
and btw. there's no need to alter the ENV array. IMHO, it should reflect the environment actually. Wirble.init has a default parameter opt=nil. If you give it a hash like that:
Wirble.init { :history_path = "#{ENV['USERPROFILE']}/.irb/history" }
you'll get the same result without hacking ENV.
Merkur 37C Safety Razor Review – Merkur 37C
The Merkur 37c is an titanium earrings excellent https://sol.edu.kg/ short goyangfc handled DE safety razor. It bsjeon.net is more suitable for both heavy and https://deccasino.com/review/merit-casino/ non-slip hands and is therefore a great option for experienced
Just use the 온라인카지노 bonus code WILD250 for a 250% match as much as} $1,000. We also take an in depth look at at|have a glance at} the wagering requirements (or "playthrough" / “rollover”, as it's generally called). This is how much you may have to bet find a way to} unlock the bonus, and it’s normally a multiple of} of the bonus amount or winnings. Las Atlantis Casino offers a big welcome bonus of {up to|as much as} $14,000 at a 280% match rate. The bonus funds are unfold throughout the first 5 deposits and the minimum deposit ranges between $10 and $30 depending on your most popular deposit methodology.
Post a Comment