apeiros changed the topic of #ruby to: Ruby 2.2.1; 2.1.5; 2.0.0-p643: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
wldcordeiro has joined #ruby
ruind has quit [Quit: Ex-Chat]
dfinninger has quit [Ping timeout: 246 seconds]
akkad has quit [Excess Flood]
roolo has quit [Remote host closed the connection]
sivsushruth has quit [Read error: Connection reset by peer]
naftilos76 has joined #ruby
sivsushruth has joined #ruby
epochwolf has joined #ruby
akkad has joined #ruby
bigmac has quit [Read error: No route to host]
bigmac has joined #ruby
Rodya_ has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
withnale__ has joined #ruby
ZoanthusR has quit [Quit: Linkinus - http://linkinus.com]
sivsushruth has joined #ruby
gregf has quit [Quit: WeeChat 1.1.1]
odigity has quit [Ping timeout: 265 seconds]
<TheNet> that's the beauty of ruby!
tjbiddle has joined #ruby
fgo has joined #ruby
withnale__ has quit [Ping timeout: 264 seconds]
sivsushruth has quit [Read error: Connection reset by peer]
oki has quit [Ping timeout: 265 seconds]
Takle has quit [Remote host closed the connection]
axisys_ has joined #ruby
tjbiddle has joined #ruby
sivsushruth has joined #ruby
maknz has joined #ruby
axisys_ has quit [Client Quit]
naftilos76 has quit [Remote host closed the connection]
plashchynski has quit [Ping timeout: 256 seconds]
Rollabun_ has quit [Quit: Leaving...]
diegoviola has quit [Quit: WeeChat 1.1.1]
rbennacer has quit [Remote host closed the connection]
[gmi] has quit [Quit: Leaving]
sivsushruth has quit [Read error: Connection reset by peer]
odigity has joined #ruby
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
sivsushruth has joined #ruby
Soda has joined #ruby
gregf has joined #ruby
IrishGringo has joined #ruby
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
plashchynski has joined #ruby
tris has quit [Ping timeout: 265 seconds]
oo_ has joined #ruby
Megtastique has quit []
sivsushruth has quit [Read error: Connection reset by peer]
greenarrow has quit [Remote host closed the connection]
sivsushruth has joined #ruby
plashchynski has quit [Read error: Connection reset by peer]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
oo_ has quit [Ping timeout: 246 seconds]
theoretick has quit [Quit: Textual IRC Client: www.textualapp.com]
oo_ has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
Dolphi has quit [Ping timeout: 252 seconds]
sivsushruth has joined #ruby
bigmac has quit [Read error: No route to host]
bigmac has joined #ruby
iteratorP has joined #ruby
wldcordeiro has quit [Ping timeout: 240 seconds]
bigmac has quit [Read error: No route to host]
bigmac has joined #ruby
Rollabunna has joined #ruby
Hirzu has joined #ruby
Zai00 has quit [Quit: Zai00]
sevenseacat has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
michael_mbp has quit [Excess Flood]
sivsushruth has joined #ruby
odigity has quit [Ping timeout: 265 seconds]
Hirzu has quit [Ping timeout: 256 seconds]
karma42 has quit [Quit: Leaving]
michael_mbp has joined #ruby
yqt has quit [Ping timeout: 240 seconds]
ghostpl_ has joined #ruby
dfinninger has joined #ruby
zhan has joined #ruby
zachrab has joined #ruby
ptrrr has joined #ruby
zhan has quit [Client Quit]
kromm has quit [Quit: kromm]
Yzguy has joined #ruby
freerobby has joined #ruby
marr has quit []
bigmac has quit [Read error: No route to host]
riotjones has joined #ruby
dfinninger has quit [Ping timeout: 252 seconds]
bigmac has joined #ruby
teddyp1cker has joined #ruby
zachrab has quit [Ping timeout: 240 seconds]
<shevy> TheNet hmm have you been on #gobolinux in the past?
<TheNet> shevy: nope
<shevy> ok guess I mixed you up with someone else
ptrrr has quit [Ping timeout: 256 seconds]
Azure has quit [Ping timeout: 245 seconds]
riotjones has quit [Ping timeout: 252 seconds]
lordkryss has quit [Quit: Connection closed for inactivity]
odigity has joined #ruby
charliesome has joined #ruby
withnale__ has joined #ruby
bigmac has quit [Read error: No route to host]
teddyp1cker has quit [Ping timeout: 250 seconds]
iMadper has quit [Remote host closed the connection]
livingstn has quit [Ping timeout: 246 seconds]
bigmac has joined #ruby
<shevy> how can we count how many upcased characters a string has? Such as x = "FooBar"
mloveless has joined #ruby
oo_ has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 256 seconds]
withnale__ has quit [Ping timeout: 240 seconds]
bigmac has quit [Client Quit]
sankaber has quit [Ping timeout: 246 seconds]
<godd2> >> "FooBar".gsub(/[^A-Z]/, "").length
<eval-in_> godd2 => 2 (https://eval.in/297536)
<godd2> That's one way
wldcordeiro has joined #ruby
sankaber has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
<shevy> huh
<shevy> ah
<shevy> youg et rid of all but upcased characters?
Azure has joined #ruby
<shevy> *you get
<godd2> yea
<godd2> Here's another way by converting it to an array of chars
<shevy> that's cool enough
<godd2> >> "FooBar".chars.select {|c| c =~ /[A-Z]/}.count
<eval-in_> godd2 => 2 (https://eval.in/297537)
jonr22 has quit [Read error: Connection reset by peer]
<godd2> I know the second is O(n)
<godd2> I don't know the internals of regex in Ruby enough to know the O-time of the first
<bradland> "FooBar".scan(/[A-Z]/).size
<bradland> >> "FooBar".scan(/[A-Z]/).size
<eval-in_> bradland => 2 (https://eval.in/297538)
<bradland> additive instead of subtractive (is that a word?)
<godd2> bradland in color it is
<bradland> RGB vs CMYK!
Wolland has joined #ruby
<bradland> i love that the ruby-doc String#scan example contains the emoji for boobs
<godd2> I'd say my first solution is the least readable
sankaber has quit [Client Quit]
nii2361 has joined #ruby
<bradland> i like scan for counting the occurance of things, but i may be abusing it
gtrak has quit [Ping timeout: 252 seconds]
<bradland> s/things/strings/
<godd2> bradland I prefer the capital Y in the middle vs the )(
<shevy> lol emoji for boobs
rbennacer has joined #ruby
nii2361 is now known as nii236
<godd2> though I dunno what's goin on in this example: /(..)(..)/
<bradland> OMG four nipples! gross
nii236 is now known as Guest34465
<godd2> supernumary nipples usually show up below the normal ones
oo_ has joined #ruby
justinweiss has joined #ruby
<shevy> well you remember that three breasted alien in the movie "Total Recall"
<bradland> her black cousin got a role in AHS: Freak Show
pandaant has joined #ruby
Guest34465 is now known as nii236_temp
Feyn has joined #ruby
rbennacer has quit [Ping timeout: 245 seconds]
<havenwood> >> 'FooBar'.count 'A-Z'
<eval-in_> havenwood => 2 (https://eval.in/297542)
<bradland> stahp it
<havenwood> shevy: ^
dseitz has joined #ruby
<bradland> so count takes a kind of half-ass regex
<bradland> sry, String#count
<godd2> huh. didnt know you could pass a pattern to count
nii236_temp is now known as nii236
<bradland> pattern, but not regex
sivsushruth has quit [Read error: Connection reset by peer]
<shevy> havenwood whoa
<godd2> >> /[A-Z]/.to_s
<eval-in_> godd2 => "(?-mix:[A-Z])" (https://eval.in/297543)
<godd2> >> "FooBar".count "(?-mix:[A-Z])"
<eval-in_> godd2 => 3 (https://eval.in/297544)
<godd2> I'm trying to figure out why that's t3
sivsushruth has joined #ruby
ghostpl_ has quit [Ping timeout: 272 seconds]
<godd2> >> "FooBar".count "(?-mx:[A-Z])"
<eval-in_> godd2 => 3 (https://eval.in/297545)
<bradland> count v scan v gsub battle to the death! https://gist.github.com/bradland/5bfabe4fea408dd2cbd8
<shevy> wait
<shevy> what is the ?-mix thing
<godd2> shevy that's what I'm trying to figure out
Yzguy has quit [Quit: I'm sleeping, go away.]
<godd2> I think it's applying the different flags
<shevy> cool so .count is not only the shortest
<shevy> it is also the fastest
<shevy> bradland awesome, I did not know about x.compare!
<bradland> benchmark-ips gem
<bradland> not to be confused with stdlib benchmark
<shevy> godd2 I haven't before seen the ?-mix part yet
<godd2> neither have I, but it shows up without explanation in the Regex docs
hobodave has joined #ruby
hobodave has quit [Client Quit]
dstarh has joined #ruby
<bradland> ?-wtf
bogeyd6 has quit [Ping timeout: 250 seconds]
<godd2> >> "wtf".count "(?-wtf:wtf)"
<eval-in_> godd2 => 3 (https://eval.in/297546)
<shevy> lol godd2
<bradland> >> Regexp.union(/wtf/, /brah/i)
<eval-in_> bradland => /(?-mix:wtf)|(?i-mx:brah)/ (https://eval.in/297547)
_blizzy_ has quit [Quit: Leaving]
<bradland> >> Regexp.union(/wtf/, /brah/)
<eval-in_> bradland => /(?-mix:wtf)|(?-mix:brah)/ (https://eval.in/297548)
bogeyd6 has joined #ruby
<bradland> >> Regexp.union(/wtf/, /brah/mu)
<eval-in_> bradland => /(?-mix:wtf)|(?m-ix:brah)/ (https://eval.in/297549)
<godd2> ahhh so it puts the appropriate flags on the left side of the - ?
<bradland> it has something to do with regex flags
<bradland> err, kind of
blizzy has joined #ruby
<bradland> but not really... maybe
<shevy> I don't know what is going on here
<godd2> >> "Xx".count "(?i-mx:x)" #should be 2
<eval-in_> godd2 => 1 (https://eval.in/297550)
<shevy> lol
<godd2> k I give up
<bradland> in the second example, i didn't use any flags, and we get ?-mix
justin_pdx has quit [Quit: justin_pdx]
<bradland> >> /wtf/.to_s
<eval-in_> bradland => "(?-mix:wtf)" (https://eval.in/297551)
<bradland> dun dun daaaaaaah!
<shevy> so that denotes a simple regex
<godd2> yea but I'm getting inconsistent results
<bradland> Returns a string containing the regular expression and its options (using the (?opts:source) notation.
<godd2> lemme make a gist
<bradland> This string can be fed back in to Regexp::new to a regular expression with the same semantics as the original.
<bradland> so (?-opts:source)
<bradland> opts should be valid Regex options
mloveless has quit [Remote host closed the connection]
Sawbones has joined #ruby
<godd2> If only one of examples 3 and 4 are case insensitive, then why is it counting 2 in both?
Timba-as has quit [Quit: Be back later ...]
<havenwood> godd2: it's not regex
<havenwood> >> 'Xx'.count '?-m'
<eval-in_> havenwood => 1 (https://eval.in/297552)
Timba-as has joined #ruby
<havenwood> >> [*'?'..'m'].include? 'X'
<eval-in_> havenwood => true (https://eval.in/297553)
<godd2> That's fine, but why is it inconsistent?
<havenwood> what's the inconsistency?
sivsushruth has quit [Ping timeout: 240 seconds]
<bradland> you're feeding it what you think is a regex, but String#count doesn't take a regex
sivsushruth has joined #ruby
einarj has joined #ruby
<bradland> it has it's own funky pattern specification
<havenwood> godd2: an "X" is between "?" and "m"
<godd2> It changes against a source of lowercase x if I move the i, but it's 2 both times when the source is capital X
Timba-as has quit [Client Quit]
mloveless has joined #ruby
<bradland> godd2: String#count is *not* treating your input as a regexp
<godd2> I understand that it's not a regex, but it's also inconsistent against the source
<bradland> nope
<godd2> if moving the lowercase i changes the result for a source of lower case x, then why doesn't moving lowercase i change the result for a source of uppercase X
<havenwood> >> ('?'..'m').count
<eval-in_> havenwood => 47 (https://eval.in/297554)
<havenwood> godd2: ^ one of the 45 chars between ? and m is an X
<havenwood> >> ('i'..'m').count
<eval-in_> havenwood => 5 (https://eval.in/297555)
<havenwood> godd2: while it's not between i and m
ponga has quit [Read error: No route to host]
<bradland> godd2: have a look at ('?'..'m').to_a and ('i'..'m').to_a in an irb session
<godd2> So what you're saying is that the '?-mix' isn't some underlying code
<bradland> ok, two things
<havenwood> godd2: that means anything between ? and m or an i or an x
robustus has quit [Ping timeout: 264 seconds]
<bradland> >> Regexp.new "(?-mix:wtf)"
<eval-in_> bradland => /(?-mix:wtf)/ (https://eval.in/297556)
Sawbones has quit [Remote host closed the connection]
<bradland> "(?-mix:wtf)" is the string version of a Regexp
<bradland> however!
<godd2> >> [Regexp.new ("(?-mix:wtf)").source, /wtf/.source]
<eval-in_> godd2 => /tmp/execpad-f40eda39d951/source-f40eda39d951:2: syntax error, unexpected ( arg, expecting ']' ... (https://eval.in/297557)
ponga has joined #ruby
<godd2> >> [Regexp.new("(?-mix:wtf)").source, /wtf/.source]
<eval-in_> godd2 => ["(?-mix:wtf)", "wtf"] (https://eval.in/297558)
einarj has quit [Ping timeout: 264 seconds]
<bradland> String#count does not understand Regexp, so passing it "(?-mix:wtf)" means it is not interpreted as a Regex
martinbmadsen has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
<godd2> okay let me ask this. what does the m mean in ?-mix
<godd2> does it not mean multi-line?
Soda has quit [Remote host closed the connection]
<bradland> in the context of String#count, it means nothing
<bradland> dude
<bradland> stop
<bradland> just take a step back
<bradland> you're blocked up or something
Sawbones has joined #ruby
<bradland> String#count does NOT understand regexp
<godd2> does the i in mix mean nothing also?
Sawbones has quit [Remote host closed the connection]
<bradland> String#count does NOT understand regexp
<godd2> Im asking strictly in the context of String#count
<godd2> does m mean anything in the ?-mix
robustus has joined #ruby
<havenwood> godd2: chars are just themselves except for \, ^, and -.
odigity has quit [Ping timeout: 256 seconds]
<bradland> read the paragraph in the docs for String#count
<godd2> so it means the letter m
<bradland> i'm pasting it here
<bradland> Each other_str parameter defines a set of characters to count. The intersection of these sets defines the characters to count in str. Any other_str that starts with a caret ^ is negated. The sequence c1-c2 means all characters between c1 and c2. The backslash character \ can be used to escape ^ or - and is otherwise ignored unless it appears at the end of a sequence or the end of a other_str.
<havenwood> godd2: indeed
<bradland> so you can specify simple ranges, but the string (?-mix:wtf) is not treated as a regexp, and none of those are treated as flags
<bradland> they're all just characters, except for ?-m, which is treated as a range
<godd2> bradland you dont have to keep repeating yourself. I understand that it's not treated as regex
<godd2> however, it's treated as something
<shevy> :D
<bradland> just trying to help
<godd2> becuase moving the letter i should change the result if those are all literal characters
<bradland> you kept referring to them as flags
<godd2> shouldn't change*
<bradland> but they're not, because... not saying it :P
<shevy> isn't it documented?
<godd2> So let me ask this
<bradland> i literally pasted the doc paragraph here
<bradland> that explains this
<godd2> >> "Xx".count "(?-mix:x)"
<eval-in_> godd2 => 2 (https://eval.in/297559)
<godd2> >> "Xx".count "(?i-mx:x)"
<eval-in_> godd2 => 1 (https://eval.in/297560)
<godd2> if those are the literal chars, that should be the same nubmer
<bradland> no
<bradland> because, if you RTFM, you'd see that you can specify simple ranges
<bradland> ?-m is a range
<bradland> i-m is a range
<shevy> bradland but the docu sounds so japanese!
<godd2> ah
<ponga> どくどく
<godd2> okay that was the missing piece
<shevy> perhaps we can add bradland's explanation to the doc
* bradland faints
<godd2> thank you for your patience bradland
<bradland> lol
<bradland> np
<shevy> ponga I can not even decipher that
<sevenseacat> i can!
<ponga> docudocu(poisonious)
<godd2> bradland if it makes you feel better, I won't ever forget this exchange :P
<bradland> hahaha :)
adriancb has joined #ruby
<bradland> happens to me all the time
Sawbones has joined #ruby
<bradland> whenever anyone posts foreign language content, i like to perform a google image search
<bradland> always fun
<bradland> remarkably little NSFW content in that one ponga
<bradland> aaaaand it's time to head for the couch
<bradland> cya fellas
<godd2> okay so now the question is, why the hell does /[A-Z]/ not make "A-Z" ?
nii236 has quit [Ping timeout: 264 seconds]
dfinninger has joined #ruby
<ponga> bradland: trust me you search any keyword in japanese
<ponga> anything is NSFW
adriancb has quit [Ping timeout: 252 seconds]
zachrab has joined #ruby
dandaman has joined #ruby
coinrookie has quit [Quit: Leaving]
<shevy> but they got cute anime pics!
<shevy> erm, *manga
lys has quit [Read error: Connection reset by peer]
<ponga> shevy so you might be interested in my waifu project
Sawbones has quit [Remote host closed the connection]
dandaman has quit [Client Quit]
dfinninger has quit [Ping timeout: 252 seconds]
<shevy> I dunno! perhaps in code solutions. it's a bot right?
dandaman has joined #ruby
odigity has joined #ruby
<ponga> shevy: well its NLP code
zachrab has quit [Ping timeout: 264 seconds]
sn0wb1rd has quit [Ping timeout: 245 seconds]
dandaman has quit [Client Quit]
sivsushruth has quit [Read error: Connection reset by peer]
sankaber has joined #ruby
sankaber has quit [Client Quit]
hmsimha has joined #ruby
withnale__ has joined #ruby
dunpeal has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sn0wb1rd has joined #ruby
sivsushruth has joined #ruby
<dunpeal> Hi. What's the proper way to exit with an error code? I think there used to be a global #die, but it doesn't seem to exist on Ruby 2.
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
<godd2> dunpeal abort("abort message") will write the message to STDERR
Sawbones has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<dunpeal> godd2: OK, and how do I return a particular error code?
<godd2> um perhaps exit
<sonOfRa> with exit. But be careful, error codes can be system dependent.
Soda has joined #ruby
<godd2> dunpeal here's a great article on all that: http://www.sitepoint.com/exit-exit-abort-raise-get-me-outta-here/
dandaman has joined #ruby
SouL has quit [Ping timeout: 245 seconds]
Sirupsen has joined #ruby
withnale__ has quit [Ping timeout: 272 seconds]
tus has quit []
dandaman has quit [Client Quit]
<shevy> what an aptly given title
<godd2> Reminds me of the Starcraft Medivac "Somebody get me out of this mess!"
<dunpeal> godd2: thanks.
<dunpeal> I guess if I want to write to stderr then exit with an error code that's not 1, I'll have to do that manually.
kblake has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
lemur has quit [Remote host closed the connection]
<dunpeal> i.e. STDERR.puts, followed by exit CODE
phutchins has quit [Ping timeout: 252 seconds]
Sawbones has quit [Remote host closed the connection]
<havenwood> dunpeal: but #warn instead of STDERR.puts
lysw123 has joined #ruby
Sawbones has joined #ruby
mloveless has quit [Remote host closed the connection]
DerisiveLogic has joined #ruby
elfuego has quit [Quit: elfuego]
<dunpeal> havenwood: OK, thanks!
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
nii236 has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
rhg1351 has joined #ruby
rhg1351 has quit [Client Quit]
rhg1351 has joined #ruby
rhg1351 has quit [Client Quit]
rhg135 has quit [Quit: ZNC - http://znc.in - making IRC 20% cooler]
rhg135 has joined #ruby
rcs has joined #ruby
dandaman has joined #ruby
nii236 has quit [Ping timeout: 246 seconds]
sivsushruth has quit [Read error: Connection reset by peer]
dandaman has quit [Client Quit]
Spami has joined #ruby
sivsushruth has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
Sawbones has quit [Remote host closed the connection]
mistergibson has joined #ruby
mjuszczak has joined #ruby
SpikeMaster has joined #ruby
nii236 has joined #ruby
commmmodo has quit [Read error: Connection reset by peer]
SpikeMaster has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
dandaman has joined #ruby
blenny has quit [Quit: Bye]
bradleyprice has quit [Remote host closed the connection]
commmmodo has joined #ruby
chipotle has joined #ruby
rhg135 has quit [Quit: WeeChat 1.1.1]
amystephen has quit [Quit: amystephen]
smithascr has joined #ruby
rhg135 has joined #ruby
smithascr has left #ruby [#ruby]
sivsushruth has quit [Read error: Connection reset by peer]
dandaman has quit [Client Quit]
mjuszczak has quit []
echevemaster has quit [Quit: Leaving]
bradleyprice has joined #ruby
sivsushruth has joined #ruby
krz has joined #ruby
maletor has joined #ruby
emocakes has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
Parker0 has joined #ruby
maletor has quit [Ping timeout: 256 seconds]
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
Parker0 has quit [Client Quit]
sivsushruth has joined #ruby
dfinninger has joined #ruby
nii236 has quit [Ping timeout: 246 seconds]
nii236 has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
iwaffles has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
mjuszczak has joined #ruby
sivsushruth has joined #ruby
kblake has quit [Remote host closed the connection]
mjuszczak has quit [Client Quit]
dfinninger has quit [Ping timeout: 252 seconds]
teddyp1cker has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jonr22 has joined #ruby
jenrzzz has joined #ruby
Sembei has quit [Read error: Connection reset by peer]
Sembei has joined #ruby
teddyp1cker has quit [Ping timeout: 250 seconds]
withnale__ has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
mostlybadfly has quit [Quit: Connection closed for inactivity]
jonr22 has quit [Ping timeout: 272 seconds]
sivsushruth has joined #ruby
kblake has joined #ruby
withnale__ has quit [Ping timeout: 252 seconds]
shortdudey123 has quit [Remote host closed the connection]
ghostpl_ has joined #ruby
ismaelga has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
ismaelga has joined #ruby
martinbmadsen has joined #ruby
postmodern has joined #ruby
justin_pdx has joined #ruby
oo_ has joined #ruby
lysw123 has quit [Quit: Textual IRC Client: www.textualapp.com]
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
blizzy is now known as _blizzy_
dandaman has joined #ruby
shortdudey123 has joined #ruby
lemur has joined #ruby
jelera has joined #ruby
krz has quit [Ping timeout: 255 seconds]
sivsushruth has quit [Read error: Connection reset by peer]
sivsushruth has joined #ruby
<godd2> lol I have a ruby script thats been running for 24 hrs
<Nilium> That sure is a small number.
_blizzy_ is now known as hunter2
hunter2 is now known as _blizzy_
dunpeal has left #ruby [#ruby]
tjbiddle has quit [Quit: tjbiddle]
zenspider has quit [Ping timeout: 246 seconds]
tjbiddle has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kblake has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
oo_ has quit [Remote host closed the connection]
havenn has joined #ruby
voronika has quit [Quit: leaving]
zenspider has joined #ruby
havenwood has quit [Ping timeout: 246 seconds]
_5kg has quit [Ping timeout: 246 seconds]
ghostpl_ has quit [Ping timeout: 252 seconds]
sivsushruth has quit [Read error: Connection reset by peer]
sivsushruth has joined #ruby
vt102 has quit [Read error: Connection reset by peer]
DavidDudson has joined #ruby
oo_ has joined #ruby
boshhead has quit [Ping timeout: 272 seconds]
tkuchiki_ has joined #ruby
vdamewood has joined #ruby
maximski has joined #ruby
bruno- has joined #ruby
a5i has quit [Quit: Connection closed for inactivity]
oo_ has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 246 seconds]
<shevy> depends on what it does
<shevy> perhaps it calculates the world
<shevy> godd2 what is that script doing?
<shevy> I have recently written a small script that checks forum-activity on a remote site, to keep track and gain a dataset who are the most frequent visitors
<godd2> It's an NP-complete problem so I can't really do *that much* in the way of optimization
<godd2> but my answer is in the comments under the same username
djbkd has quit [Remote host closed the connection]
apxm has quit [Quit: Textual IRC Client: www.textualapp.com]
oo_ has joined #ruby
dfinninger has joined #ruby
djbkd has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
djbkd has quit [Remote host closed the connection]
greenbagels has quit [Quit: Leaving]
djbkd has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
omosoj has joined #ruby
<omosoj> would it be possible to write a program for my ubuntu box that monitors my mouse usage, and alerts me if i've been at the computer for x amount of time ('walk around for a few minutes')
braincrash has quit [Quit: bye bye]
<sevenseacat> yes, or just download one.
tjbiddle has quit [Quit: tjbiddle]
<omosoj> what would hte basic structure be? it'd be a background process that monitors the mouse movign process or something? would it be difficult to write?
dfinninger has quit [Ping timeout: 264 seconds]
skmp has joined #ruby
<omosoj> it sounds like an interesting project. i wanna try if it's not too difficult
<sevenseacat> no idea.
<sevenseacat> i'd just use a prebuilt pomodoro app.
nii236 has quit [Ping timeout: 256 seconds]
<omosoj> k ty
braincrash has joined #ruby
maximski has quit []
coderhs has joined #ruby
Rodya_ has quit [Quit: Leaving...]
<pontiki> more like you should build a sensor into your chair than measures the weight on it
<pontiki> for those times you fall asleep and don't move your mouse for an hour
withnale__ has joined #ruby
<omosoj> yeah mouse movement isn't a perfect way to do it... mouse and keyboard would be nearly perfect for how i use my comp
<shevy> pontiki those sensors lie!
coderhs has quit [Client Quit]
dandaman has quit [Quit: Leaving.]
<godd2> Don't talk to the sheep! It lies!
<omosoj> is this what i would use to do ^ -> https://github.com/ruby-gnome2/ruby-gnome2 ?
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
withnale__ has quit [Ping timeout: 240 seconds]
krz has joined #ruby
Volsus has quit [Ping timeout: 265 seconds]
redchicken has quit [Quit: Page closed]
<havenn> omosoj: linux, os x or other?
<omosoj> havenn, linux (ubuntu)
charliesome has quit [Quit: zzz]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Rollabunna has quit [Remote host closed the connection]
GGMethos has quit [Quit: WeeChat 1.0.1]
<havenn> omosoj: sudo apt-get install xprintidle -y
Channel6 has quit [Quit: Leaving]
<havenn> it prints idle time in milliseconds
<omosoj> i see. so keep checking, and if there hasn't been a long pause in the last hour, create an alert
<havenn> yeah, that should work
kp666 has joined #ruby
<omosoj> thanks you -- great idea
kp666 has quit [Max SendQ exceeded]
kyb3r_ has joined #ruby
<omosoj> any recommendations on how to approach the alerts?
kp666 has joined #ruby
kp666 has quit [Max SendQ exceeded]
<omosoj> there's adefault ubuntu box at the top right like in chrome. i guess i should look for a library that handles it
<omosoj> was looking at shoes.rb. looked cool
kp666 has joined #ruby
Jeff_D has joined #ruby
Hirzu has joined #ruby
dandaman has joined #ruby
wldcordeiro has quit [Ping timeout: 265 seconds]
freerobby has quit [Quit: Leaving.]
<Jeff_D> Does anybody have any links to tuts/resources on how to publish Gems for multiple Rubies? I've a couple of Gems that I need both for MRI and JRuby; how can I use the same name/version number for both?
Volsus has joined #ruby
sivsushruth has quit [Ping timeout: 255 seconds]
bluOxigen has joined #ruby
sivsushruth has joined #ruby
<havenn> omosoj: maybe even just: notify-send 'Go outside!' 'You've been at this a while...'
IrishGringo has quit [Ping timeout: 265 seconds]
<havenn> sudo apt-get install notify-osd -y
Hirzu has quit [Ping timeout: 264 seconds]
<havenn> notify-send -u critical 'Step away from the computer!' 'You haven't had a break in 12 hours...'
<omosoj> havenn, cool. didn't know there were so many existing tools. also found zenity
blueOxigen has joined #ruby
_5kg has joined #ruby
commmmodo has quit [Quit: commmmodo]
<havenn> ah, does that give a nice dialog box?
<omosoj> a small window with an 'ok' button. dunno exactly what a dialog box is
maknz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<omosoj> i like notify-send better though
<havenn> just that
<havenn> nice
sivsushruth has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 244 seconds]
_5kg has quit [Ping timeout: 244 seconds]
sivsushruth has joined #ruby
ptrrr has joined #ruby
<havenn> Jeff_D: You might want to also ask in #jruby.
dandaman has quit [Quit: Leaving.]
<Jeff_D> @havenm Thanks
blahwoop has joined #ruby
omosoj has quit [Quit: leaving]
jenrzzz has quit [Ping timeout: 256 seconds]
sivsushruth has quit [Read error: Connection reset by peer]
ptrrr has quit [Ping timeout: 246 seconds]
rcs has quit [Quit: ZNC - http://znc.in]
sivsushruth has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Synthead has quit [Ping timeout: 244 seconds]
sivsushruth has quit [Read error: Connection reset by peer]
sivsushruth has joined #ruby
ismaelga has quit [Ping timeout: 255 seconds]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rcs has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
sivsushruth has joined #ruby
<shevy> hmm
_5kg has joined #ruby
<shevy> is require 'rbconfig' still needed?
cmckee has joined #ruby
tkuchiki has joined #ruby
oo__ has joined #ruby
tkuchiki_ has quit [Ping timeout: 245 seconds]
jonr22 has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
Bhavya has joined #ruby
blahwoop has quit [Remote host closed the connection]
sivsushruth has quit [Read error: Connection reset by peer]
_5kg has quit [Ping timeout: 245 seconds]
jonr22 has quit [Ping timeout: 240 seconds]
sivsushruth has joined #ruby
dfinninger has joined #ruby
Synthead has joined #ruby
<havenn> shevy: only if you disable RubyGems
<shevy> cool
<shevy> I am trying to port some ancient code written by someone else
<havenn> shevy: Since RubyGems requires RbConfig and Thread you practically don't need to.
<shevy> there is even a require 'ftools' there and I don't know what this is doing
<shevy> ok havenn thanks
<havenn> shevy: But this'll be true for example: ruby --disable-gems -e "p require 'rbconfig'"
<havenn> or: ruby --disable-gems -e "p require 'thread'"
teddyp1cker has joined #ruby
dfinninger has quit [Ping timeout: 252 seconds]
teddyp1cker has quit [Ping timeout: 246 seconds]
sivsushruth has quit [Read error: Connection reset by peer]
dandaman has joined #ruby
krz has quit [Ping timeout: 245 seconds]
withnale__ has joined #ruby
sivsushruth has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
sivsushruth has joined #ruby
billy_ran_away has quit [Ping timeout: 244 seconds]
withnale__ has quit [Ping timeout: 245 seconds]
jelera has quit [Ping timeout: 246 seconds]
<shevy> is transami ("Thomas Sawyer", https://rubygems.org/profiles/transami) using IRC, anyone happens to know?
mikecmpbll has quit [Quit: ciao.]
<sevenseacat> dunno, but theres an email address right there.
phutchins has joined #ruby
Soda has joined #ruby
Xiti has quit [Quit: Xiti]
sivsushruth has quit [Read error: Connection reset by peer]
Mives has quit [Remote host closed the connection]
ebbflowgo has quit [Quit: ebbflowgo]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
nii236 has joined #ruby
sivsushruth has joined #ruby
Bhavya has quit [Ping timeout: 245 seconds]
phutchins has quit [Ping timeout: 265 seconds]
nii236 has quit [Ping timeout: 272 seconds]
DavidDudson has joined #ruby
Jeff_D has quit [Quit: JMP $]
Joufflu has joined #ruby
rippa has joined #ruby
Xiti has joined #ruby
teddyp1cker has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
Soda has quit [Remote host closed the connection]
sivsushruth has joined #ruby
Hirzu has joined #ruby
rbennacer has joined #ruby
dandaman has quit [Quit: Leaving.]
evanjs has joined #ruby
ghostpl_ has joined #ruby
evanjs has quit [Remote host closed the connection]
claptor has quit [Quit: this channel is bakas]
adriancb has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
rbennacer has quit [Ping timeout: 256 seconds]
sumark has quit [Remote host closed the connection]
dandaman has joined #ruby
sumark has joined #ruby
sivsushruth has joined #ruby
hirogen has quit [Ping timeout: 246 seconds]
teddyp1cker has quit [Remote host closed the connection]
adriancb has quit [Ping timeout: 265 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
Synthead has quit [Ping timeout: 244 seconds]
_5kg has joined #ruby
digitalextremist has joined #ruby
lyuben_ has quit [Quit: This computer has gone to sleep]
oo__ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
_5kg has quit [Ping timeout: 245 seconds]
_5kg has joined #ruby
mkaesz has joined #ruby
mkaesz has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
frog|OFF is now known as green-big-frog
oo_ has joined #ruby
michael_mbp has joined #ruby
billy_ran_away has joined #ruby
sigurding has joined #ruby
wldcordeiro has joined #ruby
Synthead has joined #ruby
_5kg has quit [Ping timeout: 240 seconds]
_5kg has joined #ruby
teddyp1cker has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
roqo has quit [Ping timeout: 245 seconds]
sivsushruth has joined #ruby
oo_ has quit [Ping timeout: 264 seconds]
dfinninger has joined #ruby
billy_ran_away has quit [Ping timeout: 265 seconds]
green-big-frog is now known as frog|OFF
ypasmk has joined #ruby
_5kg has quit [Ping timeout: 265 seconds]
ghostpl_ has quit [Ping timeout: 252 seconds]
dfinninger has quit [Ping timeout: 244 seconds]
_cake has joined #ruby
multi_io_ has joined #ruby
sei18 has joined #ruby
krz has joined #ruby
oo_ has joined #ruby
multi_io has quit [Ping timeout: 240 seconds]
pork_clips has quit [Ping timeout: 255 seconds]
sei18 has quit [Quit: Leaving]
_5kg has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
Morkel has joined #ruby
withnale__ has joined #ruby
sivsushruth has joined #ruby
_5kg has quit [Ping timeout: 255 seconds]
withnale__ has quit [Ping timeout: 246 seconds]
<agent_white> evenin
sivsushruth has quit [Read error: Connection reset by peer]
p3ery has quit [Quit: (null)]
sivsushruth has joined #ruby
Mon_Ouie has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
sivsushruth has joined #ruby
skmp has quit [Quit: Connection closed for inactivity]
Lingo has joined #ruby
<Lingo> in a post function in a sinatra app of mine
<Lingo> would the following be the correct way to tget a paramater from a request?
<Lingo> to = params[:To]
<atmosx> Lingo: might work, if not try = params['To']
AlexRussia has joined #ruby
_5kg has joined #ruby
<Lingo> atmosx: would it be params['body']['myParam'] or simply params['myParam']
charliesome has joined #ruby
<sevenseacat> inspect params and see whats in it
dopiee has quit [Quit: Leaving]
dopie has joined #ruby
<atmosx> Lingo: depends on the post, but generally speaking what sevenseacat applies.
oo_ has quit [Remote host closed the connection]
<shevy> >> module Foo;class Bar;end;def self.new;Bar.new;end;end;Foo.new
<eval-in_> shevy => #<Foo::Bar:0x41293e5c> (https://eval.in/297603)
<atmosx> morning shevy
dopie has quit [Remote host closed the connection]
keen__________83 has joined #ruby
<shevy> hehe
<shevy> I have to leave soon
dopie has joined #ruby
<shevy> but I have a class I want to rewrite
<shevy> because it bothers me that I can not include it
<shevy> because it's a class right now and not a module!
keen__________82 has quit [Ping timeout: 250 seconds]
<shevy> soo I was thinking
<shevy> what if a module has #new
Lingo has quit [Quit: (null)]
<shevy> and I'd just delegate to the real class
<shevy> so I could do both: Foo.new but also include Foo
TheNet has quit [Quit: Leaving...]
peterhu has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
vdamewood has quit [Quit: Computer has gone to sleep.]
sigurding has quit [Quit: sigurding]
billy_ran_away has joined #ruby
sigurding has joined #ruby
_5kg has quit [Ping timeout: 246 seconds]
hvxgr has quit [Ping timeout: 256 seconds]
jonr22 has joined #ruby
tagrudev has joined #ruby
Lingo has joined #ruby
<Lingo> hi, i just need help seperating the first word of a string fromt he rest of the string
<Lingo> for example, i need a solid way to make "2312323 is my number" into two strings, "2323232" and "is my number"
<Lingo> only way I know how is looping until first space, but I feel ruby has a better solution in store
sivsushruth has quit [Read error: Connection reset by peer]
apeiros__ has joined #ruby
apeiros_ has quit [Read error: Connection reset by peer]
sivsushruth has joined #ruby
last_staff has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
nii236 has joined #ruby
<atmosx> Lingo: a solid way, would be to write a method.
lyuben_ has joined #ruby
<atmosx> Lingo: the method wuld accept any text an as argument and split, it, get the first argument check if it's really a number or not and then return a result.
<certainty> moin ruby adorers
<atmosx> Lingo: I can think of ways to do it in one line, but nothing 'solid'. You could create something solid (but unreadable to me) using regexp if you really want too though.
<atmosx> certainty: hello.
<atmosx> s/too/to
krz has quit [Quit: WeeChat 1.0.1]
_5kg has joined #ruby
lemur has quit [Remote host closed the connection]
Rollabunna has joined #ruby
codecop has joined #ruby
User458764 has joined #ruby
apeiros__ has quit [Remote host closed the connection]
<flughafen> morning certainty
tobago has joined #ruby
nicolastarzia has quit [Read error: Connection reset by peer]
nicolastarzia has joined #ruby
oo_ has joined #ruby
dfinninger has joined #ruby
ghostpl_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
dfinninger has quit [Ping timeout: 250 seconds]
Beoran_ has quit [Ping timeout: 272 seconds]
anarang has joined #ruby
kalusn has joined #ruby
roolo has joined #ruby
mloveless has joined #ruby
meschi has quit [Ping timeout: 252 seconds]
ypasmk has quit [Quit: ypasmk]
withnale__ has joined #ruby
hanmac1 has joined #ruby
hvxgr has joined #ruby
<certainty> flughafen: o/
sinkensabe has joined #ruby
<flughafen> certainty: i made 2 ruby commits this weekend, awww yeah
<certainty> flughafen: you mean in ruby core?
<sevenseacat> nice
<flughafen> oh no
<flughafen> i just mean in ruby
<sevenseacat> not so nice
<certainty> ah ok. still nice :)
<certainty> sevenseacat: ;p
<flughafen> yeah, i know. i'm a total loser!
<sevenseacat> didnt say that
<flughafen> i did
bal has joined #ruby
<certainty> well i did no commit this weekend so you clearly win
* flughafen is the champion!
mloveless has quit [Ping timeout: 246 seconds]
<sevenseacat> you is winner
<certainty> i've been out relaxing in the sun :)
<flughafen> i spent some time in the sun too
withnale__ has quit [Ping timeout: 240 seconds]
Lingo has quit [Quit: (null)]
pretodor has joined #ruby
<flughafen> 14 degrees!
<sevenseacat> i spent saturday teaching ruby and rails, and then sunday sleeping and recovering
aswen has joined #ruby
claw has quit [Ping timeout: 255 seconds]
<certainty> flughafen: i can beat that. we had 16. At least that's what my car said
<flughafen> sevenseacat: where do you teach?
<flughafen> well you're the sun champion then
<sevenseacat> i was mentoring at a rails girls meetup
lxsameer has joined #ruby
<sevenseacat> explaining all of teh thingz
michael_mbp has quit [Excess Flood]
mloveless has joined #ruby
<flughafen> that's a little weird for a sailing cat to be teaching programming
Beoran_ has joined #ruby
<sevenseacat> i'm a weird kind of per... i mean cat.
krz has joined #ruby
fabrice31 has joined #ruby
<flughafen> sevenseacat: what time zone are you in?
<sevenseacat> UTC+8. western australia.
bluOxigen has joined #ruby
michael_mbp has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
<flughafen> awesome
blueOxigen has quit [Ping timeout: 265 seconds]
mloveless has quit [Client Quit]
<sevenseacat> is a balmy 32 degrees here right now, at 3.25pm on a monday afternoon
<flughafen> certainty: go out to your car and tell us how hot it is now
michael_mbp has quit [Excess Flood]
sivsushruth has joined #ruby
<flughafen> sevenseacat: did certainty tell you we're neighbors?
<sevenseacat> i knew you were in the same part of the world
<certainty> flughafen: it told me 4 degrees 30 minutes ago
apxm has joined #ruby
<flughafen> neighbors seperated by 4 hours of autobahn
<sevenseacat> nice
<flughafen> certainty: check again, you're making us look bad in front of sevenseacat
<certainty> well she's from australia. we can not beat that
wicope has joined #ruby
<sevenseacat> the standing joke in western australia is that if you drive four hours out of perth, then you're just four hours away and have to turn around and drive back.
<agent_white> And from the future. It's 1:27am here.
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<certainty> agent_white: haha
michael_mbp has joined #ruby
<flughafen> 4 hours and 53 minutes
spicerack has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
DerisiveLogic has quit [Ping timeout: 256 seconds]
<certainty> time for ruby5
agent_white has quit [Read error: Connection reset by peer]
sivsushruth has joined #ruby
spicerack has quit [Changing host]
spicerack has joined #ruby
vdamewood has joined #ruby
<certainty> regex DSL again
<certainty> i don't see the point
riotjones has joined #ruby
psyprus has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
agent_white has quit [Changing host]
agent_white has joined #ruby
xrlabs has quit [Ping timeout: 255 seconds]
sivsushruth has quit [Read error: Connection reset by peer]
<flughafen> sevenseacat: are you at work?
<sevenseacat> yep
<flughafen> me too, what a coincidence
sivsushruth has joined #ruby
<agent_white> A coincidence would be if we all had belly buttons.
<flughafen> agent_white: are you a wizard?
riotjones has quit [Ping timeout: 272 seconds]
<certainty> yepp. he once was agent_grey, but well you know what happens. now he's
xcombelle has joined #ruby
* agent_white strokes his beard-of-divination
<agent_white> certainty: Goddamn balrogs...
<certainty> :)
rhg135 is now known as rhgzzz
<flughafen> i named my new dog melkor
Bounga has joined #ruby
psyprus has joined #ruby
ghostpl_ has quit [Ping timeout: 265 seconds]
pretodor has quit [Quit: Ex-Chat]
xsdg has quit [Ping timeout: 246 seconds]
Volsus has quit [Quit: Leaving]
hfp has quit [Ping timeout: 244 seconds]
claw has joined #ruby
dandaman has quit [Quit: Leaving.]
<flughafen> ahhhhhhhhhhhhh....
hfp_work has quit [Ping timeout: 246 seconds]
Takle has joined #ruby
dumdedum has joined #ruby
<certainty> hmm?
xsdg has joined #ruby
ixti has quit [Ping timeout: 272 seconds]
michael_mbp has quit [Excess Flood]
teddyp1cker has joined #ruby
ta has quit [Remote host closed the connection]
michael_mbp has joined #ruby
<flughafen> i was reading a file and trying to do a line comparison to another string, with == but it failed, but worked with include? which didn't make any sense. i printed each string and they were equal.
kalusn has quit [Remote host closed the connection]
<flughafen> but i ended up having to do a chomp later, because of new lines, and now i realized that \n makes the strings different so, they wouldn't ==
<flughafen> but I am curious as to why an array of strings doesn't print out like ["foo", "bar", "baz"]
aganov has joined #ruby
dumdedum has quit [Ping timeout: 256 seconds]
agent_white has quit [Read error: Connection reset by peer]
<mozzarella> it prints every item in the list
agent_white has joined #ruby
andikr has joined #ruby
oki has joined #ruby
leat has quit [Remote host closed the connection]
hfp has joined #ruby
hfp_work has joined #ruby
hfp__work has joined #ruby
hfp_ has joined #ruby
<certainty> flughafen: try puts ary.inspect
krz has quit [Quit: WeeChat 1.0.1]
User458764 has joined #ruby
jenrzzz has joined #ruby
kalusn has joined #ruby
terlar has joined #ruby
hfp has quit [Ping timeout: 246 seconds]
hfp_ is now known as hfp
hfp_work has quit [Ping timeout: 245 seconds]
hfp__work is now known as hfp_work
<flughafen> certainty: i'll try that in the future. it wasn't a big deal, just unexpected. i was just debugging
<flughafen> but it works as i want now
User458764 has quit [Client Quit]
kalusn has quit [Remote host closed the connection]
dfinninger has joined #ruby
leat has joined #ruby
strixd has joined #ruby
cmckee has quit [Quit: cmckee]
mkaesz has joined #ruby
dumdedum has joined #ruby
dfinninger has quit [Ping timeout: 256 seconds]
yeticry has quit [Ping timeout: 272 seconds]
Joufflu has quit [Quit: Peace]
terlar has quit [Quit: WeeChat 1.1.1]
yeticry has joined #ruby
ta has joined #ruby
withnale__ has joined #ruby
DavidDudson has joined #ruby
User458764 has joined #ruby
norc has joined #ruby
havenn has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
withnale__ has quit [Ping timeout: 256 seconds]
fabrice31 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cHarNe2 has quit [Quit: leaving]
nii236 has quit [Ping timeout: 256 seconds]
<norc> Hi, I have a somewhat circular dependency in my require system. Is it okay to specify a module first, then require stuff that inserts classes into that module?
Timba-as has joined #ruby
<norc> Or should I find a way to truly always require first, then declare/define the modules?
Bounga_ has joined #ruby
Takle has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
ItSANgo has joined #ruby
nii236 has joined #ruby
Bounga_ has quit [Client Quit]
SebastianThorn has joined #ruby
_Andres has joined #ruby
amundj has joined #ruby
claw has quit [Ping timeout: 240 seconds]
mkaesz has quit [Remote host closed the connection]
exadeci has joined #ruby
Bounga_ has joined #ruby
terlar has joined #ruby
fabrice31_ has joined #ruby
antgel has joined #ruby
postmodern has quit [Quit: Leaving]
enterprisedc has quit [Ping timeout: 245 seconds]
elaptics is now known as elaptics_away
wldcordeiro has quit [Ping timeout: 265 seconds]
roshanavand has joined #ruby
User458764 has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
<norc> This in essence is what I have.
jonr22 has joined #ruby
ghostpl_ has joined #ruby
bim has joined #ruby
OrbitalKitten has joined #ruby
terlar has quit [Read error: Connection reset by peer]
maasha has joined #ruby
sivsushruth has quit [Ping timeout: 245 seconds]
sivsushruth has joined #ruby
bim has quit [Remote host closed the connection]
bim has joined #ruby
majoh has joined #ruby
imanzarrabian has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
<maasha> Hi, I am still trying to figure out how to skip a unit test. In Ruby < 2.2 there is a skip method, in Ruby 2.2 there is a omit. I dont want to make any assumptions on Ruby version. How to generically skip?
jonr22 has quit [Ping timeout: 256 seconds]
Synthead has quit [Read error: Connection reset by peer]
kalusn has joined #ruby
mkaesz has joined #ruby
einarj has joined #ruby
claw has joined #ruby
<norc> Fine, Ill just forward declare all my nested modules.
psyprus has quit [Ping timeout: 245 seconds]
bim has quit [Ping timeout: 252 seconds]
Wolland has quit []
claw has quit [Ping timeout: 256 seconds]
DaniG2k has joined #ruby
xcombelle has quit [Quit: Quitte]
krz has joined #ruby
nii236 has quit [Ping timeout: 246 seconds]
Soda has joined #ruby
nii236 has joined #ruby
bruno- has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
sinkensabe has quit [Remote host closed the connection]
claw has joined #ruby
Guest72895 has joined #ruby
sinkensabe has joined #ruby
bruno- has quit [Ping timeout: 245 seconds]
wicope has quit [Ping timeout: 244 seconds]
martinbmadsen has quit [Ping timeout: 264 seconds]
timmow has quit [Ping timeout: 245 seconds]
timmow has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ta has joined #ruby
marr has joined #ruby
PaulCapestany has quit [Read error: Connection reset by peer]
wicope has joined #ruby
relix has joined #ruby
PaulCapestany has joined #ruby
nii236 has quit [Ping timeout: 244 seconds]
KC9YDN has quit [Ping timeout: 245 seconds]
rdark has joined #ruby
slash_ni1k has joined #ruby
yosafbridge has quit [*.net *.split]
slash_nick has quit [*.net *.split]
Roa has quit [*.net *.split]
terlar has joined #ruby
chthon has joined #ruby
yosafbridge has joined #ruby
hfp has quit [Ping timeout: 240 seconds]
hfp_work has quit [Ping timeout: 255 seconds]
riotjones has joined #ruby
sevenseacat has quit [Remote host closed the connection]
godd2__ has joined #ruby
godd2 has quit [Disconnected by services]
Hirzu_ has joined #ruby
godd2__ is now known as godd2
dfinninger has joined #ruby
KC9YDN has joined #ruby
Roa has joined #ruby
hfp_work has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
psyprus has joined #ruby
hfp has joined #ruby
KC9YDN has quit [Changing host]
KC9YDN has joined #ruby
bim has joined #ruby
CustosLimen has joined #ruby
Hirzu has quit [Ping timeout: 256 seconds]
ghostpl_ has quit [Ping timeout: 256 seconds]
riotjones has quit [Ping timeout: 255 seconds]
joonty has joined #ruby
DavidDudson has joined #ruby
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
dfinninger has quit [Ping timeout: 272 seconds]
DavidDudson has quit [Client Quit]
DEA7TH has joined #ruby
sivsushruth has quit [Ping timeout: 245 seconds]
sivsushruth has joined #ruby
ByronJoh1son has joined #ruby
DavidDudson has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
ByronJohnson has quit [Disconnected by services]
ByronJoh1son is now known as ByronJohnson
alcy has joined #ruby
Vile` has quit [Ping timeout: 256 seconds]
buub has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
lordkryss has joined #ruby
alex88 has joined #ruby
Vile` has joined #ruby
roshanavand1 has joined #ruby
elaptics_away is now known as elaptics
sivsushruth has quit [Ping timeout: 264 seconds]
sivsushruth has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
Flcn has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
danjordan has joined #ruby
zeel has joined #ruby
Spami has joined #ruby
DavidDudson has joined #ruby
lkba has quit [Read error: Connection reset by peer]
bim has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 1.0.1]
sigurding has quit [Quit: sigurding]
DavidDudson has quit [Client Quit]
sigurding has joined #ruby
claw has quit [Ping timeout: 256 seconds]
nfk has joined #ruby
lynxman has quit [Quit: leaving]
lynxman has joined #ruby
DavidDudson has joined #ruby
grr_ has joined #ruby
DavidDudson has quit [Client Quit]
lynxman has quit [Quit: leaving]
withnale__ has joined #ruby
naftilos76 has joined #ruby
multi_io_ is now known as multi_io
sivsushruth has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
sivsushruth has joined #ruby
ki0 has joined #ruby
commmmodo has joined #ruby
shredding has joined #ruby
ypasmk has joined #ruby
bim has joined #ruby
Zai00 has joined #ruby
leat1 has joined #ruby
leat has quit [Read error: Connection reset by peer]
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
yh has joined #ruby
<yh> "hi".tap { |str| str[0].upcase! } # why does this not return "Hi" ?
DavidDudson has joined #ruby
commmmodo has quit [Quit: commmmodo]
mkaesz has quit [Ping timeout: 246 seconds]
<zipkid> yh: "Object#tap always returns the original object passed into it after executing the block, even if the block returns something different."
mkaesz has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
leat1 has quit [Remote host closed the connection]
<canton7> yh, because 'hi'[0] returns the string 'h'. upcase! then mutates that string containing just 'h', but doesn't affect the original 'hi' string
Rollabunna has quit [Remote host closed the connection]
<yh> zipkid: thanks - I didn't realise that [] returned a different object!
<canton7> compare with e.g. "hi".tap{ |s| s.upcase! }
<yh> (Well, obviously it does :)
<godd2> yh tap is used to "peek inbetween" messages
leat1 has joined #ruby
<yh> I was hoping to change the first character of that string object in-situ
Rollabunna has joined #ruby
claw has joined #ruby
<yh> def my_method; s = "hi"; s[0].upcase!; s; end; my_method # would work, but would like to reduce it
<canton7> 'hi'.tap{ |s| s[0] = s[0].upcase }
<yh> (I know there's capitalize, but that affects subsequent letters)
<zipkid> ?
<zipkid> upcase does, .capitalize only upcases the first....
<yh> zipkid: and uncapitalizes subsequent
<zipkid> hmm, that way.... right....
<godd2> >> ["hello", "world"].tap {|e| e[0].upcase! } # this will return the modified array since arrays are mutable with [index]
<eval-in_> godd2 => ["HELLO", "world"] (https://eval.in/297645)
<godd2> but if you ask for a particular element of a string and change it, it doesnt change the original string
martinbmadsen has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
senayar has joined #ruby
elfuego has joined #ruby
<zipkid> >> "hi".split('').tap {|e| e[0].upcase! }.join
<eval-in_> zipkid => "Hi" (https://eval.in/297646)
<zipkid> :-)
<godd2> >> a = "hi"; a.split('').tap {|e| e[0].upcase! }.join; a
<eval-in_> godd2 => "hi" (https://eval.in/297647)
naftilos76 has quit [Remote host closed the connection]
ghr has joined #ruby
sinkensabe has joined #ruby
<godd2> I guess I can't say "strings are just arrays of characters" anymore
nicolastarzia has quit [Remote host closed the connection]
<hanmac1> godd2:
<hanmac1> >> "hi".gsub!(/\A\w/,&:upcase)
<eval-in_> hanmac1 => "Hi" (https://eval.in/297648)
<hanmac1> >> a = "abc"; a["b"]="d"; a
<eval-in_> hanmac1 => "adc" (https://eval.in/297649)
claw has quit [Ping timeout: 255 seconds]
leafybasil has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
<godd2> >> a = "abc"; a[/./]="d"; a
<eval-in_> godd2 => "dbc" (https://eval.in/297650)
terlar has quit [Quit: WeeChat 1.1.1]
<godd2> hehe that's fun
<hanmac1> godd2: did you know that it does work for symbols too? ;P
BTRE has quit [Quit: Leaving]
<godd2> that's interesting
<hanmac1> >> :abc["b"]
<eval-in_> hanmac1 => "b" (https://eval.in/297651)
<godd2> looks weird, but interesting
<godd2> more compact than .chars.find
jeromelanteri has joined #ruby
sivsushruth has quit [Ping timeout: 252 seconds]
ghostpl_ has joined #ruby
rdema has joined #ruby
sivsushruth has joined #ruby
jmignault has joined #ruby
dfinninger has joined #ruby
jmignault has quit [Client Quit]
aspiers has joined #ruby
workmad3 has joined #ruby
dfinninger has quit [Ping timeout: 245 seconds]
ghostpl_ has quit [Ping timeout: 246 seconds]
<yh> It does disappoint me a little bit that you can't do "string".first
<gregf_> >> "string"[0]
<eval-in_> gregf_ => "s" (https://eval.in/297652)
<yh> [0] is uglier than first !
<gregf_> you can do a lot in ruby. Python takes you round in circles
timmow has quit [Ping timeout: 272 seconds]
timmow has joined #ruby
<gregf_> >>class String; def first;return self[0];end;end; "string".first
<eval-in_> gregf_ => "s" (https://eval.in/297653)
aspiers has quit [Ping timeout: 244 seconds]
<gregf_> o_O
<workmad3> yh: doing str.first started making less sense when encodings were introduced properly in 1.9, as it's very unclear whether you mean the first character or the first byte... "".chars.first and "".bytes.first are all fine thigh
<workmad3> *though
dANO__ has joined #ruby
<yh> String supported it before 1.9. To do with Unicode etc.
yh has quit [Quit: leaving]
yh has joined #ruby
<workmad3> yh: yeah, that's what I said :P
<yh> I had connectivity issues, might have missed something there :)
<workmad3> yh: strings stopped being directly enumerable in 1.9 when encodings were added
<workmad3> yh: "".chars or "".bytes are the way to get enumerators over the bit of the string you care about ;)
<yh> strings should enumerate over characters
<yh> that doesn't seem to be disputable - losing enumerability seems a loss
<workmad3> yh: in 1.8 they enumerated over bytes though
<yh> why was it chosen to lose functionality instead of make the existing functionality sane?
bim has quit [Remote host closed the connection]
dANO__ has quit [Remote host closed the connection]
<workmad3> yh: no idea... I guess it's something to do with strings also being the closest thing to a byte buffer in ruby
claw has joined #ruby
bim has joined #ruby
DEA7TH has quit [Ping timeout: 240 seconds]
<workmad3> yh: it could also have been so that 1.8 code that was going to be obviously wrong in assumptions would quickly just break rather than introduce much more subtle bugs into a lot of libraries
<hanmac1> are you sure that 1.8 was over bytes instead of lines?
<workmad3> hanmac1: err... no? A)
<workmad3> *:)
<hanmac1> hm, its not that i care, 1.8 is dead for me
<workmad3> hanmac1: same... but now you've got me curious :P
<hanmac1> 18>> "abc\ndef".to_a
<eval-in_> hanmac1 => ["abc\n", "def"] (https://eval.in/297655)
ArchRogem has joined #ruby
jonr22 has joined #ruby
senayar has quit [Remote host closed the connection]
<workmad3> hanmac1: ok... so it was even weirder than I thought :)
zcreative has joined #ruby
<workmad3> 18>> "abc".each{|s| puts s}
<eval-in_> workmad3 => abc ... (https://eval.in/297656)
<workmad3> >> "abc".each{|s| puts s}
<eval-in_> workmad3 => undefined method `each' for "abc":String (NoMethodError) ... (https://eval.in/297657)
charliesome has quit [Quit: zzz]
<workmad3> hanmac1: ok, yes it was lines, not bytes... which means forcing a break makes more sense as it was even more incompatible than a potential mis-interpretation about bytes or chars :)
hiyosi has joined #ruby
elfuego has quit [Quit: elfuego]
phale has joined #ruby
michael_mbp has quit [Excess Flood]
roshanavand1 has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 265 seconds]
michael_mbp has joined #ruby
parduse has joined #ruby
dys has joined #ruby
selu has joined #ruby
BTRE has joined #ruby
wald0 has joined #ruby
roshanavand has joined #ruby
DEA7TH has joined #ruby
sivsushruth has quit [Ping timeout: 246 seconds]
sivsushruth has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
senayar has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
imanzarrabian has quit [Ping timeout: 246 seconds]
bruno- has joined #ruby
roshanavand has joined #ruby
ghostpl_ has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
ghostpl_ has joined #ruby
buub has quit [Ping timeout: 265 seconds]
buub has joined #ruby
vtunka has joined #ruby
parduse has quit []
Hijiri has quit [Ping timeout: 256 seconds]
Hijiri has joined #ruby
claw has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 255 seconds]
michael_mbp has quit [Excess Flood]
arup_r has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
michael_mbp has joined #ruby
parduse has joined #ruby
rrrutr has joined #ruby
grr_ has quit [Remote host closed the connection]
doodlehaus has joined #ruby
huddy has joined #ruby
gr33n7007h has joined #ruby
vtunka_ has joined #ruby
bim has quit [Remote host closed the connection]
vtunka has quit [Ping timeout: 250 seconds]
bim has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sivsushruth has quit [Ping timeout: 245 seconds]
sivsushruth has joined #ruby
yeticry has quit [Ping timeout: 245 seconds]
bim has quit [Ping timeout: 245 seconds]
yeticry has joined #ruby
kera has joined #ruby
yqt has joined #ruby
dEPy has joined #ruby
bim has joined #ruby
FooMunki_ has joined #ruby
Soda has quit [Remote host closed the connection]
iterator_ has joined #ruby
sivsushruth has quit [Ping timeout: 256 seconds]
sivsushruth has joined #ruby
Synthead has joined #ruby
yeticry has quit [Ping timeout: 265 seconds]
dfinninger has joined #ruby
bim_ has joined #ruby
bim has quit [Read error: Connection reset by peer]
yeticry has joined #ruby
iteratorP has quit [Ping timeout: 252 seconds]
senayar has quit [Remote host closed the connection]
leafybasil has joined #ruby
iterator_ has quit [Ping timeout: 256 seconds]
jcromartie has joined #ruby
polysics has joined #ruby
dfinninger has quit [Ping timeout: 240 seconds]
reinaldob has joined #ruby
DEA7TH has quit [Ping timeout: 255 seconds]
rodfersou has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
jespada has joined #ruby
vt102 has joined #ruby
Timgauthier has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
tkuchiki has joined #ruby
claw has joined #ruby
lanemeyer has quit [Ping timeout: 272 seconds]
fgo has quit [Quit: WeeChat 1.1.1]
govg has joined #ruby
sivsushruth has quit [Ping timeout: 250 seconds]
sivsushruth has joined #ruby
WillAmes has quit [Remote host closed the connection]
WillAmes has joined #ruby
bal has quit [Ping timeout: 252 seconds]
claw has quit [Read error: No route to host]
polysics has quit [Remote host closed the connection]
jeromelanteri has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
bal has joined #ruby
mostlybadfly has joined #ruby
kera has quit []
davidhq has joined #ruby
roolo has quit [Remote host closed the connection]
writeco has joined #ruby
ki0 has quit []
roolo has joined #ruby
mkaesz has quit [Ping timeout: 245 seconds]
roolo has quit [Remote host closed the connection]
Pip has joined #ruby
ldnunes has joined #ruby
sivsushruth has quit [Ping timeout: 256 seconds]
bim_ has quit [Remote host closed the connection]
yqt has quit [Ping timeout: 264 seconds]
sivsushruth has joined #ruby
rrrutr has quit [Ping timeout: 256 seconds]
fabrice31_ has quit [Remote host closed the connection]
bim has joined #ruby
sambao21 has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
sdothum has joined #ruby
piotrj has joined #ruby
doodlehaus has quit [Remote host closed the connection]
bogeyd6 has quit [Read error: Connection reset by peer]
bim has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
jespada has quit [Ping timeout: 246 seconds]
jespada_ has joined #ruby
codecop has joined #ruby
piotrj has quit [Remote host closed the connection]
mathie has joined #ruby
yqt has joined #ruby
shadeslayer has quit [Ping timeout: 256 seconds]
bim has joined #ruby
piotrj has joined #ruby
bim has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 245 seconds]
ghostpl_ has quit [Remote host closed the connection]
bim has joined #ruby
shadeslayer has joined #ruby
cpt_yossarian has quit [Ping timeout: 264 seconds]
digitalextremist has quit [Ping timeout: 246 seconds]
Takle has joined #ruby
sivsushruth has quit [Ping timeout: 264 seconds]
bim has quit [Remote host closed the connection]
gfawcettpq has joined #ruby
sivsushruth has joined #ruby
senayar has joined #ruby
bim_ has joined #ruby
maximski has joined #ruby
Bounga_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
sivsushruth has quit [Ping timeout: 244 seconds]
lkba has joined #ruby
elfuego has joined #ruby
nettoweb has joined #ruby
sivsushruth has joined #ruby
sinkensabe has joined #ruby
teddyp1cker has joined #ruby
elfuego has quit [Client Quit]
ki0 has joined #ruby
apeiros_ has joined #ruby
Guest15 has joined #ruby
bal has quit [Ping timeout: 252 seconds]
Bounga_ has joined #ruby
reDkinG has joined #ruby
sivsushruth has quit [Ping timeout: 252 seconds]
ghostpl_ has joined #ruby
fabrice31 has joined #ruby
kromm has joined #ruby
sivsushruth has joined #ruby
bim_ has quit [Ping timeout: 246 seconds]
sigurding has quit [Quit: sigurding]
bim has joined #ruby
alem0lars has quit [Ping timeout: 252 seconds]
mkaesz has joined #ruby
PierreRambaud has quit [Ping timeout: 252 seconds]
dfinninger has joined #ruby
alem0lars has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
aclearman037 has joined #ruby
Hirzu_ has quit [Remote host closed the connection]
Hirzu has joined #ruby
phutchins has joined #ruby
jonr22 has joined #ruby
dfinninger has quit [Ping timeout: 255 seconds]
plashchynski has joined #ruby
Abhijit has joined #ruby
mkaesz has quit [Ping timeout: 252 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
millerti has joined #ruby
d10n-work has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
mkaesz has joined #ruby
piotrj has quit [Remote host closed the connection]
Abhijit has quit [Client Quit]
piotrj has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kromm has quit [Quit: kromm]
Hirzu has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
riotjones has joined #ruby
paulfm has joined #ruby
lanemeyer has joined #ruby
dEPy has quit [Quit: (null)]
ta has quit [Remote host closed the connection]
brb3 has joined #ruby
otisZart has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has quit [Ping timeout: 256 seconds]
sanguisdex has joined #ruby
abuzze has joined #ruby
parduse has quit []
iamjarvo has joined #ruby
bim has quit [Remote host closed the connection]
bim has joined #ruby
parduse has joined #ruby
dblessing has joined #ruby
jcromartie has quit [Read error: Connection reset by peer]
tkuchiki has quit [Ping timeout: 245 seconds]
Guest95329 has joined #ruby
luksaur has joined #ruby
sigurding has joined #ruby
polysics has joined #ruby
bim has quit [Remote host closed the connection]
sigurding has quit [Client Quit]
Guest95329 has quit [Client Quit]
sivsushruth has quit [Ping timeout: 246 seconds]
sigurding has joined #ruby
sivsushruth has joined #ruby
g0bl1n has joined #ruby
dropp has joined #ruby
dstarh has joined #ruby
sambao21 has joined #ruby
drewvanstone has joined #ruby
plashchynski has quit [Quit: plashchynski]
curiousgeorge has joined #ruby
n1lo has joined #ruby
plashchynski has joined #ruby
<curiousgeorge> im reading: http://www.tutorialspoint.com/ruby/ruby_object_oriented.htm ... i don't understand this " A mixin is like a specialized implementation of multiple inheritance in which only the interface portion is inherited."
<curiousgeorge> what do they mean by "the interface portion"
<ponga> >> x = y = z = 0
<eval-in_> ponga => 0 (https://eval.in/297706)
<ponga> >> x = y = z = 0; puts x;
<eval-in_> ponga => 0 ... (https://eval.in/297707)
<ponga> oh it works like ruby
<ponga> damn it was ruby channel
<ponga> my bad
tier has joined #ruby
<jhass> curiousgeorge: the methods it provides
<jhass> curiousgeorge: know any object oriented language already?
<curiousgeorge> jhass: that's sufficient, thanks!
rikai has quit [Ping timeout: 272 seconds]
Pip has quit [Remote host closed the connection]
sivsushruth has quit [Ping timeout: 244 seconds]
<shevy> lol ponga
<ponga> shevy: this made my day
roshanavand has quit [Remote host closed the connection]
Hirzu has joined #ruby
max96at|off is now known as max96at
PierreRambaud has joined #ruby
startupality has joined #ruby
wald0 has quit [Ping timeout: 264 seconds]
sivsushruth has joined #ruby
rbennacer has joined #ruby
DerisiveLogic has joined #ruby
Hirzu_ has joined #ruby
last_staff has quit [Ping timeout: 246 seconds]
drewvanstone has quit [Quit: leaving]
wald0 has joined #ruby
wald0 has quit [Client Quit]
drewvanstone has joined #ruby
roshanavand has joined #ruby
Hirzu has quit [Ping timeout: 240 seconds]
yqt has quit [Ping timeout: 245 seconds]
roshanavand has quit [Remote host closed the connection]
vtunka_ has quit [Quit: Leaving]
rbennacer has quit [Ping timeout: 252 seconds]
DerisiveLogic has quit [Ping timeout: 244 seconds]
Takle has quit [Remote host closed the connection]
drewvanstone has quit [Client Quit]
drewvanstone has joined #ruby
tvw has joined #ruby
mary5030 has joined #ruby
Timba-as has quit [Quit: Be back later ...]
teddyp1cker has joined #ruby
vtunka has joined #ruby
drewvanstone has quit [Client Quit]
nateberkopec has joined #ruby
drewvanstone has joined #ruby
piotrj has quit []
drewvanstone has quit [Client Quit]
drewvanstone has joined #ruby
piotrj has joined #ruby
g0bl1n has quit [Quit: g0bl1n]
sgambino has joined #ruby
jokester has quit [Quit: recharge]
otisZart has quit [Ping timeout: 244 seconds]
zenith_ has joined #ruby
curiousgeorge has quit [Quit: Page closed]
tus has joined #ruby
curiousgeorge has joined #ruby
Lactobacillus has joined #ruby
<curiousgeorge> how do i call this - method on this class? https://gist.github.com/ebbflowgo/5ff2bdca001950294da1
zenith_ has quit [Ping timeout: 256 seconds]
bradland_ has joined #ruby
<jhass> curiousgeorge: -@ is the unary -, -x
bradland_ has quit [Client Quit]
<workmad3> curiousgeorge: the comment even tells you that it's the unary -
<curiousgeorge> jhass: ahh! it comes before :o
drewvanstone has quit [Quit: leaving]
rikai has joined #ruby
<workmad3> curiousgeorge: unary operator == operator that takes a single argument, contrasted to binary operator, that takes 2 arguments (e.g x - y is the binary minus, -x is the unary minus)
tobago has quit [Remote host closed the connection]
last_staff has joined #ruby
<curiousgeorge> workmad3: just looking into that now, thanks!
drewvanstone has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drewvanstone has quit [Client Quit]
Hirzu_ has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
evanjs has joined #ruby
Hirzu has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
drewvanstone has joined #ruby
iamjarvo has joined #ruby
godd2 has quit [Remote host closed the connection]
godd2 has joined #ruby
oo_ has quit [Remote host closed the connection]
nettoweb has joined #ruby
oo_ has joined #ruby
voyd has joined #ruby
g0bl1n has joined #ruby
<voyd> Hi everyone, I'm running rspec with rails 3.2 and ruby 1.9/2.0 get a lot of warnings for gems. Is there a way to only show warnings for my own code?
<jhass> no
it0a has joined #ruby
Timgauthier is now known as timgauthier_away
joonty has quit [Quit: joonty]
<jhass> one of the reasons nobody turns on warnings :P
<voyd> :(
<voyd> okay, that sucks.
<jhass> consider using a linter, like ruby -wc or rubocop with the style and metric checks disabled
amystephen has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Takle has joined #ruby
terlar has joined #ruby
yh has quit [Ping timeout: 264 seconds]
<workmad3> voyd: the ruby runtime doesn't really see a difference between your code (consisting of normal ruby files) and gems (consisting of normal ruby files)
<voyd> I thought so.
<jhass> yeah, so ruby -wc doesn't run the code thus it only sees the file you point it at
<voyd> Would it be possible to monkey patch require?
<jhass> probably, but not worth it IMO
spyderman4g63 has joined #ruby
<voyd> hm. yeah, I think so too
<voyd> okay, thanks for the input!
enebo has joined #ruby
<workmad3> voyd: tbh, if the gems you're using are generating so many warnings that it's problematic to see through the noise, that's really quite important information and you probably want to investigate whether they're a problem
<workmad3> voyd: rather than just assuming that because it's not your code then it'll work fine ;)
ych4k3r has joined #ruby
doodlehaus has joined #ruby
<voyd> workmad3: yeah, I thought so, too. But I'm currently taking over a rails-3.2 project which hasn't had much love in recent years, and I just try to wade through while my phone rings about bugs.
alcy has quit [Quit: leaving]
<voyd> is there a tool that visualizes or logs requires? I get some warnings about circular requires, too...
HOrangeJewce has joined #ruby
Takle has quit [Remote host closed the connection]
bim has joined #ruby
evanjs has quit [Quit: Leaving...]
banister has joined #ruby
Takle_ has joined #ruby
polysics has quit [Remote host closed the connection]
polysics has joined #ruby
teddyp1cker has joined #ruby
DaniG2k has quit [Quit: leaving]
jerematic has joined #ruby
xaxisx has joined #ruby
paradoja has joined #ruby
rrrutr has joined #ruby
relix has joined #ruby
polysics has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
adriancb has joined #ruby
sivsushruth has quit [Ping timeout: 264 seconds]
odigity has quit [Ping timeout: 265 seconds]
sivsushruth has joined #ruby
cpt_yossarian has joined #ruby
paradoja has quit [Remote host closed the connection]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
Sgeo has quit [Read error: Connection reset by peer]
teddyp1cker has quit [Remote host closed the connection]
<bradland> voyd: you can monkey patch Kernel to log require, but be sure to use it only temporarily.
<bradland> eh, actually
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland> i think you'll want to do that in Object
<bradland> Kernel is where require is located, but I don't think that's where you want to patch it
Feyn has quit [Quit: Leaving]
oo_ has joined #ruby
<bradland> voyd: here's an old article on the topic which patches Object. you can give the code a try. http://www.dzone.com/snippets/log-calls-require-ruby
aspiers has joined #ruby
<voyd> bradland: thanks :)
oo_ has quit [Remote host closed the connection]
lektrik has joined #ruby
sinkensabe has quit [Remote host closed the connection]
iamjarvo has quit [Quit: Textual IRC Client: www.textualapp.com]
kp666 has quit [Quit: Leaving]
Dmr has joined #ruby
odigity has joined #ruby
joonty has joined #ruby
jottr has joined #ruby
freerobby has joined #ruby
The_Phoenix has joined #ruby
mkaesz has quit [Ping timeout: 256 seconds]
User458764 has joined #ruby
crueber has joined #ruby
werelivinginthef has joined #ruby
thiagovsk has joined #ruby
<sivsushruth> Guys, developed a gem for basE91 encoding/decoding : https://github.com/sivsushruth/base91
<sivsushruth> Suggestions welcome
<jhass> mmh
<jhass> sivsushruth: Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
<jhass> ;)
polysics has joined #ruby
chrisja has joined #ruby
GGMethos has joined #ruby
perrier has quit [Remote host closed the connection]
<jhass> for the others: I already noted extracting a few cases into private methods, using module_function, avoiding for, default arg for join and better variable names over in #RubyOnRails where he asked first
parduse has quit []
perrier has joined #ruby
<jhass> oh and spaces over tabs was noted too already
<certainty> that's plenty already. i wondered if it was worth starting that game
plashchynski has quit [Quit: plashchynski]
<certainty> but you did already, so thanks jhass
parduse has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
codecop has quit [Remote host closed the connection]
otisZart has joined #ruby
startupality has quit [Quit: startupality]
n80 has joined #ruby
sivsushruth has quit [Ping timeout: 246 seconds]
<jhass> meh
sivsushruth has joined #ruby
<jhass> sivsushruth: what did you still see after your message?
<sivsushruth> nothing, lost internet :|
<sivsushruth> checking logs
crueber has quit [Quit: Leaving.]
<sivsushruth> ty
brb3 has quit [Quit: ZZZzzz…]
jonr22 has joined #ruby
delianides has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
buub has quit [Ping timeout: 256 seconds]
mono has joined #ruby
teddyp1cker has joined #ruby
mono is now known as Guest32842
brb3 has joined #ruby
ojacobson has joined #ruby
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest32842 is now known as jokester
relix has joined #ruby
OrbitalKitten has joined #ruby
sinkensabe has joined #ruby
odigity has quit [Ping timeout: 265 seconds]
bruno- has quit [Ping timeout: 246 seconds]
mitchellhenke has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
iteratorP has joined #ruby
perrier has quit [Remote host closed the connection]
perrier has joined #ruby
yh has joined #ruby
delianides has quit []
delianides has joined #ruby
plashchynski has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
andikr has quit [Remote host closed the connection]
iteratorP has quit [Ping timeout: 265 seconds]
CorySimmons has joined #ruby
roshanavand has joined #ruby
fryguy9 has joined #ruby
andikr has joined #ruby
Kricir has joined #ruby
yqt has joined #ruby
justin_pdx has joined #ruby
mitchellhenke has joined #ruby
CorySimmons has quit [Client Quit]
juanpaucar has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
mitchell_ has joined #ruby
mleung has joined #ruby
freerobby has quit [Quit: Leaving.]
mkaesz has joined #ruby
tkuchiki has joined #ruby
AlHafoudh has quit [Quit: ZNC - http://znc.in]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
odigity has joined #ruby
mitchellhenke has quit [Ping timeout: 256 seconds]
juanpablo_ has joined #ruby
lyuben_ has quit [Read error: Connection reset by peer]
lyuben_ has joined #ruby
senayar has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
OrbitalKitten has joined #ruby
dANO__ has joined #ruby
Stalkr_ has joined #ruby
terlar has quit [Ping timeout: 240 seconds]
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
allcentury has joined #ruby
rbennacer has quit [Remote host closed the connection]
rkgudboy has joined #ruby
rbennacer has joined #ruby
elfuego has joined #ruby
malcolmva has quit [Ping timeout: 246 seconds]
mary5030 has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
<allcentury> Hi all - I'm pretty new to vim ( < 8 mos) and decided to put my dot files in VC today. I'm using pathogen to manage my plugins and noticed when I added my .vim/bundle folder to my repo it shows those as git submodules (which makes sense). Should I be following this answer to store this in my vc? http://stackoverflow.com/a/4162672/3109182
Aswebb_ has joined #ruby
emocakes has quit [Ping timeout: 245 seconds]
<allcentury> I want to be able to update these plugins via git pull when needed
justin_pdx has quit [Quit: justin_pdx]
terlar has joined #ruby
ghostpl_ has joined #ruby
jespada_ is now known as jespada
mary5030 has quit [Ping timeout: 265 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
jlast has joined #ruby
Takle_ has quit [Remote host closed the connection]
renier_ has joined #ruby
renier has quit [Ping timeout: 246 seconds]
sambao21 has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
<ericwood> allcentury: you honestly may want to consider vundle instead
senayar has joined #ruby
<ericwood> it acts more like a real package manager
<ericwood> and I think the way it works fixes your submodule woes, since you're not managing it manually
polysics has quit [Remote host closed the connection]
polysics has joined #ruby
zenith_ has joined #ruby
mitchell_ has quit [Quit: Computer has gone to sleep.]
<alex88> hi guys, is there an automated way using rvm/rbenv to install the specific ruby version declared in Gemfile to use inside a CI setup?
Guest72895 has quit [Ping timeout: 246 seconds]
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sinkensabe has quit [Read error: Connection reset by peer]
adriancb has quit [Read error: Connection reset by peer]
<godd2> alex88 which CI are you using?
freerobby has joined #ruby
malcolmva has joined #ruby
<alex88> godd2: CircleCI but I have to install the correct ruby version during the docker build
juanpaucar has quit [Remote host closed the connection]
<alex88> godd2: that installs ruby inside circleci machine, not docker container
adriancb has joined #ruby
sinkensabe has joined #ruby
jww_ has joined #ruby
mitchellhenke has joined #ruby
teddyp1cker has joined #ruby
<godd2> alex88 then I don't know
<godd2> Have you considered running mutliples inside circleci and then have your one main docker be a certain version?
<alex88> np
brb3 has quit [Quit: ZZZzzz…]
adriancb has quit [Read error: Connection reset by peer]
ghostpl_ has quit [Remote host closed the connection]
brb3 has joined #ruby
cpt_yossarian has quit [Ping timeout: 245 seconds]
zenith_ has quit [Ping timeout: 255 seconds]
odigity has quit [Ping timeout: 265 seconds]
shazaum has joined #ruby
jww42 has joined #ruby
Ankhers has joined #ruby
jww_ has quit [Remote host closed the connection]
ghostpl_ has joined #ruby
iamninja has joined #ruby
freerobby has quit [Quit: Leaving.]
ghostpl_ has quit [Remote host closed the connection]
adriancb has joined #ruby
ismaelga has joined #ruby
ghostpl_ has joined #ruby
rkgudboy has quit [Ping timeout: 256 seconds]
blackmesa has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
roolo has joined #ruby
fgo has joined #ruby
vt102 has quit [Remote host closed the connection]
Takle has joined #ruby
centrx has joined #ruby
last_staff has quit [Quit: last_staff]
mleung has quit [Quit: mleung]
lxsameer has quit [Quit: Leaving]
lkba_ has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
freerobby has joined #ruby
odigity has joined #ruby
bruno- has joined #ruby
freerobby has quit [Client Quit]
B1n4r10 has joined #ruby
Flcn has quit [Ping timeout: 250 seconds]
jlast has quit [Read error: Connection reset by peer]
Flcn has joined #ruby
teddyp1c_ has joined #ruby
B1n4r10 has quit [Max SendQ exceeded]
teddyp1cker has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
lkba has quit [Ping timeout: 264 seconds]
Dopagod has joined #ruby
havenwood has joined #ruby
Guest15 has quit [Ping timeout: 252 seconds]
ghostpl_ has joined #ruby
maasha has quit [Quit: Page closed]
freerobby has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
dfinninger has joined #ruby
jlast has joined #ruby
willgorman is now known as willgorman|away
Mon_Ouie has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
bal has joined #ruby
odigity has quit [Ping timeout: 256 seconds]
ypasmk has quit [Quit: ypasmk]
ghostpl_ has quit [Ping timeout: 256 seconds]
kaiZen- has joined #ruby
bal1 has joined #ruby
max96at is now known as max96at|off
sivsushruth has quit [Ping timeout: 256 seconds]
bal has quit [Ping timeout: 252 seconds]
paradoja has joined #ruby
havenn has joined #ruby
sivsushruth has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
polysics has quit [Read error: Connection reset by peer]
centrx has quit [Ping timeout: 245 seconds]
polysics_ has joined #ruby
ixti has joined #ruby
Takle has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 264 seconds]
ta has joined #ruby
tagrudev has quit [Read error: Connection reset by peer]
Takle has joined #ruby
dwilbank has joined #ruby
<dwilbank> hello - checking to see if I can post...
<dwilbank> alright! I'm trying to tackle this problem, http://www.ardendertat.com/2011/09/20/programming-interview-questions-2-matrix-region-sum/ and it is my first intro to matrices. So far, I see how to create and build matrices, and I saw all the methods in the docs about them... Question is, what do I need to learn before I can really tackle this problem? It is possible to do this without too much
<dwilbank> trouble in ruby, right?
<yh> dwilbank: that's not out of a Ruby beginner's reach
<yh> As in, with the right bits of research (e.g. looking at methods that Array provides, for example) you should be well on your way to doing it
ascarter has joined #ruby
centrx has joined #ruby
odigity has joined #ruby
ascarter has quit [Max SendQ exceeded]
<dwilbank> okay - will begin the journey
<dwilbank> thx
ascarter has joined #ruby
snockerton has joined #ruby
mistermocha has joined #ruby
RegulationD has joined #ruby
<godd2> dwilbank don't forget that the cache matrix has elements which are the sum of the rectangle from the top left of the original to that point
<HOrangeJewce> Is there a minitest equivalent of rspec's shared_context?
<godd2> so throughout the queries you only need the original matrix and another matrix of the same size
willgorman|away is now known as willgorman
<godd2> but whose elements are the sums
RegulationD has quit [Client Quit]
RegulationD has joined #ruby
Kricir has quit []
RegulationD has quit [Client Quit]
<dwilbank> Thanks. Will refer to these hints once I figure out their first, unoptimized solution.
Aswebb_ has joined #ruby
<godd2> dwilbank oh the unoptimized is exactly what you'd try first. simply add the elements whenever they're asked for
mrdtt has joined #ruby
<HOrangeJewce> Yeah as long as the number of executions is an order of magnitude greater than the precomputations then it's worth
RegulationD has joined #ruby
drawingthesun has joined #ruby
Hirzu has quit [Ping timeout: 240 seconds]
rhllor has joined #ruby
odigity has quit [Ping timeout: 256 seconds]
tjbiddle has joined #ruby
snockerton has left #ruby [#ruby]
drawingthesun has quit [Client Quit]
<godd2> HOrangeJewce that's true. In the article they're implying an arbitrary number of queries, but in the real world that would be an additional consideration
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
plashchynski has quit [Quit: plashchynski]
ghostpl_ has joined #ruby
polysics_ has quit [Ping timeout: 255 seconds]
Aswebb_ has quit [Remote host closed the connection]
Dude007 has joined #ruby
<HOrangeJewce> godd2: Yup
juanpaucar has joined #ruby
<HOrangeJewce> dwilbank: Also for any interview if you're asked almost anything involving 2 dimensional matrices there's almost always a DP sol'n that will be 'more optimal'
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
max96at|off is now known as max96at
MatthewsFace has quit [Remote host closed the connection]
Rephiax has quit []
<dwilbank> DP?
norc has quit [Ping timeout: 246 seconds]
<HOrangeJewce> dynamic programming
<dwilbank> oy - I gotta learn my matrix first
GaryOak_ has joined #ruby
<HOrangeJewce> don't worry about it
<HOrangeJewce> baby steps
<godd2> I think the recursion in this case comes after the clever notion that you can subtract away sub-caches
ghostpl_ has quit [Remote host closed the connection]
hanmac1 has quit [Quit: Leaving.]
Cubensys has joined #ruby
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<HOrangeJewce> godd2: It's not recursive
ghostpl_ has joined #ruby
startupality has joined #ruby
xaxisx has quit [Quit: xaxisx]
jeff_laplante has joined #ruby
<godd2> I'm saying that you can use recursion to cache the submatrices
polysics has joined #ruby
<godd2> DP starts with recursion and then you find where you cache, but in this case the way you cache is more important than the recursive part
paulfm has quit [Quit: Zzzzz...]
Megtastique has joined #ruby
xcesariox has joined #ruby
<HOrangeJewce> in this particular case you don't need to recurse to calculate the sums for all subsections of a matrix size MN
havenwood has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
<godd2> I didn't say you needed to. I said that you can.
<dwilbank> okay - going to make gist to demonstrate how I think this thing works. Is there a best plugin for sublime or something? Looks like there are several choices...
chrishough has joined #ruby
ghostpl__ has joined #ruby
<HOrangeJewce> ah ok I suppose I see how that might work
bluOxigen has joined #ruby
xaxisx has joined #ruby
ghostpl_ has quit [Read error: Connection reset by peer]
<HOrangeJewce> What would the base case be? sum of all elements in the matrix?
<HOrangeJewce> or return the [0][0[
<HOrangeJewce> I suppose you could do either
blueOxigen has joined #ruby
<godd2> HOrangeJewce yea I'd go with 0,0
<godd2> at least seems more traditional
<HOrangeJewce> I just wouldn't have thought to do it recursively haha
<godd2> plus, if the matrix is changing size, at least it will halt at 0,0
<HOrangeJewce> yeah
<HOrangeJewce> probably a better way to go about it
giuseppesolinas has joined #ruby
<godd2> probably, especially depending on the language/toolset
plashchynski has joined #ruby
<godd2> I'm not familiar enough with ruby's matrix library to know what I'd lean toward
<HOrangeJewce> I just think it's easier to envision this one iteratively
<godd2> dwilbank I've never used a sublime to gist plugin. is there one?
_maes_ has joined #ruby
<HOrangeJewce> have an array that stores all the sums of the subarrays
kblake has joined #ruby
<godd2> HOrangeJewce hehe I've been on a Clojure kick recently so maybe that's clouding my judgement
<HOrangeJewce> nah
<dwilbank> godd2 - sublime-github is what I'm trying now - but that's just a random choice
<HOrangeJewce> Well this isn't the easiest recursive f'n because you'd have to have 3 methods
<HOrangeJewce> the base, one for the rows and one for the columns
bluOxigen has quit [Ping timeout: 255 seconds]
<HOrangeJewce> or something along those lines
<HOrangeJewce> anways dwilbank ignore my commentary
karmatr0n has joined #ruby
<dwilbank> indeed!
Hobogrammer has quit [Ping timeout: 245 seconds]
allcentury has quit [Ping timeout: 246 seconds]
jonr22 has joined #ruby
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
Cubensys has left #ruby ["Leaving"]
crazydiamond has joined #ruby
tubuliferous has joined #ruby
sinkensabe has quit [Remote host closed the connection]
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 252 seconds]
tearan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mives has joined #ruby
paulfm has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
vtunka has quit [Quit: Leaving]
Dopagod has quit [Ping timeout: 244 seconds]
dandaman has joined #ruby
riotjones has joined #ruby
allcentury has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
yqt has quit [Ping timeout: 264 seconds]
vt102 has joined #ruby
beneggett has joined #ruby
beneggett has quit [Client Quit]
vtunka has joined #ruby
xaxisx has quit [Quit: xaxisx]
ismaelga has quit [Ping timeout: 252 seconds]
roshanavand has quit [Ping timeout: 256 seconds]
bal1 has quit [Quit: bal1]
fabrice31 has quit [Remote host closed the connection]
lemur has joined #ruby
beneggett has joined #ruby
lyuben_ has quit [Quit: This computer has gone to sleep]
riotjones has quit [Ping timeout: 256 seconds]
rhllor has quit [Quit: rhllor]
bricker has joined #ruby
sambao21 has joined #ruby
ghostpl__ has quit [Remote host closed the connection]
jobewan has joined #ruby
jespada_ has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
ghostpl_ has joined #ruby
jespada has quit [Ping timeout: 264 seconds]
rhllor has joined #ruby
Mives has quit [Quit: WeeChat 1.1.1]
Mives has joined #ruby
Hetman has joined #ruby
lemur has quit [Remote host closed the connection]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
atomiccc has joined #ruby
boshhead has joined #ruby
Dopagod has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
zacts has joined #ruby
riotjones has joined #ruby
<Hetman> Hello, I never code in Ruby before and my boss asked me to fix some problem (our webmaster is on holiday!) Can somebody please help me . This is the code: http://pastebin.com/Gx3QSbS0 . Problem is that its not following redirections (getting 302 as a response.code) can somebody help me to get that code to follow redirections and then check response.code . Regards
<helpa> Hi Hetman. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa> Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
jottr has quit [Quit: WeeChat 1.1.1]
oki has quit [Ping timeout: 240 seconds]
Parker0 has joined #ruby
Parker0 has quit [Remote host closed the connection]
<Hetman> there is one line missing under request , sorry ! missing line is response = http.request(request)
Hirzu has joined #ruby
aclearman037 has joined #ruby
tag has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
coco has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Ping timeout: 265 seconds]
sigurding has quit [Quit: sigurding]
paulfm has quit [Quit: Zzzzz...]
coco has joined #ruby
deric_skibotn has joined #ruby
MatthewsFace has joined #ruby
n1lo has quit [Quit: Leaving]
Synthbread has quit [Quit: Leaving]
tjbiddle has quit [Quit: tjbiddle]
bluOxigen has joined #ruby
<atmosx> Hetman: backup that file fist, then in line 24: if response.code == ("200" || "320")
<atmosx> hm but that will return 'ok' ok redirect, you don't want that you want the client to follow the redirect right?
<Hetman> atmosx: that I already solved it by giving it some more rich URL, instead of myapp.com i gave it myapp.com/login/dologin.do
<atmosx> Hetman: ah k
fgo has quit [Quit: WeeChat 1.1.1]
<Hetman> atmosx: but thx for help :-)
nathanr has joined #ruby
danman has joined #ruby
<atmosx> np :-)
blueOxigen has quit [Ping timeout: 245 seconds]
<nathanr> hi guys, I'm developing a middleman extension, which is generated as a gem for me. How can I make this gem available to other ruby apps without having to build it each time (while its in development) ?
blueOxigen has joined #ruby
maximski has quit [Ping timeout: 256 seconds]
bluOxigen has quit [Ping timeout: 246 seconds]
dandaman has quit [Quit: Leaving.]
<jhass> nathanr: bundler provides the path option to do so
Stalkr_ has quit [Quit: Leaving...]
sambao21 has quit [Quit: Computer has gone to sleep.]
B1n4r10 has joined #ruby
<nathanr> jhass: ie. I put `gemspec :path => '..'` in the Gemfile for the project which is using the gem I'm working on?
yqt has joined #ruby
Timgauthier has joined #ruby
Timgauthier is now known as timgauthier_away
<jhass> gem "gemname", path: "~/projects/gemname", but yeah
<nathanr> nice! thanks! :)
Hirzu has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
<atmosx> jhass: ever used the JS datepicker?
spider-mario has joined #ruby
<atmosx> jhass: any JS datepicker in your projects?
<jhass> lol, how random. no
sambao21 has joined #ruby
skaag has joined #ruby
skaag has quit [Max SendQ exceeded]
<atmosx> I'm trying to figure how to get a result, any hints? https://gist.github.com/atmosx/dd2c1047d3905e1b2df9 <-- gist. I'm reading through online tuts to figure how to send a reques to a route e.g. get /:date
skaag has joined #ruby
skaag has quit [Max SendQ exceeded]
skaag has joined #ruby
B1n4r10 has quit [Client Quit]
skaag has quit [Max SendQ exceeded]
<jhass> atmosx: rails goes to #rubyonrails
jenrzzz has joined #ruby
<atmosx> jhass: it's sinatra
skaag has joined #ruby
<atmosx> lol
skaag has quit [Max SendQ exceeded]
B1n4r10 has joined #ruby
<atmosx> but I think rails guys can help me also
<atmosx> let me try
AlexRussia has quit [Ping timeout: 252 seconds]
<jhass> well, there's #sinatra too
skaag has joined #ruby
skaag has quit [Max SendQ exceeded]
senayar has quit [Remote host closed the connection]
toretore has joined #ruby
skaag has joined #ruby
skaag has quit [Max SendQ exceeded]
skaag has joined #ruby
skaag has quit [Max SendQ exceeded]
<atmosx> jhass: yeah I'm on it, but it's pretty much dead
skaag has joined #ruby
skaag has quit [Max SendQ exceeded]
huck5 has joined #ruby
polysics has quit [Remote host closed the connection]
skaag has joined #ruby
skaag has quit [Max SendQ exceeded]
yh has quit [Ping timeout: 245 seconds]
startupality has quit [Quit: startupality]
skaag has joined #ruby
skaag has quit [Max SendQ exceeded]
skaag has joined #ruby
skaag has quit [Max SendQ exceeded]
<huck5> Hi there. I've been working through a Rails tutorial, that shows how to asynchronously re-display elements on the "current" page when a form is submitted. It does not go into detail as to how one might re-load elements on a *different* page. I am wondering if someone could help me with this; or point me in the direction of a resource that would?
Hetman has quit [Quit: Page closed]
skaag has joined #ruby
skaag has quit [Max SendQ exceeded]
skaag has joined #ruby
skaag has quit [Max SendQ exceeded]
skaag has joined #ruby
skaag has quit [Max SendQ exceeded]
<atmosx> huck5: #rubyonrails
yh has joined #ruby
skaag has joined #ruby
skaag has quit [Max SendQ exceeded]
<huck5> atmosx, my bad! Thank you :)
skaag has joined #ruby
skaag has quit [Max SendQ exceeded]
RegulationD has quit [Remote host closed the connection]
<atmosx> huck5: no worries, everybody does it :-P
skaag has joined #ruby
skaag has quit [Max SendQ exceeded]
RegulationD has joined #ruby
skaag has joined #ruby
dANO__ has quit []
skaag has quit [Max SendQ exceeded]
skaag has joined #ruby
skaag has quit [Max SendQ exceeded]
skaag has joined #ruby
skaag has quit [Max SendQ exceeded]
skaag has joined #ruby
skaag has quit [Max SendQ exceeded]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skaag has joined #ruby
skaag has quit [Max SendQ exceeded]
skaag has joined #ruby
Vile` has quit [Read error: Connection reset by peer]
skaag has quit [Max SendQ exceeded]
rhllor has quit [Quit: rhllor]
rhllor has joined #ruby
senayar has joined #ruby
buub has joined #ruby
mkaesz has quit [Ping timeout: 246 seconds]
bluOxigen has joined #ruby
zenith_ has joined #ruby
yh_ has joined #ruby
alex88 has quit []
yh has quit [Read error: Connection reset by peer]
Vile` has joined #ruby
_hollywood has joined #ruby
Timgauthier has joined #ruby
<phale> ok
dandaman has joined #ruby
Takle has quit [Remote host closed the connection]
blueOxigen has quit [Ping timeout: 250 seconds]
aganov has quit [Remote host closed the connection]
ghostpl_ has quit [Remote host closed the connection]
mkaesz has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
zcreative has quit [Quit: (null)]
dfinninger has quit [Remote host closed the connection]
Mives has quit [Remote host closed the connection]
Guest45954 has joined #ruby
jin_ has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lolmaus has quit [Quit: Konversation terminated!]
Dopagod has quit [Ping timeout: 255 seconds]
ghostpl_ has joined #ruby
tearan has joined #ruby
Takle has joined #ruby
havenn has joined #ruby
mrdtt has quit [Quit: Textual IRC Client: www.textualapp.com]
CorySimmons has joined #ruby
CorySimmons has quit [Max SendQ exceeded]
lyuben_ has joined #ruby
ghostpl_ has quit [Ping timeout: 245 seconds]
CorySimmons has joined #ruby
ghostpl_ has joined #ruby
havenwood has quit [Ping timeout: 256 seconds]
Hijiri has joined #ruby
mkaesz has quit [Remote host closed the connection]
mkaesz has joined #ruby
Dopagod has joined #ruby
TheNet has joined #ruby
Crazy_Atheist has quit [Quit: WeeChat 1.0.1]
n80 has quit [Quit: n80]
strixd has quit [Quit: 500]
xaxisx has joined #ruby
havenwood has joined #ruby
wallerdev has joined #ruby
mleung has joined #ruby
mkaesz has quit [Ping timeout: 256 seconds]
jrichocean has joined #ruby
polysics has joined #ruby
OrbitalKitten has joined #ruby
selu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maletor has joined #ruby
havenn has quit [Ping timeout: 246 seconds]
maletor has quit [Changing host]
maletor has joined #ruby
ptrrr has joined #ruby
iwaffles has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
gregf has quit [Quit: WeeChat 1.1.1]
JohnBat26 has joined #ruby
joonty has quit [Quit: joonty]
ndrei has joined #ruby
drewvanstone has quit [Quit: Lost terminal]
vtunka has quit [Quit: Leaving]
kaiZen- has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
havenn has joined #ruby
andikr has quit [Remote host closed the connection]
oki has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fella5s has joined #ruby
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
Takle has quit [Remote host closed the connection]
beneggett has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
soulcake has joined #ruby
Hijiri has quit [Ping timeout: 252 seconds]
fella7s has quit [Ping timeout: 264 seconds]
wldcordeiro has joined #ruby
thumpba has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
jrichocean has quit [Ping timeout: 246 seconds]
Flcn has quit [Quit: Be back later ...]
maximski has joined #ruby
beneggett has quit [Ping timeout: 246 seconds]
CustosLimen has quit [Ping timeout: 246 seconds]
dorei has joined #ruby
iceden has joined #ruby
fryguy9 has quit [Quit: Leaving.]
amundj has joined #ruby
IrishGringo has joined #ruby
yeticry has quit [Ping timeout: 245 seconds]
Flcn has joined #ruby
maximski has quit [Client Quit]
Bounga_ has quit [Quit: Textual IRC Client: www.textualapp.com]
senayar has quit []
yeticry has joined #ruby
danman has quit [Quit: danman]
Dopagod has quit [Ping timeout: 240 seconds]
havenn has quit [Ping timeout: 264 seconds]
Crazy_Atheist has joined #ruby
zachrab has joined #ruby
yh_ has quit [Ping timeout: 244 seconds]
rhllor has quit [Ping timeout: 252 seconds]
rhllor_ has joined #ruby
Flcn has quit [Ping timeout: 256 seconds]
apeiros_ has joined #ruby
adriancb has quit [Remote host closed the connection]
kenichi has joined #ruby
Dopagod has joined #ruby
adriancb has joined #ruby
ghostpl_ has joined #ruby
paulfm has joined #ruby
havenwood has joined #ruby
graydot has joined #ruby
einarj has quit [Remote host closed the connection]
<phale> "shoot for the moon, even if you miss you'll be amongst the stars."
sevvie has quit [Ping timeout: 265 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<workmad3> phale: bad advice if it's a solar eclipse...
parduse has quit [Read error: Connection reset by peer]
<havenwood> the stars are further away than they appear, you'll be lonely
_ixti_ has joined #ruby
zachrab has quit [Ping timeout: 256 seconds]
B1n4r10 has joined #ruby
oki has quit [Ping timeout: 264 seconds]
zachrab has joined #ruby
<jhass> on the positive side it gives you enough time on reflecting why the hell you shoot yourself into space
anarang has quit [Quit: Leaving]
_djbkd has joined #ruby
<phale> it sounds fun
Dopagod has quit [Ping timeout: 245 seconds]
buub has quit [Ping timeout: 244 seconds]
vtunka has joined #ruby
ixti has quit [Ping timeout: 264 seconds]
parduse has joined #ruby
SumoBoy has joined #ruby
shadoi1 has joined #ruby
mistermo_ is now known as mistermocha
baweaver has joined #ruby
FooMunki_ has quit [Read error: Connection reset by peer]
Synthead has quit [Quit: Leaving]
sevvie has joined #ruby
FooMunki_ has joined #ruby
Synthead has joined #ruby
DerisiveLogic has joined #ruby
kirun has joined #ruby
tcrypt has joined #ruby
shredding has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Ping timeout: 256 seconds]
n80 has joined #ruby
apxm has quit [Quit: Textual IRC Client: www.textualapp.com]
dseitz has joined #ruby
Timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
fryguy9 has joined #ruby
vtunka has quit [Quit: Leaving]
iamjarvo has joined #ruby
RegulationD has quit [Remote host closed the connection]
tvw has quit [Read error: Connection reset by peer]
yeticry has quit [Ping timeout: 272 seconds]
ndrei has quit [Ping timeout: 245 seconds]
danjordan has quit [Quit: danjordan]
justin_pdx has joined #ruby
startupality has joined #ruby
danjordan has joined #ruby
jonr22 has joined #ruby
pietr0 has joined #ruby
parduse has quit []
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dandaman has quit [Quit: Leaving.]
jelera has joined #ruby
parduse has joined #ruby
<phale> how many of you use internet browsers
jonr22 has quit [Ping timeout: 272 seconds]
<jhass> you're bored? ;)
<phale> pretty much
<phale> i don't use a web browser btw
<jhass> why not?
<phale> i don't need one
<jhass> how so?
<phale> well, i have all the information i need
<phale> man pages, ri pages, books, etc..
kennym has joined #ruby
<jefus> there is no information or other form of resource you could ever possibly need the web for at all?
lyuben_ has quit [Quit: Leaving]
<jhass> phale: how do you use codepad.com?
<phale> i only used it to upload to codepad and wklej
<jefus> not even to find a download link?
<havenwood> so you use a web browser
<phale> but now i created a program which uploads and gives the link back
<havenwood> i see
<jhass> jefus: you take it too seriously ;)
<jefus> haha
<jefus> i was just a bit baffled 8-)
<eam> phale: just use emacs for that
zacts has quit [Ping timeout: 256 seconds]
<havenwood> phale: this is more on topic for #luddites
ismaelga has joined #ruby
<jefus> haha
<jhass> isn't web browser a subset of emacs?
<jefus> ^
<jhass> like anything is a subset of emacs?
<phale> i'm pretty serious though
<jhass> even emacs itself?
<phale> i don't use web browsers anymore
juanpaucar has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
<jhass> phale: but how are you going to enjoy http://www.theuselessweb.com/ from now on
<havenwood> phale: are you browsing the web? what you're browsing it with is called a web browser.
randiman has joined #ruby
juanpaucar has joined #ruby
<jhass> havenwood: no, it's called internet explorer, can't you read god dammit
cpt_yossarian has joined #ruby
doodlehaus has quit [Ping timeout: 255 seconds]
danjordan has quit [Quit: danjordan]
<phale> havenwood: i'm just creating a GET request to websites when i need to and parse the information
<mhenrixon> LOL
<phale> in rare cases should i go to websites for information
dfinninger has joined #ruby
MasterPiece has joined #ruby
<mhenrixon> theuselessweb is also priceless!!!!! thanks jhass !!
chthon has quit [Ping timeout: 250 seconds]
<jhass> mhenrixon: I happily made the rest of your day useless, you're welcome
cpt_yossarian has quit [Client Quit]
yeticry has joined #ruby
ascarter has joined #ruby
antgel has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
ascarter has quit [Client Quit]
ascarter has joined #ruby
enterprisedc has joined #ruby
<phale> web browsing isn't really productive
<havenwood> phale: you're doing it wrong.
juanpaucar has quit [Ping timeout: 240 seconds]
<phale> no, i'm not
claw has joined #ruby
dfinninger has quit [Ping timeout: 250 seconds]
<jhass> oooh I get it
<jhass> phale is only using gopher
<phale> i'm not using anything.
<havenwood> telnet
<jhass> telnet, misunderstood as netcat since 1990
dfinninger has joined #ruby
<jhass> that poor guy
<atmosx> lol
<phale> like i said
<phale> im not using any web browser
<phale> what is so hard to understand?
rbennacer has quit [Remote host closed the connection]
m8 has joined #ruby
RegulationD has joined #ruby
morenoh149 has quit [Ping timeout: 256 seconds]
<atmosx> phale: If you were the woman and I was your meeen wouldn't it be so hard to understandddd
<atmosx> lol
<atmosx> I think the lyrics go the other way around
<jhass> phale: a successful troll picks a believable claim btw
rbennacer has joined #ruby
atomiccc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zeel has quit [Quit: Lost terminal]
mikecmpbll has joined #ruby
<havenwood> phale: Your web browser isn't properly rendering that page.
<alem0lars> I'm trying to read a markdown file, edit and save it.. Do you know a good library to do that? BTW I've tried kramdown but I'm losing my head over..
<jhass> yeah, pastebin script proves nothing
<alem0lars> I just need to create some markdown elements like headers or lists or text
<alem0lars> and save them
<jhass> alem0lars: huh? you mean render them to html?
<alem0lars> jhass: no, edit the markdown
<jhass> it's plaintext
<jhass> just do it?
<alem0lars> yeah but I have to add elements to a list
jmignault has joined #ruby
<alem0lars> so making it by hand is really awkward
<alem0lars> I have to read the markdown, make modifications without removing existing stuff and then save it again
<jhass> I guess your problem is that you view markdown as a storage instead of a presentation of your data
jelera has quit [Quit: Leaving]
akkad has quit [Excess Flood]
<jhass> markdown is indeed awful as a structured storage mechanism
<alem0lars> you're right, but I am obliged to XD
<alem0lars> I mean I should parse some READMEs and add informations to them
<alem0lars> that is my requirement
paradoja has quit [Ping timeout: 272 seconds]
<alem0lars> I could get something better like XML from Markdown then go back to Markdown
<phale> alem0lars: here's your problem
<phale> you're expecting a program to do everything for you
<workmad3> alem0lars: heh, you could always go the long way around... https://github.com/xijo/reverse_markdown
<phale> know what you want and what you're thinking
<jhass> workmad3: lol
akkad has joined #ruby
<jhass> I don't want to see 3 roundtrips with that
<workmad3> jhass: :D
frog|OFF is now known as green-big-frog
zacts has joined #ruby
<phale> oprah winfrey
<atmosx> true men browse on lynx
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> alem0lars: some educated regexps is as good as you can get tbh
<workmad3> atmosx: no they don't... no image support for pr0n
<atmosx> workmad3: true.
sambao21 has quit [Quit: Computer has gone to sleep.]
<atmosx> I can't believe people still arguing about Jorda vs LeBron.
ghostpl_ has quit [Remote host closed the connection]
huck5 has quit [Remote host closed the connection]
<jhass> alem0lars: markdown allows for way too much variance to expectx render(parse(x)) == x
green-big-frog has left #ruby [#ruby]
SegFaultAX has joined #ruby
SegFaultAX has quit [Excess Flood]
<alem0lars> jhass yeah I think so.. I was going well in kramdown.. I mean, I have implemented everything (assuming kramdown format) but I went to a strange error
<alem0lars> I read an header file
<alem0lars> i.e.: ## My Header
<alem0lars> or # My Header
<jhass> alem0lars: http://johnmacfarlane.net/babelmark2/?text=**foo*bar** my fun example
<alem0lars> then when I try to write it back to kramdown (to_kramdown)
<jhass> especially after adding spaces anywhere
jenrzzz has quit [Ping timeout: 245 seconds]
ploupz has joined #ruby
Hijiri has joined #ruby
<alem0lars> The header goes in the line above so it will be treated as text!
<alem0lars> I can gist an example
ascarter has joined #ruby
ghostpl_ has joined #ruby
SegFaultAX has joined #ruby
sevvie has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
Notte has joined #ruby
iwaffles has quit [Quit: iwaffles]
<alem0lars> jhass
<jhass> yeah, won't change my suggestion
<alem0lars> Just opening the Kramdown document
<jhass> look at my link, not even rendering is consistent
<alem0lars> and saving (with to_kramdown)
<jhass> don't expect roundtripping to do anything sane
iwaffles has joined #ruby
<alem0lars> jhass XD
<jhass> an educated regexp is as good as you can get with those requirements
<alem0lars> didn't know
sevvie has joined #ruby
<alem0lars> yeah
<alem0lars> I really think so.. (a wasted day, I could come to IRC before)
<alem0lars> thanks very much jhass
rhgzzz is now known as rhg135
* arup_r looking for some one who can help him to refactor his Jquery code..
<jhass> in #ruby
<jhass> brilliant idea
juanpaucar has joined #ruby
<arup_r> humm :)
<havenwood> arup_r: Want help with your dotfiles?
<arup_r> no.. too many channels I opened
piotrj has quit [Remote host closed the connection]
<arup_r> so after typing by mistake I hit enter in this channel jhass :
ki0 has quit [Ping timeout: 244 seconds]
<jhass> how dare you!
<arup_r> havenwood: I am away of that mac machine.. :( I read the GitHub comment of yours..
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> arup_r: kk
<arup_r> I'll ping you morning when I'll be in office
<havenwood> arup_r: It's just a `PATH=...` in one of your dotfiles. Say when and I can help you fix it if you can't spot it.
<arup_r> that's giving me pain since 1 week or so
<arup_r> havenwood: I'll ping you
<havenwood> arup_r: kk, just close the issue, since the original one is solved anyways
<bricker> Most efficient way to see if a regex matches a string and return a boolean value - `!("string" =~ regex).nil?` ?
<bricker> Or is there a more obvious solution I'm forgetting
Soda has joined #ruby
<havenwood> bricker: `nil` is already falsey
wottam has joined #ruby
<bricker> havenwood: I'm aware of that, I want a boolean.
<havenwood> bricker: !!
<havenwood> >> !!nil
<bricker> probably better than checking nil explicitly
<eval-in_> havenwood => false (https://eval.in/297837)
zachrab has quit [Remote host closed the connection]
<arup_r> havenwood: original one I didn't try.. After following your instrcutions.. when I try to select the 2.2.0 got that annoying issue ... so the one for which I raised the issue ticket.. I didn't test again.
chrishough has joined #ruby
zachrab has joined #ruby
ndrei has joined #ruby
<havenwood> arup_r: aha
bruno- has quit [Ping timeout: 256 seconds]
<arup_r> havenwood: you might noticed that only 2.2.0 causing the PATH issue not the rest ones..
<arup_r> in my Github comment
<arup_r> jhass: sorry :(
<arup_r> I am there in #Jquery
rdark has quit [Quit: leaving]
livingstn has joined #ruby
jespada_ has quit [Ping timeout: 272 seconds]
yfeldblu_ has quit [Ping timeout: 256 seconds]
kalusn has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
zachrab has quit [Ping timeout: 264 seconds]
leafybasil has quit [Remote host closed the connection]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
Evan_ is now known as EvanGuru
xaxisx has quit [Quit: xaxisx]
xaxisx has joined #ruby
sigurding has joined #ruby
baweaver has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 265 seconds]
yqt has quit [Ping timeout: 252 seconds]
einarj has joined #ruby
cjim has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
<arup_r> I'm writing code in coffescript.. Very bad language... always complains for indentations.. :(
doodlehaus has joined #ruby
<workmad3> arup_r: use a sane editor
<rhllor_> use a sane language
<havenwood> arup_r: Switch to Opal.
<rhllor_> more like
<phale> ugh ruby hates me
willgorman is now known as willgorman|away
jenrzzz has joined #ruby
willgorman|away is now known as willgorman
ploupz has quit [Ping timeout: 246 seconds]
tvon has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dandaman has joined #ruby
perrier has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 265 seconds]
perrier has joined #ruby
phale has quit [Quit: leaving]
jespada_ has joined #ruby
perrier has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 252 seconds]
perrier has joined #ruby
n80 has quit [Quit: n80]
oki has joined #ruby
jmignault has quit [Ping timeout: 244 seconds]
wallerdev has quit [Quit: wallerdev]
bruno- has joined #ruby
Takle has joined #ruby
dc_ has joined #ruby
Takle has quit [Remote host closed the connection]
Dude007 has quit [Remote host closed the connection]
Aswebb_ has joined #ruby
yh has joined #ruby
<elfuego> is there a way to access the cookies hash in rspec, i’m trying to test it in a sinatra application
dtordable has joined #ruby
wallerdev has joined #ruby
jottr has joined #ruby
jespada__ has joined #ruby
<elfuego> tried using rack_mock_session.cookies, but its not defined
Eiam_ is now known as Eiam
einarj_ has joined #ruby
jespada_ has quit [Ping timeout: 272 seconds]
ojacobson_ has joined #ruby
plashchynski has quit [Quit: plashchynski]
ojacobson has quit [Remote host closed the connection]
ojacobson has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
mistermocha has quit [Read error: Connection reset by peer]
einarj has quit [Ping timeout: 272 seconds]
mistermocha has joined #ruby
einarj has joined #ruby
iamjarvo has joined #ruby
rhllor_ has quit [Quit: rhllor_]
<mitchellhenke> elfuego: if you're using rack-test, and you make a request in the spec, you should be able to do last_response.cookies
aphprentice has quit [Remote host closed the connection]
jespada__ is now known as jespada
einarj_ has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 240 seconds]
cpt_yossarian has joined #ruby
startupality has quit [Quit: startupality]
jottr has joined #ruby
ojacobson_ has quit [Ping timeout: 250 seconds]
dtordable has quit [Changing host]
dtordable has joined #ruby
rhllor has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 252 seconds]
sinkensabe has joined #ruby
<elfuego> thanks mitchellhenke
<mitchellhenke> you bet
robustus has quit [Ping timeout: 255 seconds]
<elfuego> is it possible to test sinatra before filters in rspec?
<elfuego> in isolation
<elfuego> similar to a method call
<mitchellhenke> Not to my knowledge
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
unreal_ is now known as unreal
<mitchellhenke> http://www.sinatrarb.com/testing.html has some information
ojacobson_ has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
Guest45954 has quit [Remote host closed the connection]
robustus has joined #ruby
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
werelivinginthef has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 256 seconds]
havenwood has quit []
sinkensabe has quit [Ping timeout: 250 seconds]
Spami has joined #ruby
Takle has joined #ruby
pygospa has quit [Ping timeout: 265 seconds]
mistermocha has joined #ruby
ojacobson has quit [Ping timeout: 264 seconds]
lolmaus has joined #ruby
pygospa has joined #ruby
n80 has joined #ruby
kalusn has joined #ruby
Stalkr_ has joined #ruby
dropp has quit [Quit: leaving]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
atomiccc has joined #ruby
aspiers has quit [Ping timeout: 246 seconds]
Dude007 has joined #ruby
yfeldblum has joined #ruby
irc2samus has joined #ruby
jmignault has joined #ruby
iamjarvo has joined #ruby
<irc2samus> hello, I'm creating a gem and I'm having some trouble including static data; I've tried including those files in the gemspec as spec.files but they don't get copied, is there a proper way to handle it? thanks
iamjarvo has quit [Max SendQ exceeded]
basiclaser has joined #ruby
baweaver has joined #ruby
govg has quit [Ping timeout: 265 seconds]
iamjarvo has joined #ruby
govg has joined #ruby
cphrmky has joined #ruby
buub has joined #ruby
bklane has joined #ruby
n80 has quit [Quit: n80]
yqt has joined #ruby
davedev2_ has quit []
bricker has joined #ruby
ismaelga has quit [Remote host closed the connection]
davedev24_ has joined #ruby
<arup_r> workmad3: what is sane editor ? I'm using vim..
<apeiros_> irc2samus: adding them to spec.files should be sufficient. works for me at least.
adriancb has quit [Remote host closed the connection]
dumdedum has quit [Ping timeout: 265 seconds]
phale has joined #ruby
<phale> "how to disappear completely (and never be found)"
<irc2samus> apeiros_, I don't see them copied and I can't open them either, they're .txt files does that matter?
Wolland has joined #ruby
Wolland has quit [Client Quit]
<arup_r> vim is not helping to write coffeescript code
<irc2samus> the error shows the correct path but they aren't there
<apeiros_> irc2samus: no. only thing that matters is that the paths are correct. though, where did you put the files? I put them into GEM/data/GEM/*
<apeiros_> actually GEM/data/GEM_NAME/*
<phale> wtf is going on here
piotrj has joined #ruby
<irc2samus> apeiros_, they're currently in lib/GEM/data and I can find them on my working dir but after build/install they don't get copied
piotrj has quit [Remote host closed the connection]
<apeiros_> irc2samus: well, it's all guesswork now unless you show stuff
kayloos has joined #ruby
mkaesz has joined #ruby
n80 has joined #ruby
mkaesz has quit [Remote host closed the connection]
kalusn has quit [Read error: Connection reset by peer]
<irc2samus> apeiros_, here: https://gist.github.com/git2samus/e01de451df5d6fc141c7 traceback and gemspec
Renich has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
dtordable has quit [Quit: • IRcap • 8.72 •]
DEA7TH has joined #ruby
wallerdev has quit [Quit: wallerdev]
phale has left #ruby [#ruby]
MatthewsFace has joined #ruby
<apeiros_> irc2samus: odd. seems correct to me.
armyriad has quit [Ping timeout: 245 seconds]
armyriad has joined #ruby
Megtastique has quit []
bklane has quit [Ping timeout: 264 seconds]
adriancb has joined #ruby
zata has joined #ruby
ghostpl_ has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
jottr has joined #ruby
bklane has joined #ruby
last_staff has joined #ruby
ndrei has joined #ruby
<jhass> irc2samus: I guess it would be nice to have the repo or at least tarball of the repro at this point to repro locally
DouweM has joined #ruby
<jhass> *of the project
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
Notte has quit []
huddy has quit [Quit: Connection closed for inactivity]
wallerdev has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
exadeci has quit [Quit: Connection closed for inactivity]
Cache_Money has joined #ruby
chrishough has joined #ruby
timmow has quit [Ping timeout: 245 seconds]
maknz has joined #ruby
<irc2samus> jhass, apeiros_ there's not much besides that but here: https://github.com/git2samus/readability
jottr has quit [Ping timeout: 264 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xaxisx has quit [Quit: xaxisx]
baweaver has quit [Remote host closed the connection]
timmow has joined #ruby
jonr22 has joined #ruby
kirun has quit [Ping timeout: 264 seconds]
Rephiax has joined #ruby
govg has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 252 seconds]
govg has joined #ruby
<jhass> irc2samus: I get NoMethodError: undefined method `abbs_txt_relpath' for #<CommonAbbreviations:0x00000004c7d310> on your example call
PaulCapestany has quit [Quit: .]
ismaelga has joined #ruby
soulcake has quit [Changing host]
soulcake has joined #ruby
Hirzu has joined #ruby
DouweM has quit [Read error: Connection reset by peer]
bklane has quit [Ping timeout: 256 seconds]
IrishGringo has quit [Ping timeout: 265 seconds]
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
Xiti has quit [Quit: Xiti]
PaulCapestany has joined #ruby
jonr22 has quit [Ping timeout: 244 seconds]
Megtastique has joined #ruby
xaxisx has joined #ruby
lanemeyer has quit [Ping timeout: 252 seconds]
bklane has joined #ruby
_djbkd has quit [Remote host closed the connection]
<irc2samus> jhass, I see thank you; that was an error from a recent change while trying stuff but it didn't happened here which means I wasn't reinstalling it properly and was running an old version, works now with the code shown first
<irc2samus> thanks guys!
ndrei has joined #ruby
jin_ has quit [Remote host closed the connection]
hanmac has quit [Quit: Leaving.]
hanmac has joined #ruby
Asher has quit [Quit: Leaving.]
elaptics is now known as elaptics_away
sevvie has quit [Ping timeout: 246 seconds]
Hirzu has quit [Ping timeout: 264 seconds]
cjim_ has joined #ruby
thumpba has quit [Remote host closed the connection]
baweaver has joined #ruby
sevvie has joined #ruby
mistermocha has quit [Ping timeout: 264 seconds]
_djbkd has joined #ruby
thumpba has joined #ruby
SegFaultAX has quit [Excess Flood]
piotrj has joined #ruby
CorySimmons has quit [Quit: Bye!]
SegFaultAX has joined #ruby
cjim has quit [Ping timeout: 246 seconds]
ascarter has joined #ruby
mistermocha has joined #ruby
leafybasil has joined #ruby
Takle has quit [Remote host closed the connection]
kirun has joined #ruby
withnale__ has quit [Ping timeout: 272 seconds]
rhllor_ has joined #ruby
mistermocha has quit [Ping timeout: 264 seconds]
rhllor has quit [Ping timeout: 265 seconds]
rhllor_ is now known as rhllor
_hollywood has quit [Quit: Leaving]
dandaman has quit [Quit: Leaving.]
n80 has quit [Quit: n80]
dmr8 has joined #ruby
aswen has joined #ruby
dmr8 has quit [Remote host closed the connection]
tag has joined #ruby
zachrab has joined #ruby
CorySimmons has joined #ruby
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
freerobby has quit [Quit: Leaving.]
blackmesa has joined #ruby
_djbkd has quit [Quit: My people need me...]
nathanr has left #ruby [#ruby]
freerobby has joined #ruby
soulcake has quit [Quit: Quack.]
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 36.0/2015022000]]
plashchynski has joined #ruby
soulcake has joined #ruby
fantazo has joined #ruby
a5i has joined #ruby
icebourg has joined #ruby
sigurding has quit [Quit: sigurding]
tris has joined #ruby
Xiti has joined #ruby
reDkinG has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sigurding has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
iamjarvo has joined #ruby
postmodern has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
kaiZen has joined #ruby
atmosx is now known as atmosx_varoufits
atmosx_varoufits is now known as atmos_varoufitsa
nahob has joined #ruby
RegulationD has joined #ruby
<nahob> Is there a way I can reseed one table and not reset my whole dang database?
bklane has quit [Read error: Connection reset by peer]
NivenHuH has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
wald0 has joined #ruby
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n80 has joined #ruby
gfawcettpq has quit [Ping timeout: 244 seconds]
bklane has joined #ruby
jmignault has quit [Ping timeout: 245 seconds]
nahob has quit [Client Quit]
bklane has quit [Read error: Connection reset by peer]
bklane has joined #ruby
oki has quit [Ping timeout: 245 seconds]
tris has quit [Quit: Leaving]
abuzze has quit []
genpaku has quit [Ping timeout: 265 seconds]
xaxisx has quit [Quit: xaxisx]
genpaku has joined #ruby
g0bl1n has quit [Quit: g0bl1n]
<shadoi1> write a script :)
startupality has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
werelivinginthef has joined #ruby
willgorman has quit [Ping timeout: 246 seconds]
jshultz has joined #ruby
yh has quit [Ping timeout: 252 seconds]
yh has joined #ruby
Asher has joined #ruby
ki0 has joined #ruby
OrbitalKitten has joined #ruby
CorySimmons has quit [Quit: Bye!]
foureight84 has joined #ruby
mistermocha has joined #ruby
ki0 has quit [Read error: No route to host]
werelivinginthef has quit [Ping timeout: 246 seconds]
zachrab has quit [Remote host closed the connection]
freerobby has joined #ruby
freerobby has quit [Client Quit]
zachrab has joined #ruby
RegulationD has quit [Remote host closed the connection]
zenith_ has quit [Ping timeout: 244 seconds]
tris has joined #ruby
speakingcode has quit [Remote host closed the connection]
ismaelga has quit [Ping timeout: 264 seconds]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
atmos_varoufitsa is now known as atmosx
Mon_Ouie has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maximski has joined #ruby
Soda has quit [Remote host closed the connection]
zachrab has quit [Ping timeout: 255 seconds]
genpaku has quit [Ping timeout: 240 seconds]
jerematic has quit [Remote host closed the connection]
scripore has joined #ruby
maximski has quit [Read error: Connection reset by peer]
speakingcode has joined #ruby
maximski has joined #ruby
<scripore> anyway I can change ["self.id", "self.name"] to [self.id, self.name] ?
allcentury has quit [Ping timeout: 265 seconds]
maximski has quit [Max SendQ exceeded]
cjim__ has joined #ruby
bigmac has joined #ruby
genpaku has joined #ruby
mleung_ has joined #ruby
mleung has quit [Ping timeout: 246 seconds]
mleung_ is now known as mleung
<apeiros_> scripore: eval. and yes, it's bad.
<scripore> oh, okay, thanks
commmmodo has joined #ruby
maximski has joined #ruby
<apeiros_> maybe rethink your problem so you don't end up having to eval?
<apeiros_> e.g. with ["id", "name"] it'd be public_send, much better.
cjim__ has quit [Client Quit]
<yxhuvud> hmm. the only one in the eval family I tend to use is instance_exec.
<yxhuvud> or well, tend to may be a bit strong, but at least it exist in the code base
cjim_ has quit [Ping timeout: 252 seconds]
<apeiros_> it's funny - back in 1.8, I missed instance_exec dearly. but now I almost never use it. it's almost always instance_eval.
<TheNet> eval is nice when you're doing dynamic method calls
<apeiros_> TheNet: no. absolutely not.
<apeiros_> TheNet: that's precisely the thing you use public_send for.
speakingcode has quit [Remote host closed the connection]
<baweaver> +1 ^
<baweaver> eval is asking for a massive security hole
<TheNet> apeiros_: sorry that's actually what I was thinking of
cjim__ has joined #ruby
<TheNet> I don't know why I thought that was eval
ndrei has quit [Ping timeout: 255 seconds]
<baweaver> minimize dynamics as much as possible, including send type methods
cr3 has joined #ruby
jottr has joined #ruby
bklane has quit [Read error: Connection reset by peer]
<cr3> hi folks, I just tried to install rvm under /opt/rvm but the rvm bin ends up in /opt/rvm/bin/rvm/bin/rvm... wtf?
blackmesa has quit [Ping timeout: 272 seconds]
willgorman has joined #ruby
ndrei has joined #ruby
<yxhuvud> apeiros: btw, what do you mean by missing instance_exec? it existed during 1.8
<yxhuvud> or was it introduced sometime during it? Hmm.
bklane has joined #ruby
allcentury has joined #ruby
xaxisx has joined #ruby
C1V0 has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
<apeiros_> yxhuvud: 1.8.7 was the first to have it
<scripore> apeiros: I might stick with eval for now and refactor later. this is just for a school assignment.
<tubuliferous> Hey folks, I have a regular expression question...
<apeiros_> and that was about 5y after I started ;-)
dc_ has quit [Remote host closed the connection]
<tubuliferous> I have this line:
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tubuliferous> excuse me, this string:
<tubuliferous> text1text2|||A|BA|BA|BA|BA|BA|B
<tubuliferous> and I want to replace all of the pipes between the As and Bs with tabs
<apeiros_> tubuliferous: String#tr
maximski has quit [Ping timeout: 252 seconds]
tearan_ has joined #ruby
commmmodo has quit [Quit: commmmodo]
yfeldblum has joined #ruby
jottr has joined #ruby
baweaver has quit [Remote host closed the connection]
bklane has quit [Ping timeout: 265 seconds]
allcentury has quit [Ping timeout: 265 seconds]
Inv1s1ble has joined #ruby
maximski has joined #ruby
teddyp1c_ has quit [Remote host closed the connection]
maximski has quit [Max SendQ exceeded]
SumoBoy has quit [Quit: Leaving]
<tubuliferous> well...this one is particularly tricky, apeiros_...
naftilos76 has joined #ruby
<tubuliferous> that line is representative of many lines that I need to loop through...
maximski has joined #ruby
kadoppe has quit [Ping timeout: 264 seconds]
tearan has quit [Ping timeout: 265 seconds]
maximski has quit [Max SendQ exceeded]
<Inv1s1ble> huh..there's a logic error in here and I can't figure it out. It looks identical to a validation block below it that works, so I must just have an incorrect something: http://paste.dollyfish.net.nz/2ca935
<tubuliferous> I was just doing a string.gsub("|", "\t") on each line...
blackmesa has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<tubuliferous> until I noticed the three pipes after text2
<Inv1s1ble> It should check that if @options[:fixtures] is present, that it exists in FIXTURES
ismaelga has joined #ruby
<tubuliferous> so basically I want to gsub everything after those three pipes
bklane has joined #ruby
<tubuliferous> I can't think of a good way to do it
iamjarvo has joined #ruby
<apeiros_> tubuliferous: can you think of a bad way to do it?
<tubuliferous> hahaha...yes
<apeiros_> gist it
Takle has joined #ruby
<tubuliferous> gist?
commmmodo has joined #ruby
<tubuliferous> oh, the bad way?
<tubuliferous> you want to hear my bad way?
kadoppe has joined #ruby
<apeiros_> yes
<tubuliferous> I could split each line into an array on the tabs...
BTRRY has joined #ruby
tearan_ has quit [Read error: Connection reset by peer]
<tubuliferous> then for each element starting with array[2] do the replacement
BTRE has quit [Read error: Connection reset by peer]
mwlang has joined #ruby
<tubuliferous> so...
dc_ has joined #ruby
dfinninger has quit [Remote host closed the connection]
<apeiros_> you mean, split it on the pipes?
Pupeno_ has joined #ruby
<tubuliferous> nah...
<tubuliferous> I'll send you the code...one second =)
<mwlang> Does anyone know how long net-ldap’s Net::LDAP.new holds a connection? I’m integrating some LDAP lookups into a Rails app and I’m not sure if I can just initialize and bind the LDAP connection at app start up or if I need to plan to handle reconnectining.
<apeiros_> tubuliferous: gist.github.com
Flcn has joined #ruby
<tubuliferous> oh, got it
<tubuliferous> I've never used gist
<tubuliferous> thanks for the link
maximski has joined #ruby
<tubuliferous> just a minute more...
makerop has joined #ruby
maximski has quit [Max SendQ exceeded]
<makerop> can anyone point me on a primer to testing gems?
Hijiri has quit [Quit: WeeChat 1.0.1]
<makerop> im having some trouble with private methods
piotrj has quit [Remote host closed the connection]
Pupeno has quit [Ping timeout: 265 seconds]
maximski has joined #ruby
thiagovsk has joined #ruby
<mwlang> makerop: testing private methods is a little tricky. You’ll have to use #send to trigger them from outside the object’s scope.
maximski has quit [Max SendQ exceeded]
DerisiveLogic has quit [Ping timeout: 256 seconds]
<makerop> mwlang, I actually am doign that
<makerop> but, it doesnt want to seem to work
<makerop> let me gist really quick
<mwlang> makerop: ok
Olipro_ has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
<jhass> well, private methods should be for internal organization, from callers perspective their behavior is part of the public API that calls them internally
bigmac has quit [Read error: Connection reset by peer]
maximski has joined #ruby
bigmac has joined #ruby
maximski has quit [Max SendQ exceeded]
dandaman has joined #ruby
<makerop> the pw/user name is dummy
maximski has joined #ruby
<jhass> makerop: ugh, why globals :(
maximski has quit [Max SendQ exceeded]
irc2samus has quit [Quit: Leaving]
towski_ has joined #ruby
<makerop> jhass, I didnt write it, im just trying to adapt the tests
<makerop> er...write the tests
<makerop> but, what's considered a global in this context?
<shadoi1> $root_url
<shadoi1> make it constant
maximski has joined #ruby
<makerop> it's not a constant though
<jhass> or an instance variable
<shadoi1> if it's not a constant then it's ripe for bugs as a global.
maximski has quit [Client Quit]
<jhass> makerop: anyway, that private method is part of get_resource's behavior
<TheNet> is there a way to define a rescue block for all of the methods in a class/module?
<jhass> no
<makerop> it's part of get_resources?
<jhass> I see no other call to it
<makerop> I thoguth it was a function of ServiceNow::Facter.new
BTRRY is now known as BTRE
<apeiros_> tubuliferous: alternative suggestion: left, right = str.split("|||", 2); line = "#{left}|||#{right.tr("|", "\t")}"
<makerop> there is a priavte method check_configuration
hgl has quit [Ping timeout: 272 seconds]
<tubuliferous> holy moly
<jhass> oh, you posted unrelated code?
jenrzzz has joined #ruby
<makerop> every time you instantiate ServiceNow::Facter.new, it calls check_configuration
<tubuliferous> good idea, apeiros_
<tubuliferous> thanks!
<makerop> jhass, no it's all related
Olipro_ has quit [Excess Flood]
<makerop> configuartion and facter are in lib/
<jhass> makerop: anyway, then it's part of self.where and #initialize
<jhass> now let me please no longer look at that mess
decoponio has quit [Quit: Leaving...]
Olipro_ has joined #ruby
hgl has joined #ruby
Hijiri has joined #ruby
bklane has quit [Ping timeout: 256 seconds]
gregf has joined #ruby
rodfersou has quit [Quit: leaving]
ojacobson has joined #ruby
dfinninger has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
ismaelga has quit [Ping timeout: 272 seconds]
bklane has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
yfeldblum has quit [Remote host closed the connection]
dandaman has quit [Quit: Leaving.]
ojacobson_ has quit [Ping timeout: 264 seconds]
zacts has quit [Quit: leaving]
Olipro_ has quit [Ping timeout: 252 seconds]
reinaldob has quit [Remote host closed the connection]
elaptics_away is now known as elaptics
reinaldob has joined #ruby
paulfm has quit [Quit: Zzzzz...]
aclearman037 has quit [Quit: I'm out!]
kromm has joined #ruby
bigmac has quit [Read error: No route to host]
MasterPiece has quit [Remote host closed the connection]
ismaelga has joined #ruby
iwaffles has quit [Quit: iwaffles]
yeticry has quit [Ping timeout: 256 seconds]
FooMunki_ has quit [Quit: FooMunki_]
yeticry has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
bklane has quit [Read error: Connection reset by peer]
startupality has quit [Quit: startupality]
brb3 has quit [Quit: <.<]
gccostabr has quit [Quit: ZZZzzz…]
<sparr> I'm not sure if this is a ruby or rails or passenger problem... When passenger is refusing connections and spamming my apache error log with "Cannot accept client: Too many open files (errno=24). Stop accepting clients for 3 seconds.", what can cause that if my ruby code doesn't open a lot of files? Is there a way to find out what file(s) it's trying and failing to open?
maximski has joined #ruby
lanemeyer has joined #ruby
<apeiros_> sparr: you can use lsof to figure which files are open
<apeiros_> sparr: your app is probably leaking file handles. i.e. you open them and don't close them
<jhass> note that "file" might mean file descriptor here, so sockets too
bluOxigen has quit [Ping timeout: 256 seconds]
reinaldob has quit [Ping timeout: 264 seconds]
maximski has quit [Max SendQ exceeded]
scripore has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
dotix has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
maximski has quit [Max SendQ exceeded]
last_staff has quit [Quit: last_staff]
bklane has joined #ruby
maximski has joined #ruby
roshanavand has joined #ruby
<a5i> Lotusrb!
maximski has quit [Max SendQ exceeded]
<dotix> hello! is there any functional hack to multiply first two and last two elemnts of array, then add the result? [1,2,3,4] => 1*2 + 3*4
cr3 has left #ruby [#ruby]
maximski has joined #ruby
dandaman has joined #ruby
<jhass> dotix: honestly, I'd just expand it, a, b, c, d = ary; a*b + c*d
<jhass> with proper variable names describing your data
lektrik has quit [Ping timeout: 244 seconds]
maximski has quit [Max SendQ exceeded]
sevvie has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
maximski has joined #ruby
<dotix> yes, that's my current version. Thought that maybe is anything more idiomatic
maximski has quit [Max SendQ exceeded]
Olipro_ has joined #ruby
<workmad3> dotix: if you need to ignore intermediate vars, you can do 'a, b, *, c, d = ary'
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
shadeslayer has quit [Ping timeout: 264 seconds]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
baweaver has joined #ruby
maximski has joined #ruby
Ankhers has quit [Ping timeout: 256 seconds]
maximski has quit [Max SendQ exceeded]
<workmad3> dotix: the ways I can think of to do it with enumerator methods are uglier than 'a,b,c,d = ary; a * b + c * d' though
xpoqp has left #ruby ["WeeChat 1.1.1"]
zorak8 has joined #ruby
* apeiros_ see's zip & inject glowing up in workmad3's eyes
zachrab has joined #ruby
rbennacer has quit [Ping timeout: 272 seconds]
Morkel has quit [Quit: Morkel]
maximski has joined #ruby
<apeiros_> stop the crazy! now, while you still can!
<dotix> :D
<workmad3> dotix: e.g. ary[0,2].inject(&:*) + ary[-2,2].inject(&:*)
<dotix> can't see how your version will work workmad3
<apeiros_> what? no zip? me disappoint
<dotix> yes but that's quite ugly
maximski has quit [Max SendQ exceeded]
<workmad3> apeiros_: my first even worse version used each_slice(2) ;)
<baweaver> >> [0,2].reduce(:*)
<eval-in_> baweaver => 0 (https://eval.in/297905)
<workmad3> >>[1,2,3,4].map.each_slice(2).map{|a,b| a * b}.inject(:+)
<eval-in_> workmad3 => 14 (https://eval.in/297906)
ldnunes has quit [Quit: Leaving]
naftilos76 has quit [Remote host closed the connection]
maximski has joined #ruby
max96at is now known as max96at|off
<apeiros_> oh, no enumerator form of inject. so sad.
<baweaver> kinda wish it was named foldL
maximski has quit [Max SendQ exceeded]
<dotix> Maybe I will stick with normal a, b, c, d = ary; a*b + c*d.. I tend to use .inject 0, :+ when I add (or do something else with all of them)
<workmad3> dotix: I was meaning that a,b,*,c,d = ary will assign a and b the first two items of ary, c and d the last two, and ignore the rest
<dotix> it's ugly to use slice twice
<dotix> oh.. I know that
maximski has joined #ruby
hiyosi has joined #ruby
shadeslayer has joined #ruby
<workmad3> dotix: and I didn't bother repeating the rest of what jhass said :P
jonr22 has joined #ruby
OrbitalKitten has joined #ruby
<dotix> [1,2,3,4].map.each_slice(2).map{|a,b| a * b}.inject(:+) looks nice though..
delianides has quit [Remote host closed the connection]
maximski has quit [Max SendQ exceeded]
<jhass> no, it doesn't
<jhass> now for two terms
sigurding has quit [Quit: sigurding]
<jhass> *not
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maximski has joined #ruby
<dotix> well maybe I was hoping for some magic method from 2.2.1
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
maximski has quit [Max SendQ exceeded]
bruno- has joined #ruby
zachrab has quit [Ping timeout: 272 seconds]
<baweaver> >> [1,2,3,4].each_slice(2).reduce(0) { |a, (x,y)| a + x * y }
<eval-in_> baweaver => 14 (https://eval.in/297910)
<workmad3> dotix: you mean something like Array#read_my_mind_and_do_random_op_that_i_want ?
<workmad3> dotix: I think that's slated for Ruby 3.0 atm :P
maximski has joined #ruby
<dotix> :D
<dotix> Hope so
<jhass> workmad3: I hope they find a better name do
<jhass> *though
ramfjord has joined #ruby
maximski has quit [Max SendQ exceeded]
<jhass> today's not my day either :/
Matadoer_ has joined #ruby
<workmad3> heh
<baweaver> array.dhh_it
<jhass> Kernel#magic
<baweaver> ?
<workmad3> baweaver: that'll be the rails 5 activesupport patch for it
<jhass> which is just an alias to BasicObject#__magic of course
<dotix> workmad3, looks like a normal objc method
maximski has joined #ruby
Matadoer_ is now known as Matadoer
atomiccc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jonr22 has quit [Ping timeout: 246 seconds]
<workmad3> dotix: wouldn't it be readMyMindAndDoRandomOpThatIWant in objc?
<dotix> but without snakes
<dotix> yeah ofc
<workmad3> :)
maximski has quit [Max SendQ exceeded]
<ramfjord> Any of you guys know how IO#eof? can hang indefinitely after IO::select has returned stream?
elfuego has quit [Quit: elfuego]
kobain has joined #ruby
<jhass> ramfjord: yes, the other side didn't send you an EOF
m8 has quit [Quit: Sto andando via]
ych4k3r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kobain has quit [Max SendQ exceeded]
wald0_ has joined #ruby
kayloos has quit [Remote host closed the connection]
maximski has joined #ruby
<jhass> or you don't advance the position in the file anymore while polling it or whatever
wald0 has quit [Quit: Lost terminal]
zachrab has joined #ruby
kalusn has joined #ruby
commmmodo has quit [Quit: commmmodo]
<jhass> check its docs, it mentions both cases
xaxisx has quit [Quit: xaxisx]
oki has joined #ruby
atomiccc has joined #ruby
<ramfjord> so I should check for any unhandled errors/exceptions in the writer thread
elfuego has joined #ruby
maximski has quit [Client Quit]
<TheNet> there should be a button on ruby doc called 'View doc in 2.2.1'
allcentury has joined #ruby
_ixti_ is now known as ixti
<ramfjord> TheNet: like postgres docs - click the version number of the top of any page
kayloos has joined #ruby
<ponga> oh yay new macbook retina
<ponga> but M core
cphrmky has quit [Quit: Textual IRC Client: www.textualapp.com]
cjim___ has joined #ruby
kalusn has quit [Ping timeout: 246 seconds]
elfuego has quit [Client Quit]
baweaver has quit [Remote host closed the connection]
wald0_ has quit [Quit: Lost terminal]
hmsimha has joined #ruby
centrx has quit [Remote host closed the connection]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alvaro_o has quit [Quit: Ex-Chat]
doodlehaus has quit [Remote host closed the connection]
cphrmky has joined #ruby
sevvie has joined #ruby
cjim__ has quit [Ping timeout: 250 seconds]
slash_ni1k has quit [Changing host]
slash_ni1k has joined #ruby
slash_ni1k is now known as slash_nick
zata has quit [Quit: zata]
ismaelga has quit [Remote host closed the connection]
la has joined #ruby
la has quit [Client Quit]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scripore has quit [Quit: This computer has gone to sleep]
allcentury has quit [Ping timeout: 256 seconds]
Aswebb_ has quit [Ping timeout: 245 seconds]
Aswebb__ has joined #ruby
Soda has joined #ruby
Dolphi has joined #ruby
OrbitalKitten has joined #ruby
zacts has joined #ruby
fantazo has quit [Quit: Verlassend]
lanemeyer has quit [Ping timeout: 246 seconds]
zacts is now known as Guest57378
baweaver has joined #ruby
oki has quit [Read error: Connection reset by peer]
oki has joined #ruby
DerisiveLogic has joined #ruby
freerobby has joined #ruby
Guest57378 has quit [Client Quit]
Dmr has quit [Quit: Leaving]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
zacts- has joined #ruby
zacts- has quit [Client Quit]
scripore has joined #ruby
kromm has left #ruby [#ruby]
zacts- has joined #ruby
zacts- has quit [Client Quit]
<bricker> I want a type of method visibility where only a class's instances can call its class methods
zachrab has quit [Remote host closed the connection]
jonr22 has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
sgambino has quit [Remote host closed the connection]
zachrab has joined #ruby
<TheNet> what do you guys think about this logging style http://cl.ly/image/1V2J3X3b1t0m over a more traditional logging style like this http://cl.ly/image/0j3t390O2r1n ?
cjim___ has quit [Quit: (null)]
bklane has quit [Ping timeout: 256 seconds]
it0a has quit [Ping timeout: 264 seconds]
Squarepy has joined #ruby
dotix has quit [Quit: Leaving]
buub has quit [Ping timeout: 256 seconds]
jespada has quit [Ping timeout: 246 seconds]
icebourg has quit []
bklane has joined #ruby
elfuego has joined #ruby
<makerop> if I have an object that looks like this: #<ServiceNow::Client:0x00000001fa1990 @url="URL.COM">
zachrab has quit [Ping timeout: 256 seconds]
yfeldblum has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
<makerop> do I have to setup an explicit getter to reference @url
dandaman has quit [Quit: Leaving.]
ndrei has joined #ruby
<jhass> bricker: private constant :P
<bricker> jhass: interesting, I hadn't considered it...
<jhass> class Foo; module Helpers; module_function; def foo; end; end; private_const :Helpers or something like that :D
<bricker> jhass: and hey I could make it a proc ;)
<bricker> jhass: oh I see
nicolastarzia has joined #ruby
<jhass> no, I never tried this I probably would frown upon it in prod ;)
kaiZen has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<bricker> jhass: I think it's actually a pretty elegant way to share code between class and instance without having to expose a public API, y'know?
<jhass> I tend to use # :nodoc: though
Squarepy has quit [Quit: Leaving]
<jhass> or # @api private in yard speak
mitchellhenke has quit [Quit: Computer has gone to sleep.]
ismaelga has joined #ruby
scripore has joined #ruby
<bricker> jhass: yeah but saying a method is private and actually making it private are two different things... well, in most languages anyways :)
<jhass> exactly, in ruby private is just code level documentation :P
adriancb has quit [Remote host closed the connection]
ojacobson has quit [Quit: Leaving...]
kayloos has quit [Remote host closed the connection]
<bricker> jhass: but a good developer will feel badly, and will be especially cautious, about using send() and
<bricker> you know
B1n4r10 has quit [Quit: Textual IRC Client: www.textualapp.com]
kalusn has joined #ruby
<bricker> *shrug*
bklane has quit [Ping timeout: 252 seconds]
<bricker> I prefer to "enforce" the visibility of a method
<jhass> a good developer will take at least a peak at the docs and be cautious about using private API, whether doing so involves send or not
<jhass> the positive part about send is, that if you use public_send for meta programming purposes it's easy to grep for
<bricker> jhass: also with just the doc method you don't get some niceties, like `respond_to?` respecting private methods
<bricker> same with #methods()
<bricker> jhass: i.e. if I type `my_obj.methods` and see a method listed there, I assume it's public and won't always check the documentation for every single method I call
roolo_ has joined #ruby
<jhass> anyway, I usually don't bother whether private methods use instance data or not, I just make them instance methods
<jhass> it's rare to have them on a class while calling them from both, class and instance level methods
juanpaucar has quit [Remote host closed the connection]
<jhass> those usually are good candidates for a helper module anyway
juanpaucar has joined #ruby
yfeldblum has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
RegulationD has joined #ruby
kalusn has quit [Ping timeout: 245 seconds]
bklane has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
roolo has quit [Ping timeout: 264 seconds]
randiman has quit [Quit: (null)]
Dolphi has quit [Ping timeout: 246 seconds]
HOrangeJewce has quit [Quit: Leaving.]
d10n-work has quit [Quit: Connection closed for inactivity]
juanpaucar has quit [Ping timeout: 246 seconds]
piotrj has joined #ruby
granitosaurus has joined #ruby
phutchins has quit [Ping timeout: 264 seconds]
Stalkr_ has quit [Quit: Leaving...]
aspiers has joined #ruby
DerisiveLogic has quit [Ping timeout: 252 seconds]
psyprus has quit [Changing host]
psyprus has joined #ruby
tgunr has joined #ruby
willgorman is now known as willgorman|away
tvw has joined #ruby
<granitosaurus> Hi, quick question, how do I run a ruby gem?
<jhass> granitosaurus: depends on the gem
<jhass> its readme should have an example
foureight84 has quit [Quit: Be back later ...]
<granitosaurus> I'm currently trying to set up https://github.com/frosas/spotify-to-mp3 however my distro set up a bit differently so the setup there fails to sys link I guess
alem0lars has quit [Ping timeout: 252 seconds]
<jhass> can you be less vague? Like a lot less vague?
nicolastarzia has quit [Remote host closed the connection]
jespada has joined #ruby
shazaum has quit [Quit: Leaving]
spyderman4g63 has quit [Read error: Connection reset by peer]
c130b128 has joined #ruby
riotjone_ has joined #ruby
c130b128 has left #ruby [#ruby]
spyderman4g63 has joined #ruby
cpt_yossarian has quit [Ping timeout: 256 seconds]
chrishough has joined #ruby
<makerop> should that test pass?
<jhass> makerop: no
<jhass> you need the block form of expect
<jhass> expect { call }.to raise_error
<kaleido> oh yuck, is that really for ServiceNow?
<makerop> jhass, ah thanks
<makerop> yes.
riotjones has quit [Ping timeout: 265 seconds]
<kaleido> i feel your pain :(
aswen has joined #ruby
<jhass> granitosaurus: so if you want any help you need to actually describe what your setup is, what steps you took and which one failed and how it failed (by showing error messages)
yfeldblum has quit [Remote host closed the connection]
relix has joined #ruby
yfeldblum has joined #ruby
heyimwill has quit [Ping timeout: 252 seconds]
DLSteve has joined #ruby
mpeck has joined #ruby
giuseppesolinas has quit [Quit: Leaving]
ghostpl_ has quit [Remote host closed the connection]
krasnus has quit [Ping timeout: 276 seconds]
<granitosaurus> jhass: I'm running opensuse 13.2 with ruby and rubygems at 2.1
gphummer has joined #ruby
tier has quit [Remote host closed the connection]
<gphummer> Hi all - I just started using rbenv. Why does ruby -v say I’m using version 2.0.0 but rbenv which ruby say I’m using 2.2.1?
bigmac has joined #ruby
<granitosaurus> I've installed the gem that I need via "gem install spotify-to-mp3" and it does appear on "gem list" command but I don't have a clue how to actually execute it
Sgeo has joined #ruby
bklane has quit [Ping timeout: 256 seconds]
erts has joined #ruby
dc_ has quit [Remote host closed the connection]
<jhass> gphummer: *shrug*, try running rbenv rehash in a permanent loop
<mwlang> hmmm…does VCR not watch on localhost ports?
<granitosaurus> well yeah I'm pretty aware of that. The thing is I'm not running ubuntu and the structure seems different enough for it not to work
<granitosaurus> is there something like gem run <gem_name> or something along the lines?
<granitosaurus> i.e. as 'python -m <package_name>' in python
<miah> probably just `spotify-to-mp3`
Asher has quit [Quit: Leaving.]
<granitosaurus> doesn't ring up anything
<miah> you can do gem contents spotify-to-mp3
<jhass> granitosaurus: those examples are plain shell commands
commmmodo has joined #ruby
<miah> to get more details about its contents
seal has joined #ruby
<jhass> granitosaurus: so you're getting command not found or what? I asked for error messages
<miah> ya, its usage on github looks like just 'spotify-to-mp3'
<granitosaurus> jhass: yes, command not found
bklane has joined #ruby
piotrj has quit [Remote host closed the connection]
<miah> you might need to include your gem bins path in your $PATH
<jhass> granitosaurus: does ls $(gem env | grep "EXECUTABLE DIRECTORY" | cut -d: -f2) list it?
lioninawhat has joined #ruby
baweaver has quit [Remote host closed the connection]
Olipro_ has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Ping timeout: 256 seconds]
<granitosaurus> only lists /usr/bin
Flcn has quit [Quit: Be back later ...]
lioninawhat has quit [Client Quit]
kirun has quit [Quit: Client exiting]
Rephiax has quit [Ping timeout: 265 seconds]
<jhass> do you still have the output of the gem install?
kobain has joined #ruby
chrisja has quit [Quit: leaving]
DEA7TH has quit [Ping timeout: 255 seconds]
Rephiax has joined #ruby
deric_skibotn has quit [Ping timeout: 252 seconds]
zachrab has joined #ruby
kobain has quit [Max SendQ exceeded]
sn0wb1rd has quit [Ping timeout: 245 seconds]
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
roshanavand has quit [Ping timeout: 250 seconds]
mistermocha has quit [Ping timeout: 272 seconds]
NivenHuH has joined #ruby
seal has quit [Quit: Ex-Chat]
nicolastarzia has joined #ruby
baweaver has joined #ruby
ptrrr has quit [Quit: ptrrr]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
NivenHuH has quit [Client Quit]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zerodayz has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<zerodayz> Hélio are there a bug bunty reward for ruby ?
maknz has quit [Quit: Textual IRC Client: www.textualapp.com]
DerisiveLogic has joined #ruby
jlast has quit [Remote host closed the connection]
<zerodayz> hello*
<jhass> zerodayz: look around at bountysource.com, should have a few ruby projects
jespada has quit [Ping timeout: 252 seconds]
tvon has quit [Quit: leaving]
jespada has joined #ruby
<zerodayz> jhass i see it, but i just want to know if it exist for ruby website
<jhass> I don't follow
<wallerdev> he hacked into ruby-lang.org and wants ca$h
OrbitalKitten has joined #ruby
<jhass> I'm sure bricker has some bricker coins to spare
<zerodayz> I hacked nothink
<wallerdev> 0s for days
<zerodayz> I just found a critical vulnerability on ruby website
jenrzzz has joined #ruby
<wallerdev> i dont think theyre offering a bug bounty
<wallerdev> i dont think they even make money lol
<wallerdev> its not like you pay to use ruby
enebo has quit [Quit: enebo]
<zerodayz> ok but they do it for ruby langage why not for there website ?
<jhass> isn't that static HTML these days?
AlphaTech has joined #ruby
<jhass> I'm sure the guys listening there will know where to direct you
bklane has quit [Ping timeout: 246 seconds]
sn0wb1rd has joined #ruby
<zerodayz> thx jhass
<wallerdev> because no one really cares if the ruby website is hacked, but companies care if theyre using ruby and their site has a vulerability
<wallerdev> lol
<wallerdev> just guessing
<wallerdev> one seems much more serious than the other
jobewan has quit [Quit: Leaving]
<zerodayz> You are serious ?
<jhass> yeah it's jekyll
<jhass> I wonder what could be hacked there, lol
bklane has joined #ruby
<wallerdev> ooh submit a bug bounty to github!
Aswebb__ has quit [Remote host closed the connection]
<wallerdev> theyll probably pay
<zerodayz> if someone hack there server and corrupt the download file
<jhass> ah, good ole ftp is shitty again?
<zerodayz> i Did it for other website and tool like Google chrome browser
<wallerdev> you hacked google and uploaded a corrupt chrome browser for everyone to download?
<wallerdev> honestly if you really want money you should contact the owner of ruby-lang.org
<bradland> zerodayz: Ruby is a community project without the resources of a large company, so it is unlikely that there is a bug bounty for website vulnerabilities.
<wallerdev> and see if they will pay you
Nuck has joined #ruby
<wallerdev> if not you're SOL
<wallerdev> no one here is going to pay you haha
Yzguy has joined #ruby
zachrab has quit [Remote host closed the connection]
Yzguy has quit [Max SendQ exceeded]
<bradland> but the community would certainly appreciate any contribution you'd be willing to make, such as disclosing the website vulnerability through the security page
Nuck has quit [Max SendQ exceeded]
<jhass> actually you can have my prime coins
<miah> ruby is one of the things you report on for the good of the community
zachrab has joined #ruby
Yzguy has joined #ruby
<miah> ibm / google is who you ask for money, because they're large corporate entities
<wallerdev> +1
Nuck has joined #ruby
<mwlang> ah, ha! So, VCR *only* intercepts HTTP requests….is that correct?
<zerodayz> Ok
<wallerdev> although i think ibm is going broke
<mwlang> I was trying to set up VCR to capture LDAP requests for the Ruby Net::LDAP connector
<wallerdev> didnt they just lay off a ton of people
<jhass> wallerdev: try to find out who runs the mailserver for lufthansa
<miah> wallerdev: they have been shedding employees for like 20 years now
<wallerdev> lol
<miah> every year
<miah> they got out of a ton of businesses too
<wallerdev> oh well
<wallerdev> my friend used to work for them at one point
<miah> ya same
<jhass> wallerdev: it's out sourced to lufthansa services or something which, out sourced it to IBM which seem to have it outsouced back to them onto their cloud that's just reselling IBM hardware
<miah> i know lots of people that used to work for them
<miah> ive done a little with net::ldap, i never tried to use vcr with it though
<jhass> lufthansa systems was the name!
<jhass> ^ that's jsut reselling IBM
<wallerdev> lol
kith has joined #ruby
<mwlang> miah: Having figured that out and re-reading docs and digging in the code, it looks like its definitely constrained to just HTTP protocol.
<miah> mwlang: interesting. noted =)
zerodayz has quit [Quit: Page closed]
zachrab has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby
wicope has quit [Remote host closed the connection]
C1V0 has quit []
dfinninger has quit [Remote host closed the connection]
dandaman has joined #ruby
dfinninger has joined #ruby
jeff_laplante has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
juanpablo_ has quit [Quit: (null)]
mistermocha has joined #ruby
juanpablo_ has joined #ruby
bklane has quit [Ping timeout: 256 seconds]
deric_skibotn has joined #ruby
jespada has quit [Ping timeout: 250 seconds]
rhllor has quit [Quit: rhllor]
scripore has joined #ruby
scripore has quit [Client Quit]
dfinninger has quit [Ping timeout: 256 seconds]
bklane has joined #ruby
mpeck has quit [Quit: Textual IRC Client: www.textualapp.com]
ismaelga has quit [Remote host closed the connection]
Olipro_ has joined #ruby
juanpablo_ has quit [Ping timeout: 252 seconds]
tris has quit [Ping timeout: 256 seconds]
mistermo_ has joined #ruby
fryguy9 has quit [Quit: Leaving.]
mistermocha has quit [Read error: Connection reset by peer]
sevvie has quit [Ping timeout: 265 seconds]
oki has quit [Read error: Connection reset by peer]
sevvie has joined #ruby
ismaelga has joined #ruby
oki has joined #ruby
bklane has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
bklane has joined #ruby
bigmac has quit [Quit: Leaving]
gregf has quit [Quit: WeeChat 1.1.1]
mistermo_ has quit [Ping timeout: 265 seconds]
justin_pdx has joined #ruby
lanemeyer has joined #ruby
gregf has joined #ruby
scott1 has joined #ruby
havenwood has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ismaelga has quit [Remote host closed the connection]
doodlehaus has joined #ruby
charliesome has joined #ruby
<zenspider> Got dead code? Don't know if you do? debride version 1.0.0 has been released! | software releases by ryan davis - http://blog.zenspider.com/releases/2015/03/debride-version-1-0-0-has-been-released.html
bklane has quit [Ping timeout: 256 seconds]
it0a has joined #ruby
bradleyprice has quit [Remote host closed the connection]
bricker has quit [Quit: leaving]
scott1 has quit [Quit: WeeChat 1.1.1]
zachrab has joined #ruby
zachrab has quit [Remote host closed the connection]
lordkryss has quit [Quit: Connection closed for inactivity]
aspiers has quit [Ping timeout: 252 seconds]
zachrab has joined #ruby
tier has joined #ruby
aspiers has joined #ruby
bklane has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
narcan has joined #ruby
sevvie has quit [Ping timeout: 265 seconds]
sevvie has joined #ruby
ismaelga has joined #ruby
einarj has quit [Remote host closed the connection]
ghostpl_ has joined #ruby
zachrab has quit [Ping timeout: 245 seconds]
igorshp has joined #ruby
jespada has joined #ruby
<GaryOak_> just looked up the definition of debride, spot on gem name
dfinninger has joined #ruby
plashchynski has quit [Quit: plashchynski]
plashchynski has joined #ruby
allcentury has joined #ruby
bklane has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
GaryOak_ has quit [Remote host closed the connection]
Azure has quit [Max SendQ exceeded]
thiagovsk has quit [Quit: Connection closed for inactivity]
Renich has quit [Quit: leaving]
bklane has joined #ruby
iamjarvo has joined #ruby
Hijiri has joined #ruby
ghostpl_ has quit [Ping timeout: 246 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
gregf has quit [Ping timeout: 256 seconds]
plashchynski has quit [Quit: plashchynski]
RegulationD has quit [Remote host closed the connection]
dandaman has quit [Quit: Leaving.]
plashchynski has joined #ruby
baweaver has quit [Ping timeout: 255 seconds]
nicolastarzia has quit []
AlphaTech is now known as AlphaTech|AWAY
bklane has quit [Read error: Connection reset by peer]
nfk has quit [Quit: yawn]
baweaver has joined #ruby
bklane has joined #ruby
chipotle has quit [Quit: cheerio]
nicolastarzia has joined #ruby
jottr has quit [Quit: WeeChat 1.1.1]
livingstn has quit []
Azure has joined #ruby
jottr has joined #ruby
kobain has joined #ruby
oki has quit [Ping timeout: 272 seconds]
Azure has quit [Read error: Connection reset by peer]
scripore has joined #ruby
_maes_ has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
hiyosi has joined #ruby
wldcordeiro has quit [Ping timeout: 252 seconds]
gregf has joined #ruby
Dopagod has joined #ruby
Dopagod has quit [Client Quit]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
OrbitalKitten has joined #ruby
tier has quit [Remote host closed the connection]
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dc_ has joined #ruby
ascarter_ has joined #ruby
bklane has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
ascarter has quit [Ping timeout: 246 seconds]
doodlehaus has quit [Remote host closed the connection]
maletor has joined #ruby
bklane has joined #ruby
mikeric has joined #ruby
ismaelga has quit [Remote host closed the connection]
doodlehaus has joined #ruby
juanpaucar has quit [Ping timeout: 244 seconds]
mesamoo has quit [Quit: Konversation terminated!]
dandaman has joined #ruby
doodlehaus has quit [Remote host closed the connection]