<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]
<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.
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]
<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 ?
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
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