havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
cfec0b8d has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 268 seconds]
cschneid_ has quit [Ping timeout: 255 seconds]
chaugiang has joined #ruby
ecuanaso has joined #ruby
KeyJoo has quit [Ping timeout: 260 seconds]
username has quit [Ping timeout: 255 seconds]
xco has joined #ruby
<xco> hash = {“hi” => “hello} i’d like to do something like hash[/hi/i] where /hi/.i as provided key would be a string. how do i do that? :)
<xco> where /hi/i **
<xco> so i’m looking to do something like hash[/hi/i.to_s] so i can get “hello” but obviously this won’t work. any ideas
kegster has quit [Ping timeout: 268 seconds]
nitric has quit [Ping timeout: 260 seconds]
dc2 has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ecuanaso has joined #ruby
troys is now known as troys_
kegster has joined #ruby
dc2 has quit [Ping timeout: 245 seconds]
chaugiang has left #ruby [#ruby]
<havenwood> >> module CaseInsensitiveHash; refine Hash do; def [] key; super key.downcase end end end; module Example; using CaseInsensitiveHash; def self.example; life = {}; life['Meaning'] = 42; life['meaning'] end end; Example.example # xco
<ruby[bot]> havenwood: # => nil (https://eval.in/809862)
segmond has quit [Quit: l8r]
<havenwood> well, in 2.4.1 it's: #=> 42
<al2o3-cr> >> RUBY_VERSION
<ruby[bot]> al2o3-cr: # => "2.3.0" (https://eval.in/809863)
<havenwood> xco: I don't think that's a good idea. Tell us more about what you're doing and I think we'll come up with something better.
<al2o3-cr> yeah, everything about that sounds wrong
<havenwood> actually, no, my code was wrong
<havenwood> anyhow
<havenwood> I mean this abomination:
<havenwood> >> module CaseInsensitiveHash; refine Hash do; def []= key, value; super key.downcase, value; end; def [] key; super key.downcase end end end; module Example; using CaseInsensitiveHash; def self.example; life = {}; life['Meaning'] = 42; life['meaning'] end end; Example.example
<ruby[bot]> havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<havenwood> heh
<al2o3-cr> damn
<al2o3-cr> :P
<al2o3-cr> third time lucky?
<havenwood> i'm done
<havenwood> bot wins this round
<al2o3-cr> :)
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nadir has joined #ruby
<al2o3-cr> xco: you could make the key a regex?
nadir has quit [Changing host]
nadir has joined #ruby
GinoMan2440 has joined #ruby
ecuanaso has joined #ruby
aurelien` has joined #ruby
xco has quit [Ping timeout: 266 seconds]
aurelien has quit [Write error: Broken pipe]
GinoMan has quit [Remote host closed the connection]
<al2o3-cr> i've only just noticed `I'm terribly sorry ...` lol
foobar007 has joined #ruby
<foobar007> How can I make my object respond to the hash interface? i.e., m = MyObj.new; puts m[:attr] ??
<zenspider> foobar007: implement methods
<zenspider> in the above case: class MyObj; def [] key; ...; end; end
<foobar007> ah ruby. always so simple :)
xco has joined #ruby
<xco> sorry got disconnected just in case someone answered this
<foobar007> []= to set the value as well, i guess?
<zenspider> yup
<xco> well i have a hash that looks like this hash = {“one” => [“two”, “three”]} what i want is to take any key value (that matches “one” case insensitive) to return [“two”, “three”]
<zenspider> xco: seems like a bad idea... why?
<al2o3-cr> have you got these quotes out of a novel
<foobar007> zenspider: thank you, kind stranger.
<xco> zenspider: why what? :)
<zenspider> foobar007: no prob
<zenspider> xco: why do you want to do that? what are you *actually* trying to do?
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<xco> zenspider: cause i’m accepting parameters from a search box
<xco> so a user can enter anything. and i want to match that, disregarding case sensitivity
<zenspider> parameters you don't control? that also sounds like a bad idea
<xco> too many bad ideas :D
<zenspider> you want to match what? the parameters or the values?
ecuanaso has joined #ruby
<xco> the parameters
<zenspider> this sounds dangerous and/or ill-conceived.
<xco> zenspider: any advice?
<xco> maybe what to do instead?
aarwine_ has quit [Ping timeout: 260 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quazimodo has joined #ruby
haylon has joined #ruby
ecuanaso has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.8]
apparition has joined #ruby
marr has quit [Ping timeout: 258 seconds]
mostlybadfly has joined #ruby
haylon has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
bmurt has joined #ruby
mikeiniowa has joined #ruby
bmurt has quit [Ping timeout: 260 seconds]
SeepingN has quit [Ping timeout: 240 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
juggler has joined #ruby
GodFather_ has quit [Ping timeout: 260 seconds]
GodFather_ has joined #ruby
SilentNinja1 has joined #ruby
<SilentNinja1> Hi, Is there a liner to conver local time to UTC? Maybe DateTime.current.utc ?
gusrub has quit [Read error: Connection reset by peer]
gusrub has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<SilentNinja1> a liner to convert I mean. Thanks
<SilentNinja1> one liner, doh!
dc2 has joined #ruby
cyphase has quit [Quit: cyphase.com]
<havenwood> >> require 'date'; Time.now.utc.to_datetime.zone # SilentNinja1
<ruby[bot]> havenwood: # => "+00:00" (https://eval.in/809880)
<havenwood> SilentNinja1: Or if you're using #current, you're in Rails or at least have ActiveSupport?
Cohedrin has quit [Read error: Connection reset by peer]
<havenwood> SilentNinja1: In which case you can: DateTime.current.utc
cyphase has joined #ruby
<SilentNinja1> OK thanks
<havenwood> SilentNinja1: Use the Rails console to test it: rails c
<havenwood> ?rails SilentNinja1
<ruby[bot]> SilentNinja1: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
dc2 has quit [Ping timeout: 255 seconds]
<SilentNinja1> OK thanks
<xco> is there another way to write this [] << “hello” ?
<havenwood> xco: ["hello"]
<xco> any other way?
<havenwood> xco: Many, why do you ask?
hosttor has joined #ruby
<xco> not important, tired of writing [] << “hello” and [“hello”] just curious if there are more i don’t know
<xco> :P
<havenwood> xco: %w[hello]
<havenwood> >> %w[hello]
<ruby[bot]> havenwood: # => ["hello"] (https://eval.in/809881)
charliesome has joined #ruby
Cohedrin has joined #ruby
<xco> thanks :)
jenrzzz has quit [Ping timeout: 240 seconds]
<havenwood> xco: you're welcome
<havenwood> xco: You might find this quickref handy: https://zenspider.com/ruby/quickref.html#arrays
<xco> will come in handy
SilentNinja1 has quit [Remote host closed the connection]
bruce_lee has quit [Ping timeout: 260 seconds]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
juggler has quit [Remote host closed the connection]
d^sh has quit [Ping timeout: 260 seconds]
mmasaki has quit [Quit: bye]
mmasaki has joined #ruby
ecuanaso has joined #ruby
d^sh has joined #ruby
quazimodo has quit [Ping timeout: 260 seconds]
bokayio has quit [Ping timeout: 240 seconds]
alibby has quit [Quit: Leaving.]
bokayio has joined #ruby
wingbibbit has joined #ruby
<wingbibbit> Question: I have an array of hashes. Each hash has the elements "first_name", "last_name", and "email". I'm attempting to identify duplicates in the array.
<wingbibbit> I was planning on iterating through the array, searching the reset of the array to see if first_name last_name and email of the current index match any other indexes and if so, how many
<wingbibbit> I should also state that each hash also has the element "id", which will be different every time, so I need to go through each array index and A) find any duplicates, where first_name last_name and email of the current index matches any others, and if so print off the ids of each matching element.
<wingbibbit> Does anyone have any thoughts on the best way to approach such an issue?
<wingbibbit> reset == rest*
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
foobar007 has quit [Quit: Page closed]
gizmore|2 has joined #ruby
xco has quit [Quit: xco]
gizmore has quit [Ping timeout: 240 seconds]
kegster has quit [Ping timeout: 245 seconds]
ddffg has quit [Ping timeout: 260 seconds]
wingbibbit has quit [Ping timeout: 260 seconds]
kegster has joined #ruby
PaulCapestany has quit [Ping timeout: 240 seconds]
PaulCapestany has joined #ruby
dc2 has joined #ruby
genpaku has quit [Remote host closed the connection]
genpaku has joined #ruby
jameser has joined #ruby
JoshS has quit [Ping timeout: 240 seconds]
dc2 has quit [Ping timeout: 245 seconds]
bmurt has joined #ruby
bkulbida has joined #ruby
__Yiota has joined #ruby
uZiel has joined #ruby
bkulbida has quit [Read error: Connection reset by peer]
bkulbida has joined #ruby
mim1k has joined #ruby
bkulbida has quit [Remote host closed the connection]
uZiel has quit [Ping timeout: 248 seconds]
mim1k has quit [Ping timeout: 240 seconds]
chaugiang has joined #ruby
chaugiang has left #ruby [#ruby]
N0ATN has quit [Quit: ZNC 1.6.5 - http://znc.in]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
bruce_lee has quit [Remote host closed the connection]
N0ATN has joined #ruby
nickjj_ has joined #ruby
luckyrub_ has quit [Remote host closed the connection]
luckyruby has joined #ruby
nickjj has quit [Ping timeout: 240 seconds]
luckyruby has quit [Remote host closed the connection]
iamayam has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
luckyruby has joined #ruby
luckyruby has quit [Remote host closed the connection]
workmad3_ has quit [Ping timeout: 260 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cohedrin has quit [Read error: Connection reset by peer]
Cohedrin has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
iamayam has joined #ruby
Cohedrin has joined #ruby
uZiel has joined #ruby
HoierM has quit [Ping timeout: 260 seconds]
xall has joined #ruby
JoshS has joined #ruby
gusrub has quit [Ping timeout: 246 seconds]
chaugiang has joined #ruby
xall has quit [Quit: xall]
gix has quit [Ping timeout: 260 seconds]
gix has joined #ruby
P1ro has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
P1ro has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
cajone has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 245 seconds]
cajone has joined #ruby
kies has quit [Ping timeout: 260 seconds]
uZiel has joined #ruby
davidmichaelkarr has quit [Quit: Connection closed for inactivity]
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
mim1k has joined #ruby
luckyruby has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
luckyruby has quit [Ping timeout: 240 seconds]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
Kneecaps has joined #ruby
username has joined #ruby
gnufied has quit [Ping timeout: 246 seconds]
gnufied has joined #ruby
taurgal has joined #ruby
raul782 has joined #ruby
kies has joined #ruby
mim1k has joined #ruby
amclain has quit [Quit: Leaving]
hosttor has quit [Read error: No route to host]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 258 seconds]
_whitelogger has joined #ruby
bambanx has joined #ruby
tvw has joined #ruby
username has quit [Ping timeout: 268 seconds]
dc4 has joined #ruby
chaugiang has quit [Quit: Leaving.]
chaugiang has joined #ruby
ascarter has joined #ruby
dc4 has quit [Ping timeout: 240 seconds]
pankaj has joined #ruby
horst has quit [Read error: Connection reset by peer]
horst has joined #ruby
jameser has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
gnufied has quit [Ping timeout: 246 seconds]
renchan has joined #ruby
patarr has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
shinnya has quit [Ping timeout: 260 seconds]
cschneid_ has joined #ruby
masterasia has joined #ruby
<masterasia> How is Array#dig implemented?
kegster has quit [Read error: Connection reset by peer]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
haylon has joined #ruby
Mortomes|Train has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
haylon has quit [Ping timeout: 272 seconds]
Cohedrin has joined #ruby
johnzorn has joined #ruby
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Burgestrand has joined #ruby
snockerton has quit [Quit: Leaving.]
raul782_ has joined #ruby
troys_ is now known as troys
rohitpaulk has joined #ruby
Burgestrand has quit [Quit: Closing time!]
raul782 has quit [Ping timeout: 258 seconds]
Bock has joined #ruby
nofxxxx has joined #ruby
chaugiang has left #ruby [#ruby]
rgr has joined #ruby
Kneecaps has left #ruby [#ruby]
nofxxx has quit [Ping timeout: 260 seconds]
dc4 has joined #ruby
cschneid_ has quit [Remote host closed the connection]
<nofxxxx> masterasia, hover your mouse over a method on rdoc, "expand something" will appear, click to show source
anisha has joined #ruby
ur5us has quit [Remote host closed the connection]
username has joined #ruby
dc4 has quit [Ping timeout: 260 seconds]
rohitpaulk has quit [Ping timeout: 260 seconds]
Silthias has quit [Ping timeout: 260 seconds]
kmhn has quit [Quit: No Ping reply in 180 seconds.]
devyn has quit [Ping timeout: 245 seconds]
jdeen has quit [Remote host closed the connection]
kmhn has joined #ruby
spectra has quit [Ping timeout: 272 seconds]
devyn has joined #ruby
aupadhye has joined #ruby
pankaj has quit [Read error: Connection reset by peer]
Cohedrin has joined #ruby
Mortomes|Train has quit [Ping timeout: 260 seconds]
aupadhye has quit [Ping timeout: 260 seconds]
rohitpaulk has joined #ruby
segmond has joined #ruby
bambanx has quit [Quit: Leaving]
jameser has joined #ruby
oleo has quit [Quit: irc client terminated!]
spectra has joined #ruby
aupadhye has joined #ruby
username has quit [Ping timeout: 240 seconds]
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
luckyruby has joined #ruby
rohitpaulk has quit [Ping timeout: 255 seconds]
segmond has quit [Quit: l8r]
aufi has joined #ruby
spectra has quit [Ping timeout: 272 seconds]
rgr has quit [Ping timeout: 272 seconds]
agent_white has joined #ruby
luckyruby has quit [Ping timeout: 260 seconds]
Burgestrand has joined #ruby
nanoz has joined #ruby
Silthias has joined #ruby
troys has quit [Quit: Bye]
opencw has joined #ruby
dc4 has joined #ruby
agent_white has quit [Quit: bai]
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
spectra has joined #ruby
rohitpaulk has joined #ruby
quazimodo has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
^mtkd has joined #ruby
KeyJoo has joined #ruby
roshanavand has joined #ruby
Mortomes|Work has joined #ruby
Kestrel-029 has quit [Ping timeout: 246 seconds]
aurelien` is now known as aurelien
aurelien has quit [Changing host]
aurelien has joined #ruby
dc4 has quit [Quit: WeeChat 1.4]
kies has quit [Ping timeout: 240 seconds]
Mortomes|Work has quit [Ping timeout: 260 seconds]
andikr has joined #ruby
raul782_ has quit []
patarr has joined #ruby
argonostrum has joined #ruby
argonostrum has left #ruby [#ruby]
roshanavand has left #ruby [#ruby]
patarr has quit [Ping timeout: 272 seconds]
conta has joined #ruby
kies has joined #ruby
cfec0b8d has joined #ruby
jane_booty_doe has quit [Quit: Leaving]
ascarter has quit [Read error: Connection reset by peer]
SesMan has joined #ruby
tvw has quit [Remote host closed the connection]
ascarter has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
ltem has joined #ruby
vali has joined #ruby
Rich_Morin_ has quit [Ping timeout: 246 seconds]
workmad3_ has joined #ruby
normie1 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
workmad3 has quit [Ping timeout: 260 seconds]
jgnagy has quit [Remote host closed the connection]
jgnagy has joined #ruby
normie1 has quit [Client Quit]
Burgestrand has quit [Quit: Closing time!]
jgt2 has joined #ruby
xall has joined #ruby
TomyWork has joined #ruby
Rich_Morin_ has joined #ruby
jgnagy has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
jaruga________ has joined #ruby
Burgestrand has quit [Client Quit]
im0nde has joined #ruby
bkxd has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
flying has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Silthias has quit [Ping timeout: 240 seconds]
Guest87237 is now known as ndrst
Silthias has joined #ruby
urbanslug is now known as zipper
charliesome has joined #ruby
Burgestrand has joined #ruby
vondruch has joined #ruby
roshanavand1 has joined #ruby
stormbytes has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oskurot has joined #ruby
roshanavand1 is now known as roshanavand
Burgestrand has quit [Quit: Closing time!]
luckyruby has joined #ruby
xall has quit [Quit: xall]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
charliesome has quit [Client Quit]
luckyruby has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
roshanavand has quit [Quit: roshanavand]
bkxd has quit [Ping timeout: 240 seconds]
jtd has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
ryzokuken has joined #ruby
yottanami has joined #ruby
mikecmpbll has joined #ruby
jusa has joined #ruby
bkxd_ has joined #ruby
Silthias has quit [Ping timeout: 255 seconds]
bkxd has quit [Ping timeout: 260 seconds]
<yottanami> Hey all
<yottanami> I am using Minitest here is my test https://gist.github.com/yottanami/dee6c21512350b8aba5b4b76ab9c2cf0
<yottanami> But I have problem with `before do` and I get this error ``<class:CheckoutTest>': undefined method `before' for CheckoutTest:Class (NoMethodError)`
<elomatreb> Does Minitest even offer that? IIRC you define a `setup` method instead
latemus has left #ruby [#ruby]
lianj has quit [Ping timeout: 246 seconds]
<zenspider> yottanami: looking...
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
<zenspider> yottanami: correct. before is either for minitest/spec or (probably?) for rails extended minitest
<zenspider> def setup instead
<zenspider> or switch from class CheckoutTest to describe Checkout do
enterprisey has quit [Remote host closed the connection]
<zenspider> (you can keep the test methods and assertions ... mix and match)
Cohedrin has joined #ruby
<yottanami> zenspider, elomatreb tnx, anyway what do you thing about my tests? Are they wrote in a good way? https://gist.github.com/yottanami/dee6c21512350b8aba5b4b76ab9c2cf0
<zenspider> your assert_equal lines are backwards. expected first
quazimodo has quit [Ping timeout: 268 seconds]
<zenspider> and don't use assert_equal for floats
<zenspider> (never use any equality with floats, except zero)
rohitpaulk has quit [Ping timeout: 240 seconds]
<zenspider> you shouldn't use floats for money anyhow. use integers (hundreds of cents) or BigDecimal
rohitpaulk has joined #ruby
brent__ has joined #ruby
<elomatreb> yottanami: You're repeating that product setup/adding to basket a little, maybe move that to a method
<elomatreb> And I doubt line 31 will do what you want
brent__ has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
MarkBilk_ has quit [Ping timeout: 258 seconds]
MarkBilk has joined #ruby
tvw has joined #ruby
patarr has joined #ruby
yogg-saron has joined #ruby
bkxd_ has quit [Ping timeout: 268 seconds]
bkxd has joined #ruby
roshanavand has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 245 seconds]
Bish_ is now known as Bish
Silthias has joined #ruby
jane_booty_doe has joined #ruby
milardovich has joined #ruby
Beams has joined #ruby
<zenspider> elomatreb: it will if yottanami implements it that way, no?
<elomatreb> Oh, right, I didn't read the test name. I just never saw anyone override >> so I assumed it was a typo
tomphp has joined #ruby
haylon has joined #ruby
luckyruby has joined #ruby
<herwin> then it still looks like you have to add the product before removing it
<herwin> "def >>; end" would pass this test too
haylon has quit [Ping timeout: 246 seconds]
<zenspider> herwin: good catch. true. it needs to be set up right. unfortunately... I think we're speaking to ourselves.
<zenspider> yottanami: ??
mim1k has joined #ruby
luckyruby has quit [Ping timeout: 240 seconds]
<herwin> so we're rubberducking someone else's problems? :)
<elomatreb> #ruby consulting, we'll mail the invoice
<zenspider> pretty much... I love it when people ask something and don't bother with the answer...
ltp has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
ltp has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
rgr has joined #ruby
postmodern has quit [Quit: Leaving]
romank has joined #ruby
Mia has quit [Ping timeout: 268 seconds]
jane_booty_doe has quit [Quit: Leaving]
mim1k has quit [Read error: Connection reset by peer]
pandaant has joined #ruby
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Fernando-Basso has joined #ruby
polysics has quit [Read error: Connection reset by peer]
polysics has joined #ruby
marr has joined #ruby
polysics_ has joined #ruby
<conta> guys, so I had some classes (in many files, using each other) in Rails app, and all was loaded by Rails magic. Now I am moving it out and running it inside sinatra. Do I have to require files in classes that use them, or is there another way?
milardovich has quit []
bkxd has quit [Ping timeout: 245 seconds]
polysics has quit [Ping timeout: 240 seconds]
oded has joined #ruby
bkxd has joined #ruby
<zenspider> conta: yes, you need to require them. load them one at a time and fix the problems that come up
mim1k has joined #ruby
<zenspider> each file should require everything it needs to do its job, so walk the dependency chain down and fix from the bottom up
<conta> zenspider: ok, many thanks
biberu has joined #ruby
<zenspider> also, please don't assume everyone in here is a guy.
<conta> guys is gender neutral, or not? at least that's what people used in US, when I was there
<zenspider> we're on the internet... the whole world, not just in the US
<ytti> it is generaly considered gender neutral, but some peeps really want to be offended
<zenspider> but no, guys isn't necessarily gender neutral
<ytti> so depending on company, you may need to be more conservative with communication
Burgestrand has joined #ruby
<zenspider> ytti: shut it
<yottanami> zenspider, What do you mean by `assert_equal lines are backwards`?
<yottanami> zenspider, and what should I use for floats checking?
<zenspider> yottanami: you were writing assert_equal(actual, expected) and need to write assert_equal(expected, actual)
<zenspider> doesn't matter if they pass, obviously... but the error message will be backwards if it fails
<zenspider> for floats: assert_in_delta or assert_in_epsilon
<zenspider> the latter is nice because it auto-scales
Truenigma_Work has quit [Remote host closed the connection]
Truenigma_Work has joined #ruby
<yottanami> zenspider, and how should I force it use BigDecimal?
mim1k has quit [Ping timeout: 255 seconds]
* mikecmpbll always thought that assert_equal is backwards :d
gil_ has quit [Ping timeout: 255 seconds]
<zenspider> mikecmpbll: luckily, nobody asked you
<zenspider> yottanami: Depends on your code... you can convert them as the numbers come in
<mikecmpbll> i think that's a great shame!
<ljarvis> i never remember the order
<zenspider> mikecmpbll: yeah. if only Ward Cunningham and Kent Beck asked your opinion back in the 90s
gil_ has joined #ruby
gil_ has joined #ruby
gil_ has quit [Changing host]
<mikecmpbll> exactly, minitest would be greater, and life would be more marvellous.
<zenspider> ljarvis: must be hard to do your job
nanoz] has joined #ruby
<ljarvis> zenspider: are you having a nice evening?
<zenspider> A fine evening... and I just love it when the peanut gallery offer up their gracious opinions
<ljarvis> what's a peanut gallery?
<zenspider> mikecmpbll: obviously. much more marvellous
nofxxxx has quit [Ping timeout: 260 seconds]
<mikecmpbll> cheap seats
nofxxxx has joined #ruby
<herwin> I got really confused by a failing test in perl yesterday, because I used the ruby ordering of expected and actual
jameser has quit [Ping timeout: 255 seconds]
<herwin> and perl used is(actual, expected
roshanavand has quit [Quit: roshanavand]
<herwin> (more precisely: the test module I used)
mim1k has joined #ruby
nanoz has quit [Ping timeout: 272 seconds]
<zenspider> hopefully they closed the parens. :P
<herwin> if only everything was always in sync
rohitpaulk has quit [Ping timeout: 240 seconds]
<elomatreb> expect(a).to eq b
* elomatreb hides
nanoz] has quit [Client Quit]
<zenspider> elomatreb: my favorite is that they had to add the expect(x) form to quell warnings and for some reason they didn't call it assert.
<ljarvis> still, better than should. I always hated that, "should" is an awful way to describe behaviour
<elomatreb> I like the expectation terminology, but I'm biased because I first got into testing with RSpec
<ljarvis> may has well just used maybe
<zenspider> totally agree. I write rfc_spec as a joke and the `should` form always passed
nowhere_man has quit [Ping timeout: 245 seconds]
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mikecmpbll> herwin : they know what they're doing those perl folks
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<yottanami> elomatreb, How can I improve line 31?
roshanavand has joined #ruby
<elomatreb> Nevermind that, I was just confused
<elomatreb> Using >> is fairly uncommon, but if it makes sense it's perfectly fine
rohitpaulk has joined #ruby
ddffg has joined #ruby
<zenspider> yottanami: you improve that test by first ensuring that there is something to take out... otherwise you verified the absense of nothing
tomphp has joined #ruby
belmoussaoui has joined #ruby
yottanami has quit [Ping timeout: 245 seconds]
ferr1 has joined #ruby
tvw has quit []
tvw has joined #ruby
qba73 has joined #ruby
nowhere_man has joined #ruby
chaugiang has joined #ruby
tvw has quit []
bkxd has quit [Ping timeout: 240 seconds]
chaugiang has left #ruby [#ruby]
bkxd has joined #ruby
<zenspider> man... you want to talk backwards... Module methods... that's backwards. so fucked up.
yottanami has joined #ruby
pandaant has quit [Quit: Lost terminal]
drcode has quit [Quit: ZNC 1.6.5 - http://znc.in]
Drakevr has quit [Changing host]
Drakevr has joined #ruby
uZiel has quit [Remote host closed the connection]
Mortomes|Train has joined #ruby
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
drcode has joined #ruby
jinie has joined #ruby
jinie has quit [Client Quit]
jinie has joined #ruby
uZiel has joined #ruby
FedorEmelianenko has joined #ruby
Mon_Ouie has joined #ruby
<FedorEmelianenko> Hey Mon_Ouie
<Mon_Ouie> 'alut
<Mon_Ouie> Please use the channel to ask questions instead of using private messages
<Mon_Ouie> I'm not particularly familiar with RSpec, but you can ask a more specific question here, maybe someone will be able to answer then
<FedorEmelianenko> My question is more broad
<FedorEmelianenko> But thank you
FedorEmelianenko has left #ruby [#ruby]
luckyruby has joined #ruby
oskurot has quit [Quit: Leaving]
pwnd_nsfw` has joined #ruby
GodFather_ has quit [Ping timeout: 260 seconds]
pwnd_nsfw has quit [Ping timeout: 268 seconds]
patarr has joined #ruby
silverdust has joined #ruby
silverdust is now known as Guest80355
xall has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
Burgestrand has quit [Read error: Connection reset by peer]
Burgestrand has joined #ruby
bkxd has quit [Ping timeout: 258 seconds]
bkxd has joined #ruby
KnownSyntax has quit [Quit: No Ping reply in 180 seconds.]
mim1k has quit [Ping timeout: 246 seconds]
brent__ has joined #ruby
KnownSyntax has joined #ruby
patarr has joined #ruby
chaugiang has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
ryzokuken has quit [Quit: Connection closed for inactivity]
patarr has quit [Ping timeout: 272 seconds]
yogg-saron has joined #ruby
Mortomes|Train has quit [Ping timeout: 260 seconds]
jgnagy has joined #ruby
chaugiang has left #ruby [#ruby]
bambanx has joined #ruby
GodFather_ has joined #ruby
xall has quit [Ping timeout: 260 seconds]
mim1k has joined #ruby
jgnagy has quit [Ping timeout: 260 seconds]
Burgestrand has quit [Read error: Connection reset by peer]
Burgestr_ has joined #ruby
ij has joined #ruby
<ij> "#{ foobar }" or "#{foobar}"?
quazimodo has joined #ruby
<elomatreb> The former is the style advocated by most popular styleguides
<ij> former is the left, right?
<ij> Thing is: I don't write ruby for work for two years and I remember doing "#{ foobar }". I started an argument about this with a fresh rubyist and airbnb/ruby guide suggests "#{foobar}".
<ij> I feel very had.
<elomatreb> lol, I'm tired
<elomatreb> The *latter* (the right one) is the one I meant
<ij> Okay.
minimalism has quit [Quit: minimalism]
chouhoulis has joined #ruby
GinoMan2440 has quit [Ping timeout: 246 seconds]
<elomatreb> But if you prefer to have the spaces you're certainly free to do so
minimalism has joined #ruby
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
luckyruby has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
bkxd_ has quit [Ping timeout: 268 seconds]
minimalism has joined #ruby
oded has quit [Quit: Konversation terminated!]
mim1k has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 240 seconds]
GodFather_ has quit [Ping timeout: 260 seconds]
zapata has quit [Ping timeout: 260 seconds]
vince` has joined #ruby
bmurt has joined #ruby
chouhoulis has quit [Remote host closed the connection]
anisha has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
ldnunes has joined #ruby
mradmacher has joined #ruby
zapata has joined #ruby
jcp___ has quit [Quit: Connection closed for inactivity]
HoierM has joined #ruby
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroid has joined #ruby
Bish has quit [Quit: leaving]
bkxd has joined #ruby
<bambanx> morning
milardovich has joined #ruby
im0nde has quit [Ping timeout: 240 seconds]
synthroi_ has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
synthro__ has joined #ruby
bruce_lee has joined #ruby
synthroid has quit [Ping timeout: 255 seconds]
synthroi_ has quit [Ping timeout: 255 seconds]
xall has joined #ruby
<dminuoso> ij: airbnb has quite sensible conventions I find.
<dminuoso> :-)
dionysus69 has joined #ruby
im0nde has joined #ruby
<dminuoso> Except the "avoid return" -> Ive started using it everywhere.
<dminuoso> But I find that Im fairly alone with that one.
KeyJoo has quit [Ping timeout: 272 seconds]
dionysus69 has quit [Ping timeout: 255 seconds]
grymmjack has quit [Quit: Going offline, see ya! (www.adiirc.com)]
^mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
BSAlb has quit [Quit: Leaving]
newcoder has joined #ruby
<newcoder> Hi, where is ruby mostly used?
<Burgestr_> Knee jerk reaction: web, security research, devops/systems scripting
Burgestr_ is now known as Burgestrand
<newcoder> Which gui tool should we use with ruby to make desktop app?
edgr has quit [Ping timeout: 240 seconds]
im0nde has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Remote host closed the connection]
edgr has joined #ruby
im0nde has joined #ruby
jameser has joined #ruby
mim1k has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
centrx has joined #ruby
gnufied has joined #ruby
im0nde has quit [Ping timeout: 255 seconds]
<dminuoso> newcoder: none.
mim1k has quit [Disconnected by services]
mim1k_ has joined #ruby
<dminuoso> newcoder: The ecosystem has barely any usable parts for graphical interfaces
mim1k_ is now known as mim1k
Alina-malina has quit [Excess Flood]
Alina-malina has joined #ruby
rgr has quit [Quit: rgr]
bweston92 has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chichou has joined #ruby
jameser has joined #ruby
valentin has joined #ruby
<newcoder> Why isn't ruby good for graphical interface?
mim1k has quit [Ping timeout: 255 seconds]
uZiel has quit [Ping timeout: 248 seconds]
<dminuoso> newcoder: Because the ecosystem has barely any usable parts for graphical interfaces.
<dminuoso> It has nothing to do with the language, there just isn't much tooling or libraries around for it.
vali has quit [Ping timeout: 260 seconds]
<dminuoso> Those libraries that are around, are kind of outdated or very rudimentary.
<newcoder> Why can't ruby use external gui library like qt?
mikecmpb_ has joined #ruby
mikecmpbll has quit [Ping timeout: 246 seconds]
<konsolebox> newcoder: someone has to develop and maintain the bindings to any gui tool/library.
<elomatreb> You can if you really want, it's just not very much fun
<dminuoso> newcoder: It's a devils circle. Because there's no tooling nobody uses it. Because nobody uses it, few people help maintain the qt bindings (they exist but are fairly outdated)
<dminuoso> Because they are badly maintained, nobody uses it.
valentin has quit [Ping timeout: 255 seconds]
<dminuoso> Leaving projects to die, bringing us back to the beginning.
Axy has quit [Ping timeout: 260 seconds]
<dminuoso> It's too complex of a topic to just "do it by yourself" like with most ruby gems. It needs a team of people.
rohitpaulk has quit [Remote host closed the connection]
centrx has quit [Remote host closed the connection]
haylon has joined #ruby
<elomatreb> The only scripting languages I can think of that have a reputation for GUI are Python because they do have working bindings and people use them and Javascript through the mess that is Electron
<newcoder> elomatreb: Javascript has gui bindings too?
uZiel has joined #ruby
<sonOfRa> newcoder: it does if you bundle a web browser with every application you write!
<elomatreb> "the mess that is Electron" ;)
<sonOfRa> :)
mikecmpb_ has quit [Read error: Connection reset by peer]
gnufied has quit [Ping timeout: 255 seconds]
Guest94393 is now known as sts
mim1k has joined #ruby
pupsicle has joined #ruby
oleo has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vince` has quit [Read error: Connection reset by peer]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rippa has joined #ruby
<dminuoso> Electron is great.
<dminuoso> I have enough CPUs to take the 17% CPU hit when my cursor is blinking.
nickjj_ is now known as nickjj
<ljarvis> electron keeps my office warm
mikecmpbll has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> newcoder: When we did our GUI we developed it natively in Qt with C++, and connected it with CORBA back then.
<dminuoso> (More modern options are using miniruby or something like 0mq)
<newcoder> What is CORBA?
<dminuoso> Something you dont want to use in this day and age.
gnufied has joined #ruby
belmoussaoui__ has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
<dminuoso> newcoder: 0mq is a far more elegant approach, if we did it again we'd be using that.
<newcoder> dminuoso: Then why CORBA?
<dminuoso> newcoder: Because CORBA was cool stuff 10 years ago.
belmoussaoui has quit [Ping timeout: 255 seconds]
<dminuoso> Well. 20 actually.
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
uZiel has quit [Ping timeout: 248 seconds]
yogg-saron has joined #ruby
yogg-saron has quit [Client Quit]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
<dminuoso> Also because its a really fat standard established in old industries that get all the gray beards excited.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<yottanami> I am trying to use `assert_includes` to check an array contains a item but I get this error: `Expected #<Checkout::Product:0x0055c440123748 @code="004", @name="Glasses", @price=0.11109999999999999431565811391919851303e2> (Checkout::Product) to respond to #include?.`
<ljarvis> yottanami: you have the args the wrong way around
<newcoder> dminuoso: Why do we need CORBA with qt?
mikecmpbll has joined #ruby
__Yiota has joined #ruby
frem has joined #ruby
renchan has quit [Quit: Leaving...]
__Yiota has quit [Client Quit]
Burgestrand has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
Burgestrand has joined #ruby
<dminuoso> newcoder: You dont _need_ it, but that's how we handled having a GUI done properly together with Ruby components
<dminuoso> As well as connecting it with a 3d scenegraph
ferr1 has quit [Quit: WeeChat 1.8]
<arup_r> Getting error while parsing an YAML "did not find expected key while parsing a block mapping at line 23 column 9" can you help what is wrong https://gist.github.com/aruprakshit/ff3bb4591e8a4836a51aa604bea5ab42 ?
<MarkBilk> Does QtRuby work at all? In MSWindows?
rickumali has joined #ruby
__Yiota has joined #ruby
<dminuoso> arup_r: Your lines 25/26/27 are messed up
newcoder has left #ruby [#ruby]
<dminuoso> arup_r: I think this is still a bug because the diagnostic shows the wrong line.
<arup_r> dminuoso: thank you mate
<dminuoso> Or Im not sure whether it is.
<dminuoso> arup_r: Next time do a simple binary search.
vondruch has quit [Quit: vondruch]
<dminuoso> Its what I did.
<arup_r> yes I was looking at the line number in error message, and didn't see anything wrong
<dminuoso> Make a testcase next time
vondruch has joined #ruby
<arup_r> dminuoso: binary search? Can u teach me the trick?
mikecmpbll has quit [Ping timeout: 240 seconds]
<dminuoso> arup_r: in this case I just deleted half the file, see if the problem remained
<arup_r> ok..
<dminuoso> arup_r: It's literally the application of this: https://en.wikipedia.org/wiki/Binary_search_algorithm
<dminuoso> Lets you debug code in O(log n)
<arup_r> I know BST. I didn't get how u applied it on yml file so fast..
<dminuoso> arup_r: Im a speedy bastard.
<arup_r> :)
<arup_r> seems so!
<arup_r> again thanks
<arup_r> i was stuck in the error message line.. haha..
<dminuoso> arup_r: Well I first analyzed the code points of that line of code
haylon has quit [Ping timeout: 260 seconds]
<dminuoso> Since they were all ASCII compatible, it must have been unrelated
<dminuoso> arup_r: Though I know now that it means, that the problem is in the subtree of that line of code.
jshjsh has joined #ruby
<dminuoso> All of that in 2 minutes. :S
haylon has joined #ruby
<dminuoso> That and copy + pasting, saving and writing ruby code to do this.
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roshanavand has quit [Quit: roshanavand]
opencw has quit [Quit: Quantumcommunicationsarray closed]
vondruch has quit [Client Quit]
vondruch has joined #ruby
<arup_r> You are Pro in programming!! The way you are analyzing I am far behind of you! 😂
JoshS has quit [Ping timeout: 268 seconds]
<ljarvis> lol
<ljarvis> dminuoso is the best
pupsicle has quit [Quit: pupsicle]
cadillac_ has joined #ruby
mikecmpbll has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
<dminuoso> I work in short burts. 10 commits in one hour, then 3 hours of playing pinball, then another 10 commits in an hour. Except I usually skip the pinball part.
<dminuoso> That may or may not be an exaggeration.
kKzs has joined #ruby
romank has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
yogg-saron has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
brent__ has joined #ruby
brent__ has quit [Remote host closed the connection]
romank has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
andikr has quit [Remote host closed the connection]
__Yiota has joined #ruby
hutch34 has joined #ruby
somerandomteen has joined #ruby
luckyruby has joined #ruby
GinoMan has joined #ruby
mikecmpbll has joined #ruby
arup_r has quit [Remote host closed the connection]
LastWhisper____ has joined #ruby
cschneid_ has joined #ruby
dcluna has quit [Ping timeout: 260 seconds]
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
Cohedrin has joined #ruby
<LyndsySimon> I keep having issues with RVM. Is there a comparable tool out there I could use?
cschneid_ has quit [Ping timeout: 255 seconds]
<rickumali> LyndsySimon: rbenv
<LyndsySimon> rickumali: Would you recommend it?
<havenwood> LyndsySimon: Or chruby
<ljarvis> chruby > *
<rickumali> LyndsySimon: I recommend it, yes
<LyndsySimon> Thank you.
<rickumali> i've not heard of chruby, but it's good to know
<rickumali> there are alternatives
<LyndsySimon> Reading their doc looks very promisign.
sepp2k has joined #ruby
<LyndsySimon> I had no idea that RVM was overriding cd. That's insane.
<phreakocious> I would like to use this gem that normally writes to stdout, but have the output go into a variable. It offers the ability to swap out the file descriptor, but that seems sloppy (if it's even possible). Any thoughts? https://github.com/arches/table_print
<ljarvis> phreakocious: what do you mean "it has the ability" and then "if it's even possible" -- does it have the ability to swap out the file descriptor?
fmcgeough has joined #ruby
<phreakocious> if it's even possible to collect the output of a swapped out file descriptor into a variable, is what I meant.
<havenwood> phreakocious: consider using StringIO
<ljarvis> yes ^
<phreakocious> beautiful, I'll look into it. thanks :)
<ljarvis> >> require "stringio"; str = StringIO.new; $stdout = str; puts "omg"; $stdout = STDOUT; puts "cheese"; puts str.value
<ruby[bot]> ljarvis: I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
jgt2 has quit [Ping timeout: 268 seconds]
jamesaxl has joined #ruby
<ljarvis> whatevs
<phreakocious> thanks again, havenwood and ljarvis
c0defist2000 has joined #ruby
qba73 has quit []
<c0defist2000> my #<ActionDispatch::Cookies::CookieJar:0x00000004312960> does not contain the cookies from my "session that initiated the websocket"
ResidentBiscuit has joined #ruby
kKzs has quit [Remote host closed the connection]
<c0defist2000> anyone have any idea why my cookies in my actioncable connection are empty
<c0defist2000> (only in production)
u0_a190 has joined #ruby
<c0defist2000> seems many people have had the same problem with missing cookies from the actioncable connection, but no real answer..
jameser has joined #ruby
<u0_a190> a do anyone know whats the msfconsole irc channel name
t-recx has joined #ruby
<phreakocious> worked like a champ, despite being a little hard on the eyes :D
mtkd has quit [Ping timeout: 260 seconds]
shinnya has joined #ruby
<havenwood> ?rails c0defist2000
<ruby[bot]> c0defist2000: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<havenwood> ?metasploit u0_a190
<ruby[bot]> u0_a190: Please join #metasploit for help with it.
<c0defist2000> havenwood, rails/actioncable yes, sorry
<c0defist2000> ill try #rails, derp
mtkd has joined #ruby
<havenwood> c0defist2000: I've not run into that particular issue with ActionCable. Yeah, #rubyonrails is a good bet. The channel should get active here soon.
c0defist2000 is now known as elouisyoung
mikecmpbll has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
mwlang has joined #ruby
aupadhye has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
<u0_a190> thanks
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
u0_a190 has quit [Quit: Lost terminal]
<LyndsySimon> rickumali: I hate to be a pain, but I'm setting up rbenv and am not seeing what I need in their docs.
SeepingN has joined #ruby
<LyndsySimon> rickumali: In particular, I'm not seeing an analogue to rvm's gemsets.
<rickumali> that's beyond what I know, LyndsySimon
<ljarvis> rvm gemsets are unique
<LyndsySimon> Fair enough.
<ljarvis> you wont get them from chruby or rbenv (and you don't need them)
jameser has joined #ruby
<rickumali> ljarvis: bundle?
<ljarvis> i think rbenv and chruby has extra plugins for adding this functionality fwiw
<ljarvis> yeah, they're not the same thing though
<rickumali> ljarvis: i don't know rvm, but saw gemsets and thought: bundle
<ljarvis> imo most systems just install all of the gems in the same place per ruby version, so gemsets are a bit moot
<havenwood> rickumali: Some folk use gem_home with chruby but most just use Bundler: https://github.com/postmodern/gem_home#readme
<LyndsySimon> ljarvis: This is slightly beyond my knowledge at the moment. My background is in Python and I fully understand how virtualenvs work there. Does Ruby have a *need* for gemsets?
<ljarvis> LyndsySimon: nope, they're an rvm feature, not a ruby feature
<elomatreb> As soon as you're working with more than one project with different gem versions
jameser has quit [Client Quit]
<LyndsySimon> I'm working on projects that have Gemfiles created by bundler. I've just never used them outside of rvm
<havenwood> LyndsySimon: No. Now that Bundler is standard and RubyGems supports Gemfiles, they're not neccessary.
<LyndsySimon> havenwood: How does that reconcile with what elomatreb said? Can I have multiple versions of the same gem installed concurrently?
<elomatreb> Yes, bundler will make sure you require the correct one at runtime
<havenwood> LyndsySimon: You can have every version of every gem installed.
<havenwood> LyndsySimon: Your Gemfile.lock will contain the exact version of the gems your app uses.
milardovich has quit [Ping timeout: 240 seconds]
<LyndsySimon> How does Bundler do that? If I call `rails console`, for instance, is the ruby interpreter that it's calling aware of the gemfiles and able to specific the gem versions that way?
<LyndsySimon> havenwood: Yep, I'm familiar with the file structure :) I just need to understand what it's doing so I can troubleshoot things.
<elomatreb> If you just call `rails console` bundler is not involved, you usually do `bundle exec rails console`
<havenwood> LyndsySimon: You prefix `bundle exec` to the command to limit gems to the exact versions.
<ljarvis> you'd use `bundle exec rails console` so it runs inside the bundler environment
jameser has joined #ruby
<LyndsySimon> Ahh, OK. So with rvm, I don't have to prefix commands because it's shimming the shell commands. With rbenv, I have to use bundle's explicit management to do things in the "environment" (which in actuality is just Bundler loading and passing the specs from the gemfiles to Ruby before executing the commands I pass in)
<LyndsySimon> Right?
bkxd has quit [Ping timeout: 260 seconds]
jameser has quit [Client Quit]
<havenwood> LyndsySimon: With rbenv you have to rehash to create shims every time you install gems.
<havenwood> ?rbenv LyndsySimon
<ruby[bot]> LyndsySimon: Missing command under rbenv? Did you try `rbenv rehash`?
jameser has joined #ruby
<ljarvis> one of the reasons chruby wins for me
<havenwood> LyndsySimon: rbenv creates shims to switch Rubies. chruby sets env vars correctly to switch Rubies
<LyndsySimon> Hmm. OK. I think I'm still missing a critical piece of information or two.
jameser has quit [Client Quit]
jamesaxl has quit [Read error: Connection reset by peer]
<elomatreb> I don't even have chruby on my machines anymore, and on the Arch-based ones not even ruby-install. Bundler just works
<mwlang> hmmm…did we lose ruby-toolbox.com or is it just me?
<havenwood> You don't need a Ruby version switcher if you're not switching between Ruby versions.
jamesaxl has joined #ruby
<havenwood> mwlang: seems down
<LyndsySimon> My system ruby is 2.4.1 (Installed via homebrew). My project's ruby is 2.3.1. I've installed it via rbenv. How do I use bundler now to install the gems from the gemfiles?
<havenwood> mwlang: In the meanwhile this is up: http://awesome-ruby.com/
<elomatreb> `bundle install` in the directory of the project
<mwlang> oh, I didn’t know about that one. thanks!
<havenwood> LyndsySimon: gem install bundler && bundle
<LyndsySimon> elomatreb: bundler replies that my ruby version is 2.4.1
<elomatreb> Does your Gemfile require a Ruby version?
<havenwood> LyndsySimon: then you're using Ruby 2.4.1 not Ruby 2.3.1
<LyndsySimon> Do I need to somehow "activate" the rbenv version?
<havenwood> LyndsySimon: I'd suggest chruby since it's much simpler. Did you rehash?
<havenwood> ?rbenv LyndsySimon
<ruby[bot]> LyndsySimon: Missing command under rbenv? Did you try `rbenv rehash`?
<LyndsySimon> Yes, my system ruby is 2.4.1. I've specified 2.3.1 in .ruby-version. rbenv installed it fine.
<LyndsySimon> I did rehash, but I'll do it again.
pawandubey has joined #ruby
chalkmonster has joined #ruby
jameser has joined #ruby
<pawandubey> Hey guys, is there a good way to skip the minitest setup for just a single test case?
blackwind_123 has quit [Ping timeout: 240 seconds]
luckyruby has quit [Quit: Leaving...]
<LyndsySimon> Maybe this will help: I'm sharing my screen at this link: https://appear.in/how-to-ruby
snockerton has joined #ruby
blackwind_123 has joined #ruby
<LyndsySimon> Oh! I think I figured it out.
<LyndsySimon> `ruby --version` is 2.3.1. Bundler says I'm using 2.4.1. That's because I have Bundler installed in my system ruby but not in the rbenv-controlled 2.3.1.
mim1k has quit [Disconnected by services]
mim1k_ has joined #ruby
<havenwood> LyndsySimon: gem install bundler && bundle
<LyndsySimon> There's a `bundle` command in my system ruby, but not one in my 2.3.1 environment, therefore it isn't shimmed.
<LyndsySimon> havenwood: Yeah, I'm in the process of doing just that.
<havenwood> LyndsySimon: or >.>: gem install bundler && rbenv rehash && bundle
<havenwood> Do you still have to do that?
<elomatreb> Throw some npm install in there for good measure
<LyndsySimon> havenwood: I see that, and now I understand exactly what `rbenv rehash` does.
pupsicle has joined #ruby
<LyndsySimon> You have to rehash not whenever a gem is installed, but whenever a gem is installed that includes executables you want to access from the shell.
<LyndsySimon> Yay :)
<havenwood> LyndsySimon: If you ever get tired of rehashing chruby wil be waiting! ;-)
* rickumali claps "Good stuff!"
<havenwood> LyndsySimon: If you can, bump your Gemfile to Ruby 2.3.4 (the latest stable release of 2.3).
gizmore|2 is now known as gizmore
<havenwood> LyndsySimon: It's just bug and security fixes since 2.3.1.
<LyndsySimon> havenwood: That's a good idea, but there are other changes happening concurrently (upgrading rails). Instead, I plan to lead a project to migrate the whole team from rvm.
<LyndsySimon> Somewhat annoyingly, rvm requires the ruby version right now to be 'ruby-2.3.1', while rbenv wants it to be '2.3.1'. That means there's going to have to be a point where we all move over at once :(
<havenwood> LyndsySimon: Switch to chruby.
somerandomteen has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<havenwood> LyndsySimon: It supports fuzzy matching.
<LyndsySimon> I'll look into chruby before making a recommendation.
<havenwood> LyndsySimon: Then they can both be: ruby-2.3.1
im0nde has joined #ruby
<LyndsySimon> I'm comfortable doing that now. I already more fully understand rbenv than I ever did rvm. I hate magic.
valerauko has joined #ruby
<havenwood> LyndsySimon: Here's an Ubuntu guide for example: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you
<havenwood> LyndsySimon: Then you'll love chruby.
somerandomteen has joined #ruby
<LyndsySimon> havenwood: Cool, thanks :)
<haylon> for the aws-sdk-ruby v2 Gem, is there any way to make the describe_stack_events() method show latest events at the bottom instead of at the top? Or shoudl I ask that in ##aws?
<LyndsySimon> Heh. While I'm on macOS, I'll read the linux version first. I'm a Linux user using macOS, so it's easier for me to grok that way.
<LyndsySimon> This has all been super helpful so far.
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jgnagy has joined #ruby
pupsicle has quit [Remote host closed the connection]
<valerauko> Hey, i saw a bug on the ruby tracker that i think i could fix. Is there a contributor's 101 "guide" past the Patch Writer's Guide?
jaruga________ has quit [Quit: jaruga________]
xall has quit [Ping timeout: 272 seconds]
<valerauko> Should I just fix it as I see fit and then ask for feedback on the patch?
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<LyndsySimon> valerauko: I can't speak for Ruby, but that's the approach I've taken in the past for other projects. Just be prepared for the PR to be rejected initially, and for the people who do so to be at least a bit gruff about it :)
[Butch] has joined #ruby
jgnagy has quit [Ping timeout: 268 seconds]
<valerauko> guess it's time to try my luck!
<LyndsySimon> Go for it!
<LyndsySimon> Feel free to shoot me a message if you want a quick code review before submitting your PR, I'd be happy to.
<valerauko> Thanks, I might just do that!
vali has joined #ruby
cdg has joined #ruby
jusa has joined #ruby
Burgestrand has quit [Quit: Closing time!]
<yottanami> How can change this code to use inject? `@products.each_with_object(Hash.new(0)) { |p, count| count[p.code] += 1 }
<yottanami> .keep_if { |_k, v| v >= 2 `
<elomatreb> You don't, each_with_object is exactly what you need there
<havenwood> yottanami: I'd just suggest `product` rather than `p` since it's more descriptive and there's already a Kernel#p taking `p`.
im0nde has quit [Ping timeout: 255 seconds]
conta has quit [Ping timeout: 260 seconds]
jameser has joined #ruby
cdg has quit [Read error: Connection reset by peer]
cdg has joined #ruby
synthro__ has quit [Remote host closed the connection]
<elomatreb> I like group_by, I'd probably do it like `@products.group_by(&:code).transform_values(&:length)`
cardboard64 has joined #ruby
<havenwood> elomatreb: That's a nice solution.
<mwlang> I like the spirit! LyndsySimon and valerauko — I don’t think we do enough to encourage new contributors to existing projects.
<yottanami> elomatreb, Cool, Kind of magical solution
<elomatreb> #group_by is a really nice method, surprisngly often useful
aufi has quit [Quit: Leaving]
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
jgt2 has joined #ruby
<yottanami> elomatreb, I am not familiar with transform_values. should I set a condition for length >1 ?
sagax has joined #ruby
<elomatreb> Oh, you'd still need your keep_if block. That just builds a Hash with the codes as keys and the counts as values
<sagax> hi all
<havenwood> sagax: hi
<elomatreb> Remember that the &:something syntax is equivalent to a block like `{|argument| argument.something }`
<sagax> what i can read about "finance" and "transactions" with ruby?
<havenwood> sagax: Don't use Floats. ;-P
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sagax> heh =D
<sagax> and also about "atomic operations"
<havenwood> sagax: Integer, Rational and BigDecimal can all represent money. There are gems like money, monetize, etc.
jgt2 has quit [Ping timeout: 260 seconds]
<elomatreb> "atomic operations" as in file IO?
<sagax> maybe
<apeiros> sagax: ruby doesn't have transactions, or a concept of atomic operations. only in regard to concurrency. and there you can assume nothing is atomic unless explicitly documented otherwise.
<havenwood> sagax: You might even consider a database like Datomic: http://www.datomic.com/
<apeiros> database drivers for ruby of course support the database's transactions
flying has quit []
<elomatreb> I've seen building a file in e.g. /tmp and moving it once you're done being called atomic, since you're in very little danger to end up with an incomplete file
<somerandomteen> Hi all! How can I access an instance of a class from within the class?
<apeiros> "little danger" != "atomic"
<elomatreb> Of course
stormbytes has joined #ruby
<apeiros> atomic is a strong/strict assertion and there isn't much satisfying it
<havenwood> sagax: Datomic is handy for stuff like retaining all transactions in an audit-able way.
<adaedra> somerandomteen: you meed from a class method?
<havenwood> sagax: Financial institutions love that stuff.
<sagax> oh, thanks, it's great information for me
<sagax> i read more about this, thanks
<adaedra> s/meed/mean/
<havenwood> somerandomteen: Have any example code to Gist? It might help us understand what you're asking to see what you have so far.
<MarkBilk> Does Tk work well for programming GUIs in Ruby?
<somerandomteen> adaedra: no, like this: validates_presence_of :whatever if instance.stupid == true
<adaedra> oh rails
<adaedra> I think you want to call it with a lambda
<apeiros> somerandomteen: to access an instance, it has to actually exist
<somerandomteen> ahh yep, you may well be right adaedra
<havenwood> MarkBilk: TK's not in the stdlib anymore but it was gemified and is still maintained. Or there are other options.
<apeiros> somerandomteen: during class definition time, it won't exist
<apeiros> and yes, hence lambda as adaedra suggests
<adaedra> validates_presence_of :whatever, if: -> { stupid? } # or something like that
<LyndsySimon> sagax, havenwood: I'll also say that when I was playing with writing a cryptocurrency exchange, my model was to use an append-only log for all transactions. That helped me maintain an audit trail and know where I could divide work between workers concurrently and when it needed to be executed in series.
synthroid has joined #ruby
<apeiros> iirc AR supports if: :stupid?
<adaedra> ah yes maybe
<somerandomteen> or after_initialise :whatever_validator and create that as a function adaedra apeiros?
<havenwood> :stupid.to_proc
<havenwood> or: if: :stupid.to_proc
Myk267 has quit [Quit: Leaving]
mim1k_ has quit [Remote host closed the connection]
SesMan has quit [Read error: Connection reset by peer]
<havenwood> forgot the predicate
<apeiros> somerandomteen: yes. though you'd do good and ask in #rubyonrails for how to properly handle your case.
<apeiros> validations usually don't go into after_initialize (z, not s)
jgnagy has joined #ruby
<somerandomteen> ah yep haha, I'm a Brit, I'd screw up so many of the spellings without my IDE ^.^
<somerandomteen> I'll go pop over and ask in ror, thanks :)
<apeiros> somerandomteen: the guides are usually quite helpful with basic questions like these.
<apeiros> guides.rubyonrails.org
patarr has joined #ruby
<apeiros> http://guides.rubyonrails.org/active_record_validations.html being the one you're looking for probably.
<LyndsySimon> havenwood: I've got chruby+ruby-install working now. So far so good - except that I need an equivalent to rehash :)
gizmore has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
<LyndsySimon> havenwood: For instance, which I `gem install bundler`, I had to reload my shell session for `bundle` to point to the one I just installed. Same thing for rails.
<somerandomteen> apeiros: trouble is, it's a bit more complicated than just validations
<havenwood> LyndsySimon: Hmm, that shouldn't be the case...
<apeiros> somerandomteen: then you'd have to do better than your current description anyway.
kaiks has joined #ruby
<apeiros> so far it was basics covered by the guides
<MarkBilk> havenwood: I can require 'tk' in irb, so I seem to have it, but not as a gem. In Ruby 2.3.3 .
<LyndsySimon> havenwood: It might be a problem with my .zshrc.
mim1k has joined #ruby
brent__ has joined #ruby
etehtsea has joined #ruby
<kaiks> hi, in rails, why can't i access a non-persisted model's association? i.e. model = Model.new(association_id: 123); model.association #=> nil
<havenwood> LyndsySimon: You should have to source chruby or restart after installing a new Ruby. But newly installed gems will already be in your PATH and should *just work*.
<LyndsySimon> Doesn't seem to be. When I install bundler, it doesn't show up on my path under I reload.
brent__ has quit [Remote host closed the connection]
<apeiros> ?rails kaiks
<ruby[bot]> kaiks: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
brent__ has joined #ruby
<havenwood> LyndsySimon: Check?: chruby
<havenwood> LyndsySimon: Is the right Ruby selected?
<LyndsySimon> Whoa. Something's weird. I don't think it's a ruby issue.
gil_ has quit [Read error: Connection reset by peer]
gil_ has joined #ruby
gil_ has joined #ruby
gil_ has quit [Changing host]
username1 has joined #ruby
<valerauko> oh well. looking at the core source, it seems == and eql? are usually defined in C. time to copy their patterns!
<elomatreb> that prompt though
<LyndsySimon> What part? :)
libfud1 has joined #ruby
<havenwood> LyndsySimon: gem install bundler
amclain has joined #ruby
<havenwood> LyndsySimon: Then sanity check: gem which bundler
<havenwood> LyndsySimon: And: which bundle
<havenwood> LyndsySimon: You can also remove your Brew Ruby from the mix to simplify: brew unlink ruby
<havenwood> LyndsySimon: Add it back wth: brew link ruby
<adaedra> woah, monofur, long time no see
centrx has joined #ruby
<havenwood> LyndsySimon: Switch to brew with: chruby system
centrx has quit [Changing host]
centrx has joined #ruby
libfud1 has quit [Client Quit]
chalkmonster has quit [Quit: Daddy's flown, 'cross the ocean.]
<LyndsySimon> havenwood: I don't understand.
<havenwood> LyndsySimon: Which part?
cdg has quit [Remote host closed the connection]
<LyndsySimon> It does pick up the new stuff when I cd out and back in:
<LyndsySimon> "switch to brew with: chruby system"
Myk267 has joined #ruby
<LyndsySimon> adaedra: I like monofur because the "e" is easy to read. I wish it was easier to distinguish multiple underscores, though.
jameser has joined #ruby
<havenwood> LyndsySimon: So chruby does nothing if you don't source it. In that case you're either using brew or system Ruby.
<havenwood> LyndsySimon: If you `brew unlink ruby` then you'll see `ruby -v` is system Ruby.
<havenwood> LyndsySimon: If you then `brew link ruby` you'll see `ruby -v` is brew Ruby.
<havenwood> LyndsySimon: If you source chruby.sh (about a hundred lines), you can then use the `chruby` command. (But it won't change anything till you run it.)
<havenwood> LyndsySimon: The auto.sh is a few more lines and will auto-switch when it detects a .ruby-version file.
<LyndsySimon> It's sourced in my .zshrc.
<havenwood> Sec, phone.
* LyndsySimon nods.
mim1k has quit [Ping timeout: 240 seconds]
<LyndsySimon> Yeah - it's gotta be something in my shell. It appears that chruby is doing the right thing, because it got added to the directory that's first in my path, it just doesn't resolve to that. I wonder if zsh is caching the location of the executable from the previous call or something.
AKPWD has quit [Quit: じゃね。]
mikecmpbll has quit [Ping timeout: 268 seconds]
somerandomteen has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<apeiros> ⌥ for branch, nice :D
<LyndsySimon> Yeah, it's totally the shell. hash isn't getting updated:
tomphp has joined #ruby
<elomatreb> Is that an actual branch symbol or some repurposed character from some alphabet?
patarr has quit [Ping timeout: 240 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elomatreb> Oh, nevermind. Non-apple user
<apeiros> elomatreb: option-key on apple
<apeiros> though I just notice the 2016 mbp no longer uses that symbol, wth?
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
<apeiros> it's a very nice icon IMO, a bifurcation provides you with an option…
MarkBilk_ has joined #ruby
<LyndsySimon> It's not an Apple symbol, it's just unicode.
nitric has joined #ruby
<apeiros> yeah, now guess who asked for its inclusion :)
<LyndsySimon> Just like the command key - it's symbol is "PLACE OF INTEREST SIGN": ⌘
<apeiros> it's *literally* called "OPTION KEY"
<LyndsySimon> Well, of course. I just mean that it's like the symbol isn't available on Linux.
yottanami has quit [Ping timeout: 255 seconds]
<apeiros> sure, I didn't say it wasn't available on *nix either. just what the symbol is (which happens to also be its origin)
jameser has quit [Client Quit]
TomyWork has quit [Remote host closed the connection]
<apeiros> and yes, I'm aware apple used the "place of interest" sign (from some nordic country iirc? sweden?) for the command key :)
<LyndsySimon> There's also ⎇, "ALTERNATIVE KEY SYMBOL". They're handy together.
MarkBilk has quit [Ping timeout: 255 seconds]
jameser has joined #ruby
<LyndsySimon> AFK. I've been working from a diner, and my battery is low enough I should walk back to work. :(
<apeiros> cya
gusrub has joined #ruby
ltem has quit [Quit: Leaving]
cardboard64 has left #ruby [#ruby]
djuls has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
pupsicle has joined #ruby
cerulean has quit [Read error: Connection reset by peer]
cibs has quit [Ping timeout: 240 seconds]
pawandubey has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cibs has joined #ruby
shinnya has quit [Ping timeout: 268 seconds]
jjunior has quit [Quit: Connection closed for inactivity]
centrx has quit []
balazs_ has quit [Ping timeout: 245 seconds]
im0nde has joined #ruby
rippa has joined #ruby
<pupsicle> Can anyone explain or point me to some documentation explaining why the output of this snippet is true instead of false? https://gist.github.com/anonymous/9c3973e0ffe1660ace4423056b2941d1
bambanx has quit [Quit: Leaving]
<elomatreb> initialize is run after the methods are defined, so it overrides the existing one
<elomatreb> Oh, you asked for documentation. nvm, sorry
<pupsicle> No that's perfect. Thanks very much
gizmore has joined #ruby
Beams has quit [Quit: .]
<elomatreb> pupsicle: https://eval.in/810647 demonstration :)
<pupsicle> Very cool. It makes sense too, not sure why it didn't occur to me. Thanks.
troys has joined #ruby
TomyLobo has joined #ruby
ozcanesen has joined #ruby
<apeiros> to be a bit more precise: initialize is run every time you call Foo.new (which you call after defining bar)
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
micahjam97 has joined #ruby
cdg has joined #ruby
im0nde has quit [Quit: im0nde]
cadillac_ has quit [Ping timeout: 246 seconds]
synthroid has quit []
arup_r has joined #ruby
bmurt has joined #ruby
pawandubey has joined #ruby
valerauko has quit [Quit: Leaving.]
valerauko has joined #ruby
valerauko has quit [Client Quit]
<LyndsySimon> pupsicle: I would actually explain that differently. Foo.bar is calling "bar", a method of "Foo". Foo.new.bar is calling "bar", a method of "Foo.new", which of course is an instance of "Foo". It's not so much a matter of the order things are happening as it is becuase of the fact that an instance of a class is a discrete object, and doesn't share methods with the class from which it is derived.
<LyndsySimon> You know what, scratch that. I'm overcomplicating, and thought you had defined self.bar.
<pupsicle> LyndsySimon: bar was instance method as well, yeah.
<pupsicle> Thanks though
lxsameer has quit [Quit: WeeChat 1.7]
<LyndsySimon> Yeah, I should have stopped and verified my reading of it.
<pupsicle> no worries
kaiks has quit [Ping timeout: 260 seconds]
cdg_ has joined #ruby
cdg has quit [Ping timeout: 245 seconds]
duderonomy has quit [Ping timeout: 245 seconds]
chichou has quit [Ping timeout: 246 seconds]
nowhere_man has joined #ruby
hays_ has joined #ruby
hays_ has quit [Changing host]
hays_ has joined #ruby
crankhar1er has quit [Ping timeout: 272 seconds]
woodruffw has quit [Ping timeout: 258 seconds]
woodruffw has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Changing host]
hays has quit [Ping timeout: 268 seconds]
perniciouscaffei has joined #ruby
gusrub has quit [Remote host closed the connection]
cerulean has joined #ruby
crankharder has joined #ruby
_joes__ has quit [Quit: Connection closed for inactivity]
balazs has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
stormbytes has quit [Ping timeout: 255 seconds]
troys is now known as troys_
bigkevmcd has quit [Quit: Outta here...]
stormbytes has joined #ruby
arup_r has quit [Remote host closed the connection]
cschneid_ has joined #ruby
davidalejandro has joined #ruby
troys_ is now known as troys
davidalejandro has quit [Quit: Page closed]
cschneid_ has quit [Ping timeout: 260 seconds]
micahjam97 has quit [Quit: Page closed]
ecuanaso has joined #ruby
arup_r has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
johnzorn has quit [Ping timeout: 268 seconds]
jgt2 has joined #ruby
djbkd has joined #ruby
arup_r has quit []
nowhere_man has quit [Ping timeout: 240 seconds]
chouhoul_ has joined #ruby
xall has joined #ruby
romank has quit [Ping timeout: 260 seconds]
jgt2 has quit [Ping timeout: 240 seconds]
mathys has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
duderonomy has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
dcluna has joined #ruby
nadir has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
johnzorn has joined #ruby
akkad has quit [Excess Flood]
hutch34 has joined #ruby
gusrub has joined #ruby
akkad has joined #ruby
ZacNoMore has joined #ruby
cschneid_ has quit [Read error: Connection reset by peer]
enterprisey has joined #ruby
cschneid_ has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pawandubey has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mwlang has quit [Quit: mwlang]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jusa has quit [Ping timeout: 260 seconds]
Axy has joined #ruby
pawandubey has joined #ruby
KeyJoo has joined #ruby
pupsicle has quit [Ping timeout: 260 seconds]
mim1k has joined #ruby
ZacNoMore has quit [Ping timeout: 255 seconds]
quobo has joined #ruby
ZacNoMore has joined #ruby
enterprisey has quit [Quit: Leaving]
vali has quit [Ping timeout: 240 seconds]
Cohedrin has quit [Ping timeout: 255 seconds]
Cohedri__ has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
Cohedri__ has quit [Client Quit]
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
mim1k has joined #ruby
opencw has joined #ruby
pupsicle has joined #ruby
taurgal has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
AlHafoudh has joined #ruby
Bock has quit [Remote host closed the connection]
pb122-two has joined #ruby
Rich_Morin_ has quit [Ping timeout: 268 seconds]
pb122 has quit [Ping timeout: 268 seconds]
blackwind_123 has quit [Ping timeout: 240 seconds]
blackwind_123 has joined #ruby
<cout> is there any [preferably but not necessarily non-hacky] way to guarantee ordering of finalizer calls at shutdown?
Rich_Morin_ has joined #ruby
<cout> I have an application that uses ffi-rzmq, and if the zmq socket isn't closed before the context is destroyed, the process hangs
<cout> (IMO zmq is being stupid here, but that's another story)
mim1k has joined #ruby
mahlon has quit [Quit: WeeChat 1.7.1]
workmad3_ has quit [Ping timeout: 240 seconds]
<KrzaQ> Are questions about windows rubyinstaller in scope of this channel?
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 240 seconds]
Rich_Morin_ has quit [Ping timeout: 258 seconds]
<havenwood> KrzaQ: yes
<KrzaQ> I have an offline (I can only remote desktop to the server, there's no internet access) installation of ruby 2.4 by rubyinstaller2. How can I install gems?
<KrzaQ> I googled it, but I'm not sure if [1] is still a correct way to do this.
mahlon has joined #ruby
<elomatreb> The general strategy of downloading a packaged gem and installing it is still correct
LastWhisper____ has joined #ruby
<KrzaQ> Ok, thank you :)
Rich_Morin_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
djbkd has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LastWhisper____ has quit [Client Quit]
LastWhisper____ has joined #ruby
__Yiota has joined #ruby
djbkd has joined #ruby
Rich_Morin_ has quit [Ping timeout: 246 seconds]
GodFather_ has joined #ruby
mim1k has joined #ruby
GodFather_ has quit [Read error: No route to host]
Axy has quit [Ping timeout: 268 seconds]
Rich_Morin has joined #ruby
GodFather_ has joined #ruby
zacts has quit [Ping timeout: 258 seconds]
DLSteve has joined #ruby
xall has quit [Read error: Connection reset by peer]
xall has joined #ruby
dionysus69 has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
HoierM has quit [Ping timeout: 260 seconds]
foxxx0 has quit [Changing host]
foxxx0 has joined #ruby
Rich_Morin has quit [Ping timeout: 240 seconds]
jenrzzz_ has joined #ruby
cerulean_ has joined #ruby
Rich_Morin_ has joined #ruby
cerulean has quit [Ping timeout: 240 seconds]
djbkd has quit [Ping timeout: 240 seconds]
jgt2 has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
dmtd has quit [Quit: Connection closed for inactivity]
borodin has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
Rich_Morin_ has quit [Ping timeout: 240 seconds]
gheegh has quit [Ping timeout: 240 seconds]
kies has quit [Ping timeout: 255 seconds]
jgt2 has quit [Ping timeout: 240 seconds]
mochiyoda_ has joined #ruby
yogg-saron has joined #ruby
djbkd has quit []
jshjsh has quit [Ping timeout: 258 seconds]
Rich_Morin_ has joined #ruby
pawandubey has quit [Ping timeout: 272 seconds]
PaulCapestany has quit [Quit: .]
<cerulean_> can anyone help me solve this one https://gist.github.com/anonymous/349cf63ea7e3bafdca6b392638fb1884
gusrub has quit [Remote host closed the connection]
Rich_Morin_ has quit [Ping timeout: 268 seconds]
Cohedrin has joined #ruby
<cerulean_> found the issue, but i have no idea what to do
hutch34 has quit [Ping timeout: 240 seconds]
Axy has joined #ruby
Axy has joined #ruby
PaulCapestany has joined #ruby
<apeiros> you should use set_key(n, e, d) instead of .e=, .n=, .d=
jenrzzz_ has quit [Ping timeout: 255 seconds]
<cerulean_> thx apeiros
<elomatreb> Low-level crypto interfaces D:
<cerulean_> :D
Rich_Morin_ has joined #ruby
<apeiros> elomatreb: more like blow-up level crypto interfaces, amirite?
plujon has joined #ruby
dlitvak has quit [Quit: Connection closed for inactivity]
hutch34 has joined #ruby
<elomatreb> "RSA is just numbers, what could be so difficult"
<apeiros> recommended by lord failalot and sir securitygaped
<cerulean_> it's in the netssh gem
bkxd has joined #ruby
<cerulean_> do i neeed to fork and fix?
<apeiros> did you try updating first?
djbkd has joined #ruby
<cerulean_> git-deploy is throwing the error, let me try updating git-deploy
<cerulean_> it looks like it's using a very old version of net-ssh
elouisyoung has quit [Quit: Ex-Chat]
<apeiros> that on its own might be a reason not to use git-deploy
<cerulean_> it was working as of very recently
<apeiros> security related stuff should not be old
<apeiros> "working"
<cerulean_> what should i switch to then? it was working really well
<apeiros> all computers which got owned by any of the various viruses, trojans and other toolkits worked fine too
bkxd has quit [Ping timeout: 240 seconds]
<elomatreb> What does git deploy do? If it's just what I think it is, can't you use the actual git executable which will use your system ssh?
bkxd has joined #ruby
<cerulean_> yes you can, git-deploy integrates with it
<cerulean_> i might ditch it soon tho
jenrzzz has joined #ruby
ta has quit [Remote host closed the connection]
<cerulean_> hasnt been updated since 2015
* apeiros still uses git + 20 lines of shell for private deploys
<apeiros> and I think now with `git worktree` I could probably axe 5 lines.
djbkd has quit [Remote host closed the connection]
oleo has quit [Excess Flood]
Rich_Morin_ has quit [Ping timeout: 255 seconds]
oleo has joined #ruby
ur5us has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 260 seconds]
weaksauce has quit [Read error: Connection reset by peer]
eightlimbs has joined #ruby
troys is now known as troys_
nowhere_man has joined #ruby
username1 has quit [Ping timeout: 260 seconds]
Rich_Morin_ has joined #ruby
<cerulean_> well i fixed it
<cerulean_> it was because i nuked my git history
<cerulean_> i rolled back to an older history (oh well)
giantwaffeldonke has joined #ruby
giantwaffeldonke is now known as ircmaxell
jusa has joined #ruby
<eightlimbs> I wrote a question as a comment in the gist
troys_ is now known as troys
zacts has joined #ruby
<eightlimbs> I don't understand why (arr.length-1).times produces different results than arr.length-1.times
djbkd has joined #ruby
<elomatreb> precedence. You're doing arr.length - (1.times ...)
djbkd has quit [Remote host closed the connection]
<rickumali> whoa!
djbkd has joined #ruby
shinnya has joined #ruby
cpruitt has joined #ruby
<apeiros> and 1.times returns 1 and runs the block once.
mtkd has quit [Ping timeout: 245 seconds]
__Yiota has joined #ruby
mim1k has joined #ruby
<ircmaxell> I'm running into a really weird problem: https://github.com/plataformatec/devise/blob/master/lib/devise/parameter_filter.rb#L17-L24 that block of code is adding a key to conditions that doesn't exist before hand.
<apeiros> oh, "sorted" means "performed a sort during this iteration"
djbkd has quit [Ping timeout: 260 seconds]
<apeiros> ?rails ircmaxell
<ruby[bot]> ircmaxell: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<ircmaxell> calling with `({}, :downcase, [:email]`) returns {:email : nil} at runtime, but not in console
<ircmaxell> apeiros: not a rails question
cdg_ has quit [Remote host closed the connection]
ta has joined #ruby
<ircmaxell> basically, `conditions[k] = value.send(method) if value.respond_to?(method)` is assigning even though value is `nil`
mtkd has joined #ruby
<apeiros> if I had a penny for every time people claim "it's not a rails question" when it really is. but this time, you're actually right :D
djbkd has joined #ruby
<ircmaxell> this isn't my first rodeo (though an early forey into Ruby/Rails)
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> what does it return in console?
<ircmaxell> console runs as expected, and produces {}
zacts has quit [Ping timeout: 268 seconds]
<apeiros> check your return value's .default_proc
<apeiros> the one at runtime
<ircmaxell> ok, booting debugger
LastWhisper____ has joined #ruby
<apeiros> maybe it's not really a plain empty hash, but one like: Hash.new { |h,k| h[k] = nil } (though, seems unreasonable, but it would exhibit the observed behavior)
<apeiros> >> Hash.new { |h,k| h[k] = nil }
<ruby[bot]> apeiros: # => {} (https://eval.in/810953)
<apeiros> looks empty at first
<apeiros> >> Hash.new { |h,k| h[k] = nil }; h[:email]; h
mim1k has quit [Ping timeout: 268 seconds]
<ruby[bot]> apeiros: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<apeiros> gawd, eval.in hasn't been very reliable lately :(
<apeiros> >> Hash.new { |h,k| h[k] = nil }; h[:email]; h
<ruby[bot]> apeiros: # => undefined local variable or method `h' for main:Object (NameError) ...check link for more (https://eval.in/810954)
<havenwood> #=> {:email=>nil}
<apeiros> >> h = Hash.new { |h,k| h[k] = nil }; h[:email]; h
<ruby[bot]> apeiros: # => {:email=>nil} (https://eval.in/810961)
<apeiros> >> h = Hash.new { |h,k| h[k] = nil }; h[:email]; h.default_proc
<ruby[bot]> apeiros: # => #<Proc:0x41fa9a10@/tmp/execpad-595c17bf445f/source-595c17bf445f:2> (https://eval.in/810962)
<apeiros> if default_proc is nil, then I have no idea what's happening and would suggest to set a binding.pry in the relevant piece of code to see what's going on.
djbkd has quit []
blackwind_123 has quit [Ping timeout: 240 seconds]
<eightlimbs> elmatreb: thank you
zacts has joined #ruby
<eightlimbs> apeiros: thank you
<eightlimbs> i see now
<ircmaxell> yeah, proc is nil
<apeiros> ircmaxell: ok, binding.pry before line 18, 19, 20 and 21 :)
<apeiros> investigate that bugger
<apeiros> though, without me, I gotta shower and stretch
<ircmaxell> yeah, I tried attaching GDB, but man this runtime is too complex to simply understand
cschneid_ has quit [Read error: Connection reset by peer]
spheric has quit [Ping timeout: 260 seconds]
<apeiros> I'd use binding.pry. there are a couple of helpful scripts around to get gdb to work, though.
<ircmaxell> thanks!
blackwind_123 has joined #ruby
cschneid_ has joined #ruby
jusa has quit [Ping timeout: 260 seconds]
nowhere_man has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
belmoussaoui__ is now known as belmoussaoui
jamesaxl has quit [Read error: Connection reset by peer]
ta has quit [Remote host closed the connection]
jamesaxl has joined #ruby
rohitpaulk has joined #ruby
<eightlimbs> I have an array like this: [[1, 2], [3, 4], [8, 9], [4, 3], [2, 1]] - I want to remove the arrays that have the same digits as previous elements in the array ([4, 3], [2, 1])
username has joined #ruby
<eightlimbs> I tried .map{|x| x.sort } , but then I lose the order of the original array
fmcgeough has quit [Quit: fmcgeough]
<eightlimbs> .map{|x| x.sort }.uniq
SpydarOO7 has joined #ruby
<elomatreb> I feel like you could do something with a set difference (-)
<elomatreb> >> [1, 2] - [2, 1]
<ruby[bot]> elomatreb: # => [] (https://eval.in/811070)
djuls has quit [Ping timeout: 240 seconds]
eightlimbs has quit [Remote host closed the connection]
Cohedrin has quit [Read error: Connection reset by peer]
eightlimbs has joined #ruby
<ircmaxell> apeiros: found it. Thanks. Someone defined nil.downcase...
<ircmaxell> sigh
* ircmaxell head-desks
<elomatreb> wat
Cohedrin has joined #ruby
ta has joined #ruby
Zarthus is now known as bathtub_shark
Zarthus_ is now known as Zarthus
im0nde has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
<apeiros> ircmaxell: oh dear
centrx has joined #ruby
<apeiros> please send a bug report to the author of whichever gem committed this atrocity.
Cohedrin has joined #ruby
hutch34 has quit [Quit: WeeChat 1.5]
Cohedrin has quit [Read error: Connection reset by peer]
brent__ has quit [Remote host closed the connection]
<apeiros> ircmaxell: in case you need help to figure that out: nil.method(:downcase).source_location
kies has joined #ruby
* elomatreb hides
* apeiros knows somebody who put this into a relatively popular gem
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
lxsameer has joined #ruby
GodFather_ has quit [Ping timeout: 260 seconds]
ecuanaso has joined #ruby
rohitpaulk has quit [Ping timeout: 240 seconds]
troys is now known as troys_
jenrzzz has quit [Ping timeout: 260 seconds]
Cohedrin has joined #ruby
guymanndude has joined #ruby
<guymanndude> hi, I've noticed a bug in my code where converting a DateTime UNIX epoch time to a formatted string sets the date to 1970-01-01
benlieb has joined #ruby
<guymanndude> any guidance on what I'm doing wrong?
<guymanndude> DateTime.strptime(epoch_date.to_s, '%s').strftime("%Y-%m-%d")
mtkd has quit [Read error: Connection reset by peer]
^mtkd has joined #ruby
<benlieb> Are array lookups in ruby constant time? Just curious after reading this comment, probably meaning to refer to Java or C: Array is collection of similar types of data. So all the elements will take same amount of memory.Therefore if you know the base address of array and type of data it holds you can easily get element Array[i] in constant time:
cadillac__ has joined #ruby
<guymanndude> where epoch_date is Time.now.utc.to_i basically
im0nde has quit [Ping timeout: 255 seconds]
chouhoul_ has joined #ruby
mim1k has joined #ruby
im0nde has joined #ruby
jenrzzz has joined #ruby
chouhoulis has quit [Ping timeout: 255 seconds]
gnufied has quit [Quit: Leaving]
haylon has quit []
gusrub has joined #ruby
troys_ is now known as troys
mim1k has quit [Ping timeout: 246 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cerulean_ is now known as cerulean
perniciouscaffei has quit [Ping timeout: 240 seconds]
im0nde has quit [Ping timeout: 246 seconds]
opencw has quit [Quit: Quantumcommunicationsarray offline]
jordila has joined #ruby
<pupsicle> benlieb: If you view the source, you can see that it is: https://github.com/ruby/ruby/blob/d0015e4ac6b812ea1681b1f5fa86fbab52a58960/array.c#L1210
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<pupsicle> benlieb: the function fb_ary_entry is called by Array #[] as seen here: https://ruby-doc.org/core-1.9.3/Array.html#method-i-5B-5D
dionysus69 has quit [Ping timeout: 240 seconds]
<pupsicle> rb_ary_entry*
<apeiros> benlieb: yes, arraylookup is O(1)
<ircmaxell> apeiros: yeah, that's how I found it actually. And it was in one of our applications code libraries (not a gem)
jordila has left #ruby [#ruby]
<cerulean> do you guys recommend any light weight searching (rails) solutions?
<pupsicle> >> DateTime.strptime(Time.now.utc.to_i.to_s, '%s').strftime('%Y-%m-%d')
<ruby[bot]> pupsicle: # => uninitialized constant DateTime (NameError) ...check link for more (https://eval.in/811107)
<cerulean> is there an easy Model.search like method? (rails channel is dead)
patarr has joined #ruby
<pupsicle> >> require 'date'; DateTime.strptime(Time.now.utc.to_i.to_s, '%s').strftime('%Y-%m-%d')
<ruby[bot]> pupsicle: # => "2017-06-02" (https://eval.in/811108)
<pupsicle> guymanndude: seems to work for me
<havenwood> cerulean: See #where and #find_by, etc.
akkad has quit [Excess Flood]
jgt2 has joined #ruby
akkad has joined #ruby
<guymanndude> pupsicle: here's how I'm using for ref https://0bin.net/paste/iU2tMR-9C9-GkWAK#tst4Pm2vJ8Wk7usGJv1nDlu4dUHVG+sBgynVTwiHfDu
<guymanndude> pupsicle: how I end up calling it is: Time.epoch_to_date(epoch_date: Time.now)
GinoMan2440 has joined #ruby
<guymanndude> this always gives me the 1970 date
patarr has quit [Ping timeout: 255 seconds]
brent__ has joined #ruby
<pupsicle> guymanndude: add a 'to_i' on the end of that Time.now
<al2o3-cr> guymanndude: you have to call tv_sec or to_i first
djuls has joined #ruby
GodFather_ has joined #ruby
jgt2 has quit [Ping timeout: 268 seconds]
GinoMan has quit [Ping timeout: 268 seconds]
chouhoulis has quit [Remote host closed the connection]
cpruitt has quit [Quit: cpruitt]
akkad has quit [Excess Flood]
ldnunes has quit [Quit: Leaving]
GinoMan2440 has quit [Ping timeout: 240 seconds]
Fernando-Basso has quit [Quit: WeeChat 1.8]
rickumali has left #ruby [""Peace!""]
taurgal has joined #ruby
<al2o3-cr> guymanndude: any reason you're using DateTime and not just Time?
<guymanndude> al2o3-cr: I believe Time is only localtime and I need utc
djbkd has joined #ruby
<guymanndude> I guess I could do Time.utc.strptime...
<guymanndude> actually that wouldn't work
<al2o3-cr> i'd do something the long the lines of
<manveru> Time.strptime('2007 UTC', '%Y %z')
<al2o3-cr> >> class Time def epoch_to_date(epoch_date:) Time.at(epoch_date).utc.strftime('%F') end end; Time.epoch_to_date epoch_date: 342344
<ruby[bot]> al2o3-cr: # => undefined method `epoch_to_date' for Time:Class (NoMethodError) ...check link for more (https://eval.in/811111)
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<manveru> you can always append the timezone for strptime :)
eightlimbs has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
eightlimbs has joined #ruby
akkad has joined #ruby
fmcgeough has joined #ruby
__Yiota has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
mahlon has quit [Read error: Connection reset by peer]
fmcgeough has quit [Client Quit]
mahlon has joined #ruby
taurgal has quit [Ping timeout: 255 seconds]
ozcanesen has quit [Quit: Textual IRC Client: www.textualapp.com]
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stee_3_ has joined #ruby
costa has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
biberu has quit []
jamesaxl has joined #ruby
stee_3 has quit [Ping timeout: 260 seconds]
<guymanndude> hmm, so I've been thinking about how I'd test this with RSpec
<guymanndude> essentially ensuring that a date that I pass to epoch_date is never 1970-01-01
<guymanndude> but I'm a little stumped on how I'd mock this out
ledestin has joined #ruby
<pupsicle> Not sure mocking is the right way to approach testing your method.
AgentVenom has quit [Ping timeout: 240 seconds]
<pupsicle> Just in a sense that it is a pure function, there is nothing to mock.
jusa has joined #ruby
costa has quit [Remote host closed the connection]
mim1k has joined #ruby
Kneecaps has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
HoierM has joined #ruby
mim1k has quit [Ping timeout: 268 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
mim1k has joined #ruby
benlieb has quit [Quit: benlieb]
benlieb has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
djuls has quit [Remote host closed the connection]
ResidentBiscuit has quit [Read error: Connection reset by peer]
benlieb has quit [Client Quit]
djuls has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
guymanndude has quit [Ping timeout: 260 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamesaxl has quit [Ping timeout: 260 seconds]
headius has joined #ruby
watersoul has quit [Write error: Connection reset by peer]
cgfbee has quit [Excess Flood]
hanna has quit [Remote host closed the connection]
watersoul has joined #ruby
sepp2k has quit [Ping timeout: 276 seconds]
cgfbee has joined #ruby
tekku has quit [Ping timeout: 260 seconds]
hanna` has joined #ruby
stan_ has joined #ruby
ytti_ has joined #ruby
DefV_ has joined #ruby
c-c_ has joined #ruby
cjohnson_ has joined #ruby
mcfiredrill has joined #ruby
G_ has joined #ruby
xsdg_ has joined #ruby
async_pr1 has joined #ruby
unreal_ has joined #ruby
patr0clus has joined #ruby
patr0clus has quit [Max SendQ exceeded]
patr0clus has joined #ruby
patr0clus has quit [Client Quit]
patr0clus has joined #ruby
hanna` is now known as hanna
gil_ has quit [Ping timeout: 240 seconds]
jinie has quit [Ping timeout: 240 seconds]
djuls- has joined #ruby
gil_ has joined #ruby
gil_ has joined #ruby
gil_ has quit [Changing host]
jinie has joined #ruby
Emmanuel_Chanel has joined #ruby
GinoMan has joined #ruby
djuls has quit [Ping timeout: 255 seconds]
tekk has joined #ruby
eightlimbs has quit [Ping timeout: 245 seconds]
KillerFox has quit [Write error: Broken pipe]
DefV has quit [Write error: Broken pipe]
ytti has quit [Write error: Broken pipe]
c-c has quit [Write error: Broken pipe]
xsdg has quit [Write error: Broken pipe]
forgot has quit [Write error: Broken pipe]
G has quit [Write error: Broken pipe]
cjohnson has quit [Write error: Broken pipe]
Biohazard has quit [Excess Flood]
Meeh has quit [Excess Flood]
kent\n has quit [Excess Flood]
is_null has quit [Excess Flood]
KnownSyntax has quit [Excess Flood]
Puffball has quit [Excess Flood]
nofxxxx has quit [Excess Flood]
saneax has quit [Excess Flood]
IcyDragon has quit [Excess Flood]
Biohazard has joined #ruby
Puffball_ has joined #ruby
DarthGandalf has quit [Excess Flood]
sunrunner20 has quit [Excess Flood]
jud has quit [Excess Flood]
SegFaultAX has quit [Excess Flood]
stan has quit [Quit: No Ping reply in 180 seconds.]
unreal has quit [Remote host closed the connection]
FastJack has quit [Remote host closed the connection]
async_prince has quit [Remote host closed the connection]
forgot has joined #ruby
is_null has joined #ruby
is_null has joined #ruby
is_null has quit [Changing host]
nofxxxx has joined #ruby
jud has joined #ruby
jud has joined #ruby
jud has quit [Changing host]
Some-body_ has joined #ruby
FastJack has joined #ruby
IceDragon has joined #ruby
KillerFox has joined #ruby
SegFaultAX has joined #ruby
forgot is now known as Guest34215
IceDragon is now known as Guest4061
centrx has quit []
Meeh has joined #ruby
saneax has joined #ruby
kent\n has joined #ruby
Some-body_ is now known as DarthGandalf
sunrunner20 has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
gheegh has joined #ruby
Radar has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
eightlimbs has joined #ruby
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
spheric has joined #ruby
djbkd has joined #ruby
mcfiredr1ll has quit [Ping timeout: 260 seconds]
Radar has joined #ruby
Radar is now known as Guest21136
FastJack_ has joined #ruby
roshanavand has quit [Quit: roshanavand]
FastJack has quit [Read error: Connection reset by peer]
lxsameer has quit [Ping timeout: 255 seconds]
djbkd has quit [Remote host closed the connection]
ur5us has joined #ruby
djuls- has quit [Read error: Connection reset by peer]
lightstalker has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 240 seconds]
lightstalker has joined #ruby
djbkd has joined #ruby
nowhere_man has joined #ruby
troys is now known as troys_
bmurt has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patarr has joined #ruby
jgt2 has joined #ruby
patarr has quit [Ping timeout: 255 seconds]
mathys has quit [Remote host closed the connection]
mathys has joined #ruby
jgt2 has quit [Ping timeout: 260 seconds]
segmond has joined #ruby
GodFather_ has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
bkxd has joined #ruby
djbkd has quit [Remote host closed the connection]
pupsicle has quit [Read error: Connection reset by peer]
bkxd has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
jackjackdripper has joined #ruby
cfec0b8d has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 245 seconds]
Nicmavr has joined #ruby
MarkBilk has joined #ruby
Nicmavr is now known as Guest44644
marr has quit [Ping timeout: 240 seconds]
Guest44644 has quit [Changing host]
Guest44644 has joined #ruby
Guest44644 is now known as Kestrel-029
MarkBilk_ has quit [Ping timeout: 245 seconds]
AlexRussia has joined #ruby
JoshS has joined #ruby
ecuanaso has joined #ruby
brent__ has quit [Remote host closed the connection]
brent___ has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
djbkd has quit [Remote host closed the connection]
choke has joined #ruby
jtd has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eightlimbs has quit [Ping timeout: 240 seconds]
eightlimbed has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
roychri has joined #ruby
jusa has joined #ruby
benlieb has joined #ruby