ruby__ has quit [Remote host closed the connection]
ruby_ has joined #ruby
astrobun_ has joined #ruby
astrobun_ has quit [Remote host closed the connection]
astrobun_ has joined #ruby
binaryplease1 is now known as binaryplease
hotpancakes has quit [Ping timeout: 264 seconds]
JeanCarloMachado has quit [Ping timeout: 244 seconds]
zacts has quit [Quit: WeeChat 1.4]
shmuli has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
astrobun_ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
astrobun_ has quit [Read error: Connection reset by peer]
symm- has quit [Quit: Leaving...]
astrobun_ has joined #ruby
dviola has quit [Quit: WeeChat 1.5]
astrobun_ has quit [Remote host closed the connection]
hutch34 has joined #ruby
astrobun_ has joined #ruby
ruby_ has quit [Remote host closed the connection]
symm- has joined #ruby
astrobun_ has quit [Ping timeout: 265 seconds]
deadprez has joined #ruby
lessless has joined #ruby
getxsick has joined #ruby
<getxsick>
is it possible to load only a specific class/module from a file? something like from module import cls in Python?
threh has quit [Ping timeout: 255 seconds]
swemoney has joined #ruby
JesseH has joined #ruby
deadprez has quit [Ping timeout: 244 seconds]
arescorpio has joined #ruby
capitainIsh has quit [Ping timeout: 265 seconds]
hutch34 has quit [Ping timeout: 250 seconds]
Bl4ckpajamas has joined #ruby
nankyokusei has joined #ruby
giz|work|2 has joined #ruby
ruby_ has joined #ruby
bkxd has joined #ruby
<adam12>
getxsick: Not likely.
BTRE has quit [Ping timeout: 240 seconds]
<adam12>
I'm sure someone has hacked something together at one time using `load` and perhaps a different binding context? but it's not often seen in the wild.
yeticry has quit [Ping timeout: 240 seconds]
nankyokusei has quit [Ping timeout: 244 seconds]
<getxsick>
ok, cool
<adam12>
Most people put classes in separate files, so you could `require "lib/some_class"`
cibs has quit [Ping timeout: 240 seconds]
yeticry has joined #ruby
cibs has joined #ruby
NetSage has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 276 seconds]
Devalo has joined #ruby
aidalgol has joined #ruby
aidalgol is now known as Guest80182
astrobun_ has joined #ruby
cschneid has quit [Ping timeout: 250 seconds]
Guest80182 is now known as aidalgol
swemoney has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
braincrash has quit [Quit: bye bye]
Guest98262 has quit [Ping timeout: 264 seconds]
Devalo has quit [Ping timeout: 276 seconds]
matp has quit [Ping timeout: 255 seconds]
gix has quit [Ping timeout: 265 seconds]
linduxed has quit [Ping timeout: 265 seconds]
deadprez has joined #ruby
Kamilion has quit [Ping timeout: 244 seconds]
A_Drone has quit [Remote host closed the connection]
zacts has joined #ruby
gix has joined #ruby
deadprez has quit [Remote host closed the connection]
deadprez has joined #ruby
linduxed has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
jazzonmym1nd has quit [Ping timeout: 250 seconds]
A_Drone has joined #ruby
beneggett has joined #ruby
beneggett has quit [Client Quit]
beneggett has joined #ruby
kanobt61 has quit [Read error: Connection reset by peer]
k3rn31 has joined #ruby
kanobt61 has joined #ruby
shortdudey123 has quit [Remote host closed the connection]
braincrash has joined #ruby
nettoweb has joined #ruby
cschneid has joined #ruby
hotpancakes has joined #ruby
tmtwd has quit [Ping timeout: 250 seconds]
jphase_ has joined #ruby
braincra- has joined #ruby
wheely has joined #ruby
threh has joined #ruby
getxsick has quit [Quit: leaving]
jphase has quit [Ping timeout: 244 seconds]
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hotpancakes has quit [Ping timeout: 255 seconds]
calmchaos has quit [Remote host closed the connection]
braincrash has quit [Ping timeout: 252 seconds]
robfrawley has joined #ruby
jackjackdripper has joined #ruby
robfrawley is now known as Guest2765
jackjackdripper has quit [Client Quit]
shortdudey123 has joined #ruby
deadprez has quit [Remote host closed the connection]
deadprez has joined #ruby
hahuang61 has joined #ruby
deadprez has quit [Ping timeout: 244 seconds]
deadprez has joined #ruby
A5101 has quit [Ping timeout: 250 seconds]
nclbr has quit [Read error: No route to host]
nclbr has joined #ruby
Bl4ckpajamas has quit [Quit: ZZZzzz…]
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang61 has quit [Ping timeout: 255 seconds]
solocshaw has quit [Remote host closed the connection]
Bl4ckpajamas has joined #ruby
solocshaw has joined #ruby
ChiefAlexander has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
_djbkd has joined #ruby
jazzonmym1nd has joined #ruby
zapata has quit [Quit: WeeChat 1.5]
zapata has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
Kamilion has joined #ruby
ruby_ has quit [Remote host closed the connection]
ruby_ has joined #ruby
ChiefAlexander has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
ChiefAlexander has joined #ruby
sand-bird has joined #ruby
threh has quit [Quit: 'Til next time]
hutch34 has joined #ruby
lel has joined #ruby
will309 has joined #ruby
lel is now known as Guest90053
sand-bird has quit [Remote host closed the connection]
jazzonmym1nd has quit [Ping timeout: 276 seconds]
hotpancakes has joined #ruby
tmtwd has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
will309 has quit [Client Quit]
hotpancakes has quit [Ping timeout: 244 seconds]
hutch34 has quit [Ping timeout: 244 seconds]
craigp has quit [Ping timeout: 244 seconds]
JesseH has quit [Ping timeout: 240 seconds]
ChiefAlexander has quit [Ping timeout: 252 seconds]
l4v2 has quit [Quit: l4v2]
calmchaos has joined #ruby
tdy has joined #ruby
Es0teric has joined #ruby
calmchaos has quit [Ping timeout: 265 seconds]
nclbr has quit [Read error: Connection reset by peer]
nclbr has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
conta has joined #ruby
ruby[bot] has joined #ruby
roxtrongo has joined #ruby
rsampaio_ has quit [Ping timeout: 260 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Dispatch has quit []
rsampaio_ has joined #ruby
A_Drone has quit [Remote host closed the connection]
calmchaos has joined #ruby
nertzy has quit [Ping timeout: 250 seconds]
RadPlatypus has quit [Quit: Connection closed for inactivity]
arescorpio has quit [Quit: Leaving.]
My_Hearing has joined #ruby
araujo__ has quit [Quit: Leaving]
Mon_Ouie has quit [Ping timeout: 276 seconds]
benlieb has joined #ruby
Vingador has quit [Remote host closed the connection]
calmchaos has quit [Ping timeout: 240 seconds]
jtzero1 has quit [Ping timeout: 276 seconds]
duncannz has joined #ruby
Bl4ckpajamas has quit [Quit: ZZZzzz…]
chouhoul_ has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
toretore has joined #ruby
aBound has joined #ruby
willyg_cos has joined #ruby
greister__ has quit [Ping timeout: 240 seconds]
conta has quit [Ping timeout: 244 seconds]
Bl4ckpajamas has joined #ruby
aBound has quit [Client Quit]
chouhoulis has quit [Ping timeout: 240 seconds]
Widdershins has left #ruby ["WeeChat 1.5"]
ruby_ has quit [Remote host closed the connection]
ramfjord has joined #ruby
Bl4ckpajamas has quit [Quit: ZZZzzz…]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
AlexRussia has quit [Ping timeout: 255 seconds]
pawnbox has joined #ruby
ruby_ has joined #ruby
postmodern has quit [Quit: Leaving]
rsampaio_ has quit [Ping timeout: 265 seconds]
nertzy has joined #ruby
nankyokusei has joined #ruby
bkxd has joined #ruby
govg has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
sdothum has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
hotpancakes has joined #ruby
Devalo has joined #ruby
tmtwd has quit [Ping timeout: 250 seconds]
Devalo has quit [Ping timeout: 244 seconds]
hotpancakes has quit [Ping timeout: 264 seconds]
willyg_cos has quit [Quit: Ex-Chat]
giz|work|2 has quit [Ping timeout: 252 seconds]
deadprez has quit [Remote host closed the connection]
deadprez has joined #ruby
solocshaw has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
ruby_ has quit [Remote host closed the connection]
<arup_r>
Is there any difference between Marshal.restore and Marshal.load?
ebbflowgo has left #ruby [#ruby]
deadprez has quit [Ping timeout: 264 seconds]
charliesome has quit [Read error: Connection reset by peer]
raeoks has joined #ruby
deadprez has joined #ruby
govg has quit [Quit: leaving]
deadprez_ has joined #ruby
govg has joined #ruby
deadprez has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
nando293921 has quit [Ping timeout: 250 seconds]
tenderlove has joined #ruby
hahuang61 has joined #ruby
matp has joined #ruby
olistik has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
tenderlo_ has joined #ruby
<[k->
I don't think there is a difference. I think they are aliases.
LoneHerm_ has joined #ruby
tenderlove has quit [Ping timeout: 244 seconds]
wugy has joined #ruby
wugy has quit [Excess Flood]
olistik has quit [Ping timeout: 276 seconds]
wugy has joined #ruby
wugy has quit [Excess Flood]
wugy has joined #ruby
hutch34 has joined #ruby
pawnbox has quit [Remote host closed the connection]
<arup_r>
[k-: after long time i am seeing you.. how are you? :)
<[k->
I'm fine :> Nice seeing you too
<[k->
The documentation doesn't explicitly say they are aliases but if you click view source, they link to the same c function
<arup_r>
that thing I didn't.. I should see that first. I needed that lib, so I was reading it.. and found 2 method docs are same exactly
<[k->
haha yea
blackgoat has joined #ruby
tenderlo_ has quit [Ping timeout: 252 seconds]
ramfjord has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Remote host closed the connection]
<dminuoso>
The mentioned use case is: if(a, b = method_returning_ary_or_nil)
<heftig>
i think it used to return [a, b] always
<dminuoso>
heftig: It got changed in 1.9
<heftig>
dminuoso: i don't remember ever using the return value of a multiple assignment
omphe has joined #ruby
dogweather has joined #ruby
<dminuoso>
heftig: I consider using assignment in conditionals bad style outside the C world.
<dminuoso>
(And even in C world it's less desirable more often than not)
dogweather has quit [Remote host closed the connection]
<heftig>
yeah, i avoid it where i can
dogweather has joined #ruby
dogweather has quit [Remote host closed the connection]
CloCkWeRX has quit [Quit: Leaving.]
jgt has joined #ruby
<[k->
is there a last seen bot here?
__main__ has quit [Read error: Connection reset by peer]
tulak has quit []
_main_ has joined #ruby
<Mon_Ouie>
I don't think so. You could check _whitelogger's logs or I think NickServ can tell you about someone's last log in
<[k->
thanks!
Paradox has quit [Quit: off to herp the derps]
mozzarella has joined #ruby
_main_ is now known as __main__
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rsampaio_ has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
uranellus has joined #ruby
uranellus has quit [Changing host]
uranellus has joined #ruby
bkxd has joined #ruby
minimalism has joined #ruby
astrobun_ has quit [Remote host closed the connection]
astrobun_ has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
astrobun_ has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
Paradox has joined #ruby
dogweather has joined #ruby
decav has joined #ruby
Beams has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
omphe has joined #ruby
nankyokusei has joined #ruby
tenderlove has joined #ruby
jazzonmym1nd has joined #ruby
alaibe has joined #ruby
tenderlove has quit [Ping timeout: 244 seconds]
nankyokusei has quit [Ping timeout: 265 seconds]
hipertracker has joined #ruby
dogweather has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
lheaded has joined #ruby
lightheaded has quit [Read error: No route to host]
dogweather has joined #ruby
dogweather has quit [Remote host closed the connection]
lheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
dogweather has joined #ruby
dogweather has quit [Remote host closed the connection]
astrobun_ has joined #ruby
ur5us has joined #ruby
quazimodo has quit [Ping timeout: 244 seconds]
AnFin has joined #ruby
hotpancakes has joined #ruby
flying has joined #ruby
Agent001 has joined #ruby
jazzonmym1nd has quit [Ping timeout: 255 seconds]
hotpancakes has quit [Ping timeout: 250 seconds]
cyclonis has quit [Remote host closed the connection]
giz|work has joined #ruby
CloCkWeRX has joined #ruby
cyclonis has joined #ruby
Couch has joined #ruby
heelpmeplz has joined #ruby
elifoster has quit [Quit: sleep]
aupadhye has quit [Ping timeout: 265 seconds]
dreamyspell has quit [Ping timeout: 250 seconds]
glcx has joined #ruby
glcx has joined #ruby
glcx has quit [Changing host]
hahuang61 has joined #ruby
johnmccabe has joined #ruby
johnmccabe has quit [Remote host closed the connection]
einarj has quit []
johnmccabe has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang61 has quit [Ping timeout: 250 seconds]
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby
Alayde has quit [Ping timeout: 240 seconds]
einarj has joined #ruby
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby
cyclonis has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
Pupp3tm4st3r has joined #ruby
jazzonmym1nd has joined #ruby
workmad3 has joined #ruby
greister__ has joined #ruby
greister_ has quit [Ping timeout: 265 seconds]
bkxd has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
phredus_ has joined #ruby
jsrn_ has quit [Ping timeout: 244 seconds]
stamina has joined #ruby
LoneHerm_ has joined #ruby
dogweather has joined #ruby
astrobun_ has quit [Remote host closed the connection]
hipertracker has quit [Quit: hipertracker]
astrobun_ has joined #ruby
LoneHerm_ has quit [Ping timeout: 265 seconds]
astrobun_ has quit [Remote host closed the connection]
alehander has joined #ruby
gener1c has joined #ruby
astrobun_ has joined #ruby
dogweather has quit [Ping timeout: 250 seconds]
<gener1c>
does anyone know of a good ftp lib that supports fxp and ssl?
<gener1c>
i found ftpfxp and the ssl part looks broken
govg has joined #ruby
AnFin has left #ruby [#ruby]
AnFin has joined #ruby
AnFin has left #ruby [#ruby]
astrobun_ has quit [Ping timeout: 250 seconds]
duncannz has quit [Remote host closed the connection]
quazimodo has joined #ruby
hotpancakes has joined #ruby
glcx has quit [Ping timeout: 265 seconds]
mikhael_k33hl has quit [Ping timeout: 264 seconds]
ur5us has quit [Remote host closed the connection]
tenderlove has joined #ruby
hotpancakes has quit [Ping timeout: 264 seconds]
calmchaos has joined #ruby
Beams has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mrBen2k2k2k has joined #ruby
tenderlove has quit [Ping timeout: 244 seconds]
Beams has joined #ruby
calmchaos has quit [Ping timeout: 265 seconds]
hipertracker has joined #ruby
alehander has quit [Ping timeout: 264 seconds]
wolfedale has joined #ruby
<wolfedale>
Hi
nowhereFast has quit [Ping timeout: 265 seconds]
IchabodAgento003 has joined #ruby
Agent001 has quit [Ping timeout: 240 seconds]
pawnbox_ has quit [Remote host closed the connection]
jsrn_ has joined #ruby
greister__ has quit [Ping timeout: 240 seconds]
blackgoat has joined #ruby
jgt has quit [Ping timeout: 244 seconds]
govg has quit [Ping timeout: 265 seconds]
pawnbox has joined #ruby
yardenbar has joined #ruby
<gener1c>
?
<gener1c>
ftputils?
govg has joined #ruby
antgel has joined #ruby
nankyokusei has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tlaxkit has joined #ruby
phoo1234567 has joined #ruby
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
aries_liuxueyang has quit [Ping timeout: 244 seconds]
giz|work has quit [Ping timeout: 240 seconds]
aries_liuxueyang has joined #ruby
lightheaded has quit [Ping timeout: 240 seconds]
last_staff has quit [Quit: brb]
last_staff has joined #ruby
lightheaded has joined #ruby
astrobun_ has joined #ruby
hahuang61 has joined #ruby
c355e3b has joined #ruby
hanmac has quit [Ping timeout: 255 seconds]
astrobun_ has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 250 seconds]
hotpancakes has joined #ruby
dhk has joined #ruby
quazimodo has quit [Ping timeout: 250 seconds]
rodfersou has joined #ruby
quazimodo has joined #ruby
hahuang61 has joined #ruby
hotpancakes has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 250 seconds]
hipertracker has quit [Quit: hipertracker]
giz|work has joined #ruby
hahuang61 has quit [Ping timeout: 255 seconds]
sevenfourk has joined #ruby
hanmac has joined #ruby
calmchaos has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
johnmccabe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gilfoyle has joined #ruby
IchabodAgento003 has quit [Ping timeout: 240 seconds]
Ropeney has joined #ruby
govg has joined #ruby
hipertracker has joined #ruby
k3rn31 has quit [Ping timeout: 244 seconds]
umdstu has joined #ruby
craigp has quit [Ping timeout: 244 seconds]
wldcordeiro has quit [Ping timeout: 244 seconds]
ctp has joined #ruby
k3rn31 has joined #ruby
quazimodo has quit [Ping timeout: 244 seconds]
<gilfoyle>
I have an application I need to test. It calls an auth method at startup and then periodically does authentication. I would like to do a bit of chaosmonkeying, by letting the app authenticate in the beginning but then, depending on what I'm testing, letting the authentication succeed or not. I have an auth method. What's the correct way to achieve this?
quazimodo has joined #ruby
foxxx0 has quit [Quit: WeeChat 1.0.1]
<Papierkorb>
gilfoyle: Depends on many factors. If the auth method supports multiple backends, you can have a TestBackend which you can then configure in a test to fail or succeed.
<Cork>
see what, i've read it up and down several times
<Cork>
i don't see anything for identifying the encoding in the utf-8 string
mpr555 has joined #ruby
Beams has joined #ruby
<Papierkorb>
Cork: If you want to guess it you'll have issues. Ask the system what encoding it uses instead.
<Cork>
Papierkorb: it is the output from a command
<Cork>
there is no way to get it
<Cork>
that is my problem
mpr555 has quit [Client Quit]
<tobiasvl>
Cork: the "command" doesn't know what encoding it uses?
hipertracker has quit [Quit: hipertracker]
nikivi has joined #ruby
Ropeney has quit [Quit: Leaving]
<Cork>
tobiasvl: no
<Cork>
to be more specific, this is a call to whois, and the output is what the server sends as a text body
olistik has joined #ruby
<Cork>
no encoding or anything
<Cork>
basically just raw binary data
govg has quit [Ping timeout: 240 seconds]
jhack has joined #ruby
<tobiasvl>
seems you're correct
<tobiasvl>
The WHOIS protocol has no mechanism for indicating the character set in use.
<tobiasvl>
This inability to predict or express text encoding has adversely impacted the interoperability (and, therefore, usefulness) of the WHOIS protocol.
<tobiasvl>
from the API :P
RegulationD has joined #ruby
dminuoso has quit [Remote host closed the connection]
<tobiasvl>
s/API/RFC
johnmccabe has joined #ruby
Snowy has joined #ruby
deadprez has joined #ruby
fmcgeough has joined #ruby
jshjsh has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
dminuoso has joined #ruby
JoshS has quit [Disconnected by services]
jshjsh is now known as JoshS
deadprez has quit [Remote host closed the connection]
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
BrianJ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
omphe has joined #ruby
phredus_ has quit [Quit: No Ping reply in 180 seconds.]
tenderlove has joined #ruby
hotpancakes has joined #ruby
phredus_ has joined #ruby
tuelz1 has quit [Ping timeout: 240 seconds]
sdothum has joined #ruby
dminuoso has joined #ruby
hahuang61 has joined #ruby
gilfoyle has quit [Read error: Connection reset by peer]
Beams has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
tenderlove has quit [Ping timeout: 250 seconds]
przemoskPL has joined #ruby
phredus_ has quit [Remote host closed the connection]
kanyewezt has joined #ruby
hotpancakes has quit [Ping timeout: 244 seconds]
johnmccabe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang61 has quit [Ping timeout: 250 seconds]
tuelz1 has joined #ruby
johnmccabe has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
jhack has joined #ruby
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gilfoyle has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
johnmccabe has quit [Client Quit]
kx has joined #ruby
IchabodAgento003 has quit [Ping timeout: 240 seconds]
kx is now known as kaiks
wugy has quit []
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
aegis3121 has joined #ruby
ngscheur1 has joined #ruby
charliesome has joined #ruby
bsrd has joined #ruby
johnmccabe has joined #ruby
shinnya has joined #ruby
malconis has joined #ruby
<chrisdav6>
Joined this room yesterday and i thought there would be more chatter! Kind of quiet in here :(
nando293921 has joined #ruby
dminuoso has quit [Ping timeout: 244 seconds]
omphe has joined #ruby
<[k->
It used to be noisy
<[k->
real noise
moneylotion has quit [Quit: ZNC 1.6.3 - http://znc.in]
coolboy has joined #ruby
Alina-malina has quit [Ping timeout: 276 seconds]
griffindy has joined #ruby
nikivi has quit [Quit: irc]
LastWhisper____ has joined #ruby
<chrisdav6>
I will throw something out... i'm currently learning about Ruby class inheritance and child class overrides. Very interesting stuff! Seems like it could really cut down on repititious code :)
hipertracker has joined #ruby
<chrisdav6>
I touched on it class inhereitance breifly with Javascript and was a little confused, but learning the concepts a second time around with Ruby really reinforced the ideas
moneylotion has joined #ruby
IchabodAgento003 has joined #ruby
raviShankarJha has quit []
yardenbar has quit [Ping timeout: 264 seconds]
<[k->
that's nice. There are also mixins and the like
DoubleMalt has joined #ruby
jgt has joined #ruby
govg has joined #ruby
maokomioko has joined #ruby
<chrisdav6>
Yeah, i was learning about them as well. Lamdas and Procs right?
<chrisdav6>
*Lambda!
<[k->
lambdas, procs, and blocks
<[k->
also methods, unbound methods
ruby_ has joined #ruby
<chrisdav6>
blocks are just anonymous methods right?
<gener1c>
what are unbound methods?
<gener1c>
nah blocks are lambda expressions passed to methods
<gener1c>
like so
<Mon_Ouie>
A method object that doesn't have a fixed receiver object
<gener1c>
[1,2,3,4],map {|num| num+1}
<chrisdav6>
ahhh, gotcha
<gener1c>
the {} part is the block
<gener1c>
Mon_Ouie: is that a method level mixin?
<Mon_Ouie>
"foo".method(:length) is a method bound to "foo", String.instance_method(:length) is an unbound version of the same method, which you can bind to any string object you want
<chrisdav6>
Can it can also be [1.2.3.4].map do |num| num+1 end the do and end are the block
b3atr has quit [Quit: WeeChat 1.5]
AndrewIsHere has joined #ruby
<chrisdav6>
[1,2,3,4]
deadprez has joined #ruby
<chrisdav6>
used the wrond syntax on my array!
<gener1c>
yes chrisdav6 those are the same
<gener1c>
do |num| end
<gener1c>
{|num|}
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<chrisdav6>
@gener1c thanks man
<jazzonmym1nd>
>> class MyString < String; end; MyString.new("").bind(String.instance_method(:chomp))
<gener1c>
np
<ruby[bot]>
jazzonmym1nd: # => undefined method `bind' for "":MyString ...check link for more (https://eval.in/637912)
wolfedale has quit []
<gener1c>
>> 1+2
<[k->
I think bind belongs to a Method
<jazzonmym1nd>
>> class MyString < String; end; String.instance_method(:chomp).bind(MyString.new(""))
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has quit [Remote host closed the connection]
Beams has joined #ruby
tenderlove has joined #ruby
tenderlove has joined #ruby
tenderlove has quit [Changing host]
jhack has quit [Quit: jhack]
tyang has joined #ruby
chouhoulis has joined #ruby
<chrisdav6>
Overriding existing Ruby methods seems like risky business. I can't think of how this would be useful or why Ruby allows it. Why not just create your own method?
banisterfiend has joined #ruby
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k->
One reason would be convenience
<[k->
sometimes you would like to extend a class's functionality
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
<chrisdav6>
I understand that part, but wouldn't it be safer to just copy the original method, alter it to your liking, then name it something else? Seems like you are muddying up the water overiding Ruby methods
<chrisdav6>
I guess it cool that you have the option
lightheaded has quit [Read error: No route to host]
lightheaded has joined #ruby
<[k->
allowing you that option is what ruby is about :)
<chrisdav6>
ahhh :)
tenderlove has quit [Ping timeout: 250 seconds]
<[k->
yes, you are muddying up the waters, and you can also cause trouble for other people who might not know that you change the functionality of the core classes
calmchaos has quit [Remote host closed the connection]
nettoweb has joined #ruby
<[k->
therefore, it is generally discouraged to do so
<[k->
but if you are just typing up a small script for your own personal use, it really is a handy feature
<chrisdav6>
I can see how that can go bad very quickly!
<chrisdav6>
Especially if you are working with a team like you mentioned and not leaving code comments
ferr has quit [Quit: WeeChat 1.5]
tenderlove has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
chouhoulis has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 255 seconds]
<[k->
it leads to very confusing errors that no one can understand
<aeruder>
meisterluk: hmm, i see another identical regex right below without the encode
<aeruder>
the last_word = ... line
benlieb has quit [Quit: benlieb]
<aeruder>
is that maybe the one erroring out?
<meisterluk>
nope, sadly not... line 217 is "@previous_fragment_ended_with_breakable = pf =~ r"
RegulationD has joined #ruby
<meisterluk>
Prawn uses a "# encoding: utf-8" declaration, but this should not be relevant in ruby 2.0 .... just for information
<ule>
Hi there..
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Alayde has joined #ruby
shinnya has quit [Ping timeout: 250 seconds]
gigetoo has quit [Ping timeout: 250 seconds]
<ule>
do you guys know any trick to support pretty-printing on Byebug?
<ule>
sorry for a no-ruby question.. but it's kind of related
<adaedra>
Use pp
gigetoo has joined #ruby
<ule>
adaedra: is it a gem? because this command doesn't work here
<Mon_Ouie>
require 'pp'
ramfjord has quit [Ping timeout: 240 seconds]
<ule>
(byebug) require 'pp'
<ule>
false
<ule>
Mon_Ouie: :/
<Mon_Ouie>
That just means it was already required
moparisthebest has quit [Ping timeout: 276 seconds]
<aeruder>
meisterluk: kind of out of ideas then, i think you can extract this into a smaller example and play around with it, i see that regexp has its own encoding stuff
<ule>
Mon_Ouie: pp shows a hash but doesn't make it pretty
<aeruder>
but i don't understand why that wouldn't pick up from the string encoding
<meisterluk>
aeruder: you mean a regexp object maintains its own encoding, right?
<Mon_Ouie>
Beauty is in the mind of the beholder?
<aeruder>
meisterluk: yes, it has its own encoding method that returns what encoding it works with
baweaver is now known as baweaver_away
<aeruder>
and presumably that will indicate Windows-1252, but agree with you that I don't fully-understand why
RegulationD has quit [Ping timeout: 264 seconds]
benlieb has joined #ruby
<meisterluk>
aeruder: oh, what is this method's name?
<aeruder>
meisterluk: #encoding
<ule>
Mon_Ouie: I'm looking for a kind of multiple lines results.. splitting each hash groups by tabs etc.. like those json prettifyers that we can find online
<[k->
i remember when I debugged a huge array of [#<Object: @instance=[#<Object @instance= ...]]
<[k->
not pretty
rubie has quit [Remote host closed the connection]
brendan- is now known as bmurt-
rubie has joined #ruby
<ule>
Mon_Ouie: oh shit.. worked here.. I used: pp object.attributes
<ule>
thanks
<meisterluk>
aeruder: too obvious ;-) thank you for support! I will debug a bit more and probably refer to the Prawn devs :) thank you!
spudowiar has joined #ruby
<elomatreb>
ule: Another great way is to `require "yaml"` and use .to_yaml/Object#y
<aeruder>
oh ok, hmmm, definitely see lots of stuff about 1.9 having issues, but most of that is now-solved
<ule>
elomatreb: oh boy.. lemme test it out
Vile` has joined #ruby
<meisterluk>
aeruder: oh boy, I just found that the encoding mentioned might be from another call of this method... sorry, let me look into it
ramfjord has joined #ruby
AndrewIsHere has joined #ruby
rubie has quit [Ping timeout: 252 seconds]
daffy_duck_2 has quit [Ping timeout: 276 seconds]
Pumukel has quit [Ping timeout: 276 seconds]
bmurt- is now known as bmurts
bmurts is now known as bmurt
rodfersou|lunch has quit [Quit: leaving]
<ule>
elomatreb: worked!! thanks
<ule>
Mon_Ouie: thanks again
nando293921 has quit [Ping timeout: 250 seconds]
tyang has joined #ruby
Rickmasta has joined #ruby
amclain has joined #ruby
jeremyhall has joined #ruby
akkad has joined #ruby
spudowiar has quit [Quit: Leaving.]
tyang has quit [Ping timeout: 250 seconds]
vdamewood has quit [Quit: Life beckons.]
ramfjord has quit [Ping timeout: 260 seconds]
jsrn_ has quit [Read error: Connection reset by peer]
kgutteridge has left #ruby [#ruby]
<meisterluk>
aeruder: apparently there are multiple issues. If I fixed the one, the other occured, vice versa … and the debug info is the output of two different cases… so nevermind & sorry for bothering! thx! :-)
<aeruder>
meisterluk: no worries :)
karmatr0n has joined #ruby
ramfjord has joined #ruby
RegulationD has joined #ruby
agent_white has joined #ruby
saneax is now known as saneax-_-|AFK
AndrewIsHere has quit [Remote host closed the connection]
ruby_ has quit [Remote host closed the connection]
ruby_ has joined #ruby
<ytti>
there almost certainly is more idiomatic solution to what ever problem you're struggling with
<sapphire_>
localize damn thing, actually
AndrewIsHere has quit [Remote host closed the connection]
<xpt>
o you basically want to rename 'reverse' to 'odwróć' ?
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<xpt>
so*
AndrewIsHere has joined #ruby
Sid05 has joined #ruby
<sapphire_>
actually, (almost) every keyword
_djbkd has joined #ruby
<sapphire_>
like if,end,else,def,etc.
PersonaSound has joined #ruby
ruby_ has quit [Ping timeout: 244 seconds]
dminuoso has quit [Ping timeout: 276 seconds]
<canton7>
I'm guessing this is a DSL of some sort?
AndrewIsHere has quit [Remote host closed the connection]
<xpt>
I've used polish version of microsoft excel =jeżeli(...) is counterintuitive to me, i prefer =if(...)
<sapphire_>
kinda like EnglishScript
<xpt>
but you are free to do as you want
<sapphire_>
"free" as in "no docs on this topic, bud, you're on your own"
<apeiros>
sapphire_: write a preprocessor?
<sapphire_>
in that case - that's bs
marr has quit [Ping timeout: 240 seconds]
<apeiros>
after all, #define et al are all preprocessor stuff too in C
<sapphire_>
wouldn't that be more weight for a poor ruby?
<sapphire_>
it's slow already y'know (compared to crystal)
bjh13 has joined #ruby
<PersonaSound>
anyone know how to code a reese bass
<apeiros>
well, just as with every other preprocessor, the output would be native code
<[k->
but the errors will be in English
kitikonti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sapphire_>
well, then maaaybe (i hope they are localisable as well)
<[k->
module names in English, methods in English, exceptions in English
<[k->
libraries throwing exceptions in English
<sapphire_>
everything should be localisable as long as it supports unicode
devbug has joined #ruby
<apeiros>
sapphire_: another route: rewrite parse.y and compile a custom ruby
<sapphire_>
sounds rocket-sciency
hotpancakes has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
spudowiar has joined #ruby
devbug has quit [Read error: Connection reset by peer]
JeanCarloMachado has joined #ruby
JeanCarl1Machado has joined #ruby
mikecmpbll has quit [Ping timeout: 265 seconds]
wldcordeiro has joined #ruby
IchabodAgento003 has joined #ruby
shmuli has joined #ruby
<sapphire_>
yup, it's in c, sorry no xp in that area (so basically i have less than no idea where to modify and how to rebuild w/o triggering warns/errs/fatals)
devbug has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
minotep has joined #ruby
jhack has quit [Quit: jhack]
chouhoulis has quit [Remote host closed the connection]
beneggett has joined #ruby
<[k->
i would think you have a huge task ahead if you want to localize ruby
connor_goodwolf has quit [Ping timeout: 244 seconds]
chouhoulis has joined #ruby
<[k->
even documentation needs to be localized!
<tubbo>
PersonaSound: sure can, gimme a korg ms-20 :)
ajsharma has quit [Read error: Connection reset by peer]
PaulCapestany has quit [Read error: Connection reset by peer]
<sapphire_>
well,it already is ;)
ruby_ has joined #ruby
<sapphire_>
for ruby syntax ofc
Snowy has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
tomchapin has joined #ruby
govg has quit [Ping timeout: 240 seconds]
<sapphire_>
uhhh...
tomchapin has quit [Client Quit]
Couch has quit [Ping timeout: 244 seconds]
conta has joined #ruby
replay has joined #ruby
<jazzonmym1nd>
sapphire_: what's the benefit? is it for yourself or large group of polish people?
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mia has joined #ruby
<sapphire_>
well, not polish, but you are close
ramfjord has joined #ruby
kith has quit [Quit: kith]
<sapphire_>
most of _the people_ are stuck w/ delphi and/or c/c++/c#
<sapphire_>
it's kinda bad
<[k->
there are ruby channels for people who speak different languages
<[k->
you could ask if they have something similar
<sapphire_>
well, i'm afraid ruby here is _not_ so widespread
<sapphire_>
so knowledge maybe kinda poor
<sapphire_>
may be*
AndrewIsHere has joined #ruby
sepp2k has joined #ruby
danostrowski has joined #ruby
hotpancakes has joined #ruby
kith has joined #ruby
shinnya has joined #ruby
<hanmac>
delphi still exist? i was (10+)years ago i have touched it, and then it wasn't the best :/
IchabodAgento003 has quit [Read error: Connection reset by peer]
einarj has quit [Remote host closed the connection]
einarj has joined #ruby
<sapphire_>
still alive and support iot and mac
<sapphire_>
supports*
nankyokusei has joined #ruby
SeepingN has joined #ruby
<sapphire_>
it's owned by ~~abracadabra~~ embarcadero
aegis3121 has joined #ruby
jgt has quit [Ping timeout: 265 seconds]
Shmulik has quit [Ping timeout: 244 seconds]
PersonaSound has quit [Ping timeout: 250 seconds]
einarj has quit [Ping timeout: 264 seconds]
nankyokusei has quit [Ping timeout: 252 seconds]
blackjid has quit [Ping timeout: 250 seconds]
aguynamedben has quit [Ping timeout: 250 seconds]
kitikonti has joined #ruby
tpendragon has quit [Ping timeout: 250 seconds]
kitikonti has quit [Client Quit]
tenderlove has joined #ruby
giraffe has quit [Ping timeout: 276 seconds]
karmatr0n has quit [Ping timeout: 260 seconds]
aegis3121 has quit [Ping timeout: 244 seconds]
mark_66 has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 276 seconds]
firstdayonthejob has joined #ruby
flying has quit []
<sapphire_>
(it also would be great if there was RAD for ruby)
maokomioko has joined #ruby
tenderlove has quit [Ping timeout: 250 seconds]
postmodern has joined #ruby
minotep has quit [Quit: minotep]
shmuli has quit [Remote host closed the connection]
devbug has quit [Read error: Connection reset by peer]
plasticxor has joined #ruby
plasticxu has quit [Ping timeout: 244 seconds]
hipertracker has joined #ruby
connor_goodwolf has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dhk has quit [Quit: Leaving]
beneggett has joined #ruby
<sapphire_>
and yea, _the only_ usergroup here is dedicated to rails __only__
<sapphire_>
so sad
careta has quit [Ping timeout: 240 seconds]
alaibe has quit [Ping timeout: 240 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
plasticxme has joined #ruby
devbug has joined #ruby
<[k->
ruby internals are difficult when we don't know c >:(
minotep has joined #ruby
Littlemyu_ has quit [Ping timeout: 252 seconds]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kus has joined #ruby
kus has quit [Max SendQ exceeded]
sapphire__ has joined #ruby
<sapphire__>
true, and yet some peopleare actually understandinng __and maintaining it__
plasticxor has quit [Ping timeout: 240 seconds]
rcvalle has joined #ruby
mrgrieves has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
gilfoyle has quit [Read error: Connection reset by peer]
sapphire_ has quit [Ping timeout: 264 seconds]
benlieb has quit [Quit: benlieb]
bkxd has joined #ruby
<[k->
hm there is an irc channel for that too
aegis3121 has joined #ruby
devbug has quit [Read error: Connection reset by peer]
<sapphire__>
i predict, something like ruby_dev
symm- has joined #ruby
calmchaos has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
astrobun_ has joined #ruby
pawnbox has joined #ruby
devbug has joined #ruby
hahuang61 has quit [Ping timeout: 255 seconds]
bkxd has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
<[k->
I can't remember
calmchaos has joined #ruby
tuelz1 has quit [Ping timeout: 250 seconds]
zekriad has joined #ruby
rodfersou has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby
benlieb has quit [Client Quit]
jhack has quit [Quit: jhack]
astrobun_ has quit [Ping timeout: 264 seconds]
rodfersou has joined #ruby
polishdub has quit [Quit: Leaving]
tyang has joined #ruby
Silthias1 has quit [Quit: Leaving.]
KramerC has quit [Ping timeout: 276 seconds]
marr has joined #ruby
<sapphire__>
:(
<zacts>
I remember delphi, I think gamemaker was made using it
<zacts>
back in the day
pawnbox has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
jonathanwallace has joined #ruby
Sid05 has left #ruby [#ruby]
aguynamedben has joined #ruby
<sapphire__>
:|
<sapphire__>
qip uses delphi
jhack has joined #ruby
blackjid has joined #ruby
tpendragon has joined #ruby
benlieb has joined #ruby
<sapphire__>
aimp too
banisterfiend has joined #ruby
skarn_ has joined #ruby
benlieb has quit [Client Quit]
moparisthebest has joined #ruby
parus has joined #ruby
shortdudey123 has quit [Max SendQ exceeded]
shortdudey123 has joined #ruby
DoubleMalt has quit [Ping timeout: 265 seconds]
KramerC has joined #ruby
coolboy has quit [Ping timeout: 276 seconds]
sapphire_ has joined #ruby
sapphire_ has left #ruby [#ruby]
claudiuinberlin has joined #ruby
coolboy has joined #ruby
Alayde has quit [Ping timeout: 244 seconds]
Silthias has joined #ruby
mwlang has joined #ruby
moresilenter has joined #ruby
<moresilenter>
hey everyone! I just wanted to check if "array.each_with_index.inject" is the only way for me to do an inject on an array and have the index
<aeruder>
this is a unfortunate side-effect of ruby's overly easy-going parser
<cueball1967>
You would think I would know better w/ 10 years of experience of the language. I'm an idiot.
<aeruder>
i think what happens is the () isn't actually arguments, it is a parenthesized expression
<aeruder>
and the block was applying to it
<cueball1967>
Right, separate expressiom.
<aeruder>
well, i have a coworker (i write C for a day-job) who puts parens after his functions
<aeruder>
like printf ("");
<cueball1967>
s/expressiom/expression/
ixti has joined #ruby
<aeruder>
and we all give him a hard time about how non-idiomatic that is, but then after writing some ruby for a while, it is slowly fixing him, lol
<aeruder>
kind of made my day when it turns into syntax errors, lmao
<cueball1967>
LOL
<cueball1967>
Indeed
<cueball1967>
OK, now I feel bad for even bringing this up. Maybe I can make up for it by contributing my own responses. Will try to join tomorrow.
<Mon_Ouie>
I think the GNU C style is to have spaces before arguments
calmchaos has quit [Ping timeout: 255 seconds]
<cueball1967>
I haven't studied GNU's C style guide, never did that in my C days.
lifted has quit [Remote host closed the connection]
<aeruder>
cueball1967: i wouldn't feel bad, it took me a really long time to figure out the first time which is why i remembered it
_joes_ has joined #ruby
<cueball1967>
Which ended 20 years ago. LOL
shinnya has joined #ruby
<aeruder>
Mon_Ouie: so it does, good bullet point of why it is bad :-D
hahuang61 has joined #ruby
<aeruder>
i kid, i kid, but imo most of the GNU C style (with regards to paren placement and brace placement and tabs vs spaces) is pretty much the things we use in our style guide at work of things "not to do" lol
bkxd has joined #ruby
<aeruder>
who comes up with 8 spaces = tab, 4 space indent, braces get half-indented
shmuli has quit [Read error: Connection reset by peer]
<ruby_>
hi all: i've noticed that a lot of blogs recommend putting custom error classes in /lib, is there any drawback of putting them in an intializer?
jhack has quit [Quit: jhack]
shmuli has joined #ruby
<apeiros>
ruby_: are you talking about rails?
<ruby_>
who shoot sorry, wrong channel
jhack has joined #ruby
einarj has joined #ruby
Miron has quit [Ping timeout: 265 seconds]
beneggett has joined #ruby
shmuli has quit [Ping timeout: 244 seconds]
stamina has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
Vingador has quit [Remote host closed the connection]
dviola has joined #ruby
mikecmpbll has joined #ruby
spider-mario has joined #ruby
Moeh has joined #ruby
_joes_ has quit [Quit: _joes_]
dn` has left #ruby [#ruby]
rrawlins has quit []
jhack has quit [Quit: jhack]
jhack has joined #ruby
jhack has quit [Client Quit]
spudowiar has joined #ruby
moneylotion has quit [Quit: ZNC 1.6.3 - http://znc.in]
tyang has joined #ruby
einarj has quit [Remote host closed the connection]
moneylotion has joined #ruby
moparisthebest has quit [Ping timeout: 265 seconds]
tyang has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
tyang has joined #ruby
<chrisdav6>
Quick question, with the latest release of Ruby, is the map, min and max methods available without requiring the enumerable module?
<chrisdav6>
Time to quit guys, have a great night!
chrisdav6 has quit [Quit: Ex-Chat]
last_staff has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
blackgoat has joined #ruby
skweek has joined #ruby
replay has joined #ruby
vuoto has quit [Remote host closed the connection]
skweek has quit [Max SendQ exceeded]
skweek has joined #ruby
aidalgol has quit [Quit: Using Circe, the loveliest of all IRC clients]
skweek has quit [Max SendQ exceeded]
skweek has joined #ruby
Pumukel has joined #ruby
flying has joined #ruby
tdy has quit [Ping timeout: 250 seconds]
pawnbox_ has quit [Remote host closed the connection]
tyang has quit [Ping timeout: 250 seconds]
Rodya_ has joined #ruby
pawnbox has joined #ruby
skweek has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
Snowy has quit [Remote host closed the connection]
shmuli has joined #ruby
_djbkd has quit [Remote host closed the connection]
sneakers has joined #ruby
capitainIsh has joined #ruby
_djbkd has joined #ruby
last_staff has quit [Read error: Connection reset by peer]
ur5us has quit [Remote host closed the connection]
last_staff has joined #ruby
shmuli has quit [Ping timeout: 250 seconds]
haxrbyte has joined #ruby
TreyG has joined #ruby
haxrbyte has quit [Client Quit]
Jayson_Virissimo has joined #ruby
TreyG has left #ruby [#ruby]
<postmodern>
what is the defacto gem for file-based caches?
deadprez has quit [Remote host closed the connection]
anisha has quit [Quit: This computer has gone to sleep]
<xpt>
hey folks. I want to get sum of numbers range a to b. my attempt was a=1;b=3; puts (b>a)?(a..b).reduce(:+):(b..a).reduce(:+); but it's not working. How can I use trenary operator for this and/or why does my code is not working ?
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Snowy has joined #ruby
nando293921 has joined #ruby
colegatron_origi has joined #ruby
e4xit_ has joined #ruby
_djbkd has quit [Remote host closed the connection]
nankyokusei has joined #ruby
<Mon_Ouie>
what do you mean "it's not working"? your code prints 6, 1 + 2 + 3 = 6
e4xit has quit [Ping timeout: 265 seconds]
e4xit_ is now known as e4xit
e4xit has quit [Remote host closed the connection]
_djbkd has joined #ruby
<Mon_Ouie>
(Also if there's any chance of you running your code on larger ranges, just use n*(n+1)/2
mtkd has quit [Ping timeout: 250 seconds]
rodfersou is now known as rodfersou|afk
ramfjord_ has joined #ruby
mtkd has joined #ruby
futilegames has quit [Quit: futilegames]
claudiuinberlin has quit []
_djbkd has quit [Read error: Connection reset by peer]
djbkd_ has joined #ruby
<xpt>
oh,sorry, I was getting this error at some point: syntax error, unexpected ':', expecting end-of-input
<xpt>
but it's working now
ramfjord has quit [Ping timeout: 252 seconds]
djbkd_ has quit [Read error: Connection reset by peer]
nankyokusei has quit [Ping timeout: 265 seconds]
<xpt>
probably time for me to go to sleep :|
tfitts has quit [Quit: Connection closed for inactivity]
tdy has joined #ruby
_djbkd has joined #ruby
JeanCarloMachado has quit [Ping timeout: 276 seconds]
JeanCarl1Machado has quit [Ping timeout: 265 seconds]
DoubleMalt has quit [Ping timeout: 260 seconds]
pwnd_nsfw` has joined #ruby
jenrzzz has joined #ruby
gilfoyle has joined #ruby
pwnd_nsfw has quit [Ping timeout: 250 seconds]
bkxd has joined #ruby
<gilfoyle>
is it possible to sleep in an rspec test?
<gilfoyle>
I have a test that is running a bit too early and I need to ensure it only executes a few seconds later
hahuang61 has joined #ruby
<baweaver>
same way you'd sleep in plain old ruby
<baweaver>
though that's bad design if you need that
ur5us has joined #ruby
<baweaver>
it means that your test isn't running properly in isolation
<gilfoyle>
well, this is actually a serverspec system test
<baweaver>
Ah
<baweaver>
then yeah, just sleep(n) I think
<gilfoyle>
it starts an http server which on occasion takes several times longer
hahuang62 has quit [Ping timeout: 276 seconds]
<baweaver>
you might also consider `sleep until server_up?`
<baweaver>
or something to that tune
<gilfoyle>
so, would you say, create it's own describe block, or just throw the sleep in before?
<gilfoyle>
it's a good idea :)
<baweaver>
whatever needs the http server to be up, create a sleeper method for it like that above.
tenderlove has joined #ruby
<gilfoyle>
thanks!
<baweaver>
though you could always: def when_server_up; sleep until server_up?; yield end
<gilfoyle>
cool :)
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby
tenderlove has quit [Changing host]
tenderlove has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
ldnunes has quit [Quit: Leaving]
yardenbar has quit [Ping timeout: 255 seconds]
polysics has joined #ruby
tenderlove has quit [Ping timeout: 252 seconds]
sepp2k has quit [Quit: Leaving.]
polysics has quit [Ping timeout: 255 seconds]
tdy has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
ngscheurich has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
ngscheur1 has quit [Ping timeout: 255 seconds]
stamina has quit [Ping timeout: 265 seconds]
ramortegui has quit [Quit: Ex-Chat]
robnester has quit [Quit: I wonder what this button does...?]
<aeruder>
b3atr: farm it out to people working for nothing
<aeruder>
i think if you have a very defined font it is "easy" (although more complicated than will be solved in an irc channel), might be able to tweak some sort of ocr into doing it otherwise
flashpoint9 has quit [Remote host closed the connection]
Sashimi has joined #ruby
<b3atr>
i currently thinking about reading columns
robnester has joined #ruby
thomas has joined #ruby
r4z has joined #ruby
<r4z>
hello
<r4z>
can anyone check this pastebin and help me to figure out how to solve that error? http://pastebin.com/mTG5V8ng
solocshaw has quit [Remote host closed the connection]
<jazzonmym11nd>
pokalyis: --login & -c?
<jazzonmym11nd>
didnt try it, so no idea.
flashpoint9 has quit [Ping timeout: 250 seconds]
ngscheurich has quit [Ping timeout: 265 seconds]
spider-mario has quit [Remote host closed the connection]
nando293921 has quit [Ping timeout: 255 seconds]
nando294021 has joined #ruby
chouhoulis has quit [Ping timeout: 264 seconds]
<gilfoyle>
is it possible to define a describe ... block, that repeats for X amount of times until it succeeds and if it exceeds the X it declares the test failed?
deadprez has joined #ruby
blaxter has joined #ruby
deadprez has quit [Remote host closed the connection]
deadprez has joined #ruby
blaxter has quit [Client Quit]
sneakers has quit [Ping timeout: 255 seconds]
Rodya_ has joined #ruby
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
rcvalle has quit [Quit: rcvalle]
symm- has quit [Ping timeout: 255 seconds]
coolboy has quit [Ping timeout: 260 seconds]
<jazzonmym11nd>
gilfoyle: doesn't make sense to me
jenrzzz has quit [Ping timeout: 250 seconds]
tdy has quit [Ping timeout: 244 seconds]
nankyokusei has quit [Ping timeout: 250 seconds]
<gilfoyle>
jazzonmym11nd: yes, if you consider 'unit tests' alone, it does not make sense
<pokalyis>
gilfoyle Can't you just implement the algorithm you described?
marr has quit [Ping timeout: 244 seconds]
<gilfoyle>
but when you use rspec for system test, asynchronous processes (e.g a port listening, a program running) may take a while depending on external factors, eg. performance/load/startup slowness
<gilfoyle>
I guess I could, I'm just not ruby/rspec savyy enough to think of ways to go about it and hence I resorted to irc :)
Snowy has quit [Remote host closed the connection]