jhass changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
flashpoint9 has quit [Ping timeout: 250 seconds]
plujon has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
skalfyfan has joined #ruby
wrkrcoop has joined #ruby
skalfyfan has quit [Client Quit]
wrkrcoop has quit [Client Quit]
ramfjord_ has joined #ruby
tristanp has quit [Ping timeout: 240 seconds]
skalfyfan has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
skalfyfan has quit [Client Quit]
dminuoso has joined #ruby
pwnd_nsfw` has joined #ruby
failshell has joined #ruby
prooftechnique has quit [Quit: ZNC http://znc.in]
flashpoint9 has joined #ruby
prooftechnique has joined #ruby
pwnd_nsfw has quit [Ping timeout: 250 seconds]
<epitron> shevy: you could use set_trace_func to time each line of code
<epitron> Should be pretty straight forward... just make a giant hash of times
A_Drone has joined #ruby
dminuoso has quit [Ping timeout: 240 seconds]
tristanp has joined #ruby
hck89 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
failshell has quit [Ping timeout: 272 seconds]
<drbrain> shevy: use a sampling profiler
A_Drone has quit [Ping timeout: 264 seconds]
smathy is now known as smathy_afk
aryaching has quit [Ping timeout: 264 seconds]
nankyokusei has joined #ruby
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aryaching has joined #ruby
GodFather has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
frem_ has quit [Quit: Connection closed for inactivity]
coffeecupp has joined #ruby
Dimik-- has joined #ruby
phrozen77 has quit [Ping timeout: 276 seconds]
cd-rum has joined #ruby
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gnufied has quit [Ping timeout: 264 seconds]
nankyokusei has quit [Ping timeout: 276 seconds]
sepp2k has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
Mia has joined #ruby
whathappens has quit [Remote host closed the connection]
phrozen77 has joined #ruby
cd-rum has quit [Ping timeout: 244 seconds]
whathappens has joined #ruby
JeanCarloMachado has quit [Ping timeout: 272 seconds]
hutch34 has joined #ruby
ElFerna has joined #ruby
Axy has quit [Ping timeout: 240 seconds]
cd-rum has joined #ruby
whathappens has quit [Ping timeout: 258 seconds]
coffeecupp has quit [Ping timeout: 272 seconds]
bkxd has quit [Ping timeout: 276 seconds]
hutch34 has quit [Ping timeout: 264 seconds]
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
coffeecupp has joined #ruby
marxarelli has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
flashpoint9 has quit [Ping timeout: 250 seconds]
aeterne has quit [Read error: Connection reset by peer]
sneakers has quit [Ping timeout: 272 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
mattwashere has quit [Ping timeout: 246 seconds]
tubuliferous has joined #ruby
zeroDi has quit [Quit: WeeChat 1.5]
marr has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
rcvalle has quit [Quit: rcvalle]
pawnbox has joined #ruby
meinside has joined #ruby
shakes has joined #ruby
JesseH has joined #ruby
AndrewIs_ is now known as AndrewIsHere
yfeldblu_ has joined #ruby
allstar has joined #ruby
saneax is now known as saneax_AFK
Mon_Ouie has quit [Ping timeout: 240 seconds]
ferr has quit [Quit: WeeChat 1.5]
ReK2 has joined #ruby
ReK2GnULinuX has quit [Ping timeout: 240 seconds]
AndroidLoverInSF has quit [Quit: This computer has gone to sleep]
yfeldblu_ has quit [Remote host closed the connection]
dhk has joined #ruby
GodFather has joined #ruby
weaksauce has joined #ruby
spudowiar has quit [Quit: Leaving.]
AndrewIsHere has quit []
coffeecupp has quit [Ping timeout: 276 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
dminuoso has joined #ruby
flashpoint9 has joined #ruby
failshell has joined #ruby
toretore has quit [Ping timeout: 258 seconds]
skalfyfan has joined #ruby
dminuoso has quit [Ping timeout: 258 seconds]
yfeldblum has joined #ruby
dhk has quit [Quit: Leaving]
failshell has quit [Ping timeout: 240 seconds]
skalfyfan has quit [Client Quit]
A_Drone has joined #ruby
skalfyfan has joined #ruby
ruby-lang614 has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
ruby-lang614 has quit [Client Quit]
replay has quit []
flashpoint9 has quit [Remote host closed the connection]
Mayniac has joined #ruby
Ropeney has joined #ruby
bkxd has joined #ruby
flashpoint9 has joined #ruby
Rodya_ has joined #ruby
AndroidLoverInSF has joined #ruby
nersoh has joined #ruby
cpruitt has joined #ruby
flashpoint9 has quit [Ping timeout: 264 seconds]
bkxd has quit [Ping timeout: 250 seconds]
rodfersou has joined #ruby
tristanp has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
freerobby has quit [Client Quit]
smathy has joined #ruby
Rodya_ has quit [Remote host closed the connection]
AndroidLoverInSF has quit [Ping timeout: 264 seconds]
l4v2 has joined #ruby
giz|work|2 has joined #ruby
coffeecupp has joined #ruby
giz|work has quit [Ping timeout: 272 seconds]
AndroidLoverInSF has joined #ruby
tristanp has joined #ruby
AndroidLoverInSF has quit [Excess Flood]
colegatron_origi has quit [Ping timeout: 272 seconds]
A_Drone has quit [Remote host closed the connection]
dvinciguerra has quit [Ping timeout: 272 seconds]
Rodya_ has joined #ruby
yeticry has joined #ruby
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tokynet has quit [Quit: Connection closed for inactivity]
moeabdol has quit [Ping timeout: 246 seconds]
hellcode has quit [Quit: leaving]
moeabdol has joined #ruby
mattwashere has joined #ruby
AndyBotwin has quit [Quit: Leaving]
colegatron_origi has joined #ruby
bogusdisk has quit [Remote host closed the connection]
Christina_ has joined #ruby
AndroidLoverInSF has joined #ruby
<Christina_> Hey there! New to Ruby and need help with a problem anyone available to help?
arooni_______ has quit [Ping timeout: 250 seconds]
coffeecupp has quit [Ping timeout: 244 seconds]
arooni_________ has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
AndroidLoverInSF has quit [Max SendQ exceeded]
AndroidLoverInSF has joined #ruby
AndroidLoverInSF has quit [Max SendQ exceeded]
AndroidLoverInSF has joined #ruby
AndroidLoverInSF has quit [Max SendQ exceeded]
ElFerna has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
Ebok has joined #ruby
<nersoh> tell your problem, christina...
lxsameer has joined #ruby
arooni_______ has joined #ruby
arooni_________ has joined #ruby
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 244 seconds]
dminuoso has joined #ruby
kies has joined #ruby
ElFerna has joined #ruby
A_Drone has joined #ruby
hahuang61 has joined #ruby
SilverKey has quit [Quit: Halted.]
dminuoso has quit [Ping timeout: 276 seconds]
Christina_ has quit [Ping timeout: 250 seconds]
singalaut has joined #ruby
T2 has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
phrozen77 has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
daffy_duck has quit [Ping timeout: 276 seconds]
Mayniac has quit [Ping timeout: 250 seconds]
<shevy> drbrain okies
<shevy> epitron interesting idea
ged has quit [Read error: Connection reset by peer]
Mayniac has joined #ruby
ged has joined #ruby
arooni_______ has quit [Ping timeout: 240 seconds]
arooni_________ has quit [Ping timeout: 264 seconds]
phrozen77 has joined #ruby
benlieb has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
coffeecupp has joined #ruby
skalfyfan has joined #ruby
cpruitt has quit [Read error: Connection reset by peer]
cpruitt has joined #ruby
cd-rum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
Rodya_ has quit [Remote host closed the connection]
travisxcode has joined #ruby
nersoh has quit [Ping timeout: 250 seconds]
coffeecupp has quit [Ping timeout: 252 seconds]
T2 has quit [Quit: Leaving]
nando293921 has quit [Ping timeout: 264 seconds]
coffeecupp has joined #ruby
<travisxcode> Can the sleep method be interrupted at all? I'm trying to create a console application that starts a timer (which counts by the second), and stops when you press enter, displaying the total elapsed time since you started the timer.
flashpoint9 has joined #ruby
<travisxcode> I am new to Ruby, so I doubt that this is the most optimal way to do it, but I was going to create a variable named 'count' that sleeps for one second, then increments by 1, inside of a while loop.
cpruitt has quit [Quit: cpruitt]
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skalfyfan has joined #ruby
<travisxcode> If you have any suggestions as far as program design, I am open to them. Like I said, I'm new and I think this may not be the best way to handle an application such as this one.
tomchapin has quit [Ping timeout: 240 seconds]
<shevy> sigint will interrupt it :D
<shevy> so ctrl-c; you can also use threads to have it count in its own thread and handle the thread execution there
<travisxcode> Thanks shevy, I'll look into sigint. As far as my concept goes, would you consider it pretty solid?
<travisxcode> I'm sure there are a thousand different ways to handle this task, but I was curious as to whether there is a more 'rubyish' way?
mistermocha has joined #ruby
arooni_______ has joined #ruby
arooni_________ has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
<shevy> I have no idea if your concept is solid or not
<shevy> you want to do something so that's fine
<shevy> in your case you want to have the user input a newline (which is "press enter" essentially)
tmtwd has joined #ruby
<shevy> so you need some way to have a timer, and fetch user input at the same time
underplank has joined #ruby
<shevy> I am sure you can adapt the ping/pong to also include a sleep call via some method
<underplank> Hi all. I have some ruby code in a set of files. We have a dsl in each file that is basically function do { params }. I would like to autogenerate these function calls in ruby. Is there anything beyond just string parsing that does this?
mistermocha has quit [Ping timeout: 272 seconds]
<underplank> ie are there libraries around (or core ruby functions) that allow me to generate ruby code?
tristanp has quit [Ping timeout: 246 seconds]
wazzat has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
Beverage1 has quit [Read error: Connection reset by peer]
eizua has joined #ruby
tubuliferous has quit [Read error: Connection reset by peer]
coffeecupp has quit [Ping timeout: 240 seconds]
ramfjord_ has quit [Ping timeout: 272 seconds]
xall has joined #ruby
Guest43 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
coffeecupp has joined #ruby
gix has quit [Ping timeout: 240 seconds]
Mayniac has quit [Quit: Bye]
tristanp has joined #ruby
blackmesa has joined #ruby
gix has joined #ruby
zacts has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
Caerus|Away has quit [Ping timeout: 272 seconds]
jzigmund has quit [Ping timeout: 246 seconds]
A_Drone has quit [Ping timeout: 244 seconds]
dminuoso has joined #ruby
Wsewolod has joined #ruby
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
failshell has joined #ruby
hahuang61 has joined #ruby
treaki__ has joined #ruby
alfiemax has quit [Ping timeout: 276 seconds]
coffeecupp has quit [Ping timeout: 260 seconds]
dminuoso has quit [Ping timeout: 272 seconds]
xue has quit [Ping timeout: 276 seconds]
failshell has quit [Ping timeout: 260 seconds]
xlegoman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zacts has quit [Ping timeout: 240 seconds]
Dimik-- has quit [Ping timeout: 260 seconds]
treaki_ has quit [Ping timeout: 252 seconds]
Sucks has joined #ruby
tmtwd has quit [Ping timeout: 276 seconds]
hahuang61 has quit [Ping timeout: 272 seconds]
diegoviola has quit [Quit: WeeChat 1.5]
wazzat has quit [Quit: Textual IRC Client: www.textualapp.com]
xue has joined #ruby
xue has quit [Max SendQ exceeded]
allstar has quit [Remote host closed the connection]
xue has joined #ruby
bkxd has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
allstar has joined #ruby
isberg has quit [Read error: Connection reset by peer]
lxsameer has quit [Ping timeout: 258 seconds]
Caerus|Away has joined #ruby
<shevy> hmm I am wondering a bit about instance variables
travisxcode has quit [Ping timeout: 246 seconds]
<shevy> I tend to, the larger a project becomes, use quite a lot of instance variables for some (larger) classes
Tempesta has quit [Quit: AdiIRC is updating to v2.4 Beta Build (2016/07/12-1) 32 Bit]
<shevy> so now I am thinking - I could just store them all into one variable like @config, which is a hash or a hash like object instead
<shevy> and get rid of all of them; and query only that hash-like object instead
bkxd has quit [Ping timeout: 240 seconds]
xue has quit [Ping timeout: 276 seconds]
Tempesta has joined #ruby
xue has joined #ruby
Sucks has quit [Quit: Leaving]
Sucks has joined #ruby
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
Sucks has quit [Remote host closed the connection]
A_Drone has joined #ruby
Sucks has joined #ruby
dopie has joined #ruby
A_Drone has quit [Remote host closed the connection]
A_Drone has joined #ruby
zacts has joined #ruby
A_Drone has quit [Remote host closed the connection]
A_Drone has joined #ruby
mattwashere has quit [Ping timeout: 264 seconds]
Sucks has quit [Remote host closed the connection]
Sucks has joined #ruby
yadobujo has joined #ruby
coffeecupp has joined #ruby
dopie has quit [Quit: leaving]
dopie has joined #ruby
symm- has joined #ruby
lxsameer has joined #ruby
dopie has quit [Client Quit]
leea has joined #ruby
polysics has joined #ruby
scottalan has joined #ruby
coffeecupp has quit [Ping timeout: 250 seconds]
hk238 has joined #ruby
Hobogrammer has joined #ruby
dopie has joined #ruby
dopie has quit [Client Quit]
<scottalan> I'm new to Ruby and I'm trying to update, or rather, add to an existing Vagrantfile. I'm getting an error: `from /opt/drupalvm/master-env/Vagrantfile:189:in 'eval'` where 189 is referring to this line: `eval File.read "#{host_config_dir}/Vagrantfile.local" if File.exist?("#{host_config_dir}/Vagrantfile.local")`
benlieb has quit [Quit: benlieb]
<scottalan> sorry, I worded that incorrectly. The error is actually
coffeecupp has joined #ruby
<scottalan> 189:in `eval': undefined method `[]=' for nil:NilClass (NoMethodError)
mattwashere has joined #ruby
<scottalan> I assume it is referring to 'eval' as the method that is undefined, would that be correct?
tristanp has quit [Ping timeout: 240 seconds]
A_Drone has quit [Remote host closed the connection]
spiette has quit [Quit: :qa!]
gix has quit [Ping timeout: 276 seconds]
shakes has quit [Quit: Leaving]
A_Drone has joined #ruby
mattwashere has quit [Ping timeout: 272 seconds]
jon28_ is now known as Jon28
polysics has quit [Remote host closed the connection]
arescorpio has quit [Quit: Leaving.]
<shevy> scottalan you have a nil there
A_Drone has quit [Remote host closed the connection]
<shevy> x = nil; x[] = 'some value' # NoMethodError: undefined method `[]=' for nil:NilClass
tristanp has joined #ruby
gix has joined #ruby
daumie has joined #ruby
blackmesa has joined #ruby
<scottalan> shevy: ahh, okay. I missed part of the stacktrace: from (eval):1:in `each'
xall has quit [Ping timeout: 240 seconds]
<scottalan> Here is what I'm trying to iterate over:
<scottalan> case synced_folder['files']
<scottalan> when "/sites/default/files"
<scottalan> // logic
<scottalan> end
<scottalan> errr, that didn't get everything. Going to just post a gist
coffeecupp has quit [Ping timeout: 260 seconds]
coffeecupp has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
dopie has joined #ruby
dopie has quit [Client Quit]
dminuoso has joined #ruby
failshell has joined #ruby
<scottalan> shevy: So, in this example: https://gist.github.com/scottalan/aa519aa0b7f67d6e7fffbb39cf605d21 would that be referring to "synced_folder"?
<scottalan> for the nil?
xue has quit [Ping timeout: 272 seconds]
xall has joined #ruby
l4v2 has quit [Quit: l4v2]
kavanagh has joined #ruby
hahuang61 has joined #ruby
Beverage has joined #ruby
dminuoso has quit [Ping timeout: 244 seconds]
failshell has quit [Ping timeout: 258 seconds]
<shevy> I would use variables and check on these
<shevy> since you expect a certain value, yet you get nil, some error must have happened prior to that already
<shevy> have a look at the hash synced_folder
<shevy> on what line does the nil error occur?
benlieb has joined #ruby
Wsewolod has quit [Ping timeout: 258 seconds]
ElFerna has quit [Ping timeout: 276 seconds]
hahuang61 has quit [Ping timeout: 258 seconds]
nankyokusei has joined #ruby
benlieb has quit [Client Quit]
<scottalan> shevy: I updated the gist with more information
pontiki has joined #ruby
rodfersou has quit [Quit: leaving]
<scottalan> I really appreciate your help. Basically the file (Vagrantfile) looks for a (Vagrantfile.local) and it should include the contents of that file, correct?
karapetyan has joined #ruby
<shevy> I don't know how vagrant works
<shevy> I am also unsure why you have to use eval
nankyokusei has quit [Ping timeout: 272 seconds]
arooni_______ has quit [Ping timeout: 264 seconds]
fredolinhares has quit [Quit: WeeChat 1.5]
<shevy> make sure that your hash contains all the data that you require before you enter vconfig['vagrant_synced_folders'].each do |synced_folder|
arooni_________ has quit [Ping timeout: 260 seconds]
<shevy> or alternatively, add safeguards against nils
triangles2 has joined #ruby
<scottalan> okay, that helps actually. At least a place to start. Much appreciated!
karapetyan has quit [Ping timeout: 264 seconds]
triangles has quit [Ping timeout: 250 seconds]
Rickmasta has quit [Ping timeout: 276 seconds]
coffeecupp has quit [Ping timeout: 276 seconds]
coffeecupp has joined #ruby
underplank has quit [Quit: underplank]
daumie has quit [Ping timeout: 252 seconds]
Rickmasta has joined #ruby
travisxcode has joined #ruby
coffeecupp has quit [Client Quit]
akira616 has joined #ruby
daumie has joined #ruby
dkam has joined #ruby
dopie has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
alfiemax has joined #ruby
LMity has joined #ruby
pawnbox has joined #ruby
max2 has joined #ruby
yfeldblum has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
dminuoso has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
dopie has quit [Quit: Lost terminal]
LMity has quit [Quit: Nettalk6 - www.ntalk.de]
daumie has quit [Quit: WeeChat 1.4]
nlsun has left #ruby ["WeeChat 1.5"]
ur5us has joined #ruby
dopie has joined #ruby
dopie has quit [Client Quit]
dopie has joined #ruby
bluOxigen has joined #ruby
max2 has quit [Quit: WeeChat 1.4]
daumie has joined #ruby
daumie has quit [Client Quit]
djbkd has quit [Quit: My people need me...]
aryaching has quit [Remote host closed the connection]
conta has joined #ruby
kavanagh has quit [Ping timeout: 240 seconds]
ericsupreme has joined #ruby
astrobun_ has joined #ruby
daumie has joined #ruby
dopie has quit [Quit: leaving]
Hobogrammer has quit [Quit: WeeChat 0.4.2]
symm- has quit [Ping timeout: 276 seconds]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
singalaut is now known as Guest14824
Guest14824 has quit [Killed (hitchcock.freenode.net (Nickname regained by services))]
dopie has joined #ruby
singalaut has joined #ruby
<dminuoso> Who is up for a kickstarter project?
Ebok has quit [Quit: This computer has gone to sleep]
atom_ has joined #ruby
Hyuk has joined #ruby
xcesariox has joined #ruby
* daumie raises his hand
<dminuoso> daumie: Great, I was still looking for someone to actually fly it.
xue has joined #ruby
JackMc is now known as magic
<daumie> lol ..I will look at it when my network access is stable
Dimik-- has joined #ruby
daumie has quit [Quit: WeeChat 1.4]
daumie has joined #ruby
blackmesa has joined #ruby
willemb has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
<daumie> dminuoso: Will be a co -pilot or crew?
willemb has joined #ruby
<dminuoso> Considering that issue was closed with "WONTFIX", I'm not going to be near the thing.
vrand has joined #ruby
Madplatypus has joined #ruby
<daumie> dminuoso: Am currently unable to access the internet...will look at it
blackmesa has quit [Ping timeout: 258 seconds]
A_Drone has joined #ruby
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
symm- has joined #ruby
mistermocha has joined #ruby
dminuoso has quit [Ping timeout: 276 seconds]
hahuang61 has joined #ruby
isberg has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
howdoi has joined #ruby
vrand has quit [Remote host closed the connection]
macsteps has joined #ruby
dopie has quit [Quit: Lost terminal]
yadobujo has quit [Remote host closed the connection]
dopie has joined #ruby
dopie has quit [Client Quit]
yadobujo has joined #ruby
macsteps has quit [Remote host closed the connection]
dopie has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
travisxcode has quit [Ping timeout: 246 seconds]
conta has quit [Ping timeout: 252 seconds]
travisxcode has joined #ruby
yadobujo has quit [Ping timeout: 250 seconds]
<shevy> good thing that you did not need the internet to fly away from planet earth
aufi has joined #ruby
macsteps has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
macsteps has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
bkxd has joined #ruby
bkxd has quit [Ping timeout: 250 seconds]
tristanp has quit [Ping timeout: 252 seconds]
atom_ has quit [Ping timeout: 240 seconds]
dminuoso has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp has joined #ruby
Emmanuel_Chanel has joined #ruby
symm- has quit [Ping timeout: 252 seconds]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moeabdol has quit [Ping timeout: 276 seconds]
flashpoint9 has joined #ruby
daumie has quit [Quit: configuring weechat]
daumie has joined #ruby
dopie has quit [Quit: leaving]
terlar has joined #ruby
amclain has quit [Quit: Leaving]
Macaveli has joined #ruby
flashpoint9 has quit [Ping timeout: 250 seconds]
ledestin has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
dopie has joined #ruby
aryaching has joined #ruby
xlegoman has joined #ruby
dopie has quit [Client Quit]
TomyLobo has joined #ruby
dionysus69 has joined #ruby
dopie has joined #ruby
yadobujo has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
yadobujo has quit [Remote host closed the connection]
yadobujo has joined #ruby
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopie has quit [Client Quit]
ducklobster has joined #ruby
Sucks has quit [Quit: Leaving]
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopie has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 246 seconds]
Hyuk has joined #ruby
blackmesa has joined #ruby
moeabdol has joined #ruby
A_Drone has quit [Remote host closed the connection]
Sucks has joined #ruby
Sucks has quit [Max SendQ exceeded]
Sashimi has joined #ruby
mlehrer has quit [Ping timeout: 244 seconds]
A_Drone has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
dopie has quit [Quit: Lost terminal]
failshell has joined #ruby
priodev has quit [Ping timeout: 246 seconds]
vuoto has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
priodev has joined #ruby
djbkd has quit [Remote host closed the connection]
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
Emmanuel_Chanel has joined #ruby
failshell has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
zacts has quit [Ping timeout: 260 seconds]
mlehrer has joined #ruby
latemus has quit [Quit: Lost terminal]
stardiviner has joined #ruby
daumie has quit [Quit: Gotta have some breakfast]
nankyokusei has joined #ruby
dminuoso has quit [Ping timeout: 276 seconds]
ltp has quit [Remote host closed the connection]
A_Drone has quit []
A_Drone has joined #ruby
the_drow has joined #ruby
ltp has joined #ruby
codecop has joined #ruby
firstdayonthejob has joined #ruby
daumie has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
vuoto has quit [Ping timeout: 244 seconds]
bkxd has joined #ruby
Gooer has joined #ruby
daumie has quit [Quit: WeeChat 1.4]
bfrizzle has quit [Ping timeout: 260 seconds]
polysics has joined #ruby
firstdayonthejob has quit [Ping timeout: 240 seconds]
zacts has joined #ruby
finnnnnnnnnnn has joined #ruby
conta has joined #ruby
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 264 seconds]
Hyuk has joined #ruby
atom_ has joined #ruby
polysics has quit [Ping timeout: 276 seconds]
Pumukel has joined #ruby
TomyLobo has quit [Ping timeout: 264 seconds]
xall has quit [Ping timeout: 264 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
Gooer has quit [Read error: Connection reset by peer]
allstar has quit [Quit: Leaving]
xall has joined #ruby
travisxcode has quit [Ping timeout: 240 seconds]
travisxcode has joined #ruby
Sashimi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hakunin has joined #ruby
daumie has joined #ruby
diprotic has joined #ruby
diprotic has quit [Changing host]
diprotic has joined #ruby
A_Drone has quit [Remote host closed the connection]
monoprotic has quit [Ping timeout: 244 seconds]
AnoHito_ has quit [Ping timeout: 272 seconds]
mark_66 has joined #ruby
burgestrand has joined #ruby
dminuoso has joined #ruby
xlegoman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
Dimik has joined #ruby
triangles has joined #ruby
akira616 has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
AnoHito has joined #ruby
dionysus69 has joined #ruby
triangles2 has quit [Ping timeout: 260 seconds]
Pumukel has quit [Ping timeout: 260 seconds]
jsaak has quit [Ping timeout: 260 seconds]
daumie has quit [Quit: WeeChat 1.4]
jsaak has joined #ruby
Sashimi has joined #ruby
Pumukel has joined #ruby
blaxter has joined #ruby
Sashimi has quit [Client Quit]
A_Drone has joined #ruby
<yadobujo> I am trying to see if an interface is there where the minitest tests start (setup) with if system("ifconfig vether33") and it works but also I get the command's output. I tried to dump it with if system("ifconfig vether33 > /dev/null") but the same thing is exported again. Any ideas ?
finnnnnnnnnnn has quit [Quit: finnnnnnnnnnn]
edwinvdgraaf has joined #ruby
bweston92 has quit [Read error: Connection reset by peer]
moeabdol1 has joined #ruby
lkb has joined #ruby
moeabdol has quit [Ping timeout: 258 seconds]
daumie has joined #ruby
Dimik has quit []
tristanp has quit [Read error: Connection reset by peer]
pawnbox has quit [Read error: Connection reset by peer]
AndroidLoverInSF has joined #ruby
tristanp has joined #ruby
craigp has quit [Ping timeout: 240 seconds]
jsaak has quit [Ping timeout: 244 seconds]
aasmith has quit [Ping timeout: 272 seconds]
hahuang61 has joined #ruby
burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol1 has quit [Ping timeout: 276 seconds]
<dminuoso> yadobujo: I think you are trying to use minitest for something minitest is not meant for.
TomyWork has joined #ruby
<dminuoso> yadobujo: But that aside, do you just care about the return status?
<yadobujo> dminuoso: no I am just creating and deleting interfaces and I want to be sure they don't exist before running tests
triangles has quit [Quit: Leaving]
<yadobujo> dminuoso: and yes, I don't want output, just a true/false that system() does
travisxcode has quit [Ping timeout: 246 seconds]
tristanp has quit [Ping timeout: 250 seconds]
AndroidLoverInSF has quit [Ping timeout: 244 seconds]
<dminuoso> This works for me: Kernel.system("ifconfig en0 > /dev/null")
AndroidLoverInSF has joined #ruby
hahuang61 has quit [Ping timeout: 276 seconds]
Pumukel has quit [Ping timeout: 272 seconds]
jsaak has joined #ruby
Pumukel has joined #ruby
moeabdol1 has joined #ruby
<dminuoso> yadobujo: Oh, if if fails it does not write to STDOUT but STDERR, so you need to redirect STDERR too.
biberu has joined #ruby
<dminuoso> yadobujo: system("ifconfig vether33 > /dev/null 2>&1") should probably do the trick for you.
<yadobujo> kernel? hmm
blackgoat has quit [Ping timeout: 272 seconds]
<dminuoso> yadobujo: Well, that's where system comes from.
<dminuoso> I was just explicit about it, since I majorly dislike how Kernel pollutes global namespace.
haxrbyte has joined #ruby
ponga has joined #ruby
<yadobujo> dminuoso: awesome. Thank you
tristanp has joined #ruby
Hounddog has joined #ruby
antgel has joined #ruby
haxrbyte_ has quit [Ping timeout: 250 seconds]
bhrgunatha has joined #ruby
jaruga___ has joined #ruby
Pumukel has quit [Ping timeout: 272 seconds]
jaruga___ has quit [Read error: Connection reset by peer]
jaruga___ has joined #ruby
Silthias has joined #ruby
Dimik-- has quit [Ping timeout: 276 seconds]
polysics has joined #ruby
nocco has joined #ruby
harfangk has joined #ruby
bhrgunatha has quit [Quit: ChatZilla 0.9.92 [Firefox 47.0.1/20160630070928]]
jenrzzz has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
jsaak has quit [Ping timeout: 240 seconds]
daumie has quit [Ping timeout: 246 seconds]
gnufied has joined #ruby
aganov has joined #ruby
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
polysics has quit [Ping timeout: 252 seconds]
Gooer has joined #ruby
LoneHerm_ has joined #ruby
gnufied has quit [Client Quit]
Silthias has quit [Ping timeout: 258 seconds]
bkxd has joined #ruby
rsc___ has joined #ruby
rsc___ is now known as rstacru
rstacru is now known as rstacruz
multi_io has quit [Ping timeout: 260 seconds]
anisha has joined #ruby
AndroidLoverInSF has quit [Quit: Leaving]
travisxcode has joined #ruby
harfangk has quit [Quit: harfangk]
Couch has joined #ruby
multi_io has joined #ruby
edwardly has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 258 seconds]
Hyuk has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
futilegames has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
ngw has joined #ruby
futilegames has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jsaak has joined #ruby
ur5us has joined #ruby
elaptics`away is now known as elaptics
flashpoint9 has quit [Ping timeout: 250 seconds]
roshanavand has joined #ruby
Silthias has joined #ruby
armyriad has quit [Ping timeout: 252 seconds]
atom_ has quit [Quit: WeeChat 1.5]
saneax_AFK is now known as saneax
ur5us has quit [Remote host closed the connection]
jolamb has quit [Quit: ZNC - http://znc.in]
hutch34 has joined #ruby
kgutteridge has joined #ruby
harfangk has joined #ruby
terlar has quit [Quit: WeeChat 1.5]
armyriad has joined #ruby
dopie has joined #ruby
andikr has joined #ruby
Sashimi has joined #ruby
terlar has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
theRoUS has quit [Ping timeout: 264 seconds]
craigp has joined #ruby
harfangk has quit [Quit: harfangk]
burgestrand has joined #ruby
Macaveli has joined #ruby
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
failshell has joined #ruby
tmtwd has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
atom_ has joined #ruby
A_Drone has quit [Remote host closed the connection]
Axy has joined #ruby
Gooer has quit [Read error: Connection reset by peer]
failshell has quit [Ping timeout: 246 seconds]
Mia has quit [Ping timeout: 276 seconds]
hahuang61 has joined #ruby
Es0teric has joined #ruby
nankyokusei has joined #ruby
nocco has quit []
hahuang61 has quit [Ping timeout: 264 seconds]
auzty has joined #ruby
harfangk has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
Mia has joined #ruby
Axy has quit [Ping timeout: 246 seconds]
marr has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
armyriad has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
interki has joined #ruby
hipertracker has joined #ruby
ta_ has joined #ruby
bweston92 has joined #ruby
polysics has joined #ruby
jolamb has joined #ruby
travisxcode has quit [Ping timeout: 246 seconds]
der-landgraf has quit [Ping timeout: 246 seconds]
Mia has quit [Ping timeout: 260 seconds]
Mia has joined #ruby
polysics has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
AlexRussia has joined #ruby
Sashimi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sashimi has joined #ruby
anisha_ has joined #ruby
anisha has quit [Ping timeout: 246 seconds]
jolamb has quit [Quit: ZNC - http://znc.in]
hck89 has joined #ruby
travisxcode has joined #ruby
elifoster has quit [Quit: sleep]
Sashimi has quit [Client Quit]
blackmesa has joined #ruby
Sashimi has joined #ruby
terlar has quit [Quit: WeeChat 1.5]
blackmesa has quit [Ping timeout: 264 seconds]
tristanp has quit [Ping timeout: 240 seconds]
LoneHermit has joined #ruby
Tristan-Speccy has joined #ruby
Tristan-Speccy is now known as Guest2370
aryaching has quit [Ping timeout: 244 seconds]
der-landgraf has joined #ruby
jolamb has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
A_Drone has joined #ruby
harfangk has quit [Quit: harfangk]
LoneHermit has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
tristanp has joined #ruby
kedare has joined #ruby
Hyuk has joined #ruby
chip_ has joined #ruby
rstacruz has quit [Quit: rstacruz]
Snowy has joined #ruby
blackmesa has joined #ruby
ta_ has quit [Remote host closed the connection]
xall has quit [Ping timeout: 250 seconds]
bkxd has joined #ruby
hahuang61 has joined #ruby
sergey_makagon has joined #ruby
tmtwd has quit [Ping timeout: 276 seconds]
Gooer has joined #ruby
xcesariox has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
A_Drone has quit [Ping timeout: 276 seconds]
karapetyan has joined #ruby
Ropeney has joined #ruby
Ropeney has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Gooer has quit [Read error: Connection reset by peer]
A_Drone has joined #ruby
harfangk has joined #ruby
mdw has joined #ruby
yoongkang has joined #ruby
jmignault has joined #ruby
polysics has joined #ruby
beawesomeinstead has quit [Read error: Connection reset by peer]
nadir has quit [Ping timeout: 258 seconds]
beawesomeinstead has joined #ruby
postmodern has quit [Quit: Leaving]
jmignault has quit [Ping timeout: 246 seconds]
yoongkang has quit [Remote host closed the connection]
nadir has joined #ruby
polysics has quit [Ping timeout: 246 seconds]
yoongkang has joined #ruby
yoongkang has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
yoongkang has joined #ruby
daffy_duck has joined #ruby
tvw has quit []
karapetyan has quit [Remote host closed the connection]
yoongkang has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
yoongkang has joined #ruby
LoneHermit has joined #ruby
yoongkang has quit [Read error: Connection reset by peer]
Wildfyr has joined #ruby
Wildfyr has quit [Changing host]
Wildfyr has joined #ruby
failshell has joined #ruby
failshell has quit [Remote host closed the connection]
LoneHermit has quit [Ping timeout: 250 seconds]
harfangk has quit [Quit: harfangk]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
A_Drone has quit [Remote host closed the connection]
A_Drone has joined #ruby
Mon_Ouie has joined #ruby
pandaant has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hyuk has joined #ruby
marsjaninzmarsa has quit [Quit: ZNC 1.7.x-git-487-cbf5c38 - http://znc.in]
marsjaninzmarsa has joined #ruby
Mia has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
harfangk has joined #ruby
yfeldblum has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
pawnbox has joined #ruby
nennes has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
hahuang61 has joined #ruby
karapetyan has quit [Remote host closed the connection]
johnny56 has joined #ruby
A_Drone has quit [Remote host closed the connection]
karapetyan has joined #ruby
nankyokusei has joined #ruby
karapetyan has quit [Remote host closed the connection]
johnny56_ has quit [Ping timeout: 264 seconds]
hahuang61 has quit [Ping timeout: 250 seconds]
A_Drone has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
nankyokusei has quit [Ping timeout: 258 seconds]
freerobby has joined #ruby
Es0teric has joined #ruby
rstacruz has joined #ruby
nennes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp has quit [Ping timeout: 240 seconds]
toretore has joined #ruby
auzty has quit [Quit: Leaving]
postapocallyptic has quit [Read error: Connection reset by peer]
Gooer has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
bluOxigen has joined #ruby
minimalism has quit [Quit: minimalism]
matp has quit [Remote host closed the connection]
tristanp has joined #ruby
Azure has quit [Ping timeout: 250 seconds]
polysics has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
Azure has joined #ruby
polysics has quit [Ping timeout: 276 seconds]
pandaant has quit [Remote host closed the connection]
Mia has joined #ruby
harfangk has quit [Quit: harfangk]
Miron has quit [Ping timeout: 250 seconds]
armyriad has joined #ruby
sulky_ has quit [Ping timeout: 276 seconds]
Axy has joined #ruby
Mia has quit [Ping timeout: 258 seconds]
sdothum has joined #ruby
yfeldblum has joined #ruby
Sashimi has quit [Read error: Connection reset by peer]
Sashimi has joined #ruby
mistermocha has joined #ruby
LoneHerm_ has joined #ruby
armyriad has quit [Ping timeout: 276 seconds]
failshell has joined #ruby
johnmilton has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 250 seconds]
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
pawnbox_ has joined #ruby
LoneHerm_ has quit [Ping timeout: 258 seconds]
A_Drone has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 240 seconds]
failshell has quit [Ping timeout: 240 seconds]
armyriad has joined #ruby
rstacruz has quit [Quit: rstacruz]
moeabdol1 has quit [Ping timeout: 240 seconds]
rodfersou has joined #ruby
astrobun_ has quit [Remote host closed the connection]
Miron has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
armyriad has quit [Ping timeout: 240 seconds]
A_Drone has joined #ruby
sulky_ has joined #ruby
hck89 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
armyriad has joined #ruby
Sashimi has quit [Read error: Connection reset by peer]
flashpoint9 has joined #ruby
Sashimi has joined #ruby
nhhc has joined #ruby
burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
A_Drone has quit [Remote host closed the connection]
matp has joined #ruby
armyriad has quit [Ping timeout: 276 seconds]
harfangk has joined #ruby
jmignault has joined #ruby
A_Drone has joined #ruby
last_staff has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
Es0teric has joined #ruby
Axy has quit [Ping timeout: 272 seconds]
flashpoint9 has quit []
hanmac has quit [Ping timeout: 258 seconds]
roshanavnad_ has joined #ruby
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roshanavand has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
Ishido has joined #ruby
cajone_afk has quit [Ping timeout: 276 seconds]
craigp has quit [Ping timeout: 272 seconds]
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
harfangk has quit [Quit: harfangk]
A_Drone has quit [Remote host closed the connection]
cajone has joined #ruby
Ebok has joined #ruby
eizua has quit [Quit: Leaving]
Ebok has quit [Client Quit]
sergey_m_ has joined #ruby
singalaut has quit [Quit: WeeChat 1.6-dev]
armyriad has joined #ruby
ericsupreme has quit [Remote host closed the connection]
Pumukel has joined #ruby
ldnunes has joined #ruby
blackgoat has joined #ruby
Wildfyr has quit [Ping timeout: 264 seconds]
armyriad has quit [Max SendQ exceeded]
xiaket has joined #ruby
sergey_makagon has quit [Ping timeout: 252 seconds]
mdw has quit [Ping timeout: 250 seconds]
johnmilton has joined #ruby
AphelionZ has joined #ruby
<AphelionZ> hi, can somebody help me with a ruby + heroku deployment. It appears as if my app is not reading the environment variables properly
blackmesa has quit [Ping timeout: 246 seconds]
<dminuoso> AphelionZ: Do you have a Ruby error?
<AphelionZ> I have a block like this --> https://www.irccloud.com/pastebin/1KMrS3mK/
<ruby[bot]> AphelionZ: we in #ruby do not like irccloud.com, I reposted your paste to gist for you: https://gist.github.com/08a33eefe681fe00313a85a59df643e7
<ruby[bot]> AphelionZ: irccloud.com has no syntax highlighting, distracting formatting and loads slowly for most.
<AphelionZ> I don't have an error, no... I just have my RACK_ENV set to production
<AphelionZ> and this configure block doesnt seem to be firing
cfillion has quit [Ping timeout: 240 seconds]
<dminuoso> AphelionZ: How did you set RACK_ENV?
hanmac has joined #ruby
polysics has joined #ruby
<AphelionZ> as a config variable... what's confusing is my production app's config variables are identical
JeanCarloMachado has joined #ruby
<toretore> AphelionZ: you have to explain better what "doesn't work" means
<AphelionZ> im just not sure where :production is being set, and I'm not familiar enough with Ruby to debug :(
Es0teric has quit [Quit: Computer has gone to sleep.]
<AphelionZ> well I did
<AphelionZ> The configure block about should execute, it doesnt
Es0teric has joined #ruby
<AphelionZ> above*
<toretore> "doesn't seem to be firing" "not reading the environment variables properly" == "doesn't work"
<toretore> you have to be more specific
polysics has quit [Ping timeout: 240 seconds]
<toretore> you are talking about a bunch of variables, explain what they do and where they are used in your code
<AphelionZ> It's used here, in my application.rb
<toretore> is that the entire file? where is the file from?
dkam has quit [Read error: Connection reset by peer]
<dminuoso> AphelionZ: I would be aggressive about it, and pry into the execution block - and look at the environment.
augcesar has joined #ruby
dkam has joined #ruby
<AphelionZ> dminuoso: ok.. what is the best practice for debugging in heroku in that manner?
<dminuoso> AphelionZ: Is that script executed inside a shell somehow?
<dminuoso> AphelionZ: If not, https://github.com/Mon-Ouie/pry-remote
<AphelionZ> the procfile has web: bundle exec rake start
<AphelionZ> and then i believe rake is calling puma
<jhass> where did you get whatever this is from?
nennes has joined #ruby
harfangk has joined #ruby
<AphelionZ> age old story. I inherited this code from two devs who abandoned the project
<AphelionZ> they wanted to use every fancy thing under the sun (the front end is in friggin Dart)
<AphelionZ> and now I'm just trying to fix this deployment issue and I'm getting hung up on this
tristanp has quit [Ping timeout: 252 seconds]
ngw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AngryBuzzy has joined #ruby
<jhass> anyway, I agree that you didn't actually properly describe your problem yet
<AphelionZ> lol
<jhass> something doesn't work and somehow you narrowed it down to that context-free piece of code
<jhass> we can't even judge whether that assessment is right
synthroid has joined #ruby
<jhass> note that configure is not a core Ruby method, it could come from wherever
<jhass> we don't even have indications as to where it might come from
<toretore> AphelionZ: explain what you expect to happen, and then what actually happens
<toretore> the first step of any problem solving
travisxcode has quit [Ping timeout: 246 seconds]
<AphelionZ> I expect that block of code within the configure method to execute, based on the value of :production
<AphelionZ> what actually happens is that it does not
xall has joined #ruby
<toretore> how do you know that it doesn't?
<toretore> give more details
<AphelionZ> well i know it doesnt because there are s3 URLs on the front end that are populated based on the Paperclip config, that are null
<AphelionZ> so none of my images are loading
<toretore> how do you know that those actually come from this block of code?
the_drow has quit [Quit: This computer has gone to sleep]
<jhass> also "null" is not a well defined ruby value
<AphelionZ> ...is this how the ruby community helps people?
<toretore> you are making assumptions, and there are layers in between where you observe the result and where you think it comes from
<AphelionZ> take a hike, guys
<jhass> we try to find a solution that works for you, not take wild guesses and waste your time with trying them out
JeanCarloMachado has quit [Remote host closed the connection]
br07030 has joined #ruby
<jhass> if you prefer wild guesses over actual help, then yes we might not come together here
<br07030> hi
<AphelionZ> well, i havent seen any suggestions besides what dminuoso offered
xall has quit [Ping timeout: 240 seconds]
<dminuoso> AphelionZ: The only thing I offered was the only way to actually figure out whats wrong, so nobody has to guess.
<dminuoso> Well, perhaps not the only way. But one.
<AphelionZ> :) yes
<AphelionZ> anyway, I know that block of code is the culprit because i can get the image URLs to resolve locally by moving that Paperclip config out of the config :production do block
<AphelionZ> I have no idea how or where :production is being set - there are only two instances of it in the code base and they are both in similar config blocks
ngw has joined #ruby
tristanp has joined #ruby
Sashimi_ has joined #ruby
umdstu has joined #ruby
<jhass> 13:51 <toretore> is that the entire file? where is the file from?
<jhass> perhaps its time to answer that question so we get a clue as to where configure might come from
Rodya_ has joined #ruby
<AphelionZ> alright hang on
<TomyWork> if i include a module containing an initialize method in a class that also contains an initialize method, the module's initialize is overwritten and thus never called. How do I run module-specific code when the class is instantiated?
xiaket has quit [Read error: Connection reset by peer]
<AphelionZ> jhass: toretore here's the entire file, as a gist
<jhass> TomyWork: you have to call super in the class'es initialize
<jhass> TomyWork: or expect the class to implement a foo_initialize which you call from the module's
<jhass> TomyWork: initialize is just a regular method called from Class#allocate
<jhass> er, #new
<jhass> #new is #allocate && initialize on the new object
burgestrand has joined #ruby
Sashimi has quit [Ping timeout: 260 seconds]
Hyuk has joined #ruby
<TomyWork> jhass ok i called super in all the modules and classes and also gave the class a superclass that includes no modules
Sashimi_ has quit [Ping timeout: 276 seconds]
<TomyWork> now it calls the superclass initialize twice
<jhass> huh, example?
<TomyWork> got an executing bin?
<Mon_Ouie> eval.in executes your code
unforgiven512 has quit [Quit: ZNC - http://znc.in]
<Mon_Ouie> You wrote Baz.initialize in two places
<TomyWork> crap
<TomyWork> https://eval.in/private/444d531a0a06d4 ok now that's better
unforgiven512 has joined #ruby
unforgiven512 has quit [Max SendQ exceeded]
<TomyWork> thanks :D
unforgiven512 has joined #ruby
unforgiven512 has quit [Max SendQ exceeded]
unforgiven512 has joined #ruby
unforgiven512 has quit [Max SendQ exceeded]
unforgiven512 has joined #ruby
unforgiven512 has quit [Max SendQ exceeded]
unforgiven512 has joined #ruby
unforgiven512 has quit [Max SendQ exceeded]
<AphelionZ> jhass: when you get a chance, did you see the file?
unforgiven512 has joined #ruby
unforgiven512 has quit [Max SendQ exceeded]
catphish has joined #ruby
unforgiven512 has joined #ruby
unforgiven512 has quit [Max SendQ exceeded]
<jhass> yeah, currently double checking how sinatra decides whether to yield or not
unforgiven512 has joined #ruby
unforgiven512 has quit [Max SendQ exceeded]
nando293921 has joined #ruby
nando293921 has quit [Client Quit]
craigp has joined #ruby
<TomyWork> jhass so what happens here? does include insert the module as a superclass for the class and make that superclass's superclass the original superclass of the class?
unforgiven512 has joined #ruby
nando293921 has joined #ruby
<AphelionZ> so :environment should be getting set to 'production' as per my config vars, yes?
<AphelionZ> but what about :production
<AphelionZ> thats whats tripping me up... im not sure how that's set
<jhass> TomyWork: kind of, you can picture method lookup to check each entry of Class#ancestors sequentially and include as an insert into that array (compare .ancestors before and after an include)
<jhass> AphelionZ: :production is a Symbol, it's a value, like the string "production" is a value or the number 23 is one. .to_sym converts a String to a Symbol
mark_66 has quit [Read error: Connection reset by peer]
mark_661 has joined #ruby
* AphelionZ nods
<AphelionZ> so let me get this straight, that's saying take RACK_ENV if it exists, otherwise, assign :development (a Symbol)
<jhass> I would debug print ENV["RACK_ENV"] and Application.environment
<jhass> yeah
<AphelionZ> and a debug print will show up in heroku logs?
<jhass> and output to stdout or stderr will, yes
<jhass> *any
<AphelionZ> ok cool
<AphelionZ> hey, thank you
hipertracker has quit [Quit: hipertracker]
<AphelionZ> i'll try this stuff
pawnbox_ has quit [Remote host closed the connection]
<jhass> use Kernel#p btw, so just p ENV["RACK_ENV"] etc
<jhass> so you notice any spaces or other weird stuff
pawnbox has joined #ruby
sergey_m_ has quit []
<dminuoso> AphelionZ: Or just interactively debug it with pry.
nankyokusei has joined #ruby
<dminuoso> And not rely on magical print statements, that require re-execution for every new variable you might be interested in.
nando293921 has quit [Ping timeout: 276 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
deviation has joined #ruby
blackgoat has quit [Quit: WeeChat 1.5]
deviation has quit [Remote host closed the connection]
deviation has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
<TomyWork> instead, rely on a magical debugger that uses black magic to poke into running programs :D
pawnbox has joined #ruby
aphprentice has quit [Quit: Connection closed for inactivity]
aupadhye has joined #ruby
<AphelionZ> lol is it like this all the time in here?
<TomyWork> ruby is magic
<AphelionZ> apparently
hipertracker has joined #ruby
<elomatreb> Arguing over things that are pureley personal preference? All the time
alfiemax has quit [Ping timeout: 272 seconds]
<AphelionZ> ruby is love
AngryBuzzy has quit [Quit: This computer has gone to sleep]
dvinciguerra has joined #ruby
deviation has quit []
blackmesa has joined #ruby
pawnbox_ has joined #ruby
eizua has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
moeabdol1 has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
magicien has joined #ruby
pawnbox has joined #ruby
nennes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol2 has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
polysics has joined #ruby
moeabdol1 has quit [Ping timeout: 250 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Ping timeout: 250 seconds]
Es0teric has joined #ruby
pontiki has joined #ruby
Rodya_ has quit [Remote host closed the connection]
polysics has quit [Ping timeout: 276 seconds]
<AphelionZ> jhass: yup... environment is still development
<AphelionZ> ENV['RACK_ENV'] is also development which is O_o because I absolutely did not set that in the config vars
<jhass> well, time to blame heroku?
stoopidmunkey has joined #ruby
<jhass> maybe you're looking at the wrong app?
<jhass> AphelionZ: actually, perhaps Dotenv.load screws you over
<jhass> check your .env file whether it explicitly sets RACK_ENV
failshell has joined #ruby
<AphelionZ> aha! i think you'ere 100% correct
<AphelionZ> you're
failshell has quit [Client Quit]
<AphelionZ> let me check that out
<AphelionZ> yup. RACK_ENV=development in the env file
<jhass> there you go then
<AphelionZ> boom
<AphelionZ> thanks again
<jhass> yw
<AphelionZ> i guess i could check to see if ENV['RACK_ENV'] is set
<AphelionZ> and if not, load the .env
<jhass> eh I'd just not set it in the .env file
<jhass> there are fallbacks to development everywhere after all
<AphelionZ> ok
swills has quit [Ping timeout: 264 seconds]
<jhass> also good example of why I think the dotenv gem is a terrible idea, stuff like that should be setup/environment logic, not application logic
JesseH has quit [Ping timeout: 240 seconds]
<jhass> I have a zsh plugin for it for example
<AphelionZ> yeah, i see what you're saying
<AphelionZ> it was great when i was working locally
<AphelionZ> but now obviously its messing with my head
<jhass> and deployed stuff just sets it wherever the app is started explicitly
<AphelionZ> if it was built in to Dotenv to ignore already-set variables like I said, that would be nice
<jhass> it probably is
<jhass> by that doesn't correct my design issue with it
ItSANgo has quit [Quit: Leaving...]
al2o3-cr has quit [Ping timeout: 272 seconds]
willemb has quit [Read error: No route to host]
<jhass> normal load shouldn't override, there#s overload for that
<jhass> eh, s/by/but/
<pontiki> can you use ||= in the .env file?
lxsameer has quit [Quit: WeeChat 1.5]
<pontiki> never mind
<jhass> perhaps heroku reads a .env file?
LoneHermit has joined #ruby
Gooer has quit [Ping timeout: 246 seconds]
rstacruz has joined #ruby
ramortegui has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.92 [Firefox 47.0/20160604131506]]
omphe has joined #ruby
LoneHermit has quit [Ping timeout: 240 seconds]
PaulCapestany has quit [Quit: .]
Blue_Ice_ has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
PaulCapestany has joined #ruby
giz|work|2 has quit [Read error: Connection reset by peer]
treaki__ has quit [Ping timeout: 260 seconds]
giz|work has joined #ruby
pawnbox has quit [Remote host closed the connection]
spiette has joined #ruby
loocash has joined #ruby
pawnbox has joined #ruby
treaki__ has joined #ruby
loocash has left #ruby [#ruby]
bkxd has quit [Ping timeout: 264 seconds]
johnny56 has quit [Read error: Connection reset by peer]
antgel has quit [Ping timeout: 250 seconds]
treaki__ has quit [Max SendQ exceeded]
<AphelionZ> jhass: lol environment is development regardless of what I set in .env OR config vars
<AphelionZ> hell is a metaphor. we create hell for ourselves here on earth.
<AphelionZ> thats what I think about this project.
treaki__ has joined #ruby
johnny56 has joined #ruby
treaki__ has quit [Max SendQ exceeded]
tristanp has quit [Ping timeout: 258 seconds]
treaki__ has joined #ruby
ljc has joined #ruby
ItSANgo has joined #ruby
<ljc> hey, i'm on mac osx el capitan (10.11.5), and now i'm getting an error when i try to update gems (using `gem update`), where I don't have write permissions for /Library/RubyGems/2.0.0
<ljc> just wondering what the best practice is to now update the gems
chip_ has quit [Ping timeout: 246 seconds]
<adaedra> install gems as user (--user-install)
ryez has joined #ruby
Azure has quit [Ping timeout: 240 seconds]
treaki__ has quit [Max SendQ exceeded]
treaki__ has joined #ruby
<ljc> adaedra: thanks :)
shinnya has joined #ruby
treaki__ has quit [Max SendQ exceeded]
tristanp has joined #ruby
marr has quit [Ping timeout: 252 seconds]
nersoh_ has joined #ruby
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
malconis has joined #ruby
Billias has quit [Ping timeout: 258 seconds]
dfinninger has joined #ruby
ryez has quit [Ping timeout: 250 seconds]
GodFather has quit [Ping timeout: 244 seconds]
eljimmy has quit [Quit: This computer has gone to sleep]
interki has quit [Quit: Going offline, see ya! (www.adiirc.com)]
astrobunny has quit [Quit: Leaving...]
aegis3121 has joined #ruby
ljc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ljc has joined #ruby
cpruitt has joined #ruby
Azure has joined #ruby
l4v2 has joined #ruby
jrafanie has joined #ruby
darthdiablo has joined #ruby
nettoweb has joined #ruby
anisha_ has quit [Quit: Leaving]
swills has joined #ruby
<darthdiablo> Good morning - for some reason I cannot for life of me figure out how to read (all at once) from a StringIO CSV object http://ruby-doc.org/stdlib-2.2.0/libdoc/csv/rdoc/CSV.html#class-CSV-label-All+at+Once (except I'm not read from file, or string.. it's a StringIO object)
dkam has quit [Quit: Be back later ...]
polysics has joined #ruby
<toretore> CSV.read expects a string with a filename
<nettoweb> hey guys, Im trying to upload an rails app to heroku and I got an error with migration, because I tried to create a table with a reference to a table would be added in next migration. So it tried to add a constraint to related table and it was not created yet, giving an error.
gregf has quit [Quit: WeeChat 1.5]
<toretore> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
GodFather has joined #ruby
ChiefAlexander has joined #ruby
dkam has joined #ruby
icedp has quit [Ping timeout: 244 seconds]
<nettoweb> My question is if I have to add these tables before the table with the references?
andikr has quit [Read error: Connection reset by peer]
<nettoweb> ops sorry
<nettoweb> thanks
colegatron_origi has quit [Ping timeout: 272 seconds]
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
<darthdiablo> toretore: is there a way to read csv, of StringIO type? It's what I have, generated directly from CSV file (but not written to disk yet).. how do I read that back
<darthdiablo> for example this is what i have in console:
<darthdiablo> irb(main):119:0> string_io => <#CSV io_type:StringIO encoding:US-ASCII lineno:3 col_sep:"," row_sep:"\n" quote_char:"\"" headers:["id", "partner_id", "commission_rate", "partner_short_identifier", "bill_to", "remit_to", "billing_terms", "job_data", "created_at", "updated_at"]>
icedp has joined #ruby
hutch34 has joined #ruby
<toretore> what exactly is the object you have?
<toretore> the StringIO is contained within it
<darthdiablo> .class for the object returns CSV
<toretore> explain what you're trying to do
<darthdiablo> irb(main):120:0> string_io.class => CSV
<toretore> so you already have it then?
<darthdiablo> yeah, i believe i have object with 3 rows in it already, but i cannot seem to figure out how to read rows out of the object
polysics has quit [Ping timeout: 240 seconds]
<toretore> explain what you're trying to do
roshanavnad_ has quit [Ping timeout: 240 seconds]
<darthdiablo> explaining what i'm trying to do - yeah, trying to read rows out of the object I already have
<toretore> for what purpose?
<darthdiablo> to stream it toward user. Trying to avoid writing it to disk
<darthdiablo> i have object generated by CSV class.. but I don't want to write it to disk
<toretore> what does it mean to stream it to the user?
mattwashere has joined #ruby
<toretore> what does "read the rows out" mean?
<darthdiablo> it's just me wanting to have the console (irb) manually output the rows out of the object I have right now
<darthdiablo> sort of my own "hello world" i'm trying to do with this object but failing
<toretore> that doesn't mean anything
<toretore> i'm asking this because that's how you solve your problem - by accurately describing it
<toretore> you are having the problem in the first place because you can't accurately describe what you want to do
<darthdiablo> the problem simply is this: I need it to iterate over all rows i have inside this "string_io" instance I have, directly in the console session (irb) i'm running right now. that's iall
<darthdiablo> *all
<toretore> ok, so CSV includes Enumerable
<toretore> Enumerable has an each method, among other things
Billias has joined #ruby
<darthdiablo> hmm - sec, trying out .each
cdg has joined #ruby
<toretore> what you *actually* want to do is two different things: 1) you want to iterate through the data structure and then print something for each line to the console, and 2) iterate through the data and write it to an output stream in some (i assume) http library
freerobby has quit [Quit: Leaving.]
<darthdiablo> yeah - 2) is the eventual thing i want to do. right now all i'm trying to do is 1)
<toretore> the second issue is complicated because it depends, as everything does, on the context
freerobby has joined #ruby
<darthdiablo> once I get 1) resolved, i'll move on to 2). Haven't worked with CSV class in the past
LoneHermit has joined #ruby
<toretore> io_string.to_a
dminuoso has quit [Ping timeout: 258 seconds]
<toretore> this will do what you want for 1, but it doesn't help you understand how to solve 2
blackmesa has joined #ruby
<darthdiablo> 2) is not a problem for me (yet). 2) is simply an answer to one of your questions (what am I trying to do). I didn't realize you wanted to know what I was trying to do in the immediate sense (short-term) - apologies
colegatron_origi has joined #ruby
Hobogrammer has joined #ruby
ruby[bot] has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
nando293921 has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
haxrbyte has joined #ruby
LoneHermit has quit [Ping timeout: 246 seconds]
jrafanie_ has joined #ruby
macsteps has joined #ruby
dvinciguerra has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
GodFather has quit [Ping timeout: 244 seconds]
blackmesa has quit [Ping timeout: 246 seconds]
flughafen_ has joined #ruby
jrafanie has quit [Ping timeout: 250 seconds]
deadnull has joined #ruby
ljc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GodFather has joined #ruby
Gooer has joined #ruby
GodFather has quit [Write error: Broken pipe]
AndyBotwin has joined #ruby
eljimmy has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
saneax is now known as saneax_AFK
mark_661 has quit [Remote host closed the connection]
macsteps has quit [Remote host closed the connection]
SilverKey has joined #ruby
mark_66 has joined #ruby
czerasz has joined #ruby
JeanCarloMachado has joined #ruby
dvinciguerra has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
macsteps has joined #ruby
<depesz> hi. i'm reading data from file that is encoed in utf-8, but ruby treats the data as set of bytes, and for string "żółw" returns length of 7
<depesz> what/how can I change so that data loaded will be "understood" as utf8 encoed?
<apeiros> depesz: ruby treats it the way you tell it to
polysics has joined #ruby
sdothum has joined #ruby
<apeiros> which ruby version?
<depesz> apeiros: 2.3
<depesz> I just opened the file, and am reading from it.
<apeiros> if you work with utf-8 exclusively, set your defaults to utf-8: Encoding.default_external and _internal
<apeiros> and for specific cases, see:
<apeiros> &ri File.open
<apeiros> oh well…
<apeiros> &ri IO::new
dkam has quit [Quit: Be back later ...]
<adaedra> huhu
<apeiros> check the option param. there's various options for encoding.
<depesz> reading. trying to understand.
underplank has joined #ruby
<apeiros> ok. if you after reading it still have problems, feel free to ask again ;-)
nankyokusei has joined #ruby
chip_ has joined #ruby
<depesz> apeiros: did File.open(path, 'r:UTF-8') but it doesn't seem to help :(
codecop has quit [Remote host closed the connection]
skalfyfan has joined #ruby
<toretore> what does file.encoding show?
tristanp has joined #ruby
<depesz> moment, I have a problem now, that I can't replicate the problem in smaller program :(
<apeiros> I usually use File.open(path, encoding: "UTF-8"), but yours ought to work. unless I misremember how Encoding.default_internal interacts with a missing explicit int_enc in File.open
magic is now known as JackMc
<depesz> undefined method `encoding' for #<File:/home/depesz/x.log
<depesz> toretore: that's for calling file.encoding
nankyokusei has quit [Ping timeout: 272 seconds]
xcesariox has joined #ruby
<toretore> probably external|internal_encoding
<apeiros> depesz: .external_ and .internal_encoding
roflovski has joined #ruby
isene has quit [Quit: WeeChat 1.3]
<roflovski> hhhhhhhhhhheeeeeeeeeeeeeeeeeeeeelllllllllllllllllllllllllllllloooooooooooooooooooooooooooooooooooooooooooo eeeeeeeeeeeeeeeeeeeevvvvvvvvvvvvvveeeeeeeeeeeeeerrrrrrrrrrryyyyyyyyyyooooooooooonnnnnnnnnnneeeeeeeeeeeeee
<apeiros> .encoding is only on strings. IOs have 2 encodings (ext_enc and int_enc)
<adaedra> owowow, calm down
<depesz> toretore / apeiros : external utf-8, internal: empty
<apeiros> depesz: ok, with 2.3, that should produce a utf-8 string on read. how do you read the file?
<depesz> i wonder, could it be because I use read_nonblock ?
<depesz> ^^ apeiros
<depesz> I use read_nonblock on the files
<apeiros> possible, since that's probably byte based
<apeiros> so it can't guarantee complete sequences
<depesz> ok. this makes sense. is there any way I can convert text, when I'm reasonably-sure(ish) that the data is complete, to utf8 ?
<toretore> depesz: then you should check .encoding on the resulting string
burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> read_nonblock for a local file rarely ever makes sense, though
<roflovski> wwwwwwwwwwwwwwwhhhhhhhhhhhhhhhhhhaaaaaaaaaaaaaaaaaattttttttttttttttttt iiiiiiiiiiiisssssssssssssssss tttttttttttttttthhhhhhhhhhhhhhheeeeeeeeeeeeeee bbbbbbbbbbbbbbbbbbeeeeeeeeeeeeeeeesssssssssssssssssttttttttttttttt bbbbbbbbbbbbbbbbbboooooooooooooooooookkkkkkkkkkkkkkkkkkkkk ooooooooooooooooooonnnnnnnnnnnnnnnnnnnnnn rrrrrrrrrrrrrrrrrrrrrruuuuuuuuuuuuuuuuuuuuuuuuuuuubbbbbbbbbbbbbbbbbbbbbbbbyyyyyyy
<roflovski> yyyyyyyyyyyyyy tttttttttttttttthhhhhhhhhhhhhhhhhhhhaaaaaaaaaaaaaaaaaaaaatttttttttttttttttttttttttttt hhhhhhhhhhhhhhhhhhhhaaaaaaaaaaaaaaaaaaaaaaaaaaasssssssssssssssssssssssss pppppppppppppppppppppprrrrrrrrrrrrrrrrrroooooooooooooooooojjjjjjjjjjjjjjjjjjjeeeeeeeeeeeeeeeecccccccccccccccccttttttttttttttttssssssssssssssss
<apeiros> !spam roflovski
roflovski was kicked from #ruby by ruby[bot] [spamming is a bannable offense, see http://ruby-community.com/pages/user_rules]
<depesz> apeiros: i'm doing basically fail -f on multiple files, and reading data as it appears.
<apeiros> tail?
<adaedra> someone should check their key repetition rate setting.
<apeiros> depesz: ok
<apeiros> depesz: in that case, you'll probably have to manually ensure the read block is complete and set its encoding to utf-8
<depesz> toretore: /ASCII-8BIT/
<toretore> there you go
<depesz> apeiros: ok. how do I do it? I am sure that the data is correct utf8 - how do I convince ruby about it ?
<apeiros> and yepp, read_nonblock produces binary strings because it is byte based. just checked.
<apeiros> depesz: no, you are not sure the data is correct utf-8 :-p
<toretore> depesz: you can force_encoding('UTF-8') if you know that it's UTF-8
<apeiros> depesz: you are sure the data is *eventually* correct utf-8. but the *chunks* you read my be invalid at the tail.
<depesz> apeiros: i am. i write the data.
<toretore> and probably make sure to read entire lines before output
<depesz> apeiros: yes, and I split the chunks
<apeiros> depesz: you still aren't.
<depesz> and return only the chunks to further processing - basically each line
<apeiros> doesn't matter. unless you controll *all* the buffering, you are not.
dionysus69 has joined #ruby
<depesz> each read_nonblock adds data to buffer, then I split the buffer by line, and work only on full lines.
<apeiros> .force_encoding('utf-8') as toretore said, and .valid_encoding? to check whether the chunk is valid.
dminuoso has joined #ruby
<depesz> apeiros: i guess in my case, I can be sure that the encoding is correct, because I never work on incomplete character from input.
<toretore> splitting on newline should be reasonably safe
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> yes
<apeiros> splitting on newline in utf-8 is safe.
<depesz> so, apeiros, yes - I can be sure :)
<apeiros> all sequences are hi-byte
rippa has joined #ruby
<apeiros> depesz: yeah, *after* the postprocessing part (splitting by line) :-p
<depesz> sure
<apeiros> but not after a pure read_nonblock
howdoi has quit [Quit: Connection closed for inactivity]
_Gooer has joined #ruby
<depesz> EYS> force_encoding worked like a charm. great.
<depesz> now I just need to figure out why the script ignores last "line" from input
<toretore> because there is no newline?
<toretore> newline || eof
nando293921 has quit [Ping timeout: 250 seconds]
Gooer has quit [Ping timeout: 240 seconds]
_Gooer is now known as Gooer
<depesz> toretore: nah, it's "line", not *line*.
<toretore> what
<apeiros> literal "line" I guess
moeabdol2 has quit [Ping timeout: 252 seconds]
xall has joined #ruby
<depesz> each "line" to be shown is actually 3 lines from input file.
<depesz> i see the script reads them, but doesn't print last "line"
<apeiros> or maybe not
<depesz> these 3 lines from input, get aprsed into some hash, and then printing shows information as single line of output.
<toretore> maybe the "line" is 2 lines? who knows, we're talking about imaginary code here
<depesz> no, it is 3 lines input, saw, tested, see it even being added to "queue", but it just doesn
<depesz> no, it is 3 lines input, saw, tested, see it even being added to "queue", but it just doesn't print it.
<depesz> well, it's my fault, some logic is broken in the script - i'll fix it :)
al2o3-cr has joined #ruby
jrafanie_ has quit [Ping timeout: 258 seconds]
<depesz> i'm so stupid. all works as expected, and correctly.
<depesz> thanks again for the help.
macsteps has quit [Remote host closed the connection]
xall has quit [Ping timeout: 258 seconds]
yardenbar has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
deadnull has quit [Quit: Bye]
aegis3121 has quit [Ping timeout: 240 seconds]
harfangk has quit [Quit: harfangk]
Contigi777 has joined #ruby
Contigi has quit [Ping timeout: 240 seconds]
rodfersou has quit [Quit: leaving]
hahuang61 has joined #ruby
stardiviner has quit [Ping timeout: 276 seconds]
br07030 has quit [Quit: Page closed]
cdg has quit [Remote host closed the connection]
ChiefAlexander has quit [Remote host closed the connection]
tvsutton_ has quit [Read error: Connection reset by peer]
polysics has quit []
Macaveli has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
harfangk has joined #ruby
JeanCarloMachado has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
ChiefAlexander has joined #ruby
underplank has quit [Quit: underplank]
nersoh_ has quit [Ping timeout: 252 seconds]
SilverKey has quit [Quit: Halted.]
rstacruz has quit [Quit: rstacruz]
blackmesa has joined #ruby
aupadhye has quit [Ping timeout: 260 seconds]
tvsutton has joined #ruby
bluOxigen has quit [Remote host closed the connection]
aegis3121 has joined #ruby
polishdub has joined #ruby
bluOxigen has joined #ruby
Madplatypus has joined #ruby
yardenbar has quit [Quit: Leaving]
SilverKey has joined #ruby
darthdiablo has quit [Quit: Page closed]
mikecmpbll has joined #ruby
dminuoso has quit [Remote host closed the connection]
kedare has quit [Read error: Connection reset by peer]
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TomyWork has quit [Remote host closed the connection]
jrafanie has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Quit: Leaving.]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
Es0teric has joined #ruby
fmcgeough has joined #ruby
Sashimi has joined #ruby
jrafanie has quit [Client Quit]
macsteps has joined #ruby
Wildfyr has joined #ruby
aupadhye has joined #ruby
_bart has joined #ruby
imperator has joined #ruby
Robtop__ has joined #ruby
mdw has joined #ruby
lxsameer has joined #ruby
Gooer has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
stardiviner has joined #ruby
cschnei__ has joined #ruby
macsteps has quit [Ping timeout: 246 seconds]
_bart has quit [Quit: leaving]
pwnd_nsfw` has quit [Ping timeout: 264 seconds]
aufi has quit [Ping timeout: 276 seconds]
tokynet has joined #ruby
treaki has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
TomyLobo has joined #ruby
aupadhye has quit [Ping timeout: 272 seconds]
xall has joined #ruby
mark_66 has quit [Remote host closed the connection]
synthroid has quit [Remote host closed the connection]
mdw has quit [Ping timeout: 264 seconds]
edwinvdgraaf has quit [Ping timeout: 276 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
aganov has quit [Remote host closed the connection]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
xall has quit [Ping timeout: 272 seconds]
atom_ has quit [Ping timeout: 244 seconds]
tristanp has joined #ruby
alfiemax has quit [Ping timeout: 272 seconds]
chip_ has quit [Ping timeout: 258 seconds]
disconnekted has joined #ruby
jrafanie has joined #ruby
Vingador has joined #ruby
yadobujo has quit [Remote host closed the connection]
colegatron_origi has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 250 seconds]
flughafen_ has quit [Ping timeout: 276 seconds]
czerasz has quit [Quit: Ex-Chat]
yadobujo has joined #ruby
yadobujo has quit [Remote host closed the connection]
GinoMan2440 has joined #ruby
kriskropd has quit [Ping timeout: 264 seconds]
[Butch] has joined #ruby
dfinninger has quit [Remote host closed the connection]
amclain has joined #ruby
Rodya_ has joined #ruby
aryaching has joined #ruby
skalfyfan has joined #ruby
leea has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
colegatron_origi has joined #ruby
dfinninger has joined #ruby
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHermit has joined #ruby
neohunter has joined #ruby
aegis3121 has quit [Ping timeout: 272 seconds]
neohunter has quit [Max SendQ exceeded]
synthroid has joined #ruby
nettoweb has joined #ruby
moeabdol2 has joined #ruby
neohunter has joined #ruby
giz|work has quit [Ping timeout: 252 seconds]
nando293921 has joined #ruby
LoneHermit has quit [Ping timeout: 252 seconds]
senayar has quit [Ping timeout: 264 seconds]
karapetyan has joined #ruby
troulouliou_div2 has joined #ruby
JakFrist has joined #ruby
harfangk has quit [Quit: harfangk]
nando293921 has quit [Ping timeout: 264 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
imperator has left #ruby ["Leaving"]
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Couch has quit [Ping timeout: 260 seconds]
ledestin has joined #ruby
xcesariox has joined #ruby
Wildfyr has quit [Ping timeout: 272 seconds]
Snowy has quit [Ping timeout: 264 seconds]
stoopidmunkey has quit []
tristanp has quit [Ping timeout: 272 seconds]
catphish has quit [Quit: Leaving]
neohunter has quit [Quit: Textual IRC Client: www.textualapp.com]
croberts_ has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
dfinning_ has joined #ruby
mistermocha has joined #ruby
croberts has joined #ruby
disconnekted has quit [Remote host closed the connection]
dfinninger has quit [Ping timeout: 260 seconds]
tristanp has joined #ruby
smathy has joined #ruby
mattwashere has quit [Remote host closed the connection]
nankyokusei has joined #ruby
mattwashere has joined #ruby
mistermocha has quit [Ping timeout: 276 seconds]
xall has joined #ruby
nersoh has joined #ruby
pawnbox has quit [Remote host closed the connection]
aupadhye has joined #ruby
The_Phoenix has joined #ruby
pawnbox has joined #ruby
Rodya_ has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 244 seconds]
mattwashere has quit [Ping timeout: 246 seconds]
kgutteridge has quit [Quit: kgutteridge]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
jakkn has joined #ruby
shakes has joined #ruby
aupadhye has quit [Ping timeout: 246 seconds]
mistermo_ has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
ducklobster has quit [Ping timeout: 250 seconds]
dvinciguerra_ has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
<jakkn> hello, I'm working on a Rakefile and need a rule that adds an extension to a FileList. FileList.ext('baz') will make foo.bar into foo.baz, but I'm looking for foo.bar.baz
Gooer has joined #ruby
djbkd has joined #ruby
dvinciguerra has quit [Ping timeout: 272 seconds]
davedev24 has joined #ruby
bfrizzle has joined #ruby
<jhass> .map {|p| p << '.baz' }
<jakkn> I spent the last two days on this but I'm getting nowhere. I tried appending with FileList.sub but failed to understand how to reference capture groups
spudowiar has joined #ruby
skweek has joined #ruby
mattwashere has joined #ruby
<jakkn> wow that did it.. so simple.
<jhass> mh perhaps better + instead of <<
lxsameer has quit [Ping timeout: 246 seconds]
<jakkn> + didn't work
hightower2 has joined #ruby
astrobunny has joined #ruby
tomchapin has joined #ruby
conta has quit [Remote host closed the connection]
blandflakes has joined #ruby
<jhass> mh, the provided methods do the kinda weird construct of x.inject(x.class.new) {|res, fn| res << fn + 'baz' }
conta has joined #ruby
<jhass> I guess .sub(/$/, '.baz') could work too
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aupadhye has joined #ruby
xcesariox has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 252 seconds]
shakes has quit [Quit: Leaving]
Hounddog has quit [Ping timeout: 272 seconds]
conta has quit [Ping timeout: 264 seconds]
DoubleMalt has quit [Remote host closed the connection]
ascarter has joined #ruby
JeanCarloMachado has joined #ruby
<jakkn> any idea which method would perform better?
<jhass> my first suggestion is actually dangerous
sepp2k has joined #ruby
<jhass> the second probably performs better than the third, though I'd rewrite it with each_with_object
Gooer has quit [Ping timeout: 240 seconds]
<jhass> but pick the most understandable to you one, until you prove a bottleneck
<jakkn> how is it dangerous?
<jhass> String#<< modifies the receiver, it doesn't return a copy
Vingador has quit [Remote host closed the connection]
<jakkn> ah so that explains what I was currently trying to figure out
aegis3121 has joined #ruby
<jakkn> suddenly the original list was not matching with what it used to
conta has joined #ruby
SilverKey has quit [Read error: Connection reset by peer]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
SilverKey has joined #ruby
JeanCarloMachado has joined #ruby
DTZUZU has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
aegis3121 has quit [Ping timeout: 246 seconds]
conta has quit [Ping timeout: 244 seconds]
cdg has joined #ruby
lxsameer has joined #ruby
macsteps has joined #ruby
centrx has joined #ruby
spudowiar has quit [Quit: gaming, m8]
SilverKey has quit [Quit: Halted.]
nettoweb has quit [Quit: Textual IRC Client: www.textualapp.com]
kgutteridge has joined #ruby
zeroDi has joined #ruby
kgutteridge has quit [Client Quit]
elaptics is now known as elaptics`away
hahuang65 has joined #ruby
nettoweb has joined #ruby
ChiefAlexander has joined #ruby
alfiemax has joined #ruby
whathappens has joined #ruby
sneakers has joined #ruby
mikecmpbll has joined #ruby
rcvalle has joined #ruby
krobzaur has joined #ruby
firstdayonthejob has joined #ruby
krobzaur has quit [Client Quit]
JeanCarloMachado has quit [Ping timeout: 246 seconds]
chip_ has joined #ruby
krobzaur has joined #ruby
aegis3121 has joined #ruby
JeanCarloMachado has joined #ruby
scootsmcgoots has joined #ruby
Drakx has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
xid has joined #ruby
moeabdol2 has quit [Quit: WeeChat 1.4]
SilverKey has joined #ruby
elifoster has joined #ruby
SCHAAP137 has joined #ruby
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
Rodya_ has joined #ruby
edwinvdgraaf has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
scootsmcgoots has left #ruby [#ruby]
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikeiniowa has quit [Ping timeout: 240 seconds]
spudowiar has joined #ruby
krobzaur has quit [Ping timeout: 258 seconds]
yadobujo has joined #ruby
macsteps has quit [Remote host closed the connection]
<xid> is there string interpolation syntax that replaces a string object that is undefined, nil or empty?
skalfyfan has joined #ruby
<apeiros> a string object can't be undefined or nil
<apeiros> it can't be undefined because that doesn't exist
<apeiros> it can't be nil because then it isn't a string object
<leea> why not interpolate the nil/undefined/empty?
jenrzzz has quit [Ping timeout: 258 seconds]
<apeiros> and string interpolation invokes to_s on the expression to interpolate
<apeiros> >> "A#{nil}B"
<ruby[bot]> apeiros: # => "AB" (https://eval.in/604814)
al2o3-cr has quit [Ping timeout: 250 seconds]
nando293921 has joined #ruby
<apeiros> if by replace you mean "use another string instead": you can simply use ||
jenrzzz has joined #ruby
<apeiros> >> x = nil; default = "(x is nil)"; "A#{x || default}B"
<ruby[bot]> apeiros: # => "A(x is nil)B" (https://eval.in/604815)
karapetyan has quit [Remote host closed the connection]
JeanCarloMachado has quit [Remote host closed the connection]
pard has joined #ruby
<pard> hello
<pard> is there any reason the expression '[print 12]' is not a valid one actually?
freerobby has quit [Quit: Leaving.]
kriskropd has joined #ruby
<leea> >> '[print 12]'
<leea> identify leea Simple Password
<leea> oops lol
<pard> :\
<pard> leea, thanks; i meant the expression without 's
tristanp has quit [Ping timeout: 246 seconds]
<pard> >> [print 12]
<ruby[bot]> pard: # => /tmp/execpad-d37e549f3c39/source-d37e549f3c39:2: syntax error, unexpected tINTEGER, expecting keywor ...check link for more (https://eval.in/604817)
Oclair_ has joined #ruby
<pard> :\
<leea> what are you trying to do?
tristanp has joined #ruby
<leea> [] is syntax for an array
<Mon_Ouie> Not sure why this doesn't, but [print(12)] works
<pard> leea, thanks; i was just being interested :)
<pard> Mon_Ouie, thanks :)
<leea> oh ok i think i see what you're asking
nankyokusei has joined #ruby
<leea> maybe it has to do with the order things are evaluated
nando293921 has quit [Ping timeout: 276 seconds]
<Mon_Ouie> Maybe it has something to do with the ambiguity of multiple parameters vs. multiple elements in the array if you add a comma afterwards ([print 12, 3] could be [print(12), 3] or [print(12, 3)])
maloik has quit [Remote host closed the connection]
<pard> yeah
maloik has joined #ruby
deadnull has joined #ruby
<pard> still i thought may be there is an 'default' behaviour which would have enabled the syntax above
Oclair has quit [Ping timeout: 240 seconds]
<pard> >> print print 12, 12
<ruby[bot]> pard: # => 1212nil (https://eval.in/604818)
<pard> there
hahuang61 has joined #ruby
blaxter has quit [Quit: foo]
karapetyan has joined #ruby
umdstu has quit [Quit: umdstu]
<xid> apeiros++
<pard> print print 12, 12 could've also been 'print(print(12,12))' or print((print(12)), 12)
<pard> :\
tristanp has quit [Ping timeout: 252 seconds]
<pard> i just thought the same intuition also applies to [print 12, 12]
nankyokusei has quit [Ping timeout: 258 seconds]
<pard> thanks!
pard has quit [Quit: Leaving]
ChiefAlexander has quit [Remote host closed the connection]
nando293921 has joined #ruby
johnmilton has quit [Remote host closed the connection]
tristanp has joined #ruby
hahuang61 has quit [Ping timeout: 246 seconds]
ChiefAlexander has joined #ruby
isberg_ has joined #ruby
kirun has joined #ruby
conta has joined #ruby
<Mon_Ouie> Interestingly this used to work in 1.8
JakFrist has joined #ruby
isberg has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
jrafanie has joined #ruby
karapetyan has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
karapetyan has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
nhhc has quit [Ping timeout: 276 seconds]
LoneHerm_ has quit [Ping timeout: 252 seconds]
dfinning_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 250 seconds]
dfinninger has joined #ruby
dfinninger has quit [Remote host closed the connection]
dfinninger has joined #ruby
hutch34 has joined #ruby
VeryBewitching has joined #ruby
karapetyan has quit [Remote host closed the connection]
sumobob has joined #ruby
<xid> i forgot i can write ruby within string interpolation blocks
karapetyan has joined #ruby
whathappens has quit [Remote host closed the connection]
catphish has joined #ruby
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
<catphish> is there a simple syntax to create a binary string with arbitrary octets in it? i know for example "\0" will work, but can one do this for any value?
singalaut has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
<catphish> for longer strings, i'd use pack, but i'd quite like a shorthand
workmad3 has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Remote host closed the connection]
centrx has quit []
<Mon_Ouie> You can use \xXX to write bytes in hexadecimal
<catphish> thnks, literally just found it too
<catphish> "\xNN" is perfect
mattwashere has quit [Ping timeout: 272 seconds]
roshanavnad_ has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spider-mario has joined #ruby
chip_ has quit [Ping timeout: 244 seconds]
zacts has quit [Ping timeout: 272 seconds]
ramfjord has joined #ruby
memorasus has joined #ruby
eljimmy has quit [Remote host closed the connection]
[Butch] has quit [Quit: I'm out . . .]
troulouliou_div2 has quit [Quit: Leaving]
lkb has quit [Quit: Wychodzi]
JakFrist has joined #ruby
eljimmy has joined #ruby
aef has quit [Ping timeout: 272 seconds]
conta has quit [Ping timeout: 244 seconds]
nando293921 has quit [Ping timeout: 272 seconds]
jackjackdripper has joined #ruby
sol has joined #ruby
sol is now known as Guest22436
mattwashere has joined #ruby
aef has joined #ruby
miqlas-H has joined #ruby
roshanavnad_ has quit [Quit: This computer has gone to sleep]
c355e3b has quit [Quit: Connection closed for inactivity]
whathappens has joined #ruby
nando293921 has joined #ruby
Oclair_ has quit [Ping timeout: 240 seconds]
solars has quit [Ping timeout: 276 seconds]
karapetyan has quit [Remote host closed the connection]
cpruitt has quit [Quit: cpruitt]
A_Drone has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
miqlas-H has quit [Client Quit]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Rutix`away has joined #ruby
Rutix`away has quit [Changing host]
Rutix`away has joined #ruby
flughafen_ has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
miqlas-H has joined #ruby
pawnbox has joined #ruby
Rutix has quit [Ping timeout: 264 seconds]
blandflakes has joined #ruby
Oclair has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
nando294021 has joined #ruby
nando293921 has quit [Read error: Connection reset by peer]
ChiefAlexander has joined #ruby
akira616 has joined #ruby
A_Drone has quit [Ping timeout: 264 seconds]
zacts has joined #ruby
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
bluOxigen has quit [Read error: No route to host]
bluOxigen has joined #ruby
[Butch] has joined #ruby
DoubleMalt has joined #ruby
mistermo_ has quit [Remote host closed the connection]
mistermocha has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
AlexRussia has quit [Ping timeout: 260 seconds]
SilverKey has quit [Quit: Halted.]
yfeldblum has joined #ruby
Pumukel has joined #ruby
shinnya has joined #ruby
c355e3b has joined #ruby
nankyokusei has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
mistermocha has joined #ruby
nando294021 has quit [Ping timeout: 258 seconds]
bluOxigen has quit [Ping timeout: 260 seconds]
jaruga___ has quit [Quit: jaruga___]
mistermocha has quit [Remote host closed the connection]
lxsameer has quit [Quit: WeeChat 1.5]
mistermocha has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 276 seconds]
tristanp has joined #ruby
Spami has joined #ruby
Dimik has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Sucks has joined #ruby
dionysus69 has quit [Remote host closed the connection]
tristanp_ has joined #ruby
gregf has joined #ruby
blackmesa has joined #ruby
dionysus69 has joined #ruby
mistermocha has quit [Remote host closed the connection]
tristanp has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
Sashimi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zacts has quit [Ping timeout: 240 seconds]
nando293921 has joined #ruby
LoneHermit has joined #ruby
LoneHermit has quit [Ping timeout: 252 seconds]
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
memorasus has quit [Ping timeout: 252 seconds]
Sashimi has joined #ruby
skalfyfan has joined #ruby
freerobby has joined #ruby
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spudowiar has quit [Quit: Leaving.]
memorasus has joined #ruby
jrafanie has joined #ruby
zacts has joined #ruby
yadobujo has quit [Remote host closed the connection]
tvon has joined #ruby
pontiki has quit [Quit: i'm gone! o/]
flughafen_ has quit [Ping timeout: 246 seconds]
eljimmy has quit [Quit: This computer has gone to sleep]
deadnull has quit [Quit: Bye]
tvw has joined #ruby
Madplatypus has joined #ruby
chip_ has joined #ruby
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomchapin has joined #ruby
zacts has quit [Ping timeout: 250 seconds]
mistermocha has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 276 seconds]
eric_crane has joined #ruby
mistermocha has joined #ruby
symm- has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
SilverKey has joined #ruby
djbkd has quit [Remote host closed the connection]
ponga has quit [Quit: Connection closed for inactivity]
djbkd has joined #ruby
zacts has joined #ruby
eric_crane has quit [Quit: eric_crane]
akira616 has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
nettoweb has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
al2o3-cr has joined #ruby
whathappens has quit [Remote host closed the connection]
tristanp_ has quit [Ping timeout: 252 seconds]
Pumukel has quit [Remote host closed the connection]
flughafen_ has joined #ruby
tristanp has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
atom___ has joined #ruby
AlexRussia has joined #ruby
weaksauce has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
whathappens has joined #ruby
zapata has quit [Quit: WeeChat 1.5]
dfinninger has quit [Remote host closed the connection]
atom___ has quit [Quit: WeeChat 1.5]
dfinninger has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
dfinninger has quit [Read error: Connection reset by peer]
dfinninger has joined #ruby
tristanp has joined #ruby
blandflakes has joined #ruby
craigp_ has joined #ruby
craigp has quit [Ping timeout: 246 seconds]
zapata has joined #ruby
atom___ has joined #ruby
dfinninger has quit [Remote host closed the connection]
dfinninger has joined #ruby
Sashimi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
eljimmy has joined #ruby
craigp_ has quit [Ping timeout: 244 seconds]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
craigp_ has joined #ruby
sneakers has quit [Ping timeout: 272 seconds]
karapetyan has quit [Ping timeout: 258 seconds]
augcesar has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
atom___ has quit [Quit: WeeChat 1.5]
craigp_ has quit [Ping timeout: 264 seconds]
DoubleMalt has joined #ruby
Martxel has joined #ruby
Martxel has quit [Client Quit]
highbass has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sashimi has joined #ruby
mistermocha has quit [Remote host closed the connection]
yadobujo has joined #ruby
mistermocha has joined #ruby
yadobujo has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 264 seconds]
zacts_pi has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
JakFrist has joined #ruby
mistermocha has quit [Remote host closed the connection]
ChiefAlexander has joined #ruby
mistermocha has joined #ruby
whathappens has quit [Remote host closed the connection]
zacts has quit [Ping timeout: 240 seconds]
mistermocha has quit [Remote host closed the connection]
whathappens has joined #ruby
mistermocha has joined #ruby
craigp_ has joined #ruby
bmurt has joined #ruby
whathappens has quit [Ping timeout: 246 seconds]
tomchapin has joined #ruby
mistermocha has quit [Ping timeout: 252 seconds]
A_Drone has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
omphe has joined #ruby
weaksauce has joined #ruby
zacts_pi has quit [Ping timeout: 260 seconds]
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
cdg has quit [Remote host closed the connection]
nando293921 has quit [Ping timeout: 250 seconds]
JeanCarloMachado has joined #ruby
A_Drone has quit [Ping timeout: 276 seconds]
systemnate has quit [Read error: Connection reset by peer]
swills has quit [Ping timeout: 276 seconds]
hakunin has quit []
yadobujo has joined #ruby
Cohedrin has joined #ruby
eizua has quit [Quit: Leaving]
ascarter has joined #ruby
LBRapid has quit [Ping timeout: 250 seconds]
LBRapid has joined #ruby
JeanCarloMachado has quit [Ping timeout: 276 seconds]
Dexx1_ has joined #ruby
<Dexx1_> How do I fix this error? "../usr/lib/ruby/vendor_ruby/liquid/htmltags.rb:43: warning: duplicated key at line 46 ignored: "index0".." ?
banisterfiend has quit [Read error: Connection reset by peer]
<shevy> Dexx1_ can you publish the source?
yqt has joined #ruby
aegis3121 has quit [Ping timeout: 240 seconds]
finnnnnnnnnnn has joined #ruby
<apeiros> it means you have a hash literal with the same key multiple times in it
<apeiros> like: {a: 1, a: 2}
synthroid has quit []
spudowiar has joined #ruby
minimalism has joined #ruby
zacts_pi has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
tristanp has joined #ruby
<Dexx1_> apeiros: how do I fix that?
<apeiros> a hash can't have the same key twice, so remove the keys which occur multiple times
<Dexx1_> apeiros: where exactly do I do this? I am just trying to get jekyll working..
<apeiros> ruby told you where: "../usr/lib/ruby/vendor_ruby/liquid/htmltags.rb:43
<apeiros> also, that's a warning, not an error
<apeiros> it won't stop your app from running
<Dexx1_> apeiros: this is the full error(s): http://pastebin.com/JueD8ser
<ruby[bot]> Dexx1_: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/5dc077c2de67a0b2775ebb4947d799b8
<ruby[bot]> Dexx1_: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<apeiros> mhm, your error is the one on the next line
TheHodge has joined #ruby
aegis3121 has joined #ruby
jakkn has quit [Ping timeout: 252 seconds]
jmignault has quit [Ping timeout: 240 seconds]
<apeiros> and the error there means you need iconv
<apeiros> which also means you should file a bug report to whichever thing depends on iconv and doesn't add it as a dependency
<apeiros> (might also be that it's just plain f'ing old, since you don't need iconv anymore for almost anything as of ruby 1.)
<apeiros> 1.9
nankyokusei has joined #ruby
<Dexx1_> apeiros: allegedly I have ruby 2.1
<Dexx1_> Fixed the duplicate key issue. How do I fix this iconv thing..
SCHAAP137 has quit [Ping timeout: 276 seconds]
hipertracker_ has joined #ruby
jmignault has joined #ruby
hipertracker has quit [Ping timeout: 258 seconds]
hipertracker_ is now known as hipertracker
hahuang61 has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> this feels like spoonfeeding
<shevy> :)
<Dexx1_> Sorry, Noob here.
<apeiros> gem install iconv
<Dexx1_> damn, permission error.. let me see
drewo has joined #ruby
marsjaninzmarsa has quit [Quit: ZNC 1.7.x-git-487-cbf5c38 - http://znc.in]
marsjaninzmarsa has joined #ruby
postmodern has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
GinoManWorks_ has quit [Read error: Connection reset by peer]
[Butch] has quit [Quit: I'm out . . .]
VeryBewitching has quit [Quit: Konversation terminated!]
ramfjord has joined #ruby
hahuang61 has quit [Ping timeout: 246 seconds]
<apeiros> let me guess - you're using apt?
troulouliou_div2 has joined #ruby
chip_ has quit [Ping timeout: 276 seconds]
<Dexx1_> apeiros: I used 'sudo gem install iconv' -- but yes, I am on a ubuntu based distro
<havenwood> Dexx1_: sudo apt-get install ruby-dev
tvon has quit [Quit: System is sleeping...]
<Dexx1_> havenwood: seems like I already have it..
LoneHermit has joined #ruby
finnnnnnnnnnn has quit [Quit: finnnnnnnnnnn]
tristanp has quit [Ping timeout: 258 seconds]
workmad3 has joined #ruby
<havenwood> Dexx1_: Is that for the Ruby you're currently using? What do you get for?: update-alternatives --display ruby
tristanp has joined #ruby
SCHAAP137 has joined #ruby
<havenwood> Dexx1_: Brightbox maintains up-to-date Ruby package for Ubuntu if you tire of the default apt packages: https://www.brightbox.com/docs/ruby/ubuntu/
<havenwood> Dexx1_: I think you have the dev package installed for the ruby1.9.1 but as you can see ^ you're using Ruby 2.2 at the moment
GinoMan2440 has quit [Ping timeout: 244 seconds]
<Dexx1_> havenwood: I see, so I need to figure out how to install the dev package for 2.1?
xid has quit [Ping timeout: 250 seconds]
<havenwood> Dexx1_: Try?: sudo apt-get install ruby2.2-dev
blackgoat has joined #ruby
LoneHermit has quit [Ping timeout: 252 seconds]
<havenwood> Dexx1_: 2.2.1*
whathappens has joined #ruby
nersoh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Dexx1_> havenwood: done
GinoManWorks has joined #ruby
freerobby has quit [Quit: Leaving.]
<Dexx1_> havenwood: great. iconv worked
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Dexx1_> Now getting: /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- posix_spawn_ext (LoadError)
dvinciguerra_ has quit [Ping timeout: 240 seconds]
<havenwood> Dexx1_: gem pristine posix-spawn
<Dexx1_> k let me see
sepp2k has quit [Quit: Leaving.]
Rodya_ has joined #ruby
<Dexx1_> k. Thanks. No errors. Now i need to figure out why Jekyll is not rendering css
ldnunes has quit [Quit: Leaving]
Rodya__ has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
nersoh has joined #ruby
ascarter has joined #ruby
tristanp has quit [Ping timeout: 246 seconds]
roamingd_ has joined #ruby
flughafen_ has quit [Ping timeout: 250 seconds]
tristanp has joined #ruby
roamingd_ has quit [Client Quit]
roamingd_ has joined #ruby
dfinninger has quit [Remote host closed the connection]
<jackhill> Hi is there something like Python's virtualenv for Ruby?
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jackhill> I'm not sure if rvm, rbenv and friends do exactly the same thing.
devyn has quit [Read error: Connection reset by peer]
<jackhill> Basically, what I want is to install stuff with gem and have it not pollute my global (or per-user global) environment.
roamingd_ has quit [Client Quit]
marr has joined #ruby
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramortegui has quit [Quit: Ex-Chat]
zacts_pi has quit [Ping timeout: 264 seconds]
tvon has joined #ruby
<Radar> jackhill: Bundler helps solve that issue. It will only load the dependencies that your app needs.
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cdg has joined #ruby
<jackhill> Radar: cool. So I just install them globally, but run stuff via bundler and I'll only see what's in the Bundler configuration?
bruce_lee has quit [Ping timeout: 240 seconds]
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
mistermocha has joined #ruby
biberu has quit []
davedev24 has quit []
Sashimi has quit [Quit: Textual IRC Client: www.textualapp.com]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
tristanp has quit [Ping timeout: 252 seconds]
mistermocha has quit [Ping timeout: 240 seconds]
dhollinger has joined #ruby
tristanp has joined #ruby
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
aupadhye has quit [Ping timeout: 240 seconds]
Es0teric has joined #ruby
<Radar> jackhill: yup
polysics has joined #ruby
Azure has quit [Quit: Oops.]
mistermocha has joined #ruby
nettoweb has joined #ruby
roamingdog has joined #ruby
aegis3121 has quit [Ping timeout: 276 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
ChiefAlexander has quit [Quit: Leaving...]
hipertracker has quit [Quit: hipertracker]
Rodya__ has quit [Remote host closed the connection]
hipertracker has joined #ruby
tristanp has quit [Ping timeout: 240 seconds]
LBRapid has quit [Ping timeout: 250 seconds]
akira616 has joined #ruby
highbass has quit [Remote host closed the connection]
tristanp has joined #ruby
LBRapid has joined #ruby
banisterfiend has joined #ruby
nettoweb has quit [Remote host closed the connection]
nettoweb has joined #ruby
zacts has joined #ruby
<zacts> lo
fmcgeough has quit [Quit: fmcgeough]
aupadhye has joined #ruby
<Radar> hi
SCHAAP137 has quit [Ping timeout: 276 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Remote host closed the connection]
hipertracker has quit [Quit: hipertracker]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
<havenwood> >> 42.step.lazy.select { |n| n.to_s(2).count(?1).even? }.first(35).last(2).map(&:chr).join
<ruby[bot]> havenwood: # => "lo" (https://eval.in/604856)
meatchicken has joined #ruby
<meatchicken> where is the docs for the super method?
<meatchicken> I am seeing a usage of super that is block form
yadobujo has quit [Remote host closed the connection]
<meatchicken> super {|x| x.whatever }
<meatchicken> what does that mean?
mistermocha has quit [Remote host closed the connection]
<apeiros> super is not a method, it's syntax
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<apeiros> it'll invoke the next method of the same name in the ancestry
catphish has quit [Quit: Leaving]
tomchapin has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has quit [Remote host closed the connection]
mistermocha has joined #ruby
<havenwood> meatchicken: It's a keyword: http://docs.ruby-lang.org/en/2.3.0/keywords_rdoc.html
pawnbox has joined #ruby
<apeiros> i.e. if you have a class A, and class B < A, and both define a method foo - when you the call super in B#foo, it'll invoke A's definition of foo
<meatchicken> oh
<meatchicken> what does the block form do then?
<apeiros> notable subtleties: `super` will pass on all methods the current method received
<meatchicken> it doesn't state it on the docs website
<apeiros> *pass on all *arguments*
<Mon_Ouie> It just passes the block to the method from the parent class/module
<apeiros> `super()` will omit the arguments, but still pass on a block
dopie has quit [Quit: Leaving]
<meatchicken> mm
tristanp has quit [Ping timeout: 252 seconds]
<meatchicken> thanks
<meatchicken> that makes sense
dvinciguerra_ has joined #ruby
postmodern has quit [Quit: Leaving]
nogic has joined #ruby
skalfyfan has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
tristanp has joined #ruby
<banisterfiend> Mon_Ouie hru ltns
<Radar> omg tlas
<workmad3> banisterfiend: o/
aegis3121 has joined #ruby
mistermocha has joined #ruby
<banisterfiend> workmad3 lols
Azure has joined #ruby
<Mon_Ouie> banisterfiend: 'alut
Dexx1_ has left #ruby [#ruby]
dhollinger has quit [Quit: WeeChat 1.5]
freerobby has joined #ruby
roamingdog has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
nettoweb has quit [Quit: Textual IRC Client: www.textualapp.com]
nettoweb has joined #ruby
singalaut has left #ruby ["WeeChat 1.6-dev"]
SilverKey has quit [Quit: Halted.]
colegatron_origi has quit [Ping timeout: 272 seconds]
Sucks has quit [Remote host closed the connection]
chosen1 has joined #ruby
dhollinger has joined #ruby
SilverKey has joined #ruby
dhollinger has quit [Client Quit]
rcvalle has quit [Quit: rcvalle]
symm- has quit [Ping timeout: 258 seconds]
dkam has joined #ruby
oryman has joined #ruby
oryman has quit [Client Quit]
tjohnson has quit [Quit: Connection closed for inactivity]
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
kirun has quit [Quit: Client exiting]
polysics has quit [Remote host closed the connection]
polysics has joined #ruby
dkam has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
mistermocha has quit [Ping timeout: 258 seconds]
firstdayonthejob has quit [Ping timeout: 272 seconds]
JeanCarloMachado has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
colegatron_origi has joined #ruby
polysics has quit [Ping timeout: 240 seconds]
tristanp has joined #ruby
Rodya_ has joined #ruby
karapetyan has quit [Ping timeout: 258 seconds]
spider-mario has quit [Remote host closed the connection]
dhk has joined #ruby
Dimik has quit [Ping timeout: 258 seconds]
nando293921 has joined #ruby
AndyBotwin has quit [Ping timeout: 276 seconds]
mistermocha has joined #ruby
polishdub has quit [Quit: Leaving]
memorasus has quit [Ping timeout: 244 seconds]
tristanp has quit [Ping timeout: 276 seconds]
bruce_lee has quit [Remote host closed the connection]
tristanp has joined #ruby
Jet4Fire has joined #ruby
TomyLobo has quit [Ping timeout: 264 seconds]
mistermocha has quit [Remote host closed the connection]
cschnei__ has quit [Remote host closed the connection]
mistermocha has joined #ruby
nando293921 has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 276 seconds]
mistermocha has quit [Remote host closed the connection]
Jon28 has quit [Ping timeout: 272 seconds]
mistermocha has joined #ruby
johnmilton has joined #ruby
postmodern has joined #ruby
nankyokusei has joined #ruby
hxegon is now known as hxegon_afk
<zacts> nice havenwood
<zacts> re # => "lo"
mistermocha has quit [Ping timeout: 250 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
nankyokusei has quit [Ping timeout: 244 seconds]
sdothum has joined #ruby
johnmilton has quit [Ping timeout: 252 seconds]
johnmilton has joined #ruby
xlegoman has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
tristanp has joined #ruby
tokynet has quit [Quit: Connection closed for inactivity]
zacts has quit [Ping timeout: 250 seconds]
agent_white has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
rodfersou has joined #ruby
Contigi777 has quit [Read error: Connection reset by peer]
aegis3121 has quit [Ping timeout: 260 seconds]
dhk has quit [Quit: Leaving]
ljc has joined #ruby
drewo has quit [Ping timeout: 246 seconds]
David27 has joined #ruby
ljc has quit [Client Quit]
tristanp has quit [Ping timeout: 272 seconds]
SilverKey has quit [Quit: Halted.]
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp has joined #ruby
hipertracker has joined #ruby
skalfyfan has joined #ruby
macsteps has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
dkam has joined #ruby
Azure has quit [Read error: Connection reset by peer]
arooni_______ has joined #ruby
arooni_________ has joined #ruby
skalfyfan has quit [Client Quit]
Azure has joined #ruby
burgestrand has joined #ruby
skalfyfan has joined #ruby
Es0teric has joined #ruby
tristanp has quit [Ping timeout: 240 seconds]
memorasus has joined #ruby
tristanp has joined #ruby
koooge has joined #ruby
hipertracker has quit [Quit: hipertracker]
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
A_Drone has joined #ruby
burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 276 seconds]
burgestrand has joined #ruby
skalfyfan has joined #ruby
whathappens has quit [Quit: Leaving...]
hipertracker has joined #ruby
A_Drone has quit [Ping timeout: 246 seconds]
karapetyan has joined #ruby
coffeecupp has joined #ruby
leea has joined #ruby
hipertracker has quit [Client Quit]
Asher has quit [Ping timeout: 272 seconds]
I has joined #ruby
I is now known as Guest42361
davidcelis_ has quit [Ping timeout: 260 seconds]
karapetyan has quit [Ping timeout: 258 seconds]
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp has quit [Ping timeout: 252 seconds]
jackjackdripper has quit [Quit: Leaving.]
tristanp has joined #ruby
sneakerhax has joined #ruby
colegatron_origi has quit [Ping timeout: 240 seconds]
nando293921 has joined #ruby
burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GinoMan2440 has joined #ruby
zacts has joined #ruby