<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
<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…]
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
<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]
<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]
<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
<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
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…]
<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]
<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>
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>
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
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]
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
<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?
<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]