havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.3, 2.4.5, 2.3.8, 2.6.0-rc2: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
hutch has joined #ruby
<dachi_> havenwood: I got to go, thanks for sharing your thoughts, Eiam SeepingN thank you too
<dachi_> have great days guys, its 4am here, so I'm half asleep
<dachi_> bye
dachi_ has quit [Quit: Page closed]
\void has joined #ruby
Cork has quit [Ping timeout: 246 seconds]
sylario has quit [Quit: Connection closed for inactivity]
FernandoBasso has quit [Remote host closed the connection]
Cork has joined #ruby
SeepingN has quit [Read error: Connection reset by peer]
code_zombie has quit [Quit: Leaving]
SeepingN has joined #ruby
ixti has joined #ruby
jthomas has quit [Ping timeout: 268 seconds]
NotSatoshi has joined #ruby
lytol has quit [Remote host closed the connection]
Rudolph has joined #ruby
SeepingN has quit [Ping timeout: 240 seconds]
hutch has quit [Ping timeout: 250 seconds]
SeepingN has joined #ruby
<NotSatoshi> I have a program that uses Net::IMAP to download emails for me and I want to store the results into an image or pdf file..... Is there a library that will do this for me?
jthomas has joined #ruby
<havenwood> NotSatoshi: SVG tend to be nice. Prawn is a good gem for PDF generation.
tiff has joined #ruby
<NotSatoshi> thanks
hutch has joined #ruby
Scrooge has quit [Ping timeout: 272 seconds]
<Eiam> GraphQL?? he should machine learn hisAPI too
clemens3_ has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
Rudolph has quit [Ping timeout: 250 seconds]
jthomas has quit [Ping timeout: 245 seconds]
eminencehc has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 246 seconds]
tiff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tiff has joined #ruby
graphene has quit [Remote host closed the connection]
eb0t has quit [Ping timeout: 272 seconds]
graphene has joined #ruby
SeepingN has quit [Disconnected by services]
SeepingN_ has joined #ruby
tiff has quit [Client Quit]
eminencehc has joined #ruby
davidw has quit [Ping timeout: 244 seconds]
tiff has joined #ruby
RougeR has joined #ruby
fluxAeon has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
Rudolph has joined #ruby
cliluw has quit [Read error: Connection reset by peer]
cthulchu_ has joined #ruby
cthulchu has quit [Ping timeout: 268 seconds]
tiff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tiff has joined #ruby
jottr has joined #ruby
hutch has joined #ruby
cliluw has joined #ruby
<NotSatoshi> Is there any example code that downloads all emails from a server and saves them to eml files?
<Eiam> there is a project that hosts emails into usenet
<Eiam> which i suspect may involve a part of what you just said
<Eiam> NotSatoshi: https://github.com/mikel/mail ? this seems google-able
exchgr` has quit [Quit: ZNC - http://znc.in]
ModusPwnens has joined #ruby
<ModusPwnens> So i'm trying to create a ViewModel for my ruby application. This ViewModel needs to have a field called "method", but I'm finding now that there is already a method called "method" as part of all ruby objects. Is there a way to replace that so I can use my preferred field name?
jottr has quit [Ping timeout: 250 seconds]
<Eiam> uhm
<NotSatoshi> Eiam: I have been going through that tutorial already, but it mentions nothing about saving..... I am curious if I can save it raw, or if it needs to be formatted to be an EML
<Eiam> you probably dont' want to replace the ruby 'method' with your 'method'
tiff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<NotSatoshi> I don't understand
<ModusPwnens> @Eiam: Yes, i do. This is a ViewModel and I don't actually care if people try to use that "method" method on them. It's more valuable to me to have the "method" method be a getter.
tiff has joined #ruby
<NotSatoshi> oh, didn't see Modus's message
donofrio has joined #ruby
<Eiam> ModusPwnens: and when you def method, what happens
tiff has quit [Client Quit]
<ModusPwnens> @Eiam: It just returns the corresponding field in the ViewModel. I literally just have attr_reader :method and i had no idea it was failing until I started to get weird argument errors when I tried to use it.
tiff has joined #ruby
<ModusPwnens> @Eiam: seems that attr_reader silently fails if there is some sort of name conflict.
Rudolph has quit [Ping timeout: 250 seconds]
<Eiam> yeah.. this is method https://ruby-doc.org/core-2.2.0/Method.html
donofrio has quit [Remote host closed the connection]
<ModusPwnens> Yeah, i just discovered that. The question is, how can I achieve my goal? Is it even possible?
<Eiam> thinking
Puffball has joined #ruby
<Eiam> i guess you could try to re-define the ruby version of method slot your code in then pass it onto the original implementation
<Eiam> feel like that would break a lot of stuff tho
donofrio has joined #ruby
cnsvc_ has quit [Ping timeout: 256 seconds]
hutch has quit [Ping timeout: 268 seconds]
mostlybadfly has joined #ruby
ixti has quit [Quit: WeeChat 2.3]
ixti has joined #ruby
fluxAeon has joined #ruby
donofrio has quit [Ping timeout: 244 seconds]
orbyt_ has joined #ruby
houhoulis has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Eiam> there are more creative minds than my own and certainly smarter ones. perhaps they will swing around and contribute at some point.
<Eiam> baweaver: re-implement your own 'method' cause f Ruby and their implementation. Thoughts? =)
<Eiam> "This is why we invented the monkey patch!"
SeepingN_ has quit [Quit: The system is going down for reboot NOW!]
exchgr has joined #ruby
eb0t has joined #ruby
Rudolph has joined #ruby
<hays> if i have a collection of loosely related functions, should I just throw them in a class and make them class functions?
<hays> ive been having some problems putting them in modules
<hays> basically ruby seems to be kinda finicky with modules--always complaining about it not being a method or some problem with the self pointer
<hays> also I think I have some confusion about :: vs. .
cnsvc_ has joined #ruby
hutch has joined #ruby
eminencehc has quit [Remote host closed the connection]
vikaton has joined #ruby
tenchi4615 has joined #ruby
tiff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tiff has joined #ruby
hutch has quit [Ping timeout: 250 seconds]
tiff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CustosLimen has quit [Quit: Leaving]
jthomas has joined #ruby
NotSatoshi has quit [Quit: leaving]
<hays> i read about module_function and extend self... they both seem worth avoiding honestly
jthomas has quit [Ping timeout: 240 seconds]
Rudolph has quit [Ping timeout: 240 seconds]
tiff has joined #ruby
tiff has joined #ruby
Rudolph has joined #ruby
brandonkal has quit [Quit: Textual IRC Client: www.textualapp.com]
masterasia has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
tiff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch has joined #ruby
tiff has joined #ruby
ellcs has quit [Ping timeout: 246 seconds]
tiff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dbz has joined #ruby
jottr has joined #ruby
hutch has quit [Ping timeout: 268 seconds]
jottr has quit [Ping timeout: 250 seconds]
zipace has joined #ruby
tiff has joined #ruby
<Rudolph> can somebody tell me what im doing wrong with this Rakefile? https://clbin.com/AsBTv I would have expected this to print release: https://clbin.com/e437e
tiff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cnsvc_ has quit [Ping timeout: 256 seconds]
AndBobsYourUncle has joined #ruby
cnsvc_ has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
braincrash has quit [Quit: bye bye]
r29v has quit [Quit: r29v]
CBebop has joined #ruby
braincrash has joined #ruby
masterasia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roshanavand1 has joined #ruby
roshanavand has quit [Ping timeout: 260 seconds]
roshanavand1 is now known as roshanavand
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
tiff has joined #ruby
tiff has quit [Client Quit]
cpruitt has quit [Remote host closed the connection]
dbz has quit [Remote host closed the connection]
RougeR has quit [Ping timeout: 246 seconds]
darkhanb has joined #ruby
dellavg_ has joined #ruby
meinside has joined #ruby
davidw has joined #ruby
Exuma has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
coltkirk has joined #ruby
hutch has joined #ruby
jottr has joined #ruby
bjpenn has joined #ruby
donofrio has joined #ruby
donofrio has quit [Remote host closed the connection]
kapil____ has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
<bjpenn> im an rvm user, because i can use different gemsets for the same version of ruby
<bjpenn> kind of like virtualenvs for python
cats has quit [Ping timeout: 246 seconds]
s3nd1v0g1us has joined #ruby
<bjpenn> but the problem is vscode doesn't really support gemsets
<bjpenn> im wodnering how you guys debug your code?
<bjpenn> do you guys use IDEs? (for code completion, debugging)
<bjpenn> im new to ruby, and would love to hear what you guys do
cgfbee has quit [Read error: Connection reset by peer]
Inline has quit [Quit: Leaving]
dbz has joined #ruby
dellavg_ has quit [Ping timeout: 244 seconds]
cats has joined #ruby
davidw has quit [Ping timeout: 246 seconds]
<WA9ACE> most of the people I know just use vim and pry https://github.com/pry/pry
cgfbee has joined #ruby
dbz has quit [Ping timeout: 244 seconds]
Exuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has joined #ruby
hutch has quit [Ping timeout: 244 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rudolph has quit [Ping timeout: 250 seconds]
<bjpenn> wow vim?
<bjpenn> i wouldnt be opposed to that, but navigating large projects with vim seems kind of difficult
<bougyman> It's not
<bougyman> Just gotta choose plugins that fit you.
<bougyman> Personally I like ctrlspace.
houhoulis has quit [Remote host closed the connection]
_whitelogger has joined #ruby
Exuma has joined #ruby
aupadhye has joined #ruby
Exuma has quit [Client Quit]
endemic has quit [Ping timeout: 250 seconds]
graphene has quit [Read error: Connection reset by peer]
endemic has joined #ruby
Rudolph has joined #ruby
reber has joined #ruby
reber has quit [Remote host closed the connection]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
za1b1tsu has joined #ruby
<bjpenn> bougyman: have you ever used an IDE though?
<bjpenn> bougyman: or did you just always start out with vim
<bjpenn> so kind of gotten used to it
jcarl43 has joined #ruby
Rudolph has quit [Ping timeout: 268 seconds]
jottr has joined #ruby
JoshS has joined #ruby
neuraload has joined #ruby
reber has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
Puffball has quit [Remote host closed the connection]
dbz has joined #ruby
dbz_ has joined #ruby
aufi has joined #ruby
dinfuehr has quit [Ping timeout: 272 seconds]
dinfuehr_ has joined #ruby
dbz has quit [Ping timeout: 246 seconds]
stooj has quit [Quit: ZNC 1.7.0 - https://znc.in]
rippa has joined #ruby
stooj has joined #ruby
masterasia has joined #ruby
Rudolph has joined #ruby
clemens3_ has joined #ruby
dinfuehr_ has quit [Ping timeout: 250 seconds]
dinfuehr has joined #ruby
reber has quit [Remote host closed the connection]
bjpenn has quit [Ping timeout: 268 seconds]
dinfuehr has quit [Ping timeout: 244 seconds]
dbz_ has quit [Remote host closed the connection]
dinfuehr has joined #ruby
themsay has quit [Ping timeout: 268 seconds]
marz_d`ghostman has joined #ruby
<marz_d`ghostman> Is it possible to bundle a bin in your app not just gem?
fredmorcos has joined #ruby
coderphive has quit [Remote host closed the connection]
coderphive has joined #ruby
blackmesa has joined #ruby
keden has joined #ruby
blackmesa1 has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
DTZUZO has quit [Ping timeout: 272 seconds]
cnsvc_ has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
cd has quit [Remote host closed the connection]
zipace has quit [Ping timeout: 268 seconds]
cd has joined #ruby
jthomas has joined #ruby
roshanavand has quit [Quit: Gone planting!]
zipace has joined #ruby
deathwishdave has joined #ruby
jthomas has quit [Ping timeout: 245 seconds]
blackmesa1 has quit [Ping timeout: 250 seconds]
jmcgnh has quit [Ping timeout: 250 seconds]
venmx has joined #ruby
jmcgnh has joined #ruby
lxsameer has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
yasserhussain111 has joined #ruby
yasserhussain111 has left #ruby [#ruby]
Renich has joined #ruby
<marz_d`ghostman> I've uninstalled a package from my OS and reinstalled it but it appears to have triggered something that causes a lot of warning now like /.bundle/ruby/2.4.0/gems/sqlite3-1.3.13/lib/sqlite3/sqlite3_native.so: warning: already initialized constant SQLite3::Constants::Open::READONLY
<marz_d`ghostman> How do I fix it?
cnsvc_ has joined #ruby
aupadhye has quit [Ping timeout: 250 seconds]
Renich has quit [Remote host closed the connection]
fredmorcos has quit [Remote host closed the connection]
CustosLimen has joined #ruby
elphe has quit [Ping timeout: 246 seconds]
elphe has joined #ruby
yasserhussain111 has joined #ruby
neuraload has quit [Quit: This computer has gone to sleep]
yasserhussain111 has left #ruby [#ruby]
aupadhye has joined #ruby
deathwishdave has quit [Ping timeout: 250 seconds]
johnny56 has quit [Ping timeout: 272 seconds]
johnny56 has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.3]
Rudolph has quit [Ping timeout: 246 seconds]
dbz has joined #ruby
dbz has quit [Ping timeout: 250 seconds]
Rudolph has joined #ruby
Rudolph has quit [Ping timeout: 250 seconds]
roshanavand has joined #ruby
cnsvc_ has quit [Ping timeout: 256 seconds]
marz_d`ghostman has quit [Ping timeout: 256 seconds]
AJA4350 has joined #ruby
eb0t has quit [Ping timeout: 250 seconds]
phaul has joined #ruby
Rudolph has joined #ruby
neuraload has joined #ruby
eb0t has joined #ruby
ellcs has joined #ruby
gix has joined #ruby
<Iambchop> Rudolph: what shell are you using? https://robots.thoughtbot.com/how-to-use-arguments-in-a-rake-task
Rudolph has quit [Ping timeout: 272 seconds]
kapil____ has quit [Quit: Connection closed for inactivity]
ellcs has quit [Ping timeout: 268 seconds]
Ca1us is now known as Caius
keden has quit [Ping timeout: 240 seconds]
DTZUZO has joined #ruby
keden has joined #ruby
kapil____ has joined #ruby
lucasb has joined #ruby
s3nd1v0g1us has quit [Ping timeout: 246 seconds]
johnny56 has quit [Read error: Connection reset by peer]
elphe has quit [Ping timeout: 250 seconds]
ixti has quit [Quit: WeeChat 2.3]
keanny479 has joined #ruby
eminencehc has joined #ruby
jthomas has joined #ruby
<keanny479> Hi
<keanny479> i have the following exercise to achieve : https://pastebin.com/ALzLGr9v
<ruby[bot]> keanny479: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
jthomas has quit [Ping timeout: 240 seconds]
<keanny479> i have the following exercise to achieve, i provided a solution, but Quote.random is not complete, anyone can help me ?
<keanny479> see https://dpaste.de/urTB
ellcs has joined #ruby
<phaul> is pushing data onto class variable in .new explicitly required by the exercise? It really smells to me..
reber has joined #ruby
<phaul> otherwise stick a .inspect on it, and it will include instance variables
<keanny479> thank's phaul! all was there :)
keanny479 has quit [Quit: Page closed]
cnsvc_ has joined #ruby
elphe has joined #ruby
Rudolph has joined #ruby
mostlybadfly has joined #ruby
rubydoc has quit [Remote host closed the connection]
themsay has joined #ruby
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ruby
rubydoc has joined #ruby
aupadhye has quit [Ping timeout: 250 seconds]
johnny56 has joined #ruby
TomyWork has joined #ruby
<TomyWork> hi
elphe has quit [Ping timeout: 250 seconds]
elphe has joined #ruby
lxsameer has quit [Ping timeout: 272 seconds]
perique has joined #ruby
<phaul> hi, TomyWork
GodFather has joined #ruby
<TomyWork> are you aware of a ruby lib capable of dealing with asn.1 indefinite-length structures?
<TomyWork> reading and writing
<TomyWork> specifically i want to convert all indefinite-length structures to definite-length structures
lxsameer has joined #ruby
blackmesa1 has joined #ruby
lxsameer has quit [Ping timeout: 250 seconds]
cnsvc_ has quit [Ping timeout: 256 seconds]
aupadhye has joined #ruby
masterasia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dinfuehr has quit [Ping timeout: 250 seconds]
dinfuehr has joined #ruby
elphe has quit [Ping timeout: 246 seconds]
lxsameer has joined #ruby
GodFather has quit [Ping timeout: 250 seconds]
reber has quit [Remote host closed the connection]
amelliaa has joined #ruby
conta has quit [Ping timeout: 250 seconds]
alan_w has joined #ruby
profetes has joined #ruby
krawchyk has joined #ruby
cd has quit [Quit: cd]
arcaos has joined #ruby
keden has quit [Ping timeout: 250 seconds]
arcaos has quit [Remote host closed the connection]
keden has joined #ruby
Rudolph has quit [Quit: WeeChat 2.2]
dbugger_ has joined #ruby
Rapture has joined #ruby
agent_white has joined #ruby
hurricanehrndz has quit [Ping timeout: 268 seconds]
agent_white has quit [Client Quit]
krawchyk has quit [Read error: Connection reset by peer]
aupadhye has quit [Remote host closed the connection]
hurricanehrndz has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
dbugger_ is now known as Dbugger
cnsvc_ has joined #ruby
Inline has joined #ruby
polishdub has joined #ruby
jthomas has joined #ruby
neuraload has quit [Read error: Connection reset by peer]
neuraload has joined #ruby
dinfuehr has quit [Ping timeout: 250 seconds]
dinfuehr has joined #ruby
megamos has joined #ruby
cnsvc_ has quit [Ping timeout: 256 seconds]
neuraload has quit [Quit: This computer has gone to sleep]
akaiiro has joined #ruby
dinfuehr has quit [Ping timeout: 246 seconds]
hutch has joined #ruby
dinfuehr has joined #ruby
megamos has quit [Ping timeout: 252 seconds]
davidw has joined #ruby
dinfuehr has quit [Ping timeout: 268 seconds]
dinfuehr has joined #ruby
aufi has quit [Ping timeout: 250 seconds]
dinfuehr has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
irdr has quit [Remote host closed the connection]
dinfuehr has quit [Ping timeout: 250 seconds]
dinfuehr_ has joined #ruby
akem has joined #ruby
chouhoulis has joined #ruby
dinfuehr_ has quit [Ping timeout: 272 seconds]
dinfuehr has joined #ruby
conta has joined #ruby
megamos has joined #ruby
chouhoulis has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
elphe has joined #ruby
conta1 has joined #ruby
cow[away] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has quit [Ping timeout: 268 seconds]
conta1 is now known as conta
chouhoulis has quit [Ping timeout: 268 seconds]
elphe has quit [Ping timeout: 244 seconds]
cow[moo] has joined #ruby
akem has quit [Remote host closed the connection]
akem has joined #ruby
ellcs has quit [Ping timeout: 252 seconds]
impermanence has joined #ruby
ellcs has joined #ruby
keden has quit [Ping timeout: 244 seconds]
nowhere_man has quit [Ping timeout: 252 seconds]
cow[moo] is now known as cow[away]
kapil____ has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
za1b1tsu has quit [Ping timeout: 272 seconds]
keden has joined #ruby
samort7 has joined #ruby
dinfuehr has quit [Ping timeout: 245 seconds]
krawchyk has joined #ruby
dinfuehr has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maryo has joined #ruby
ellcs has quit [Ping timeout: 250 seconds]
ixti has joined #ruby
bga57 has quit [Ping timeout: 245 seconds]
keden has quit [Quit: WeeChat 2.3]
jcarl43 has joined #ruby
GodFather has joined #ruby
horst has quit [Read error: Connection reset by peer]
horst has joined #ruby
hutch has quit [Ping timeout: 245 seconds]
hutch has joined #ruby
nowhere_man has joined #ruby
conta has quit [Quit: conta]
akem has quit [Ping timeout: 268 seconds]
reber has joined #ruby
reber has quit [Remote host closed the connection]
darkhanb has joined #ruby
megamos has quit [Ping timeout: 252 seconds]
orbyt_ has joined #ruby
cnsvc_ has joined #ruby
gix has quit [Disconnected by services]
dbz has joined #ruby
jthomas1 has joined #ruby
cthulchu_ has quit [Ping timeout: 246 seconds]
jthomas has quit [Ping timeout: 272 seconds]
nowhere_man has quit [Ping timeout: 245 seconds]
cthulchu_ has joined #ruby
\void has joined #ruby
cthulchu_ has quit [Ping timeout: 268 seconds]
GodFather has quit [Ping timeout: 252 seconds]
irdr has joined #ruby
maryo has quit [Quit: Leaving]
reber has joined #ruby
elphe has joined #ruby
elphe has quit [Ping timeout: 250 seconds]
AJA4350 has quit [Remote host closed the connection]
cthulchu has joined #ruby
ModusPwnens has quit [Quit: Page closed]
masterasia has joined #ruby
cthulchu has quit [Ping timeout: 272 seconds]
lxsameer has quit [Ping timeout: 246 seconds]
cthulchu has joined #ruby
lytol has joined #ruby
hutch has quit [Ping timeout: 250 seconds]
code_zombie has joined #ruby
cthulchu has quit [Ping timeout: 268 seconds]
cd has joined #ruby
hutch has joined #ruby
venmx has quit [Ping timeout: 246 seconds]
Puffball has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
hutch has quit [Ping timeout: 268 seconds]
elphe has joined #ruby
cthulchu has joined #ruby
themsay has quit [Ping timeout: 250 seconds]
conta has joined #ruby
profetes_ has joined #ruby
profetes has quit [Read error: Connection reset by peer]
cthulchu has quit [Ping timeout: 246 seconds]
ua has quit [Ping timeout: 245 seconds]
ua has joined #ruby
cthulchu has joined #ruby
masterasia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Fernando-Basso has joined #ruby
masterasia has joined #ruby
cthulchu has quit [Ping timeout: 250 seconds]
cthulchu has joined #ruby
fredolinhares has joined #ruby
amelliaa has quit [Quit: -]
conta has quit [Quit: conta]
zipace has quit [Ping timeout: 250 seconds]
elphe has quit [Ping timeout: 246 seconds]
GodFather has joined #ruby
elphe has joined #ruby
cajone has quit [Remote host closed the connection]
elphe has quit [Ping timeout: 240 seconds]
jcarl43 has quit [Ping timeout: 245 seconds]
cthulchu has quit [Ping timeout: 250 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
gsingh93 has quit [Excess Flood]
gsingh93 has joined #ruby
SeepingN has joined #ruby
anothertorusr has quit [Ping timeout: 245 seconds]
cthulchu has joined #ruby
anothertorusr has joined #ruby
PasNox has quit [Remote host closed the connection]
RougeR has joined #ruby
Hoffman has joined #ruby
elphe has joined #ruby
<SeepingN> bzzzzzz
<SeepingN> To make Medium work, we log user data and share it with service providers.
PasNox has joined #ruby
<WA9ACE> not to rag on his blog post, but I do dislike medium a fair amount
<Hoffman> heya! I have 4 files at this pastebin, along with a console run: https://pastebin.com/xpEWLat8 . I expected line 57 to read "Fake information returned", as I thought lines 37 to 39 would override getInfo(). Obviously this is not the case, so how might I achieve my goal of stubbing out a function called by initialize?
<ruby[bot]> Hoffman: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<Zarthus> it's been a while since i've seen camelCase ruby
<Hoffman> I'm a ruby nuby, so please forgive me carrying some habits from other langs :)
kapil____ has joined #ruby
<Zarthus> i'm confused, i don't see anywhere your code is using Creatures::Animal
cthulchu has quit [Ping timeout: 244 seconds]
<Hoffman> Zarthus: line 20
<Zarthus> ah, right
<Hoffman> its not actually using the object for anything, because I tried to simplify the issue down to barebones
<Hoffman> to the core of the question
<Zarthus> i see the problem now, can't say I have too much experience with stubs in ruby though
<Zarthus> I wouldn't necessarily recommend printing things from a constructor, though
perique has quit [Quit: Textual IRC Client: www.textualapp.com]
Dbugger has quit [Remote host closed the connection]
<Hoffman> Zarthus: yeah the prints just represent more complex logic
<Zarthus> Hoffman: my first instinct would be to try not printing from the constructor, and checking an assert for equality on animal.getInfo directly
<Zarthus> though i don't know how thi swould play into chef run, at least you can ensure the stub is working correctly
<Hoffman> Zarthus: the print needs to be there because the thing it replaces runs during construction, and I want it to not run
<Hoffman> Zarthus: imagine getInfo calls `search()`, which I do not want run during the test, because it cant
reber has quit [Remote host closed the connection]
<Zarthus> Hoffman: It's more about working up to the problem, find out which part breaks the stub - not a permanent suggestion
<Zarthus> how you solve the problem, once you've determined what it is, is up to you
cthulchu has joined #ruby
cnsvc_ has quit [Ping timeout: 256 seconds]
Fernando-Basso has quit [Ping timeout: 240 seconds]
masterasia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Hoffman> Zarthus: when you do that, does it return different resu;ts?
<Hoffman> results*
<Zarthus> I haven't bothered setting up your code stack, but from reading the documentation the stub's code is functional
<Hoffman> yeah, I just dont wanna make the example more complex
<Hoffman> the current status is as simple as it gets -- the original getInfo() function is getting called, and I want to figure out how to make it *not* get called
<Hoffman> if possible
<Zarthus> i don't know if it's about as simple as it can get; i don't access the necessary chef knowledge to know what happens in L43
cthulchu has quit [Ping timeout: 240 seconds]
<Zarthus> but i'm nearly confident that something like Creatures::Animal.new.getInfo would eq 'Fake information returned'
s3nd1v0g1us has joined #ruby
masterasia has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Hoffman> Zarthus: right, cuz that's calling a static method procedurally vs within an object instance
ramfjord has joined #ruby
ramfjord has quit [Quit: leaving]
ramfjord has joined #ruby
elphe has quit [Ping timeout: 246 seconds]
cnsvc_ has joined #ruby
hutch has joined #ruby
nowhere_man has joined #ruby
gix has joined #ruby
blackmesa1 has quit [Quit: WeeChat 2.3]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
lucasb has quit [Quit: Connection closed for inactivity]
SeepingN has quit [Ping timeout: 244 seconds]
profetes_ has quit [Ping timeout: 246 seconds]
kent\n has quit [Ping timeout: 250 seconds]
SeepingN has joined #ruby
kent\n has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
themsay has joined #ruby
kent\n has quit [Ping timeout: 250 seconds]
kent\n has joined #ruby
themsay has quit [Ping timeout: 244 seconds]
ellcs has joined #ruby
kent\n has quit [Ping timeout: 246 seconds]
themsay has joined #ruby
kent\n has joined #ruby
themsay has quit [Remote host closed the connection]
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
Exuma has joined #ruby
lxsameer has joined #ruby
kent\n has quit [Ping timeout: 246 seconds]
cthulchu has joined #ruby
elphe has joined #ruby
kent\n has joined #ruby
orbyt_ has joined #ruby
elphe has quit [Ping timeout: 268 seconds]
krawchyk has quit [Ping timeout: 250 seconds]
orbyt_ has quit [Ping timeout: 246 seconds]
lxsameer has quit [Ping timeout: 250 seconds]
Freshnuts has joined #ruby
druonysus has quit [Ping timeout: 246 seconds]
Xenosine has joined #ruby
Freshnuts has quit [Max SendQ exceeded]
Freshnuts has joined #ruby
gix has quit [Ping timeout: 240 seconds]
AJA4350 has joined #ruby
cthulchu has quit [Ping timeout: 268 seconds]
alan_w has quit [Ping timeout: 246 seconds]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 246 seconds]
go|dfish has quit [Ping timeout: 246 seconds]
elphe has joined #ruby
ramfjord has joined #ruby
SeepingN has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
polishdub has quit [Quit: leaving]
tiff has joined #ruby
tiff has quit [Client Quit]
tiff has joined #ruby
cow[away] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
s3nd1v0g1us has quit [Ping timeout: 252 seconds]
cats has quit [Ping timeout: 240 seconds]
s3nd1v0g1us has joined #ruby
cow[moo] has joined #ruby
cthulchu has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
cow[moo] has quit [Client Quit]
clemens3_ has quit [Ping timeout: 240 seconds]
cats has joined #ruby
cow[moo] has joined #ruby
cthulchu has quit [Ping timeout: 250 seconds]
Exuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bambanx has joined #ruby
RougeR has quit [Ping timeout: 246 seconds]
RiPuk has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RougeR has joined #ruby
s3nd1v0g1us has quit [Quit: WeeChat 2.2]
AJA4350 has quit [Quit: AJA4350]
venmx has joined #ruby
masterasia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cthulchu has joined #ruby