AndBobsYourUncle has quit [Ping timeout: 276 seconds]
nankyokusei has joined #ruby
iMadper is now known as Madper|dyslexia
nankyokusei has quit [Ping timeout: 248 seconds]
maloik has quit [Ping timeout: 240 seconds]
harai_ has joined #ruby
p0p0pr37 has joined #ruby
AndBobsYourUncle has joined #ruby
AndBobsYourUncle has quit [Client Quit]
Devalo has joined #ruby
Silthias1 has quit [Ping timeout: 276 seconds]
Silthias has joined #ruby
solocshaw has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
hutch34_ has joined #ruby
friday has quit [Changing host]
friday has joined #ruby
govg has quit [Ping timeout: 264 seconds]
jhn has joined #ruby
gix has quit [Ping timeout: 248 seconds]
splud has quit [Quit: splud]
Devalo has quit [Ping timeout: 264 seconds]
hutch34_ has quit [Ping timeout: 260 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
gix has joined #ruby
brent__ has joined #ruby
TheWhip has joined #ruby
harai_ has quit [Ping timeout: 260 seconds]
marxarelli|afk is now known as marxarelli
pilne has quit [Quit: Quitting!]
djbkd has quit [Quit: My people need me...]
dc4 has joined #ruby
irondocwatson has joined #ruby
matrix9180 has joined #ruby
p0p0pr37 has quit [Remote host closed the connection]
matrix9180 has quit [Client Quit]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
irondocwatson has quit [Ping timeout: 255 seconds]
p0p0pr37 has joined #ruby
p0p0pr37 has joined #ruby
p0p0pr37 has quit [Changing host]
__Yiota has joined #ruby
arquebus has joined #ruby
<arquebus>
Im stuck on a Project Euler problem: http://codepad.org/C2rTt2hb why am I getting an error about the reduce method? this should work on an array
StoneCypher has joined #ruby
arescorpio has joined #ruby
braincrash has quit [Quit: bye bye]
<arquebus>
anyone?
<adam12>
Hm
Rodya__ has quit [Remote host closed the connection]
solocshaw has joined #ruby
StoneCypher has quit [Ping timeout: 276 seconds]
Rodya_ has joined #ruby
wald0 has quit [Quit: Lost terminal]
Trynemjoel has quit [Quit: Quitting]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest95108 is now known as ged
ged is now known as Guest80564
<adam12>
arquebus: reduce likely needs a starting value? I'm not really sure what you're trying.
Rodya_ has quit [Ping timeout: 276 seconds]
<adam12>
but does `ans = div_arr.reduce(0, :+) + 1` get you what you want?
<arquebus>
adam12 the weird thing is that the divisor function works fine when I just use it with a number but gives an error when I use it with the rest of the code
<adam12>
arquebus: I don't follow.
enyo has joined #ruby
<adam12>
I was able to get a result with the change I posted above - I have no idea if it's right or not.
JD has joined #ruby
JD is now known as Guest56828
gix has quit [Ping timeout: 245 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<arquebus>
adam12 let me check your code
AnoHito has quit [Quit: Leaving]
<arquebus>
adam12 That did fix it, I cant understand why I would need to add that zero to the reduce method, it should just sum up all the numbers in the array with just :+
enyo has quit [Ping timeout: 264 seconds]
<adam12>
arquebus: Yeah. Normally it just starts with the first value of the array I thought.
<adam12>
arquebus: I didn't dig into it. I normally pass a starting value anyways, so I am not sure.
Guest56828 has left #ruby [#ruby]
<arquebus>
adam12 OK, well as long as it works, thats all that is important, thanks
hutch34_ has joined #ruby
gix has joined #ruby
DrCode has quit [Read error: Connection reset by peer]
JuliusDelta has quit [Remote host closed the connection]
<markholmes>
when install gems, am i installing them system-wide?
<markholmes>
is there like a gem vs npm primer or something?
JuliusDelta has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JuliusDelta has quit [Ping timeout: 240 seconds]
alexar has joined #ruby
_geoff has joined #ruby
dc4 has quit [Ping timeout: 258 seconds]
JuliusDelta has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
jenrzzz has quit [Ping timeout: 245 seconds]
alexar has quit [Ping timeout: 240 seconds]
xall has quit [Ping timeout: 256 seconds]
JuliusDelta has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
optiz0r has joined #ruby
jhn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rodya_ has quit [Remote host closed the connection]
nertzy has quit [Quit: Leaving]
nertzy has joined #ruby
xall has joined #ruby
JuliusDelta has joined #ruby
<JuliusDelta>
Hey all, I'm a new ruby dev, looking forward to asking you guys questions (and hopefully answering a few)
<Ropeney>
markholmes, depending how you many your ruby installation
<Ropeney>
s/many/manage/
Vile` has quit [Ping timeout: 258 seconds]
<markholmes>
Ropeney - ah, will the installed gems change with a different rvm context?
<Ropeney>
yessir
awk_ is now known as awk
ruby-lang436 has joined #ruby
<ruby-lang436>
Hello!
brent__ has quit [Remote host closed the connection]
duri has joined #ruby
<ruby-lang436>
I need help with automatically logging in to a website and fetching its data. I am new and currently trying to do it with Mechanize.
<markholmes>
cool, good to know. so my gemfile just references my globally-installed gems
<Ropeney>
in a sense
<Ropeney>
no
jhn has joined #ruby
<Ropeney>
your gemfile will reference your rvm context gems
<Ropeney>
whatever is in your GEM_PATH
<ruby-lang436>
Mechanize, anyone?
Kug3lis_off is now known as Kug3lis
markholmes has quit [Quit: Leaving]
<bougyman>
ruby-lang436: what about it?
<ruby-lang436>
Trying to auto-login to my university website to fetch data. Can't seem to be able to submit the form.
etehtsea has joined #ruby
Dry_Lips has quit [Read error: Connection reset by peer]
<Radar>
?code ruby-lang436
<ruby[bot]>
ruby-lang436: We can't help you without your code, please post it to https://gist.github.com
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
<duri>
anybody here working with Watir ? I never seen such frustrating "documentation"
hutch34_ has quit [Ping timeout: 240 seconds]
<Radar>
?used
<ruby[bot]>
Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
<duri>
Radar: well, I have been going in circles for the past hour. just trying to install this thing. old website is going away soon, points to new web site. new web site has no installation docs
ur5us has quit [Remote host closed the connection]
<Radar>
duri: I'm sure if you explain what exactly you're having trouble with then someone here may be able to help you.
<Radar>
So far it's
<Radar>
"I'm having trouble with watir"
<Radar>
which is not quite precise enough for anyone to do anything with
<duri>
ok :)
<duri>
trying to install watir. I go to the web site (watir.com). it points to a new web site (watir.github.io)
<duri>
new web site does not have install documentation
<dionysus69>
rvm still doesn't include ruby 2.4 and it has been a while since its stable release, i am planning on changing rvm to something else
<apeiros>
dionysus69: I'm on macOS and use rvm
<apeiros>
if I'd start ruby today I might choose something else than rvm
<apeiros>
but I'm used to it and it hasn't failed me so far.
<apeiros>
rvm may not list 2.4, you can still install it
<apeiros>
just `rvm get stable` and then `rvm install ruby-2.4.0`
<dionysus69>
I did that
Guest40181 is now known as ged
<dionysus69>
it gets 2.4rc1 not 2.4
<apeiros>
did you use 'ruby-2.4.0' as version string or '2.4'?
ged is now known as Guest10966
antgel has joined #ruby
<dionysus69>
2.4
<dionysus69>
ok let me do exactly what you wrote
<apeiros>
try again with the precise version string
<apeiros>
it's a bit obscure. it should do better regarding version selection…
<dionysus69>
oh nice i think it is being downloaded xD
graft has quit [Ping timeout: 240 seconds]
<apeiros>
the Gem::Version class gets it correctly…
<apeiros>
wondering what rvm uses to compare versions
<apeiros>
but given that it's a ton of bash, I'd assume it's a bash function too
<dionysus69>
appreciate your trial but I dont know what you are talking about xD
graft has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
flying has joined #ruby
aufi has quit [Ping timeout: 256 seconds]
jesk has quit [Ping timeout: 258 seconds]
hirvi has quit [Ping timeout: 258 seconds]
hirvi has joined #ruby
<apeiros>
dionysus69: I'm talking about how '2.4' should select 'ruby-2.4.0' and not '2.4rc1'
<dionysus69>
cool
djbkd has quit [Ping timeout: 248 seconds]
<apeiros>
rvm does that wrong IMO
<dionysus69>
rvm list known didn't show 2.4 stable so I thought rvm just didnt have recent enough update
<apeiros>
the algorithm should basically be: available_versions.grep(/^#{Regexp.escape(given_string)}.*/).max_by { |version| Gem::Version.new(version) }
JoshS has joined #ruby
<dionysus69>
wow cool
<apeiros>
might be that that's the reason instead. that it can find a fully qualified name, but for some reason doesn't list it.
frozengeek__ has joined #ruby
tomphp has joined #ruby
jshjsh has quit [Ping timeout: 276 seconds]
kodnin has joined #ruby
mim1k|wo1k is now known as mim1k|work
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
dionysus70 is now known as dionysus69
jesk has joined #ruby
<dionysus69>
ye that is an easy to fix bug for someone who's an rvm dev, hopefully they know about it, they have to :D
jsrn_ has joined #ruby
aufi has joined #ruby
gix has quit [Ping timeout: 256 seconds]
aupadhye has quit [Ping timeout: 276 seconds]
mim1k|work has quit [Ping timeout: 240 seconds]
kodnin has quit [Quit: leaving]
mim1k|work has joined #ruby
ur5us has joined #ruby
Psy-Q_ is now known as Psy-Q
aupadhye has joined #ruby
<apeiros>
well, it's been in for >2y afair
gix has joined #ruby
irondocwatson has joined #ruby
aryaching has joined #ruby
xen0fon has joined #ruby
Shashikant86 has joined #ruby
enyo has quit [Ping timeout: 255 seconds]
tvw has joined #ruby
JeanCarloMachado has joined #ruby
Shashikant86 has quit [Client Quit]
teclator has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
teclator has joined #ruby
Shashikant86 has joined #ruby
nankyokusei has joined #ruby
sami has quit [Quit: Lost terminal]
biberu has joined #ruby
biberu has quit [Client Quit]
biberu has joined #ruby
wugy has joined #ruby
Silthias1 has quit [Read error: Connection reset by peer]
tvw has quit [Read error: Connection reset by peer]
patarr has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
StoneCypher has joined #ruby
braincrash has quit [Ping timeout: 255 seconds]
Shashikant86 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patarr has quit [Ping timeout: 245 seconds]
zapata has quit [Ping timeout: 258 seconds]
enyo has joined #ruby
StoneCypher has quit [Ping timeout: 256 seconds]
xall has quit [Ping timeout: 240 seconds]
enterprisey has quit [Remote host closed the connection]
jaruga____ has joined #ruby
ferr1 has joined #ruby
zapata has joined #ruby
malcolmva has quit [Ping timeout: 255 seconds]
Shashikant86 has joined #ruby
Definity has joined #ruby
al2o3-cr has quit [Ping timeout: 260 seconds]
unshadow_ has quit [Quit: leaving]
unshadow_ has joined #ruby
DoubleMalt has quit [Ping timeout: 240 seconds]
xall has joined #ruby
unshadow_ has quit [Client Quit]
zapata has quit [Ping timeout: 252 seconds]
govg has joined #ruby
malcolmva has joined #ruby
z4j5 has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JuliusDelta has quit [Quit: Leaving...]
zapata has joined #ruby
astrobunny has joined #ruby
eugenmayer has joined #ruby
<eugenmayer>
Using redis gem, it seems like i cannot use several connections (different dbs) at the same time, it always uses the last one. Any hints on that?
astrobunny has quit [Read error: Connection reset by peer]
z4j5 has quit [Ping timeout: 276 seconds]
astrobunny has joined #ruby
Guest10966 is now known as ged
Beams has joined #ruby
ged is now known as Guest86580
p0p0pr37 has quit [Remote host closed the connection]
astrobunny has quit [Ping timeout: 258 seconds]
<manveru>
eugenmayer: did you create multiple Redis instances?
the_drow has quit [Quit: This computer has gone to sleep]
ur5us has quit [Remote host closed the connection]
p0p0pr37 has joined #ruby
p0p0pr37 has quit [Changing host]
p0p0pr37 has joined #ruby
enyo has quit [Ping timeout: 255 seconds]
jaruga____ has quit [Quit: jaruga____]
ddffg has quit [Quit: Leaving]
enyo has joined #ruby
hutch34_ has joined #ruby
LiquidInsect has quit [Ping timeout: 248 seconds]
hightower2 has joined #ruby
ocbtec has joined #ruby
hightower3 has quit [Ping timeout: 240 seconds]
<eugenmayer>
manveru: i just happen to understand what i failed with, :db is not really a db name, its neither a string nor should it be understanded as such at all. Its and index_id, its and integer and their should only be a few. What i want needs to be implemented using a key namespace prefix
gix has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby
hutch34_ has quit [Ping timeout: 240 seconds]
gix has joined #ruby
omphe has joined #ruby
elaptics has joined #ruby
<dionysus69>
rubocop wrapper doesnt get created in rvm gems/ruby-2.4.0/wrappers
<dionysus69>
what am I missing?
aupadhye has quit [Ping timeout: 255 seconds]
toretore has joined #ruby
marr has joined #ruby
patarr has joined #ruby
harai_ has quit [Ping timeout: 240 seconds]
gix has quit [Ping timeout: 248 seconds]
DoubleMalt has joined #ruby
patarr has quit [Ping timeout: 264 seconds]
shinnya has joined #ruby
gix has joined #ruby
aidalgol has quit [Quit: zZzZZzz]
mim1k|wo1k has joined #ruby
mim1k|work has quit [Ping timeout: 260 seconds]
ldnunes has joined #ruby
z4j5 has joined #ruby
workmad3 has joined #ruby
aupadhye has joined #ruby
jaequery has joined #ruby
Gasher has joined #ruby
elementaru has joined #ruby
xall_ has joined #ruby
gajus has joined #ruby
xall has quit [Ping timeout: 240 seconds]
z4j5 has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
Gasher has quit [Quit: Leaving]
gregf_ has joined #ruby
Gasher has joined #ruby
marxarelli|afk has quit [Ping timeout: 276 seconds]
lostguy has quit [Ping timeout: 255 seconds]
LiquidInsect has joined #ruby
Vile` has joined #ruby
irondocwatson has quit [Quit: WeeChat 1.6]
govg has quit [Ping timeout: 252 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
koldbrutality has quit [Ping timeout: 256 seconds]
irondocwatson has joined #ruby
Guest86580 is now known as ged
ged is now known as Guest41767
xall_ has quit [Ping timeout: 258 seconds]
s2013 has joined #ruby
lostguy has joined #ruby
teclator has quit [Ping timeout: 252 seconds]
teclator has joined #ruby
Vile` has quit [Ping timeout: 240 seconds]
Shashikant86 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
omphe has quit [Ping timeout: 276 seconds]
hqd has joined #ruby
nankyokusei has joined #ruby
mim1k|wo1k is now known as mim1k|work
Dry_Lips has joined #ruby
Dry_Lips has quit [Changing host]
Dry_Lips has joined #ruby
DoubleMalt has quit [Ping timeout: 240 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Silthias has quit [Quit: Leaving.]
jeyraof has quit [Quit: This computer has gone to sleep]
mniip has quit [Ping timeout: 600 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
Shashikant86 has joined #ruby
dcluna has quit [Ping timeout: 260 seconds]
StoneCypher has joined #ruby
Guest38850 has joined #ruby
CloCkWeRX has joined #ruby
duckpuppy has joined #ruby
nettoweb has joined #ruby
enyo has quit [Ping timeout: 258 seconds]
matp has quit [Remote host closed the connection]
elaptics has quit [Ping timeout: 240 seconds]
StoneCypher has quit [Ping timeout: 240 seconds]
matp has joined #ruby
j3r0 has joined #ruby
DoubleMalt has joined #ruby
antgel has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jaruga____ has joined #ruby
jaruga____ has quit [Client Quit]
aryaching has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
hightower3 has joined #ruby
Burgestrand has joined #ruby
jeyraof has joined #ruby
jeyraof has quit [Client Quit]
hightower2 has quit [Ping timeout: 240 seconds]
unshadow_ has joined #ruby
unshadow_ has quit [Client Quit]
CloCkWeRX has quit [Quit: Leaving.]
unshadow_ has joined #ruby
unshadow_ has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobunny has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
mim1k|work has quit [Ping timeout: 240 seconds]
gizmore has joined #ruby
enyo has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hutch34_ has joined #ruby
psychicist__ has joined #ruby
mniip_ is now known as mniip
c355e3b has joined #ruby
unshadow has quit [Disconnected by services]
unshadow_ has quit [Quit: leaving]
unshadow has joined #ruby
Shashikant86 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34_ has quit [Ping timeout: 256 seconds]
mniip has quit [Quit: This page is intentionally left blank.]
mniip has joined #ruby
Guest41767 is now known as ged
ged is now known as Guest59595
triangles has joined #ruby
antgel has joined #ruby
last_staff is now known as uhm
Silthias has joined #ruby
Silthias1 has joined #ruby
frozengeek__ has quit [Quit: frozengeek__]
_geoff has joined #ruby
sdothum has joined #ruby
charliesome has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
douglascorrea has joined #ruby
xen0fon has quit [Quit: xen0fon]
the_drow has joined #ruby
millerti has joined #ruby
antgel has quit [Ping timeout: 255 seconds]
antgel has joined #ruby
zapata has quit [Ping timeout: 240 seconds]
amarsharma has joined #ruby
Shashikant86 has joined #ruby
Tempesta has quit [Quit: See ya!]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zapata has joined #ruby
Silthias has joined #ruby
Silthias1 has quit [Ping timeout: 252 seconds]
j3r0 has quit [Read error: Connection reset by peer]
the_drow has quit [Quit: Leaving]
saneax is now known as saneax-_-|AFK
Silthias has quit [Read error: Connection reset by peer]
Silthias has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
tyang has joined #ruby
Definity has quit [Ping timeout: 248 seconds]
_geoff has quit [Ping timeout: 255 seconds]
marr has quit [Ping timeout: 240 seconds]
_geoff has joined #ruby
Silthias1 has joined #ruby
_joes_ has joined #ruby
Silthias2 has joined #ruby
Silthias has quit [Ping timeout: 260 seconds]
Silthias1 has quit [Ping timeout: 255 seconds]
Mortomes|Work has quit [Ping timeout: 260 seconds]
zastav has quit [Quit: Connection closed for inactivity]
_geoff has quit [Ping timeout: 260 seconds]
synthroid has joined #ruby
kht has joined #ruby
kht has quit [Client Quit]
kht has joined #ruby
kht has joined #ruby
kht has quit [Changing host]
Silthias2 has quit [Ping timeout: 255 seconds]
jameser has joined #ruby
lostguy has quit [Ping timeout: 252 seconds]
Silthias has joined #ruby
irondocwatson has quit [Ping timeout: 252 seconds]
Lord_of_Life has quit [Excess Flood]
Lord_of_Life has joined #ruby
Mortomes|Work has joined #ruby
jhn has joined #ruby
jhn has quit [Client Quit]
nankyokusei has joined #ruby
hightower3 has joined #ruby
Guest59595 is now known as ged
ged is now known as Guest10314
hightower2 has quit [Ping timeout: 240 seconds]
irondocwatson has joined #ruby
nankyokusei has quit [Ping timeout: 248 seconds]
StoneCypher has joined #ruby
bmurt has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
StoneCypher has quit [Ping timeout: 260 seconds]
ta__ has quit [Read error: Connection reset by peer]
astrobunny has quit [Remote host closed the connection]
ta__ has joined #ruby
bmurt has quit [Ping timeout: 252 seconds]
amarsharma has quit [Remote host closed the connection]
jaruga____ has joined #ruby
marr has joined #ruby
eugenmayer has quit [Quit: Leaving.]
saneax-_-|AFK is now known as saneax
Fetch_ has joined #ruby
Fetch_ is now known as Fetch
Vile` has joined #ruby
csk has joined #ruby
xen0fon has joined #ruby
chouhoulis has joined #ruby
<Fetch>
I have a gem I wrote using class/module methods and variables (basically a convenient namespacing for global vars). Is there a gem out there that's a decent example of "creates a default class instance, uses it for class method calls, supports class instantiation" ?
anisha has quit [Quit: This computer has gone to sleep]
_geoff has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hutch34_ has joined #ruby
Shashikant86 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
uhm has quit [Quit: uhm]
Shashikant86 has joined #ruby
eugenmayer has joined #ruby
_geoff_ has joined #ruby
Vile` has quit [Ping timeout: 240 seconds]
jshjsh has joined #ruby
_geoff has quit [Ping timeout: 240 seconds]
JoshS has quit [Ping timeout: 240 seconds]
<apeiros>
Fetch: I'm not quite sure from your description - but it seems to me to be one of: a) you want module_function (core), b) you want include Singleton (stdlib) or c) you're designing this wrong :) (or d: I completely misunderstood you)
jhn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
saneax is now known as saneax-_-|AFK
croberts has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 240 seconds]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
lmc has quit [Ping timeout: 252 seconds]
prestorium has joined #ruby
rippa has joined #ruby
sulcino has joined #ruby
sulcino has quit [Client Quit]
gheegh has joined #ruby
duderonomy has joined #ruby
mim1k|work has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
michele has joined #ruby
eelster_ has quit [Ping timeout: 240 seconds]
_chee is now known as chee
michele has left #ruby ["WeeChat 1.5"]
ta__ has quit [Remote host closed the connection]
Snickers has quit [Ping timeout: 240 seconds]
lmc has joined #ruby
polishdub has joined #ruby
moeSeth has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
centrx has joined #ruby
csk has quit [Quit: Bye]
Shashikant86 has joined #ruby
millerti has joined #ruby
bentanwe_ has quit [Remote host closed the connection]
bentanweihao has joined #ruby
TheWhip has quit [Remote host closed the connection]
Rodya_ has joined #ruby
kobain has quit [Ping timeout: 252 seconds]
harfangk has joined #ruby
<gheegh>
hey, is anyone using ruby-kafka? if so, how the heck are you writing tests? i can't find a way to "empty" a kafka queue, other than exiting.. opening a kafka client, and deleting the queue manually..
warrshrike has joined #ruby
nettoweb has joined #ruby
<warrshrike>
Hiya friends
<warrshrike>
Whats the most elegant rubyish regular expression type code to
<warrshrike>
and shortest*
<warrshrike>
code to read text line by line from a text file -> extract number from the line -> write each number to new line in new file
<warrshrike>
where number contains more than 5 digits together and may have a dash in it
jhack has quit [Ping timeout: 258 seconds]
Rodya_ has quit [Quit: Leaving...]
<warrshrike>
I was able to do a clumsy int based solution
<warrshrike>
but just curious what the possibilities are for an elegant way
maddmaxx has joined #ruby
psychicist__ has quit [Ping timeout: 240 seconds]
eelster_ has joined #ruby
Kug3lis_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<centrx>
Something like /\d+-?\d+/ right
Rodya_ has joined #ruby
<gheegh>
I use Rubular.. and write it myself.. :-)
<warrshrike>
whats rubular
<gheegh>
but it seomthing like centrx wrote above.. do you ahve some sample data that you're trying to match..
<gheegh>
rubular.com
<warrshrike>
yeah i do
<gheegh>
put it in.. then you can write your regex and it will show what its matching live
<gheegh>
put positive and negative cases in your code
xen0fon has quit [Ping timeout: 240 seconds]
<warrshrike>
22.Mrs & Mr cvvv Finance Department Pens 0300-4232233
<gheegh>
*code = example data
<warrshrike>
this is example data
<gheegh>
and as negative case?
Rodya_ has quit [Remote host closed the connection]
<warrshrike>
you mean 'hard' case?
<warrshrike>
welll the number could have () around it
<warrshrike>
or perhaps there is no space at all
<apeiros>
warrshrike: can you gist your solution + some in-/output?
<warrshrike>
okay yeah sure
<warrshrike>
my solution is really bad tho :/
<warrshrike>
its int based
<gheegh>
no.. a lint where it wouldn't match
<gheegh>
so i'd do this.. : (\A\d+).*( \d+-\d+)
<gheegh>
that will produce a match array, with 2 items, 1) your row number, and 2)the item.
<apeiros>
I see. you're missing the argument to -3
<apeiros>
btw., you can gist 2 files in 1 gist. makes it easier.
foooobear has quit [Quit: (null)]
nettoweb has quit [Ping timeout: 240 seconds]
<mc_fail>
yeah, i see i'm missing it and i wonder why
<apeiros>
sorry, I intended to say that I understand your problem now :) not that you didn't know before.
armando has quit [Quit: WeeChat 1.4]
<apeiros>
I remembered optparse to simply skip unknown options, but seems either my memory is wrong or that changed.
<ljarvis>
cough
dionysus69 has joined #ruby
<apeiros>
ljarvis is coming in fast from a slippery slop
<mc_fail>
apeiros I didn't manage to find any good solution, only few very weird hacks which rely on a lot of preconditions
blackwind_123 has joined #ruby
<apeiros>
mc_fail: I didn't see anything useful quickly looking up optparse' docs
<apeiros>
might take a look at ljarvis' slop
armando has joined #ruby
<ljarvis>
in short your rescue is the expected way to do it, mc_fail
<mc_fail>
ljarvis yeah, but anyway, how do I cut recongnised options from ARGV
<apeiros>
ljarvis: yeah, but it doesn't push back the argument of the option. which is IMO weird. without a spec it can't even know that the following argument is attached to the unknown flag.
<ljarvis>
mc_fail: that's what parse! does?
<ljarvis>
apeiros: hmm right yeah I remember that now, it is weird
<mc_fail>
removes switches destructively. Non-option arguments remain in argv.
<ljarvis>
I'm confused at what you want, then
<ljarvis>
it's meant to be destructive for known switches and arguments, everything unknown stays in argv
benlieb has joined #ruby
<mc_fail>
yeah, but it doesn't stay there, as example below shows
benlieb has quit [Read error: Connection reset by peer]
Silthias has joined #ruby
<mc_fail>
basically my ultimate task is to remove all known options from @ARGV and leave the rest there
<mc_fail>
yeah, there is another one with an output example //gist.github.com/anonymous/f29f63bdbfb66a5f84c58e1012ddf459
<ljarvis>
oh sorry I misread
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maddmaxx has quit [Read error: No route to host]
<mc_fail>
what I want is: i run app.rb --bla 1 --bla2 bla --verbose, and I want only --verbose to be recongnised, so as a result I want config[:verbose] = true, and ARGV = [--bla 1 --bla2 bla]
maddmaxx has joined #ruby
<ljarvis>
mc_fail: so in this code, what do you expect the output? https://eval.in/720201
<ljarvis>
it has a similar API to optparse but not exact, and returns a Slop::Result class which has handy methods like "unused_options" etc, and you get a config hash for free with opts.to_h so it saves some typing
conta has quit [Ping timeout: 255 seconds]
<mc_fail>
ljarvis hmm, thanks
<mc_fail>
let me try
boreddev42__ has quit [Client Quit]
welovfree has joined #ruby
jhack has joined #ruby
kht has quit [Ping timeout: 276 seconds]
mark_66 has quit [Remote host closed the connection]
Burgestrand has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gheegh has quit [Ping timeout: 240 seconds]
aufi has quit [Ping timeout: 260 seconds]
alexar has quit [Ping timeout: 276 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kht has quit [Ping timeout: 276 seconds]
synthroid has quit [Remote host closed the connection]
gheegh has joined #ruby
antoniobeyah has quit [Quit: Connection closed for inactivity]
kobain has joined #ruby
welovfree has quit [Ping timeout: 260 seconds]
byte512 has joined #ruby
nankyokusei has joined #ruby
douglascorrea has quit [Ping timeout: 258 seconds]
gagrio-wfh has quit [Quit: Leaving...]
wugy has quit []
Shashikant86 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
StoneCypher has joined #ruby
jhack has quit [Ping timeout: 240 seconds]
nettoweb has joined #ruby
nettoweb has quit [Client Quit]
synthroid has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
millerti has joined #ruby
gregf_ has quit [Quit: Page closed]
dcluna has joined #ruby
elena3 has quit [Quit: WeeChat 1.7]
elena_ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Shashikant86 has joined #ruby
enyo has quit [Ping timeout: 258 seconds]
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 264 seconds]
elena_ has quit [Client Quit]
elena_ has joined #ruby
amclain has joined #ruby
Shashikant86 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jsrn_ has quit [Quit: Leaving]
[Butch] has joined #ruby
Guest35617 is now known as ged
andikr has quit [Remote host closed the connection]
ged is now known as Guest74109
tyang_ has joined #ruby
nettoweb has joined #ruby
Silthias has joined #ruby
Guest40527 is now known as Cyrus
Cyrus has quit [Changing host]
Cyrus has joined #ruby
antoniobeyah has joined #ruby
Silthias1 has quit [Ping timeout: 245 seconds]
jud has quit [Read error: Connection reset by peer]
jud has joined #ruby
tyang has quit [Ping timeout: 256 seconds]
Devalo has joined #ruby
lubekpl has joined #ruby
elena_ has quit [Quit: WeeChat 1.7]
etehtsea has joined #ruby
elena_ has joined #ruby
etehtsea has quit [Client Quit]
vondruch has quit [Ping timeout: 248 seconds]
__Yiota has joined #ruby
miqlas-H64 has joined #ruby
miqlas has joined #ruby
<miqlas>
Hi guys!
skweek has quit [Ping timeout: 264 seconds]
lmc has quit [Remote host closed the connection]
renojdl has joined #ruby
moeSeth has quit [Quit: Connection closed for inactivity]
lmc has joined #ruby
alexar has joined #ruby
<havenwood>
miqlas: g'mornin'
alexar has quit [Remote host closed the connection]
alexar has joined #ruby
douglascorrea has joined #ruby
camilasan has quit [Ping timeout: 252 seconds]
<miqlas>
havenwood: hi and good mornin'
miqlas-H64 has quit [Ping timeout: 260 seconds]
lmc has quit [Ping timeout: 240 seconds]
elena_ has quit [Ping timeout: 245 seconds]
anisha has joined #ruby
<miqlas>
I came to here to get a bit help. I'm on my way to get ruby 2.4.0 ported to Haiku. IT compiles fine, but bails out if i try to run "ruby gem". It is already packaged, but the packaged thing never really extracted, just virtually, so all the ruby files are read only. It wouldn't be bad, but ruby tries to lock the rubygems.rb file, and as it is on read-only FS, it couldn't get it locked. So my question would: what should i
<miqlas>
do now?
unshadow has quit [Quit: leaving]
<miqlas>
Haiku supports F_SETFL (this does the locking), but not on every FS (like on pckageFS it doesn't), should i disable F_SETFL for the whole ruby or what?
Xiti` has quit [Quit: Xiti`]
markholmes has joined #ruby
<miqlas>
currently i try to insert a debug printf at every location, where ruby using F_SETFL to see, where does this thing happens.
psychicist__ has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 258 seconds]
psychicist__ has joined #ruby
lubekpl has quit [Ping timeout: 248 seconds]
jaruga____ has quit [Quit: jaruga____]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
douglascorrea has quit [Remote host closed the connection]
senayar has quit []
kobain has quit [Ping timeout: 252 seconds]
Fin1te has joined #ruby
jaequery has joined #ruby
gusrub_ has joined #ruby
<toretore>
ycyclist: do you have an example with real code?
<ycyclist>
Not that I can show.
<ycyclist>
But it is exactly as I provide in the pastie.
<ycyclist>
I don't see any of these procedures that are specific to x.thingy either.
<ycyclist>
It's like somebody pulled a block syntax out of their ass to make things MORE confusing.
<toretore>
the code you're showing is meaningless to me
<toretore>
i have no idea what you're trying to ask
_fg has joined #ruby
frozengeek__ has quit [Quit: frozengeek__]
<ycyclist>
Thank you.
<ycyclist>
That is also my experience.
_2easy has quit [Remote host closed the connection]
<ycyclist>
Do blocks like x.thingy not get entered when the call to thingy has an exception?
sneakerhax has joined #ruby
<toretore>
as i said, i have no idea what you're talking about
<havenwood>
ycyclist: Website is offline: Error 522
<havenwood>
ycyclist: pastie.org is malfunctioning
<toretore>
havenwood: it works intermittently
<havenwood>
?gist
<ruby[bot]>
https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<havenwood>
toretore: hehe
tomphp has quit [Ping timeout: 256 seconds]
<baweaver>
ycyclist: You're going to have to explain that better
camilasan has joined #ruby
<baweaver>
a block is an anonymous function essentially. Nothing inside it is evaluated until it's actually called. Try putting a blatant syntax error in it for an example
<ycyclist>
Oh. I forgot pastie is dicey these days.
<baweaver>
won't see it until it hits the block
irondocwatson has quit [Ping timeout: 255 seconds]
<ruby[bot]>
baweaver: # => wrong number of arguments (given 1, expected 0) (ArgumentError) ...check link for more (https://eval.in/720277)
<ycyclist>
These are not "Proc"s. I just use that as a label.
swills has quit [Quit: Leaving]
<ycyclist>
they are methods or module procedures.
<markholmes>
ycyclist: do you have a real example?
<markholmes>
it might make more sense with some additional context
<ycyclist>
Not that I may show. The syntax I provide is as you would see it anyway. Just new names. The main thing I see is the block would not be entered if x.thingy threw an exception.
<ycyclist>
But that seems pretty weak.
<toretore>
ycyclist: you are going to have to be a lot more specific than that. there are about a hundred variables to take into account trying to parse your question
tyang has joined #ruby
<markholmes>
okay, well it just looks like a complicated pseudo-example right now
<ycyclist>
But this is a simple matter of why would you do such a block. What advantage does it give you if you do not use any variable from it?
DoubleMalt has quit [Ping timeout: 258 seconds]
Definity has joined #ruby
<ycyclist>
There is no proceeding environment. All you do is execute x.thingy, so why not catch and handle the exception from thingy if it occurs, and otherwise leave the sequence at the top level rather than descending into a useless block?
hoov has joined #ruby
<toretore>
ycyclist: your question still doesn't make any sense
<toretore>
there is something you're leaving out, some context that we aren't aware of
tercenya has quit [Remote host closed the connection]
<markholmes>
my only answer without more context is because "that's how it was written"
tercenya has joined #ruby
<ycyclist>
I am sorry toretore. It makes very clear and complete sense to me, mathematically and otherwise, and I've been programming for 30 years.
douglascorrea has joined #ruby
Fin1te has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<baweaver>
the answer is context
<baweaver>
typically you can use class or module_eval to evaluate a block in the context of that area
<baweaver>
otherwise not much sense if you're not even using the yielded variable to it
<ycyclist>
That is very helpful, baweaver. Thank you.
<baweaver>
I've seen this pattern a lot: Gem.config do |config| config.value = foo end
<baweaver>
though I don't really like it to be honest
<baweaver>
much easier to make a JSON/ENV configuration file and load it later. Singletons can make a mess
skweek has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<toretore>
there is more than one of everything
hahuang65 has joined #ruby
chouhoulis has joined #ruby
duderonomy has quit [Ping timeout: 255 seconds]
enyo has joined #ruby
SeepingN has joined #ruby
tolerablyjake has joined #ruby
StoneCyp1er has joined #ruby
nowz has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 255 seconds]
ruby-lang354 has joined #ruby
StoneCypher has quit [Ping timeout: 240 seconds]
tercenya has quit [Remote host closed the connection]
Rutix has quit []
enyo has quit [Ping timeout: 240 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ruby-lang047 has joined #ruby
tercenya has joined #ruby
<ruby-lang354>
hello
Guest74109 is now known as ged
ged is now known as Guest4744
<havenwood>
ruby-lang354: hi
<ruby-lang354>
I'm trying to get my Mehcanize working to help me login to my university account. I can't seem to be able to login. Where am I going wrong?
<ycyclist>
A block whose only function seems to be avoiding entering the block if the method called throws an exception.
<ycyclist>
baweaver added that it could make hidden environment state changes, but this is hardly of merit. The changes should be limited and clear, not cute and hidden.
<baweaver>
It's common in Rails configuration
<baweaver>
mainly because there's some logic involved in determining configs
eelster_ has quit [Quit: WeeChat 1.6]
<baweaver>
though named json files work just as well
raul782 has joined #ruby
<ruby-lang354>
No one? :/
<adam12>
ruby-lang354: First off, you likely want to retract your username and password
<ruby-lang354>
That's dummy data, ofcourse.
renchan has quit [Quit: Leaving...]
<adam12>
ruby-lang354: With dummy data and no error, not much we can do to assist. Can you advise what's happening / not happening?
<adam12>
Other than not logging in.
<adam12>
Is there an error? how are you testing that the login worked or did not?
<ruby-lang354>
When I check that link, it just shows me null error. And it returns me a similar link when I input a valid/invalid data. So, I don't really know of other ways to check if I am actually even logged in or not, other than manually clicking the returned link by Mechanize.
<baweaver>
ruby-lang354: session IDs are as bad as actual login info
<baweaver>
depending on the system of course
<ruby-lang354>
Those are modified again.
tyang_ has joined #ruby
<adam12>
ruby-lang354: I'd inspect in a browser to see if cookies are being set. If they are, then I would make sure the Mechanize cookie jar is being filled with the session cookie.
nowz has quit [Client Quit]
<adam12>
I'm assuming it should be but I have no idea how jsp works.
<ruby-lang354>
Any documents/articles that I could refer, to learn how to do it?
<ruby-lang354>
Also, the Login/Submit button has no name, but the id='Login'. I passed the id instead of the button name. Would it make any difference in that case?
ferr1 has joined #ruby
MissionCritical has quit [Ping timeout: 272 seconds]
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
DoubleMalt has joined #ruby
ferr1 has quit [Client Quit]
<adam12>
ruby-lang354: If you have a reference to the form, you might be able to just use `form.buttons.first`, where form is the reference to that form.
ferr1 has joined #ruby
<ruby-lang354>
Form name is given as 'loginForm'. I had tried that too. Still the same result.
<adam12>
ruby-lang354: See if you can inspect the return headers and determine if cookies are being set and if there is a redirect that is not being followed.
kht has joined #ruby
djbkd has joined #ruby
lubekpl has joined #ruby
chouhoulis has joined #ruby
blackmesa has joined #ruby
enyo has quit [Ping timeout: 276 seconds]
Rodya_ has quit [Quit: Leaving...]
conta has joined #ruby
sniffer has quit [Remote host closed the connection]
<adam12>
What's the response code when you login using your browser? do you get a 302 with a Location? does that Location have the session ID in it, similar to the other URL you've been getting back?
welovfree has quit [Client Quit]
anisha has quit [Quit: This computer has gone to sleep]
Rutix has joined #ruby
Rutix has joined #ruby
Rutix has quit [Changing host]
lmc has quit [Ping timeout: 260 seconds]
kht has quit [Ping timeout: 255 seconds]
anisha has joined #ruby
hightower2 has joined #ruby
Rutix has quit [Client Quit]
conta has quit [Ping timeout: 252 seconds]
sniffer has joined #ruby
tyang__ has joined #ruby
montanonic has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
hightower3 has quit [Ping timeout: 240 seconds]
Rutix has joined #ruby
Rutix has joined #ruby
Rutix has quit [Changing host]
xall_ has joined #ruby
<ruby-lang354>
adam12 Yes, it's similar to the other URL that I'd been getting back. But here's the weird part: If I refresh the page in chrome, it gives me the same "Technical Issue. <br>null" error that was thrown when clicking the link returned by Mechanize as well. But in Firefox, the page seems to just log me out upon refreshing/resending.
raul782 has quit [Read error: Connection reset by peer]
lmc has joined #ruby
tyang_ has quit [Ping timeout: 240 seconds]
Guest40 has joined #ruby
<ruby-lang354>
adam12 I login from browser, I refresh, I get the "Technical Issue. <br>null" thrown at me. How does that even work? :/
raul782 has joined #ruby
duderonomy has joined #ruby
<adam12>
ruby-lang354: Sounds like their side is broken.
frozengeek__ has joined #ruby
tyang__ has quit [Quit: Leaving]
tyang has joined #ruby
lubekpl has quit [Ping timeout: 240 seconds]
Xiti has quit [Quit: Xiti]
frozengeek__ has quit [Quit: frozengeek__]
tomphp has joined #ruby
Xiti has joined #ruby
<ruby-lang354>
adam12 Yes, looks like that.
zeroDi has joined #ruby
Fin1te has joined #ruby
hightower3 has joined #ruby
enterprisey has joined #ruby
hightower2 has quit [Ping timeout: 258 seconds]
skweek has quit [Ping timeout: 255 seconds]
Fernando-Basso has joined #ruby
jaequery has joined #ruby
gnufied has quit [Ping timeout: 256 seconds]
whathappens has joined #ruby
Guest4744 is now known as ged
ged is now known as Guest10451
montanonic has quit [Ping timeout: 260 seconds]
bocaneri has quit [Read error: Connection reset by peer]
marxarelli is now known as marxarelli|afk
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
csk has joined #ruby
harai_ has joined #ruby
Guest40 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest40 has joined #ruby
polts has quit [Ping timeout: 248 seconds]
anisha has quit [Quit: This computer has gone to sleep]
gnufied has joined #ruby
xall has joined #ruby
rcs has quit [K-Lined]
ta has joined #ruby
skweek has joined #ruby
montanonic has joined #ruby
xall_ has quit [Ping timeout: 240 seconds]
rcs has joined #ruby
tercenya has quit [Remote host closed the connection]
gloscombe has joined #ruby
agit0 has joined #ruby
tercenya has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
cdg has quit [Remote host closed the connection]
nankyokusei has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 255 seconds]
ruby-lang354 has quit [Ping timeout: 260 seconds]
brandon_ has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
Macaveli has joined #ruby
flying has quit []
skweek has joined #ruby
irondocwatson has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Morrolan_ is now known as Morrolan
alexar_ has joined #ruby
tomphp has joined #ruby
_sfiguser has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
alexar has quit [Ping timeout: 240 seconds]
irondocwatson has quit [Ping timeout: 245 seconds]
sdothum has joined #ruby
sebastiansier has joined #ruby
sebastia_ has quit [Read error: Connection reset by peer]
flying has joined #ruby
brandon_ has joined #ruby
mwlang has quit [Quit: mwlang]
enyo has joined #ruby
fbt has joined #ruby
<fbt>
Forgot to join heh
JeanCarloMachado has quit [Ping timeout: 255 seconds]
dc4 has joined #ruby
psychicist__ has quit [Ping timeout: 240 seconds]
montanonic has quit [Ping timeout: 258 seconds]
enyo has quit [Ping timeout: 240 seconds]
sepp2k has quit [Ping timeout: 255 seconds]
millerti has joined #ruby
sniffer has quit [Remote host closed the connection]
kies has quit [Ping timeout: 252 seconds]
blackmesa has quit [Ping timeout: 255 seconds]
cgibsonmm has joined #ruby
ifctj has joined #ruby
ferr1 has quit [Quit: WeeChat 1.6]
dionysus70 has joined #ruby
zapata has quit [Quit: WeeChat 1.6]
lxsameer has quit [Quit: WeeChat 1.6]
dionysus69 has quit [Ping timeout: 240 seconds]
dionysus70 is now known as dionysus69
zapata has joined #ruby
bmurt has joined #ruby
dkings has joined #ruby
montanonic has joined #ruby
cgibsonmm has quit []
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
matp has quit [Remote host closed the connection]
spt0 has joined #ruby
tomphp has joined #ruby
matp has joined #ruby
magellanicloud has joined #ruby
ldnunes has quit [Quit: Leaving]
hoov has quit [Quit: Leaving]
flying has quit []
JoshS has joined #ruby
jshjsh has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
Guest40 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adam12>
Is there a long-form for $. ?
<adam12>
Like #lineno, but inside a File.foreach block.
djbkd_ has quit [Ping timeout: 258 seconds]
s2013 has joined #ruby
rizonz has joined #ruby
<adam12>
Nevermind - $NR - found it in English module. Not exactly long form but ...
<ruby[bot]>
rizonz: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<rizonz>
yap but I don't like gist Mr Bot :P will do
<rizonz>
but I leave it for now
vali_ has joined #ruby
<apeiros>
rizonz: iirc the - for -%> is a rails-only extension
Guest10451 is now known as ged
<rizonz>
apeiros: yeah it's puppet
ged is now known as Guest67584
djbkd_ has joined #ruby
<apeiros>
rizonz: and thus probably plain erb, not the patched version from rails
<dionysus69>
please someone help me with, I am using rvm but I can't find a rubocop wrapper that atom text editor requires as a path. what can I do? when I give it bin executable instead of a wrapper it chokes on this error Error: /usr/bin/env: ‘ruby_executable_hooks’: No such file or directory
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<rizonz>
apeiros: mhh
kies has joined #ruby
skweek has quit [Ping timeout: 255 seconds]
ur5us has joined #ruby
sepp2k has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
montanonic has quit [Ping timeout: 255 seconds]
JuliusDelta has joined #ruby
byte512 has quit [Ping timeout: 264 seconds]
millerti has joined #ruby
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
blackmesa has joined #ruby
dhollinger has quit [Ping timeout: 276 seconds]
dhollinger has joined #ruby
csk has quit [Quit: ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
skweek has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
lmc has quit [Remote host closed the connection]
chouhoulis has joined #ruby
JuliusDelta has quit [Remote host closed the connection]
lmc has joined #ruby
JuliusDelta has joined #ruby
montanonic has joined #ruby
JeanCarloMachado has joined #ruby
JuliusDe_ has joined #ruby
<rizonz>
apeiros: but you don't have a clue ?
<apeiros>
rizonz: huh? I told you the reason
<rizonz>
apeiros: can we make that suree ?
<rizonz>
*sure
<rizonz>
normally it works
<apeiros>
normally? in other puppet files?
tercenya has quit [Remote host closed the connection]
gusrub_ is now known as gusrub
JuliusDelta has quit [Ping timeout: 255 seconds]
<rizonz>
apeiros: yes never had such issue
lmc has quit [Read error: Connection reset by peer]
tercenya has joined #ruby
lmc has joined #ruby
porfa has joined #ruby
biberu has quit []
marxarelli|afk is now known as marxarelli
marxarelli is now known as marxarelli|afk
Guest302 has joined #ruby
Guest40 has joined #ruby
sniffer has joined #ruby
<apeiros>
seems puppet uses a souped up erb itself too. in plain erb, <% if foo -%> gives a syntax error. no idea then. maybe ask in puppet's channel?
Guest302 has quit [Remote host closed the connection]
nettoweb has joined #ruby
elementaru has quit [Remote host closed the connection]
centrx_ has quit []
kenichi_ is now known as kenichi
skweek has quit [Ping timeout: 255 seconds]
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
<rizonz>
apeiros: yeah did but we couldn't figure it out
bmurt has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JoshS has quit [Ping timeout: 240 seconds]
<toretore>
rizonz: so, your variables.. how do you know there's anything in them?
<rizonz>
toretore: yeah goo one as well
<rizonz>
*good
<rizonz>
toretore: it's always set to default actually
markholmes has quit [Ping timeout: 255 seconds]
Gasher has quit [Ping timeout: 258 seconds]
tomphp has joined #ruby
JuliusDe_ has quit [Ping timeout: 258 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver>
>>class Fixnum;def retry_times;times.reduce(nil){|_,i|r=yield i;break r if r}end;end;25.retry_times{|i|i==20&&i*2}