<benbro1>
WARNING: You don't have /home/user/.gem/ruby/2.3.0/bin in your PATH, gem executables will not run.
Azure has quit [Ping timeout: 260 seconds]
Snowy has quit [Quit: ragequit]
<benbro1>
why do I need to add it to my PATH manually?
<pwnd_nsfw>
why no version manager?
rmulligan has quit [Ping timeout: 250 seconds]
johnmilton has quit [Quit: Namaste]
<benbro1>
pwnd_nsfw: I'm new to ruby. do you mean apt-get install all the gems?
finisherr has quit [Quit: finisherr]
<pwnd_nsfw>
oh lawd
<benbro1>
pwnd_nsfw: version manager, not package manager. sorry
<benbro1>
which version manager?
<pwnd_nsfw>
I use rvm, but it seems to be disliked
<benbro1>
RVM?
<pwnd_nsfw>
chruby seems to be like.. the way to go
<pwnd_nsfw>
But I've never had a problem with rvm
<benbro1>
thanks
Azure has joined #ruby
jpfuentes2 has joined #ruby
valetudo has joined #ruby
Moosashi has quit [Quit: Moosashi]
<havenwood>
benbro1: Don't use --user-install with RVM, it's already a user install.
ramfjord has joined #ruby
<havenwood>
benbro1: There's an #rvm channel too.
<havenwood>
benbro1: RVM should handle putting your gem bin dir in the PATH.
freerobby has quit [Quit: Leaving.]
<benbro1>
havenwood: thanks. I'll try RVM
<havenwood>
benbro1: <3 ruby-install + chruby
pikajude has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
Mr_Pancake has quit [Ping timeout: 276 seconds]
cdg has quit [Remote host closed the connection]
oz has quit [Ping timeout: 264 seconds]
tubuliferous has joined #ruby
pawnbox has joined #ruby
pikajude has joined #ruby
pikajude has quit [Changing host]
pikajude has joined #ruby
cdg has joined #ruby
dvinciguerra has quit [Ping timeout: 276 seconds]
oz has joined #ruby
Mr_Pancake has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
bricker has quit [Quit: Lost terminal]
statelesscode has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
cdg has quit [Ping timeout: 252 seconds]
mleung has quit [Quit: mleung]
Moosashi has joined #ruby
baweaver has quit [Remote host closed the connection]
xlegoman has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
Pupeno has quit [Remote host closed the connection]
mostlybadfly has joined #ruby
solocshaw has joined #ruby
moos3 has joined #ruby
polyidus has quit [Quit: Later]
rikkipitt has joined #ruby
tubuliferous has quit [Ping timeout: 250 seconds]
matp has joined #ruby
crowell has quit [Ping timeout: 264 seconds]
ecksit has quit [Ping timeout: 248 seconds]
matp has quit [Remote host closed the connection]
moos3 has quit [Ping timeout: 276 seconds]
matp has joined #ruby
Moosashi has quit [Quit: Moosashi]
Pupeno has joined #ruby
rikkipitt has quit [Read error: Connection reset by peer]
yfeldblum has quit [Quit: Leaving...]
freerobby has quit [Quit: Leaving.]
diegoviola has joined #ruby
moeabdol has joined #ruby
<darix>
i find it amusing ... he already has ruby 2.3 and people still ask to use rvm or something
<darix>
you are seriously obsessed with that.
<darix>
*shakes head*
loganhasson has joined #ruby
loganhas1on has joined #ruby
<darix>
benbro1: using your distro ruby is totally fine
loganhasson has quit [Client Quit]
loganhas1on has quit [Client Quit]
Devalo has joined #ruby
astrobunny has joined #ruby
loganhasson has joined #ruby
<benbro1>
darix: I just added .ruby to the path and it's working
<benbro1>
thanks
Pupeno has quit [Remote host closed the connection]
loganhasson has quit [Client Quit]
<darix>
benbro1: that's the only thing that rubygems wanted to hint
rikkipitt has joined #ruby
<smathy>
darix, I always use a version manager, (a) to insulate my app's ruby from my system ruby and (b) to make upgrading ruby versions simpler when they come out.
drewbro has quit [Ping timeout: 244 seconds]
loganhasson has joined #ruby
dagda1_ has joined #ruby
dagda1 has quit [Ping timeout: 240 seconds]
crowell has joined #ruby
poosee has joined #ruby
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<poosee>
do you guys know javascript?
<darix>
smathy: and i just use a distro that provides up2date ruby packages even for older distros
htmldrum has joined #ruby
htmldrum_ has joined #ruby
<smathy>
darix, that wasn't either of my reasons.
<poosee>
i would like to create an object that has keys as letters
Pupeno has joined #ruby
<poosee>
basically i want to create a character counter
benlieb has joined #ruby
<poosee>
if the key exists increment the value by 1
<poosee>
but if you write it in ruby i'm sure i can decipher it
pawnbox has joined #ruby
<darix>
smathy: and i think bundler is good enough for isolate apps
<smathy>
darix, no, not staying current, the actual upgrade process. It's much simpler if I can install another version of ruby side-by-side, get the gems in place, then switch over when I want and easily switch back if I need to.
<poosee>
i'm stuck on incremanting the value
Devalo has quit [Ping timeout: 260 seconds]
<poosee>
for values that already exist
<smathy>
darix, mostly the isolation is about ensuring that things that are using the system ruby aren't suddenly having to run on a new version of ruby.
TheGreatGudsby has quit [Remote host closed the connection]
<darix>
smathy: i currently have 2.1, 2.2 and 2.3 installed in parallel. your point was?
yfeldblum has joined #ruby
<smathy>
darix, that my app wants 2.3.0 shouldn't mean I need to ensure everything else on my system can use 2.3.0 too.
<darix>
if rubinius wouldnt be such a bitch to build, I would have that too
<smathy>
darix, I mean to have them side-by-side you're managing your own GEM_HOME or GEM_PATH or whatever, that's all chruby is doing for me really.
RegulationD has joined #ruby
<smathy>
darix, not sure what you think you're showing me there.
<smathy>
darix, if I have a devops script that is running on 2.1 which is the /usr/bin/env ruby - I never want to have to worry that upgrading the ruby for my app is going to impact that. Hence the comment on isolation.
<darix>
smathy: for all the ruby scripts where i need a certain version ... all I do is #!/usr/bin/ruby.ruby2.1
pwnd_nsfw has quit [Read error: Connection reset by peer]
<darix>
then i never have to care if i am in the correct chruby/rvm env for that script
pwnd_nsfw has joined #ruby
Pupeno has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 240 seconds]
biberu has quit []
<smathy>
darix, I'm not saying that there's not ways around it, I'm saying that a version manager makes managing those issues very simple, and is a reason to use one.
jokke has quit [Quit: WeeChat 1.4]
chipotle_ has quit [Read error: Connection reset by peer]
<darix>
smathy: which is all nice. and still no reason to basically start every answer for ruby with "you arent using rvm/chruby ... you should change that before we can help you"
<darix>
especially for someone already using 2.3
<darix>
anyway. basketball time.
RegulationD has quit [Ping timeout: 276 seconds]
blackmesa has quit [Ping timeout: 276 seconds]
TheGreatGudsby has joined #ruby
hahuang65 has joined #ruby
chipotle has joined #ruby
symm- has quit [Ping timeout: 248 seconds]
<ericli>
Hi, if my module needs external libs like fileutils, I shall put require '' into module block or outside?
<darix>
ericli: top of the file probably is best.
<ericli>
darix, thanks
yfeldblu_ has joined #ruby
loganhas1on has joined #ruby
maletor has joined #ruby
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
loganhas1on has quit [Client Quit]
saneax is now known as saneax_AFK
hahuang65 has quit [Ping timeout: 240 seconds]
rmulligan has joined #ruby
htmldrum1 has joined #ruby
htmldrum2 has joined #ruby
htmldrum_ has quit [Ping timeout: 250 seconds]
htmldrum has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Ping timeout: 268 seconds]
jokke has joined #ruby
moos3 has joined #ruby
marr has quit [Ping timeout: 246 seconds]
clorisu has quit [Read error: No route to host]
rikkipitt has quit [Quit: Leaving...]
ChameleonSix has joined #ruby
ChameleonSix has left #ruby [#ruby]
silentpost has joined #ruby
cdg has joined #ruby
tubuliferous has joined #ruby
moos3 has quit [Ping timeout: 268 seconds]
dvinciguerra has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
loganhasson has quit [Quit: Lost terminal]
poosee has quit [Quit: Page closed]
kirun has quit [Quit: Client exiting]
freerobby has joined #ruby
loganhasson has joined #ruby
zotherstupidguy has joined #ruby
`tim` has joined #ruby
zotherstupidguy has quit [Client Quit]
slawrence00 has quit [Read error: Connection reset by peer]
rcvalle has quit [Quit: rcvalle]
diegoaguilar has quit [Read error: Connection reset by peer]
rkazak has joined #ruby
CloCkWeRX has joined #ruby
ledestin has joined #ruby
loganhasson has quit [Quit: leaving]
abort_ has joined #ruby
ericli has quit [Quit: This computer has gone to sleep]
abort_ has quit [Client Quit]
loganhasson has joined #ruby
tubuliferous has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
chipotle has quit [Quit: cheerio]
kinduff has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
CloCkWeRX has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
halfamind has joined #ruby
loganhasson has quit [Client Quit]
loganhasson has joined #ruby
Azure|dc has joined #ruby
siaw has joined #ruby
Azure has quit [Ping timeout: 244 seconds]
moos3 has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
loganhasson has quit [Client Quit]
loganhasson has joined #ruby
jottr has quit [Ping timeout: 268 seconds]
loganhasson has quit [Client Quit]
davedev24 has quit []
moos3 has quit [Ping timeout: 250 seconds]
<cjheath_>
Upgraded to Ruby 2.2.2, seeing strange issues with class << self (exception “wrong argument type nil (expected Symbol)”). Fixed it in my code by calling singleton_class, but now it’s biting in RSpec. Seems to be a systematic thing. Anyone else seen this?
hxegon has quit [Quit: BRB]
Trynemjoel has quit [Ping timeout: 264 seconds]
QualityAddict has joined #ruby
Trynemjoel has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
pwnd_nsfw has joined #ruby
<Radar>
cjheath_: Does the problem exist in a more modern 2.2 version?
jam_ has joined #ruby
<cjheath_>
Not sure. Onky recently upgraded to 2.2.2
7GHAALV13 has quit [Remote host closed the connection]
Xiti has quit [Quit: Xiti]
krz has joined #ruby
Guest1361 has quit [Ping timeout: 244 seconds]
baweaver has quit [Ping timeout: 240 seconds]
NineInchNazara_1 has joined #ruby
NineInchNazara_1 has quit [Remote host closed the connection]
NineInchNazara_5 has joined #ruby
NineInchNazara_5 has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 1.4]
NineInchNazara has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
neanderslob_ has joined #ruby
yeticry has quit [Ping timeout: 244 seconds]
moos3 has joined #ruby
yeticry has joined #ruby
neanderslob_ is now known as neanderslob
_blizzy_ has quit [Read error: Connection reset by peer]
moos3 has quit [Ping timeout: 240 seconds]
NineInchNazara has quit [Remote host closed the connection]
benlieb has joined #ruby
silentpost has quit [Ping timeout: 260 seconds]
codecop has quit [Remote host closed the connection]
finisherr has joined #ruby
blackmesa has joined #ruby
nando293921 has quit [Ping timeout: 250 seconds]
rubie has quit [Remote host closed the connection]
threh has quit [Quit: 'Til next time]
blackmesa has quit [Ping timeout: 276 seconds]
crank1988 has joined #ruby
NineInchNazara has joined #ruby
Musashi007 has joined #ruby
davee_ has joined #ruby
pawnbox has joined #ruby
skade has joined #ruby
davee_ has quit [Max SendQ exceeded]
choke has joined #ruby
davee_ has joined #ruby
abort has joined #ruby
Es0teric has joined #ruby
RegulationD has joined #ruby
hahuang61 has joined #ruby
User458764 has joined #ruby
djbkd has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 240 seconds]
davee_ has quit [Max SendQ exceeded]
davee_ has joined #ruby
finisherr has quit [Quit: finisherr]
jenrzzz has joined #ruby
rubie has joined #ruby
mank has joined #ruby
davee__ has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
davee_ has quit [Max SendQ exceeded]
hahuang61 has quit [Ping timeout: 246 seconds]
Musashi007 has quit [Quit: Musashi007]
fedexo has quit [Ping timeout: 240 seconds]
fullofcaffeine has joined #ruby
Breaking_Pitt has joined #ruby
fullofca_ has joined #ruby
davee__ has quit [Max SendQ exceeded]
slawrence00 has joined #ruby
davee__ has joined #ruby
Pupeno has joined #ruby
Brando753 has quit [Ping timeout: 240 seconds]
davee__ has quit [Client Quit]
Brando753 has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
baweaver has joined #ruby
fullofcaffeine has quit [Ping timeout: 240 seconds]
krz has quit [Ping timeout: 240 seconds]
braincra- has joined #ruby
Breaking_Pitt has quit [Ping timeout: 260 seconds]
Pupeno has quit [Ping timeout: 260 seconds]
braincrash has quit [Ping timeout: 276 seconds]
LoneHerm_ has quit [Remote host closed the connection]
cold_zero has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
slawrence00 has quit [Ping timeout: 276 seconds]
fullofca_ has quit [Remote host closed the connection]
<cold_zero>
Hello. I need an advice from community. I've been working on my hobby project which grep-like utility to search within source code files. I have a Display class which is responsible for display matched line for each file https://gist.github.com/SuperManEver/df81df81932341e7b19e
tjbiddle has joined #ruby
rubie has quit [Remote host closed the connection]
<cold_zero>
if you take a look at it you will see I use conditions all over the place and it makes me feel myself little uncomfortable. I wonder may there is a better approach or may be some code technique,
NineInchNazara has quit [Remote host closed the connection]
patrick-sartent has quit [Quit: .]
cold_zero has quit [Quit: Ex-Chat]
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Balzrael has joined #ruby
baweaver has quit [Remote host closed the connection]
mistermocha has joined #ruby
sudoubuntu has joined #ruby
fullofca_ has joined #ruby
ramfjord has joined #ruby
hk238 has joined #ruby
mistermocha has quit [Remote host closed the connection]
krz has joined #ruby
mistermocha has joined #ruby
mondok has joined #ruby
TheGreatGudsby is now known as CalvinKline
Balzrael has quit [Quit: Leaving]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
fullofca_ has quit [Ping timeout: 240 seconds]
uglybandersnatch has joined #ruby
Don_John has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 260 seconds]
chipotle has quit [Quit: cheerio]
aganov has joined #ruby
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
finisherr has joined #ruby
jcdesimp has quit [Remote host closed the connection]
uglybandersnatch has quit [Ping timeout: 276 seconds]
cdg has joined #ruby
moos3 has joined #ruby
pawnbox has joined #ruby
cdg has quit [Ping timeout: 250 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
moos3 has quit [Ping timeout: 244 seconds]
jobewan is now known as jobewan_away
yfeldblum has quit [Ping timeout: 268 seconds]
yatish27 has joined #ruby
finisherr has quit [Quit: finisherr]
rkazak has quit [Quit: Sleep.....ing....]
jobewan_away is now known as jobewan
yfeldblum has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
ItSANg___ has joined #ruby
tristanp has quit [Remote host closed the connection]
epitron has quit [Quit: WeeChat 1.2]
mistermocha has joined #ruby
NineInchNazara has joined #ruby
epitron has joined #ruby
ItSANgo has quit [Ping timeout: 246 seconds]
NineInchNazara has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
neanderslob has quit [Ping timeout: 260 seconds]
Musashi007 has joined #ruby
e is now known as javascript
Es0teric has quit [Quit: Computer has gone to sleep.]
dionysus69 has joined #ruby
neanderslob_ has joined #ruby
nofxx has quit [Ping timeout: 248 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
Musashi007 has quit [Client Quit]
yatish27 has quit [Remote host closed the connection]
tildes has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
s2013 has joined #ruby
Breaking_Pitt has joined #ruby
s2013 has quit [Client Quit]
cold_zero has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Remote host closed the connection]
Breaking_Pitt has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
johnny56_ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
johnny56 has quit [Ping timeout: 264 seconds]
finisherr has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
benlieb has quit [Quit: benlieb]
sudoubuntu has joined #ruby
FastJack_ has quit [Quit: leaving]
JohnBat26|2 has joined #ruby
nocontrol has joined #ruby
nocontrol has quit [Ping timeout: 252 seconds]
User458764 has joined #ruby
nocontrol has joined #ruby
baweaver has joined #ruby
nocontrol has quit [Remote host closed the connection]
nocontrol has joined #ruby
finisherr has quit [Quit: finisherr]
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
benlieb has joined #ruby
ascarter has quit [Read error: Connection reset by peer]
Jon31 has quit [Read error: Connection reset by peer]
davee__ has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
crameth has quit [Read error: Connection reset by peer]
scepticulous has joined #ruby
ascarter has joined #ruby
Cohedrin has joined #ruby
chipotle has joined #ruby
hightower2 has joined #ruby
rmulligan has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
cpup has quit [Ping timeout: 248 seconds]
krz has quit [Ping timeout: 246 seconds]
nocontrol has quit [Remote host closed the connection]
cpup has joined #ruby
moos3 has joined #ruby
Guest71166 has quit [Ping timeout: 260 seconds]
ascarter has quit [Read error: Connection reset by peer]
krz has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
Ropeney has quit [Read error: No route to host]
ascarter has joined #ruby
moos3 has quit [Ping timeout: 244 seconds]
helpa has quit [Ping timeout: 244 seconds]
nocontrol has joined #ruby
helpa has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
ascarter has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
duncannz has quit [Quit: Leaving]
tristanp has joined #ruby
nocontrol has quit [Ping timeout: 248 seconds]
sq271 has quit [Quit: leaving]
dtzuzu has quit [Ping timeout: 252 seconds]
mondok has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
sq271 has joined #ruby
blackmesa has joined #ruby
ramfjord has joined #ruby
jkahn has quit [Remote host closed the connection]
lxsameer has joined #ruby
tristanp has quit [Ping timeout: 264 seconds]
scepticulous has quit [Read error: Connection reset by peer]
nocontrol has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
blackmesa has quit [Ping timeout: 248 seconds]
astrobun_ has quit [Remote host closed the connection]
sergey_makagon has joined #ruby
bluOxigen_ has quit [Ping timeout: 276 seconds]
blackgoat has quit [Quit: WeeChat 1.4]
nocontrol has quit [Ping timeout: 244 seconds]
scepticulous has joined #ruby
RegulationD has joined #ruby
hahuang61 has joined #ruby
firstdayonthejob has joined #ruby
cold_zero has quit [Ping timeout: 260 seconds]
mank has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<phredus>
sandelius: ok I think you meant run "gem install spring", ok I did and error is: /usr/lib64/ruby/gems/2.1.0/gems/sass-rails-5.0.4/lib/sass/rails/helpers.rb:1:in `require': cannot load such file -- sass (LoadError)
gokulnath has quit [Ping timeout: 264 seconds]
<sandelius>
not comment out string from you gemfile and after you done that run "gem install"
<phredus>
and $ gem install spring$ gem install spring
<phredus>
ERROR: While executing gem ... (TypeError)
<phredus>
no implicit conversion of nil into String
<phredus>
ERROR: While executing gem ... (TypeError)
<phredus>
no implicit conversion of nil into String
<sandelius>
no*
JohnBat26 has quit [Client Quit]
Breaking_Pitt has joined #ruby
ytti has quit [Ping timeout: 240 seconds]
uglybandersnatch has quit [Ping timeout: 268 seconds]
<phredus>
ok, commented out spring from Gemfile, then ran: $ gem install
<phredus>
ERROR: While executing gem ... (Gem::CommandLineError)
<phredus>
Please specify at least one gem name (e.g. gem build GEMNAME)
djbkd has quit [Quit: My people need me...]
robbyoconnor has joined #ruby
JohnBat26 has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
<phredus>
sandelius: the error you are trouble shooting having to do with springs happens after "rails new" when creating the new app.
moos3 has joined #ruby
saneax_AFK is now known as saneax
Breaking_Pitt has quit [Ping timeout: 250 seconds]
James1 has quit [Quit: WeeChat 1.4]
Anderson69s has joined #ruby
SenpaiSilver has quit [Read error: Connection reset by peer]
<cold_zero>
Hello. I try to find method that allows me to provide line of text and regular expression and return true or false whether there is match for some word in the given line for given regex
RegulationD has joined #ruby
<cold_zero>
may be you know something like this
hahuang61 has joined #ruby
rolha has quit [Client Quit]
<cold_zero>
I'm thinking about just split line in words and do matching based on words, but I wonder may be there is a std library solution because it will be more performant
phredus has quit [Remote host closed the connection]
Karix has joined #ruby
abort has quit [Quit: leaving]
abort has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
stannard has joined #ruby
idle_task has joined #ruby
idletask has quit [Ping timeout: 260 seconds]
Anderson69s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<maxagaz>
hi
rolha has joined #ruby
<maxagaz>
to see the keys of a hash, I do data_hash.keys, but how to know the other options I have than .keys ? where is it listed ?
<Ox0dea>
>> Hash.instance_methods # maxagaz
<jottr>
Hi all. I'm still struggling with using CSV::Table.delete_if . Not sure what I am doing wrong. https://git.io/vajU Maybe someone could have a look?
systemsgotyou has quit [Ping timeout: 244 seconds]
systemsgotyou has joined #ruby
<smathy>
Day 6 of the jottr Chronicles: The Lost URL.
codecop has quit [Remote host closed the connection]
ChiefAlexander has quit [Remote host closed the connection]
bry4n has joined #ruby
chipotle has joined #ruby
<smathy>
Ox0dea, sorry, yeah, I just meant it could be just `found.where ... ` and would just add it to a single query.
skweek has joined #ruby
skweek has quit [Remote host closed the connection]
davee__ has joined #ruby
trinaldi has joined #ruby
jak has joined #ruby
<Ox0dea>
smathy: Ah, yeah, that'd be the better fix.
ChiefAlexander has joined #ruby
Gasher has quit [Read error: Connection reset by peer]
uglybandersnatch has joined #ruby
Gasher has joined #ruby
kobain has joined #ruby
treehug88 has joined #ruby
cdg has joined #ruby
silentpost has quit [Ping timeout: 268 seconds]
rmulligan has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
<smathy>
FYI, I pointed jottr to a few freelance hiring services because he has no real interest in learning ruby, just wants someone to fix his stuff for him.
uglybandersnatch has quit [Ping timeout: 264 seconds]
<jottr>
smathy: god
<jottr>
smathy: Don't put words in my mouth
<smathy>
jottr, putting words in your mouth would have been something like: he said that he has no interest in learning ruby. I didn't do that, I expressed my conclusion about your interests.
jobewan has joined #ruby
Mon_Ouie has joined #ruby
<jottr>
smathy: Well. Since you don't know me, I can only ask yo to not jump to conclusions out of a few chat messages on irc.
adam| is now known as adam
adam is now known as adam12
<cold_zero>
is there any difference between Regexp::new and Regexp::.compile ? The result looks identical for me
dionysus69 has quit [Ping timeout: 252 seconds]
<jottr>
I told you I'm working through the koans, and doing exercism exercises. But it all takes time...
rmulligan has quit [Ping timeout: 244 seconds]
<smathy>
cold_zero, check the docs, it tells you.
<cold_zero>
haha
<cold_zero>
indeed
<smathy>
:)
* apeiros
wonders whether he's actually used Regexp.new in code at all
<shevy>
I think I have not myself either
<smathy>
I use it when I want to do Regexp.escape on a string.
<shevy>
I tend to favour things like:
<shevy>
regex_to_use = /foo bar/
<shevy>
if input =~ regex_to_use
mistermocha has joined #ruby
<apeiros>
smathy: how do you mean?
freerobby has joined #ruby
<apeiros>
Regexp.new(Regexp.escape(string)) - like that?
threh has joined #ruby
crazydiamond has joined #ruby
krz has joined #ruby
freerobby has quit [Client Quit]
Pupeno has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
mank has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
mistermo_ has joined #ruby
<jottr>
Just saw your pointer Ox0dea. thx for that
Guest-ru has quit [Remote host closed the connection]
B4daBing73 has quit [Quit: Leaving]
CasBaIT has joined #ruby
davee__ has quit [Quit: Leaving]
CasBaIT has quit [Client Quit]
mistermo_ has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
mistermocha has quit [Remote host closed the connection]
skweek has joined #ruby
<jottr>
hehe
sinanislekdemir has joined #ruby
htmldrum_ has quit [Ping timeout: 240 seconds]
htmldrum has quit [Ping timeout: 250 seconds]
mary5030 has joined #ruby
mdw has joined #ruby
mary5030 has quit [Remote host closed the connection]
LoneHermit has joined #ruby
TvL2386 has quit [Quit: Ex-Chat]
mary5030 has joined #ruby
jackdan has joined #ruby
fullofca_ has joined #ruby
<theRoUS>
i need to implement a work-conserving job queue mechanism with two work slots, with a dispatcher that assigns jobs to the slots as they become idle and then exits when the queue (and slots) are empty.
Devalo has quit [Ping timeout: 264 seconds]
<theRoUS>
is eventmachine a good match for that?
solars has quit [Quit: WeeChat 0.4.2]
<jackdan>
hi guys, i have an array like this [ [1, 3], [2, 1] ] and i want compute the maximum values out of them and get a result like this [2, 3]
<jackdan>
the maximum of each column if you look at it as a matrix
mdw_ has joined #ruby
User458764 has joined #ruby
Queitsch has quit [Ping timeout: 252 seconds]
cdg_ has joined #ruby
fullofcaffeine has quit [Ping timeout: 260 seconds]
threh has quit [Ping timeout: 246 seconds]
cdg has quit [Ping timeout: 248 seconds]
mdw has quit [Ping timeout: 276 seconds]
LoneHermit has quit [Ping timeout: 260 seconds]
nofacade has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
sinanislekdemir has quit [Remote host closed the connection]
ChiefAlexander has joined #ruby
<Papierkorb>
>> m = [[1,3], [2,1]]; m.map{|a| a.sort.last}
Anderson69s has joined #ruby
<adaedra>
rho, Papierkorb.
<adaedra>
We're modern, we've Array#max
<Papierkorb>
adaedra: oh, yeah, no idea why I didn't use that
slawrence00 has joined #ruby
<adaedra>
>> [[1,3],[2,1]].map(&:map)
<Ox0dea>
Wat.
<adaedra>
er.
<adaedra>
&:max*
<Ox0dea>
Missing a #transpose as well.
<adaedra>
and ruby[bot]'s down again.
<adaedra>
Ah yes, here is the missing piece.
<adaedra>
apeiros: your bot has escaped!
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
codecop has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
tristanp has quit [Ping timeout: 252 seconds]
rmulligan has quit [Ping timeout: 260 seconds]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pietr0 has joined #ruby
amclain has joined #ruby
LoneHerm_ has joined #ruby
fullofca_ has quit [Ping timeout: 252 seconds]
halfamind has quit [Read error: Connection reset by peer]
halfamind has joined #ruby
halfamind1 has joined #ruby
halfamind has quit [Read error: Connection reset by peer]
Es0teric has joined #ruby
nano- has quit [Ping timeout: 248 seconds]
nano- has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
hahuang61 has joined #ruby
krz has quit [Read error: Connection reset by peer]
kam270 has quit [Ping timeout: 252 seconds]
krz has joined #ruby
Trynemjoel has quit [Ping timeout: 264 seconds]
halfamind1 has quit [Read error: Connection reset by peer]
jackjackdripper has quit [Quit: Leaving.]
halfamind has joined #ruby
jackjackdripper has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
nando293921 has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
dhollinger has joined #ruby
tlarevo has joined #ruby
tlarevo has quit [Client Quit]
pawnbox has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
dc2 has quit [Ping timeout: 246 seconds]
chouhoulis has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 260 seconds]
dvinciguerra has joined #ruby
s_aly has joined #ruby
s_aly has left #ruby ["Leaving"]
d0nn1e has quit [Ping timeout: 260 seconds]
d0nn1e has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
cold_zero has quit [Quit: Ex-Chat]
halfamind has quit [Read error: Connection reset by peer]
halfamind has joined #ruby
rmulligan has joined #ruby
skweek has joined #ruby
Azure has joined #ruby
dvinciguerra has quit [Ping timeout: 268 seconds]
glcx has joined #ruby
diegoaguilar has joined #ruby
polysics has quit []
blandflakes has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
shinnya has joined #ruby
diegoaguilar has quit [Read error: Connection reset by peer]
aganov has quit [Remote host closed the connection]
rmulligan has quit [Ping timeout: 268 seconds]
Snowy has quit [Quit: ragequit]
fullofca_ has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
drewbro has joined #ruby
ecnalyr has quit []
marxarelli has joined #ruby
rbennace_ has joined #ruby
firstdayonthejob has joined #ruby
speakingcode is now known as barackobama
barackobama is now known as speakingcode
freerobby has quit [Quit: Leaving.]
rkazak has quit [Ping timeout: 244 seconds]
skweek has quit [Ping timeout: 248 seconds]
fullofcaffeine has joined #ruby
rbennacer has quit [Ping timeout: 260 seconds]
Jardayn has joined #ruby
hightower3 has joined #ruby
nobitanobi has quit [Remote host closed the connection]
fullofca_ has quit [Ping timeout: 246 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moos3 has joined #ruby
Bounga has joined #ruby
weemsledeux has joined #ruby
hightower2 has quit [Ping timeout: 260 seconds]
David27 has joined #ruby
<n1colas>
Hello
symm- has quit [Ping timeout: 246 seconds]
hotpancakes has quit []
moos3 has quit [Ping timeout: 240 seconds]
DoubleMalt has joined #ruby
x77686d has joined #ruby
matp has joined #ruby
<smathy>
theRoUS, eventmachine is more about IO. Sounds like you need a job queue setup like sidekiq with two workers.
gokulnath has quit [Ping timeout: 260 seconds]
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<x77686d>
Does anybody know if given '/(?<g>.)(?<g>.)/ =~ "ab" ', $~["g"] is guaranteed to be "b".
<x77686d>
?
Jardayn has quit [Read error: Connection reset by peer]
<smathy>
apeiros, sorry, just saw your question from earlier, yes, like Regexp.new(Regexp.escape(string))
PaulCapestany has quit [Remote host closed the connection]
benlieb has joined #ruby
<apeiros>
smathy: np. I see. I think I'd use /#{Regexp.escape(string})/, but I can see how one could prefer Regexp.new over that.
<smathy>
x77686d, yes, later matches override earlier ones.
jottr has joined #ruby
PaulCapestany has joined #ruby
maletor has joined #ruby
gokulnath has joined #ruby
<smathy>
apeiros, yeah, just because of the noise in that. I (seriously) often go looking for Perl's \Q in the ruby docs, sure that I *must* have missed it last time ;)
<Ox0dea>
The earlier one is still in there, though; how do we get hold of it?
drptbl has quit [Ping timeout: 244 seconds]
sdothum has joined #ruby
diegoaguilar has joined #ruby
joonty has quit [Ping timeout: 264 seconds]
troulouliou_div2 has joined #ruby
LoneHerm_ has quit [Ping timeout: 252 seconds]
<smathy>
Ox0dea, .captures.first
swills has joined #ruby
Dimik has joined #ruby
futilegames has joined #ruby
thenextmogul has quit [Quit: Connection closed for inactivity]
dionysus69 has quit [Quit: dionysus69]
Antiarc_ has joined #ruby
Antiarc_ has quit [Remote host closed the connection]
<x77686d>
Is a there name for a group of semicolon-separated expressions in parentheses, like (f; g; h)? I'm inclined to call it a compound expression but I'm wondering if there's a widely-used term for that construct.
<Ox0dea>
smathy: Anticlimactic.
davee_ has joined #ruby
<Ox0dea>
x77686d: That sounds about right. Best avoided, though.
<x77686d>
Here's an example: while (print "? "; line = gets) Can you avoid it there?
ChiefAlexander has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
choke has joined #ruby
<eam>
x77686d: yes, you put that code in a method
<apeiros>
while get_input; … end
moeabdol1 has quit [Ping timeout: 244 seconds]
<eam>
the answer to pretty much every "that's complex" issue is "use a method to structure things"
s2013 has joined #ruby
jottr has quit [Remote host closed the connection]
s2013 has quit [Client Quit]
<smathy>
Ox0dea, I bet you were hoping ['g'].first would work.
chipotle_ is now known as chipotle
<Ox0dea>
smathy: Or, well, it'd be interesting if $~.named_captures had conflict resolution.
<Ox0dea>
It's obviously egregious here, but Hash#conflict_proc would be interesting.
tildes has quit [Ping timeout: 248 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
<smathy>
I guess they spend their day overcoming hurdles?
<Ox0dea>
> I see us JavaScript developers as hurdle-runners where every 30 seconds we need to jump over a new obstacle.
Eiam_ has quit [Read error: Connection reset by peer]
<shevy>
I wouldn't know a thing about how javascript developers feel
Eiam_ has joined #ruby
Eiam_ has quit [Client Quit]
<jackdan>
i remember some video with a slim girl representing ruby
jottr has quit [Remote host closed the connection]
<jackdan>
and some office dude with jars representing java
<manveru>
that's pretty much how i feel when i write js...
<smathy>
My only thought from all that azer stuff was, "Seriously, 2016 and JS *still* has no sprintf?"
<jackdan>
manveru: you feel like a slim girl?
<manveru>
this :P
<manveru>
uhm... sometimes
Jonah11_ has joined #ruby
<manveru>
i meant more the hurdle thing with js
<manveru>
when you need to add a polyfill just to use Array.find
<manveru>
or to compare two timestamps
<manveru>
or have to support i18n in safari and IE
lkba has quit [Ping timeout: 246 seconds]
sinanislekdemir has joined #ruby
boontdustie has joined #ruby
Jonah11_ has quit [Client Quit]
ChiefAlexander has joined #ruby
davee_ has quit [Ping timeout: 250 seconds]
<manveru>
oh well, i just wish JS didn't feel so much like someone wrapped a stripped-down version of scheme into ugly syntax and called it a day
JohnBat26 has joined #ruby
<Ox0dea>
*week
<jackdan>
ruby holds the true power of OOP
<jackdan>
why not opal manveru ?
Bounga has quit [Ping timeout: 260 seconds]
<manveru>
because i'd have to teach my team opal? :P
<jackdan>
o you have a team
<manveru>
leaky abstractions and such
<jackdan>
wait arent you like in japan
codecop has joined #ruby
<jackdan>
where everyone is a master in ruby
rolha_ has joined #ruby
djbkd has joined #ruby
<jackdan>
"ooo rubbbyyyy, naissaaaaa"
<manveru>
no... it's been years since i was in japan
drewbro has quit [Ping timeout: 276 seconds]
<manveru>
and even there i mostly worked for US companies
<manveru>
how do you know that anyway :)
nando293921 has quit [Ping timeout: 246 seconds]
<smathy>
I can actually understand i18n and date stuff much better, sprintf is part of the C's stdlib, there's almost zero technical barrier to adding it into JS.
ChiefAlexander has quit [Ping timeout: 244 seconds]
rolha has quit [Ping timeout: 260 seconds]
elifoster has quit [Ping timeout: 244 seconds]
ramfjord_ has joined #ruby
drewbro has joined #ruby
<manveru>
i18n was actually added by every browser but safari
<smathy>
I mean, it's such a ridiculous joke, that string formatting is harder in JS than C
rbennacer has quit [Remote host closed the connection]
davee_ has joined #ruby
rbennacer has joined #ruby
davee_ has quit [Max SendQ exceeded]
LoneHerm_ has quit [Ping timeout: 252 seconds]
davee_ has joined #ruby
davee_ has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 260 seconds]
andywojo has joined #ruby
ur5us has joined #ruby
ascarter_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
intrigueD has quit [Remote host closed the connection]
threh has quit [Ping timeout: 268 seconds]
nobitanobi has joined #ruby
<smathy>
theRoUS, itnothing to do with the web.
minimalism has joined #ruby
<smathy>
*it's
<smathy>
theRoUS, evenmachine, on the other hand.
DoubleMalt has quit [Remote host closed the connection]
<theRoUS>
smathy: the documentation seems pretty focussed there, and i don't need persistence -- in-memory queuing is all i need
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
* theRoUS
shrugs
<theRoUS>
i've used EM a little in the past, which is the reason it was my first thought
<djellemah>
theRoUS: how about Queue? - it's in core.
<djellemah>
unless, GVL.
s2013 has joined #ruby
ascarter_ has joined #ruby
vdamewood has joined #ruby
ascarter has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
<smathy>
theRoUS, yeah, just do it yourself with Queue, or the other thing I thought of because you don't care about persistence would be https://github.com/brandonhilkert/sucker_punch
rolha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
`tim` has joined #ruby
drewbro has quit [Ping timeout: 264 seconds]
sinanislekdemir has quit [Remote host closed the connection]
Karix has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoaguilar has quit [Ping timeout: 252 seconds]
<Fire-Dragon-DoL>
meatchicken: ifyou didn't find it, check rspec-mocks documentation, there is allow(foo).to receive(:something).and_return(whatever), there are also test doubles and other stuff. It's more powerful than jasmine, really nice
spuk has joined #ruby
Melpaws has joined #ruby
diegoaguilar has joined #ruby
djellemah_ has quit [Ping timeout: 260 seconds]
Trynemjoel has quit [Ping timeout: 264 seconds]
mwlang has quit [Ping timeout: 276 seconds]
spuk has quit [Changing host]
spuk has joined #ruby
Trynemjoel has joined #ruby
ruby-lang553 has joined #ruby
znz_jp has quit [Ping timeout: 250 seconds]
mwlang has joined #ruby
Karix has joined #ruby
ruby-lang527 has joined #ruby
krz has quit [Ping timeout: 268 seconds]
smcfarlane has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
smcfarlane has quit [Client Quit]
digneety has joined #ruby
rodfersou has joined #ruby
htmldrum has joined #ruby
dtzuzu has joined #ruby
htmldrum_ has joined #ruby
blackmesa has joined #ruby
swills has quit [Ping timeout: 248 seconds]
ruby-lang553 has quit [Ping timeout: 250 seconds]
rbennace_ has joined #ruby
fullofca_ has joined #ruby
chouhoulis has quit []
fullofcaffeine has quit [Ping timeout: 250 seconds]
superfox_il_volp has quit [Quit: Nettalk6 - www.ntalk.de]
TheGreatGudsby has joined #ruby
drewbro has joined #ruby
cdg has joined #ruby
ss_much has quit [Quit: Connection closed for inactivity]
TheGreatGudsby is now known as drink
Melpaws has quit [Quit: Leaving.]
Timba-as has quit [Ping timeout: 244 seconds]
Melpaws has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
openstruct has joined #ruby
dreinull has left #ruby ["undefined"]
ericli has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
matthin has joined #ruby
blackmesa has joined #ruby
bronson has joined #ruby
Musashi007 has joined #ruby
drink is now known as TheGreatGudsby
Mon_Ouie has joined #ruby
fullofca_ has joined #ruby
shredding has quit [Ping timeout: 240 seconds]
Melpaws has quit [Quit: Leaving.]
choke has joined #ruby
mistermocha has joined #ruby
fullofcaffeine has quit [Ping timeout: 240 seconds]
theRoUS has quit [Changing host]
theRoUS has joined #ruby
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
codecop has quit [Remote host closed the connection]
LoneHermit has joined #ruby
djellemah has quit [Read error: Connection reset by peer]
dikaio has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
openstruct has quit []
jenrzzz has joined #ruby
LoneHermit has quit [Ping timeout: 252 seconds]
agentmeerkat has joined #ruby
rodfersou has quit [Quit: leaving]
jaroslav has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
<jaroslav>
Hi! I prefere simplicity, so I'm using 'chruby' instead of rvm. However, I'd like to have 'gemsets' like in rvm (so that each app would have own set of gems). I've found this: https://github.com/lengarvey/chruby_gemsets
intrigueD has joined #ruby
mary5030 has quit [Remote host closed the connection]
<smathy>
jaroslav, I'd go with bundler.
<jaroslav>
Is it a good option? Are there any alternatives?
<smathy>
jaroslav, I'm not sure what else "how can I do it" means.
s2013 has joined #ruby
<jaroslav>
smathy: well, in rvm the 'gemset' is a feature where completely unique directory for installing gems is defined on a per-app basis
Breaking_Pitt has quit [Ping timeout: 276 seconds]
<jaroslav>
smathy: so, if you eg. have ruby-2.3, you can do: # rvm ruby-2.3@my_fancy_app
<adaedra>
jaroslav: bundler already ensures the gems you are using are the ones defined by your project
<smathy>
jaroslav, so you're asking how bundler works under the hood?
anisha has quit [Quit: Leaving]
<adaedra>
at this point, gemsets are not doing more than forcing common gems to be installed multiple times instead of having shared installs.
Breaking_Pitt has joined #ruby
<jaroslav>
smathy: no, I just thought there's an option to do it exactly like I explained above, but I've missed it in the docs :)
<adaedra>
jaroslav: why do you want that?
AthenaF has left #ruby [#ruby]
<jaroslav>
smathy: I'm aware bundler + correct versions specified in *.gemspec file will do ~ the sam
<smathy>
jaroslav, Gemfile not *.gemspec along with Gemfile.lock, but not sure what you think is missing for your requirement of each app having its own set of gems.
<jaroslav>
adaedra: I just find it easier to control. If I have bunch of apps, with long dependency list, created by different people in my team, across many years...
<adaedra>
yes, and?
<jaroslav>
I just find it easier to be able to list directory contents, to know what a give app is using
<adaedra>
bundle list
patrick_star has joined #ruby
<smathy>
jaroslav, if you've got a lot invested in gemsets and you want to keep them then I'd recommend using rvm. I can't vouch for any of the non-rvm gemset managers, never used them or heard anything about them, sorry.
hahuang65 has joined #ruby
Aviio has joined #ruby
<jaroslav>
adaedra: smathy: thanks! I'll dig more around all the bundler features then. Probably you're right I can live without gemsets :)
yxhuvvd has quit [Quit: Leaving]
yxhuvud has joined #ruby
JohnBat26 has quit [Remote host closed the connection]
Breaking_Pitt has quit [Read error: Connection reset by peer]
sandstrom has joined #ruby
Mon_Ouie has quit [Ping timeout: 250 seconds]
<smathy>
jaroslav, I think there's even some rvm command for exporting a Gemfile.
<manveru>
jackdan: there's always nix
ericli has joined #ruby
* manveru
is the local nix abassador
anoob has joined #ruby
bluOxigen_ has quit [Ping timeout: 276 seconds]
dvinciguerra has joined #ruby
dtzuzu has joined #ruby
ChiefAlexander has quit [Quit: Leaving...]
ericli has quit [Ping timeout: 240 seconds]
diego1 has joined #ruby
queequeg1 has quit [Ping timeout: 244 seconds]
diego1 has quit [Changing host]
diego1 has joined #ruby
anoob has quit [Ping timeout: 250 seconds]
<shevy>
hah
dtzuzu has quit [Ping timeout: 260 seconds]
diegoviola has quit [Ping timeout: 276 seconds]
ericli has joined #ruby
diego2 has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
symm- has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
diego2 is now known as diegoviola
dc2 has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
queequeg1 has joined #ruby
diego1 has quit [Ping timeout: 268 seconds]
duncannz has quit [Remote host closed the connection]
hays_ has joined #ruby
moonbay has joined #ruby
<moonbay>
any brogrammers in here?
jobewan is now known as jobewan_away
<havenwood>
?offtopic moonbay
<ruby[bot]>
moonbay: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
hays has quit [Ping timeout: 264 seconds]
jobewan_away is now known as jobewan
chouhoul_ has joined #ruby
jobewan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sammichmaker has joined #ruby
dtzuzu has joined #ruby
benlieb has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
<smathy>
It was also surprising NOT to have access to a private method in a reopened class.
rolha has quit [Remote host closed the connection]
<Ox0dea>
smathy: How come? You're not invoking the private method with an explicit receiver.
davedev24 has quit [Remote host closed the connection]
<smathy>
Ox0dea, yeah it wasn't surprising after reading the docs.
<Ox0dea>
Ah, gotcha.
Gasher^ has quit [Quit: Konversation terminated!]
<smathy>
Ox0dea, just very surprising when I thought private made a private method ;)
intrigueD has quit [Remote host closed the connection]
rolha has joined #ruby
<Ox0dea>
As adaedra points out, method visibility is for humans.
dostoyev1ky is now known as dostoyevsky
<smathy>
Just very un-DWIMmy.
hays_ has quit [Ping timeout: 264 seconds]
<smathy>
I'm actually mostly surprised that I've not tripped over it before, I guess I don't use it much.
uptime has left #ruby ["I guess it's post to be."]
ramfjord has quit [Ping timeout: 268 seconds]
<Ox0dea>
The visibility specifiers are neat little one-word bundles of documentation.
<mg^>
yeah that's really the most pragmatic way to look at them
ericli has quit [Quit: Leaving]
<smathy>
:nod:
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djellemah has joined #ruby
hays has joined #ruby
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
TinkerTyper has quit [Ping timeout: 260 seconds]
Musashi007 has quit [Quit: Musashi007]
ramfjord has joined #ruby
trinaldi has quit [Quit: see ya]
Musashi007 has joined #ruby
TinkerTyper has joined #ruby
fullofca_ has quit [Remote host closed the connection]
Musashi007 has quit [Client Quit]
uglybandersnatch has joined #ruby
Musashi007 has joined #ruby
zenlot6 has joined #ruby
hays has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
zenlot has quit [Ping timeout: 244 seconds]
patrick_star_2 has joined #ruby
uglybandersnatch has quit [Ping timeout: 244 seconds]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
hays has joined #ruby
patrick_star has quit [Ping timeout: 260 seconds]
nobitanobi has quit [Remote host closed the connection]
dtzuzu has quit [Ping timeout: 244 seconds]
babblebre has quit [Quit: Connection closed for inactivity]
jobewan has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
pwnd_nsfw has joined #ruby
Gasher has joined #ruby
devbug has joined #ruby
johnmilton has joined #ruby
benlieb has quit [Quit: benlieb]
hays has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
Devalo has joined #ruby
Es0teric has joined #ruby
Moosashi has quit [Quit: Moosashi]
DonOtreply has joined #ruby
diegoviola has quit [Read error: Connection reset by peer]
mistermocha has quit [Ping timeout: 246 seconds]
shellie_ has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
Devalo has quit [Ping timeout: 264 seconds]
SCHAAP137 has joined #ruby
justinweiss has quit [Quit: Connection closed for inactivity]
<shevy>
a dual symbol!
<shevy>
:wink:
stannard has joined #ruby
drewbro has quit [Ping timeout: 248 seconds]
crazydiamond has quit [Remote host closed the connection]
kam270 has joined #ruby
<shellie_>
what's the best pattern to switch an underlying socket api that is used by my object representing a higher level protocol?
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
drewbro has joined #ruby
<smathy>
Zigzag.
<benzrf>
shellie_: have you considered using ømq instead :]
kappy has joined #ruby
<shellie_>
benzrf: I've no idea how that could help me? :)
<benzrf>
well, it was at least 70% facetious
<benzrf>
the 30% is just "if you don't know what ømq is, and you're doing some kind of higher-level protocol that involves swithing between implementations or sockets, maaaybe ømq is relevant?"
<shellie_>
I thought 0mq was just a message bus
<benzrf>
shellie_: anyway, you could probably take a socket class as an argument or attribute
<benzrf>
shellie_: not at all
<smathy>
shellie_, we have no idea what your problem is. Try to explain: what you're doing, what you're expecting, what's happening instead.
<benzrf>
its a collection of useful abstractions for sockety stuff that operates at a slightly higher level than plain old 2-way streams
<shellie_>
what I'm looking for, is to wrap a web connection and an web-ssl connection in separate classes, but presenting them to my object with a common interface. I'm just not sure of what would be the cleast way to plug this into my code.
<benzrf>
one of the things it happens to provide is the ability to treat the connection as a sequence of messages instead of as a sequence of bytes
<benzrf>
ah, nvm, irrelevant :>
saneax_AFK is now known as saneax
SCHAAP137 has quit [Ping timeout: 276 seconds]
<shellie_>
interesting, I shall look into 0mq nevertheless :)
saneax is now known as saneax_AFK
<shellie_>
(for different reason, tho)
saneax_AFK is now known as saneax
<benzrf>
shellie_: why not just add 'use ssl/tls' as an option in the ctor
<smathy>
shellie_, you're talking to web servers and you're writing your own socket-level code?
Moosashi has joined #ruby
Dreamer3_ has joined #ruby
FooMunki has quit [Quit: FooMunki]
<shellie_>
that's an option benzrf, for the very standard implemention; the issue is I might want to use a different ssl implementation (or even switch the code to use QUIC or something else entirely)
<shellie_>
also, smathy ^
FooMunki has joined #ruby
slawrence00 has quit [Ping timeout: 244 seconds]
daguilaraguilar has joined #ruby
diegoaguilar has quit [Ping timeout: 250 seconds]
stannard has joined #ruby
Inside has joined #ruby
Inside has joined #ruby
s2013 has joined #ruby
s2013 has quit [Max SendQ exceeded]
davedev24 has joined #ruby
JoshL has quit [Quit: ZNC 1.6.1+deb1~ubuntu14.04.0 - http://znc.in]
matthin has quit [Ping timeout: 252 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
SCHAAP137 has joined #ruby
stannard has quit [Ping timeout: 268 seconds]
JoshL has joined #ruby
ramfjord has joined #ruby
Moosashi has quit [Quit: Moosashi]
davedev24 has quit [Ping timeout: 268 seconds]
Gasher has quit [Ping timeout: 246 seconds]
DonOtreply has quit [Quit: DonOtreply]
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
jero__ has quit [Ping timeout: 260 seconds]
Gasher has joined #ruby
stunder001 has quit [Ping timeout: 260 seconds]
Melpaws has joined #ruby
stunder001 has joined #ruby
jinie has quit [Ping timeout: 276 seconds]
angular is now known as nighttime
sonOfRa has quit [Quit: Bye!]
jinie has joined #ruby
sonOfRa has joined #ruby
hxegon has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
tribals has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
Asher has quit [Ping timeout: 276 seconds]
Melpaws has quit [Quit: Leaving.]
stannard has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
stannard has quit [Ping timeout: 240 seconds]
bry4n has joined #ruby
bry4n_ has quit [Ping timeout: 268 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stunder001 has quit [Quit: WeeChat 1.4]
spider-mario has quit [Remote host closed the connection]