<hightower3>
Hey, is there a way to output a backspace into a string and effectively remove the last char?
<baweaver>
hightower3: any particular reason you'd want to?
<hightower3>
I am not looking for #chop or so... I'm looking for something like "string #{exp}", where 'exp' would evaluate to deleting the char before it
<hightower3>
baweaver, yeah I'm doing some templates and expansion and could use it
<hightower3>
although I just came to a realization how to do it in a different way
<baweaver>
what are you trying to do with it?
<baweaver>
why do you need backspaces?
fluxAeon has joined #ruby
truenito has joined #ruby
<havenwood>
hightower3: print "\b"
<hightower3>
I tried it but it didn't work
<havenwood>
hightower3: What context are you trying to do it in?
<baweaver>
If they're doing templating that changes context a ton.
cabotto has quit [Remote host closed the connection]
cabotto has joined #ruby
mikecmpb_ has joined #ruby
blackmesa has joined #ruby
mikecmpbll has quit [Ping timeout: 252 seconds]
venmx has joined #ruby
marz_d`ghostman has joined #ruby
<marz_d`ghostman>
How do I configure rspec so it won't exit the whole suite when my code exits? I have a test testing a failing case where my code exits, and rspec exit totally not continuing the rest of the suites
<status402>
I couldn't tell ya. It honestly looks sensible enough to me.
FrankyCyborg has quit [Ping timeout: 272 seconds]
<marz_d`ghostman>
Yeah, the code just does what it does. I have a test not expecting for the next method to be invoked though since it will exit. Just wanted it not to end rspec though
<status402>
Is there an alternative to just "exit" that might give you a bit more control?
<marz_d`ghostman>
hmm, I should just test that it received exit, instead of testing not_to receive(:the_next_method)
reber__ has joined #ruby
<marz_d`ghostman>
nah this class will run a job, and exits if it something fails
<marz_d`ghostman>
Is there something like allow(object). to recieve(:exit) and continue to next step though?
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lomex has joined #ruby
lomex has quit [Client Quit]
Burgestrand has joined #ruby
marmotini_ has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
aufi has quit [Ping timeout: 252 seconds]
AJA4350 has quit [Quit: AJA4350]
AJA4350 has joined #ruby
vondruch has quit [Ping timeout: 272 seconds]
voolik has joined #ruby
cabotto has quit []
blackmesa has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
emerson is now known as GDPR
marmotini_ has quit [Remote host closed the connection]
voolik has quit [Quit: Taking a nap...]
voolik has joined #ruby
ysb has joined #ruby
ysb has joined #ruby
ysb has quit [Changing host]
aufi has joined #ruby
ysb has quit [Client Quit]
vondruch has joined #ruby
cow[moo] has joined #ruby
c0ncealed4 has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
c0ncealed4 has joined #ruby
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
status402 has quit [Ping timeout: 250 seconds]
status402 has joined #ruby
justicefries has joined #ruby
bougyman is now known as BOOgyman
BOOgyman is now known as B00gyman
amelliaa has quit [Quit: -]
ams__ has joined #ruby
kapil____ has joined #ruby
aufi has quit [Ping timeout: 272 seconds]
Sauvin has quit [Ping timeout: 264 seconds]
dmitch has joined #ruby
haylon has joined #ruby
fusta has left #ruby ["Leaving"]
kurko_ has joined #ruby
Inside has joined #ruby
blackmesa1 has joined #ruby
jamied has joined #ruby
SeepingN has joined #ruby
ta_ has quit [Remote host closed the connection]
asphyxia has quit [Ping timeout: 272 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
im0nde has quit [Quit: im0nde]
aufi has joined #ruby
orbyt_ has joined #ruby
voolik has quit [Quit: Taking a nap...]
kaleido has joined #ruby
mroutis has joined #ruby
RedNifre has joined #ruby
apparition has quit [Quit: Bye]
rippa has joined #ruby
mroutis has quit [Ping timeout: 244 seconds]
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
conta has quit [Remote host closed the connection]
conta has joined #ruby
jthomas2 has joined #ruby
blackmesa1 has quit [Ping timeout: 264 seconds]
vondruch has quit [Ping timeout: 272 seconds]
moei has joined #ruby
crankharder has joined #ruby
akaiiro has quit [Ping timeout: 240 seconds]
akaiiro has joined #ruby
justicefries has joined #ruby
Fusl has quit [Ping timeout: 256 seconds]
Fusl has joined #ruby
k0mpa has joined #ruby
voolik has joined #ruby
ivanskie has joined #ruby
jthomas2 has quit [Ping timeout: 272 seconds]
xfbs has joined #ruby
MoritaShinobu has quit [Quit: Leaving]
clemens3 has quit [Ping timeout: 245 seconds]
kurko_ has quit [Ping timeout: 240 seconds]
cd has quit [Quit: cd]
alicef has quit [Ping timeout: 246 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ams__ has quit [Quit: Connection closed for inactivity]
lomex has joined #ruby
mroutis has joined #ruby
conta has quit [Ping timeout: 272 seconds]
beefjoe has joined #ruby
mroutis has left #ruby [#ruby]
lomex has quit [Client Quit]
beefjoe has quit [Quit: <3]
Burgestrand has quit [Quit: Closing time!]
beefjoe has joined #ruby
Inline has joined #ruby
vondruch has joined #ruby
Burgestrand has joined #ruby
akaiiro has quit [Remote host closed the connection]
za1b1tsu has quit [Ping timeout: 252 seconds]
aupadhye has quit [Quit: Leaving]
akaiiro has joined #ruby
beefjoe has quit [Quit: <3]
jcarl43 has joined #ruby
dmitch has quit [Ping timeout: 250 seconds]
crankharder has quit [Ping timeout: 252 seconds]
Rapture has joined #ruby
Burgestrand has quit [Quit: Closing time!]
impermanence has joined #ruby
za1b1tsu has joined #ruby
status402 has quit [Quit: status402]
beefjoe has joined #ruby
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
apeiros has quit [Remote host closed the connection]
beefjoe has quit [Quit: <3]
jdawgaz has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
Mike11 has joined #ruby
crankharder has joined #ruby
blackmesa1 has joined #ruby
blackmesa1 has quit [Client Quit]
kurko_ has joined #ruby
orbyt_ has joined #ruby
kurko_ has quit [Ping timeout: 250 seconds]
orbyt_ has quit [Read error: Connection reset by peer]
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
justicefries has joined #ruby
orbyt_ has joined #ruby
jordanm has quit [Ping timeout: 246 seconds]
Snorty has joined #ruby
aufi has quit [Ping timeout: 250 seconds]
jordanm has joined #ruby
<Snorty>
Learning ruby and I've seen several posts talk about the performance gain when utilizing a hash lookup instead of a using something like array.include? to identify if a value is included in an array. Would it be frowned upon to essentially generate a hash of single values for a performance gain?
apeiros has quit [Read error: Connection reset by peer]
haylon has quit [Remote host closed the connection]
GodFather has joined #ruby
apeiros has joined #ruby
<Inside>
A set uses a ruby hash internally anyway, iirc
nofxx has joined #ruby
maryo has joined #ruby
<maryo>
Any dashing tool experts? I am trying to run dashing in windows platform and while accessing the dashing URL the application is getting stopped with an trace back. Some help would be appreciated. Here is the log https://dpaste.de/on90
<baweaver>
Inside: shhh, don't spoil the magic/
<baweaver>
maryo: The code helps if you can share it.
<Inside>
maryo: Try upgrading EM to the latest (1.2.7)
conta has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Inside>
actually doesn't look like em/pure_ruby has changed recently
SeepingN has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alicef has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
<maryo>
Inside, I have upgrade eventmachine but it looks like I got two versions of evenmachine. So I tried removing one and then while starting the dashing it was saying that I need to run bundle. After running bundle its again two eventmachine with two different versions https://dpaste.de/P2Bt
<veinofstars>
Ive got a stumper: based on the order in which you assign these two variables, the range can differ: https://pastebin.com/BZeXQZ8s
<ruby[bot]>
veinofstars: 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
<veinofstars>
does anyone know why the first example includes "now" in the range?
<phaul>
you call DateTime.now 2x on the same line. Don't exppect it to give you the same values twice..
<baweaver>
phaul: Ah, nice
<baweaver>
Old habits.
<baweaver>
veinofstars: phaul has the right of it. DateTime#now literally means now, meaning you call it twice and you get different results.
<baweaver>
If you really want the same value, set it to a variable first.
<veinofstars>
ya i see
<maryo>
Is there a way to inform bundler to exclude specific gem from installing?
<baweaver>
Take it out of the gemfile
<baweaver>
Though this sounds like an issue with Windows installing a specific gem
<havenwood>
maryo: or put it in a group and run bundler: --without=GROUP
<havenwood>
maryo: also, remember a Gemfile is Ruby, so you can use Ruby logic in it
<havenwood>
Though really, just install Node.js :P
<baweaver>
Node isn't a gem, remember that as well.
<baweaver>
I think I remember you mentioning that at one point.
<havenwood>
baweaver: Clearly just use the Node.js Windows package manager to, mmmmmmmm....
<baweaver>
Windows is honestly just a mess for this type of thing.
<havenwood>
I said that terribly. I guess Windows does have Chocolatey these days.
* havenwood
chants WSL! WSL!
<baweaver>
WSL helps a ton at least.
<maryo>
baweaver, actually I wanted to run dashing in windows platform. So installed Ruby with Devkit and installed dashing gem. After starting the dashing and accessing the URl, I get this error https://dpaste.de/bJkP