orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cahoots>
yeah, makes sense
<cahoots>
intellij idea handles this for java
<RickHull>
java is much more static, less flexible, less dynamic
<RickHull>
it's part of the language feature tradeoff
cagomez has quit [Remote host closed the connection]
<cahoots>
again, you would have false positives for metaprogramming. but metaprogramming is very rare for many projects, or in limited scopes within projects
cagomez has joined #ruby
<RickHull>
you would have false positives for my gist with zero metaprogramming
<RickHull>
forget metaprogramming -- it's too hard without even going there
workmad3 has joined #ruby
<cahoots>
you're saying that because it's a monkeypatch, it wouldn't work? that's incorrect. objc, e.g. handles monkeypatching, i.e. categories
<RickHull>
look at the definition of Foo.foo -- it consists of a single expression `bar`
<RickHull>
ruby decided that you can only know at runtime what that `bar` is
orbyt_ has joined #ruby
<RickHull>
you can't know if it's valid or invalid code without running it
<cahoots>
i see. sure, that's a pretty rare case, and probably a bug
ramfjord has quit [Ping timeout: 248 seconds]
<cahoots>
even if it works at runtime
<RickHull>
it's part of how a lot of ruby code is written
<RickHull>
it's just a barebones example
<RickHull>
ruby's swiss cheese is mostly holes ;)
<cahoots>
hehe yeah i haven't worked on too large a variety of projects
cagomez has quit [Ping timeout: 252 seconds]
<zenspider>
jesus people... way to shit all over a perfectly reasonable question for bullshit reasons.
ramfjord has joined #ruby
<RickHull>
which question? and what's the simple answer? also, no shitting here
<zenspider>
cahoots: I don't know of a static analyzer for uninitialized vars... but `ruby -w` handles that already, so that might be why
workmad3 has quit [Ping timeout: 248 seconds]
<elomatreb>
Uninitialized class/global(?) vars, yes. We just assumed local vars
<RickHull>
ruby without -w errors on unitialized locals
<elomatreb>
*instance/class/global
<RickHull>
typically ruby -w adds warnings about unused locals
<cahoots>
zenspider, that's a different case, but yeah that's a nice static check to have
<RickHull>
the short answer is probably Rubocop, as mentioned
<zenspider>
cahoots: different from what?
<zenspider>
RickHull: not necessarily ... locals can look like methods
<cahoots>
different from trying to call a method on a variable that doesn't exist. perhaps i mistyped earlier
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull>
zenspider: see my gist?
<RickHull>
cahoots: ah, this is the first time you've mentioned calling a method on an undefined variable. you would get the NameError first, likely
<RickHull>
or undefined method on nil in some cases
ramfjord has quit [Ping timeout: 240 seconds]
<zenspider>
I agree with the above comment that refactoring without tests is a bad idea... I'd start there
ozcanesen has joined #ruby
ramfjord has joined #ruby
gusrub has quit []
<elomatreb>
RickHull: If the variable in question is a local variable-like, you will get a name error. However, e.g. undefined instance variables are nil and do not error, so you'd get undefined method on nil
cdg has joined #ruby
<elomatreb>
>> @asdf.hello
<ruby[bot]>
elomatreb: # => undefined method `hello' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/883790)
<RickHull>
yep -- this seems more like a quirk than a feature ;)
nofxx has joined #ruby
<elomatreb>
And this is one of the things ruby -w warns about
raynold has joined #ruby
<RickHull>
ah, good point
tlaxkit has quit [Ping timeout: 260 seconds]
<RickHull>
these days, I lean more towards Elixir and Crystal in terms of language feature tradeoffs :)
John__ has quit [Read error: Connection reset by peer]
troys is now known as troys_
ramfjord has quit [Ping timeout: 240 seconds]
hexchat has joined #ruby
hexchat has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
alnewkirk has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
troys_ is now known as troys
CrazyEddy has quit [Ping timeout: 248 seconds]
tvw has quit [Remote host closed the connection]
alnewkirk has quit [Ping timeout: 240 seconds]
matcouto has joined #ruby
emulator3 has quit [Ping timeout: 248 seconds]
alnewkirk has joined #ruby
zanoni has quit [Read error: Connection reset by peer]
alnewkirk has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
cahoots_ has joined #ruby
zanoni has joined #ruby
alnewkirk has joined #ruby
cahoots has quit [Ping timeout: 252 seconds]
bkxd has joined #ruby
CrazyEddy has joined #ruby
ryzokuken has quit [Quit: Connection closed for inactivity]
Technodrome has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
oleo has quit [Ping timeout: 255 seconds]
nicesignal has quit [Quit: WeeChat 1.4]
nicesignal has joined #ruby
alnewkirk has joined #ruby
charliesome has joined #ruby
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 248 seconds]
cahoots_ has quit [Ping timeout: 248 seconds]
cahoots has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
alnewkirk has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
troys is now known as troys_
alnewkirk has quit [Ping timeout: 240 seconds]
gix has quit [Ping timeout: 252 seconds]
rajnoT has joined #ruby
gix has joined #ruby
rajno has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
gix has quit [Ping timeout: 248 seconds]
cahoots has quit [Quit: leaving]
Technodrome has joined #ruby
d^sh has quit [Ping timeout: 248 seconds]
cdg has quit [Ping timeout: 252 seconds]
frem has quit [Quit: Connection closed for inactivity]
matcouto has quit []
d^sh has joined #ruby
gix has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
cgfbee has quit [Ping timeout: 248 seconds]
mim1k has joined #ruby
orbyt_ has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
nadir has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
cgfbee has joined #ruby
_whitelogger has joined #ruby
gizmore|2 has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 252 seconds]
dc4 has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
kies has quit [Ping timeout: 248 seconds]
gcds is now known as Kug3lis_off
Kug3lis_off is now known as gcds
gcds is now known as Kug3lis_off
bruno- has joined #ruby
workmad3 has joined #ruby
charliesome has quit [Ping timeout: 246 seconds]
dc4 has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
cschneid_ has quit [Ping timeout: 258 seconds]
cschneid_ has joined #ruby
cschnei__ has joined #ruby
kapil___ has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
imode has joined #ruby
rideh has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
rideh has joined #ruby
bkxd has joined #ruby
guardianx has joined #ruby
uZiel has joined #ruby
dc4 has joined #ruby
alnewkirk has joined #ruby
postmodern has quit [Quit: Leaving]
bruno- has quit [Read error: No route to host]
SeepingN has joined #ruby
bruno- has joined #ruby
fyrril has quit [Quit: Leaving]
alnewkirk has quit [Ping timeout: 248 seconds]
zanoni has quit [Ping timeout: 248 seconds]
alnewkirk has joined #ruby
alfiemax has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 248 seconds]
eightlimbed__ has quit [Ping timeout: 258 seconds]
alnewkirk has joined #ruby
gix has quit [Ping timeout: 252 seconds]
cschneid has quit [Ping timeout: 255 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gix has joined #ruby
DarkBushido has quit [Ping timeout: 240 seconds]
rideh has quit [Ping timeout: 264 seconds]
alnewkirk has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
jeffreylevesque has quit [Ping timeout: 248 seconds]
cschneid has joined #ruby
mim1k has joined #ruby
DarkBushido has joined #ruby
DarkBushido has quit [Changing host]
DarkBushido has joined #ruby
rideh has joined #ruby
jeffreylevesque has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
mim1k has quit [Ping timeout: 258 seconds]
selim_ has quit [Ping timeout: 248 seconds]
_whitelogger has joined #ruby
guardianx has quit []
BTRE has quit [Read error: Connection reset by peer]
enterprisey has quit [Read error: Connection reset by peer]
BTRE has joined #ruby
uZiel has quit [Remote host closed the connection]
dviola has quit [Quit: WeeChat 1.9.1]
roshanavand has quit [Quit: Leaving]
ramfjord has joined #ruby
uZiel has joined #ruby
workmad3 has joined #ruby
Apocalypse has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
cschneid has quit [Ping timeout: 252 seconds]
DarkBushido has quit [Ping timeout: 255 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
DarkBushido has joined #ruby
DarkBushido has quit [Changing host]
DarkBushido has joined #ruby
bruno- has quit [Ping timeout: 258 seconds]
ramfjord has joined #ruby
cschneid has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dc4 has quit [Ping timeout: 240 seconds]
SeepingN has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alnewkirk has joined #ruby
spectrum has joined #ruby
hanmac has quit [Ping timeout: 258 seconds]
mim1k has joined #ruby
enterprisey has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
pilne has quit [Quit: Quitting!]
<fizzycola>
given the trade offs crystal makes (features it loses) i'm not so sure
Dimik has quit [Ping timeout: 240 seconds]
hanmac has joined #ruby
<fizzycola>
not so sure about Crystal* sorry. there was 'duby' before that. for native-JVM speed ruby (or close?). Crystal is built on some unproven tech for high perf languages.
<fizzycola>
namely the GC
apparition has joined #ruby
ozcanesen has quit [Quit: ozcanesen]
tastytf has joined #ruby
<RickHull>
i am a fan of type checks, particularly in terms of correctness and readability
<RickHull>
type inference can do a lot of work to mitigate the downsides of type checking
<RickHull>
ruby's duck typing has gotten less valuable to me, as well as the choice in most code to be less explicit
<RickHull>
e.g. not being able to distinguish between a local var and a method call
<RickHull>
i'd rather the code be more explicit about whether `bar` is a local var or a method call, and not have to have loaded ruby's name resolution scheme in my head in order to determine by reading code
LocaMocha has joined #ruby
ramfjord has joined #ruby
<RickHull>
with more static and strong typing, more static checks are available and automated refactoring is more reliable (or even possible)
cdg has quit [Remote host closed the connection]
<latemus>
is it possible to have a ruby script read and evaluate key combinations?
<latemus>
can i gets.chomp alt+h
ramfjord has quit [Ping timeout: 246 seconds]
<latemus>
(for example)
dc4 has joined #ruby
<latemus>
i want this repl to handle keybindings
<zenspider>
depends if your OS swallows them first or not
<zenspider>
getch is pretty raw. play with that
<zenspider>
oops. getc
<zenspider>
nope. getch exists in io/console
<zenspider>
>> $stdin.getch
<zenspider>
=> "\u0001"
<ruby[bot]>
zenspider: # => undefined method `getch' for #<IO:<STDIN>> ...check link for more (https://eval.in/883813)
<zenspider>
>> $stdin.getch
<zenspider>
=> "\u0002"
<ruby[bot]>
zenspider: # => undefined method `getch' for #<IO:<STDIN>> ...check link for more (https://eval.in/883814)
<zenspider>
oh shut up bot... you're lucky you ran at all
<zenspider>
it's up to you to interpret
<zenspider>
that was C-a and C-b respectively
mjolnird has joined #ruby
<latemus>
okay, thanks i'll start there
<zenspider>
probably a bad idea tho... you probably want to start coding a proper gui... either tk or gtk or something
<latemus>
tk with ruby?
Caius has quit [Ping timeout: 248 seconds]
<zenspider>
yup, not to be confused with tcl
apparition has quit [Quit: Bye]
jeffreylevesque has quit [Ping timeout: 248 seconds]
<latemus>
rad
ozcanesen has joined #ruby
MyMind has joined #ruby
Sembei has quit [Ping timeout: 240 seconds]
s3nd1v0g1us has quit [Quit: tempusfugit]
alfiemax has quit [Remote host closed the connection]
Freshnuts has quit [Quit: Leaving]
ozcanesen has quit [Quit: ozcanesen]
alfiemax has joined #ruby
workmad3 has joined #ruby
alnewkir1 has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
zautomata has quit [Ping timeout: 248 seconds]
alfiemax has quit [Remote host closed the connection]
ramfjord has joined #ruby
QualityAddict has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
n13z has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
bkxd has joined #ruby
Caius has joined #ruby
Caius has quit [Changing host]
Caius has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
moei has quit [Read error: Connection reset by peer]
moei has joined #ruby
basket has quit [Read error: Connection reset by peer]
zautomata has joined #ruby
ramfjord has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 255 seconds]
_whitelogger has joined #ruby
cdg has joined #ruby
alex`` has joined #ruby
nowhere_man has quit [Ping timeout: 260 seconds]
cdg has quit [Ping timeout: 252 seconds]
voiceftp has quit [Quit: Leaving]
dionysus69 has joined #ruby
n13z has quit [Quit: leaving]
n13z has joined #ruby
charliesome has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
conta has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
tastytf has quit [Read error: Connection reset by peer]
tastytf has joined #ruby
alnewkir1 has quit [Ping timeout: 240 seconds]
tastytf has quit [Remote host closed the connection]
tastytf has joined #ruby
conta has quit [Remote host closed the connection]
tastytf has quit [Remote host closed the connection]
tastytf has joined #ruby
conta has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rtd2 has joined #ruby
<rtd2>
somebody stop that man!
rippa has joined #ruby
rtd2 has quit []
govg has joined #ruby
zapata has quit [Quit: WeeChat 1.9.1]
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 258 seconds]
AnoHito_ has joined #ruby
workmad3 has joined #ruby
AnoHito has quit [Ping timeout: 258 seconds]
ldepandis has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
tastytf has quit [Remote host closed the connection]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raynold has quit [Quit: Connection closed for inactivity]
mikecmpbll has quit [Quit: inabit. zz.]
GodFather has joined #ruby
sepp2k has joined #ruby
kies has quit [Ping timeout: 248 seconds]
ryzokuken has joined #ruby
oleo has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
Kug3lis_off is now known as gcds
Immune has quit [Ping timeout: 248 seconds]
tastytinyf has quit [Ping timeout: 255 seconds]
bbear has joined #ruby
<bbear>
hi
Devalo has quit [Remote host closed the connection]
Puffball has quit [Ping timeout: 258 seconds]
Azure has quit [Ping timeout: 248 seconds]
Devalo has joined #ruby
Devalo has quit [Ping timeout: 248 seconds]
ddffg has joined #ruby
zautomata has joined #ruby
ishahnaz has joined #ruby
daemonwrangler has quit [Ping timeout: 248 seconds]
ldepandis has joined #ruby
Puffball has joined #ruby
wald0 has joined #ruby
zanoni has joined #ruby
daemonwrangler has joined #ruby
fullstack has quit [Ping timeout: 248 seconds]
erts has joined #ruby
fullstack has joined #ruby
CrazyEddy has quit [Ping timeout: 255 seconds]
ddffg has quit [Quit: Leaving]
blackmesa has quit [Quit: WeeChat 1.9.1]
eightlimbed__ has joined #ruby
enterprisey has quit [Ping timeout: 258 seconds]
gizmore has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
spectrum has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
nofxx has joined #ruby
bkxd has joined #ruby
charliesome has quit [Ping timeout: 258 seconds]
charliesome has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
gcds is now known as Kug3lis_off
charliesome has quit [Ping timeout: 248 seconds]
Kug3lis_off is now known as gcds
enterprisey has joined #ruby
erts has quit [Ping timeout: 240 seconds]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
ramfjord has joined #ruby
charliesome has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
enterprisey has quit [Ping timeout: 255 seconds]
gcds is now known as Kug3lis_off
Kug3lis_off is now known as gcds
workmad3 has joined #ruby
nowhere_man has joined #ruby
RickHull has quit [Ping timeout: 260 seconds]
erts has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 255 seconds]
charliesome has quit [Ping timeout: 240 seconds]
alnewkirk has joined #ruby
alnewkirk has quit [Ping timeout: 246 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
megamos has joined #ruby
ams__ has quit [Quit: Connection closed for inactivity]
ferr has joined #ruby
zautomata has quit [Ping timeout: 248 seconds]
anisha has joined #ruby
__Yiota has joined #ruby
eightlimbed__ has quit [Ping timeout: 258 seconds]
fullstack has quit [Ping timeout: 258 seconds]
eightlimbed__ has joined #ruby
John__ has joined #ruby
fullstack has joined #ruby
gigetoo has quit [Ping timeout: 264 seconds]
fmcgeough has joined #ruby
alfiemax has joined #ruby
charliesome has joined #ruby
eightlimbed__ has quit [Ping timeout: 258 seconds]
fmcgeough has quit [Client Quit]
InfinityFye has quit [Quit: Leaving]
Azure has joined #ruby
erts_ has joined #ruby
ramfjord has joined #ruby
sepp2k has quit [Ping timeout: 252 seconds]
_sfiguser has joined #ruby
mikecmpbll has joined #ruby
erts has quit [Ping timeout: 240 seconds]
zanoni has quit [Ping timeout: 240 seconds]
John__ has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 255 seconds]
sepp2k has joined #ruby
erts_ has quit [Read error: Connection reset by peer]
ioggstream has joined #ruby
goyox86 has joined #ruby
bkxd has joined #ruby
unreal_ has quit [Read error: Connection reset by peer]
alfiemax has quit [Remote host closed the connection]
John__ has joined #ruby
unreal has joined #ruby
charliesome has quit [Ping timeout: 248 seconds]
bkxd has quit [Ping timeout: 248 seconds]
FahmeF has joined #ruby
goyox86 has quit [Quit: goyox86]
charliesome has joined #ruby
cdg has joined #ruby
bkxd has joined #ruby
fullstack has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 240 seconds]
_vircung_ has quit [Quit: Nothing to do here]
cdg has quit [Ping timeout: 252 seconds]
ishahnaz has quit []
alfiemax has joined #ruby
fullstack has joined #ruby
cschnei__ has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
nowhereman has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
charliesome has joined #ruby
__Yiota has quit [Ping timeout: 252 seconds]
charliesome has quit [Client Quit]
nowhereman has quit [Ping timeout: 240 seconds]
zanoni has joined #ruby
pilne has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
charliesome has joined #ruby
nickwarner1 has joined #ruby
nickwarner1 has quit [Remote host closed the connection]
nickwarner1 has joined #ruby
nickwarner1 has quit [Remote host closed the connection]
nickwarner has joined #ruby
nickwarner has left #ruby [#ruby]
jphase has joined #ruby
nowhereman has joined #ruby
conta2 has joined #ruby
bkxd has joined #ruby
minimalism has quit [Ping timeout: 252 seconds]
bkxd has quit [Ping timeout: 240 seconds]
evie_hammond has quit [Ping timeout: 240 seconds]
erts has joined #ruby
erts has quit [Changing host]
erts has joined #ruby
minimalism has joined #ruby
evie_hammond has joined #ruby
uZiel has quit [Read error: Connection reset by peer]
_aeris_ has quit [Read error: Connection reset by peer]
_aeris_ has joined #ruby
alnewkirk has joined #ruby
zautomata has joined #ruby
tvw has joined #ruby
charliesome has quit [Ping timeout: 252 seconds]
ioggstream has quit [Ping timeout: 260 seconds]
__Yiota has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
megamos has quit [Ping timeout: 252 seconds]
crst has joined #ruby
bbear has quit [Quit: Konversation terminated!]
bbear has joined #ruby
erts has quit [Ping timeout: 240 seconds]
<crst>
Hey guys! chrisfix here. :) Why is /usr/local/var/rbenv/shims always on top of my paths? It messes around with normal binaries which I can't use properly then.
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
hanmac has left #ruby [#ruby]
charliesome has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
^mtkd has joined #ruby
Hexafox[I] has quit [Ping timeout: 246 seconds]
charliesome has quit [Read error: Connection reset by peer]
alnewkirk has joined #ruby
ryzokuken has quit [Quit: Connection closed for inactivity]
bambanx has joined #ruby
nowhereman has quit [Read error: Connection reset by peer]
nowhereman has joined #ruby
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
megamos has joined #ruby
swirlsMD has joined #ruby
uZiel has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tmm88 has joined #ruby
megamos has quit [Ping timeout: 248 seconds]
Technodrome has joined #ruby
John__ has quit [Ping timeout: 248 seconds]
__Yiota has joined #ruby
conta2 has quit [Ping timeout: 240 seconds]
bbear has quit [Remote host closed the connection]
uZiel has quit [Remote host closed the connection]
uZiel has joined #ruby
mjolnird has quit [Quit: Leaving]
shinnya has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
<havenwood>
crst: It looks like you're using the rbenv tool, which works by putting a directory of shims in front of your PATH.
<havenwood>
crst: Alternatively you could put the Ruby bin/ dir in your PATH and set GEM_HOME, GEM_ROOT, etc. That's what chruby does.
<havenwood>
crst: In any case, it'll involve something in front of your PATH, but it doesn't have to be shims. Your choice!
p0p0pr37 has quit [Ping timeout: 248 seconds]
<havenwood>
crst: What problem are you running into with the shims?
ramfjord has quit [Ping timeout: 260 seconds]
<crst>
havenwood: that's right. I'm using rbenv to manage my ruby versions and like to keep using it. But when I want to use rg -irl 'active' . for instance it interferes with redgreen-1.2.2/bin/rg That's just one example of a handful
alfiemax_ has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
<havenwood>
crst: Ah, so just multiple commands with the same name? Yeah, that's a general problem.
<crst>
havenwood: exactly
<havenwood>
crst: `which -a command_name_here` shows it's pretty common (rbenv aside) to have multiple commands in your PATH with the same name
<havenwood>
sometimes different commands, same name - annoyingly so
<havenwood>
but that's not an rbenv-specific thing
<havenwood>
crst: you can alias the names of programs lower in your path, call them directly with their full path, or munge path to change the order
anisha has quit [Quit: This computer has gone to sleep]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<crst>
havenwood: yeah, for this reason I keep my main installation path /usr/local/bin on top of all other paths, but then rbenv forces it's shims on top of that. I manage my paths pretty well but once in a while rbenv interferes and I'd like to use paste commands or use history and avoid aliasing the command.
<havenwood>
crst: alternatively you could point rbenv temporarily at a ruby that doesn't have those gems installed, like system Ruby
<crst>
havenwood: I know, but then I'd have to do that each time :)
<havenwood>
crst: i'd recommend just aliasing one of the command names when one stomps on another
<matthewd>
Is the gem a necessary dependency of something? Can you just remove it?
<matthewd>
"It will install a 'rg' file in your bin directory" is apparently its stated purpose
mathys has joined #ruby
<havenwood>
crst: another option is to have rubygems prefix something onto all your gem binary names
bkxd has joined #ruby
alfiemax_ has joined #ruby
bambanx has quit [Ping timeout: 240 seconds]
alfiemax has quit [Read error: Connection reset by peer]
zautomata has quit [Ping timeout: 252 seconds]
<matthewd>
The shims directory should be added to your path when rbenv gets initialized, I think?
<crst>
havenwood: ok, thanks a lot! matthewd: I'm fairly certain it is required by at least one rails project I'm working on. havenwood: There are some gems I use often in the cli and like to avoid renaming them, too.
<matthewd>
.. so maybe it's as simple as manipulating the path after that, in your .bashrc ?
<havenwood>
crst: If conflicting command names must be installed, it's really a matter of choosing how you want to alias.
ramfjord has joined #ruby
<havenwood>
crst: RubyGems supports a --format-executable flag, which will prefix the Ruby version to your gem binary names. You could then alias back the commonly used gem names.
<matthewd>
Given its last release was 10 years ago, in this particular case, you might be able to just rm its binfile, if you don't use it, and forget it was ever there (while keeping the gem installed)
<havenwood>
crst: Or leave the gem names as are and alias the ones you care about.
<matthewd>
NB the real binfile, not the shim -- the latter will be recreated based on the former
edward__ has joined #ruby
imode has joined #ruby
<havenwood>
Yeah, a combo of removing any conflicting commands and aliasing those you really want multiple of should do the trick.
bkxd has quit [Ping timeout: 240 seconds]
<crst>
havenwood, matthewd: I see, thanks for suggesting me these possibilities! I keep these in mind while trying to create a workaround.
alfiemax_ has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 248 seconds]
bruno- has joined #ruby
<matthewd>
The friendliest workaround for colleagues might be to try to remove the dep, tbh
kahra has joined #ruby
fullstack has quit [Ping timeout: 258 seconds]
fullstack has joined #ruby
zautomata has joined #ruby
<crst>
that's certainly a nice thing to do for your colleagues
Psybur has quit [Ping timeout: 252 seconds]
crst has quit [Remote host closed the connection]
crst has joined #ruby
kahra has quit [Quit: WeeChat 1.9.1]
kahra has joined #ruby
kahra has quit [Client Quit]
kahra has joined #ruby
workmad3 has joined #ruby
Apocalypse has joined #ruby
ramfjord has joined #ruby
John__ has joined #ruby
kahra has quit [Client Quit]
workmad3 has quit [Ping timeout: 248 seconds]
zautomata has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
p0p0pr37 has joined #ruby
selim_ has joined #ruby
selim has quit [Ping timeout: 248 seconds]
Sembei has joined #ruby
ryzokuken has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
Pisuke has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
thinkpad has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
dc4 has quit [Ping timeout: 240 seconds]
alnewkirk has quit [Ping timeout: 240 seconds]
dinfuehr has quit [Ping timeout: 264 seconds]
dinfuehr has joined #ruby
enterprisey has joined #ruby
ldepandis has joined #ruby
p0p0pr37_ has joined #ruby
p0p0pr37_ has quit [Changing host]
p0p0pr37_ has joined #ruby
eightlimbed__ has joined #ruby
p0p0pr37 has quit [Ping timeout: 248 seconds]
Vile` has joined #ruby
p0p0pr37_ is now known as p0p0pr37
conta1 has joined #ruby
dviola has joined #ruby
gcds is now known as Kug3lis_off
p0p0pr37_ has joined #ruby
p0p0pr37 has quit [Ping timeout: 260 seconds]
p0p0pr37_ is now known as p0p0pr37
Kug3lis_off is now known as gcds
apeiros_ has joined #ruby
gcds is now known as Kug3lis_off
fullstack has quit [Ping timeout: 240 seconds]
Kug3lis_off is now known as gcds
fullstack has joined #ruby
swirlsMD has quit [Ping timeout: 255 seconds]
apeiros_ has quit [Remote host closed the connection]
John__ has quit [Ping timeout: 248 seconds]
bruno- has quit [Ping timeout: 240 seconds]
fullstack has quit [Ping timeout: 246 seconds]
fullstack has joined #ruby
bruno- has joined #ruby
jordanm has quit [Remote host closed the connection]
wald0 has quit [Quit: Lost terminal]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 248 seconds]
uZiel has joined #ruby
alfiemax has joined #ruby
alex`` has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 255 seconds]
raynold has joined #ruby
fullstack has quit [Ping timeout: 260 seconds]
goyox86 has joined #ruby
RickHull has joined #ruby
goyox86 has left #ruby [#ruby]
goyox86_ has joined #ruby
fullstack has joined #ruby
Technodrome has joined #ruby
conta1 has quit [Ping timeout: 246 seconds]
fullstack has quit [Ping timeout: 248 seconds]
fullstack has joined #ruby
alfiemax has quit [Remote host closed the connection]
workmad3 has joined #ruby
goyox86_ has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 260 seconds]
erts has joined #ruby
crst has quit [Remote host closed the connection]
erts has quit [Client Quit]
dc4 has joined #ruby
ShekharReddy has joined #ruby
apeiros_ has joined #ruby
gcds is now known as Kug3lis_off
dc4 has quit [Quit: WeeChat 1.4]
ozcanesen has joined #ruby
enterprisey has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
Kug3lis_off is now known as gcds
orbyt_ has joined #ruby
milardovich has quit []
alnewkirk has joined #ruby
Immune has joined #ruby
goyox86 has joined #ruby
goyox86 has quit [Ping timeout: 240 seconds]
andersamer has joined #ruby
andersamer has left #ruby [#ruby]
goyox86 has joined #ruby
zack6849 has quit [Remote host closed the connection]
goyox86 has quit [Client Quit]
alex`` has joined #ruby
zack6849 has joined #ruby
zack6849 has quit [Changing host]
zack6849 has joined #ruby
milardovich has joined #ruby
latemus has quit [Quit: leaving]
kke has quit [Remote host closed the connection]
goyox86_ has joined #ruby
conta has joined #ruby
Dimik has joined #ruby
SuperLag has quit [Quit: Lost terminal]
alnewkirk has quit [Ping timeout: 264 seconds]
goyox86_ has quit [Ping timeout: 258 seconds]
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
milardov_ has joined #ruby
zapata has joined #ruby
tmm88 has quit [Read error: Connection reset by peer]
tmm88_ has joined #ruby
John__ has joined #ruby
Devalo has quit [Ping timeout: 248 seconds]
alnewkirk has joined #ruby
Devalo has joined #ruby
tmm88_ has quit [Ping timeout: 246 seconds]
tvw has quit [Ping timeout: 255 seconds]
Devalo has quit [Remote host closed the connection]
Yzguy has joined #ruby
Devalo has joined #ruby
milardov_ has quit [Remote host closed the connection]
Immune has quit [Read error: Connection reset by peer]
Immune has joined #ruby
tekk has joined #ruby
tmm88 has joined #ruby
<al2o3-cr>
i see a red door and want to paint it black.
blackmesa has joined #ruby
<RickHull>
there is a house in Baton Rouge they call the rising sun
workmad3 has joined #ruby
<al2o3-cr>
house of the rising sun.
<al2o3-cr>
it's prolly older than both of us (original)
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
workmad3 has quit [Ping timeout: 240 seconds]
biberu has quit []
eightlimbed__ has joined #ruby
eightlimbed_ has quit [Read error: Connection reset by peer]
apeiros_ is now known as apeiros
goyox86_ has joined #ruby
^mtkd has quit [Ping timeout: 260 seconds]
goyox86_ has quit [Client Quit]
goyox86_ has joined #ruby
goyox86_ is now known as goyox86
eightlimbed__ has quit [Quit: Ex-Chat]
vee__ has quit [Ping timeout: 260 seconds]
mtkd has joined #ruby
vee__ has joined #ruby
goyox86 has quit [Quit: goyox86]
goyox86 has joined #ruby
goyox86 has quit [Client Quit]
goyox86 has joined #ruby
govg has quit [Ping timeout: 240 seconds]
AlexRussia has joined #ruby
govg has joined #ruby
biox has quit [Quit: probably server crash]
goyox86 has quit [Ping timeout: 246 seconds]
govg has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
SuperLag has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
DTZUZO has joined #ruby
ian_0xF has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.9]
tmm88 has quit [Ping timeout: 248 seconds]
<ian_0xF>
hello?
<Papierkorb>
Yo
<adaedra>
hi
<havenwood>
ian_0xF: hi
Dimik has quit [Ping timeout: 240 seconds]
<ian_0xF>
Guys, could you say which apps' sources are good to see how to create ruby apps? I can't figure out how to design not-a-command-line-tool-like app
<n13z>
Shoes! :D
<havenwood>
ian_0xF: Rails is of course the most popular Rack adapter. I really like Roda for simple projects.
Psybur has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
<ian_0xF>
Have you used them in production?
ryzokuken has quit [Quit: Connection closed for inactivity]
<ian_0xF>
I mean Roda
<havenwood>
ian_0xF: Yup, I do use Roda and Rails in prod.
<al2o3-cr>
havenwood: link them to all alternatives :)
apeiros has quit [Remote host closed the connection]
justthisguy has joined #ruby
marr has joined #ruby
goyox86 has quit [Quit: goyox86]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xekt0r has joined #ruby
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
RickHull has quit [Ping timeout: 260 seconds]
iszak has joined #ruby
iszak has quit [Changing host]
iszak has joined #ruby
_whitelogger has joined #ruby
<zanoni>
using Sinatra, if I set an instance variable in a helper method , confirmed it's set to the params, shouldn't it be available in another route?
iszak has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
ozcanesen has quit [Quit: ozcanesen]
iszak has joined #ruby
iszak has quit [Changing host]
iszak has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
houhoulis has joined #ruby
Psybur has quit [Ping timeout: 240 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
houhouli_ has joined #ruby
Mia has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 240 seconds]
houhoulis has quit [Ping timeout: 240 seconds]
oetjenj has joined #ruby
thinkpad has joined #ruby
<zanoni>
that was a bad question ;), not even sure what i was thinking
ramfjord has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Phate has quit [Remote host closed the connection]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
kies has joined #ruby
Intaler has joined #ruby
<Intaler>
is this for the ruby language?
<elomatreb>
Yes.
Yzguy has quit [Quit: Cya]
Mia has quit [Read error: Connection reset by peer]
Hexafox[I] has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
alveric4 has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alveric3 has quit [Ping timeout: 240 seconds]
ozcanesen has joined #ruby
miah has quit [Ping timeout: 252 seconds]
Mia has quit [Read error: Connection reset by peer]
miah has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
lxsameer has quit [Ping timeout: 240 seconds]
cschneid has quit [Ping timeout: 252 seconds]
cschneid has joined #ruby
bkxd has joined #ruby
Puffball_ has joined #ruby
cADO has joined #ruby
cADO has left #ruby [#ruby]
cADO has joined #ruby
Puffball has quit [Ping timeout: 248 seconds]
houhouli_ has quit [Remote host closed the connection]
DarkBushido has quit [Ping timeout: 252 seconds]
DarkBushido has joined #ruby
DarkBushido has quit [Changing host]
DarkBushido has joined #ruby
banisterfiend has joined #ruby
<banisterfiend>
wtf does bundler sometimes say "Your Ruby version is 1.9.3, but your Gemfile specified 2.3.1" when i did no such thing! (i didn't specify the ruby version)