<Bish>
the mail gem made this 2 addresses.. and it resulted in multiple sender addresses
<Bish>
man that was hard to find
<Bish>
canton7: i expected the mail gem to encode that
<Bish>
canton7: slighty more? u mean the flaten thing?
gregf_ has quit [Ping timeout: 256 seconds]
<canton7>
yeah, flattens and provides an empty array as the default value
bikram_ has quit [Quit: Lost terminal]
nertzy has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
neuraload has joined #ruby
venmx has joined #ruby
neuraload has quit [Quit: Leaving]
drale2k_ has joined #ruby
drale2k_ has quit [Client Quit]
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
am0123 has quit [Ping timeout: 260 seconds]
lucasb has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
jenrzzz has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
uplime has joined #ruby
deathwishdave has joined #ruby
<deathwishdave>
morning
<deathwishdave>
I am looking for a rails app that can handle registration, licensing, authentication etc for a desktop application
<deathwishdave>
anyone know if such a thing exists? I guess i'm not google the right terms
status402 has quit [Read error: Connection reset by peer]
status402_ has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
<canton7>
deathwishdave, things like that rarely come out-of-the-box, since "registration" is a word which means something slightly different to everyone which puts it in their requirements...
<canton7>
deathwishdave, you'll find tools which help you to build a rails app which can do those things, though
<deathwishdave>
can
<deathwishdave>
canton7 makes sense, thanks
<deathwishdave>
canton7 we were building an in house system, 99% of the way there, and the dev behind it has been taken seriously ill
za1b1tsu has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 258 seconds]
keden has joined #ruby
uplime has quit [Ping timeout: 250 seconds]
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
deathwishdave has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
SqREL has joined #ruby
jenrzzz has joined #ruby
uplime has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
am0123 has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4350 has joined #ruby
jenrzzz has joined #ruby
stryek has joined #ruby
status402_ has quit [Ping timeout: 258 seconds]
keden has quit [Ping timeout: 268 seconds]
keden has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
reber has joined #ruby
jcalla has joined #ruby
jenrzzz has joined #ruby
bmurt has joined #ruby
Aqo has quit [Quit: ChatZilla 0.9.92-rdmsoft [XULRunner 35.0.1/20150122214805]]
keden has quit [Quit: WeeChat 2.3]
status402 has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
uplime has quit [Ping timeout: 250 seconds]
am0123 has quit [Ping timeout: 258 seconds]
drale2k_ has joined #ruby
drale2k_ has quit [Client Quit]
aupadhye has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
alexterziev has joined #ruby
pvalena has joined #ruby
rippa has joined #ruby
jacksoow has quit [Quit: Saindo...]
eddof13 has joined #ruby
jacksoow has joined #ruby
uplime has joined #ruby
eddof13 has quit [Ping timeout: 268 seconds]
Inline has joined #ruby
uplime has quit [Ping timeout: 245 seconds]
rikkipitt has joined #ruby
drale2k_ has joined #ruby
drale2k_ has quit [Client Quit]
drale2k_ has joined #ruby
venmx has quit [Ping timeout: 258 seconds]
status402 has quit [Quit: status402]
status402 has joined #ruby
drale2k_ has quit [Client Quit]
drale2k_ has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
drale2k_ has quit [Client Quit]
uplime has joined #ruby
rikkipitt has quit [Quit: Leaving...]
conta has quit [Ping timeout: 245 seconds]
profetes has quit [Quit: Leaving]
drale2k_ has joined #ruby
chouhoulis has joined #ruby
uplime has quit [Ping timeout: 245 seconds]
GodFather has joined #ruby
Rapture has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
duderonomy has joined #ruby
jenrzzz has joined #ruby
am0123 has joined #ruby
status402 has quit [Remote host closed the connection]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Nicmavr has quit [Read error: Connection reset by peer]
chouhoulis has quit [Ping timeout: 268 seconds]
Nicmavr has joined #ruby
donofrio has joined #ruby
cow[moo] has joined #ruby
uplime has joined #ruby
conta has joined #ruby
conta has quit [Quit: conta]
conta has joined #ruby
drale2k_ has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
maufart__ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
pvalena has quit [Ping timeout: 250 seconds]
yebyen has joined #ruby
<yebyen>
Hi #ruby
<phaul>
hi yebyen
<yebyen>
hi phaul
jenrzzz has quit [Ping timeout: 252 seconds]
<yebyen>
I'm upgrading my stuff to 2.6 and I have a test that does: expect(BigDecimal).to receive(:new).with(any_args).at_least(:once).and_call_original
<yebyen>
the test is called "uses BigDecimal" and it's only there to verify that nobody decided to replace the implementation with float or something less safe
<yebyen>
and it doesn't work anymore because BigDecimal.new is deprecated, so we're calling BigDecimal like you're supposed to
<yebyen>
BigDecimal("1.5") for example
venmx has joined #ruby
<yebyen>
is there a way to capture that in rspec?
<yebyen>
i understand that BigDecimal(_,_) is a global method I guess?
<yebyen>
is that the same as calling it on Kernel? or instance of Kernel?
<phaul>
it is.
<yebyen>
ok, I'm on the right track then... so I tried:
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uplime has quit [Disconnected by services]
uplime60 is now known as uplime
am0123 has quit [Ping timeout: 246 seconds]
nchambers has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch has joined #ruby
marmotini_ has joined #ruby
A-cat has joined #ruby
A-cat has left #ruby ["Leaving"]
<yebyen>
phaul: should I report this to rspec? or are you already going to
tiff has joined #ruby
<phaul>
It's up to you, I am not going to.
<yebyen>
ok, i'll iterate on it for a day or so and see if i can find out more about what's going wrong before I bother anyone else with it
<yebyen>
thanks for the gist
<phaul>
the module_function line is not needed. simple instance_method reproduce the issue. The issue goes away if you remove the .and_call_original (as you said)
cthulchu has quit [Ping timeout: 260 seconds]
crankharder has joined #ruby
p1c0 has joined #ruby
davidw has joined #ruby
za1b1tsu has joined #ruby
<phaul>
what it fundamentally doesn't seem to like is the any_instance_of(module) .. yebyen I updated the gist, the commented line works, the uncommented line hangs
<yebyen>
aha well that makes sense because there is no instance
<yebyen>
but it's not intercepting at all if you say expect(Module).to receive
<yebyen>
or would you say that there is actually an instance of the kernel here wherever we're calling BigDecimal
Cybergeek has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
<phaul>
there is. Object includes kernel, and wherever you are that self inherits Object. That self is the instance
<yebyen>
hmm
<phaul>
so where the BigDecimal() call is in your code that self is the receiver
orbyt_ has joined #ruby
jenrzzz has joined #ruby
drale2k_ has joined #ruby
<phaul>
in fact this gives an idea. what happens if you say any_instance_of(Object) ?
<yebyen>
that works
reber has quit [Remote host closed the connection]
r29v has joined #ruby
<yebyen>
:thumbsup:
<phaul>
cool :)
chouhoulis has joined #ruby
KeyJoo has quit [Quit: KeyJoo]
<yebyen>
so what you have in the gist now works too
<yebyen>
that makes more sense and i think it's how i've been using rspec to test module functions
<yebyen>
(just pretend that it's an instance of the module)
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy has joined #ruby
\void has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
Dbugger has joined #ruby
BTRE has quit [Ping timeout: 246 seconds]
<phaul>
I would argue that testing builtin in classes like Object is not what you want. You have an object/code under test, that has some class right? Why not make that a double, and expect the BigDecimal directly on that?
<phaul>
a = MyClass.new; expect(a).to receive(:BigDecimal) ; a.calculate!
marmotini_ has quit [Ping timeout: 244 seconds]
<phaul>
ah, I see, you said it, you want to test that is does not override BigDecimal() and the method lookup bubbles up all the way to Kernel.
<phaul>
I would say that that is testing internal implementation detail, objects have the right to respond to methods whichever way they want, as sonlg as that response is good
chouhoulis has quit [Remote host closed the connection]
mikecmpb_ has quit [Quit: inabit. zz.]
<yebyen>
if i said that, it's not what i meant
<yebyen>
i just want to be sure that they're not deciding unilaterally that "bigdecimal is no longer needed"
<yebyen>
if they're going to do that, they're on the hook to remove the test that asserts "we used bigdecimal because it's safe" too
SqREL has quit [Remote host closed the connection]
<yebyen>
the expectation isn't on the object, the expectation is that we're calling a method BigDecimal
<yebyen>
(on what) was the question
<yebyen>
Object, not Kernel
<yebyen>
good enough for me
<yebyen>
*isn't on Object
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
clemens3 has quit [Quit: WeeChat 2.1]
orbyt_ has joined #ruby
cd has joined #ruby
* baweaver
wanders in
jenrzzz has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
jinie has joined #ruby
conta2 has joined #ruby
cthulchu has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
conta2 has quit [Ping timeout: 245 seconds]
<WA9ACE>
👋
<WA9ACE>
seeing your name reminds me I haven't checked ruby.social in a while
BTRE has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
conta has quit [Quit: conta]
am0123 has joined #ruby
d0liver has quit [Ping timeout: 246 seconds]
tdy has quit [Ping timeout: 246 seconds]
lytol_ has joined #ruby
lytol_ has quit [Remote host closed the connection]
tiff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
marmotini_ has joined #ruby
chouhoulis has joined #ruby
<phaul>
archlinux finally upgraded to 2.6 !
sanscoeur has joined #ruby
<phaul>
?hammertime
<phaul>
ah, ruby[bot] is on vacation
<up|ime>
half a month ain't too bad, especially during vacaiton time :P
jenrzzz has quit [Ping timeout: 246 seconds]
tdy has joined #ruby
eddof13 has joined #ruby
jenrzzz has joined #ruby
jinie has quit [Ping timeout: 258 seconds]
<mozzarella>
You know, I wish 3 / 2 returned a float, just like it does in python. Rounding division is almost never what I want, and I end up with .to_f all over my code.
<al2o3-cr>
use fdiv
catbusters has quit [Quit: Connection closed for inactivity]
<mozzarella>
I shouldn't have to
<al2o3-cr>
then what would use for integer division // ?
<phaul>
another thing is that maybe you need rational, floats are work of evil
<mozzarella>
al2o3-cr: // or .div (though rdiv would be a better name)
jenrzzz has quit [Ping timeout: 272 seconds]
tdy has quit [Ping timeout: 246 seconds]
<phaul>
there is a lot of things unsafe on floats that catches ppl offguard
<mozzarella>
such as what?
sauvin has quit [Read error: Connection reset by peer]
<phaul>
never tried such things, but its so hard for me to beleive that you are going to be CPU limited
<Rich_Morin_>
Ruby is a lovely language, but concurrency is not one of its strong suits.
<baweaver>
It's not, but for that type of task it's irrelevant
<baweaver>
It's also likely against the channel's rules to discuss how that might work.
<Rich_Morin_>
On another note, I haven't been able to find a way to use regexen on text strings which contain arbitrary byte values. I've got some text that is mostly ASCII, but has some wonky 8-bit characters I'd like to discard. When I try to do this with gsub, it complains massively.