baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview1: https://www.ruby-lang.org || Paste 4+ lines of text to https://gist.github.com || Rails questions? Ask in #RubyOnRails || Books: https://goo.gl/wpGhoQ || Logs: https://irclog.whitequark.org/ruby
biox has joined #ruby
wald0 has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
montanonic has joined #ruby
workmad3 has joined #ruby
ivanskie has joined #ruby
ivanskie has quit [Read error: Connection reset by peer]
garyserj has quit [Ping timeout: 240 seconds]
garyserj has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
duderono_ has joined #ruby
duderonomy has quit [Ping timeout: 265 seconds]
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
cagomez has quit [Ping timeout: 264 seconds]
jenrzzz_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
duderono_ has quit [Ping timeout: 263 seconds]
orbyt_ has joined #ruby
AJA4350 has joined #ruby
Sina has quit [Quit: Connection closed for inactivity]
herbmillerjr has joined #ruby
alfiemax has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
alfiemax has quit [Ping timeout: 265 seconds]
eckhardt has joined #ruby
jenrzzz_ has quit [Ping timeout: 276 seconds]
mostly-harmless has quit [Ping timeout: 256 seconds]
eckhardt has quit [Ping timeout: 265 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ledestin has joined #ruby
anisha has joined #ruby
harrycs has joined #ruby
mostly-harmless has joined #ruby
eckhardt has joined #ruby
minimalism has joined #ruby
kurko_ has joined #ruby
kurko__ has quit [Ping timeout: 255 seconds]
duderonomy has joined #ruby
marr has quit [Ping timeout: 255 seconds]
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
harrycs has quit [Remote host closed the connection]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
harrycs has joined #ruby
cthulchu has quit [Ping timeout: 240 seconds]
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
meinside has joined #ruby
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
dimik--- has quit [Ping timeout: 260 seconds]
Dimik_djan has quit [Ping timeout: 268 seconds]
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
eckhardt has joined #ruby
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
gizmore has joined #ruby
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
GodFather has joined #ruby
gizmore|2 has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Remote host closed the connection]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
pilne has quit [Quit: Leaving]
giraffe has joined #ruby
tpendragon has joined #ruby
cyberg has quit [Read error: Connection reset by peer]
DTZUZU has quit [Quit: WeeChat 1.9]
marxarelli is now known as marxarelli|afk
memo1 has joined #ruby
<harrycs> Anyone have best practices for using RSpec with a test db /without/ Rails? I'm unsure what's the best way to proceed - I feel like environmental variables are the best method but I want to be sure to not implement them stupidly
tdy has quit [Ping timeout: 260 seconds]
tvw has quit [Ping timeout: 260 seconds]
dinfuehr has quit [Ping timeout: 240 seconds]
SteenJobs has joined #ruby
<Radar> harrycs: CONTROVERSIAL
<Radar> harrycs: what would you use to talk to the test database?
dinfuehr has joined #ruby
konsolebox has joined #ruby
mroutis has quit [Ping timeout: 240 seconds]
<harrycs> Radar: I'm using ActiveRecord. Mainly so people flame me on irc haha
harrycs has quit [Remote host closed the connection]
<harrycs> both dev and test dbs are postgres
montanonic has quit [Ping timeout: 260 seconds]
harrycs has joined #ruby
<Radar> harrycs: ok, so no Rails but ActiveRecord? You're in luck!
shinnya has joined #ruby
<harrycs> i think i got it figured out. basically, spec_helper declares an environmental variable, and the app only does if one hasn't been declared yet. I use this variable to determine which set is loaded from my database config yml
harrycs has quit [Remote host closed the connection]
<harrycs> i'm almost positive that this is a stupid way to do it for some reason. gotta live life on the edge
harrycs has joined #ruby
<Radar> harrycs: Keeps my environment vars out of my code.
<Radar> my spec_helper in this app loads those environment variables in a roundabout way, but you could have a file that's the same and load it with `Dotenv.load(".env.test")` in your spec_helper
harrycs has quit [Remote host closed the connection]
kapil___ has quit [Quit: Connection closed for inactivity]
harrycs has joined #ruby
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
masterasia has quit [Read error: Connection reset by peer]
haylon has quit [Remote host closed the connection]
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
harrycs has quit [Client Quit]
tdy has joined #ruby
workmad3 has joined #ruby
n0m4d1c has quit [Ping timeout: 263 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
DTZUZU has joined #ruby
sliceline has joined #ruby
orbyt_ has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
<sliceline> how many people use Ruby for metasploit / nexpose
<sliceline> Just curious
zautomata2 has quit [Ping timeout: 264 seconds]
minimalism has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
imode has joined #ruby
fullstack has quit [Ping timeout: 246 seconds]
Yzguy has joined #ruby
fullstack has joined #ruby
karapetyan has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
montanonic has joined #ruby
cadillac_ has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
fullstack has quit [Ping timeout: 255 seconds]
Yzguy has quit [Quit: Zzz...]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Yzguy has joined #ruby
alfiemax_ has joined #ruby
<havenwood> sliceline: Lots. Ask in #metasploit.
<havenwood> ?metasploit
<ruby[bot]> Please join #metasploit for help with it.
orbyt_ has joined #ruby
memo1 has quit [Ping timeout: 256 seconds]
fullstack has joined #ruby
mroutis has joined #ruby
levifigGQ2PMB has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
levifigGQ2PMB has quit [Remote host closed the connection]
alfiemax_ has quit [Remote host closed the connection]
anisha has quit [Quit: This computer has gone to sleep]
nadir has joined #ruby
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
sagax has quit [Ping timeout: 264 seconds]
karapetyan has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
lelliott has joined #ruby
karapetyan has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
donofrio has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
dviola has quit [Quit: WeeChat 2.1]
darkhanb has joined #ruby
ragingmonkey has quit []
mroutis has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
guacamole has quit [Ping timeout: 255 seconds]
Eiam has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
ryzokuken has joined #ruby
oleo has quit [Quit: Leaving]
govg has joined #ruby
montanonic has quit [Ping timeout: 260 seconds]
RougeR has quit [Ping timeout: 240 seconds]
montanonic has joined #ruby
FrankD has quit [Ping timeout: 240 seconds]
kapil___ has joined #ruby
darkhanb has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has quit [Ping timeout: 240 seconds]
reber has joined #ruby
wald0 has quit [Quit: Lost terminal]
sundhell_away is now known as sundhell
mozzarella has quit [Ping timeout: 276 seconds]
mozzarella has joined #ruby
mojca has joined #ruby
mojca has quit [Changing host]
mojca has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
jamesaxl has joined #ruby
clemens3 has joined #ruby
Yzguy has quit [Quit: Zzz...]
ur5us has quit [Ping timeout: 240 seconds]
toks has joined #ruby
toks has quit [Client Quit]
ta_ has joined #ruby
alex`` has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
ta_ has joined #ruby
arescorpio has joined #ruby
cadillac_ has quit [Ping timeout: 260 seconds]
cadillac_ has joined #ruby
alfiemax has joined #ruby
sauvin has joined #ruby
karapetyan has joined #ruby
minimalism has joined #ruby
karapetyan has quit [Ping timeout: 265 seconds]
lelliott has quit [Remote host closed the connection]
nielsk has quit [Ping timeout: 265 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
byte512 has quit [Ping timeout: 264 seconds]
mr_rich101 has quit [Ping timeout: 255 seconds]
DarkArc has quit [Ping timeout: 264 seconds]
nielsk has joined #ruby
cyberRodent has quit [Ping timeout: 264 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
lightstalker has quit [Ping timeout: 240 seconds]
Dark_Arc has joined #ruby
mr_rich101 has joined #ruby
n3b has quit [Ping timeout: 240 seconds]
cyberRodent has joined #ruby
clemens3 has quit [Ping timeout: 260 seconds]
byte512 has joined #ruby
mojca has left #ruby [#ruby]
sidx64 has joined #ruby
aupadhye has joined #ruby
fullstack has quit [Ping timeout: 264 seconds]
fullstack has joined #ruby
n3b has joined #ruby
sliceline has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 256 seconds]
suukim has joined #ruby
zapata_ is now known as zapata
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lightstalker has joined #ruby
ta_ has joined #ruby
arescorpio has quit [Quit: Leaving.]
erlend has quit [Ping timeout: 260 seconds]
Levi has joined #ruby
erlend has joined #ruby
<Levi> Hello, please is there any way to make a condition based on object existence in method call? Example: url(:home, :index, @object ? :object => @object : :object => nil)
<Levi> only when object exists I would like to add parameter :object
montanonic has quit [Ping timeout: 260 seconds]
<apeiros> Levi: sounds like you can just do :object => @object
<apeiros> since if @object is nil, you pass nil anyway
<apeiros> so you can just use @object straight
<Levi> yes, it works, oh my .. thanks !
<Levi> I love ruby
<Levi> this did not came to my mind
<Levi> I was expecting necessarity of definition
<Levi> thank you so much it helped a lot
<apeiros> you mean defining the instance variable?
<Levi> yes
<apeiros> that's not the same as an object
<apeiros> variables and objects are fundamentally different things
<Levi> sorry, I was thinking bad way
<apeiros> but yes, it's certainly better if you have an `@object = nil` in your initialize
<Levi> okay
<apeiros> gotta run, laters
apeiros has quit [Remote host closed the connection]
Levi has quit [Quit: Leaving.]
apeiros has joined #ruby
<baweaver> Qo 0.1.7 is out. Now with dig, deep hash matching, and count_by :D
apeiros has quit [Ping timeout: 260 seconds]
lelliott has joined #ruby
<dminuoso> Q.Q
<dminuoso> baweaver: can Qo smoosh and woosh?
<baweaver> smoosh?
<baweaver> I mean I _could_ make it do keypathing
<dminuoso> So can I smoosh Qo[Qo[...]] ?
ramfjord has joined #ruby
<dminuoso> And I really want to woosh.
<baweaver> Define those two
<baweaver> because I don't follow
<baweaver> What would you expect those to do?
<baweaver> and do you have a use case for it?
ramfjord has quit [Ping timeout: 265 seconds]
suukim has quit [Quit: Konversation terminated!]
<baweaver> dminuoso matcher + m looks semi-monadic if you squint
workmad3 has joined #ruby
<dminuoso> semi monadic?
<dminuoso> What is semimonadic?
<baweaver> Kinda like
<baweaver> because all m/matcher values are wrapped as [status, response] which gets pulled by match
anisha has joined #ruby
<baweaver> value -> matcher(String) { |v| v } -> .... -> piped value or nil
<dminuoso> uhh what?
<baweaver> as soon as any matcher registers a match it'll pipe the value to the block and return the value of the block
<baweaver> or nil in the case that nothing is found
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
<dminuoso> `m` is a monad if arrows of the shape `a -> m b` form a category.
<dminuoso> What's your m
<dminuoso> Or are you just saying that you're in the `nil` monad?
sagax has joined #ruby
dionysus69 has joined #ruby
sanscoeur has quit [Read error: Connection reset by peer]
sanscoeur has joined #ruby
apeiros has joined #ruby
mikhael_k33hl has joined #ruby
konsolebox has quit [Ping timeout: 268 seconds]
sanscoeur has quit [Remote host closed the connection]
konsolebox has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
<mikhael_k33hl> If thread.kill is not recommended, what's the best way to stop a thread?
<Radar> the inevitable passing of time
troys has quit [Quit: Bye]
<Radar> all threads die, in time
<jokester> send a message to the thread, and let it end in peace
<dminuoso> SIGBUS the Process.
<dminuoso> I promise the thread will stop.
rabajaj has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
inerthia has joined #ruby
jamesaxl has joined #ruby
alex`` has quit [Ping timeout: 264 seconds]
ianfleeton has joined #ruby
kaawaa has joined #ruby
psychicist__ has joined #ruby
dr3w_ has joined #ruby
mkaito has quit [Ping timeout: 256 seconds]
ianfleeton has quit [Client Quit]
kaawaa has quit [Read error: Connection reset by peer]
kaawaa has joined #ruby
venmx has joined #ruby
andikr has joined #ruby
sidx64 has quit [Read error: Connection reset by peer]
ryzokuken has quit [Remote host closed the connection]
mkaito has joined #ruby
mkaito has quit [Changing host]
mkaito has joined #ruby
sidx64 has joined #ruby
psychicist__ has quit [Read error: Connection reset by peer]
psychicist__ has joined #ruby
SteenJobs has quit [Ping timeout: 265 seconds]
Burgestrand has joined #ruby
imode has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
atchoum has joined #ruby
schneider has joined #ruby
venmx has quit [Remote host closed the connection]
tomphp has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
atchoum has quit [Ping timeout: 265 seconds]
mtkd has joined #ruby
marr has joined #ruby
dionysus69 has joined #ruby
warbaque has joined #ruby
mlkkk has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has quit [Ping timeout: 264 seconds]
TomyWork has joined #ruby
mikecmpbll has joined #ruby
<warbaque> I have a nested object e.g. {'b'=>['2',1','3'],'c'=>{...}, 'a'='10'}, and I would like all elements and sub elements to be sorted i.e. {'a'='10', 'b'=>[1','2','3'],'c'=>{...}} and turn it into a string
tomphp has joined #ruby
ianfleeton has joined #ruby
erlend has quit [Ping timeout: 240 seconds]
erlend has joined #ruby
dionysus69 has joined #ruby
<konsolebox> >> {'b'=>['2','1','3'],'c'=>{}, 'a'=>'10'}.sort_by{|k, v| k}.to_h
<ruby[bot]> konsolebox: # => {"a"=>"10", "b"=>["2", "1", "3"], "c"=>{}} (https://eval.in/987590)
SteenJobs has joined #ruby
<phaul> the sub array under the key 'b' is not sorted there
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<phaul> warbaque: can this strucure have many layers, or just the top level and the key value pairs, where values can be arrays or objects?
<phaul> objects I means strings...
<konsolebox> i see. i just looked at the example and missed the values part.
<warbaque> values can be strings, arrays or hashmaps, arrays and hashes should be sorted but not strings
shinnya has quit [Ping timeout: 260 seconds]
SteenJobs has quit [Ping timeout: 260 seconds]
claudiuinberlin has joined #ruby
<dminuoso> Mm, with my library that would just be: (Q.toH * Q.sortBy(Q.fst) * Q.map(Q.sort) * Q.toA)[obj]
<phaul> how does ['1'] and '1' compare?
<dminuoso> Oh
<dminuoso> phaul: It doesn't need to.
guille-moe has joined #ruby
workmad3 has joined #ruby
<dminuoso> >> {'b'=>['2','1','3'],'c'=>{}, 'a'=>'10'}.sort_by(&:first).map { |k, v| [k, v.respond_to?(:sort) ? v.sort : v ] }.to_h
<ruby[bot]> dminuoso: # => {"a"=>"10", "b"=>["1", "2", "3"], "c"=>[]} (https://eval.in/987606)
venmx has joined #ruby
alfiemax has quit [Remote host closed the connection]
KeyJoo has joined #ruby
<dminuoso> warbaque: Though if possible you should avoid such heterogenous data structures.
<dminuoso> They are generally a PITA to work with.
karapetyan has joined #ruby
<dminuoso> e.g. if you could do {a: [10], b: [1,2,3]} instead of {a: 10, b: [1,2,3] } you will have a better time
kapil___ has joined #ruby
alfiemax has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
<phaul> what wasn't clear to me is that this thing can be deeply nested, or just the top layer and the next? warbaque ?
anisha has quit [Quit: This computer has gone to sleep]
<warbaque> every value can nest more
<apeiros> warbaque: what do you have yourself so far?
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
<warbaque> apeiros: nothing just an arbitary querystring that can contain pretty much anything
<apeiros> warbaque: I meant your approach
<apeiros> code you wrote trying to solve this
nausea has quit [Remote host closed the connection]
<konsolebox> warbaque: hint: you use a recursive function
<warbaque> konsolebox: thats my idea
<warbaque> arrays can have other arrays or hashmaps mixed in
* apeiros waits for warbaque to show what they wrote so far
<warbaque> nothing that works yet
<apeiros> it doesn't need to be working
<konsolebox> this is going to be a problem though: [3, 2, [4, 6, 5]]
tomphp has quit [Read error: No route to host]
<phaul> 091812 phaul | how does ['1'] and '1' compare? :)
<konsolebox> +1
<warbaque> for example strings before arrays before hashes, as long as it's consistent
vondruch has joined #ruby
<konsolebox> i guess you use a custom sort{} for that
tomphp_ has joined #ruby
<apeiros> I have a solution. but as said before, I want to see your try first.
ellcs has joined #ruby
vondruch_ has joined #ruby
vondruch has quit [Read error: Connection reset by peer]
vondruch_ is now known as vondruch
vondruch has quit [Read error: Connection reset by peer]
vondruch has joined #ruby
schneider has joined #ruby
amar has joined #ruby
faces has joined #ruby
hkais has joined #ruby
tomphp has joined #ruby
face has quit [Ping timeout: 256 seconds]
tomphp_ has quit [Ping timeout: 256 seconds]
pd2000 has joined #ruby
aufi has joined #ruby
amatas has joined #ruby
Beams has joined #ruby
tvw has joined #ruby
suukim has joined #ruby
vondruch has quit [Ping timeout: 276 seconds]
vondruch has joined #ruby
rahul_bajaj has joined #ruby
TinkerT has quit [Read error: Connection reset by peer]
rahul_bajaj has quit [Client Quit]
rabajaj has quit [Ping timeout: 265 seconds]
TinkerT has joined #ruby
<apeiros> warbaque: look, I'm willing to help. what I'm not willing to is solve it for you. and your current silence makes it look as though you were out for some cheap free labor.
amar has quit [Ping timeout: 260 seconds]
<warbaque> currently trying to solve it
pd2000 has quit [Quit: Leaving]
zapata has quit [Read error: Connection reset by peer]
tvw has quit [Read error: Connection reset by peer]
vondruch has quit [Quit: vondruch]
zapata has joined #ruby
\void has joined #ruby
vondruch has joined #ruby
tvw has joined #ruby
alex`` has joined #ruby
Mike11 has joined #ruby
alfiemax_ has joined #ruby
ur5us has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
alfiemax has quit [Ping timeout: 265 seconds]
amatas has quit [Ping timeout: 255 seconds]
KeyJoo has quit [Ping timeout: 268 seconds]
shinnya has joined #ruby
SteenJobs has joined #ruby
tvw has quit [Ping timeout: 240 seconds]
SteenJobs has quit [Ping timeout: 264 seconds]
GodFather has quit [Ping timeout: 246 seconds]
SteenJobs has joined #ruby
<konsolebox> warbaque: you should just share what you have done so far, and tell where you are currently stuck
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
suukim has quit [Quit: Konversation terminated!]
SteenJobs has quit [Ping timeout: 256 seconds]
ellcs has quit [Ping timeout: 256 seconds]
amatas has joined #ruby
jnollette has quit [Ping timeout: 268 seconds]
jnollette has joined #ruby
<warbaque> konsolebox, apeiros: this almost works
roshanavand has joined #ruby
<konsolebox> nice. this one's my version: https://bpaste.net/show/b3b6e2829110
KeyJoo has joined #ruby
hkais has quit [Quit: Leaving.]
hkais has joined #ruby
segy has quit [Excess Flood]
segy has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
RougeR has joined #ruby
alex`` has quit [Quit: WeeChat 2.1]
leitz has joined #ruby
segy has quit [Ping timeout: 264 seconds]
amatas has quit [Quit: amatas]
schneider has quit [Ping timeout: 255 seconds]
<leitz> newb question. I'm seeing a colon ":" use I don't understand. In this, it is right after 'something'. What's it called? my_thing = Thing.new(something:)
ramfjord has joined #ruby
schneider has joined #ruby
SanguineAnomaly has quit [Ping timeout: 240 seconds]
SteenJobs has joined #ruby
<konsolebox> apeiros: yours is much more configurable. however 'if a.class == b.class, a <=> b' fails with arrays
<apeiros> konsolebox: no
<konsolebox> (and i forgot to use case)
<konsolebox> >> [5, 4] => [[1,2],3]
<ruby[bot]> konsolebox: # => /tmp/execpad-a1c949ab5d5d/source-a1c949ab5d5d:2: syntax error, unexpected =>, expecting keyword_end ...check link for more (https://eval.in/987660)
<konsolebox> >> [5, 4] <=> [[1,2],3]
<ruby[bot]> konsolebox: # => nil (https://eval.in/987661)
<apeiros> yes, that would fail
<konsolebox> nil causes errors
ramfjord has quit [Ping timeout: 256 seconds]
<apeiros> but that's not what's happening in my code
segy has joined #ruby
<konsolebox> did you try arrays as keys?
<apeiros> no
<apeiros> and given the stated source, that's unlikely to happen
<konsolebox> that's where i'm getting at
<konsolebox> well we are creating a general sort function
<apeiros> I wasn't. mine still orients itself on warbaque's statements
workmad3 has joined #ruby
<konsolebox> well ok
<warbaque> konsolebox: your version had a minor problem sort before map
<apeiros> otherwise the limitation to Hash & Array would not be there either
<warbaque> but thanks
SanguineAnomaly has joined #ruby
<konsolebox> warbaque: what problem?
<apeiros> (line 5-8)
<konsolebox> i probably mispasted wrong code
<konsolebox> or can you give an example input?
shinnya has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
SteenJobs has quit [Ping timeout: 256 seconds]
<konsolebox> warbaque: i see no problem on my end
<warbaque> fixed by moving sort after map
<konsolebox> i still don't get it. what exactly was the problem?
KeyJoo has quit [Ping timeout: 260 seconds]
<warbaque> {'a'=>[['3','2','1'],['2']]} and {'b'=>[['1','2','3'],['2']]} give different output
<warbaque> second one should be 'a'=>
<konsolebox> warbaque: your modification implies you don't mind the ambiguity among key types
leitz has quit [Quit: Nappy time]
<konsolebox> warbaque: there's nothing wrong here: https://bpaste.net/show/0eaba9078d99
amelliaa has joined #ruby
GodFather has joined #ruby
troulouliou_div2 has joined #ruby
<warbaque> arrays cant be keys in this case, but ['3','1'] and ['1','3'] should be evaluated as same and sorted accordinly
amar_ has joined #ruby
downtime is now known as uptime
ur5us has quit [Remote host closed the connection]
<konsolebox> warbaque: i think i now get what you meant. sorting of subvalues should have come first because it affects some comparisons like arrays.
ur5us has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
ur5us has quit [Ping timeout: 240 seconds]
<konsolebox> warbaque: anyway, this is my final solution: https://bpaste.net/show/a4d3e6e45a45. i have to go. the difference in behavior probably would just be how Enumerable#sort internally behaves, and how you compose compare().
<warbaque> thanks!
<konsolebox> so with that i get {"a"=>[["3", "2", "1"], ["2"]]} as {"a"=>[["1", "2", "3"], ["2"]]}.
<konsolebox> you're welcome if you really mean it.
<warbaque> yeah, I do :)
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adlerdias has joined #ruby
Cavallari has joined #ruby
zautomata2 has joined #ruby
SteenJobs has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
apparition has joined #ruby
SteenJobs has quit [Ping timeout: 264 seconds]
vondruch has joined #ruby
AJA4350 has joined #ruby
RougeR has quit [Ping timeout: 256 seconds]
KeyJoo has joined #ruby
suukim has joined #ruby
dviola has joined #ruby
foxxx0 has quit [Ping timeout: 260 seconds]
adlerdias has quit [Ping timeout: 264 seconds]
houhoulis has joined #ruby
foxxx0 has joined #ruby
ellcs has joined #ruby
adlerdias has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
reber has quit [Read error: Connection reset by peer]
jeffreylevesque has quit [Ping timeout: 256 seconds]
ldnunes has joined #ruby
houhouli_ has joined #ruby
houhoulis has quit [Ping timeout: 264 seconds]
mtkd has quit [Ping timeout: 265 seconds]
mtkd has joined #ruby
alfiemax has joined #ruby
mostlybadfly has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
SteenJobs has joined #ruby
nowhereman_ has quit [Ping timeout: 268 seconds]
SteenJobs has quit [Ping timeout: 276 seconds]
raynold has quit [Quit: Connection closed for inactivity]
Morrolan has quit [Quit: Goodbye]
Morrolan has joined #ruby
KeyJoo has quit [Remote host closed the connection]
ellcs has quit [Ping timeout: 264 seconds]
jcalla has joined #ruby
SteenJobs has joined #ruby
duderonomy has joined #ruby
SteenJobs has quit [Ping timeout: 256 seconds]
rf has joined #ruby
rf` has joined #ruby
rf` has quit [Client Quit]
SteenJobs has joined #ruby
rf has quit [Client Quit]
ramfjord has joined #ruby
envex has joined #ruby
nowhereman_ has joined #ruby
SteenJobs has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
mtkd has quit [Read error: Connection reset by peer]
^mtkd has joined #ruby
erlend has quit [Ping timeout: 276 seconds]
erlend has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
kaawaa has quit [Ping timeout: 268 seconds]
John_Ivan has joined #ruby
hkais has quit [Quit: Leaving.]
ciscam has quit [Ping timeout: 268 seconds]
pd2000 has joined #ruby
ciscam has joined #ruby
alfiemax has quit [Remote host closed the connection]
Psybur has joined #ruby
tvw has joined #ruby
jeffreylevesque has joined #ruby
kaawaa has joined #ruby
roshanavand has quit [Remote host closed the connection]
^mtkd has quit []
jeffreylevesque_ has joined #ruby
griffindy has joined #ruby
mtkd has joined #ruby
jeffreylevesque has quit [Ping timeout: 256 seconds]
oleo has joined #ruby
kaawaa has quit [Read error: Connection reset by peer]
kaawaa has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
pd2000 has quit [Remote host closed the connection]
apparition has quit [Read error: Connection reset by peer]
rwb has quit [Ping timeout: 264 seconds]
kurko_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
pd2000 has joined #ruby
synthroid has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
SteenJobs has joined #ruby
minimalism has quit [Quit: minimalism]
yokel has joined #ruby
duderonomy has quit [Ping timeout: 245 seconds]
SteenJobs has quit [Ping timeout: 260 seconds]
imode has joined #ruby
SteenJobs has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
houhouli_ has quit [Remote host closed the connection]
dimik--- has joined #ruby
ramfjord has joined #ruby
Mike11 has quit [Quit: Leaving.]
ellcs has joined #ruby
kaawaa has quit [Read error: Connection reset by peer]
SteenJobs has quit [Ping timeout: 276 seconds]
kaawaa has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
Dimik_djan has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
alex`` has joined #ruby
banisterfiend has joined #ruby
duderonomy has joined #ruby
kaawaa has quit [Read error: Connection reset by peer]
griffindy has joined #ruby
kaawaa has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigetoo has quit [Read error: Connection reset by peer]
griffindy has quit [Client Quit]
gigetoo has joined #ruby
iMadper has joined #ruby
SteenJobs has joined #ruby
banisterfiend has joined #ruby
cyberg has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
SteenJobs has quit [Ping timeout: 264 seconds]
shinnya has joined #ruby
Burgestrand has quit [Quit: Closing time!]
rwb has joined #ruby
kaawaa has quit [Read error: Connection reset by peer]
kaawaa has joined #ruby
mlkkk has quit [Remote host closed the connection]
mlkkk has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cadillac_ has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
bmurt has quit [Remote host closed the connection]
bmurt has joined #ruby
mlkkk has quit [Ping timeout: 265 seconds]
cadillac_ has joined #ruby
chouhoulis has joined #ruby
ellcs has quit [Ping timeout: 276 seconds]
SteenJobs has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Asher has quit [Ping timeout: 268 seconds]
pastorinni has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
swistak35 has joined #ruby
workmad3 has joined #ruby
venmx has quit [Ping timeout: 268 seconds]
ledestin has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
Rapture has joined #ruby
dionysus69 has joined #ruby
SteenJobs has quit [Ping timeout: 260 seconds]
k0mpa has joined #ruby
Burgestrand has joined #ruby
ledestin has quit [Ping timeout: 264 seconds]
kapil___ has joined #ruby
kurko_ has quit [Ping timeout: 260 seconds]
imode has quit [Ping timeout: 260 seconds]
ellcs has joined #ruby
moretti has joined #ruby
moretti has quit [Quit: leaving]
mikhael_k33hl has quit [Ping timeout: 260 seconds]
inerthia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SteenJobs has joined #ruby
Dimik_djan has quit [Ping timeout: 240 seconds]
SteenJobs has quit [Ping timeout: 276 seconds]
imode has joined #ruby
amar_ has quit [Remote host closed the connection]
erlend has quit [Ping timeout: 264 seconds]
donofrio has joined #ruby
erlend has joined #ruby
SteenJobs has joined #ruby
venmx has joined #ruby
kurko_ has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
Yogui has joined #ruby
yeticry has joined #ruby
cschneid_ has quit [Remote host closed the connection]
SteenJobs has quit [Ping timeout: 240 seconds]
netherwolfe has joined #ruby
cschneid_ has joined #ruby
hinbody has quit [Quit: leaving]
jxv has joined #ruby
hinbody has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yeticry has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
yeticry has joined #ruby
cschneid_ has quit [Ping timeout: 264 seconds]
bmurt has quit [Client Quit]
yorickpeterse has joined #ruby
mtkd has quit [Ping timeout: 256 seconds]
ledestin has joined #ruby
SteenJobs has joined #ruby
mtkd has joined #ruby
bmurt has joined #ruby
Asher has joined #ruby
pd2000 has quit [Quit: Leaving]
synthroid has quit [Remote host closed the connection]
duderonomy has joined #ruby
sonOfRa has quit [Excess Flood]
SteenJobs has quit [Ping timeout: 260 seconds]
sonOfRa has joined #ruby
coderphive has joined #ruby
imode has quit [Ping timeout: 268 seconds]
apeiros has quit [Ping timeout: 240 seconds]
tlaxkit has joined #ruby
dang`r`us has joined #ruby
<dang`r`us> ohai
<dang`r`us> I'm having trouble with https://github.com/tzinfo/tzinfo -- https://dpaste.de/KkAj
aupadhye has quit [Ping timeout: 255 seconds]
cschneid_ has joined #ruby
Cavallari has quit [Quit: Cavallari]
herbmillerjr has quit [Ping timeout: 268 seconds]
govg has quit [Ping timeout: 256 seconds]
govg has joined #ruby
ellcs has quit [Ping timeout: 256 seconds]
nadir has joined #ruby
orbyt_ has joined #ruby
ohcibi has quit [Ping timeout: 264 seconds]
Esa_ has joined #ruby
ohcibi has joined #ruby
dionysus69 has quit [Ping timeout: 276 seconds]
kurko_ has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
kurko_ has joined #ruby
guille-moe has quit [Quit: guille-moe]
ohcibi has quit [Quit: No Ping reply in 180 seconds.]
AlHafoudh has quit [Ping timeout: 268 seconds]
<havenwood> dang`r`us: You're looking at docs for a newer version than you're using.
ohcibi has joined #ruby
imode has joined #ruby
<dang`r`us> havenwood, oooookay thanks :) can I get the version of a gem inside ruby somehow or do I have to consult the Gemfile?
AlHafoudh has joined #ruby
<havenwood> dang`r`us: The RubyGems standard would be to report the version with TZInfo::VERSION, but TZInfo didn't add that until after your version.
ianfleeton has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dang`r`us> damn ;) well, good to know in general. Thanks again!
<havenwood> dang`r`us: For example, they've done that here: https://github.com/tzinfo/tzinfo/blob/master/lib/tzinfo/version.rb#L5
<dang`r`us> gotcha.
<havenwood> dang`r`us: From the command line you can check: gem list tzinfo -q
<havenwood> #=> tzinfo (1.2.5)
n008f4g_ has joined #ruby
<dang`r`us> wheeeeeee
<dang`r`us> what does it mean when that lists two versions?
SteenJobs has joined #ruby
<havenwood> it means you have two versions installed
<dang`r`us> like, yeah, apparently I have two installed, but why, and can I specifically import one instead of the other?
<havenwood> yes, you can choose the older one
<havenwood> the newest will be the default
<dang`r`us> ah
troys has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> from the command line, you can select the version like: rails _1.0.0_ new
<havenwood> rails _5.1.10_ new
<havenwood> just `rails new` will be the latest version
<havenwood> from within Ruby you can: gem 'rails', '=5.1.10'; require 'rails'
<dang`r`us> okay!
<havenwood> but the more common way to enforce versions is to use a Gemfile
banisterfiend has joined #ruby
<havenwood> the `gem` lines are then just all kept together in the Gemfile
<havenwood> and the result of resolving deps based on what you've specified is shared via the Gemfile.lock
<dang`r`us> aye
karapetyan has joined #ruby
n008f4g_ has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
synthroid has joined #ruby
dimik--- has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
Yogui has quit []
dionysus69 has quit [Ping timeout: 268 seconds]
SteenJobs has quit [Quit: SteenJobs]
jxv has quit [Quit: string can snapped]
ianfleeton has joined #ruby
dionysus69 has joined #ruby
roshanavand has joined #ruby
aufi has quit [Remote host closed the connection]
dimik--- has joined #ruby
banisterfiend has joined #ruby
cagomez has joined #ruby
mroutis has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
nowhereman_ has quit [Ping timeout: 264 seconds]
raynold has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Read error: Connection reset by peer]
SteenJobs has joined #ruby
[Butch] has joined #ruby
karapetyan has quit [Remote host closed the connection]
Dimik_djan has joined #ruby
karapetyan has joined #ruby
mikecmpbll has quit [Ping timeout: 276 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sanscoeur has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
orbyt_ has joined #ruby
cthulchu has joined #ruby
synthroid has quit [Remote host closed the connection]
hammer has joined #ruby
tvw has quit [Remote host closed the connection]
icarus has joined #ruby
ryzokuken has joined #ruby
jcarl43 has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
sanscoeur has quit [Remote host closed the connection]
lelliott has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 256 seconds]
lelliott has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
schneider has quit [Ping timeout: 245 seconds]
andikr has quit [Remote host closed the connection]
banisterfiend has joined #ruby
erlend has quit [Ping timeout: 246 seconds]
erlend has joined #ruby
claudiuinberlin has joined #ruby
karapetyan has quit [Remote host closed the connection]
n0m4d1c has joined #ruby
synthroid has joined #ruby
shtirlic has quit [Quit: ZNC - http://znc.in]
hkais has joined #ruby
karapetyan has joined #ruby
shtirlic has joined #ruby
nowhereman_ has joined #ruby
n0m4d1c_ has joined #ruby
Beams has quit [Quit: .]
n0m4d1c has quit [Read error: Connection reset by peer]
cthulchu_ has joined #ruby
pd2000 has joined #ruby
ElDoggo has joined #ruby
Eiam has joined #ruby
marxarelli|afk is now known as marxarelli
cthulchu has quit [Ping timeout: 260 seconds]
<ElDoggo> I'm hoping someone can point me in the right direction to learn about a pattern of setting attributes in Ruby.
eckhardt has joined #ruby
<ElDoggo> It's used a lot in the Mail gem and I want to understand how it works.
<ElDoggo> for example:
desperek has left #ruby [#ruby]
<ElDoggo> SomeObject.new do some_attribute 'value' end
despai has joined #ruby
<ElDoggo> no equal signs
desperek has joined #ruby
<ElDoggo> no hash
<ElDoggo> are these just method calls?
SynSynack has joined #ruby
<Eiam> which part?
<Eiam> some_attribute 'value' is a passing 'value' to some_attribute
<Eiam> the do/end is a block
pd2000 has quit [Remote host closed the connection]
<ElDoggo> So some_attribute is a setter method?
<elomatreb> To understand how that works you need to read the docs of the gem, in particular the new/initialize method
<Eiam> ElDoggo: that seems like a reasonable guess
<ElDoggo> that's the part I'm curious about
pd2000 has joined #ruby
<Eiam> but as elomatreb mentions, it could be something else behind the scenes
<elomatreb> It could be a setter method, but it could also do something entirely unexpected
<Eiam> ElDoggo: in Ruby, you can call a method with "method value" or "method(value)"
<Eiam> either is valid. I prefer () myself because I think its more explicit & clear but there are plenty of people who would disagree with me
<ElDoggo> So what if we have "method value" on one line and "second_method value" on the second line?
karapetyan has quit [Remote host closed the connection]
<Eiam> ElDoggo: also the last parameter to a method can be a hash and if it is, it doesn't need the {}
<ElDoggo> Does the line break imply a close paren?
<Eiam> which can also be a little confusing
ianfleeton has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pd2000 has quit [Max SendQ exceeded]
<elomatreb> Yes. Lines separate methods, unless the first line has a trailing comma
<Eiam> ^
<havenwood> ElDoggo: The do/end part is a block.
<Eiam> or a semi colon =p
<ElDoggo> Wonderful. Thanks folks for the pointers.
pd2000 has joined #ruby
<Eiam> ElDoggo: method(:blah =>thing) is valid, or method(blah:thing) which is the same as method({:blah=>thing})
sanscoeur has joined #ruby
<phaul> ElDoggo: there is a link in the description thereto a youtube video, that will explain things
<ElDoggo> great
<ElDoggo> If I make a class and pass it a block, does that mean the initialize method of the class has a yield in it?
<ElDoggo> (should have)
<elomatreb> It should (but it won't error if it doesn't, the block will be silently ignored)
sanscoeur has quit [Remote host closed the connection]
sanscoeur has joined #ruby
amar has joined #ruby
amar has quit [Remote host closed the connection]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dipnlik> anyone here managed to install the tiny_tds gem in Ubuntu? already installed freetds-dev via apt, but gem cannot detect it is installed. don't know freetds location in my machine to instruct the gem like I do with the mysql gem
<Eiam> yeah
reber has joined #ruby
sanscoeur has quit [Remote host closed the connection]
bmurt has joined #ruby
shtirlic has quit [Ping timeout: 264 seconds]
kapil___ has joined #ruby
bmurt has quit [Client Quit]
<ElDoggo> Thanks for the links.
amar has joined #ruby
karapetyan has joined #ruby
shtirlic has joined #ruby
<ElDoggo> OMG, nobody has every made me a class before.
<ElDoggo> Got it -- this makes perfect sense.
<ElDoggo> Thanks!
<havenwood> ElDoggo: ^ that's en example implementation. I think I'd personally prefer to `yield self` and `do |config|` rather than instance_eval.
<havenwood> ElDoggo: I updated the gist to show ElDoggu, which uses `yield self`.
banisterfiend has joined #ruby
amar has quit [Ping timeout: 260 seconds]
<ElDoggo> Second example tastes more like traditional Ruby?
<havenwood> ElDoggo: I added a third example, ElDogga, which is more idiomatic Ruby.
d3mon has joined #ruby
d3mon has left #ruby [#ruby]
<havenwood> ElDoggo: One step simpler is to not use a block.
<havenwood> fixed typo
imode has quit [Ping timeout: 256 seconds]
<ElDoggo> ElDogga is nice and clean. I'll stick to this syntax. Thanks again.
venmx has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
synthroi_ has joined #ruby
biberu has joined #ruby
imode has joined #ruby
synthroid has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
biberu has quit []
TomyWork has quit [Remote host closed the connection]
biberu has joined #ruby
hammer has quit [Remote host closed the connection]
hammer has joined #ruby
grea has joined #ruby
bmurt has joined #ruby
hammer has quit [Remote host closed the connection]
hammer has joined #ruby
lelliott has quit [Remote host closed the connection]
eckhardt has quit [Read error: Connection reset by peer]
grea has quit [Client Quit]
eckhardt has joined #ruby
dwcraig has joined #ruby
emilford has joined #ruby
synthroid has joined #ruby
emilford has quit [Quit: leaving]
emilford has joined #ruby
ta_ has quit [Remote host closed the connection]
synthroi_ has quit [Ping timeout: 240 seconds]
pd2000 has quit [Remote host closed the connection]
pd2000 has joined #ruby
<Eiam> yes, I prefer the 3rd style but its ruby
<Eiam> do whateva
<Eiam> just do it consistently ;)
* Eiam has flashbacks to the one file in his repo that was written with meta programming bullshit amidst thousands of normal straight forward code and how he hated clicking on that file or ever fixing bugs in it
GodFather has quit [Ping timeout: 246 seconds]
pastorinni has quit [Ping timeout: 265 seconds]
RougeR has quit [Ping timeout: 240 seconds]
p_d has joined #ruby
pd2000 has quit [Ping timeout: 260 seconds]
<phaul> ElDoggo: now, that you understand how to do this, you can complete the kata I linked :)
fmccann has quit [Ping timeout: 264 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 264 seconds]
trautwein has quit [Quit: ZNC 1.6.6 - http://znc.in]
jottr has joined #ruby
trautwein has joined #ruby
alfiemax has joined #ruby
ramfjord has joined #ruby
sauvin has quit [Remote host closed the connection]
sameerynho has joined #ruby
tlaxkit has quit [Quit: Saliendo...]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
ianfleeton has joined #ruby
karapetyan has quit [Remote host closed the connection]
fmccann has joined #ruby
ta_ has joined #ruby
dimik--- has quit [Ping timeout: 240 seconds]
suukim has quit [Quit: Konversation terminated!]
mroutis has quit [Ping timeout: 264 seconds]
karapetyan has joined #ruby
<ElDoggo> phaul: done, thanks!
ianfleeton has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ianfleeton has joined #ruby
ianfleeton has quit [Client Quit]
<phaul> cool :)
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
dimik--- has joined #ruby
trautwein has quit [Quit: ZNC 1.6.6 - http://znc.in]
trautwein has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
p_d has quit [Remote host closed the connection]
imode has quit [Ping timeout: 276 seconds]
p_d has joined #ruby
despai has quit [Quit: ...]
ta_ has quit [Remote host closed the connection]
trautwein has quit [Quit: ZNC 1.6.6 - http://znc.in]
trautwein has joined #ruby
p_d has quit [Remote host closed the connection]
p_d has joined #ruby
RougeR has joined #ruby
erlend has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
pd2000 has joined #ruby
erlend has joined #ruby
pd2000 has quit [Max SendQ exceeded]
schneider has joined #ruby
roshanavand has joined #ruby
cadillac_ has quit [Ping timeout: 256 seconds]
cadillac_ has joined #ruby
pd2000 has joined #ruby
pd2000 has quit [Remote host closed the connection]
mtkd has quit [Ping timeout: 260 seconds]
p_d has quit [Ping timeout: 240 seconds]
SeepingN has joined #ruby
pastorinni has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
mtkd has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DLSteve has joined #ruby
lelliott has joined #ruby
dimik--- has quit [Ping timeout: 255 seconds]
bmurt has joined #ruby
synthroid has quit [Remote host closed the connection]
Dimik_djan has quit [Ping timeout: 260 seconds]
pastorinni has quit []
schneider has quit [Ping timeout: 260 seconds]
schneider has joined #ruby
ams__ has joined #ruby
AgentVenom has joined #ruby
schneider has quit [Ping timeout: 256 seconds]
ta_ has joined #ruby
schneider has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
mtkd has quit []
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hkais has quit [Quit: Leaving.]
schneider has quit [Ping timeout: 256 seconds]
sidx64 has joined #ruby
GodFather has joined #ruby
sidx64_ has joined #ruby
schneider has joined #ruby
roshanavand has quit [Remote host closed the connection]
sidx64 has quit [Ping timeout: 240 seconds]
despai has joined #ruby
adlerdias has quit [Quit: adlerdias]
schneider has quit [Ping timeout: 240 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
rwb has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
SteenJobs has joined #ruby
schneider has joined #ruby
sanscoeur has joined #ruby
cagomez has quit [Ping timeout: 256 seconds]
mtkd has joined #ruby
sanscoeur has quit [Remote host closed the connection]
schneider has quit [Ping timeout: 256 seconds]
pilne has joined #ruby
karapetyan has joined #ruby
schneider has joined #ruby
dionysus69 has joined #ruby
karapetyan has quit [Ping timeout: 265 seconds]
drona6 has joined #ruby
ledestin has left #ruby ["Textual IRC Client: www.textualapp.com"]
schneider has quit [Ping timeout: 264 seconds]
alex`` has quit [Ping timeout: 256 seconds]
schneider has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
jottr has joined #ruby
eckhardt has joined #ruby
johnny56_ has joined #ruby
johnny56 has quit [Ping timeout: 276 seconds]
schneider has quit [Ping timeout: 264 seconds]
harrycs has joined #ruby
duderonomy has joined #ruby
harry_ has joined #ruby
<harry_> anyone have a suggestion on a good book or material for an introduction to basic data structures?
<phaul> do you mean ruby wise or more generally computer science wise?
<harry_> generally, although ideally taught through a ruby implementation.
<harry_> generally i guess.
n008f4g_ has joined #ruby
imode has joined #ruby
<drona6> https://medium.com/basecs is worth checking out.
<harry_> sweet, thanks drona6
schneider has joined #ruby
harrycs has quit [Ping timeout: 255 seconds]
<phaul> it's looooooooonng, but goood
<harry_> nice, thanks phaul
<harry_> i feel stronger about my algo skills than data structures, but of course the two go hand in hand. have you read Grokking Algorithms?
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jeffreylevesque_ has quit [Ping timeout: 256 seconds]
<harry_> oh good lord, 1313 pages! quite comprehensive hahaha
<harry_> thanks for the link phaul!
eckhardt has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
n0m4d1c_ has quit [Remote host closed the connection]
tvw has joined #ruby
workmad3 has joined #ruby
<miah> i like this one, but im sad that its gone away; https://web.archive.org/web/20150704062340/www.brpreiss.com/books/opus8/
Psybur has quit [Ping timeout: 264 seconds]
cagomez has joined #ruby
schneider has quit [Ping timeout: 264 seconds]
<miah> i think because he decided to publish his books on C# and Java
<miah> thankfully archive.org is there to save me =)
sameerynho has quit [Ping timeout: 264 seconds]
venmx has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yorickpeterse has quit [Quit: WeeChat 2.1]
workmad3 has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 256 seconds]
lelliott has quit [Remote host closed the connection]
despai has quit [Quit: ...]
rwb has joined #ruby
schneider has joined #ruby
<harry_> miah: i'll check it out, thanks!
eckhardt has joined #ruby
yorickpeterse has joined #ruby
<harry_> ah perfect, even a pdf
<harry_> err, maybe not, but thanks again!
rwb has quit [Ping timeout: 264 seconds]
schneider has quit [Ping timeout: 263 seconds]
psychicist__ has quit [Ping timeout: 255 seconds]
Phrogz has quit []
conceivably has joined #ruby
psychicist__ has joined #ruby
schneider has joined #ruby
jdawgaz has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marxarelli is now known as marxarelli|afk
<conceivably> Hi. In the documenation the unary '-' method is designated as '#-@'. Is this just some specific convention for unary methods, or is it to avoid arity ambiguity generally? What is this convention called and how can I find out more about it? It's sort of difficult to google.
venmx has quit [Remote host closed the connection]
<miah> pdf is only a small part of it :(
<miah> i find the brpreiss book a bit easier to parse than the algorithms book, but the algorithms book is good too
schneider has quit [Ping timeout: 240 seconds]
<elomatreb> conceivably: That's how they are defined, i.e. if you want to define the unary minus for your class you do `def -@`
sammi`_ has joined #ruby
<harry_> miah: sweet, i'll check them both out - thanks
netherwolfe has quit [Ping timeout: 246 seconds]
reber has quit [Remote host closed the connection]
schneider has joined #ruby
sammi` has quit [Quit: Lost terminal]
ta_ has quit [Remote host closed the connection]
schneider has quit [Ping timeout: 260 seconds]
eckhardt has joined #ruby
phate408 has quit [Read error: Connection reset by peer]
phate408 has joined #ruby
bmurt has joined #ruby
<havenwood> conceivably: Most of the languages that influenced Ruby had unary operators of some sort. I don't know of any that used the trailing @ convention though. I'm not sure where it came from.
schneider has joined #ruby
bmurt has quit [Ping timeout: 240 seconds]
<conceivably> I see. Thanks for your input elomatreb & havenwood :)
sameerynho has joined #ruby
<havenwood> >> def !@; :conceivably end; !42
<ruby[bot]> havenwood: # => private method `!' called for 42:Fixnum (NoMethodError) ...check link for more (https://eval.in/987987)
schneider has quit [Ping timeout: 264 seconds]
<elomatreb> It works as an instance method
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<havenwood> ^ works on my machine
schneider has joined #ruby
tdy has quit [Ping timeout: 256 seconds]
dviola has quit [Quit: WeeChat 2.1]
netherwolfe has joined #ruby
ta_ has joined #ruby
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
icarus has quit [Ping timeout: 264 seconds]
schneider has quit [Ping timeout: 264 seconds]
erlend has quit [Ping timeout: 260 seconds]
erlend has joined #ruby
schneider has joined #ruby
\void has joined #ruby
tdy has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
schneider has quit [Ping timeout: 268 seconds]
jcalla has quit [Ping timeout: 256 seconds]
biberu has quit []
schneider has joined #ruby
rwb has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
marxarelli|afk is now known as marxarelli
madgen has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
sameerynho has quit [Ping timeout: 240 seconds]
sidx64_ has quit [Ping timeout: 264 seconds]
ldnunes has quit [Quit: Leaving]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
schneider has joined #ruby
minimalism has joined #ruby
jcalla has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
schneider has quit [Ping timeout: 256 seconds]
schneider has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mike11 has joined #ruby
schneider has quit [Ping timeout: 256 seconds]
John_Ivan has quit [Read error: Connection reset by peer]
troulouliou_div2 has quit [Remote host closed the connection]
schneider has joined #ruby
amelliaa has quit [Quit: -]
mtkd has quit [Ping timeout: 264 seconds]
chouhoul_ has joined #ruby
tsglove20NXZ2U has joined #ruby
jdawgaz has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
psychicist__ has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 260 seconds]
schneider has joined #ruby
tsglove20NXZ2U has quit [K-Lined]
tvw has quit [Remote host closed the connection]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
mroutis has joined #ruby
schneider has quit [Ping timeout: 268 seconds]
imode has quit [Ping timeout: 245 seconds]
<quuxman> Is there a way to get to methods defined in an Interactor from outside the Interactor?
ams__ has quit [Quit: Connection closed for inactivity]
schneider has joined #ruby
cschneid_ has quit [Remote host closed the connection]
quobo has joined #ruby
drona6 has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
roshanavand has quit [Remote host closed the connection]
drona6 has joined #ruby
croberts has joined #ruby
schneider has quit [Ping timeout: 265 seconds]
n0m4d1c has joined #ruby
drona6 has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
venmx has joined #ruby
Psybur has joined #ruby
jamesaxl has quit [Quit: WeeChat 2.1]
schneider has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
k0mpa has quit [Remote host closed the connection]
workmad3 has joined #ruby
banisterfiend has joined #ruby
schneider has quit [Ping timeout: 265 seconds]
imode has joined #ruby
emilford has quit [Quit: leaving]
jenrzzz has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
schneider has joined #ruby
paraxial has quit [Quit: The Lounge - https://thelounge.github.io]
nickjj has quit [Read error: Connection reset by peer]
paraxial has joined #ruby
AgentVenom has quit [Quit: Textual IRC Client: www.textualapp.com]
nickjj has joined #ruby
phaul has quit [Ping timeout: 265 seconds]
schneider has quit [Ping timeout: 260 seconds]
coderphive has quit [Quit: coderphive]
chouhoul_ has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
chouhoulis has joined #ruby
schneider has joined #ruby
clemens3 has joined #ruby
duderonomy has joined #ruby
chouhoulis has quit [Ping timeout: 264 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has quit [Ping timeout: 264 seconds]
eckhardt has joined #ruby
schneider has joined #ruby
<quuxman> speaking of interactors, I have a case where execution seems to return after `context.fail(error: Foo::Bar)`. Why / how could that happen?
<quuxman> *`context.fail!`
netherwolfe has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
schneider has quit [Ping timeout: 276 seconds]
imode has quit [Ping timeout: 260 seconds]
zapata_ has joined #ruby
schneider has joined #ruby
yorickpeterse has quit [Quit: WeeChat 2.1]
zapata has quit [Ping timeout: 256 seconds]
icarus has joined #ruby
adasda has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has quit [Ping timeout: 264 seconds]
Harry__ has joined #ruby
mroutis has quit [Read error: Connection reset by peer]
adasda has quit [Client Quit]
zapata has joined #ruby
mroutis has joined #ruby
zapata_ has quit [Ping timeout: 256 seconds]
mlkkk has joined #ruby
harry_ has quit [Ping timeout: 260 seconds]
schneider has joined #ruby
Harry__ has quit [Ping timeout: 263 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
schneider has quit [Ping timeout: 256 seconds]
ramfjord has quit [Ping timeout: 256 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
schneider has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 240 seconds]
schneider has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
venmx has quit [Ping timeout: 265 seconds]
erlend has quit [Ping timeout: 240 seconds]
imode has joined #ruby
n008f4g_ has quit [Ping timeout: 264 seconds]
schneider has joined #ruby
erlend has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
cthu| has joined #ruby
banisterfiend has joined #ruby
schneider has quit [Ping timeout: 260 seconds]
cthulchu_ has quit [Ping timeout: 240 seconds]
Mike11 has quit [Ping timeout: 256 seconds]
marxarelli is now known as marxarelli|afk
schneider has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
amar has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
hammer has quit [Remote host closed the connection]
ryzokuken has quit [Remote host closed the connection]
schneider has joined #ruby
arescorpio has joined #ruby
coderphive has joined #ruby
hammer has joined #ruby
schneider has quit [Ping timeout: 268 seconds]
ElDoggo has quit [Remote host closed the connection]
schneider has joined #ruby
marr has quit [Ping timeout: 256 seconds]
amar has quit [Ping timeout: 265 seconds]
icarus has quit [Ping timeout: 260 seconds]
schneider has quit [Ping timeout: 264 seconds]
schneider has joined #ruby
duderonomy has joined #ruby
sameerynho has joined #ruby
hammer has quit [Ping timeout: 276 seconds]
jottr has quit [Quit: WeeChat 2.0.1]
schneider has quit [Ping timeout: 240 seconds]
hammer has joined #ruby
Asher has quit [Quit: Leaving.]
schneider has joined #ruby
Asher has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.1]
imode has quit [Ping timeout: 256 seconds]