tombenner / ru

Ruby in your shell!
MIT License
403 stars 11 forks source link

install incorrect on Windows #8

Open joshco opened 9 years ago

joshco commented 9 years ago

When installing the gem, it does not copy the executable into ruby/bin, nor does it create a bat file. I manually copied the executable into ruby bin

copy C:\Ruby200\lib\ruby\gems\2.0.0\gems\ru-0.1.4\bin C:\Ruby200\bin

I needed to change the line

require_relative '../lib/ru'

to

require 'ru'

Are you doing something clever with where you expect the executable to be?

rubycoder commented 7 years ago

FYI, I installed ru2 on Windows 10 using Git Bash, and it seems to have worked fine:

wayne MINGW64 ~$ ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [i386-mingw32]

wayne MINGW64 ~$ gem install ru2
Successfully installed ru2-2.1.4
Parsing documentation for ru2-2.1.4
Installing ri documentation for ru2-2.1.4
Done installing documentation for ru2 after 1 seconds
1 gem installed

wayne MINGW64 ~$ which ru
/c/Ruby231/bin/ru

wayne MINGW64 ~$ printf "2\n3" | ru 'map(:to_i).sum'
5