NOTE: If you use ansicon make sure it is not loaded
Download the Oniguruma library.
I have had good luck with 5.9.1 and 5.9.2.
I used C:\Users\gthiesfeld\Work\repo\onig-5.9.2.
C:/Ruby/ruby-187-p249/bin/ruby.exe extconf.rb | |
*** extconf.rb failed *** | |
Could not create Makefile due to some reason, probably lack of | |
necessary libraries and/or headers. Check the mkmf.log file for more | |
details. You may need configuration options. | |
Provided configuration options: | |
--with-opt-dir | |
--without-opt-dir | |
--with-opt-include |
def parse(name) | |
raise "Write the parse method." | |
end | |
describe "parse" do | |
it "should list all permutations, text in brackets is optional" do | |
strings = parse("foo[bar]") | |
strings.should include('foo') | |
strings.should include('foobar') |
C:\>set home= | |
C:\>set USERPROFILE= | |
C:\>echo %HOMEDRIVE%%HOMEPATH% | |
C:\Users\gthiesfeld | |
C:\>pik ruby -e "puts File.expand_path('~')" | |
IronRuby 1.1.1.0 on .NET 4.0.30319.1 |
## Windows 7 x64 Ultimate | |
C:\Users\gthiesfeld\Work\repo\pik>C:\Users\gthiesfeld\.pik\rubies\JRuby-160RC1\bin\jruby.exe -v | |
# | |
# A fatal error has been detected by the Java Runtime Environment: | |
# | |
# Internal Error (exceptions.cpp:367), pid=7176, tid=7004 | |
# Error: ExceptionMark destructor expects no pending exceptions | |
# |
NOTE: If you use ansicon make sure it is not loaded
I have had good luck with 5.9.1 and 5.9.2.
I used C:\Users\gthiesfeld\Work\repo\onig-5.9.2.
C:\Users\gthiesfeld\Work\repo\vert>pik list --remote | |
--- | |
DevKit: | |
3.4.5r3: http://rubyforge.org/frs/download.php/66888/devkit-3.4.5r3-20091110.7z | |
Ruby: | |
1.9.2-p0: http://rubyforge.org/frs/download.php/72160/ruby-1.9.2-p0-i386-mingw32.7z | |
1.8.7-p302: http://rubyforge.org/frs/download.php/72087/ruby-1.8.7-p302-i386-mingw32.7z | |
1.9.1-p429: http://rubyforge.org/frs/download.php/71496/ruby-1.9.1-p429-i386-mingw32.7z | |
1.9.1-p430: http://rubyforge.org/frs/download.php/72076/ruby-1.9.1-p430-i386-mingw32.7z | |
1.9.2-rc1: http://rubyforge.org/frs/download.php/71498/ruby-1.9.2-rc1-i386-mingw32.7z |
irb(main):006:0> FileUtils.mkdir("C:/foo") | |
Errno::ENOENT: No such file or directory - No such file or directory - C:/foo | |
from ./lib/fakefs/fileutils.rb:13:in `mkdir' | |
from (irb):6 | |
irb(main):007:0> FileUtils.mkdir_p("C:/foo") | |
=> (FakeDir name:"foo" parent:"C:" size:0) | |
irb(main):008:0> FileUtils.touch("C:/foo/bar") | |
=> ["C:/foo/bar"] | |
irb(main):009:0> File.exists?("C:/foo/bar") | |
=> true |
$ruby roullette.rb | |
0 | |
Charlie bet $10 on 13. | |
He rolled a 29. | |
His payout is $0. |
C:\Users\gthiesfeld\Work\repo\rubyinstaller>rake ruby19 -t | |
(in C:/Users/gthiesfeld/Work/repo/rubyinstaller) | |
Loading 001_dkcompiler_init.rb | |
Initializing DevKit compilers | |
Loading llvm.rb | |
Loading mingw.rb | |
Loading mingw64.rb | |
Loading tdm_mingw.rb | |
Loading common.rake | |
Loading defaults.rake |
C:\Users\gthiesfeld\Work\repo\insider>ruby -rubygems -e "require 'sinatra'" gaze.rb | |
== Sinatra/1.0 has taken the stage on 4567 for development with backup from Thin | |
>> Thin web server (v1.2.7 codename No Hup) | |
>> Maximum connections set to 1024 | |
>> Listening on 0.0.0.0:4567, CTRL+C to stop |