havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
alex`` has joined #ruby
mim1k has joined #ruby
boombox_ has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
<kkiero> Radar: does this code from screenshot work for you?
<kkiero> for me it doesn't
<Radar> kkiero: tbh I haven't tried it
<kkiero> it still uses system ruby :(
jenrzzz has quit [Ping timeout: 240 seconds]
<ReinH> I think you want rbenv-exec.
<Radar> ^
<Radar> That's what I was trying to think of
<Radar> https://gist.github.com/radar/3aa7d6e2d2dcc2331712f30c06243d61 This works for me using chruby locally
mim1k has quit [Ping timeout: 240 seconds]
<ReinH> Radar: you're still here eh
runescape07rsps has joined #ruby
milardovich has quit []
<Radar> ReinH: You will pry IRC from my cold, dead hands.
gil_ has quit [Ping timeout: 260 seconds]
<Radar> Look what I can do, dad.
milardovich has joined #ruby
belmoussaoui__ has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
gil_ has joined #ruby
gil_ has joined #ruby
gil_ has quit [Changing host]
ColeHub has quit [Quit: Bye.]
belmoussaoui_ has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
pytau has quit [Remote host closed the connection]
meshsmith has joined #ruby
meshsmith has joined #ruby
meshsmith has quit [Changing host]
frmendes has quit [Quit: leaving]
cats has quit [Quit: BURN HIS HOUSE DOWN]
astrobunny has quit [Ping timeout: 268 seconds]
cats has joined #ruby
marr has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
banisterfiend has joined #ruby
<kkiero> yeah, with chruby it works because you're sourcing it from script
<kkiero> it doesn't see rbenv command so I cannot do rbenv exec
bruno- has quit [Ping timeout: 240 seconds]
<kkiero> ok I'm going to use vanilla bash wich echo and piping it to tr
bronson has quit [Ping timeout: 240 seconds]
enterprisey has quit [Remote host closed the connection]
jenrzzz has joined #ruby
cats has quit [Quit: BURN HIS HOUSE DOWN]
cats has joined #ruby
hutch34 has joined #ruby
<al2o3-cr> kkiero: str="ąćęłńóśźż"; echo ${str^^} :P
olivi____ has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
boombox_ has quit [Remote host closed the connection]
<al2o3-cr> actually prefer printf over echo
umaaji has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
SteenJobs_ has joined #ruby
olivi____ has quit [Ping timeout: 276 seconds]
epochwolf has quit [Read error: Connection reset by peer]
alveric2 has joined #ruby
alveric1 has quit [Ping timeout: 268 seconds]
<kkiero> al2o3-cr: -: ${str^^}: bad substitution
hutch34 has quit [Ping timeout: 255 seconds]
<al2o3-cr> kkiero: what bash version?
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
<kkiero> /bin/bash is 3.2
hutch34 has joined #ruby
<al2o3-cr> ah, i think that syntax is 4
<al2o3-cr> i might be wrong though
milardovich has quit [Remote host closed the connection]
brent__ has quit [Ping timeout: 248 seconds]
milardovich has joined #ruby
epochwolf has joined #ruby
<kkiero> ok i'm going to sleep
<kkiero> thanks for any help
<kkiero> gnight
BSaboia has joined #ruby
<al2o3-cr> kkiero: just pipe it to awk then tr won't work
AxelAlex has joined #ruby
ecuanaso has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
rfoust has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
mikecmpbll has joined #ruby
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<al2o3-cr> kkiero: translate() { printf $1 | awk '{ print toupper($1) }'; }; translate "ęóąśłżźćń"
<al2o3-cr> that enough bash/awk for one day :p
mikecmpbll has quit [Ping timeout: 240 seconds]
<al2o3-cr> that should be upper not translate hehe
olivi____ has joined #ruby
<kkiero> yes I came up with similiar solution
digitalnomad has joined #ruby
<kkiero> the problem is that somehow letters Ł and ł don't transform ;/
im0nde has quit [Ping timeout: 276 seconds]
bruno- has joined #ruby
sgen has joined #ruby
olivi____ has quit [Ping timeout: 258 seconds]
_Bin4ry has quit [Ping timeout: 260 seconds]
ruby-lang951 has joined #ruby
ruby-lang951 has quit [Ping timeout: 260 seconds]
apparition has joined #ruby
kies has quit [Ping timeout: 240 seconds]
herbmillerjr has quit [Quit: Konversation terminated!]
cam27 has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
jenrzzz has joined #ruby
milardovich has joined #ruby
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
astrobunny has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
milardovich has quit [Ping timeout: 248 seconds]
astrobunny has quit [Ping timeout: 248 seconds]
lacuna has joined #ruby
perniciouscaffei has joined #ruby
kkiero has quit [Quit: leaving]
bronson has joined #ruby
jackjackdripper has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
ElFerna has joined #ruby
gothicsouth has joined #ruby
BSAlb has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
BSaboia has quit [Ping timeout: 255 seconds]
AAA_ has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
ramfjord has quit [Ping timeout: 260 seconds]
tau has joined #ruby
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
gizmore has joined #ruby
brent__ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cschneid_ has joined #ruby
gizmore|2 has quit [Ping timeout: 255 seconds]
vee_ has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
brent__ has quit [Ping timeout: 255 seconds]
milardov_ has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hotpancakes has quit [Remote host closed the connection]
cschneid_ has quit [Read error: Connection reset by peer]
nertzy has quit [Quit: Leaving]
cschneid_ has joined #ruby
jhooker has quit [Read error: Connection reset by peer]
__Yiota has joined #ruby
jhooker has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
scorphus has joined #ruby
hotpancakes has joined #ruby
dmtd has joined #ruby
ncthom91 has joined #ruby
knight33 has quit [Quit: Textual IRC Client: www.textualapp.com]
d^sh_ has quit [Ping timeout: 268 seconds]
enterprisey has joined #ruby
d^sh has joined #ruby
eightlimbed has quit [Ping timeout: 260 seconds]
cschneid_ has quit [Remote host closed the connection]
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
pwnd_nsfw` has joined #ruby
digitalnomad has joined #ruby
astrobunny has joined #ruby
pwnd_nsfw has quit [Ping timeout: 248 seconds]
Dimik has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
vee_ has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
t-recx has quit [Quit: t-recx]
spider-mario has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 248 seconds]
amclain has quit [Quit: Leaving]
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
boombox_ has joined #ruby
giraffe has joined #ruby
jameser has joined #ruby
giraffe is now known as Guest89848
tpendragon has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
eightlimbed has joined #ruby
milardov_ has quit [Remote host closed the connection]
milardovich has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
boombox_ has quit [Ping timeout: 260 seconds]
ecuanaso has joined #ruby
bronson has joined #ruby
uZiel has joined #ruby
ncthom91 has quit [Quit: Textual IRC Client: www.textualapp.com]
petruff has quit [Ping timeout: 276 seconds]
bronson has quit [Ping timeout: 255 seconds]
olivi____ has joined #ruby
olivi____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
smulverine has joined #ruby
gizmore|2 has joined #ruby
gizmore has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
guardianx has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has quit [Ping timeout: 248 seconds]
hotpancakes has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
duderonomy has joined #ruby
GodFather has quit [Ping timeout: 268 seconds]
guardianx has left #ruby [#ruby]
ElFerna has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
BSab has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
BSAlb has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
meshsmith has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 246 seconds]
marxarelli is now known as marxarelli|afk
perniciouscaffei has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
AAA_ has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
nowhere_man has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
bronson has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
jzigmund_ has quit [Ping timeout: 260 seconds]
bronson has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
gwilkes has quit [Quit: gwilkes]
brent__ has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eightlimbed has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GodFather has joined #ruby
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 255 seconds]
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
gothicsouth has joined #ruby
Rodya_ has joined #ruby
charliesome has joined #ruby
gix has quit [Ping timeout: 276 seconds]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
eightlimbed has joined #ruby
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
gwilkes has joined #ruby
hutch34 has joined #ruby
gix has joined #ruby
hutch34 has quit [Client Quit]
blackwind_123 has joined #ruby
nowhere_man has quit [Ping timeout: 246 seconds]
cam27 has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
vee_ has quit [Quit: WeeChat 1.9]
GodFather has quit [Ping timeout: 268 seconds]
gwilkes has quit [Quit: gwilkes]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
gwilkes has joined #ruby
perniciouscaffei has joined #ruby
borodin has joined #ruby
mim1k has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
hotpancakes has quit [Remote host closed the connection]
pwned has joined #ruby
hotpancakes has joined #ruby
gwilkes has quit [Quit: gwilkes]
milardovich has quit [Remote host closed the connection]
gwilkes has joined #ruby
milardovich has joined #ruby
hotpancakes has quit [Ping timeout: 258 seconds]
milardovich has quit [Ping timeout: 240 seconds]
renchan has joined #ruby
bronson has joined #ruby
cam27 has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
ramfjord has joined #ruby
andrzejku has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
tacoboy has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 248 seconds]
ColeHub has joined #ruby
GodFather has joined #ruby
patrontechnosoft has joined #ruby
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
ayonkhan has joined #ruby
hotpancakes has joined #ruby
ramfjord has joined #ruby
patrontechnosoft has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
__Yiota has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
gwilkes has quit [Quit: gwilkes]
gwilkes has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 255 seconds]
digitalnomad has joined #ruby
bruno- has joined #ruby
latemus has joined #ruby
ColeHub has quit [Quit: Snooze.]
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
Rodya_ has joined #ruby
mim1k has joined #ruby
SteenJobs_ has quit [Quit: SteenJobs_]
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 255 seconds]
andrzejku has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cam27 has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
andrzejku has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
bambanx has joined #ruby
Sammichmaker has joined #ruby
hotpancakes has quit [Remote host closed the connection]
meinside has joined #ruby
bronson has joined #ruby
grant has joined #ruby
Rodya_ has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 240 seconds]
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
digitalnomad has joined #ruby
kculpis has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 240 seconds]
kculpis has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
BSAlb has joined #ruby
runescape07rsps has quit [Quit: Leaving]
BSab has quit [Ping timeout: 260 seconds]
kies has joined #ruby
phinxy has quit [Quit: Leaving]
bambanx has quit [Quit: Leaving]
uZiel has joined #ruby
perniciouscaffei has joined #ruby
guardianx has joined #ruby
latemus is now known as Fuchs_
oleo has quit [Quit: irc client terminated!]
Fuchs_ is now known as latemus
chouhoulis has quit [Remote host closed the connection]
anisha has joined #ruby
tau has quit [Remote host closed the connection]
latemus has quit [Quit: leaving]
latemus has joined #ruby
anisha has quit [Read error: Connection reset by peer]
latemus has left #ruby [#ruby]
anisha has joined #ruby
ostera has joined #ruby
ur5us has quit [Remote host closed the connection]
ostera has quit [Client Quit]
sneakerhax has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kculpis has quit [Remote host closed the connection]
roshanavand has joined #ruby
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kculpis has joined #ruby
kculpis has quit [Remote host closed the connection]
latemus has joined #ruby
high_fiver has joined #ruby
jenrzzz has joined #ruby
hightower2 has joined #ruby
minimalism has quit [Quit: minimalism]
minimalism has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
bambanx has joined #ruby
bronson has joined #ruby
Terens has quit [Ping timeout: 258 seconds]
Rodya_ has joined #ruby
nofxxxx has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
nofxxx has quit [Ping timeout: 240 seconds]
latemus has quit [Quit: leaving]
ascarter has joined #ruby
Rodya_ has quit [Ping timeout: 255 seconds]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ascarter has quit [Client Quit]
pwnd_nsfw` is now known as pwnd_nsfw
oded has joined #ruby
latemus has joined #ruby
Puffball_ has joined #ruby
Puffball has quit [Ping timeout: 255 seconds]
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
high_fiver has quit [Ping timeout: 240 seconds]
Dimik has quit [Ping timeout: 240 seconds]
coenraad has quit [Ping timeout: 240 seconds]
hs366 has quit [Quit: Leaving]
juggler has joined #ruby
andikr has joined #ruby
charliesome has joined #ruby
coenraad has joined #ruby
aufi has joined #ruby
hightower4 has joined #ruby
claw has quit [Ping timeout: 255 seconds]
claw has joined #ruby
cyberRodent has quit [Ping timeout: 248 seconds]
gizmore|2 has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
cyberRodent has joined #ruby
cam27 has quit [Quit: cam27]
alveric3 has joined #ruby
alveric2 has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
Mortomes|Work has joined #ruby
bronson has joined #ruby
hotpancakes has quit [Ping timeout: 255 seconds]
mark_66 has joined #ruby
Rodya_ has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
zanshin has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
zanshin has joined #ruby
bambanx has quit [Quit: Leaving]
Rodya_ has quit [Ping timeout: 258 seconds]
Silthias1 has joined #ruby
ionte has quit [Ping timeout: 248 seconds]
Yxhuvud has quit [Ping timeout: 248 seconds]
Silthias has quit [Ping timeout: 258 seconds]
Silthias has joined #ruby
Yxhuvud has joined #ruby
eightlimbed has quit [Ping timeout: 260 seconds]
Silthias1 has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
nhhc has joined #ruby
nhhc_ has joined #ruby
Sammichmaker has quit [Remote host closed the connection]
ionte has joined #ruby
spider-mario has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guardianx has quit []
djbkd has joined #ruby
antgel has joined #ruby
bazzy has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
minimalism has quit [Read error: Connection reset by peer]
bazzy has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
andrzejku has quit [Quit: Textual IRC Client: www.textualapp.com]
mikecmpbll has joined #ruby
ramfjord has joined #ruby
bronson has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
grant has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
smulverine has quit [Remote host closed the connection]
zapata has quit [Ping timeout: 246 seconds]
bronson has quit [Ping timeout: 255 seconds]
Rodya_ has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
djbkd has quit [Remote host closed the connection]
aupadhye has joined #ruby
aupadhye has quit [Client Quit]
mrfoo has joined #ruby
brent__ has joined #ruby
zapata has joined #ruby
lxsameer has joined #ruby
doublemalt_ has joined #ruby
Beams has joined #ruby
brent__ has quit [Ping timeout: 248 seconds]
minimalism has joined #ruby
govg_ has quit [Quit: leaving]
marr has joined #ruby
postmodern has quit [Remote host closed the connection]
aupadhye has joined #ruby
blackwind_123 has quit [Ping timeout: 255 seconds]
dionysus69 has joined #ruby
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
mfaeh has quit [Remote host closed the connection]
mfaeh has joined #ruby
<Psy-Q> how can i lay out my rubygems-in-development so i can develop e.g. 2 gems in parallel and load the freshest lib/foobar.rb from disk from inside a gem that provides bin/foobar?
nofxxxx has quit [Ping timeout: 258 seconds]
bronson has joined #ruby
<Psy-Q> or maybe those are bad example names. bin/dosomething is in one gem and requires lib/foobar.rb from another
Rodya_ has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
ferr has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
GodFather has quit [Ping timeout: 268 seconds]
<elomatreb> Psy-Q: If I understand you correctly, bundlers :path may be what you want: https://bundler.io/v1.15/man/gemfile.5.html#PATH
<Psy-Q> elomatreb: thanks, so i would simply have to change that manually when i publish the gems?
<elomatreb> Mh, you could probably require the local version using path in a group block
<elomatreb> I.e. gem "something", path: "some/path", group: :development I think
<Psy-Q> oh, interesting! i'll look into that
juggler has quit [Remote host closed the connection]
nhhc_ has quit [Quit: Leaving]
hightower2 has quit [Ping timeout: 240 seconds]
hightower4 has quit [Ping timeout: 268 seconds]
InfinityFye has joined #ruby
rgtk has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
antgel has quit [Ping timeout: 248 seconds]
frmendes has joined #ruby
alex`` has quit [Quit: WeeChat 1.9]
im0nde has joined #ruby
romankapitonov has joined #ruby
alex`` has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
coenraad has quit [Ping timeout: 268 seconds]
sparkyy has joined #ruby
camilasann has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
camilasan has joined #ruby
jameser_ has joined #ruby
jameser has quit [Ping timeout: 268 seconds]
Serpent7776 has joined #ruby
doublemalt_ has quit [Ping timeout: 240 seconds]
uZiel has quit [Ping timeout: 248 seconds]
milardovich has joined #ruby
hotpancakes has joined #ruby
jameser_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit []
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
astrobunny has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
doublemalt_ has joined #ruby
BSAlb has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
ltem has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
Bhootrk_ has joined #ruby
Rodya_ has quit [Ping timeout: 276 seconds]
GodFather has joined #ruby
Bhootrk_ has quit [Read error: Connection reset by peer]
hightower2 has joined #ruby
hightower4 has joined #ruby
mfaeh has quit [Remote host closed the connection]
mfaeh has joined #ruby
joast has quit [Ping timeout: 246 seconds]
mfaeh has quit [Remote host closed the connection]
mfaeh has joined #ruby
agent_white has quit [Quit: bai]
jenrzzz has joined #ruby
rgtk has quit [Ping timeout: 268 seconds]
TomyWork has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
apparition has joined #ruby
sgen has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 260 seconds]
antgel has joined #ruby
latemus has quit [K-Lined]
sepp2k has joined #ruby
rgtk has joined #ruby
coenraad has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
mikecmpb_ has joined #ruby
apparition47 has joined #ruby
petruff has joined #ruby
doublemalt_ has quit [Read error: Connection reset by peer]
DoubleMalt has joined #ruby
guardianx has joined #ruby
DoubleMalt has quit [Read error: Connection reset by peer]
brent__ has joined #ruby
im0nde has quit [Ping timeout: 260 seconds]
petto___ has joined #ruby
astrobunny has joined #ruby
CVTJNII_ has joined #ruby
im0nde has joined #ruby
ramfjord has joined #ruby
bronson has joined #ruby
CVTJNII has quit [Ping timeout: 260 seconds]
petto___ is now known as pe_to
pe_to is now known as petto
brent__ has quit [Ping timeout: 268 seconds]
astrobunny has quit [Ping timeout: 255 seconds]
Rodya_ has joined #ruby
CVTJNII_ has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 255 seconds]
bronson has quit [Ping timeout: 255 seconds]
mfaeh has quit [Remote host closed the connection]
mfaeh has joined #ruby
inoperable has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
umaaji has quit [Ping timeout: 255 seconds]
ldnunes has joined #ruby
herbmillerjr has joined #ruby
stoffus has joined #ruby
tacoboy has joined #ruby
alex`` has quit [Quit: WeeChat 1.9]
petto has quit [Remote host closed the connection]
petto has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
lxsameer has joined #ruby
petto has quit [Ping timeout: 246 seconds]
alveric3 has quit [Quit: WeeChat 1.9]
alveric1 has joined #ruby
DoubleMalt has joined #ruby
DoubleMalt has quit [Client Quit]
dionysus69 has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
inoperable has quit [Quit: user rectified]
inoperable has joined #ruby
synthroid has joined #ruby
lacuna has joined #ruby
petto has joined #ruby
nowhere_man has joined #ruby
frmendes has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
petto has quit [Ping timeout: 255 seconds]
guardianx has left #ruby [#ruby]
cats has quit [Quit: Hey, what's that button do?]
inoperable has quit [Quit: user rectified]
inoperable has joined #ruby
frmendes has joined #ruby
__Yiota has joined #ruby
cats has joined #ruby
im0nde has quit [Ping timeout: 255 seconds]
sekmo has joined #ruby
inoperable has quit [Client Quit]
inoperable has joined #ruby
petto has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mfaeh has quit [Remote host closed the connection]
mfaeh has joined #ruby
jameser has joined #ruby
antgel has quit [Ping timeout: 260 seconds]
antgel has joined #ruby
im0nde has joined #ruby
astrobunny has joined #ruby
bronson has joined #ruby
yeticry has joined #ruby
yeticry_ has quit [Read error: Connection reset by peer]
astrobunny has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
jhooker has quit [Read error: Connection reset by peer]
bronson has quit [Ping timeout: 248 seconds]
im0nde has quit [Ping timeout: 240 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Ping timeout: 246 seconds]
jameser has joined #ruby
rgtk has quit [Ping timeout: 255 seconds]
kobain has joined #ruby
kobain has quit [Changing host]
kobain has joined #ruby
sekmo has quit [Ping timeout: 255 seconds]
Mortomes|Work has quit [Ping timeout: 260 seconds]
monument has joined #ruby
yew has joined #ruby
<yew> Why does Ruby allow you to modify class variables outside a class? Why do class variables propagate up to super classes? Seems pretty silly.
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<konsolebox> yew: metaprogramming
ltem has quit [Quit: Leaving]
coenraad has quit [Ping timeout: 260 seconds]
coenraad has joined #ruby
jzigmund has joined #ruby
sekmo has joined #ruby
charliesome has joined #ruby
GodFather has quit [Remote host closed the connection]
mim1k has joined #ruby
<dminuoso> yew: It is pretty silly and the reason why class variables are generally discouraged.
<dminuoso> yew: class instance variables are the preferred choice. :)
sekmo has quit [Client Quit]
rgtk has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
yew has quit [Quit: Leaving]
eljimmy has quit [Quit: This computer has gone to sleep]
yew has joined #ruby
iMadper` has quit [Remote host closed the connection]
<yew> dminuoso: how do you replace class variables with class instance variables?
<dminuoso> yew: you remove one @ ?
<dminuoso> :-)
__Yiota has joined #ruby
<dminuoso> yew: A class instance variable is just a plain instance variable. The trick is to understand that even a class is just an object, and as such can have instance variables.
eljimmy has joined #ruby
<yew> dminuoso: but what happens if you want a class variable which is common across all the objects of the class?
<dminuoso> yew: You use a class instance variable...
<dminuoso> Let me demonstrate
<yew> dminuoso: But you said not to use it
<dminuoso> yew: I said not to use class variables!
<dminuoso> This may be easier shown than explained. Give me a second.
<yew> dminuoso: What is the point of class variables existing if they shouldn't be used?
<dminuoso> yew: It's for the case where the inheritance behavior _is_ desirable.
<dminuoso> I cant think of any right now. :-P
<yew> dminuoso: Is it not possible to use class instance variables to simulate class variables?
<dminuoso> yew: It is, that's my point.
<yew> dminuoso: How do you do?
ta_ has quit [Quit: Leaving...]
ramfjord has joined #ruby
<yew> dminuoso: How do you do it?*
astrobunny has joined #ruby
<dminuoso> yew: https://eval.in/835146
<dminuoso> yew: You just use @foo but from within the context of the class itself.
<dminuoso> yew: Generally the rule of thumb is: If it's mutable: use a constant and freeze it, if it's not use a class instance variable.
<dminuoso> Oh, other way around. But you get the idea.
<yew> dminuoso: Yeah, but constants in Ruby aren't actually /constant/
apparition47 has quit [Ping timeout: 255 seconds]
<dminuoso> yew: Which is why you should freeze it too. ;-)
bronson has joined #ruby
rgtk has quit [Ping timeout: 240 seconds]
rfoust has joined #ruby
<yew> dminuoso: Freezing doesn't stop you from reassigning a constant
<dminuoso> yew: No but Ruby will help you there. In strict mode it will blow up
<yew> dminuoso: How do I enable strict mode?
ramfjord has quit [Ping timeout: 240 seconds]
<dminuoso> Errr. freeze does.
astrobunny has quit [Ping timeout: 246 seconds]
high_fiver has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
<dminuoso> Mmm. Weird.
<dminuoso> I hate Ruby.
<dminuoso> Bye
DLSteve has joined #ruby
<yew> dminuoso: Bye?
sepp2k has joined #ruby
cdg has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
hotpancakes has joined #ruby
rfoust has quit [Client Quit]
<yew> Is it still acceptable to use class variables but to be disciplined in using them, kinda like how in Python all members of a class are public?
<dminuoso> yew: It should not be.
<matthewd> yew: It is of course acceptable to use them if they're what you need... they're just probably not what you actually need/want.
<yew> Okay, thanks.
<dminuoso> yew: The issue is that class variables leak implementation, and generally prevents your class from maintaining invariants.
<dminuoso> Anyone can inherit from your class and then fiddle around with it.
<matthewd> dminuoso: That's not a very compelling argument.. this is ruby, after all.
ta_ has joined #ruby
<dminuoso> matthewd: You are right, I should be freezing all my classes. :-)
<matthewd> IMO it's less about "they allow tampering" and more about "they don't work how you think they do, and that will bite you"
uZiel has joined #ruby
AxelAlex has quit [Quit: AxelAlex]
<dminuoso> matthewd: Perhaps this is just my C++ showing here. Thinking about contracts and invariants has been burned into my mind..
<yew> matthewd: I guess that is true since this works in ruby: ruby -e 'CONST=1; CONST=2; puts CONST'
mfaeh has quit [Remote host closed the connection]
<matthewd> Right. Ruby really doesn't do [enforced] contracts and invariants.. at best it does hurdles.
spider-mario has quit [Ping timeout: 248 seconds]
yew has quit [Quit: Leaving]
spider-mario has joined #ruby
yew has joined #ruby
chouhoulis has joined #ruby
<yew> dminuoso, matthewd: Okay, thanks a lot
yew has quit [Client Quit]
hightower2 has quit [Ping timeout: 246 seconds]
hightower4 has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 260 seconds]
profsimm has joined #ruby
<profsimm> Collection methods bug me. Why is it "remove" when I remove one item and "clear" when I remove all of them? Why is it "set" when I set one item and "replace" when I set all of them?
jenrzzz has joined #ruby
<dminuoso> profsimm: What class are you talking about?
hotpancakes has quit [Remote host closed the connection]
<profsimm> dminuoso: Hash for ex.
cschneid_ has joined #ruby
hotpancakes has joined #ruby
<matthewd> Words have meanings ¯\_(ツ)_/¯
jameser has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
jameser has joined #ruby
<dminuoso> profsimm: Ruby was designed by Japanese folks. You should the names of some of the C functions.
olivi____ has quit [Remote host closed the connection]
<profsimm> dminuoso: sounds fun :/
skweek has quit [Ping timeout: 260 seconds]
oliv_____ has joined #ruby
hotpanca_ has joined #ruby
cschneid_ has quit [Ping timeout: 276 seconds]
<dminuoso> profsimm: Indeed. You randomly then get fun comments to help you make sense of it.
<dminuoso> Like this:
hotpancakes has quit [Ping timeout: 276 seconds]
ineb has quit [Ping timeout: 255 seconds]
<profsimm> dminuoso: deal with naming
ineb has joined #ruby
<dminuoso> profsimm: This is one of my favourite ones: https://github.com/ruby/ruby/blob/trunk/compile.c#L3275
<dminuoso> It compiles arrays!
<dminuoso> At other spots you then have func, func0, func1 doing kind of similar things.. until they dont..
GodFather has joined #ruby
cdg has quit [Remote host closed the connection]
<profsimm> dminuoso: the O_o part is when it calls "compile_array_" with the exact same arguments, but also NULL and 0
<Papierkorb> more like an artifact of C not supporting function overloading
hotpanca_ has quit []
<Papierkorb> Or in this case, default arguments
<dminuoso> Papierkorb: It's more actually. In a lot of cases it's a kind of wrapping..
<profsimm> So if you have 5 variants, you'd have compile_array_() compile_array__() compile_array___() compile_array____() compile_array_____()?
<dminuoso> for example
chouhoulis has joined #ruby
<Papierkorb> profsimm: Well, maybe for a shit naming convention :D
<dminuoso> Papierkorb: I have seen very clean C projects. Ruby is not one of them.
<Papierkorb> As I said
<dminuoso> Ruby breaks the shit out of ctags.
theunraveler has joined #ruby
ar1a_ has quit [Ping timeout: 248 seconds]
ar1a has joined #ruby
Xiti` has joined #ruby
t-recx has joined #ruby
Rapture has joined #ruby
oleo has joined #ruby
Xiti has quit [Ping timeout: 255 seconds]
mrfoo has quit [Ping timeout: 260 seconds]
SteenJobs_ has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
enodata has joined #ruby
astrobunny has joined #ruby
bronson has joined #ruby
jhooker has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
griffindy has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 260 seconds]
mrfoo has joined #ruby
theunraveler has quit []
griffindy has quit [Client Quit]
govg has joined #ruby
haylon has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
ledestin has joined #ruby
mikecmpbll has joined #ruby
gizmore has joined #ruby
ResidentBiscuit has joined #ruby
mikecmpb_ has quit [Ping timeout: 240 seconds]
SteenJobs_ has quit [Quit: SteenJobs_]
ramfjord has joined #ruby
ledestin has quit [Ping timeout: 255 seconds]
t-recx has quit [Quit: t-recx]
anisha has quit [Quit: This computer has gone to sleep]
anisha has joined #ruby
anisha has quit [Remote host closed the connection]
anisha_ has joined #ruby
griffindy has joined #ruby
anisha_ has quit [Remote host closed the connection]
GinoMan has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
polishdub has joined #ruby
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<yorickpeterse> dminuoso: works fine with universal-ctags
<yorickpeterse> I use it in combination with vim-gutentags, works really well
cschneid_ has joined #ruby
uZiel has joined #ruby
sgen has joined #ruby
griffindy has quit [Ping timeout: 240 seconds]
lacuna has joined #ruby
t-recx has joined #ruby
TomyWork has quit [Remote host closed the connection]
lacuna has quit [Client Quit]
<dminuoso> yorickpeterse: Mmm, perhaps its just exuberant-ctags having issues?
<dminuoso> Though. I think Im using universal-ctags
SteenJobs_ has joined #ruby
TomyWork has joined #ruby
lacuna has joined #ruby
TomyWork has quit [Remote host closed the connection]
cschneid_ has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
cam27 has joined #ruby
enterprisey has joined #ruby
Azure|dc has joined #ruby
phinxy has joined #ruby
Azure has quit [Ping timeout: 248 seconds]
InfinityFye has quit [Quit: Leaving]
cdg has joined #ruby
PaulCapestany has quit [Quit: .]
cdg has quit [Ping timeout: 255 seconds]
rgtk has joined #ruby
ayonkhan has quit [Quit: Textual IRC Client: www.textualapp.com]
ergosum has joined #ruby
aufi has quit [Quit: Leaving]
perniciouscaffei has joined #ruby
nhhc has quit [Quit: Leaving]
hutch34 has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m27frogy has joined #ruby
kobain has joined #ruby
workmad3 has quit [Remote host closed the connection]
astrobunny has joined #ruby
ergosum has quit [Quit: Textual IRC Client: www.textualapp.com]
PaulCapestany has joined #ruby
TomyLobo2 has joined #ruby
bronson has joined #ruby
__Yiota has joined #ruby
dviola has joined #ruby
ramfjord has joined #ruby
astrobunny has quit [Ping timeout: 260 seconds]
mark_66 has quit [Remote host closed the connection]
SteenJobs_ has quit [Quit: SteenJobs_]
bronson has quit [Ping timeout: 268 seconds]
Serpent7776 has quit [Quit: Leaving]
ramfjord has quit [Ping timeout: 240 seconds]
jphase has joined #ruby
brent__ has joined #ruby
jackjackdripper has joined #ruby
Renich has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
nowhere_man has quit [Ping timeout: 248 seconds]
romankapitonov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has quit [Ping timeout: 248 seconds]
mikecmpbll has joined #ruby
ozcanesen has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
plujon has joined #ruby
cdg has joined #ruby
bruno- has joined #ruby
jenrzzz has joined #ruby
GinoMan has quit [Ping timeout: 258 seconds]
GinoMan has joined #ruby
GinoMan2440 has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 240 seconds]
amclain has joined #ruby
GinoMan has quit [Ping timeout: 255 seconds]
rundor has joined #ruby
uZiel has joined #ruby
rippa has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
high_fiver has quit [Ping timeout: 248 seconds]
uZiel has quit [Ping timeout: 248 seconds]
gusrub has joined #ruby
rgtk has quit [Ping timeout: 276 seconds]
alan_w has joined #ruby
high_fiver has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
synthroid has quit [Remote host closed the connection]
sneakerhax has quit [Ping timeout: 255 seconds]
synthroid has joined #ruby
Beams has quit [Quit: .]
astrobunny has joined #ruby
ColeHub has joined #ruby
kobain has quit [Ping timeout: 255 seconds]
synthroid has quit [Ping timeout: 260 seconds]
uZiel has joined #ruby
bronson has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
Psy-Q has quit [Quit: ZNC - http://znc.in]
VeryBewitching has joined #ruby
Psy-Q has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
astrobunny has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
petruff has quit [Ping timeout: 268 seconds]
GodFather has quit [Ping timeout: 240 seconds]
petruff has joined #ruby
rgtk has joined #ruby
andikr has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
moei has quit [Quit: Leaving...]
mim1k has joined #ruby
matthewd has quit [Ping timeout: 240 seconds]
matthewd has joined #ruby
<ResidentBiscuit> I have an rspec stub that says `expect(user).to receive(:foo)`, but the code being tested is `user.try(:foo)`. When I run rspec, I get an error `received unexpected message :try with (:foo)` The code could change how exactly it calls that method, but the tests shouldn't break because of that. Is there something I need to enable to make this work? My google-fu hasn't found this issue out there.
someuser has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
haylon has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 255 seconds]
lxsameer has quit [Quit: WeeChat 1.7]
<baweaver> expect(user).to receive(:try).with(:foo)
<baweaver> It's mad that it's receiving a method it didn't expect (try)
dviola has quit [Quit: WeeChat 1.9]
kies has quit [Ping timeout: 255 seconds]
uZiel has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
sepp2k has quit [Quit: Leaving.]
darkred has joined #ruby
ansraliant has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby
ferr has quit [Quit: WeeChat 1.9]
perniciouscaffei has joined #ruby
ansraliant has joined #ruby
ansraliant has joined #ruby
ansraliant has quit [Changing host]
darkred has left #ruby ["No boundaries on the net!"]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
digitalnomad has joined #ruby
sarmiena_ has joined #ruby
z0mbee has quit [Ping timeout: 276 seconds]
catbusters has joined #ruby
high_fiver has quit [Ping timeout: 248 seconds]
z0mbee has joined #ruby
sarmiena_ has quit [Client Quit]
eckhardt has joined #ruby
claw has quit [Ping timeout: 255 seconds]
gusrub has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 268 seconds]
biberu has joined #ruby
__Yiota has joined #ruby
eightlimbed has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
rabajaj has joined #ruby
sepp2k has joined #ruby
synthroid has joined #ruby
<rabajaj> i am trying to add this code to the models file, strip function is working as it should
<rabajaj> instead i am getting the entire string value that is present in search
Antiarc has quit [Read error: Connection reset by peer]
<rabajaj> ?
tacoboy has quit [Read error: Connection reset by peer]
<rabajaj> ^^
__Yiota has quit [Ping timeout: 246 seconds]
Antiarc has joined #ruby
<apeiros> rabajaj: what?
cam27 has quit [Quit: cam27]
renchan has quit [Quit: Leaving...]
rgtk has quit [Ping timeout: 255 seconds]
hutch34_ has joined #ruby
claw has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
ColeHub has quit [Quit: Snooze.]
jnollette has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
gothicsouth has joined #ruby
eightlimbed has quit [Remote host closed the connection]
dviola has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
ansraliant has quit [Ping timeout: 246 seconds]
oliv_____ has quit [Remote host closed the connection]
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AxelAlex has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dviola has quit [Quit: WeeChat 1.9]
lacuna has joined #ruby
dviola has joined #ruby
bronson has joined #ruby
rundor has quit [Remote host closed the connection]
postmodern has joined #ruby
kies has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
rundor has joined #ruby
ColeHub has joined #ruby
__Yiota has joined #ruby
<apeiros> rabajaj: ok, 30min no follow up. I guess it's not that important
ColeHub has quit [Client Quit]
marxarelli|afk is now known as marxarelli
cdg_ has joined #ruby
<havenwood> rabajaj: If mind reading is what you're looking for, change `search =` (setting a local variable) to `self.search =` (using a setter method). That's my guess.
<rabajaj> havenwood, apeiros sorry i was afk and dint see your messages :(
* havenwood appreciates instance variables
<rabajaj> havenwood, could you give an example of setter method ?
<havenwood> rabajaj: Does it work as you intend with?: self.search_attr = search.strip
<havenwood> rabajaj: #search_attr=
<havenwood> you're not intending to set a local variable there, right? because that's what you're doing.
cdg has quit [Ping timeout: 258 seconds]
coenraad has quit [Ping timeout: 260 seconds]
<havenwood> rabajaj: search_attr = search.strip; defined?(search_attr) #=> "local-variable"
<havenwood> rabajaj: does that makes sense?
coenraad has joined #ruby
t-recx has quit [Quit: t-recx]
<rabajaj> i am trying to understand :P
<havenwood> rabajaj: This might be a better question for the #RubyOnRails channel.
<rabajaj> give me one sec
<havenwood> rabajaj: put a binding.pry in there and take a look
aupadhye has quit [Ping timeout: 248 seconds]
<rabajaj> havenwood, i dont want to set a local variable there but i have to right if i want to store the value of search.strip ?
oliv_____ has joined #ruby
ColeHub has joined #ruby
<havenwood> rabajaj: store it for what?
<rabajaj> so that i can append a space in the front
<havenwood> rabajaj: do you use it later in the method?
<rabajaj> yup
<havenwood> rabajaj: show more code
<havenwood> ?gist
<ruby[bot]> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
coenraad has quit [Ping timeout: 246 seconds]
pwned has quit [Ping timeout: 255 seconds]
oliv_____ has quit [Remote host closed the connection]
<rabajaj> there a search variable which contains the value filled in the search field, eg " name = rahul". i want to strip that value using `before_save` callback method
pwned has joined #ruby
cam27 has joined #ruby
<havenwood> rabajaj: You're trying to strip the :search field before you save?
<rabajaj> yes
cschneid_ has quit [Remote host closed the connection]
rundor has quit [Remote host closed the connection]
<havenwood> rabajaj: before_validation { self.search = search&.strip }
<havenwood> rabajaj: consider other options, think about when it's happening
<havenwood> rabajaj: ask in the #rubyonrails channel
yeticry has quit [Ping timeout: 260 seconds]
<rabajaj> #RubyOnRails :Cannot join channel (+r) - you need to be identified with services :P
duderonomy has joined #ruby
jackjackdripper has joined #ruby
<havenwood> ?rails rabajaj
<ruby[bot]> rabajaj: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<havenwood> ?register rabajaj
<ruby[bot]> rabajaj: you need to be identified with NickServ, see `/msg NickServ HELP` or: https://freenode.net/kb/answer/registration
<rabajaj> cool thanks
<havenwood> you're welcome
<rabajaj> highly appreciated :)
jenrzzz has joined #ruby
olivi____ has joined #ruby
mikecmpbll has joined #ruby
synthroid has quit [Remote host closed the connection]
t-recx has joined #ruby
jnollette has joined #ruby
synthroid has joined #ruby
skweek has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
AxelAlex has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Quit: WeeChat 1.9]
tau has joined #ruby
ramfjord has joined #ruby
robouk has joined #ruby
Nowaker has joined #ruby
petruff has quit [Ping timeout: 260 seconds]
<Nowaker> Howdy! ERB.new('').result_with_hash raises undefined method `result_with_hash' on me. Ruby 2.4.1. This method should be there according to documentation. Thoughts? https://ruby-doc.org/stdlib-2.4.1/libdoc/erb/rdoc/ERB.html#method-i-result_with_hash
<Nowaker> Just to show the version is correct:
<Nowaker> 2.4.1 :004 > ERB.new('').result_with_hash
<Nowaker> NoMethodError: undefined method `result_with_hash' for #<ERB:0x00000001deeaa8>
petruff has joined #ruby
gusrub has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
petto has quit [Remote host closed the connection]
petto has joined #ruby
<Nowaker> it appears it'll be part of Ruby 2.5 - https://docs.ruby-lang.org/en/trunk/NEWS.html
<Nowaker> so the docs are wrong
yeticry has joined #ruby
cschneid_ has joined #ruby
<havenwood> Nowaker: I can confirm, doesn't work in 2.4 but does in 2.5 nightly: ERB.new('').result_with_hash({}) #=> ""
<havenwood> Docs got a bit ahead of themselves.
<havenwood> Nowaker: You might want to start an issue on the tracker: https://bugs.ruby-lang.org/projects/ruby-trunk/issues
<havenwood> Nowaker: I'm sure a patch would be much appreciated.
cagomez has joined #ruby
petto has quit [Ping timeout: 255 seconds]
SeepingN has joined #ruby
rabajaj has quit [Quit: Leaving]
t-recx has quit [Quit: t-recx]
cschneid_ has quit [Ping timeout: 246 seconds]
tacoboy has joined #ruby
bronson has joined #ruby
astrobunny has joined #ruby
sepp2k has quit [Ping timeout: 255 seconds]
Rodya_ has joined #ruby
cadillac_ has joined #ruby
ansraliant has joined #ruby
ansraliant has joined #ruby
ansraliant has quit [Changing host]
bronson has quit [Ping timeout: 240 seconds]
astrobunny has quit [Ping timeout: 268 seconds]
Rodya_ has quit [Ping timeout: 246 seconds]
bluesocksyellowt has joined #ruby
nowhere_man has joined #ruby
lxsameer has joined #ruby
high_fiver has joined #ruby
pwned has quit [Ping timeout: 240 seconds]
high_fiver has quit [Remote host closed the connection]
alex`` has joined #ruby
loincloth has quit []
nowhere_man has quit [Ping timeout: 268 seconds]
high_fiver has joined #ruby
newalexandria_ has joined #ruby
cagomez has quit [Remote host closed the connection]
catbusters has quit [Quit: Connection closed for inactivity]
cagomez has joined #ruby
sarmiena_ has joined #ruby
newalexandria_ has quit [Client Quit]
olivi____ has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 268 seconds]
cagomez has quit [Ping timeout: 240 seconds]
olivi____ has joined #ruby
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
yeticry has joined #ruby
KeyJoo has joined #ruby
<graft> so i'm doing an http request using net::http (actually net::http::persistent), and the response object i'm getting back says it has already been read (i.e., if i call response.read_body with a block it complains that it was already read)
<graft> but i'm not reading it - who is? is this expected behavior, that the response from http.request will have already been read?
wilbert has joined #ruby
petto has joined #ruby
<graft> or a better question: what do you need to get an unread response (so i can read it in chunks)
cam27 has quit [Quit: cam27]
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
petto has quit [Ping timeout: 240 seconds]
lacuna has joined #ruby
frmendes has quit [Ping timeout: 260 seconds]
gigetoo has quit [Ping timeout: 260 seconds]
petruff has quit [Ping timeout: 240 seconds]
<bluesocksyellowt> @graft afaik read_body is the way to do that. do you have code to share?
cschneid_ has joined #ruby
gigetoo has joined #ruby
nadir has joined #ruby
sepp2k has joined #ruby
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lacuna has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
GodFather has joined #ruby
t-recx has joined #ruby
lacuna has quit [Ping timeout: 255 seconds]
<graft> bluesocksyellowt: i'm using read_body, however read_body raises if it has already been called before, and i'm not sure why that's happening
dionysus70 has joined #ruby
<bluesocksyellowt> reduced example would help.
dionysus69 has quit [Ping timeout: 240 seconds]
dionysus70 is now known as dionysus69
<graft> blerm. lemme make a gist
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
bronson has joined #ruby
astrobunny has joined #ruby
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
mrfoo has quit [Quit: WeeChat 0.3.7]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
astrobunny has quit [Ping timeout: 248 seconds]
__Yiota has quit [Remote host closed the connection]
__Yiota has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Ping timeout: 276 seconds]
ta_ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 268 seconds]
ta_ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta__ has joined #ruby
ta__ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
ta__ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
ta__ has quit [Read error: Connection reset by peer]
im0nde has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
synthroid has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
Rapture has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroid has joined #ruby
claw has quit [Ping timeout: 255 seconds]
ta_ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
spider-mario has quit [Ping timeout: 276 seconds]
cschneid_ has joined #ruby
ta_ has joined #ruby
Rapture has joined #ruby
alex`` has quit [Quit: WeeChat 1.9]
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
oliv_____ has quit [Client Quit]
nowhere_man has joined #ruby
hahuang65 has joined #ruby
oliv_____ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
alex`` has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
ta_ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
stoffus has quit [Ping timeout: 246 seconds]
ta_ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
brent__ has quit [Read error: Connection reset by peer]
ar1a has quit [Ping timeout: 255 seconds]
brent__ has joined #ruby
ta_ has joined #ruby
brent__ has quit [Read error: Connection reset by peer]
ar1a has joined #ruby
brent__ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
Trynemjoel has joined #ruby
rgtk has joined #ruby
A124 has quit [Quit: '']
ta_ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
P1ro_ has joined #ruby
cagomez has joined #ruby
ta_ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
Trynemjoel has quit [Client Quit]
cschneid_ has joined #ruby
A124 has joined #ruby
ta_ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
Trynemjoel has joined #ruby
ta_ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
ta_ has joined #ruby
cschneid_ has quit [Ping timeout: 276 seconds]
ansraliant has quit [Quit: WeeChat 1.9]
ltem has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
rgtk has quit [Ping timeout: 255 seconds]
olivi____ has quit [Ping timeout: 240 seconds]
claw has joined #ruby
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
rundor has joined #ruby
jphase has quit [Ping timeout: 268 seconds]
ta_ has joined #ruby
astrobunny has joined #ruby
Rodya_ has joined #ruby
sleepee has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
moei has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
ur5us has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
ElFerna has joined #ruby
sgen has quit [Quit: Leaving]
ramfjord has joined #ruby
synthroid has quit []
im0nde has quit [Read error: Connection reset by peer]
sgen has joined #ruby
spider-mario has joined #ruby
mim1k has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
olivi____ has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
rundor has quit [Remote host closed the connection]
someuser has quit [Ping timeout: 240 seconds]
olivi____ has quit [Quit: Leaving...]
rundor has joined #ruby
Jayson_Virissimo has joined #ruby
tvw has quit [Ping timeout: 255 seconds]
ta_ has quit [Remote host closed the connection]
enodata has left #ruby [#ruby]
rgtk has joined #ruby
ta_ has joined #ruby
ldnunes has quit [Quit: Leaving]
gothicsouth has joined #ruby
cschneid_ has joined #ruby
marxarelli is now known as marxarelli|afk
sgen has quit [Quit: Leaving]
BTRE has quit [Read error: Connection reset by peer]
sgen has joined #ruby
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
brent__ has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
psychicist__ has joined #ruby
rundor has quit [Remote host closed the connection]
someuser has joined #ruby
ta_ has joined #ruby
bronson has joined #ruby
m27frogy has quit [Ping timeout: 255 seconds]
_netglider_ has joined #ruby
_netglider_ has quit [Client Quit]
m27frogy has joined #ruby
netglider has joined #ruby
marxarelli|afk is now known as marxarelli
marxarelli is now known as marxarelli|afk
netglider has quit [Client Quit]
bronson has quit [Ping timeout: 255 seconds]
ta_ has quit [Remote host closed the connection]
netglider has joined #ruby
monument has quit [Remote host closed the connection]
profsimm has quit [Ping timeout: 260 seconds]
netglider has quit [Client Quit]
ramfjord has quit [Ping timeout: 255 seconds]
milardovich has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zenguy_pc has quit [Ping timeout: 258 seconds]
ozcanesen has joined #ruby
someuser has quit [Ping timeout: 248 seconds]
milardovich has quit [Remote host closed the connection]
dmtd has quit [Quit: Connection closed for inactivity]
gusrub has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
gusrub has joined #ruby
ta_ has joined #ruby
kobain has joined #ruby
netglider has joined #ruby
tau has quit [Remote host closed the connection]
wilbert has quit [Ping timeout: 240 seconds]
zenguy_pc has joined #ruby
ramfjord has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
brent__ has joined #ruby
ta_ has quit [Remote host closed the connection]
nacsurte has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
nowhere_man has quit [Read error: Connection reset by peer]
SeepingN has quit [Ping timeout: 255 seconds]
jhooker has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
jhooker has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
joast has joined #ruby
nowhere_man has joined #ruby
jenrzzz has quit [Quit: Lost terminal]
AxelAlex has joined #ruby
netglider has quit [Quit: Konversation terminated!]
ltem has quit [Quit: Leaving]
Trynemjoel has quit [Quit: Quitting]
astrobunny has quit [Ping timeout: 255 seconds]
nowhere_man has quit [Ping timeout: 248 seconds]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
biberu has quit []
brent__ has quit [Ping timeout: 260 seconds]
BTRE has joined #ruby
Trynemjoel has joined #ruby
nowhere_man has joined #ruby
cam27 has joined #ruby
ElFerna has quit [Ping timeout: 240 seconds]
<graft> nuts. seems like Net::HTTP will always read the response body unless you use a block
ta_ has quit [Remote host closed the connection]
<graft> which is stupid behavior, i tell you
ozcanesen has quit [Quit: Textual IRC Client: www.textualapp.com]
GodFather has quit [Ping timeout: 240 seconds]
<graft> a block should be a convenience, not a requirement to produce a specific behavior
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<graft> so now i have to pass a stupid block all the way down my method chain instead of just being able to return a Response object
GodFather has joined #ruby
ta_ has joined #ruby
cdg_ has quit [Remote host closed the connection]
roshanavand has quit [Quit: roshanavand]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
ElFerna has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
ta_ has quit [Remote host closed the connection]
enodata has joined #ruby
hutch34_ has quit [Ping timeout: 246 seconds]
<elomatreb> graft: Can you #rewind the response?
Jayson_Virissimo has quit []
jhooker has quit [Ping timeout: 276 seconds]
jhooker has joined #ruby
cagomez has quit [Remote host closed the connection]
jdelStrother has joined #ruby
cagomez has joined #ruby
jdelStrother is now known as Guest71446
sepp2k has quit [Read error: Connection reset by peer]
brent__ has joined #ruby
bronson has joined #ruby
sepp2k has joined #ruby
rgtk has quit [Ping timeout: 240 seconds]
<darix> graft: some sample code might help
marxarelli|afk is now known as marxarelli
jphase has joined #ruby
ElFerna has quit [Ping timeout: 240 seconds]
enodata has quit [Quit: enodata]
hutch34_ has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 255 seconds]
gigetoo has joined #ruby
<graft> elomatreb: nah, my whole purpose is to avoid reading it into memory in the first place
ElFerna has joined #ruby
jphase has quit [Remote host closed the connection]
grant has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
<Radar> hahuang65: du bist gut?
<Radar> Whoops.
* Radar is not here
sepp2k has quit [Read error: Connection reset by peer]
mim1k has joined #ruby
astrobunny has joined #ruby
high_fiver has quit [Ping timeout: 260 seconds]
AX31_A13X has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
bluesocksyellowt is now known as DonaldTrump
DonaldTrump is now known as __DonaldTrump__
ecuanaso has joined #ruby
ElFerna has quit [Ping timeout: 255 seconds]
lxsameer has quit [Quit: WeeChat 1.9]
AxelAlex has quit [Ping timeout: 255 seconds]
mim1k has quit [Ping timeout: 260 seconds]
uZiel has quit [Ping timeout: 248 seconds]
astrobunny has quit [Ping timeout: 255 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
uZiel has joined #ruby
<hays> is there a better way to express this pattern https://bpaste.net/show/60567127fb83
cagomez has quit [Remote host closed the connection]
jhooker has quit [Quit: Leaving]
<Papierkorb> hays: yes, `only_cool_ones = foo.select{|x| x['baz'] == value}`
cadillac__ has joined #ruby
<Papierkorb> &ri Enumerable#select hays
GodFather has joined #ruby
<hays> great
<Papierkorb> For more information on that method, see the docs ^
SeepingN has joined #ruby
digitalnomad has joined #ruby
cadillac_ has quit [Ping timeout: 246 seconds]
cadillac__ is now known as cadillac_
t-recx has quit [Quit: t-recx]
<hays> does this seem reasonable? wrapping that in a hash definition basically https://bpaste.net/show/75d21f4fd042
dcunit3d has joined #ruby
<hays> or is it better to define the hash first and then populate it outside the definition
Renich has quit [Quit: Renich]
<Papierkorb> hays: For this, I'd prefer to write it on a single line. If that's too hard to read, it's the sign that you should filter first and assign later
cagomez has joined #ruby
jenrzzz has quit [Quit: Lost terminal]
polishdub has quit [Quit: leaving]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
kkiero has joined #ruby
KeyJoo has quit [Ping timeout: 248 seconds]
alveric2 has joined #ruby
dcunit3d has quit [Ping timeout: 255 seconds]
robouk has quit [Quit: Konversation terminated!]
robouk has joined #ruby
alveric1 has quit [Ping timeout: 255 seconds]
digitalnomad has joined #ruby
ta_ has quit [Remote host closed the connection]
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uZiel has quit [Ping timeout: 248 seconds]
kith has joined #ruby
frmendes has joined #ruby
vee_ has joined #ruby
umaaji has joined #ruby
bronson has joined #ruby
emers2n has joined #ruby
facest has quit [Ping timeout: 260 seconds]
frmendes has quit [Quit: leaving]
<emers2n> I want to decrement a string like so "hello" = ["ello", "llo", "lo", "o"]. Is there a built in function to do this?
facest has joined #ruby
jenrzzz_ has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
dcunit3d has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
jnollette has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
alex`` has quit [Quit: WeeChat 1.9]
alex`` has joined #ruby
GodFather has joined #ruby
<emers2n> @emers2n Looks like not - just need a for loop and a splice
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> >> require 'abbrev'; Abbrev.abbrev(['hello']).keys
<ruby[bot]> havenwood: # => ["hello", "hell", "hel", "he", "h"] (https://eval.in/835437)
<havenwood> emers2n: There is.