baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.0, 2.3.3 & 2.2.6: 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
agent_white has quit [Quit: leaving]
grant has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
elifoster has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
Ruby_Rocks_007 has quit [Ping timeout: 256 seconds]
jhack has joined #ruby
jhack has joined #ruby
jhack has quit [Changing host]
esObe_ has quit [Remote host closed the connection]
esObe_ has joined #ruby
cibs has quit [Ping timeout: 240 seconds]
ResidentBiscuit has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cibs has joined #ruby
Ruby_Rocks_007 has joined #ruby
esObe_ has quit [Ping timeout: 260 seconds]
herbmillerjr has quit [Quit: Konversation terminated!]
jnoob22 has quit [Quit: Leaving]
elifoster has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
elifoster has joined #ruby
tfitts has joined #ruby
Kestrel-029 has quit [Ping timeout: 256 seconds]
skweeke has quit [Ping timeout: 256 seconds]
rkazak_ has joined #ruby
herbmillerjr has joined #ruby
lele has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
jnoob22 has joined #ruby
aglorei has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
patarr has quit [Ping timeout: 246 seconds]
Nicmavr has joined #ruby
Nicmavr is now known as Guest32509
charliesome has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
chouhoul_ has quit [Ping timeout: 240 seconds]
boombox_ has joined #ruby
bg has joined #ruby
ElDoggo has quit [Remote host closed the connection]
ramfjord_ has joined #ruby
teddysmoker has quit [Quit: Konversation terminated!]
boombox_ has quit [Remote host closed the connection]
ozcanesen has quit [Quit: Textual IRC Client: www.textualapp.com]
nobitanobi has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
hlmjr has joined #ruby
herbmillerjr has quit [Ping timeout: 264 seconds]
Xiti has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sneakers has quit [Ping timeout: 240 seconds]
nobitanobi has quit [Ping timeout: 240 seconds]
hotpancakes has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
s2013 has quit [Read error: Connection reset by peer]
hlmjr has quit [Quit: Konversation terminated!]
herbmillerjr has joined #ruby
gsilva has joined #ruby
yusrideb has quit [Ping timeout: 240 seconds]
yusrideb has joined #ruby
hotpancakes has quit [Ping timeout: 260 seconds]
lele has joined #ruby
nettoweb has joined #ruby
saneax is now known as saneax-_-|AFK
tercenya has quit [Remote host closed the connection]
SteenJobs_ has joined #ruby
tercenya has joined #ruby
ElDoggo has joined #ruby
pawnbox has joined #ruby
tercenya has quit [Remote host closed the connection]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tildes_ has joined #ruby
SteenJobs_ has quit [Ping timeout: 264 seconds]
skweeke has joined #ruby
tercenya has joined #ruby
pawnbox has quit [Ping timeout: 246 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tildes_ has quit [Ping timeout: 240 seconds]
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
cdg has joined #ruby
hutch34 has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
<jhack> how does one become a 'specialist'?
hutch34 has quit [Ping timeout: 240 seconds]
brent__ has quit [Remote host closed the connection]
<lupine> it's pretty much exactly like this
<bg> jhack: by watching rubytapas
<jhack> interesting... someone spoke about rubytapas today too
<jhack> lupine, brb gonna watch it now
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
mula has joined #ruby
<jhack> bg, how good is rubytapas
<bg> the best
ElDoggo has quit [Remote host closed the connection]
<jhack> :0
SteenJobs_ has joined #ruby
<jhack> it's not specific for webdev right?
<bg> right
mikecmpbll has quit [Quit: inabit. zz.]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhack> cool
<jhack> any thoughts on upcase?
TomyLobo has quit [Ping timeout: 246 seconds]
SteenJobs_ has quit [Ping timeout: 258 seconds]
grant has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
Ruby_Rocks_007 has joined #ruby
ramfjord_ has quit [Ping timeout: 258 seconds]
zenguy_pc has quit [Ping timeout: 256 seconds]
Wolfpack_12 has joined #ruby
SeepingN_ has quit [Quit: The system is going down for reboot NOW!]
zenguy_pc has joined #ruby
SteenJobs_ has joined #ruby
pawnbox has joined #ruby
nofxx has joined #ruby
<avdi> bg: thanks!
<bg> avdi: did you buy a subscription?
ThereIsNoYeti has quit [Ping timeout: 246 seconds]
AndBobsYourUncle has joined #ruby
<avdi> bg: nah I get mine for free. 'course, I have to make the videos first, but after that I get them for free ;-)
* bg feels stupid
grant has joined #ruby
<bg> lol
pawnbox has quit [Ping timeout: 240 seconds]
jeyraof^mbpr has joined #ruby
sarbs has quit [Read error: Connection reset by peer]
raspado has quit [Remote host closed the connection]
rkazak_ has quit [Quit: Sleep.....ing....]
raspado has joined #ruby
SteenJobs_ has quit [Ping timeout: 246 seconds]
duderono_ has quit [Ping timeout: 246 seconds]
<jhack> oh..
<jhack> wait a minute
raspado has quit [Ping timeout: 240 seconds]
SteenJobs_ has joined #ruby
sarbs has joined #ruby
herbmillerjr has joined #ruby
<jhack> brb signing up now
djbkd has quit [Quit: My people need me...]
zenguy_pc has quit [Ping timeout: 256 seconds]
SteenJobs_ has quit [Ping timeout: 268 seconds]
zenguy_pc has joined #ruby
cdg has quit [Remote host closed the connection]
certainty has joined #ruby
Channel6 has joined #ruby
zenguy_pc has quit [Ping timeout: 246 seconds]
nofxx has quit [Ping timeout: 260 seconds]
nofxx has joined #ruby
zenguy_pc has joined #ruby
harfangk has joined #ruby
Channel6 has quit [Client Quit]
Channel6 has joined #ruby
marr has quit [Remote host closed the connection]
pawnbox has joined #ruby
SteenJobs_ has joined #ruby
zenguy_pc has quit [Ping timeout: 260 seconds]
* baweaver is amused that avdi probably highlighted rubytapas
gsilva has quit [Ping timeout: 260 seconds]
* baweaver wonders if Radar highlights r4ia
zenguy_pc has joined #ruby
SteenJobs_ has quit [Ping timeout: 246 seconds]
pawnbox has quit [Ping timeout: 264 seconds]
<avdi> I have a strobe light and klaxons installed in every room of the house
enterprisey has joined #ruby
statelesscode has joined #ruby
xall has joined #ruby
<jhack> r4ia
jeyraof^mbpr has quit [Quit: Leaving]
t-recx has quit [Quit: t-recx]
tvw has quit [Ping timeout: 264 seconds]
d0nn1e has quit [Ping timeout: 268 seconds]
nowhere_man has joined #ruby
d0nn1e has joined #ruby
raspado has joined #ruby
raspado has quit [Remote host closed the connection]
raspado has joined #ruby
montanonic has joined #ruby
certainty has quit [Ping timeout: 240 seconds]
raspado has quit [Ping timeout: 240 seconds]
griffindy has joined #ruby
pawnbox has joined #ruby
d^sh has quit [Ping timeout: 260 seconds]
d^sh has joined #ruby
ramfjord has joined #ruby
sleetdrop has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
xall has quit [Ping timeout: 268 seconds]
electrostat has quit [Quit: uwotm8]
electrostat has joined #ruby
Rodya_ has quit [Remote host closed the connection]
hahuang65 has quit [Quit: WeeChat 1.7]
SteenJobs_ has joined #ruby
ss_much has joined #ruby
SteenJobs_ has quit [Ping timeout: 256 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
SteenJobs_ has joined #ruby
duderonomy has joined #ruby
hotpancakes has joined #ruby
pawnbox has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
Yoncise has joined #ruby
cibs has joined #ruby
SteenJobs_ has quit [Ping timeout: 258 seconds]
hutch34 has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 256 seconds]
Rodya_ has joined #ruby
EV3RYDAYPR0GRESS has quit [Ping timeout: 246 seconds]
hotpancakes has quit [Ping timeout: 246 seconds]
<Disavowed> Hey all. I've written an API library that wraps HTTParty. I want to test that the underlying HTTParty.post method receives the correct headers, but I'm a little bit mixed up as to how I would do this. I'm using rspec if that helps.
<Disavowed> Apologies for what is no doubt a stupid question, but it's Friday afternoon here and I'm not exactly firing on all cylinders.
Yoncise has left #ruby [#ruby]
ule has quit [Changing host]
ule has joined #ruby
duderonomy has quit [Ping timeout: 260 seconds]
jhack_ has joined #ruby
jhack has quit [Ping timeout: 256 seconds]
libastral has quit [Ping timeout: 264 seconds]
Yoncise has joined #ruby
Yoncise has quit [Quit: Page closed]
libastral has joined #ruby
yusrideb has quit [Quit: yusrideb]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 260 seconds]
jhack_ has quit [Quit: Leaving]
duderonomy has joined #ruby
SteenJobs_ has joined #ruby
rkazak_ has joined #ruby
certainty has joined #ruby
pawnbox has joined #ruby
yusrideb has joined #ruby
hotpancakes has joined #ruby
SteenJobs_ has quit [Ping timeout: 264 seconds]
astrobunny has joined #ruby
dviola has quit [Quit: WeeChat 1.7]
pawnbox has quit [Ping timeout: 258 seconds]
hotpancakes has quit [Ping timeout: 246 seconds]
skweeke has quit [Quit: Leaving]
skweek has joined #ruby
nobitanobi has joined #ruby
<allisio> Disavowed: Sounds like you want to contribute to HTTParty's test suite?
hfp_work has quit [Ping timeout: 260 seconds]
Wolfpack_12 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Wolfpack_12 has joined #ruby
Wolfpack_12 has quit [Client Quit]
<Disavowed> allisio: Well I'm not against that, but all I really want to do is check that the underlying request from my API is sent with the correct headers. I feel like I'm missing something really obvious
<allisio> Disavowed: You're missing trust.
nobitanobi has quit [Ping timeout: 260 seconds]
<Disavowed> The headers are passed as an argument to the httparty.post method, so I guess what I'm asking is how do I check if an argument is present in a method call?
<allisio> Again, HTTParty is a battle-tested library; you should put some measure of stock in its correctness.
brent__ has joined #ruby
<Disavowed> allisio: I trust it fully. I'm trying to test my code is passing the correct headers to the underlying httparty post method.
<allisio> Disavowed: Does it do The Right Thing? If so, you are; if not, you're not.
<allisio> It really sounds like you want to include a test for HTTParty in your own thing's test suite, and that's just not the done thing.
<Disavowed> Let me do a pastebin because I feel like I'm not explaining this very well
<Disavowed> http://pastebin.com/18Smv36v <- hopefully this either explains what I'm trying to achieve or highlights some totally idiotic underlying assumption I have made.
<ruby[bot]> Disavowed: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/0ddf7e2745a596b1d5fbfbf2b3ad0b41
<ruby[bot]> Disavowed: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
maloik56 has quit [Remote host closed the connection]
maloik has joined #ruby
xall has joined #ruby
pilne has quit [Quit: Quitting!]
<allisio> Disavowed: They are.
marxarelli|afk is now known as marxarelli
<allisio> HTTParty.post invokes HTTParty.perform_request, which passes the `options` Hash into `#process_headers`, which checks for the existence of a `:headers` key and responds accordingly.
<allisio> I'm sure HTTParty has tests for this in their own suite; it would be silly of you to duplicate that effort.
certainty has quit [Ping timeout: 258 seconds]
scott4000 has quit [Ping timeout: 245 seconds]
<Disavowed> allisio: I feel like I'm still not explaining what I am trying to do very well.
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Disavowed> I don't care what httparty.post does - indeed I plan to mock the method. All I care about is that the wrapper method send() is passing the headers to the HTTParty.post method, or a mock version thereof
staticfox has quit [Ping timeout: 264 seconds]
xMopxShell has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
<Disavowed> I need a reasonable guarantee that such basic functionality works. I am certain that HTTParty is battle tested and perfectly fit for purpose, but that isn't germane right now
scott4000 has joined #ruby
marxarelli is now known as marxarelli|afk
xMopxShell has joined #ruby
<allisio> Disavowed: Do you test that your Classes respond to #new?
pawnbox has joined #ruby
xall has quit [Ping timeout: 268 seconds]
<Disavowed> allisio: I do not
<Disavowed> Perhaps this is what I'm missing
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hfp_work has joined #ruby
<Disavowed> You're saying that I should not test that my method passes the correct arguments to an underlying function?
xall has joined #ruby
<allisio> Disavowed: It strikes me as a perfectly useless test in this particular scenario.
staticfox has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
<Disavowed> allisio: I'll defer to your experience but it sounds incredibly dangerous to me, because if a content-type header isn't passed, then the whole library is broken. I'm clearly missing some idealogical practice in my understanding of testing methodologies (I'm not from a Ruby background originally) - could you recommend any resources I should consume to better understand the landscape?
<allisio> Disavowed: Right, that gets closer to the heart of the thing: shouldn't you just be testing that `@headers` includes a reasonable value for the 'Content-Type' key?
<Disavowed> That's right! So I test for that initially. My concern is that if the code changed and I forgot to pass @headers to HTTParty.post, then I would have no test to catch that event. Does that make sense?
<matthewd> Disavowed: You want rspec-mocks
<allisio> Disavowed: And you can tell your mock to expect to receive some method call with some set of arguments: https://relishapp.com/rspec/rspec-mocks/v/3-2/docs/setting-constraints/matching-arguments
arret has joined #ruby
<Disavowed> matthewd: allisio: You two are absolute saints! Thank you so much for making sense of my garbled explanations! This is what I was playing with but I couldn't get it to work and assumed I was approaching the problem wrong. Thank you for setting me back on the right track!
saneax-_-|AFK is now known as saneax
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<allisio> Disavowed: Glad to have been of some help. :)
<allisio> (I stand by my original conviction. :P)
segmond has quit [Quit: l8r]
bmurt has joined #ruby
<Disavowed> allisio: I really think I'm misunderstanding Ruby testing - I mean I wouldn't test a .new method (unless perhaps it had a reasonable degree of complexity in the function signature). I guess I just have to keep asking stupid questions!
<allisio> Disavowed: I specifically mentioned *responding* to #new in service of advising you to have at least a modicum of trust in the "system" to do what it's supposed to.
<allisio> You should of course test that complex instantiations work correctly.
<Disavowed> Regardless, thank you so much for your patience.
ThereIsNoYeti has joined #ruby
pawnbox has joined #ruby
jackjackdripper has joined #ruby
skweek has quit [Quit: Leaving]
skweek has joined #ruby
Channel6 has quit [Quit: Leaving]
jackjackdripper has quit [Client Quit]
pawnbox has quit [Ping timeout: 260 seconds]
hotpancakes has joined #ruby
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xall has quit [Ping timeout: 240 seconds]
akkad has quit [Excess Flood]
rkazak_ has quit [Quit: Sleep.....ing....]
Channel6 has joined #ruby
gix has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akkad has joined #ruby
hahuang65 has joined #ruby
gix has joined #ruby
charliesome has quit [Client Quit]
xall has joined #ruby
<bg> is rubyconf harmful
hutch34 has joined #ruby
<bg> i'm watching this guy fucking butcher his program in a talk called "Refactoring from Good to Great"
<bg> this guy has been drank Uncle Bob's kool-aid
<bg> s/drank/drinking/
<bg> it's honestly scary
hutch34 has quit [Ping timeout: 264 seconds]
akkad has quit [Excess Flood]
<bg> 687 likes, 8 dislikes
<bg> i can't believe what i'm watching
xall has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
marcdel has joined #ruby
cibs has quit [Ping timeout: 246 seconds]
akkad has joined #ruby
Trynemjoel has quit [Quit: Quitting]
cibs has joined #ruby
brent__ has quit [Remote host closed the connection]
morfin has joined #ruby
<morfin> hello
Ruby_Rocks_007 has joined #ruby
<morfin> returning to yesterday topic - i saw gems for JRuby which interface with plain Java libraries
xall has joined #ruby
rkazak_ has joined #ruby
ElDoggo has joined #ruby
amclain has quit [Quit: Leaving]
gusrub has quit []
FMan has quit [Ping timeout: 260 seconds]
SteenJobs_ has joined #ruby
Guest3038 has joined #ruby
ResidentBiscuit has joined #ruby
ElDoggo has quit [Ping timeout: 260 seconds]
cschneid_ has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
hotpanca_ has joined #ruby
anisha has joined #ruby
igniting has quit [Ping timeout: 256 seconds]
Chipwaver has joined #ruby
Chipwaver has quit [Client Quit]
Chipwaver has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
ResidentBiscuit has quit [Ping timeout: 246 seconds]
Chipwaver has quit [Client Quit]
cschneid_ has quit [Ping timeout: 246 seconds]
pulkit4tech has joined #ruby
squ has joined #ruby
marie1972 has joined #ruby
marie1972 has left #ruby [#ruby]
bmurt has joined #ruby
patarr has joined #ruby
bmurt has quit [Client Quit]
pliniker has quit [Ping timeout: 240 seconds]
jeyraof^mbpr has joined #ruby
pliniker has joined #ruby
Channel6 has quit [Quit: Leaving]
patarr has quit [Ping timeout: 240 seconds]
rkazak_ has quit [Quit: Sleep.....ing....]
bg has quit [Quit: :*]
arret has quit [Quit: Leaving]
CloCkWeRX has quit [Quit: Leaving.]
AndBobsYourUncle has joined #ruby
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
nobitanobi has joined #ruby
grant has quit [Ping timeout: 240 seconds]
baffoon has joined #ruby
ThereIsNoYeti has quit [Ping timeout: 260 seconds]
nobitanobi has quit [Ping timeout: 258 seconds]
SteenJobs_ has quit [Quit: SteenJobs_]
Guest3038 has quit []
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
igniting has joined #ruby
rkazak_ has joined #ruby
certainty has joined #ruby
saneax is now known as saneax-_-|AFK
gnufied has quit [Ping timeout: 246 seconds]
xall has quit [Ping timeout: 268 seconds]
baffoon has quit [Quit: Leaving]
R0B0 has joined #ruby
aupadhye has joined #ruby
R0B0 has quit [Client Quit]
thebaffoon has joined #ruby
saneax-_-|AFK is now known as saneax
xall has joined #ruby
xcesariox has joined #ruby
mula has quit [Remote host closed the connection]
thebaffoon has quit [Client Quit]
tds has joined #ruby
thebaffoon has joined #ruby
rkazak_ has quit [Quit: Sleep.....ing....]
xcesariox has quit [Remote host closed the connection]
cesario_ has joined #ruby
xcesariox has joined #ruby
tds has quit [Client Quit]
_whitelogger has joined #ruby
djbkd has joined #ruby
hanmac has quit [Remote host closed the connection]
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
grant has joined #ruby
AndBobsYourUncle has joined #ruby
certainty has quit [Ping timeout: 256 seconds]
cfec0b8d has quit [Ping timeout: 246 seconds]
hahuang65 has quit [Quit: WeeChat 1.7]
Rodya_ has quit [Remote host closed the connection]
polysics_ has quit [Remote host closed the connection]
polysics has joined #ruby
saneax is now known as saneax-_-|AFK
R0B0 has joined #ruby
R0B0 has quit [Remote host closed the connection]
polysics has quit [Ping timeout: 256 seconds]
chopin_ has quit [Remote host closed the connection]
R0B0 has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cesario_ has quit [Quit: Textual IRC Client: www.textualapp.com]
thebaffoon has quit [Ping timeout: 260 seconds]
R0B0 is now known as thebaffoon
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
AndBobsYourUncle has joined #ruby
akkad has quit [Excess Flood]
teclator has joined #ruby
tildes_ has joined #ruby
bocaneri has joined #ruby
akkad has joined #ruby
hutch34 has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
solocshaw has joined #ruby
charliesome has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
jackjackdripper1 has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cibs has quit [Ping timeout: 240 seconds]
cibs has joined #ruby
aufi has joined #ruby
jgnagy has quit [Remote host closed the connection]
nOwz has joined #ruby
AndBobsYourUncle has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
marcdel has quit [Read error: Connection reset by peer]
andikr has joined #ruby
ResidentBiscuit has joined #ruby
marcdel has joined #ruby
solocshaw has joined #ruby
rhyselsmore has joined #ruby
ResidentBiscuit has quit [Ping timeout: 246 seconds]
saneax-_-|AFK is now known as saneax
tomphp has joined #ruby
patarr has joined #ruby
last_staff has joined #ruby
tildes_ has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 240 seconds]
pulkit4tech has quit [Quit: Connection closed for inactivity]
mmasaki has quit [Quit: bye]
pulkit4tech has joined #ruby
djbkd has quit [Remote host closed the connection]
mmasaki has joined #ruby
nOwz has quit [Ping timeout: 240 seconds]
nobitanobi has joined #ruby
hotpanca_ has quit [Remote host closed the connection]
Arpanet69 has joined #ruby
dionysus69 has joined #ruby
nobitanobi has quit [Ping timeout: 268 seconds]
norbertka has joined #ruby
nOwz has joined #ruby
hotpancakes has joined #ruby
jeyraof^mbpr has quit [Quit: This computer has gone to sleep]
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
jeyraof^mbpr has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
Xiti has quit [Quit: Xiti]
sarbs has quit [Ping timeout: 246 seconds]
nobitanobi has joined #ruby
nowhere_man has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
sarbs has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
toretore has joined #ruby
esObe_ has joined #ruby
Arpanet69 has quit [Ping timeout: 260 seconds]
rkazak_ has joined #ruby
montanonic has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 260 seconds]
aganov has joined #ruby
pawnbox has joined #ruby
certainty has joined #ruby
minimalism has quit [Quit: minimalism]
twoninefive has quit [Ping timeout: 240 seconds]
polysics has joined #ruby
conta has quit [Quit: conta]
conta has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
MrSamuel has joined #ruby
pwnd_nsfw` has joined #ruby
pwnd_nsfw has quit [Ping timeout: 260 seconds]
jackjackdripper1 has joined #ruby
reaVer has quit [Ping timeout: 258 seconds]
jackjackdripper has quit [Ping timeout: 246 seconds]
Snickers has joined #ruby
conta has quit [Remote host closed the connection]
ledestin has joined #ruby
teclator has quit [Remote host closed the connection]
thebaffoon has quit [Quit: Leaving]
thebaffoon has joined #ruby
rkazak_ has quit [Quit: Sleep.....ing....]
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thebaffoon has quit [Client Quit]
conta has joined #ruby
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
hutch34 has joined #ruby
mark_66 has joined #ruby
Alina-malina has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
byte512 has joined #ruby
vondruch has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 258 seconds]
pawnbox has quit [Ping timeout: 256 seconds]
reaVer has joined #ruby
enterprisey has quit [Remote host closed the connection]
lenwood has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
pandaant has joined #ruby
teclator has joined #ruby
manjaro-kde5 has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
MrSamuel has left #ruby [#ruby]
armyriad has joined #ruby
conta has quit [Remote host closed the connection]
andi_ has joined #ruby
djbkd has joined #ruby
<andi_> hello can someone please explain to me what https://github.com/maltesa/Rofi-Leo-Dictionary/blob/master/leo_search.rb line 39 and line 48 is doing?
lenwood has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
<dminuoso> andi_: line 39 fetches an XML document and builds a Nokogiri::XML document from it
hotpancakes has quit [Ping timeout: 246 seconds]
<dminuoso> andi_: And 48 uses css selectors (think like jQuery) to search in that document
cfec0b8d has joined #ruby
<andi_> dminuoso: ok, ill read up that link, and tyvm for that quick explanation
xall has quit [Quit: WeeChat 1.7]
postmodern has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 246 seconds]
postmodern has joined #ruby
ResidentBiscuit has joined #ruby
pawnbox has joined #ruby
conta has joined #ruby
ResidentBiscuit has quit [Ping timeout: 246 seconds]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
norbertka has quit [Read error: Connection reset by peer]
patarr has joined #ruby
xorgnak has joined #ruby
rolls has joined #ruby
dangerousdave has joined #ruby
schickung has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
<xorgnak> part
xorgnak has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
cschneid_ has joined #ruby
flying has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
polysics has quit []
KicStart has quit [Ping timeout: 246 seconds]
Burgestrand has joined #ruby
lxsameer has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
chemelson has joined #ruby
anisha has quit [Ping timeout: 246 seconds]
<chemelson> hi, is anybody home?
jaruga__________ has joined #ruby
elifoster has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
anisha has joined #ruby
<dminuoso> chemelson: No.
czerasz has joined #ruby
<chemelson> thanks dude
<dminuoso> I would like a reverse rockets syntax in Ruby
<dminuoso> so you can do { "a" => 1, 2 <= "b" }
Arpanet69 has joined #ruby
pawnbox has quit [Remote host closed the connection]
<herwin> ArgumentError: comparison of Fixnum with String failed
pawnbox has joined #ruby
<dminuoso> herwin: upgrade to ruby 2.4
<dminuoso> !next
<dminuoso> ?next
<ruby[bot]> dminuoso: I don't know anything about next
tekku is now known as tekk
* dminuoso kicks ruby[bot]
<dminuoso> apeiros: can we also allow ruby[bot] to respond to ! commands?
<dminuoso> apeiros: Also a factoid for !next => "Another satified customer.. NEXT!!" ;o
gsilva has joined #ruby
<dminuoso> herwin: Im genuinely wondering whether you can parse this with LR(1)
<dminuoso> (Without triggering the ambiguity you implied)
dstrunk has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
vircung has quit [Quit: Nothing to do here]
chemelson has quit [Quit: Page closed]
certainty has joined #ruby
Beams has joined #ruby
CloCkWeRX has joined #ruby
kristofferR has joined #ruby
jeyraof^mbpr has quit [Quit: This computer has gone to sleep]
jeyraof^mbpr has joined #ruby
vircung has joined #ruby
sarbs has quit [Ping timeout: 240 seconds]
marr has joined #ruby
sarbs has joined #ruby
workmad3 has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
solocshaw has quit [Ping timeout: 246 seconds]
grant has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gsilva has quit [Ping timeout: 256 seconds]
KicStart has joined #ruby
certainty has joined #ruby
kaffekoppen has joined #ruby
orvckb has joined #ruby
hotpancakes has joined #ruby
jeyraof^mbpr has quit [Quit: This computer has gone to sleep]
Cohedrin has joined #ruby
biberu has joined #ruby
jameser has quit [Ping timeout: 246 seconds]
Tempesta has quit [Quit: See ya!]
Wolfpack_12 has joined #ruby
sid_fules has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
postmodern has quit [Quit: Leaving]
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch34 has joined #ruby
djbkd has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
ferr1 has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
astrobunny has quit [Remote host closed the connection]
xen0fon has quit [Remote host closed the connection]
schickung has quit [Read error: Connection reset by peer]
schickung has joined #ruby
ResidentBiscuit has joined #ruby
jenrzzz has joined #ruby
charliesome has joined #ruby
ResidentBiscuit has quit [Ping timeout: 246 seconds]
charliesome has quit [Client Quit]
Tempesta has joined #ruby
pawnbox_ has joined #ruby
certainty has quit [Read error: Connection reset by peer]
certainty has joined #ruby
govg has quit [Ping timeout: 256 seconds]
sleetdrop has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 260 seconds]
terens has joined #ruby
patarr has joined #ruby
terens has quit [Client Quit]
gnufied has joined #ruby
govg has joined #ruby
saneax is now known as saneax-_-|AFK
terens has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
hotpancakes has joined #ruby
JeanCarloMachado has joined #ruby
renchan has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
nadir has quit [Quit: Connection closed for inactivity]
hotpancakes has quit [Ping timeout: 246 seconds]
orvckb has quit [Ping timeout: 240 seconds]
Fernando-Basso has joined #ruby
ExcelTronic has joined #ruby
Burgestrand has quit [Quit: Closing time!]
vali has joined #ruby
nobitanobi has quit [Remote host closed the connection]
Burgestrand has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
jameser has joined #ruby
Wolfpack_12 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
cgfbee has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
Beams has quit [Quit: .]
ExcelTronic has quit [Remote host closed the connection]
ExcelTronic has joined #ruby
manjaro-kde5 has quit [Ping timeout: 240 seconds]
ResidentBiscuit has quit [Ping timeout: 246 seconds]
gsilva has joined #ruby
sid_fules has quit [Remote host closed the connection]
conta has quit [Ping timeout: 258 seconds]
Beams has joined #ruby
jonjoe has joined #ruby
patarr has joined #ruby
cgfbee has joined #ruby
patarr has quit [Ping timeout: 268 seconds]
Burgestrand has quit [Quit: Closing time!]
ldnunes has joined #ruby
d0nn1e has quit [Ping timeout: 240 seconds]
schickung has quit [Quit: schickung]
dangerousdave has quit [Ping timeout: 240 seconds]
d0nn1e has joined #ruby
tomphp has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
czerasz has quit [Ping timeout: 240 seconds]
csk has quit [Quit: leaving]
gsilva has quit [Remote host closed the connection]
csk has joined #ruby
psychicist__ has joined #ruby
cpruitt has quit [Ping timeout: 246 seconds]
<Snickers> Can I create singleton object in rails that will exist in whole app, not only in single request?
conta has joined #ruby
cpruitt has joined #ruby
czerasz has joined #ruby
resin has quit [Ping timeout: 246 seconds]
lenwood has joined #ruby
bkxd has quit [Ping timeout: 258 seconds]
<KicStart> Snickers: You can, but unless you have good reason many people will dispute whether you should. Rails Logger is a good example, for more discussion... http://stackoverflow.com/questions/13313993/when-is-it-wise-to-use-singleton-classes-in-ruby
hutch34 has joined #ruby
polyzium has joined #ruby
polyzium has joined #ruby
polyzium has quit [Changing host]
igniting has quit [Ping timeout: 240 seconds]
resin has joined #ruby
<Snickers> my app will connect to external api, and i would like to have control on connection number.
<Snickers> KicStart when i mix Singelton module to class i will have singleton object, but only in current request, or in whole app?
jonjoe has quit []
hutch34 has quit [Ping timeout: 256 seconds]
antoniobeyah has quit [Quit: Connection closed for inactivity]
cpruitt_ has joined #ruby
nobitanobi has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cpruitt has quit [Ping timeout: 240 seconds]
cpruitt_ is now known as cpruitt
KicStart has quit [Quit: Leaving.]
vali has quit [Ping timeout: 258 seconds]
norbertka has joined #ruby
t-recx has joined #ruby
kaffekoppen has quit [Quit: Going offline, see ya! (www.adiirc.com)]
sepp2k has joined #ruby
pragmaticus has joined #ruby
schickung has joined #ruby
KicStart has joined #ruby
KicStart has left #ruby [#ruby]
<allisio> dminuoso: That's fun.
sid_fules has joined #ruby
hutch34 has joined #ruby
pawnbox has quit [Remote host closed the connection]
jackjackdripper1 has quit [Quit: Leaving.]
Burgestrand has joined #ruby
ElDoggo has joined #ruby
<allisio> I was hoping there'd be a way to get in front of the syntax error with `core#hash_from_ary`, but that's not viable.
<allisio> And `['a' => 1, 2 <= 'b'].to_h` can't be used either. :/
millerti has joined #ruby
psychicist__ has quit [Ping timeout: 240 seconds]
bg has joined #ruby
ElDoggo has quit [Ping timeout: 268 seconds]
xen0fon has joined #ruby
Xiti has joined #ruby
<morfin> !next2
<morfin> :(
<morfin> nolyc has that
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
<polyzium> hey people
<polyzium> can i use nodejs libs in ruby
<polyzium> because i cannot find what i need in gem repos
<polyzium> but it's available in npm
<allisio> polyzium: Sort of: https://github.com/chancancode/javascript
rippa has joined #ruby
ujjain has quit [Quit: ZNC - 1.6.0 - http://znc.in]
elaptics has joined #ruby
hotpancakes has joined #ruby
elaptics has quit [Remote host closed the connection]
tyang has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<toretore> polyzium: what can't you find?
<polyzium> toretore, libopenmpt/libxmp/libmikmod.
jameser has joined #ruby
<polyzium> toretore, nodejs has all of what i need, including these libs above
<toretore> wow, blast from the past
bkxd has joined #ruby
<toretore> why are you using ruby and not nodejs?
itsautomatisch has joined #ruby
igniting has joined #ruby
<polyzium> the reason is simplicity and some guy told me to learn it
dionysus69 has quit [Ping timeout: 256 seconds]
<toretore> i foresee many problems in your future if you try to use node libs from ruby
<polyzium> k how about c libs?
<toretore> pulling that out of my ass, but that's my instinct
<toretore> c should be easier
hotpancakes has quit [Ping timeout: 246 seconds]
<toretore> c -> js -> ruby < c -> ruby
squ has quit [Remote host closed the connection]
<polyzium> toretore, less by what? performance?
<toretore> but if you don't have any particular reason to use ruby, and such a specific need for libraries, it could be better to use a language where support already exists
<toretore> just an unnecessary step
<toretore> and probably performance, as you'd have to use a js runtime
ujjain has joined #ruby
ujjain has quit [Changing host]
ujjain has joined #ruby
<polyzium> r.i.p. i cannot combine these
ogurk has quit [Ping timeout: 260 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<polyzium> so i guess i should wait for someone making a binding for libopenmpt/libxmp/libmikmod or switch back to node
jamesaxl has quit [Read error: Connection reset by peer]
<polyzium> just rip
<toretore> it sounds like something python would have
pragmaticus has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
jamesaxl has joined #ruby
anisha has quit [Quit: Leaving]
<polyzium> toretore, there is a port of libxmp to python. but pip is a mess
hutch34 has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
<Burgestrand> If you're very intent on using Ruby for whatever reason, and the API surface of the libraries you want to use is not too complex, then FFI is quite a nice experience for binding C libraries in Ruby.
<Burgestrand> polyzium ^
<polyzium> lol i know nothing about c as i used node before ruby
pragmaticus has joined #ruby
teddysmoker has joined #ruby
<polyzium> but i'll take a look.
jameser has quit [Client Quit]
troulouliou_div2 has joined #ruby
millerti has joined #ruby
hutch34 has joined #ruby
jameser has joined #ruby
ebcz has joined #ruby
<herwin> Burgestrand: you realize he's now going to load the V8 engine in ruby to run JS?
<herwin> :)
charliesome has joined #ruby
kernelPaniq has quit [Ping timeout: 240 seconds]
jaruga__________ has quit [Quit: jaruga__________]
<Burgestrand> herwin I didn't write anything about running JS within Ruby. :)
pragmaticus has quit [Ping timeout: 240 seconds]
charliesome has quit [Client Quit]
jaruga__________ has joined #ruby
minasploit has joined #ruby
<minasploit> supp
<bg> hi minasploit
<minasploit> hw u?
<bg> im fantastic, thank you!
<bg> how are you?
<minasploit> good too... am new to irc anything i shud know?
<bg> yes
<minasploit> being...
charliesome has joined #ruby
<bg> you should know that the people in this channel are wonderful ^_______^
<minasploit> rly?
<bg> yes :3
jancsi has joined #ruby
<minasploit> so shud we talk online about ruby or
<bg> and you should know that if you have a question, you will have to be patient
ramortegui has joined #ruby
<bg> people aren't always looking at irc so sometimes there will be like an hour or two with no activity
<minasploit> oww no problem... should questions only be about ruby?
pawnbox has joined #ruby
<allisio> Probably don't say "oww" if you're not in pain.
griffindy has joined #ruby
<minasploit> haha cool
<jancsi> hi all! I have ruby 2.1.9 installed on my Gentoo machine. I'm trying to install whois-parser with "gem install whois-parser" but I'm getting an error, that the "activesupport-5.0.2" dependency requires ruby >= 2.2.2. Unfortunately, ruby 2.1.9 is the only stable version available on gentoo. In whois-parser's package file it says it needs activesupport >=4.0. Is there a way to force the gem installation to not to use activesupport >5 ?
pawnbox has quit [Remote host closed the connection]
<jancsi> Please note that I'm a first-day ruby guy here. :)
pawnbox has joined #ruby
minasploit has left #ruby [#ruby]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Snickers has quit [Ping timeout: 260 seconds]
failshell has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Eiam has quit [Ping timeout: 276 seconds]
nofxx has quit [Ping timeout: 256 seconds]
<bg> jancsi: how about u build mri from source like a real gentoo power user
<jancsi> bg, ?
<bg> u can pry (lol) ruby 2.4 from my cold dead hands
<leah2> jancsi: 2.1 is almost EOL'ed
<leah2> just unmask it :P
<allisio> jancsi: You mentioned you run Gentoo, and are now reaping your sown. :P
baked__beans has joined #ruby
<allisio> bg: What's wrong with 2.5?
<bg> :o
* bg goes to install 2.5
<leah2> lol
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<allisio> I mean, you were the one who mentioned building from source?
<bg> i actually didn't, since homebrew has relatively new versions available
<bg> if my system package manager had 2.1.9 i'd build from source
ResidentBiscuit has joined #ruby
Burgestrand has quit [Quit: Closing time!]
s2013 has joined #ruby
<jancsi> sorry for asking, I'll go and flush myself down the toilet
<bg> jancsi: :s
<leah2> jancsi: you probably can install an older version of whois-parser as well else
<jancsi> no worries, I'll figure it out
<bg> jancsi: i luv u and i want u 2 enjoy the latest and greatest that ruby has to offer
<bg> i have ur best interests in mind
<allisio> jancsi: Clone the project, modify those ">= 4"s to be "~> 4", `gem build *.gemspec`, `gem install *.gem`.
<bg> allisio: do u watch rubyconf
<bg> like do u attend it or watch the videos online
<allisio> bg: I probably won't join you in your tirade against refactoring, if that's why you're asking. ;)
<bg> i'm not against refactoring... wtf
<bg> it's the *way* that this guy refactors
<bg> i just need someone to tell me if this is serious or if it's some kind of joke that is going over my head
<bg> also a question for you ruby gurus
__Yiota has joined #ruby
jancsi has left #ruby [#ruby]
polyzium has left #ruby ["Leaving"]
<bg> def f a; a[0] + a[1]; end
<bg> def f (a, b); a + b; end
<bg> why are the parentheses around parameters optional when it causes this ambiguity with array-decomposition parameters
<matthewd> I never know how to answer a "why" question like that
<allisio> It should be ignored, ideally.
<bg> allisio: the question should be ignored?
<tobiasvl> why are any parentheses optional
<bg> it's a valid question
<bg> you should ignore it because it hints at a flaw in your favorite language?
<tobiasvl> how is precedence ambiguity a flaw
<tobiasvl> it exists in all languages that are not… lisp
DLSteve_ has joined #ruby
<bg> it's not precedence ambiguity
<bg> what even is precedence ambiguity
<bg> if all operators have well-defined precedence and associativity, there's really no ambiguity
<tobiasvl> well, ambiguity to the programmer
SteenJobs_ has joined #ruby
Snickers has joined #ruby
<tobiasvl> surely there's no ambiguity for ruby, not with array-decomposition parameters either?
millerti has joined #ruby
<bg> that's right
singularity42 has joined #ruby
<bg> this isn't a precedence thing though
certainty has quit [Ping timeout: 258 seconds]
cdg has joined #ruby
conta has quit [Ping timeout: 240 seconds]
xen0fon has quit [Quit: xen0fon]
<bg> i wonder why [a, b] is not used for array-decomposition parameters
<bg> more intuitive and it solves this problem
certainty has joined #ruby
hotpancakes has joined #ruby
cdg has quit [Read error: Connection reset by peer]
acalycine has joined #ruby
jonjoe has joined #ruby
cdg has joined #ruby
<matthewd> "why" again :/
<singularity42> hey all. can anyone direct me, or explain to me how in the world I use pipelines in ruby exec/system/backticks? I just get "command not found" any time I want to add a new pipe
<bg> what is wrong with asking why?
<bg> curiosity is frowned upon in the ruby community?
ferr1 has quit [Quit: WeeChat 1.7]
<bg> singularity42: yes because pipes are interpreted by the shell
<dminuoso> Do you folks feel like an exception constant should have the word "Error" in it?
<bg> exec('a | b') looks for a binary called 'a | b'
<singularity42> bg: right. so how do i chain commands?
<bg> try exec()ing /bin/sh sh or similar with the arguments -c 'a | b'
Snickers has quit [Ping timeout: 260 seconds]
<bg> or use a richer interface to spawn multiple processes and handle the piping yourself
<dminuoso> singularity42: What do you mean by "chaining"
<matthewd> bg: The phrasing presupposes there's a different, more correct, option, and asks for a justification for it being done differently from that
<bg> matthewd: right
<bg> do you not feel [a, b] would be better?
<dminuoso> singularity42: If you use "exec", you can do exec("foo"); exec("bar"); ... :\
<dminuoso> bg: because Ruby is not Javascript.
cdg has quit [Remote host closed the connection]
<bg> what
<singularity42> bg: adding an additional layer of complication, this is for powershell commands. such as `powershell Get-NetAdapter | Get-NetIPAddress`
<dminuoso> 15:40 < bg> i wonder why [a, b] is not used for array-decomposition parameters
<matthewd> dminuoso: I generally prefer it, but if the name otherwise implies something sufficiently bad, I wouldn't feel strongly about it
jsaak has quit [Ping timeout: 240 seconds]
<dminuoso> matthewd: UnknownPredicate bad enough?
Burgestrand has joined #ruby
<matthewd> Yeah, I think Error on there would be superfluous, maybe even less clear
jsaak has joined #ruby
<singularity42> dminuoso: sorry, i mean piping, not chaining
<bg> what even are Get-NetAdapter and Get-NetIPAddress
lxsameer has quit [Quit: WeeChat 1.5]
<bg> are they actual programs or just functions inside of powershell
<singularity42> functions correct
<bg> then you can't even run them with exec(), let alone construct a pipeline out of them
<bg> you have to exec() powershell itself with some arguments the make it run a command line
hotpancakes has quit [Ping timeout: 246 seconds]
<dminuoso> Interesting..
<dminuoso> Wow.
<dminuoso> >> [1,2].map &-> (e) { |a,b| }
<ruby[bot]> dminuoso: # => /tmp/execpad-13d72ebc0ce8/source-13d72ebc0ce8:2: syntax error, unexpected '|' ...check link for more (https://eval.in/752294)
<dminuoso> I like this.
<bg> u like errors?
<dminuoso> >> [1,2].map &-> (e) { p e }
<ruby[bot]> dminuoso: # => 1 ...check link for more (https://eval.in/752296)
<dminuoso> >> [1,2].map &-> (a,b,c) { p e }
<ruby[bot]> dminuoso: # => wrong number of arguments (given 1, expected 3) (ArgumentError) ...check link for more (https://eval.in/752297)
<dminuoso> bg: ^- this.
<singularity42> bg: ruby processes the first function without issue , i just cant do anyhing with it after that :( ive been trying literally for 2 work days to get some results
Trynemjoel has joined #ruby
<dminuoso> I should stop using blocks immediately.
<dminuoso> and procify lambdas instead.
<dminuoso> blockify.
<bg> dminuoso: what is &->
<bg> oh
<bg> haha
<dminuoso> bg: & is the to_proc operator
<bg> right
<singularity42> i dont see why it seems so complicated to send a basic command structure :(
renchan has quit [Quit: Leaving...]
<bg> singularity42: could you write a powershell script and run that from ruby?
<dminuoso> >> def f(l); l.each &-> (e) { if(e == 10); return; end }; puts "hooray"; end; f([1,10])
<ruby[bot]> dminuoso: # => hooray ...check link for more (https://eval.in/752299)
<dminuoso> >> def f(l); l.each { |e| if(e == 10); return; end }; puts "hooray"; end; f([1,10])
<ruby[bot]> dminuoso: # => nil (https://eval.in/752300)
<singularity42> bg: hmmm. that might be an idea. I cant use powershell cause the system I am passing the info to doesnt support structured data from powershell. but it does from ruby. so i am trying to do it through ruby. i didnt think of going that route though
kernelPaniq has joined #ruby
<bg> dminuoso: why didn't it print anything
<bg> oh
TomyWork has joined #ruby
<bg> what is returning from in the first one
<bg> what is it returning from*
FastJack has quit [Ping timeout: 260 seconds]
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
<bg> dminuoso: what is -> (e) { ... }
<bg> i don't understand what & is doing there
<bg> `-> (e) { 42 }` is a Proc
<bg> `&-> (e) { 42 }` is a syntax error on its own -- but i don't know why
<dminuoso> 15:59 < bg> `-> (e) { 42 }` is a Proc
<allisio> I do this weird thing where I assume people with very short nicks are competent netizens.
<dminuoso> bg: it is not.
<allisio> I guess I should probably stop.
<dminuoso> bg: It is a lambda,
<allisio> >> ->{}.is_a? Proc
<ruby[bot]> allisio: # => true (https://eval.in/752310)
<allisio> (Sorry. :P)
<dminuoso> Fine you make a valid point
<dminuoso> but it's a lambda Proc.
<leah2> never got why this -> syntax was added...
last_staff has quit [Quit: last_staff]
<allisio> For sexy.
<dminuoso> leah2: 16:01 < dminuoso> but it's a lambda Proc.
<dminuoso> leah2: lambda{ |e| } is fugly
<leah2> it's just superfluous
sid_fules has quit [Remote host closed the connection]
<dminuoso> you prefer lambda{} ?
<leah2> and why are the parameters before the block
<leah2> yes
<leah2> but i started with 1.6, so ;)
<dminuoso> leah2: because almost all languages do that way too
<dminuoso> its much more consistent
<allisio> Is there a way to lambdafy a non-lambda Proc?
<bg> dminuoso: ok but you said & is the to_proc operator
ResidentBiscuit has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<bg> so why is `&-> (e) { 4 }` invalid syntax
<leah2> because its not a call
<bg> allisio: How am I not a competent netizen?
patarr has joined #ruby
<leah2> bg: & is not a generic operator, but syntax for passing a lambda as a block
<dminuoso> bg: In this particular case it forces a proc into a block slot.
<bg> ah ok
<bg> if it is used to pass things as blocks, why is it called to_proc?
sid_fules has joined #ruby
<leah2> %)
<dminuoso> bg: well technically there's implicit casting going on, and in doing that to_proc is called
<dminuoso> I guess its a valid point, & is not the to_proc operator
<dminuoso> but rather a "turn this proc into a block"
<leah2> >> ["foo", "bar", "baz"].map(&:reverse)
<ruby[bot]> leah2: # => ["oof", "rab", "zab"] (https://eval.in/752311)
<dminuoso> which will cast the thing into proc using to_proc if its not
<dminuoso> for example:
<allisio> It's "turn this into a Proc and then pass it as a block".
<leah2> using Symbol#to_proc
<dminuoso> >> :foo.to_proc
<ruby[bot]> dminuoso: # => #<Proc:0x41435c24(&:foo)> (https://eval.in/752312)
<bg> wow
<dminuoso> so in fact &:foo is just shorthand for &:foo.to_proc
FastJack has joined #ruby
<bg> that's cool. i had seen &:foo before but i didn't know it was just Symbol#to_proc
<dminuoso> or conceptually its:
<dminuoso> :foo.to_proc.to_block
jonjoe has quit []
<dminuoso> bg: ^- I think this is the best explanation
Pumukel has joined #ruby
<dminuoso> except there is no to_block method ;-)
conta has joined #ruby
<bg> so & is special syntax used where a block is expected that lets you use anything with a to_proc method as a block?
<dminuoso> yup
<dminuoso> bg: and & also binds blocks to procs
<dminuoso> >> def foo(&something); puts something.class end; foo() {}
<ruby[bot]> dminuoso: # => Proc ...check link for more (https://eval.in/752314)
<dminuoso> so its basically a block<>proc conversion operator
<dminuoso> depending on where you use it
<allisio> >> class Fixnum; def to_proc; -> _ { self } end end; [1,2,3].map &42
<ruby[bot]> allisio: # => [42, 42, 42] (https://eval.in/752315)
Pumukel has quit [Remote host closed the connection]
<bg> allisio: Can you please tell me what I did wrong? I'd like to be a competent netizen but I can't if you don't communicate.
Pumukel has joined #ruby
Pumukel has quit [Read error: Connection reset by peer]
<dminuoso> bg: One great purpose of using to_proc is in certain FP techniques. :-)
<allisio> dminuoso bg: & is the to_proc operator
<allisio> That struck me as ample Google fodder is all.
<dminuoso> :S
<dminuoso> That hurt.
tercenya has quit [Remote host closed the connection]
<bg> >> class Integer; def to_proc; -> k { k + self } end end; [1, 2, 3].map &42
<ruby[bot]> bg: # => [43, 44, 45] (https://eval.in/752316)
<dminuoso> allisio: 16:05 < dminuoso> I guess its a valid point, & is not the to_proc operator
<bg> I'm a Ruby god now.
tercenya has joined #ruby
<dminuoso> allisio: henceforth I shall call it the proc<>block conversion operator.
<allisio> dminuoso: It's very nearly that.
<allisio> Of course, looking at it that way reveals `&block` to be something of a misnomer, but there's no going back now.
Trynemjoel has quit [Ping timeout: 245 seconds]
<allisio> bg: `&+42` would've been godly.
Trynemjoel has joined #ruby
<dminuoso> allisio: Indeed.
<dminuoso> allisio: At this point I'm hoping for some new things added to the stdlib, such as:
<dminuoso> >> [1,10, "FOO"].all?(String)
<ruby[bot]> dminuoso: # => wrong number of arguments (given 1, expected 0) (ArgumentError) ...check link for more (https://eval.in/752320)
troulouliou_div2 has quit [Quit: Leaving]
<dminuoso> Now that would be sexy. :-)
agent_white has joined #ruby
<allisio> That it would. ;)
<bg> what is unary +
<bg> it's not a method is it?
<dminuoso> allisio: Ox0dea made a feature request for this like 2 years ago, even with working patch..
<agent_white> Mornin' folks
<dminuoso> But nobu being nobu..
<allisio> It is a method.
chouhoulis has joined #ruby
<bg> ah +@
cagmz has joined #ruby
Ruby_Rocks_007 has joined #ruby
lenwood has quit [Ping timeout: 260 seconds]
<bg> >> class Integer; def +@; -> k { k + self } end end; +32(10)
<ruby[bot]> bg: # => /tmp/execpad-5bc504cb91cf/source-5bc504cb91cf:2: syntax error, unexpected '(', expecting keyword_end ...check link for more (https://eval.in/752321)
<allisio> You have to say `32.+@(10)`, so best just to not.
<bg> oh, because '+32' is an integer literal?
<bg> oh you can't even call a proc with just () can you
Rodya_ has joined #ruby
<allisio> There are four ways to call a Proc, but bare parens is (alas) not one of them.
gsilva has joined #ruby
<allisio> You can say `+(32)` to invoke `#+@`, but that doesn't let you pass arguments.
MasterRex has joined #ruby
<bg> >> class Integer; def +@; -> k { k + self } end end; (+(32)).call 10
<ruby[bot]> bg: # => 42 (https://eval.in/752322)
<bg> ^___^
<allisio> >> class Integer; def call n; self + n end end; 32.(10)
<ruby[bot]> allisio: # => 42 (https://eval.in/752323)
banisterfiend has joined #ruby
<bg> morning agent_white
Burgestrand has quit [Quit: Closing time!]
certainty has quit [Ping timeout: 260 seconds]
certainty has joined #ruby
rkazak_ has joined #ruby
renchan has joined #ruby
certainty has quit [Ping timeout: 256 seconds]
<allisio> dminuoso: I twvtjia gxe dgfdtsk ex ia xbgmg tqpittl mucp. :)
czerasz has quit [Quit: Ex-Chat]
<dminuoso> Say what?
viuo has joined #ruby
certainty has joined #ruby
igniting has quit [Remote host closed the connection]
EV3RYDAYPR0GRESS has joined #ruby
norbertka has quit [Ping timeout: 264 seconds]
<allisio> It's Ithkuil.
<allisio> Or ROTrot, I forget which.
failshell has quit []
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hxegon_afk is now known as hxegon
norbertka has joined #ruby
<hxegon> morning bg, morning all
<bg> hxegon: hi ^___^
<dminuoso> allisio: I just encode all my messages with RO26
Burgestrand has joined #ruby
<allisio> dminuoso: 2ROT13 is top-shelf cryptographic technology.
bkxd has quit [Ping timeout: 240 seconds]
nobitanobi has quit [Remote host closed the connection]
<dminuoso> allisio: 2ROT13 is not as good as ROT26 though.
Silthias1 has left #ruby [#ruby]
<dminuoso> allisio: It's inefficient because it does its rotation twice.
tyang has quit [Quit: Leaving]
<allisio> dminuoso: Optimizing compilers should handle that.
shinnya has joined #ruby
Silthias has joined #ruby
<dminuoso> allisio: alas.. MRI.. :(
<dminuoso> And dont get me started on Ruby 3.0 -> it will be years too late.
<bg> is ruby 3 going to be like python 3
<bg> and perl 6
<havenwood> bg: No.
<bg> so when 3.0 releases you expect most people will migrate right away?
yeticry_ has joined #ruby
<matthewd> We had that hump moving on from 1.8
jgnagy has joined #ruby
<dminuoso> Today we had someone in #rubyonrails who was upgrading his rails 2 project...
singularity42 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
cajone has left #ruby [#ruby]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yeticry has quit [Ping timeout: 256 seconds]
chopin has joined #ruby
bruce_lee has joined #ruby
ExcelTronic has quit [Remote host closed the connection]
<hxegon> I'd say that's in the minority though. Pretty sure I read somewhere that generally ruby people migrate to new versions pretty quickly
<bg> i love migrating
<bg> who doesn't want the latest and greatest
raspado has joined #ruby
<hxegon> exactly
millerti has joined #ruby
nettoweb has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
sid_fules has quit [Remote host closed the connection]
<bg> Test = Module.new do def self.f; 42 end end
<bg> how did i not realize i was not typing in pry
sid_fules has joined #ruby
raspado has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
sid_fules has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
norbertka has quit [Quit: Leaving]
certainty has quit [Read error: Connection reset by peer]
duderonomy has quit [Ping timeout: 240 seconds]
lenwood has joined #ruby
certainty has joined #ruby
Lord_of_Life has quit [Excess Flood]
Lord_of_Life has joined #ruby
aufi has quit [Remote host closed the connection]
ElDoggo has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
<allisio> dminuoso: My ROTrot implementation, anyway: https://eval.in/752354
<allisio> The gruesomeness is entirely deliberate, I swear.
ResidentBiscuit has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<dminuoso> allisio: the output says its not rotrot
<dminuoso> the output says its rotrotshift
tercenya has quit [Remote host closed the connection]
<dminuoso> Oh wait
<dminuoso> No
<dminuoso> Haha
<dminuoso> I like it.
tercenya has joined #ruby
<allisio> It's good.
<dminuoso> allisio: under what license to you publish that code?
<dminuoso> my code editor is ready, waiting in insert (paste) mode
jamesaxl has joined #ruby
<allisio> dminuoso: Public domain so the French can't have it.
<dminuoso> Haha
<dminuoso> allisio: Of course I shall rename that method to def enhance ...
<allisio> It parameterizes to unrotrot with alarming ease.
<dminuoso> Im trying really hard to have my code uploaded to thedailywtf some day.
<allisio> They like nesting there.
<dminuoso> allisio: I like your style. Let's see if you can do something more elaborate than this: https://eval.in/752356
<bg> ([:succ] * ((i += n) % 26)).reduce(c, :send)[-1]
<bg> lmao
<dminuoso> bg: It's amazing.
ResidentBiscuit has joined #ruby
Burgestrand has quit [Quit: Closing time!]
certainty has quit [Ping timeout: 260 seconds]
<bg> TIL 'z'.succ == 'aa'
<allisio> It exposes that #succ should probably take an argument.
<cagmz> what does this do? ary1 = %i[a b]
<allisio> >> %i[a b]
<ruby[bot]> allisio: # => [:a, :b] (https://eval.in/752359)
dangerousdave has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has joined #ruby
<bg> more like it exposes #succ is the wrong tool for the job
<matthewd> Doesn't really feel much better :/
ych has joined #ruby
<allisio> It doesn't handle uppercase and is therefore objectively worse. :P
<matthewd> Yeah, that's fair :)
lenwood has quit [Ping timeout: 260 seconds]
<hxegon> Yall trying to summon satan again?
<allisio> String#<< can take codepoints, so it can probably be golfed down with a call to #bytes instead of #chars.
itsautomatisch has quit [Quit: Leaving]
<hxegon> nvm, 0xOdea would have to be here
<matthewd> allisio: Oh, TIL
<matthewd> allisio: And you just knocked 2 characters off my solution to https://codefights.com/challenge/jzs6k2FedHaDfCWtv :)
Alina-malina has joined #ruby
nobitanobi has joined #ruby
willardg has joined #ruby
willardg has left #ruby [#ruby]
<bg> how can you mutate locals inside of a block
schickung has quit [Quit: schickung]
<bg> the locals were defined outside the block
<allisio> For better or worse, blocks are not "scope gates".
<allisio> They probably should be, but what's done is done.
<allisio> matthewd: Nice.
<bg> doesn't that mean i should be able to mutate locals?
croberts has quit [Remote host closed the connection]
<matthewd> bg: Yes, you can set a local that was defined before the block, and it will retain the new value after the block
Rodya_ has quit [Remote host closed the connection]
<bg> oh i can. i had another stupid mistake
Beams_ has joined #ruby
dionysus69 has joined #ruby
<bg> ^___^
brent__ has joined #ruby
<bg> ugh ignore that missing space before the brace
* bg twitches
certainty has joined #ruby
cajone has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Beams has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
<matthewd> Yeah, I think #times is the way to go... https://eval.in/752400
certainty has quit [Ping timeout: 240 seconds]
montanonic has joined #ruby
aganov has quit [Remote host closed the connection]
<allisio> That looks hard to beat, and reminds me that a `.=` operator would be nice to have on occasion.
bkxd has joined #ruby
MasterRex has quit [Ping timeout: 268 seconds]
hotpancakes has joined #ruby
<baweaver> So what's the golf task?
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MasterRex has joined #ruby
<baweaver> because String#tr would murder most ROT* tasks
mark_66 has quit [Remote host closed the connection]
<baweaver> &ri String#tr
<allisio> Not likely.
<allisio> You'd have to spend a lot of code setting up the translation tables.
JeanCarloMachado has quit [Remote host closed the connection]
szulak_ has joined #ruby
<baweaver> where's the original problem?
<allisio> #rotrot should rotate the first character by 0, the second by 1, and so on.
<matthewd> baweaver: I tried: https://eval.in/752360
<matthewd> (and as allisio noted, that failed to handle uppercase)
<allisio> My original got up to all kinds of silliness, but I was quickly made aware of its verbosity: https://eval.in/752406
<baweaver> Huh, this is rather silly.
<allisio> You're rather silly.
<baweaver> naturally I'm going to spend hours on it
Arpanet69 has quit [Ping timeout: 260 seconds]
<allisio> I just really like `#reduce` with `:send`. :<
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
montanonic has quit [Ping timeout: 268 seconds]
jackjackdripper has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
armyriad has quit [Quit: Leaving]
hotpancakes has quit [Ping timeout: 246 seconds]
JeanCarloMachado has joined #ruby
<allisio> matthewd: You can do away with the modulo in your solution, but it otherwise looks unbeatable barring some crazy bitwise sorcery.
bg has quit [Ping timeout: 264 seconds]
ElDoggo has quit [Ping timeout: 240 seconds]
jaruga__________ has quit [Quit: jaruga__________]
jaruga__________ has joined #ruby
kernelPaniq has quit [Ping timeout: 240 seconds]
kernelPaniq has joined #ruby
millerti has joined #ruby
jaruga__________ has quit [Client Quit]
tercenya has quit [Remote host closed the connection]
sid_fules has joined #ruby
tercenya has joined #ruby
tercenya has quit [Remote host closed the connection]
raspado has joined #ruby
aupadhye has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
millerti has quit [Client Quit]
sid_fules has quit [Remote host closed the connection]
sid_fules has joined #ruby
cfec0b8d has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
<baweaver> matthewd / allisio: bytes
conta has quit [Ping timeout: 260 seconds]
<allisio> baweaver: #succ nicely handles case.
<baweaver> s.bytes.reduce('') ...
<allisio> *String#succ
<baweaver> hrm.
<baweaver> well so much for that savings
<allisio> And wraparound too, courtesy of the 'z' => 'aa' convenience.
Rex has joined #ruby
xzhao has quit [Remote host closed the connection]
amclain has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Exuma has joined #ruby
gusrub has joined #ruby
ych has quit [Quit: Textual IRC Client: www.textualapp.com]
MasterRex has quit [Ping timeout: 268 seconds]
xzhao has joined #ruby
tercenya has joined #ruby
<baweaver> `s.gsub(/[a-z]/i)` to `s.downcase` -6
<baweaver> [-1] to [0] -1
<allisio> I thought there might be something about mutating a translation table as you chomp along the string, but the lack of slices makes that a non-starter.
renchan has quit [Remote host closed the connection]
<allisio> `'z'.succ.succ` needs to be 'b', not 'a'.
<allisio> Have you had your coffee? :P
<matthewd> downcase changes the output for uppercase inputs
<baweaver> ach, block
Beams has joined #ruby
* baweaver wanders off to get coffee
shinnya has quit [Ping timeout: 240 seconds]
Exuma has quit [Client Quit]
BackEndCoder has quit [Excess Flood]
SeepingN has joined #ruby
pandaant has quit [Remote host closed the connection]
Beams_ has quit [Ping timeout: 240 seconds]
<baweaver> gah, Ox0dea is offline.
<baweaver> they lurk in other channels on occasion.
samdvr has joined #ruby
samdvr has quit [Client Quit]
millerti has joined #ruby
BackEndCoder has joined #ruby
andikr has quit [Remote host closed the connection]
bg has joined #ruby
xzhao has quit [Remote host closed the connection]
xzhao has joined #ruby
ElDoggo has joined #ruby
mula has joined #ruby
SteenJobs_ has quit [Quit: SteenJobs_]
SteenJobs_ has joined #ruby
szulak_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
SteenJobs_ has quit [Client Quit]
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
conta has joined #ruby
xzhao has quit [Remote host closed the connection]
tercenya has quit [Remote host closed the connection]
chopin has quit [Remote host closed the connection]
tercenya has joined #ruby
bg has quit [Quit: :*]
xzhao has joined #ruby
Alina-malina has quit [Ping timeout: 240 seconds]
Alina-malina has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
SteenJobs_ has joined #ruby
gsilva has quit [Read error: Connection reset by peer]
bigkevmcd has quit [Quit: Outta here...]
Beams has quit [Quit: .]
djbkd has joined #ruby
ramfjord has joined #ruby
mula has quit [Read error: No route to host]
samdvr has joined #ruby
mula has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flying has quit []
jaruga__________ has joined #ruby
jaruga__________ has quit [Remote host closed the connection]
conta has quit [Quit: conta]
samdvr has quit [Client Quit]
samdvr has joined #ruby
mula has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 258 seconds]
sid_fules has quit [Remote host closed the connection]
sid_fules has joined #ruby
mula has joined #ruby
rgiscard has joined #ruby
sid_fules has quit [Ping timeout: 260 seconds]
samdvr has quit [Quit: samdvr]
AndBobsYourUncle has joined #ruby
lxsameer has joined #ruby
tildes_ has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
brent__ has quit [Remote host closed the connection]
AndBobsYourUncle has quit [Ping timeout: 260 seconds]
willardg has joined #ruby
millerti has joined #ruby
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
brent__ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
gusrub has quit [Ping timeout: 256 seconds]
khaki has joined #ruby
gusrub has joined #ruby
brent__ has quit [Ping timeout: 258 seconds]
kirun has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
electrostat has quit [Quit: uwotm8]
cgdub has joined #ruby
electrostat has joined #ruby
Rex has quit [Ping timeout: 268 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xiti has quit [Quit: Xiti]
montanonic has joined #ruby
Rex has joined #ruby
pifon has joined #ruby
hahuang65 has joined #ruby
ramfjord has joined #ruby
redsandhand has joined #ruby
JeanCarloMachado has quit [Ping timeout: 256 seconds]
dionysus69 has quit [Ping timeout: 264 seconds]
ramfjord_ has joined #ruby
Ruby_Rocks_007 has joined #ruby
bg has joined #ruby
__Yiota has quit [Quit: Textual IRC Client: www.textualapp.com]
ramfjord has quit [Ping timeout: 240 seconds]
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
redsandhand has quit [Quit: leaving]
antoniobeyah has joined #ruby
cdg has joined #ruby
hotpancakes has joined #ruby
dionysus69 has joined #ruby
ResidentBiscuit has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
SteenJobs_ has quit [Quit: peaceee]
hahuang61 has joined #ruby
cdg has quit [Read error: Connection reset by peer]
renchan has joined #ruby
cdg has joined #ruby
duderonomy has joined #ruby
TomyWork has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 268 seconds]
brent__ has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
millerti has joined #ruby
millerti has quit [Client Quit]
patarr_ has joined #ruby
jshjsh has quit [Ping timeout: 268 seconds]
Rex has quit [Ping timeout: 268 seconds]
patarr has quit [Ping timeout: 258 seconds]
ColeHub has joined #ruby
psychicist__ has joined #ruby
Bob8989|2 has joined #ruby
chouhoulis has joined #ruby
Tatou has joined #ruby
<Tatou> Hi. In puppet you have these. What are these called in Ruby?
<ruby[bot]> Tatou: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/43029b3212f970bfb6de328a7afdf16d
<ruby[bot]> Tatou: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<allisio> Tatou: That's just calling a method with a Hash argument.
mula has quit [Remote host closed the connection]
<elomatreb> Is it? That does not look like valid Ruby syntax
<Tatou> Is it not valid ruby syntax? That is what is confusing me..
Rex has joined #ruby
Oldn0rse has joined #ruby
<allisio> Tatou: Yeah, never mind. But then you'll have to clarify what you mean by "these".
<Tatou> allisio: That's how you declare things in a puppet manifest..
<Tatou> I was wondering if there is a name for such a thing in Ruby. Is that just valid ruby?
<allisio> Nah, there's a few things that make it syntactically invalid.
<allisio> It's meant to look a lot like Ruby, obviously, and you can get there with a bit of finagling.
<baweaver> Valid ruby would be: user {name: 'mitchell', ensure => present, ... }
<Tatou> Ok.. Well, I don't know if this is good news or not!
cfec0b8d has joined #ruby
<Tatou> I was trying to work out if I can make my own user style type, but with random fields
<allisio> You can.
szulak has joined #ruby
<Tatou> In puppet?
<elomatreb> baweaver: Would it be valid? Wouldn't it think ensure is a keyword?
JoshS has joined #ruby
<baweaver> point
<baweaver> if it eval'd to true/false though
<baweaver> that's what I was half thinking
TomyLobo has joined #ruby
millerti has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
mula has joined #ruby
milardovich has joined #ruby
Eiam has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.5]
<cek> Am I right saying that if attacker gains access to executing ruby code inside any of my class instance, I'm screwed.
<baweaver> If an attacker has any type of eval access to anything you're screwed
<elomatreb> If an attacker gains access to executing ruby code anywhere in not in a heavily sandboxed env, you're screwed
<baweaver> `sudo rm -rf /` and boom
khaki has quit [Ping timeout: 256 seconds]
<baweaver> DO NOT RUN THAT COMMAND IN RUBY
<allisio> It's safe.
<elomatreb> --no-preserve-root
<baweaver> that as well
<allisio> `rm -rf ~` is considerably more sinister.
mula has quit [Remote host closed the connection]
hotpancakes has quit [Remote host closed the connection]
<baweaver> If you have to ask, it's probably a bad idea for security.
<cek> they won't be able to access a secret in object not referenced and unreachable from within the context. I don't care about system being wiped. The question was about global object pointer table or alike, if such exists.
<allisio> cek: Yeah, ObjectSpace exists.
<elomatreb> You can't rely on access control for security, it's always bypassable
<allisio> You can get to anywhere from anywhere else in Ruby.
<cek> you have to understand ruby very well in order to answer my question.
<allisio> cek: Try to hide something in a Ruby program.
<allisio> I'll happily show you how to get to it.
<elomatreb> You can literally enumerate all current objects from anywhere
<cek> apeiros: what do you think?
millerti has quit [Client Quit]
<allisio> cek: Why not just accept my challenge?
* baweaver grabs popcorn
<allisio> cek: In the final analysis, ObjectSpace + Fiddle makes it delightfully straightforward to get hold of every single live object in the system, and even some dead ones.
<allisio> You could stick your thing on FrozenCore or some such, but even that's not terra incognita.
hahuang61 has quit [Quit: WeeChat 1.7]
<allisio> You have to understand Ruby very well in order to properly ask your question.
hahuang65 has joined #ruby
patarr_ has quit [Ping timeout: 268 seconds]
bg has quit [Quit: :*]
<antoniobeyah> allisio: personal curiosity, what is Fiddle?
Silthias has quit [Ping timeout: 240 seconds]
<allisio> antoniobeyah: The layer between Ruby and C is actually surprisingly thin, and Fiddle makes it all but disappear.
<antoniobeyah> ah, thanks
<antoniobeyah> will read up
mwlang has joined #ruby
gsilva has joined #ruby
_joes__ has joined #ruby
mula has joined #ruby
bocaneri has quit [Read error: Connection reset by peer]
_joes__ has quit [Client Quit]
mula has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
Rex has quit [Ping timeout: 268 seconds]
cdg has joined #ruby
<allisio> cek: I was kinda hoping you'd play along. :/
Arpanet69 has joined #ruby
rolls is now known as \tau
minimalism has joined #ruby
<cek> debug & introspect features disabled, only basic libs present
hotpancakes has joined #ruby
<cek> no libffi and such, very basic and stripped setup.
willardg has quit [Quit: Textual IRC Client: www.textualapp.com]
<allisio> Moving the goalposts is generally an admission of defeat, for what that's worth.
nofxx has joined #ruby
<cek> Any other way to gain access to live objects / global pointer table ?
<allisio> ObjectSpace is available on boot and Fiddle is in the standard library.
mula has joined #ruby
vali has joined #ruby
mula has quit [Remote host closed the connection]
vali has quit [Client Quit]
willardg has joined #ruby
<cek> so no other method
<allisio> cek: Try to make some value inaccessible from some starting point.
jphase has quit [Read error: No route to host]
_joes__ has joined #ruby
esObe__ has joined #ruby
jphase has joined #ruby
pulkit4tech has quit [Quit: pulkit4tech]
cdg_ has joined #ruby
<allisio> I'd genuinely like to try to get there without the obvious approaches.
<allisio> But it becomes circumstantial in that case, so you'll need to post some code.
esObe___ has joined #ruby
esObe_ has quit [Read error: No route to host]
pulkit4tech has joined #ruby
_joes__ has quit [Client Quit]
bkxd has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
esObe__ has quit [Ping timeout: 260 seconds]
psychicist__ has quit [Ping timeout: 260 seconds]
<cek> well
cdg_ has quit [Ping timeout: 240 seconds]
<cek> >> puts (a = Object.new).object_id; def ctx; puts :need_a, a; end
<ruby[bot]> cek: # => 552578340 ...check link for more (https://eval.in/752577)
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<cek> ctx()
psychicist__ has joined #ruby
<allisio> cek: https://eval.in/752579
<cek> they introduced BEGIN? is that perl now?
nadir has joined #ruby
<allisio> Pretty sure it's been there from the beginning, but Perl borrowed it from AWK.
xen0fon has joined #ruby
<hxegon> Just to double check here, you BEGIN runs a block before anything else in the program, you patched Object to assign self to a global var?
<hxegon> s/you/your
<allisio> It's just a minimally demonstrative example of the theory.
<cek> never heard of BEGIN. Well, at this point I'm sure there exist additional ways of circumventing traditional encapsulation concept then.
patarr has joined #ruby
<allisio> In Ruby, everything is always open.
<allisio> If it's closed, you can open it with little more than a method call.
<cek> this is very, very daunting.
<elomatreb> Why would you want this though?
<allisio> If your thing involves letting the user run arbitrary Ruby code, there are battle-tested sandboxen at your disposal.
<allisio> You really don't want to home-grow something like that.
<cek> yes, that code is called dsl
<cek> it seems you have to write / use a parser instead of what you would normally accomplish with simple ruby dsl
psychicist__ has quit [Ping timeout: 256 seconds]
jackjackdripper1 has joined #ruby
Rex has joined #ruby
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
jackjackdripper has quit [Ping timeout: 260 seconds]
<allisio> You haven't said much about what it is you're trying to do, but if your aim is to hide something from users of your library *within* that same library, definitely give it up as a fool's errand.
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
Ruby_Rocks_007 has joined #ruby
ColeHub has quit [Quit: Snooze.]
cvander has joined #ruby
johnny56 has quit [Ping timeout: 264 seconds]
cek has left #ruby [#ruby]
millerti has joined #ruby
Silox| has joined #ruby
pabloh has joined #ruby
psychicist__ has joined #ruby
montanonic has quit [Ping timeout: 258 seconds]
tildes_ has quit [Ping timeout: 246 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
psychicist__ has quit [Ping timeout: 264 seconds]
johnny56 has joined #ruby
tercenya has quit [Read error: Connection reset by peer]
ColeHub has joined #ruby
psychicist__ has joined #ruby
tercenya has joined #ruby
elifoster has joined #ruby
johnny56 has quit [Ping timeout: 264 seconds]
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
johnny56 has joined #ruby
chouhoul_ has joined #ruby
aesthetikx has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
tildes_ has joined #ruby
<aesthetikx> Does anyone know when 2.4.1 is going to come out, waiting to update but that weird instance_exec block argument thing is breaking my build
dmin7b5 has joined #ruby
<dminuoso> aesthetikx: Can you link the bug?
skweek has joined #ruby
<dminuoso> aesthetikx: And if it breaks your build, then downgrade Ruby.
<aesthetikx> we are still on 2.3.4, 2.4.0 has that which breaks some intersting usage of factory_girl
<aesthetikx> not a huge deal just curious because I have heard 2.4.0 has nice gc improvements
<dminuoso> aesthetikx: Then you have heard more than I have.
johnny56 has quit [Ping timeout: 264 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hotpanca_ has joined #ruby
millerti has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
xzhao has quit [Remote host closed the connection]
xzhao has joined #ruby
montanonic has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
Xiti has joined #ruby
Jackneill has joined #ruby
milardovich has quit []
aesthetikx has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
dmin7b5 has quit [Quit: Textual IRC Client: www.textualapp.com]
patarr has joined #ruby
milardovich has quit [Remote host closed the connection]
<hxegon> Question: You find a gem that you need to make work because <business reasons>, and you are going to rely on it for mission critical tasks all the time. But the code is awful. It's complex, non-idiomatic, hardly readable semi-garbage. The test suite runs against some undocumented endpoint. Documentation is outdated at best, completely non-existant at worst. You aren't familiar with the problem domain, and
<hxegon> reading the code brings up more questions than answers. What do you do?
<Papierkorb> hxegon: Not use it
<allisio> But <business reasons>!
skweek has quit [Ping timeout: 240 seconds]
<Papierkorb> hxegon: If you're not comfortable using a certain library in general: Don't use it.
<hxegon> Papierkorb: If it were you, you'd rewrite it vs try to refactor?
<Papierkorb> hxegon: I can't tell you without context. both may be reasonable.
dhollinger has joined #ruby
skweek has joined #ruby
xzhao has quit [Remote host closed the connection]
<baweaver> Indeed. Which gem specifically?
kirun has quit [Quit: Konversation terminated!]
<hxegon> I was a little hard on it, there are spots that are decent, but...
cek has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
johnny56 has joined #ruby
jamesaxl has joined #ruby
<hxegon> just to give an approximate taste, sloccount gives it about 2000 lines of ruby, and rubocop gives lib/ 1368 offenses
<baweaver> ignore rubocop
<hxegon> Not that I try and adhear to rubocop strictly, but in this case
<baweaver> For a library, focus on structure and docs.
<baweaver> Rubocop gripes are worthless unless you intend to fix them everywhere
<Papierkorb> rubocop can be pretty nitpicky at times, especially if you don't adhere exactly to its ruleset (e.g. because you didn't use rubocop or because your rubocop.yml is outdated)
<baweaver> in this case they're skimpy on docs everywhere and don't know what SQL actually does in some areas.
<baweaver> TL;DR: Rubocop is not the law, don't get hung up on it when viewing someone elses code
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
patarr has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 258 seconds]
<hxegon> the rubocop corrections are really needed honestly
hutch34 has joined #ruby
<baweaver> name a few
<baweaver> because a lot of them are really nitpicky and worthless to worry about unless it's your codebase.
<cek> i now have totally forgotten closures in ruby. How do I unbind a proc and execute it in caller context, not the context it's been defined?
<hxegon> well for example the style rule that adds underscores to unused arguments helps, because they are all over the place
<hxegon> helps to know up front
<baweaver> nitpicky
<baweaver> next
<hxegon> making comments not start at the beginning of a line regardless of the surrounding indentation
<baweaver> don't get hung up on those. CodeClimate is a way better indication, and even that's not the best (see README)
<hxegon> again, many small improvements
<Papierkorb> cek: you're looking for instance_exec(&the_proc)
<baweaver> and it catches some interesting classes of issues
<cek> no, i'm not. that changes the self
<hxegon> A lot of it's stuff I'd end up doing myself anyway
<hxegon> changing normal strings from using " to '
<baweaver> again, really frivolous to worry over
<hxegon> not to worry over, these aren't the issues that matter, but I can just run it over the whole code base and it's a minor improvement
<baweaver> you should worry about things like Session login being ridiculously strongly coupled
<hxegon> Or the mind numbing demeter violations in errors
<baweaver> One thing to remember here though: building your own is a support liability. Make dead sure you can support it.
ldnunes has quit [Quit: Leaving]
<baweaver> that, and this gem is made by the official owners of this engine
Tatou has left #ruby [#ruby]
ramortegui has quit [Quit: Ex-Chat]
psychicist__ has quit [Ping timeout: 240 seconds]
<cek> seems I missed the difference in instance_exec{ proc[] } vs instance_exec(&proc)
patarr has joined #ruby
bg has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
resin has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
<cek> it's sad docs don't specifically mention the proc pass mode and try to emphasize on {|var| block } instead.
gsilva has quit [Quit: Leaving]
djbkd has quit [Remote host closed the connection]
szulak has joined #ruby
<bg> cek: what does that mean
tildes_ has quit [Ping timeout: 258 seconds]
oryman has joined #ruby
oryman has quit [Remote host closed the connection]
<cek> docs say: > Executes the given block within the context of the receiver ..., the variable self is set to obj while the code is executing,
<cek> so you'd expect your { tproc.call } would be executed in self context, but it isn't , because it will be executed in tproc's defining context
Wolfpack_12 has joined #ruby
JoshS has quit [Quit: Leaving]
<hxegon> probably right baweaver, hate to admit it. I'd *like* to rewrite, but realistically I don't think it's an option given my time constraints.
jamesaxl has quit [Quit: Leaving]
<baweaver> The fact of the matter is that a lot of things we use are ducttape. Ignorance is bliss and whatnot.
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hxegon> I'd like to ignore as much as possible, but It's going to be to critical to operations to try and sweep under the rug. Once we get going downtime would be really bad
Lord_of_Life has quit [Excess Flood]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
Lord_of_Life has joined #ruby
Andrevan has joined #ruby
banisterfiend has joined #ruby
vuoto has joined #ruby
dstrunk has joined #ruby
cvander has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd has quit [Remote host closed the connection]
mula has joined #ruby
renchan has quit [Remote host closed the connection]
alibby has joined #ruby
djbkd has joined #ruby
<Papierkorb> hxegon: IMHO the biggest improvement would then writing (additional) tests. Then you can somewhat safely refactor later on. But at least you're sure it at least works, or does not and you find a bug before you hit it in prod :)
<hxegon> Papierkorb: need to get the tests working first, but yeah :)
planigan has quit [Remote host closed the connection]
SeepingN has joined #ruby
vuoto has quit [Remote host closed the connection]
psychicist__ has joined #ruby
\tau is now known as rolls
djbkd has quit [Ping timeout: 240 seconds]
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
eclecticjohny has joined #ruby
skweek has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
hxegon is now known as hxegon_afk
Oldn0rse has quit []
Asher has joined #ruby
mula has quit [Remote host closed the connection]
dstrunk has joined #ruby
lianj_ has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
lianj has joined #ruby
lianj has quit [Changing host]
lianj has joined #ruby
cgdub has quit [Remote host closed the connection]
sid_fules has joined #ruby
resin has joined #ruby
electrostat has quit [Quit: uwotm8]
pawnbox has quit [Remote host closed the connection]
electrostat has joined #ruby
Trynemjoel has quit [Ping timeout: 264 seconds]
JeanCarloMachado has joined #ruby
Trynemjoel has joined #ruby
<mwlang> *sigh* … Every major macOS upgrade brings the dance of “how to install imagemagick and rmagick” and “how to install nokogiri” dance back to life.
<dminuoso> mwlang: use docker with an ubuntu base image?
<dminuoso> And never give a fuck again
montanonic has quit [Ping timeout: 240 seconds]
<mwlang> dminuoso: funny you mention that…that’s essentially what I just did to get back to operational on Ruby 1.8.6 and 1.8.7. I guess it’s time to go all in.
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sid_fules has quit [Remote host closed the connection]
<mwlang> I just haven’t because I have about 70 or so live projects I have to dockerize.
<dminuoso> mwlang: Then you definitely should approach it carefully, as you probably want to plan ahead with your CI chain, docker registry, etc.
<mwlang> and I probably need to invest in a 1TB SSD, too.
<mwlang> dminuoso: lots of moving parts, for sure.
dstrunk has joined #ruby
<mwlang> dminuoso: I’m curious though…isn’t there still a maintenance overhead maintaining the OS images? For example, installing the extension packs every where every time VirtualBox puts out a new release?
zeroDi has joined #ruby
<dminuoso> mwlang: no
djbkd has quit [Remote host closed the connection]
<dminuoso> mwlang: and what does this have to do with VirtualBox?
psychicist__ has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Remote host closed the connection]
psychicist__ has joined #ruby
<dminuoso> mwlang: remember that the OS images are maintained by *other* folks.
<mwlang> dminuoso: woah, things have changed with docker. I just had docker lying around from a few years ago on coreos VM and cloned that puppy and got things running thatta way.
<mwlang> Didn’t know there’s a mac app now. :-o
<dminuoso> mwlang: there's just some subtle annoyances under mac.
Rex has quit [Read error: Connection reset by peer]
<dminuoso> but other than that its install and it works.
Rex has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
* mwlang going off to read up on “modern docker practices"
<dminuoso> mwlang: ship early, ship often!
<dminuoso> Oh wait. Wrong paradigm.
<dminuoso> :D
Silox| has quit [Quit: Connection closed for inactivity]
<mwlang> LMAO
rgiscard has quit [Quit: Gone fishing]
pilne has joined #ruby
<dminuoso> mwlang: Though honestly the girl analogy has helped me a lot with git.
<mwlang> I think the pardigm you’re looking for is “git widah program, already!”
KnownSyntax_ has joined #ruby
pilne has quit [Remote host closed the connection]
<dminuoso> mwlang: Well, the git paradigm is: "treat git like girlfriends. commit early and commit often"
<dminuoso> Oh my. I just found this funny git joke
<dminuoso> A branch, a tag, and a reflog walk into a bar. The bartender says, "What is this, some sort of rebase?"
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
evaleval has joined #ruby
<mwlang> lol
dstrunk has joined #ruby
KnownSyntax has quit [Ping timeout: 260 seconds]
<dminuoso> mwlang: This one I heard in #git a long while ago:
<evaleval> I'm using Resque to process some objects and part of the processing is to generate a unique slug (using friendly_id). Unfortunately, there are times when two processes check the db for the slug, see no one has it, and assign it which causes the second to fail.
<dminuoso> Git gets easier once you get the basic idea that branches are homeomorphic endofunctors mapping submanifolds of a Hilbert space.
<pabloh> anyone here familiar with sequel?
<pabloh> the gem
<evaleval> I'm trying to figure out a sane solution. My thought was to queue to the objects up and process their slug one by one.
<Papierkorb> pabloh: just ask
* mwlang uses sequel
djbkd has joined #ruby
* Papierkorb thinks sequel is the best thing since sliced bread
<SeepingN> and almost as old
<mwlang> dminuoso: that’s about right…about how my mind blanks out when going through the nitty gritty of Ruby Net/…. libraries. :-)
<Papierkorb> it's actively developed
<pabloh> Papierkorb, mwkang, do you know any plugin, or functionality to do profiling?
<pabloh> I would like to count the number of queries during requests?
<mwlang> pabloh: I thought Sequel exposes profiling through #explain or something like that.
<dminuoso> That being said, I just found the simplest explanation on what a Monad is..
nOwz has quit [Ping timeout: 268 seconds]
<dminuoso> All told, a monad in X is just a monoid in the category of endofunctors of X, with product × replaced by composition of endofunctors and unit set by the identity endofunctor.
<pabloh> and have tests to detect if a N+1 problem arises?
<baweaver> pabloh: that's called don't call it in a loop
<pabloh> like something like bullet
<pabloh> (and many others)
<pabloh> but for sequel
<pabloh> I would like to use (or write) a library like this one: https://github.com/brigade/db-query-matchers
<pabloh> (which only supports ActiveRecord)
raspado has quit [Remote host closed the connection]
bmurt has joined #ruby
maattdd has joined #ruby
<Papierkorb> pabloh: can't find something right now. There's #sequel, getting an answer might take a while though
Arpanet69 has quit [Ping timeout: 240 seconds]
<pabloh> Papierkorb, I already asked there, maybe I could try the google group later
<pabloh> the mailing list I mean
<Papierkorb> pabloh: "take a while" = up to 24 hours
<pabloh> yeap
pifon has quit [Quit: Connection closed for inactivity]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
<mwlang> pabloh: that’s not really something writing test cases for are useful. Far better to just have console scrolling the log and spotting such scenarios while “useful” unit tests are running. Because once you fix it, the test becomes pretty worthless.
Arpanet69 has joined #ruby
<mwlang> pabloh: just stay connected to the #sequel channel. Jeremy’s pretty frickin’ consistent about coming through with answers.
Rex has quit [Ping timeout: 246 seconds]
<mwlang> otherwise, post it on Stack Overflow.
<pabloh> cool
bmurt has quit [Ping timeout: 260 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Arpanet69 has quit [Ping timeout: 260 seconds]
Fernando-Basso has quit [Quit: WeeChat 1.7]
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dstrunk has joined #ruby
djbkd has quit [Quit: My people need me...]
a1fa has quit [Remote host closed the connection]
a1fa has joined #ruby
montanonic has joined #ruby
tvw has joined #ruby
ebcz has quit [Ping timeout: 246 seconds]
Arpanet69 has joined #ruby
<bg> do u guys have a favorite talk about ruby
khaki has joined #ruby
<bg> i'd love for u to share it with me
raspado has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
szulak has quit [Quit: Textual IRC Client: www.textualapp.com]
baked__beans has quit [Ping timeout: 264 seconds]
khaki has quit [Ping timeout: 258 seconds]
rgiscard has joined #ruby
<adam12> bg: A lot of Sandi Metz's talks are good. You can find them on Youtube.
chouhoul_ has quit [Remote host closed the connection]
Arpanet69 has quit [Ping timeout: 260 seconds]
psychicist__ has quit [Ping timeout: 260 seconds]
postmodern has joined #ruby
rgiscard has quit [Ping timeout: 264 seconds]
ColeHub has quit [Quit: Snooze.]
<bg> adam12, allisio: thanks!
last_staff has joined #ruby
psychicist__ has joined #ruby
Wolfpack_12 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dhollinger has quit [Quit: WeeChat 1.7]
Wolfpack_12 has joined #ruby
Wolfpack_12 has quit [Client Quit]
Wolfpack_12 has joined #ruby
Wolfpack_12 has quit [Client Quit]
last_staff has quit [Client Quit]
abdulmugni has joined #ruby
Wolfpack_12 has joined #ruby
Wolfpack_12 has quit [Client Quit]
Wolfpack_12 has joined #ruby
Wolfpack_12 has quit [Client Quit]
Wolfpack_12 has joined #ruby
Wolfpack_12 has quit [Client Quit]
saneax-_-|AFK is now known as saneax
psychici1t__ has joined #ruby
pawnbox has joined #ruby
josh25 has joined #ruby
psychicist__ has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
gnufied has quit [Ping timeout: 246 seconds]
psychici1t__ has quit [Ping timeout: 258 seconds]
<josh25> As I iterate through and array, how would I correctly remove the current element if it equals a given value? http://pastebin.com/R32Rjhtq
<ruby[bot]> josh25: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/c5dd3adb8d9e69d3a51be657499d81c1
<ruby[bot]> josh25: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
millerti has joined #ruby
<SeepingN> talk about terrible formatting. what's with the 8 space tabs
<SeepingN> oh they used real tabs so I guess I can blame the browser
mwlang has quit [Quit: mwlang]
Semtex-h has joined #ruby
JeanCarloMachado has joined #ruby
jhack has joined #ruby
jhack has joined #ruby
jhack has quit [Changing host]
pwnd_nsfw` is now known as pwnd_nsfw
cschneid_ has joined #ruby
zeroDi has quit [Quit: WeeChat 1.7]