<nchambers>
well if anyone wants to take a look, https://github.com/SpookyPac/www does anyone know why app/views/index.slim has a div with the class editor-container, and a textarea with the class editor, but my css rule in public/css/index.css for ".editor-container .editor {" doesn't match it?
SesMan has joined #ruby
ponga has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
zotherstupidguy has joined #ruby
jenrzzz has joined #ruby
xall_ has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<tobiasvl>
nchambers: because your rule says .edtior-container
<nchambers>
what do you mean?
<tobiasvl>
there's a typo, .editor-container vs .edtior-container
<nchambers>
god damn it
<nchambers>
thank you
<tobiasvl>
:)
dgncn has joined #ruby
Burgestrand has joined #ruby
workerbeetwo has joined #ruby
<nchambers>
yep works perfectly now
bigkevmcd has quit [Read error: Connection reset by peer]
<workerbeetwo>
Hi ther. what a good container for hashes? Id like to add and each loop through them.
<frankiee_>
dminuoso_: There is no /usr/local/lib/ruby/gems/2.3/bin actually. Each gem has its own bin but I can't possible add all those to my path?
Humdai has left #ruby ["Leaving"]
jsrn_ has joined #ruby
mim1k|wo1k is now known as mim1k|work
ponga has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
cyphase has joined #ruby
dionysus69 has joined #ruby
ponga has joined #ruby
palms has quit [Ping timeout: 260 seconds]
JesseH has quit [Ping timeout: 256 seconds]
ace05 has joined #ruby
Chair has joined #ruby
braincrash has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
ace05 has quit [Ping timeout: 250 seconds]
elenatanasoiu has joined #ruby
zotherstupidguy has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
bturker has quit [Ping timeout: 256 seconds]
ponga has quit [Ping timeout: 260 seconds]
ziarkaen has joined #ruby
<Burgestrand>
frankiee_ typically ruby places gem binaries in the directory given by: `ruby -e 'p RbConfig::CONFIG["bindir"]'` (I assume you're talking about rubygem executables), which it's then enough to add that to your PATH
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pupeno has joined #ruby
wjimenez5271 has joined #ruby
ponga has joined #ruby
Dimik has quit [Ping timeout: 256 seconds]
Burgestrand has joined #ruby
JesseH has joined #ruby
zotherstupidguy has quit [Ping timeout: 244 seconds]
<frankiee_>
Burgestrand: Yeah! That links to /usr/local/bin where bundle23, gist23 etc. lives. What gave these binaries this 23 ending in the first place?
<Burgestrand>
frankiee_ am I right in guessing you're using your OS's package manager to install ruby?
<Burgestrand>
frankiee_ (e.g. apt, yum, etc)
flying has joined #ruby
<frankiee_>
Burgestrand: Yep, OpenBSD's pkg_add
<frankiee_>
It usually asks at the end if I want to rename *23 to *, I guess I must have missed it
<frankiee_>
(when I mass-installed everything)
<Burgestrand>
frankiee_ OS package managers install Ruby in a slightly peculiar way, by adding the Ruby version as a suffix to all binaries, in your case e.g. ruby23, bundle23. This is so that if you ever install e.g. ruby 1.9 you won't get name collisions, because then all the binaries in that ruby version will be suffixed with 19.
modlin has quit [Ping timeout: 276 seconds]
<Burgestrand>
frankiee_ However, if you ever install Ruby with e.g. rbenv, rvm, or any other acronym from the ruby world, you'll instead have a concept of "current ruby" in every shell session. In this case the binary will always be named the same, "ruby", but if you want to switch version at any time you will tell the version manager to switch, which will then alter your PATH to point to the right installation directory for that Ruby version, e.g. "rvm use 2.3"
CalimeroTeknik_ is now known as CalimeroTeknik
aswen has joined #ruby
claudiuinberlin has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
<Burgestrand>
frankiee_ (rbenv, rvm, chruby and similar are ruby version managers, i.e. help you manage multiple versions of ruby on a single machine, very useful if you work in different projects with different version requirements)
LoneHerm_ has joined #ruby
<frankiee_>
Burgestrand: Thanks for the explanation. I used rvm a while back but found it too complicated and time-consuming.
<frankiee_>
It's a great project though and the author is super-friendly.
<Burgestrand>
frankiee_ Yeah, there's always a learning curve to any tooling, not everybody has the time or patience for it. :)
<frankiee_>
Kept breaking all the time etc.
<frankiee_>
Yeah, true.
salut has joined #ruby
TomyWork has joined #ruby
zotherstupidguy has joined #ruby
phredus has quit [Ping timeout: 256 seconds]
Beams has joined #ruby
xall has quit [Ping timeout: 250 seconds]
zotherstupidguy has quit [Ping timeout: 245 seconds]
Rodya_ has quit [Remote host closed the connection]
modlin has joined #ruby
Rodya_ has joined #ruby
zotherstupidguy has joined #ruby
djbkd has joined #ruby
lenwood has quit [Ping timeout: 256 seconds]
CloCkWeRX has quit [Ping timeout: 250 seconds]
lenwood has joined #ruby
pandaant has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
addisaden has joined #ruby
pawnbox has quit [Remote host closed the connection]
jaruga___ has joined #ruby
PaulePanter has quit [Ping timeout: 248 seconds]
PaulePanter has joined #ruby
zotherstupidguy has quit [Ping timeout: 260 seconds]
jeyraof has joined #ruby
jeyraof has quit [Client Quit]
compro has quit [Ping timeout: 265 seconds]
Rodya_ has quit [Quit: Leaving...]
workmad3 has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
addisaden has left #ruby ["WeeChat 1.6"]
Robtop__ has quit [Read error: Connection reset by peer]
ace05 has joined #ruby
zotherstupidguy has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pwnd_nsfw has joined #ruby
A124 has quit [Quit: '']
alexherbo2 has joined #ruby
ace05 has quit [Ping timeout: 260 seconds]
A124 has joined #ruby
compro has joined #ruby
ferr has joined #ruby
Snowy has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
pawnbox has joined #ruby
elaptics has joined #ruby
mluts has joined #ruby
Burgestrand has joined #ruby
xall has joined #ruby
ur5us has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 250 seconds]
ur5us has joined #ruby
Averna has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
ur5us has quit [Ping timeout: 276 seconds]
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
meshsmith has joined #ruby
knutmithut has joined #ruby
splud_ has quit [Quit: splud_]
lenwood has quit [Ping timeout: 260 seconds]
TreyG has joined #ruby
SuperLag_ has joined #ruby
djbkd has quit []
fedruantine has quit [Quit: client exited: Ex-Chat]
xall_ has joined #ruby
SuperLag has quit [Ping timeout: 250 seconds]
xall has quit [Ping timeout: 244 seconds]
<meshsmith>
Olly olly oxen free.
SuperLag_ has quit [Ping timeout: 260 seconds]
SuperLag has joined #ruby
jaequery has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
emilkarl has joined #ruby
xall_ has quit [Read error: Connection reset by peer]
PaulePanter has quit [Read error: Connection reset by peer]
LambdaSi1 is now known as LambdaSix
modlin has quit [Remote host closed the connection]
antgel has joined #ruby
nettoweb has joined #ruby
ziarkaen has quit [Ping timeout: 244 seconds]
ziarkaen has joined #ruby
otherMike_ has quit [Remote host closed the connection]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
koooge has quit [Quit: Leaving...]
eelster has quit [Ping timeout: 252 seconds]
ace05 has joined #ruby
c355e3b has joined #ruby
aidalgol has quit [Quit: zZzZzZz]
miqlas-H has quit [Ping timeout: 256 seconds]
ace05 has quit [Ping timeout: 244 seconds]
bturker has joined #ruby
latpaw has quit [Ping timeout: 260 seconds]
djellemah has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
pawnbox has joined #ruby
noarthur has joined #ruby
Averna has quit [Quit: terminated!]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
teclator has quit [Ping timeout: 260 seconds]
ldnunes has joined #ruby
pawnbox has quit [Remote host closed the connection]
harai has quit [Ping timeout: 252 seconds]
rajdesai has quit [Remote host closed the connection]
pawnbox has joined #ruby
daemonwrangler has quit [Remote host closed the connection]
rajdesai has joined #ruby
Jameser has quit [Ping timeout: 252 seconds]
zotherstupidguy has quit [Ping timeout: 276 seconds]
Pupeno has quit [Remote host closed the connection]
rajdesai has quit [Ping timeout: 276 seconds]
shaman42 has joined #ruby
last_staff has quit [Quit: last_staff]
last_staff has joined #ruby
pwnd_nsfw` has joined #ruby
kies has quit [Read error: Connection reset by peer]
pwnd_nsfw has quit [Ping timeout: 256 seconds]
Immune has quit [Ping timeout: 260 seconds]
phredus has joined #ruby
zotherstupidguy has joined #ruby
fedruantine has joined #ruby
miqlas-H has joined #ruby
garyolee_ has quit []
lucast has joined #ruby
JeanCarloMachado has joined #ruby
Devalo has joined #ruby
astrobunny has quit [Remote host closed the connection]
rajdesai has joined #ruby
lenwood has joined #ruby
Devalo has quit [Ping timeout: 256 seconds]
quazimodo has joined #ruby
dviola has joined #ruby
compro has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
depesz has joined #ruby
depesz has left #ruby [#ruby]
<cevett>
I'm using rbenv for my ruby install, whats the difference between the gems installed in my /home/user/.gem folder versus my /home/user/.rbenv folder
PaulePanter has joined #ruby
quazimodo has quit [Ping timeout: 256 seconds]
TreyG_ has joined #ruby
allomov has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
Guest71746 has quit [Ping timeout: 248 seconds]
<cevett>
i think i solved my dependency issue (it was my code, go figure), but I'm still curious whats going on behind the scenes
TreyG has quit [Ping timeout: 245 seconds]
<chrisseaton>
cevett: Rubies running from rbenv use the latter only
<cevett>
interesting
<cevett>
that makes me wonder how anything got in the .gem folder in the first place
arashb has joined #ruby
<cevett>
time for a new dev box :)
allomov has quit [Ping timeout: 250 seconds]
Akuma has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<chrisseaton>
cevett: it would be possible to configure an rbenv Ruby to use ~/.gem instead, but you'd have to go out of your way to do that I think
JoshS has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
arashb has quit [Ping timeout: 256 seconds]
<cevett>
i'll keep that in mind if i ever see that in the future, but I'm pretty green at ruby and I don't want to start forming bad habits
allomov has joined #ruby
ziarkaen has quit [Ping timeout: 256 seconds]
ledestin has joined #ruby
johnmilton has quit [Remote host closed the connection]
pragmaticus has joined #ruby
Guest11503 has quit [Ping timeout: 256 seconds]
ledestin_ has joined #ruby
compro has joined #ruby
nuck has joined #ruby
nuck is now known as Guest10755
ledestin has quit [Ping timeout: 244 seconds]
teclator has joined #ruby
Burgestrand has joined #ruby
nadir has joined #ruby
zeroDi has joined #ruby
skweeke has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
meshsmith has quit [Remote host closed the connection]
teclator has quit [Read error: Connection reset by peer]
johnmilton has joined #ruby
johnmilton has quit [Remote host closed the connection]
johnmilton has joined #ruby
JeanCarloMachado has quit [Ping timeout: 252 seconds]
teclator has joined #ruby
aupadhye has joined #ruby
kmckelvin has quit [Quit: Connection closed for inactivity]
JeanCarloMachado has joined #ruby
miqlas-H has quit [Ping timeout: 244 seconds]
sparch has joined #ruby
<sparch>
oi
gingray has quit [Ping timeout: 250 seconds]
araujo has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby
workerbeetwo has quit [Quit: leaving]
ace05 has joined #ruby
araujo has quit [Max SendQ exceeded]
JesseH has quit [Ping timeout: 260 seconds]
lenwood has quit [Ping timeout: 256 seconds]
gnufied has joined #ruby
allomov has quit [Remote host closed the connection]
Hyuk has joined #ruby
ace05 has quit [Ping timeout: 265 seconds]
ziarkaen has joined #ruby
brendan- has quit [Read error: No route to host]
teclator has quit [Ping timeout: 250 seconds]
dviola has quit [Read error: Connection reset by peer]
mvxlr has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
eizua has joined #ruby
pawnbox has quit [Read error: No route to host]
eizua has quit [Max SendQ exceeded]
pawnbox has joined #ruby
eizua has joined #ruby
cibs has joined #ruby
Hyuk has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
eizua has quit [Max SendQ exceeded]
Hyuk has joined #ruby
JesseH has joined #ruby
eizua has joined #ruby
lifted has quit [Remote host closed the connection]
eizua has quit [Max SendQ exceeded]
eizua has joined #ruby
JeanCarl1Machado has joined #ruby
eizua has quit [Remote host closed the connection]
sdothum has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
gnufied has quit [Quit: Leaving]
gnufied has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
JesseH has quit [Ping timeout: 250 seconds]
teclator has joined #ruby
Snowy has quit [Remote host closed the connection]
elaptics_ has joined #ruby
nexocentric__ has joined #ruby
quazimodo has joined #ruby
flyingX has joined #ruby
patronus_ has joined #ruby
Fetch_ has joined #ruby
Madper|M` has joined #ruby
Rutix`away has joined #ruby
Rutix`away has joined #ruby
Rutix`away has quit [Changing host]
tyang has joined #ruby
chihhsin has joined #ruby
frankiee_ has quit [Read error: No route to host]
tw1sted_ has joined #ruby
rbr has quit [Disconnected by services]
anisha has quit [Quit: This computer has gone to sleep]
sniff has joined #ruby
rbr has joined #ruby
ericwood_ has joined #ruby
BriCursi1n has joined #ruby
freeze_ has joined #ruby
krandi has joined #ruby
rtl has joined #ruby
ccooke_ has joined #ruby
guacamol1 has joined #ruby
DefV_ has joined #ruby
ljarvis_ has joined #ruby
jzigmund_ has joined #ruby
chg_ has joined #ruby
doxterpe1per has joined #ruby
sts_ has joined #ruby
fbt_ has joined #ruby
SebastianThorn has joined #ruby
matti_ has joined #ruby
rprimus has joined #ruby
kallisti6 has joined #ruby
thomas1 has joined #ruby
alnewkirk has joined #ruby
sunya7a_ has joined #ruby
awk_ has joined #ruby
sunya7a_ has quit [Changing host]
sunya7a_ has joined #ruby
havenn has joined #ruby
havenn has joined #ruby
rprimus is now known as Guest87240
FIGO_ has joined #ruby
emilkarl has joined #ruby
Prira_ has joined #ruby
RazorX has joined #ruby
CloCkWeRX has joined #ruby
sysanthrope_ has joined #ruby
exchgr` has joined #ruby
_derpy has joined #ruby
kenichi_ has joined #ruby
soud_ has joined #ruby
quarcu_ has joined #ruby
scott4000_ has joined #ruby
Evan has joined #ruby
llua` has joined #ruby
mniip_ has joined #ruby
z3uS| has joined #ruby
mfl has joined #ruby
jinie_ has joined #ruby
fridayfriday has joined #ruby
Ankhers_ has joined #ruby
ghostlight has quit [Ping timeout: 245 seconds]
greenhat_ has joined #ruby
Evan is now known as Guest43733
Trynemjoel2 has joined #ruby
headius_ has joined #ruby
tris- has joined #ruby
snakehsu_ has joined #ruby
drale2k_ has joined #ruby
TheMoonMaster_ has joined #ruby
alexherbo2 has quit [*.net *.split]
jaruga___ has quit [*.net *.split]
flying has quit [*.net *.split]
djellemah has quit [*.net *.split]
elaptics has quit [*.net *.split]
dgncn has quit [*.net *.split]
andikr has quit [*.net *.split]
Ankhers has quit [*.net *.split]
awk has quit [*.net *.split]
ccooke has quit [*.net *.split]
Prira has quit [*.net *.split]
freedrull has quit [*.net *.split]
sniff_ has quit [*.net *.split]
nexocentric_ has quit [*.net *.split]
j416 has quit [*.net *.split]
KrzaQ has quit [*.net *.split]
Platini has quit [*.net *.split]
mtkd has quit [*.net *.split]
chazu has quit [*.net *.split]
wldcordeiro has quit [*.net *.split]
havenwood has quit [*.net *.split]
tw1sted has quit [*.net *.split]
oddmunds has quit [*.net *.split]
soud has quit [*.net *.split]
llua has quit [*.net *.split]
exchgr has quit [*.net *.split]
weaksauce has quit [*.net *.split]
spiette has quit [*.net *.split]
fbt has quit [*.net *.split]
doxterpepper has quit [*.net *.split]
sysanthrope has quit [*.net *.split]
Madper|Moyu has quit [*.net *.split]
Rutix has quit [*.net *.split]
kenichi has quit [*.net *.split]
Trynemjoel has quit [*.net *.split]
sunya7a has quit [*.net *.split]
rtl_ has quit [*.net *.split]
headius has quit [*.net *.split]
sindork has quit [*.net *.split]
chihhsin_ has quit [*.net *.split]
Fetch has quit [*.net *.split]
ericwood has quit [*.net *.split]
rprimus_ has quit [*.net *.split]
Sebastia1Thorn has quit [*.net *.split]
jsaak_ has quit [*.net *.split]
jzigmund has quit [*.net *.split]
chg has quit [*.net *.split]
thomas has quit [*.net *.split]
ljarvis has quit [*.net *.split]
tris has quit [*.net *.split]
Guest77004 has quit [*.net *.split]
friday has quit [*.net *.split]
drale2k has quit [*.net *.split]
jinie has quit [*.net *.split]
matti has quit [*.net *.split]
moufl has quit [*.net *.split]
RazorX- has quit [*.net *.split]
kallisti5 has quit [*.net *.split]
mniip has quit [*.net *.split]
scott4000 has quit [*.net *.split]
rhinosic has quit [*.net *.split]
DefV has quit [*.net *.split]
phantummm has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
alnewkir1 has quit [*.net *.split]
snakehsu has quit [*.net *.split]
_br__ has quit [*.net *.split]
patronus has quit [*.net *.split]
freeze has quit [*.net *.split]
guacamole has quit [*.net *.split]
jtperreault has quit [*.net *.split]
z3uS has quit [*.net *.split]
sts has quit [*.net *.split]
BriCursion has quit [*.net *.split]
greenhat has quit [*.net *.split]
quarcu has quit [*.net *.split]
`derpy has quit [*.net *.split]
soud_ is now known as soud
FIGO_ is now known as Platini
mfl is now known as moufl
soud has quit [Changing host]
soud has joined #ruby
havenn is now known as havenwood
snakehsu_ is now known as snakehsu
matti_ is now known as matti
fridayfriday is now known as friday
z3uS| is now known as z3uS
_br__ has joined #ruby
jsaak has joined #ruby
tris- is now known as tris
KrzaQ has joined #ruby
j416 has joined #ruby
griffindy has joined #ruby
mtkd has joined #ruby
freedrull has joined #ruby
JesseH has joined #ruby
sindork has joined #ruby
last_staff has quit [Quit: last_staff]
chazu has joined #ruby
pandaant has quit [Remote host closed the connection]
dgncn has joined #ruby
ben______ has quit [Remote host closed the connection]
ghostlight has joined #ruby
devster31 has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
funnel has quit [Ping timeout: 250 seconds]
cjbischof_ has joined #ruby
chg_ is now known as chg
djellemah has joined #ruby
oddmunds has joined #ruby
alexherbo2 has joined #ruby
rhinosic has joined #ruby
jtperreault has joined #ruby
funnel has joined #ruby
phantummm has joined #ruby
wldcordeiro has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
johnmilton has quit [Remote host closed the connection]
devster31 has joined #ruby
symm- has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tvw has quit [Ping timeout: 250 seconds]
johnmilton has joined #ruby
frankiee_ has joined #ruby
pwnd_nsfw` has quit [Read error: Connection reset by peer]
pwnd_nsfw` has joined #ruby
llua` is now known as llua
llua has quit [Changing host]
llua has joined #ruby
charliesome has joined #ruby
Jameser has joined #ruby
ta_ has quit [Remote host closed the connection]
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
tvw has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
pwnd_nsfw has joined #ruby
teclator has quit [Ping timeout: 260 seconds]
pwnd_nsfw` has quit [Ping timeout: 245 seconds]
quazimodo has quit [Ping timeout: 260 seconds]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rikkipitt has joined #ruby
pawnbox has quit [Remote host closed the connection]
ben______ has joined #ruby
ramortegui has joined #ruby
rajdesai has quit [Remote host closed the connection]
bturker has quit [Ping timeout: 256 seconds]
ace05 has joined #ruby
rajdesai has joined #ruby
merlin2049er has left #ruby [#ruby]
quazimodo has joined #ruby
Akuma0n3 has joined #ruby
ekinmur has joined #ruby
sdothum has quit [Ping timeout: 265 seconds]
ben______ has quit [Remote host closed the connection]
<Burgestrand>
aep You could take only that file, and add some proper attribution. I should also note that even if you have activesupport you can choose to only require certain files, you don't need all of it.
<Burgestrand>
vali in short, Time is not a method, so you can't do Time(string), which is what I was fishing for. Given the error you've shown me, it looks like the code you pasted is not the code you're running.
pawnbox has joined #ruby
<Burgestrand>
vali You'll probably want Time.parse(string), by the way, either that or Time.strptime (more strict in the format)
bigkevmcd has quit [Read error: Connection reset by peer]
<Burgestrand>
Huh, wow, TIL!
<Burgestrand>
vali You can use Time.iso8601(string)
chouhoulis has quit [Remote host closed the connection]
majuscul1 is now known as majuscule
compro has joined #ruby
compro has quit [Max SendQ exceeded]
compro has joined #ruby
dionysus69 has joined #ruby
benlieb has quit [Quit: benlieb]
gusrub has quit [Remote host closed the connection]
firstdayonthejob has quit [Quit: WeeChat 1.6]
vuoto has quit [Ping timeout: 256 seconds]
vuoto has joined #ruby
jcao219 has quit [Ping timeout: 256 seconds]
jackjackdripper has joined #ruby
benlieb has joined #ruby
<Guest29143>
i just reinstalled ruby and bundler and bundle still points to ruby 1.9.1
<Guest29143>
even though i have ruby 2.2!!!
vuoto has quit [Remote host closed the connection]
troulouliou_div2 has quit [Quit: Leaving]
last_staff has joined #ruby
kobain has quit [Ping timeout: 260 seconds]
ziarkaen has quit [Ping timeout: 250 seconds]
<optiz0r>
Guest29143: are you running the copy of bundler you think you are? (`which bundler`)
conta has joined #ruby
claudiuinberlin has joined #ruby
be_______ has joined #ruby
Immune has joined #ruby
elenatanasoiu has quit [Ping timeout: 250 seconds]
rcvalle has joined #ruby
scottschecter_ is now known as scottschecter
<kevinjackson>
optiz0r, i'm not an expert, but i think your system is defaulting to ruby 1.9.1. you can try the instructions on this page to set up rvm to manage which ruby your system is running: https://online.pragmaticstudio.com/tour/courses/rails/steps/2 - substituting your desired version of ruby… once you get the correct ruby, ruby can get your desired bundler. also i think you switched from #rubyonrails to #ruby chatroom
<optiz0r>
kevinjackson: Guest29143^^
be_______ has quit [Ping timeout: 260 seconds]
nettoweb has quit [Ping timeout: 250 seconds]
nettoweb has joined #ruby
TomyWork has quit [Ping timeout: 256 seconds]
jaruga___ has joined #ruby
ferr has quit [Quit: WeeChat 1.5]
Beams has quit [Quit: .]
minimalism has quit [Quit: minimalism]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
nankyokusei has quit [Remote host closed the connection]
jaequery has joined #ruby
yardenbar has quit [Ping timeout: 260 seconds]
gingray has quit [Ping timeout: 260 seconds]
Guest58359 is now known as CrazEd
CrazEd is now known as Guest88646
marxarelli has joined #ruby
kies has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
Immune_ has joined #ruby
djbkd has joined #ruby
mr_rich101 has quit [Ping timeout: 250 seconds]
firstdayonthejob has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
Immune has quit [Ping timeout: 260 seconds]
gusrub has joined #ruby
gingray has joined #ruby
djbkd has quit [Client Quit]
salut has quit [Quit: salut]
claudiuinberlin has joined #ruby
blackmesa has joined #ruby
bogn has quit [Quit: Leaving.]
djbkd has joined #ruby
bturker_ has quit [Ping timeout: 256 seconds]
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
gusrub has quit [Remote host closed the connection]
Burgestrand has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<yo61>
The chain was returning Nil and then trying to do x['address'] on Nil
<yo61>
Ah, OK, so .compact is better than .reject in this case?
sdothum has joined #ruby
taq has joined #ruby
gusrub has joined #ruby
<apeiros>
it's better than reject(&:nil?) which in turn is better than reject { |v| v.nil? }, yes
TilakeTikka has joined #ruby
chopin has joined #ruby
<yo61>
^^ this is what I meant by "idiomatic"
<taq>
guys, not sure it is possible, but can I "reuse" a TCP socket on a Net::SSH connection? The device will open a TCP connection and send some info, then I need to connect back to it with SSH. I could use the socket IP, but sometimes the device can be behind a firewall/corporate network.
<yo61>
I'm a sporadic ruby coder
ramfjord has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
ledestin has joined #ruby
tvw has quit [Ping timeout: 265 seconds]
<apeiros>
yo61: yeah, my problem wasn't with the idiomatic part. it was with what you'd consider a fix part.
tubuliferous has joined #ruby
<apeiros>
because it's not obvious what acceptable return values for this are.
<apeiros>
apparently nil is fine.
<yo61>
Yeah, sorry, not enough info
<yo61>
Yes, returning an empty or Nil value is fine
smlocal has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
kladden has quit []
KnownSyntax has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
KnownSyntax has joined #ruby
glundgren has joined #ruby
johnmilton has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
Flare has quit [Quit: Leaving]
noob_on_rails has joined #ruby
cpruitt has quit [Quit: cpruitt]
elenatanasoiu has quit [Ping timeout: 256 seconds]
elenatanasoiu has joined #ruby
smlocal has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
[reed] has quit [Read error: Connection reset by peer]
anisha has quit [Quit: Leaving]
allomov has joined #ruby
[reed] has joined #ruby
[reed] has joined #ruby
[reed] has quit [Changing host]
holmser has joined #ruby
jenrzzz has joined #ruby
abernstein has joined #ruby
dminuoso_ has joined #ruby
blackmesa has quit [Quit: WeeChat 1.5]
xall_ has joined #ruby
futilegames has joined #ruby
failshell has joined #ruby
<sparch>
haha
elifoster has joined #ruby
palms has joined #ruby
Sammichmaker has joined #ruby
Sammichmaker has joined #ruby
Sammichmaker has quit [Changing host]
Pupeno has quit [Remote host closed the connection]
conta has quit [Ping timeout: 260 seconds]
hahuang65 has quit [Ping timeout: 256 seconds]
<jolamb>
If I want a dedicated type for holding related data, but don't need instance/class methods, is the best option the Struct class, or is there a more "correct" way to do that?
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
<jolamb>
maybe a more helpful question - is there a Right Way to make a Struct sortable?
compro has quit [Ping timeout: 265 seconds]
ta_ has joined #ruby
Torkable has joined #ruby
futilegames has quit [Quit: futilegames]
<dminuoso>
jolamb, a Struct is just a shortcut for a common class Foo; def initialize(foo, bar); @foo = foo; @bar = bar; end; attr_accessor :foo, :bar; end; idiom
<dminuoso>
jolamb, with the block form you can use them to implement a regular class like any.
hahuang65 has joined #ruby
compro has joined #ruby
bweston92 has joined #ruby
cdg has joined #ruby
<jolamb>
dminuoso: interesting. I
<jolamb>
er, I hadn't seen the block form before
Rodya_ has quit [Remote host closed the connection]
ramfjord_ has joined #ruby
<jolamb>
dminuoso: we are stuck on 2.0.0 for this system, so I had just clicked on the 1.9.3 ruby-doc link, since it was in the first few google results. Lol
<jolamb>
dminuoso: thanks!
ramfjord has quit [Ping timeout: 256 seconds]
Coldblackice has quit []
symm- has joined #ruby
tyang has quit [Ping timeout: 244 seconds]
JeanCarloMachado has joined #ruby
thomas1 has quit [Quit: leaving]
thomas1 has joined #ruby
thomas1 is now known as thomas
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ldnunes has quit [Quit: Leaving]
sparch has quit [Ping timeout: 252 seconds]
failshell has quit []
JeanCarloMachado has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
emilkarl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ruby[bot]>
apeiros: # => /tmp/execpad-6cfed54e3e2b/source-6cfed54e3e2b:3: syntax error, unexpected keyword_rescue, expecting ...check link for more (https://eval.in/665666)
<apeiros>
well… plerp :)
dminuoso_ has quit [Ping timeout: 256 seconds]
Devalo has quit [Remote host closed the connection]
<ruby[bot]>
apeiros: # => [#<struct Plerp a=:bar, b=1, c=1>, #<struct Plerp a=:foo, b=2, c=3>, #<struct Plerp a=:baz, b=9, c=3 ...check link for more (https://eval.in/665669)
<apeiros>
there
<apeiros>
missed an end
<apeiros>
baweaver: yerp
last_staff has quit [Quit: last_staff]
ixti has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
elenatanasoiu has quit [Ping timeout: 256 seconds]
sepp2k has quit [Quit: Leaving.]
bturker has joined #ruby
Guest29143 has quit [Ping timeout: 245 seconds]
ta_ has quit [Remote host closed the connection]
marxarelli is now known as marxarelli|afk
marxarelli|afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kobain has joined #ruby
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
SeepingN has joined #ruby
marxarelli has joined #ruby
frankiee_ has quit [Quit: leaving]
jcao219 has joined #ruby
ramfjord_ has quit [Ping timeout: 256 seconds]
nankyokusei has quit [Remote host closed the connection]
Dohplay has quit [Read error: Connection reset by peer]
<jolamb>
apeiros: cool, thanks
friday has quit [Changing host]
friday has joined #ruby
snguyen has joined #ruby
ace05 has quit [Read error: Connection reset by peer]
ace05_ has joined #ruby
smlocal has quit [Remote host closed the connection]
smlocal has joined #ruby
peaches has joined #ruby
Guest43 has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
Guest43 is now known as Rufus
ramfjord has joined #ruby
smlocal has quit [Ping timeout: 260 seconds]
vuoto has joined #ruby
lenwood has quit [Ping timeout: 252 seconds]
elifoster has quit [Quit: class]
symm- has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 256 seconds]
djbkd has quit [Read error: Connection reset by peer]
claudiuinberlin has quit []
Madplatypus has joined #ruby
djbkd has joined #ruby
tyang has joined #ruby
smlocal has joined #ruby
pawnbox has quit [Remote host closed the connection]
tyang has quit [Ping timeout: 244 seconds]
marxarelli is now known as marxarelli|afk
Alina-malina is now known as alina-malina
Rodya_ has joined #ruby
elenatanasoiu has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
knutmithut has quit [Quit: Verlassend]
catphish has joined #ruby
Rutix has quit []
Rodya_ has quit [Ping timeout: 245 seconds]
elenatanasoiu has quit [Ping timeout: 276 seconds]
<catphish>
i've written a thread-naive connection pool, it looks to me like this would be safe under MRI, would anybody be able to explain if i missed anything? http://paste.codebasehq.com/pastes/xehkmjsj8m3jiah8kr
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dminuoso>
catphish, how about you tell us what the problem is
glundgren has quit [Ping timeout: 250 seconds]
skweeke has quit [Ping timeout: 245 seconds]
abernstein has quit [Quit: abernstein]
<apeiros>
catphish: `@free_clients ||= []` is already a race condition
<catphish>
apeiros: is ||= 2 separate operations?
<dminuoso>
I think 3 out of those 4 lines are unsafe.
<apeiros>
unless you use a mutex outside of this with_connection method, that method is not thread safe. at all.
<dminuoso>
@arr << obj; is not thread safe
<dminuoso>
@foo.unshift || foo.new_client is not threa dsafe
<dminuoso>
The entire thing is thread unsafe.
<havenwood>
thread dangerous
tyang has joined #ruby
<dminuoso>
Ruby is not thread safe.
<catphish>
is it MRI-safe though?
<dminuoso>
No.
<dminuoso>
All the GVL will ensure is that race conditions wont crash Ruby itself.
<catphish>
that was what i meant, rather than technically threadsafe, because i know MRI provides a lot of mutexes
<dminuoso>
MRI provides the GVL, which just protects the VM from crashing horribly.
Blueby has quit [Quit: Blueby]
bruce_lee has quit [Read error: Connection reset by peer]
<apeiros>
well, technically (almost) anything crashing ruby which is not a native extension is considered a bug.
<apeiros>
almost because I'm sure dminuoso will now start to enumerate the exceptions :)
<catphish>
i seem to have a real misunderstanding of MRI threads then, are you saying that for example 2 calls to Array#unshift isn't guarenteed to end up with the array having 2 new items in it?
<dminuoso>
Im growing up.
<dminuoso>
Slowly.
<dminuoso>
catphish, correct.
Dohplay has joined #ruby
quazimodo has quit [Ping timeout: 256 seconds]
<catphish>
dminuoso: how do people cope with that? :(
SCHAAP137 has quit [Quit: Leaving]
<dminuoso>
catphish, the only thread safe line of code is: "return_value = yield client"
<dminuoso>
catphish, the same as everywhere else: either by writing lockfree code or by using locks.
<apeiros>
catphish: threads mean that *any* two operation following each other may be interrupted by an arbitrary amount of code run in another thread
<dminuoso>
havenwood, I love it.
<apeiros>
catphish: so anywhere in your code where you assume that the previous operation happened and nothing in between is inherently unsafe.
<havenwood>
the GVL is just a suggestion, like speed limits
<havenwood>
right?
<dminuoso>
haha
_sfiguser has joined #ruby
<dminuoso>
I think that is a very neat analogy.
crdpink has joined #ruby
<catphish>
apeiros: that's interesting, i actually thought the GVL essentially wrappped around all simple operations :(
<dminuoso>
Go faster and crashes will start happening.
<catphish>
apeiros: wait, what do you mean by "previous operation"
<apeiros>
catphish: that's not what the gvl does, no.
aibot has quit [Ping timeout: 250 seconds]
<dminuoso>
catphish, no - it really just helps protects the internal state of the VM, so that race conditions cant corrupt Ruby itself and lead to segfaults and whatnot
anjen has joined #ruby
Devalo has joined #ruby
<apeiros>
catphish: ruby has a relatively long schedule time per thread, so the chance is high that dozens, maybe even hundreds of method calls in a single thread will be run before another thread is scheduled
aibot has joined #ruby
<catphish>
what is a "call"?
cibs has quit [Ping timeout: 268 seconds]
<apeiros>
but there's no guarantees as to when your thread is paused and another thread is resumed - which potentially works on the same data as your thread.
banisterfiend has joined #ruby
<dminuoso>
catphish, also like havenwood has implied, the GVL helps ensure that Rubys performance will always be shitty in computational heavy multithreaded code.
<catphish>
is "<<" for example not a single call?
<apeiros>
foo.bar # is a method call, which may consist of many more method calls in the definition of bar()
<apeiros>
and relying on native methods to be atomic (meaning ruby can't pause your thread and resume another) is a bad idea. native methods can contain code to allow scheduling other threads.
cibs has joined #ruby
abernstein has joined #ruby
<havenwood>
catphish: GILs lock interpreters and GVLs lock VMs
<dminuoso>
The GVL helps ensure that employes writing native extensions keep their jobs, because we really would not want multithreaded ruby code to excel at computations.
<catphish>
apeiros: the whole point of my question was the assumption that "shift" and "<<" were atomic
<dminuoso>
catphish, 3 out of those 4 lines are inherently thread unsafe. :P
elenatanasoiu has joined #ruby
<apeiros>
catphish: those aren't the only assumptions in your code. and no, you must not rely on those assumptions.
<catphish>
dminuoso: can you explain briefly how "@free_clients << client" is not threadsafe?
Devalo has quit [Ping timeout: 256 seconds]
<havenwood>
GIL is the past, GVL is the present and GGL is the future.
<dminuoso>
catphish, because Ruby gives you Queue as a thread-safe array implementation
chopin has quit [Remote host closed the connection]
<dminuoso>
catphish, since they give you a thread-safe implementation, no fucks are given whether << should be thread safe or not.
<havenwood>
Giant Guild Locks
<catphish>
interesting
chopin has joined #ruby
<catphish>
i realise that "@free_clients ||= []" is probably a mistake, i'll get rid of that
<dminuoso>
catphish, then get rid of this: client = @free_clients.shift || self.new_client
<catphish>
dminuoso: what's wrong with that?
abernstein has quit [Client Quit]
<catphish>
it assumes shift is atomic
<catphish>
if that's not the case, i'll have to change it
<apeiros>
catphish: any reason for not doing the sane thing and use a lock?
<dminuoso>
dont use a lock.
<dminuoso>
its silly
<dminuoso>
Oh wait
<dminuoso>
me growing up
<dminuoso>
listen to apeiros
<catphish>
apeiros: honestly, the reason for my question is: "if shift and << are atomic, i don't need a lock"
<apeiros>
:-p
<apeiros>
catphish: the answer is: if you have to ask this question, you don't know enough and should use a lock
<dminuoso>
catphish, atomicity is not the only property needed for thread safety you know....
<apeiros>
unless you enjoy weird thread problems and trying to debug them.
jbeeze_ has quit [Read error: Connection reset by peer]
<catphish>
afaik there are no other assumptions in my code, only that shift and << are atomic
<catphish>
if that's not the case, or there are other issues in the code, i'd appreciate knowing the details, or at least a link to an explanation
<xall_>
If I have long Pry output, it doesn't wrap and becomes unreadable. What should I look into to fix?
<dminuoso>
catphish, if you think that atomicity alone is enough to ensure thread safety, then you are gravely mistaken.
elenatanasoiu has quit [Ping timeout: 260 seconds]
<dminuoso>
Let me introduce you to Mister Order
<dminuoso>
Or Mister Memory Order.
<apeiros>
the assumptions I saw were Array#<<, #shift and ||= being atomic. My assumption is that new_client does not reference any shared data.
chopin has quit [Ping timeout: 252 seconds]
<apeiros>
and Array makes no promises on anything being atomic.
abernstein has joined #ruby
SCHAAP137 has joined #ruby
<catphish>
apeiros: to better clarify, new_client itself will have to be threadsafe ('ll proably put it in a mutex), and i will definitely get rid of that ridiculous ||=
<catphish>
i should really have just asked specifically about the << and the shift
<apeiros>
note: 3y ago. it may or may not still apply.
<catphish>
i'll read part 2 and see what i'm missing
gingray has joined #ruby
<dminuoso>
catphish, no it is not.
<dminuoso>
catphish, part 1 raises it as a "question" (!)
<apeiros>
and that is one of the main points. Array#<< may or may not be atomic today. its atomicity may differ tomorrow. that's what "no guarantees" means.
<dminuoso>
part 2 answers that question.
<catphish>
dminuoso: i see :)
<dminuoso>
oh waiut
<dminuoso>
part 2 says its atomic
<dminuoso>
but regardles
bob434 has joined #ruby
<dminuoso>
:P
<catphish>
"The GIL makes method invocations atomic. What does this mean for you?"
<catphish>
arfgh :)
Blueby has quit [Ping timeout: 244 seconds]
<apeiros>
catphish: that's misleading. read headius' comment I linked
<apeiros>
and as said, that comment is 3y old too.
<apeiros>
at which point I'll again refer to "no guarantees".
<apeiros>
it's relying on an implementation detail of a specific version.
<dminuoso>
In fact you probably have more success waiting for 3.0 and not giving a damn about GVL, than trying to understand it.
gnufied has quit [Ping timeout: 245 seconds]
<catphish>
i suppose i can either assume Array operations are atomic under MRI 2.3 (which they seem to be right now but aren't guarenteed to be) or make some mutexes, which are easy
elenatanasoiu has joined #ruby
<dminuoso>
No you cant.
aswen has quit [Ping timeout: 252 seconds]
<apeiros>
they can. it'd be misguided :)
Guest10755 has quit [Ping timeout: 245 seconds]
<apeiros>
I mean I can assume the world to be flat. it works for a lot of things.
<catphish>
unless i'm missing something, current evidence points to << at least being safe under current MRI
<apeiros>
it was in 1.9. I didn't bother checking for newer versions.
Blueby has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
<apeiros>
because as said, it means relying on an implementation detail.
gnufied has joined #ruby
ben______ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<catphish>
i don't feel i'm that much closer to an answer to my original question :(
elenatanasoiu has quit [Ping timeout: 250 seconds]
<catphish>
except perhaps "yes, but only because of how MRI works right now"
vuoto has quit [Quit: Lost terminal]
<catphish>
anyway, thanks for all the pointers, i'll probably update my code with 4 mutexes, it'll be messy but definitely safe
<djellemah>
for 2.3.1, << and shift are both implemented in array.c, so they're both protected by the GVL and thread-safe enough for your usage. ||= is definitely not thread-safe in your code.
<apeiros>
catphish: "Are Array#<< and #shift atomic on MRI 2.3?" - "Probably, but I didn't check since it's an implementation detail"
Blueby has quit [Ping timeout: 250 seconds]
<catphish>
djellemah, apeiros, dminuoso thanks!
<apeiros>
djellemah: "Implemented in C" is actually still insufficient qualification for "atomic". two other conditions have to apply (and they probably do for Array#<<): they don't schedule manually from C, and they don't call back into ruby.
mikecmpbll has joined #ruby
<dminuoso>
You know whats atomic too?
<dminuoso>
Atoms.
<djellemah>
I've just looked at array.c, and I don't see any callback to ruby methods in those two.
<apeiros>
funny enough, they are in one sense and aren't in another :D
<dminuoso>
As proven by the choice of words, they are truly unsplittable.
<catphish>
||= does seem like it consists of several operations, dunno why i put that there!
<dminuoso>
Can we please introduce a new style of behavior, and explain all Ruby idiotics and behaviors using Muffin analogies?
<dminuoso>
asm>> a ||= 1
<apeiros>
catphish: it may even be. but same thing - it'd be an implementation detail.
<ruby[bot]>
dminuoso: I have disassembled your code, the result is at https://eval.in/665698
<dminuoso>
catphish, ^- check that
Pupeno has joined #ruby
skweeke has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
<catphish>
dminuoso: i'll be honest, i dont know ruby-asm well enough to interpret that :)
smlocal has quit [Remote host closed the connection]
smlocal has joined #ruby
<catphish>
and by "well enough" i mean "at all"
Dimik has joined #ruby
<dminuoso>
catphish, getlocal reads the variable a, branchif is just a regular "if", and setlocal is an assignment
Salve has joined #ruby
<dminuoso>
the rest is just "stuff"
<djellemah>
classic test-and-set race condition, in other words
<dminuoso>
a ||= 1; is *almost* equivalent to: a = 1 unless a
<catphish>
i don't know where the GIL fits into that
<catphish>
they're all separate ruby operations?
hutch34 has quit [Ping timeout: 256 seconds]
<eam>
GREAM
<apeiros>
djellemah: as said "they probably apply to Array#<<". my point was that things like "are both implemented in array.c, so they're both protected by the GVL" is wrong and may mislead others who don't know about the subtleties involved.
<catphish>
"must not call back to ruby" being key, right?
<apeiros>
catphish: that and must not schedule on its own.
<djellemah>
apeiros: yes, I did leave out the other two qualifiers, as you pointed out ;-)
Pupeno has quit [Ping timeout: 245 seconds]
jphase_ has joined #ruby
<catphish>
well very much thanks, i believe i understand now
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
smlocal has quit [Remote host closed the connection]
smlocal has joined #ruby
jphase has quit [Ping timeout: 256 seconds]
xall_ has quit [Quit: WeeChat 1.5]
malconis has quit [Read error: Connection reset by peer]
xall has joined #ruby
palms has quit [Ping timeout: 260 seconds]
smlocal_ has joined #ruby
smlocal_ has quit [Remote host closed the connection]
jphase_ has quit [Ping timeout: 260 seconds]
smlocal_ has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
benlieb has quit [Quit: benlieb]
elenatanasoiu has joined #ruby
smlocal has quit [Ping timeout: 265 seconds]
jenrzzz_ has joined #ruby
blackwind_123 has quit [Ping timeout: 252 seconds]
ChiefAlexander has quit [Quit: Leaving...]
blackwind_123 has joined #ruby
smlocal has joined #ruby
smlocal_ has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
chopin has joined #ruby
anjen has quit [Quit: anjen]
<xall>
i'm using open-uri and nokogiri to parse xml from a webpage. i want to avoid downloading during tests. what's the recommended way to test open calls without actually downloading?
zacts has quit [Quit: WeeChat 1.6]
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pokalyis has joined #ruby
gusrub has quit [Remote host closed the connection]
smlocal has quit [Remote host closed the connection]
inra has joined #ruby
SCHAAP137 has quit [Ping timeout: 256 seconds]
[Butch] has quit [Quit: I'm out . . .]
biberu has quit []
inra has quit [Client Quit]
kobain has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
blackwind_123 has quit [Read error: Connection reset by peer]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blockchan has joined #ruby
Guest41247 is now known as Cyrus
Cyrus has quit [Changing host]
Cyrus has joined #ruby
<blockchan>
Hello, I'm trying to work with arrays but I'm stuck at something
<blockchan>
How to make it universal for n subarrays?
<blockchan>
result = test_array[0] & test_array[1] & test_array[2]
<catphish>
i'm tying to work out why forking, cd'ing to a new verstion, and exec'ing "bundle exec ruby myself.rb" wouldn't be reloading new gems (but loads new code just fine), are there any obvious reasons here?