baojg has quit [Remote host closed the connection]
baojg has joined #ruby
gueorgui has joined #ruby
gueorgui_ has quit [Ping timeout: 240 seconds]
mniip has quit [Ping timeout: 600 seconds]
mniip has joined #ruby
sickdyd has joined #ruby
probonic has quit [Ping timeout: 240 seconds]
probonic has joined #ruby
Secret-Fire has quit [Remote host closed the connection]
Secret-Fire has joined #ruby
mnathani has quit []
chihhsin has joined #ruby
thecoffemaker has quit [Ping timeout: 240 seconds]
code_zombie has quit [Read error: Connection reset by peer]
code_zombie_ has joined #ruby
thecoffemaker has joined #ruby
cd has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
chalkmonster has joined #ruby
aandrew has joined #ruby
DaRock has joined #ruby
mnathani has joined #ruby
pwnd_sfw has quit [Ping timeout: 240 seconds]
braincra- has quit [Ping timeout: 260 seconds]
Argorok has left #ruby [#ruby]
znz_jp has quit [Quit: kill -QUIT $$]
znz_jp has joined #ruby
gueorgui has quit [Ping timeout: 240 seconds]
<zxq2>
if i'm writing unit tests (rspecs) for a method that invokes a private method and i want to check the result value of the private methods when it's invoked by the method i'm testing, what's the best way to accomplish this? a stub that wraps the private method and check the return value?
bruce_lee has quit [Ping timeout: 240 seconds]
dnadev2_ has quit [Ping timeout: 240 seconds]
kiroumaru has joined #ruby
drincruz has joined #ruby
meinside has joined #ruby
memcorrupt has quit [Ping timeout: 256 seconds]
thecoffemaker has quit [Ping timeout: 240 seconds]
thecoffemaker has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
aandrew has left #ruby [#ruby]
cuerbot has joined #ruby
elcuervo has quit [Ping timeout: 260 seconds]
ChmEarl has quit [Quit: Leaving]
memcorrupt has joined #ruby
memcorrupt has quit [Changing host]
memcorrupt has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.9]
drincruz has quit [Ping timeout: 265 seconds]
<ule>
zxq2: If the idea is test the private method, I'd test the public interface that calls that private method. If your idea is test another method using the result of this private method, yeah stub the method's call and keep in mind that doesn't make sense to test this stub :P
thecoffemaker has quit [Ping timeout: 240 seconds]
thecoffemaker has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
Secret-Fire has quit [Remote host closed the connection]
Secret-Fire has joined #ruby
thecoffemaker has quit [Ping timeout: 256 seconds]
akem has quit [Ping timeout: 260 seconds]
thecoffemaker has joined #ruby
akem has joined #ruby
gix has joined #ruby
MasterNayru has quit [Remote host closed the connection]
akem has quit [Quit: Leaving]
gix- has quit [Ping timeout: 246 seconds]
MasterNayru has joined #ruby
darris has quit [Ping timeout: 244 seconds]
darris has joined #ruby
flak has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
howdoi has joined #ruby
blender_ has quit [Ping timeout: 256 seconds]
akem has joined #ruby
blender_ has joined #ruby
kashike has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
johnny56 has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
johnny56 has joined #ruby
KnownSyntax has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
KnownSyntax has joined #ruby
johnny56 has quit [Ping timeout: 240 seconds]
chalkmonster has joined #ruby
bocaneri has joined #ruby
baojg has quit [Remote host closed the connection]
kiroumaru has quit [Remote host closed the connection]
baojg has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
johnny56 has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
code_zombie_ has quit [Quit: Leaving]
jenrzzz has joined #ruby
Tempesta has quit [Quit: See ya!]
meimeix has quit [Ping timeout: 264 seconds]
Tempesta has joined #ruby
timwis has quit [Ping timeout: 244 seconds]
d0liver has quit [Ping timeout: 240 seconds]
grvgr has quit [Ping timeout: 260 seconds]
fowl_ has quit [Ping timeout: 260 seconds]
kwilczynski has quit [Ping timeout: 240 seconds]
d0liver has joined #ruby
jerme__ has joined #ruby
en10n has quit [Ping timeout: 240 seconds]
kwilczynski has joined #ruby
baojg has quit [Remote host closed the connection]
en10n has joined #ruby
timwis has joined #ruby
ReinH_ has joined #ruby
grvgr has joined #ruby
ReinH has quit [Ping timeout: 272 seconds]
jerme_ has quit [Ping timeout: 272 seconds]
ReinH_ is now known as ReinH
baojg has joined #ruby
jerme__ is now known as jerme_
fowl_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skape has quit [Quit: Connection closed for inactivity]
Furai has quit [Quit: WeeChat 2.9]
Furai has joined #ruby
Mrgoose has quit [Ping timeout: 265 seconds]
kwilczynski has quit [Ping timeout: 272 seconds]
kwilczynski has joined #ruby
johnny56 has quit [Ping timeout: 240 seconds]
Mrgoose has joined #ruby
dviola has quit [Ping timeout: 240 seconds]
Mrgoose has quit [Ping timeout: 256 seconds]
dfucci has joined #ruby
Mrgoose has joined #ruby
johnny56 has joined #ruby
dviola has joined #ruby
dfucci has quit [Ping timeout: 265 seconds]
dfucci has joined #ruby
_whitelogger has joined #ruby
dfucci_ has joined #ruby
dfucci has quit [Ping timeout: 240 seconds]
dfucci_ has quit [Ping timeout: 260 seconds]
jeromelanteri has quit [Remote host closed the connection]
dfucci has joined #ruby
jeromelanteri has joined #ruby
Rudd0 has quit [Ping timeout: 240 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
dfucci has quit [Read error: Connection reset by peer]
dfucci has joined #ruby
<jhass>
zxq2: put differently, you shouldn't test private methods but consider them an implementation detail to the public method(s) they're called from. Think about how they influence the behaviour of those public methods and test for that. If that involves a lot of repetition, that's what shared examples are for
marens has quit [Read error: Connection reset by peer]
imode has quit [Ping timeout: 240 seconds]
marens has joined #ruby
donofrio_ has joined #ruby
vondruch has joined #ruby
donofrio has quit [Ping timeout: 265 seconds]
baojg has quit [Remote host closed the connection]
<leitz>
Well, what I could comprehend was interesting. Much of it was over my head.
TCZ has joined #ruby
dnadev2_ has joined #ruby
dnadev2_ has quit [Quit: Leaving]
RiPuk has quit [Ping timeout: 240 seconds]
RiPuk has joined #ruby
RiPuk has quit [Ping timeout: 265 seconds]
RiPuk has joined #ruby
sickdyd has joined #ruby
ChmEarl has joined #ruby
kiroumaru has joined #ruby
sickdyd has quit [Ping timeout: 260 seconds]
kiro has joined #ruby
kiroumaru has quit [Remote host closed the connection]
xco has joined #ruby
dualfade has quit [Ping timeout: 260 seconds]
dualfade has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
stryek has joined #ruby
GodFather has joined #ruby
johnny56 has quit [Ping timeout: 256 seconds]
<nakilon>
Gemfile.lock in my gem folder does not update
<nakilon>
I do `bundle update` and it always says that it has updated the gem from version 6 to version 9, but in Gemfile.lock it's still 6, and because of that it takes wrong version of a dependency and fails further in runtime
<nakilon>
"Using directlink 0.0.9.2 (was 0.0.6.1) from source at `.`" but `cat Gemfile.lock` => "PATH remote: . directlink (0.0.6.1) ..."
johnny56 has joined #ruby
elcuervo has joined #ruby
<nakilon>
pretty sure if I delete the Gemfile.lock it will update it correctly but probably there should be some command that I don't know about
johnny56 has quit [Read error: Connection reset by peer]
Furai has quit [Quit: WeeChat 2.9]
jenrzzz has joined #ruby
Furai has joined #ruby
nicholaslyang has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
braincrash has joined #ruby
sickdyd has joined #ruby
oncall-pokemon has joined #ruby
johnny56 has joined #ruby
sickdyd has quit [Ping timeout: 240 seconds]
johnny56 has quit [Read error: Connection reset by peer]
hiroaki has joined #ruby
nicholaslyang has joined #ruby
johnny56 has joined #ruby
PikaChokeMe has joined #ruby
<PikaChokeMe>
is there a way using strftime to get the ".000" offset for UTC time?
<PikaChokeMe>
%z seems to give me like +0900 but I'm trying to feed these as strings into an MSSQL database as like ".900" or in this case ".000" for UTCC
<havenwood>
PikaChokeMe: Show a full example of the format you want?
<PikaChokeMe>
2020-09-02 19:57:37.000 or 2020-09-02 19:57:37.TIMEZONEOFFSET
alfiemax has quit [Ping timeout: 256 seconds]
<jhass>
wow that's misleading to be an offset rather than milliseconds
<jhass>
how would a negative offset look in this format?
<Iarfen>
how I can use rbenv to change the version of ruby?
<Iarfen>
I need to use version 2.2.2
<PikaChokeMe>
We were handing the DB strings with 2020-09-02 19:57:37 and it was adding 6 hours to convert them to UTC... then we fed it 2020-09-02 19:57:37.000 and it seemed to accept that we gave it what it wanted as it was.
<Iarfen>
bougyman: I've already read that, it doesn't work with export
<Iarfen>
I've executed export RBENV_VERSION=2.2.2 but doesn't changes anything
<bougyman>
what do you mean "it doesn't work with export?
<PikaChokeMe>
Yeah... now I'm confused
<bougyman>
Iarfen: does it call in sick, flip you the bird? Define "doesn't work"
<Iarfen>
bougyman: I've used export but the ruby version hasn't changed
<jhass>
PikaChokeMe: is +6 or -6 your application server local time maybe? Could be that your application was storing as UTC but parsing as local time or vice versa
<bougyman>
Iarfen: what version does it use?
<Iarfen>
bougyman: it's using version 2.7.1
hassox has joined #ruby
<bougyman>
% RBENV_VERSION=2.2.2 rbenv which ruby
<bougyman>
rbenv: version `2.2.2' is not installed (set by RBENV_VERSION environment variable)
<bougyman>
what does that return for you?
<Iarfen>
it returns to me the same as you
<bougyman>
that means you don't have 2.2.2 installed
<Iarfen>
ok, thanks
<Iarfen>
bougyman: now rbenv gives me BUILD FAILED, do you know what can be done?
<bougyman>
Iarfen: it should give a path to a log file from the build that you can examine.
<bougyman>
It's likely that you don't have build dependencies.
jenrzzz_ has joined #ruby
<Iarfen>
bougyman: how I know what has caused the error? The log file is big
<bougyman>
Iarfen: I start at the bottom and read it backwards.
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bougyman>
/usr/include/openssl/asn1_mac.h:10:2: error: #error "This file is obsolete; please update your software." #error "This file is obsolete; please update your software."
<bougyman>
that seems pretty clear to me.
<Iarfen>
bougyman: what I should update?
dfucci has quit [Ping timeout: 256 seconds]
Frobozz has joined #ruby
Frobozz has quit [Client Quit]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Iarfen has quit [Remote host closed the connection]
alfiemax has joined #ruby
jenrzzz_ has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
sgen has quit [Ping timeout: 256 seconds]
alfiemax has quit [Ping timeout: 258 seconds]
yasumi2136_ has joined #ruby
yasumi2136 has quit [Ping timeout: 260 seconds]
gigetoo has quit [Ping timeout: 264 seconds]
TCZ has quit [Quit: Leaving]
leitz has quit [Quit: Leaving]
sickdyd has joined #ruby
gigetoo has joined #ruby
sickdyd has quit [Ping timeout: 246 seconds]
ellcs1 has joined #ruby
edwardly has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
alfiemax has joined #ruby
sgen has joined #ruby
pabs has quit [Ping timeout: 264 seconds]
braincrash has quit [Ping timeout: 260 seconds]
imode has joined #ruby
code_zombie has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bambanx has joined #ruby
socrampy has joined #ruby
<socrampy>
Hello I'm trying to learn rails, I'm setting up this app (https://github.com/fulcrum-agile/fulcrum) to test and learn with it. When running bundle exec rake fulcrum:setup db:setup I get this error https://pastebin.com/kTszEmnz and I can't figure out what the problem is. Can I get some pointers? Thanks
<ruby[bot]>
socrampy: 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
dualfade has quit [Quit: leaving]
bvdw has quit [*.net *.split]
bhaak has quit [*.net *.split]
zofrex has quit [*.net *.split]
Flonk has quit [*.net *.split]
TvL2386 has quit [*.net *.split]
noizex has quit [*.net *.split]
jmcgnh has quit [*.net *.split]
tekk has quit [*.net *.split]
mahlon has quit [*.net *.split]
zxq2 has quit [*.net *.split]
thebetra1 has quit [*.net *.split]
kaleido has quit [*.net *.split]
daemonwrangler has quit [*.net *.split]
IsoLinCHiP has quit [*.net *.split]
xmopx has quit [*.net *.split]
aef has quit [*.net *.split]
bhaak has joined #ruby
towo_ has joined #ruby
Axy has joined #ruby
kaleido_ has joined #ruby
TvL2386 has joined #ruby
daemonwrangler has joined #ruby
thebetra1 has joined #ruby
bvdw has joined #ruby
tekk has joined #ruby
mahlon has joined #ruby
xmopx has joined #ruby
zofrex has joined #ruby
Flonk has joined #ruby
noizex has joined #ruby
ruby[bot] has quit [Read error: Connection reset by peer]
Rudd0 has joined #ruby
ruby[bot] has joined #ruby
Mia has quit [Ping timeout: 256 seconds]
aef has joined #ruby
skape has joined #ruby
rubydoc has quit [Ping timeout: 265 seconds]
phaul has quit [Ping timeout: 265 seconds]
i9zO5AP has quit [Ping timeout: 240 seconds]
sickdyd has joined #ruby
FrankyCyborg has joined #ruby
i9zO5AP has joined #ruby
jmcgnh has joined #ruby
sickdyd has quit [Ping timeout: 260 seconds]
dualfade has joined #ruby
tw1sted has joined #ruby
socrampy has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 265 seconds]
ellcs1 has quit [Ping timeout: 240 seconds]
sgen has quit [Ping timeout: 256 seconds]
TCZ has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
rubydoc has joined #ruby
phaul has joined #ruby
i9zO5AP has quit [Ping timeout: 240 seconds]
xco has joined #ruby
akem_ has joined #ruby
akem has quit [Ping timeout: 258 seconds]
i9zO5AP has joined #ruby
Axy has quit [Read error: Connection reset by peer]
alexherbo2 has quit [Ping timeout: 256 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
pabs has joined #ruby
kaleido_ is now known as kaleido
kaleido has joined #ruby
kaleido has quit [Changing host]
sgen has joined #ruby
schne1der has quit [Quit: schne1der]
IsoLinCHiP has joined #ruby
dfucci has joined #ruby
Rudd0 has quit [Remote host closed the connection]
dfucci has quit [Ping timeout: 246 seconds]
DaRock has joined #ruby
Net has quit [Read error: Connection reset by peer]
Net has joined #ruby
stryek has quit [Quit: Connection closed for inactivity]
donofrio has joined #ruby
tumdum has quit [Remote host closed the connection]
akem_ is now known as akem
sickdyd has joined #ruby
sickdyd has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
bhaak has quit [Ping timeout: 260 seconds]
bhaak has joined #ruby
TCZ has quit [Quit: Leaving]
orbyt_ has joined #ruby
drincruz has quit [Ping timeout: 246 seconds]
TCZ has joined #ruby
nicholaslyang has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jcronk has quit [Remote host closed the connection]