baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview2: 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!
orbyt_ has quit [Ping timeout: 240 seconds]
heinrich5991 has quit [Ping timeout: 240 seconds]
heinrich5991 has joined #ruby
helpa has joined #ruby
<sagax> hi all
<Radar> hi sagax
<sagax> rubocop it's actually tool for code checking?
<baweaver> define checking
<baweaver> It's one of many
<sagax> example style check, variable name check, etc
<sagax> whitespace check
Jello_Raptor has quit [Ping timeout: 268 seconds]
<baweaver> sagax: what have you found so far?
vqrs has quit [Ping timeout: 255 seconds]
<sagax> i need do code great again ;D
ur5us has quit [Remote host closed the connection]
<baweaver> because if you know that much I'm not entirely sure what your question is
<sagax> >> what have you found so far?
<sagax> rubocop
<ruby[bot]> sagax: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<sagax> oh, sorry, bot
<baweaver> Rubocop doesn't make your code magically better
mroutis has quit [Ping timeout: 272 seconds]
<baweaver> It just cleans up formatting
<baweaver> or rather suggests cleaning
<sagax> yes, ok
<baweaver> You still have to learn how to architect larger things
endofline has joined #ruby
<sagax> what we have instead rubocop?
<baweaver> you're fixating a bit
<sagax> autotools
<sagax> i not about some like as rspec for tdd/bdd
<baweaver> If you want to be good with code, forget the tools for now. They're not going to magically make your code great
Jello_Raptor has joined #ruby
<baweaver> What do you mean about RSpec?
<sagax> nothing
<baweaver> Are you testing your code?
vqrs has joined #ruby
<baweaver> If not, start there
<sagax> yes, testing
<baweaver> Don't worry about Rubocop or anything else until you get good at testing your code.
WebDawgII has quit [Ping timeout: 268 seconds]
cagomez_ has joined #ruby
cagomez has quit [Remote host closed the connection]
cosmopaladin has joined #ruby
WebDawg has joined #ruby
cagomez_ has quit [Ping timeout: 264 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
DTZUZO has joined #ruby
bambanx has joined #ruby
ged has joined #ruby
t0xik has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
hurricanehrndz has quit [Ping timeout: 264 seconds]
cadillac_ has quit [Ping timeout: 240 seconds]
apeiros has quit []
cadillac_ has joined #ruby
r29v has joined #ruby
g- has joined #ruby
r29v has quit [Quit: r29v]
hurricanehrndz has joined #ruby
orbyt_ has joined #ruby
bga57 has joined #ruby
RedNifre_ has joined #ruby
s2013 has joined #ruby
dbz has joined #ruby
cosmopaladin has quit [Ping timeout: 272 seconds]
dbz has quit [Ping timeout: 240 seconds]
lipoqil_ has joined #ruby
jp| has joined #ruby
crankhar1er has joined #ruby
ekaleido has joined #ruby
Cthulu202 has joined #ruby
jp has quit [Disconnected by services]
jp| is now known as jp
segy has quit [Ping timeout: 272 seconds]
valkyr2e_ has joined #ruby
manakanapa5 has quit [*.net *.split]
shoogz has quit [*.net *.split]
oz has quit [*.net *.split]
Cthulu201 has quit [*.net *.split]
SuperTux88 has quit [*.net *.split]
lipoqil has quit [*.net *.split]
G has quit [*.net *.split]
tbuehlmann has quit [*.net *.split]
cttttt has quit [*.net *.split]
kaleido has quit [*.net *.split]
goez has quit [*.net *.split]
sonne has quit [*.net *.split]
valkyr2e has quit [*.net *.split]
mistym has quit [*.net *.split]
aef has quit [*.net *.split]
unsymbol has quit [*.net *.split]
crankharder has quit [*.net *.split]
jimeh has quit [*.net *.split]
Cybergeek has quit [*.net *.split]
WA9ACE has quit [*.net *.split]
foxxx0 has quit [*.net *.split]
rprimus has quit [*.net *.split]
lipoqil_ is now known as lipoqil
valkyr2e_ is now known as valkyr2e
shoogz- has joined #ruby
oz has joined #ruby
manakanapa5 has joined #ruby
SuperTux88 has joined #ruby
tbuehlmann has joined #ruby
goez has joined #ruby
helpa has quit [Ping timeout: 260 seconds]
Flonk has quit [Ping timeout: 260 seconds]
G has joined #ruby
heinrich5991 has quit [Ping timeout: 252 seconds]
Flonk has joined #ruby
heinrich5991 has joined #ruby
darkhanb has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
foxxx0 has joined #ruby
segy has joined #ruby
shoogz- is now known as shoogz
Flonk has quit [Ping timeout: 240 seconds]
kent\n has joined #ruby
SuperLag has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
faitswulff has joined #ruby
SuperLag has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cosmopaladin has joined #ruby
cadillac_ has quit [Quit: I quit]
arescorpio has joined #ruby
s2013 has joined #ruby
salasrod has quit [Quit: /quit]
RedNifre has joined #ruby
dbz has joined #ruby
salasrod has joined #ruby
arescorpio has quit [Read error: Connection reset by peer]
RedNifre_ has quit [Ping timeout: 240 seconds]
braincrash has quit [Quit: bye bye]
orbyt_ has joined #ruby
braincrash has joined #ruby
dbz has quit [Ping timeout: 272 seconds]
thy0 has quit [Quit: TTFN]
AJA4350 has quit [Quit: AJA4350]
faitswulff has quit [Remote host closed the connection]
cosmopaladin has quit [Ping timeout: 268 seconds]
kapil____ has joined #ruby
LiftLeft2 has quit [Ping timeout: 255 seconds]
LiftLeft has joined #ruby
patr0clus has joined #ruby
gix has quit [Disconnected by services]
faitswulff has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
t0xik is now known as t0x
faitswulff has quit [Ping timeout: 255 seconds]
mroutis has joined #ruby
r29v has joined #ruby
r29v has quit [Ping timeout: 240 seconds]
eckhardt has joined #ruby
patr0clus has quit [Ping timeout: 265 seconds]
troys has quit [Read error: Connection reset by peer]
mroutis has quit [Remote host closed the connection]
heinrich5991 has quit [Ping timeout: 240 seconds]
dellavg_ has joined #ruby
heinrich5991 has joined #ruby
sauvin has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DarthGandalf has quit [Remote host closed the connection]
DarthGandalf has joined #ruby
jokester has quit [Ping timeout: 265 seconds]
bambanx has quit [Read error: Connection reset by peer]
Inline has quit [Quit: Leaving]
za1b1tsu has joined #ruby
tty has quit [Quit: tty]
tdy has joined #ruby
reber has joined #ruby
heinrich5991 has quit [Ping timeout: 256 seconds]
heinrich5991 has joined #ruby
heinrich5991 has quit [Ping timeout: 240 seconds]
heinrich5991 has joined #ruby
apeiros_ has joined #ruby
aupadhye_ has joined #ruby
dionysus69 has joined #ruby
c0ncealed2 has quit [Remote host closed the connection]
apeiros_ has quit [Ping timeout: 252 seconds]
c0ncealed2 has joined #ruby
dionysus69 has quit [Remote host closed the connection]
Zaab1t has joined #ruby
snickers has joined #ruby
Flonk has joined #ruby
apeiros_ has joined #ruby
Dbugger has joined #ruby
apeiros_ has quit [Ping timeout: 260 seconds]
brodul has joined #ruby
deathwishdave has joined #ruby
apeiros_ has joined #ruby
kerunaru has joined #ruby
apeiros_ has quit [Ping timeout: 272 seconds]
peirama has joined #ruby
<kke> any trick to get source location of the inheritor in self.inherited hook?
dionysus69 has joined #ruby
kerunaru has quit [Quit: leaving]
aufi has joined #ruby
<kke> hmm yes caller maybe
clemens3 has joined #ruby
SolarAquarion has quit [Remote host closed the connection]
tristanp has joined #ruby
G has quit [Ping timeout: 252 seconds]
tristanp has quit [Ping timeout: 272 seconds]
apeiros_ has joined #ruby
jokester has joined #ruby
apeiros_ has quit [Ping timeout: 240 seconds]
TomyWork has joined #ruby
heinrich5991 has quit [Ping timeout: 260 seconds]
heinrich5991 has joined #ruby
faitswulff has joined #ruby
dionysus69 has quit [Quit: dionysus69]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
faitswulff has quit [Ping timeout: 252 seconds]
apeiros_ has joined #ruby
dionysus69 has joined #ruby
apeiros_ has quit [Ping timeout: 255 seconds]
deathwishdave has joined #ruby
apeiros_ has joined #ruby
mikecmpbll has joined #ruby
apeiros_ has quit [Ping timeout: 255 seconds]
Freshnuts has quit [Quit: Leaving]
nakul_ has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
<nikivi> I have this code, does anyone know how I can force 'amount' variable when expanded to not be wrapped in ""
alex`` has joined #ruby
apeiros_ has joined #ruby
ArahaelPi has quit [Read error: Connection reset by peer]
apeiros_ has quit [Ping timeout: 240 seconds]
apeiros_ has joined #ruby
a-l-e has joined #ruby
apeiros_ has quit [Ping timeout: 240 seconds]
<a-l-e> i'm new to ruby... and -- honeslty -- all i want to do is install jekyll locally to the project...
<a-l-e> ... and i don't find clear instructions for it.
<a-l-e> ruby is installed on this debian machine and "gem search jekyll" gives me -- among other things -- "jekyll (3.8.3)"
<a-l-e> ... what happens if i do "gem install jekyll"? is the package installed in the current directory or in my home?
<a-l-e> if i look at https://guides.rubygems.org/rubygems-basics/#installing-gems , it does not say where the packages are installed...
apeiros_ has joined #ruby
<nakul_> this is good tutorial for jekyll starters
G has joined #ruby
arahael1 has joined #ruby
apeiros_ has quit [Ping timeout: 260 seconds]
<nakul_> type "gem environment" on your terminal to know where the packages are
<a-l-e> well, i'd like to know where they will be installed before i do it : - )
<nikivi> I am actually not sure why it expands as full quotes
<nakul_> are you installing via rvm?
<a-l-e> i finish to write a message and then i can look at the tutorial ... but it won't help for my matter: there is no linux install...
<a-l-e> (well, the mac one can be close enough...)
<nikivi> I dont specify it in the code that it should be wrapped in ""
<nakul_> i was just trying to specify which command to type. my bad. sorry
<a-l-e> the tutorial on the help-github page says to do "gem install jekyll"
<nikivi> "#{direction}": amount.gsub("\"","")
<nikivi> seems hacky
<nakul_> i would suggest you use rvm.
<nikivi> I tried gsub but it fails for me
<nikivi> Isnt it in stdlib?
<nikivi> another option is to regex replace the string to get rid of the "
apeiros_ has joined #ruby
fribmendes has joined #ruby
heinrich5991 has quit [Ping timeout: 256 seconds]
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nikivi> it doesn't seem to actually cut the "" wrapping
<nikivi> is there anything in ruby that i can write to force that specific variable be printed as is
heinrich5991 has joined #ruby
apeiros_ has quit [Ping timeout: 240 seconds]
Beams has joined #ruby
apeiros_ has joined #ruby
bak1an has joined #ruby
discopatrick has joined #ruby
redlegion has quit [Ping timeout: 250 seconds]
tristanp has joined #ruby
fribmendes has quit [Quit: The Lounge - https://thelounge.github.io]
fribmendes has joined #ruby
DarthGandalf has quit [Remote host closed the connection]
apeiros_ has quit [Ping timeout: 256 seconds]
redlegion has joined #ruby
nowhere_man has joined #ruby
DarthGandalf has joined #ruby
tristanp has quit [Ping timeout: 268 seconds]
lazyatom has joined #ruby
apeiros_ has joined #ruby
heinrich5991 has quit [Ping timeout: 256 seconds]
heinrich5991 has joined #ruby
a-l-e has quit [Remote host closed the connection]
a-l-e has joined #ruby
apeiros_ has quit [Ping timeout: 264 seconds]
tdy has quit [Ping timeout: 240 seconds]
<balo> nikivi: amount.to_i ?
<balo> i don't fully understand the issue :D
<balo> it's a hash, not printed in any way as far as i can see
<nikivi> thans that worked balo
<nikivi> didnt think of converting to integer
bijan_ has joined #ruby
_whitelogger has joined #ruby
Burgestrand has quit [Quit: Closing time!]
hipertracker_ has joined #ruby
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
pskosinski has quit [Ping timeout: 260 seconds]
apeiros_ has joined #ruby
bijan_ has quit [Remote host closed the connection]
heinrich5991 has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
heinrich5991 has joined #ruby
dionysus69 has joined #ruby
bijan_ has joined #ruby
bijan_ has quit [Ping timeout: 255 seconds]
deathwishdave has joined #ruby
tristanp has joined #ruby
bijan_ has joined #ruby
nakul_ has quit [Quit: Leaving]
tristanp has quit [Ping timeout: 272 seconds]
bijan_ has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
heinrich5991 has quit [Ping timeout: 252 seconds]
jottr has quit [Client Quit]
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
heinrich5991 has joined #ruby
deathwishdave has joined #ruby
hipertracker_ has quit [Ping timeout: 265 seconds]
bijan_ has joined #ruby
surrounder has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
bijan_ has joined #ruby
deathwishdave has quit [Ping timeout: 240 seconds]
jyaworski has quit [Ping timeout: 260 seconds]
jyaworski has joined #ruby
<za1b1tsu> Any cool way/ good practice to check the arguments giving to def initialiaze? I want intiialization to fail on certain conditions, but I can't seem to find a nice clean way of doing it
cschneid_ has joined #ruby
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
heinrich5991 has quit [Ping timeout: 268 seconds]
cschneid_ has quit [Ping timeout: 256 seconds]
heinrich5991 has joined #ruby
apeiros_ has quit [Ping timeout: 276 seconds]
bak1an has joined #ruby
sonne has joined #ruby
paraxial has quit [Ping timeout: 264 seconds]
paraxial has joined #ruby
tristanp has joined #ruby
apeiros_ has joined #ruby
tristanp has quit [Ping timeout: 272 seconds]
apeiros_ has quit [Ping timeout: 265 seconds]
AJA4350 has joined #ruby
Burgestrand has joined #ruby
apeiros_ has joined #ruby
apeiros_ has quit [Ping timeout: 240 seconds]
Puffball has quit [Remote host closed the connection]
apeiros_ has joined #ruby
vondruch has joined #ruby
<rindolf> za1b1tsu: hi
<za1b1tsu> hi rindolf
<rindolf> za1b1tsu: there may be a gem for it
<za1b1tsu> I solved it, diferently, I perform some checks
<za1b1tsu> I don't want to install too many gems
<za1b1tsu> rindolf: but thank you for intereset
<rindolf> za1b1tsu: you're welcome
apeiros_ has quit [Ping timeout: 265 seconds]
Burgestrand has quit [Quit: Closing time!]
bmurt has joined #ruby
RedNifre has quit [Ping timeout: 272 seconds]
Burgestrand has joined #ruby
vondruch has quit [Quit: vondruch]
tdy has joined #ruby
wildermind has joined #ruby
nowhere_man has quit [Ping timeout: 256 seconds]
tdy has quit [Ping timeout: 240 seconds]
cfjk has joined #ruby
savolla has joined #ruby
kevinsjoberg has joined #ruby
tristanp has joined #ruby
RedNifre has joined #ruby
NL3limin4t0r has joined #ruby
tristanp has quit [Ping timeout: 272 seconds]
heinrich5991 has quit [Ping timeout: 256 seconds]
cagomez has joined #ruby
heinrich5991 has joined #ruby
cagomez has quit [Ping timeout: 276 seconds]
SolarAquarion has joined #ruby
apeiros_ has joined #ruby
alem0lars has joined #ruby
t0x has quit [Quit: Connection closed for inactivity]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hipertracker has joined #ruby
heinrich5991 has quit [Ping timeout: 256 seconds]
nowhere_man has joined #ruby
heinrich5991 has joined #ruby
redlegion has quit [Ping timeout: 250 seconds]
justinmcp has joined #ruby
bmurt has joined #ruby
redlegion has joined #ruby
lightstalker has quit [Ping timeout: 268 seconds]
redlegion has quit [Remote host closed the connection]
alem0lars has quit [Ping timeout: 272 seconds]
sticaz has joined #ruby
nakul_ has joined #ruby
mostlybadfly has joined #ruby
GodFather has quit [Ping timeout: 276 seconds]
dellavg_ has quit [Ping timeout: 260 seconds]
unsymbol has joined #ruby
faitswulff has joined #ruby
heinrich5991 has quit [Ping timeout: 240 seconds]
RedNifre has quit [Ping timeout: 256 seconds]
Cybergeek has joined #ruby
heinrich5991 has joined #ruby
Burgestrand has quit [Quit: Closing time!]
deathwishdave has joined #ruby
Rapture has joined #ruby
Rapture has quit [Client Quit]
Rapture has joined #ruby
Burgestrand has joined #ruby
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
heinrich5991 has quit [Ping timeout: 256 seconds]
GodFather has joined #ruby
heinrich5991 has joined #ruby
nakul_ has quit [Ping timeout: 256 seconds]
DTZUZO has quit [Read error: Connection reset by peer]
pkayokay has joined #ruby
Puffball has joined #ruby
<pkayokay> Hi! Any recommendations for Ruby Books?
kevinsjoberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cthulu202 has quit [Quit: Nowhere special. I always wanted to go there.]
Cthulu201 has joined #ruby
NL3limin4t0r has quit [Quit: WeeChat 1.9.1]
lightstalker has joined #ruby
Rapture has quit [Read error: Connection reset by peer]
Rootsudo has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
zapata has joined #ruby
chmurifree has left #ruby ["Leaving"]
jokke has joined #ruby
<jokke> hi
<jokke> i'm trying to get smtp on mastodon working with my local postfix server
Nicmavr has quit [Read error: Connection reset by peer]
<jokke> sorry, this error: OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server hello A: wrong version number
Nicmavr has joined #ruby
pkayokay has quit []
redlegion has joined #ruby
twobitsprite has joined #ruby
<twobitsprite> What's the right way to do something like this: foo = ENV["FOO"] || "foo"
<twobitsprite> ENV will always return "" if the varibale isn't set, so I always get foo = ""
<havenwood> twobitsprite: ENV.fetch 'FOO', 'foo'
<twobitsprite> havenwood: awesome, thanks
<havenwood> jokke: Poodles!
pkayokay has joined #ruby
<havenwood> jokke: How'd you install Ruby? What version of rest-client?
hipertracker has quit [Quit: hipertracker]
<jokke> not sure it's rest client
Inline has joined #ruby
<jokke> i'm just running mastodon in a docker container
<havenwood> jokke: oh, the SO wasn't related?
hipertracker has joined #ruby
<jokke> kinda
<jokke> same error
<havenwood> gotcha
hipertracker has quit [Client Quit]
Caerus has quit [Ping timeout: 240 seconds]
hipertracker has joined #ruby
hipertracker has quit [Client Quit]
RedNifre has joined #ruby
pkayokay has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 256 seconds]
<havenwood> jokke: What do you get for?: ruby -ropenssl -rfiddle -e "puts Fiddle::Function.new(Fiddle.dlopen(nil)['SSLeay_version'], [Fiddle::TYPE_INT], Fiddle::TYPE_VOIDP).call(0)"
pkayokay has joined #ruby
<havenwood> jokke: I get: OpenSSL 1.0.2p 14 Aug 2018
<havenwood> pkayokay: Here's a list of books: https://goo.gl/wpGhoQ
herbmillerjr has quit [Excess Flood]
endofline has quit [Ping timeout: 260 seconds]
endofline has joined #ruby
herbmillerjr has joined #ruby
Caerus has joined #ruby
<havenwood> jokke: POODLE is a protocol vulnerability with SSLv3 that was so nasty everybody disabled SSLv3.
<jokke> hm i got it to work but i'm not sure what i did. i played around with some postfix tls settings
<havenwood> jokke: nice
<pkayokay> Thanks for the resources. Making a timeline for myself to dive deep, and hopefully switch from a front end role to a ruby position.
RedNifre has quit [Ping timeout: 272 seconds]
faitswulff has quit [Remote host closed the connection]
tty has joined #ruby
<havenwood> pkayokay: Awesome!
jackrandom has joined #ruby
heinrich5991 has quit [Ping timeout: 260 seconds]
faitswulff has joined #ruby
Caerus has quit [Ping timeout: 252 seconds]
heinrich5991 has joined #ruby
endofline has quit [Ping timeout: 256 seconds]
Caerus has joined #ruby
RedNifre has joined #ruby
faitswulff has quit [Remote host closed the connection]
endofline has joined #ruby
ByronJohnson has quit [Remote host closed the connection]
ByronJohnson has joined #ruby
GodFather has quit [Read error: No route to host]
mikecmpbll has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
pkayokay has quit [Remote host closed the connection]
dali has joined #ruby
nofxx has joined #ruby
snickers has joined #ruby
Burgestrand has quit [Quit: Closing time!]
heinrich5991 has quit [Ping timeout: 276 seconds]
heinrich5991 has joined #ruby
troys has joined #ruby
lazyatom has quit [Quit: Connection closed for inactivity]
bijan_ has quit [Remote host closed the connection]
phaul has joined #ruby
bijan_ has joined #ruby
aufi has quit [Quit: Leaving]
bijan_ has quit [Ping timeout: 252 seconds]
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bijan_ has joined #ruby
WA9ACE has joined #ruby
pkayokay has joined #ruby
heinrich5991 has quit [Ping timeout: 256 seconds]
heinrich5991 has joined #ruby
bijan_ has quit [Ping timeout: 256 seconds]
dionysus69 has joined #ruby
dbz has joined #ruby
pkayokay has quit [Ping timeout: 252 seconds]
dbz has quit [Remote host closed the connection]
dbz has joined #ruby
bijan_ has joined #ruby
phaul has quit [Quit: WeeChat 2.2]
nowhere_man has quit [Ping timeout: 256 seconds]
bijan_ has quit [Ping timeout: 256 seconds]
dionysus69 has quit [Ping timeout: 256 seconds]
redlegion has quit [Ping timeout: 250 seconds]
bijan_ has joined #ruby
RedNifre has quit [Ping timeout: 256 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mistym has joined #ruby
aupadhye_ has quit [Ping timeout: 256 seconds]
bijan_ has quit [Ping timeout: 252 seconds]
pkayokay has joined #ruby
pkayokay has quit [Client Quit]
RedNifre has joined #ruby
orbyt_ has joined #ruby
mindamp is now known as KipperedSnack
jcarl43 has joined #ruby
KipperedSnack is now known as mindamp
heinrich5991 has quit [Ping timeout: 256 seconds]
cagomez has joined #ruby
conta1 has joined #ruby
Dbugger has quit [Remote host closed the connection]
heinrich5991 has joined #ruby
bijan_ has joined #ruby
za1b1tsu has quit [Ping timeout: 256 seconds]
cgfbee has quit [Ping timeout: 240 seconds]
r29v has joined #ruby
redlegion has joined #ruby
bijan_ has quit [Ping timeout: 256 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TomyWork has quit [Ping timeout: 240 seconds]
bijan_ has joined #ruby
redlegion has quit [Remote host closed the connection]
bijan_ has quit [Ping timeout: 256 seconds]
cgfbee has joined #ruby
IanMalcolm has joined #ruby
fmcgeough has joined #ruby
Rootsudo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rootsudo has joined #ruby
Rootsudo has quit [Client Quit]
darkhanb has joined #ruby
Rootsudo has joined #ruby
bijan_ has joined #ruby
Rootsudo has quit [Client Quit]
Rootsudo has joined #ruby
Rootsudo has quit [Client Quit]
dbz has quit [Remote host closed the connection]
code_zombie has joined #ruby
clemens3 has quit [Remote host closed the connection]
bijan_ has quit [Ping timeout: 256 seconds]
conta1 has quit [Quit: conta1]
redlegion has joined #ruby
peirama has quit [Remote host closed the connection]
mroutis has joined #ruby
r3m has quit [Quit: ZNC - http://znc.in]
Dbugger has joined #ruby
za1b1tsu has joined #ruby
peirama has joined #ruby
peirama has quit [Remote host closed the connection]
cgfbee has quit [Ping timeout: 256 seconds]
r3m has joined #ruby
Beams has quit [Quit: .]
za1b1tsu has quit [Ping timeout: 252 seconds]
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
za1b1tsu has joined #ruby
cgfbee has joined #ruby
bijan_ has joined #ruby
RedNifre has quit [Quit: Q]
orbyt_ has joined #ruby
bijan_ has quit [Ping timeout: 256 seconds]
TheBloke has quit [Ping timeout: 268 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
bijan_ has joined #ruby
CaptainAmari has joined #ruby
<CaptainAmari> Hi there, I'm not too familiar with good ruby design so I have a question. How common is to catch (or raise) exceptions as part of my code?
<CaptainAmari> I mean catching an error or raising one as an expected behavior
lxsameer has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
IanMalcolm has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bijan_ has quit [Ping timeout: 256 seconds]
IanMalcolm has joined #ruby
IanMalcolm has quit [Client Quit]
peirama has joined #ruby
lxsameer has joined #ruby
<rindolf> CaptainAmari: hi
<CaptainAmari> rindolf, o/
bijan_ has joined #ruby
TheBloke has joined #ruby
lxsameer has quit [Ping timeout: 255 seconds]
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
lxsameer has joined #ruby
twobitsprite has quit [Ping timeout: 255 seconds]
heinrich5991 has quit [Ping timeout: 268 seconds]
duderonomy has joined #ruby
bijan_ has joined #ruby
lxsameer has quit [Ping timeout: 255 seconds]
heinrich5991 has joined #ruby
twobitsprite has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
<mroutis> CaptainAmari, it is a common practice, not for flow control, tho
<CaptainAmari> mroutis, thanks. thing is im using tracepoint to catch all exceptions (with :raise). I only want to catch unhandled exceptions, but it seems like it cant be done in ruby. So I might just catch all exceptions and assume they are bad :(
<mroutis> mhm, can you share an example of what you are trying to do? or a little bit more of context
Zaab1t has quit [Quit: Zaab1t]
<CaptainAmari> true, what i said probably makes no sense. On the high level what im writing is a debugger that needs to detect unhandled exceptions.
<CaptainAmari> It then crashes the program and tries a different input
SeepingN has joined #ruby
<CaptainAmari> Technically I could probably wrap all code inside a begin..rescure block, but any internal bubbles would never get to me
<CaptainAmari> no but *
<CaptainAmari> nevermind i dont want to complicate things. I will probably just catch all exceptions and allow filtering
<CaptainAmari> thank you.
<mroutis> ohh, okok, I've never written a debugger, but you can take a look to byebug's code https://github.com/deivid-rodriguez/byebug
<CaptainAmari> yeah i defintely am! :D
bijan_ has joined #ruby
<CaptainAmari> in case ur interested, theres this good post http://emilebosch.com/2013/09/27/how-it-works-byebug/
<CaptainAmari> about debugging in ruby
heinrich5991 has quit [Ping timeout: 268 seconds]
heinrich5991 has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
Freshnuts has joined #ruby
Freshnuts has quit [Max SendQ exceeded]
<mroutis> neat!
Freshnuts has joined #ruby
bijan_ has joined #ruby
<miah> awesome. i usually use byebug through pry, and have wanted to learn more about debugging so this is great
Freshnuts has quit [Max SendQ exceeded]
Freshnuts has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
Freshnuts has quit [Max SendQ exceeded]
Freshnuts has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
snickers has joined #ruby
Freshnuts has quit [Max SendQ exceeded]
Freshnuts has joined #ruby
mikecmpbll has joined #ruby
Freshnuts has quit [Max SendQ exceeded]
Freshnuts has joined #ruby
bijan_ has joined #ruby
Freshnuts has quit [Max SendQ exceeded]
Freshnuts has joined #ruby
avelldiroll has quit [Quit: WeeChat 1.6]
bijan_ has quit [Ping timeout: 252 seconds]
peirama has quit [Remote host closed the connection]
peirama has joined #ruby
mroutis has quit [Ping timeout: 256 seconds]
avelldiroll has joined #ruby
bijan_ has joined #ruby
eckhardt_ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
Rootsudo has joined #ruby
pkayokay has joined #ruby
bijan_ has joined #ruby
leah2 has quit [Ping timeout: 272 seconds]
bijan_ has quit [Ping timeout: 252 seconds]
discopatrick has quit [Quit: Connection closed for inactivity]
a-l-e has left #ruby ["Leaving"]
bijan_ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
CBebop has joined #ruby
bijan_ has joined #ruby
CBebop has quit [Client Quit]
CBebop has joined #ruby
savolla has quit [Ping timeout: 255 seconds]
Freshnuts has quit [Quit: Leaving]
bijan_ has quit [Client Quit]
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leah2 has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
twobitsp1ite has joined #ruby
twobitsprite has quit [Ping timeout: 260 seconds]
nowhere_man has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
cagomez has quit [Ping timeout: 260 seconds]
wildermind has quit [Quit: Connection closed for inactivity]
code_zombie_ has joined #ruby
lytol_ has joined #ruby
code_zombie has quit [Ping timeout: 255 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has joined #ruby
cagomez has quit [Ping timeout: 264 seconds]
cagomez has joined #ruby
ekaleido is now known as kaleido
pkayokay has quit [Read error: Connection reset by peer]
alfiemax_ has joined #ruby
troys has quit [Ping timeout: 268 seconds]
mroutis has joined #ruby
akaiiro has joined #ruby
weaksauce has joined #ruby
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BTRE has quit [Remote host closed the connection]
BTRE has joined #ruby
lxsameer has joined #ruby
code_zombie_ has quit [Read error: Connection reset by peer]
segy has quit [Ping timeout: 272 seconds]
lxsameer has quit [Ping timeout: 268 seconds]
hipertracker has joined #ruby
Dbugger has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 264 seconds]
orbyt_ has joined #ruby
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akaiiro has quit [Remote host closed the connection]
akaiiro has joined #ruby
akem has joined #ruby
<akem> Hey
<tycoon177> o/
<akem> I have 2 "%.3d" in my string, what's the correct syntax to pass the args please? i only know for 1 arg (ex: t = "hello world: %.3d" % 123)
<akem> i was thinking: "%.3d - %.3d" % (1, 2)
<akem> No go. :/
t0x has joined #ruby
<apeiros_> you pass an array
<apeiros_> or use sprintf
apeiros_ is now known as apeiros
<apeiros> >> sprintf "%.3d - %.3d", 1, 2
<ruby[bot]> apeiros: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<apeiros> 😔
agent_white has joined #ruby
r29v has quit [Quit: r29v]
<akem> apeiros, Ha ok, thanks a lot! i prefer to pass the array so i can write the form: text="" % []
segy has joined #ruby
tdy has joined #ruby
akem has quit [Remote host closed the connection]
akem has joined #ruby
Freshnuts has joined #ruby
akem has quit [Remote host closed the connection]
akem has joined #ruby
NightMonkey has quit [Quit: ZNC - http://znc.in]
NightMonkey has joined #ruby
samort7 has joined #ruby
akem has quit [Remote host closed the connection]
akem has joined #ruby
<nickjj> i'm working with an ancient rails 2.3 app and supposedly one of the gems it uses is called `hawler` but it won't gem install hawler due to it not existing -- does anyone remember a gem of that name (or a similar name) from back in the day?
<nickjj> all i have to work with is a text file of the output of `gem list` and hawler 0.3 is referenced
<havenwood> nickjj: I've never heard of it, but it looks like a Net::HTTP wrapper HTTP client: https://github.com/satelin2002/hawler/blob/master/lib/hawler.rb
<havenwood> Ah, it's a crawler.
<havenwood> Hawler the crawler. Gotcha.
<nickjj> havenwood, yeah that's the only reference to it that i've seen so far with googling
<nickjj> i wonder if it was on rubygems in the past but then got pulled
<nickjj> legacy apps scare the shit out of me haha, this `gem list` is listing gems that technically don't even run on ruby 1.8
dionysus69 has joined #ruby
za1b1tsu has quit [Ping timeout: 268 seconds]
dali has quit [Ping timeout: 252 seconds]
jcalla has quit [Quit: Leaving]
<tycoon177> legacy apps shouldn't scare you. they should annoy you lol
za1b1tsu has joined #ruby
* tycoon177 is currently rewriting legacy reports in rails
<tycoon177> very, very annoying
DarthGandalf has quit [Remote host closed the connection]
<tycoon177> is there any difference in performance vs str.split("").each vs str.each_char?
* tycoon177 looks up the source code
<cthulchu> folks, please check if I'm right
<cthulchu> result = qwe.select { |a| a.to_s.include?("Analytics")}
<cthulchu> I expect result to be an array of whatever qwe has if to_s of it includes Analytics
<havenwood> cthulchu: Yes.
<cthulchu> thanks
akem has quit [Remote host closed the connection]
akem has joined #ruby
frozenclusterd has joined #ruby
<frozenclusterd> weird question about conditionals
<frozenclusterd> I have a function that I can use like follows:
<frozenclusterd> puts search('good').nil? => true
<frozenclusterd> puts search('bad').nil? => false
code_zombie has joined #ruby
<frozenclusterd> but if I try with 'if search('bad').nil?' it will always execute the true condition instead of else
<frozenclusterd> is there something off in my understanding of the if control logic or is there a better way to debug?
elomatreb has joined #ruby
DarthGandalf has joined #ruby
Mon_Ouie has quit [Ping timeout: 268 seconds]
<havenwood> frozenclusterd: If you change `search('bad').nil?` to `false` does its behavior change?
<havenwood> frozenclusterd: Show the code?
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akaiiro has quit [Ping timeout: 252 seconds]
nima_m has joined #ruby
ur5us has joined #ruby
<frozenclusterd> havenwood: https://codeshare.io/2pY4PV
<apeiros> sssssssllllllllllloooooooooooooow
<frozenclusterd> havenwood: no, behavior is same for both true and false
<frozenclusterd> if i do puts search('good') it prints true, and puts search('bad') it returns false... but whenever I use that function in the if, its always true
<havenwood> frozenclusterd: puts returns: nil
<havenwood> frozenclusterd: swap `puts` for `p`
Some-body_ has joined #ruby
lomex has joined #ruby
Mon_Ouie has joined #ruby
<frozenclusterd> havenwood: same
DarthGandalf has quit [Ping timeout: 264 seconds]
<frozenclusterd> good prints true, bad prints false, but in the if they still exec true not else
Some-body_ is now known as DarthGandalf
<havenwood> frozenclusterd: Show the code that's producing the unexpected result?
<frozenclusterd> havenwood: its in the codeshare
<frozenclusterd> the add function
<havenwood> !xkcd 1780
<havenwood> frozenclusterd: IO#readlines has newlines by default. I suspect that's your issue.
<havenwood> frozenclusterd: In modern Ruby, you can: File.readlines(blarg, chomp: true)
<frozenclusterd> like 2.5.1 modern? :)
<havenwood> frozenclusterd: yup!
<frozenclusterd> sweet let me try that
mroutis has quit [Remote host closed the connection]
<havenwood> frozenclusterd: And you don't need the intermediary Array with #readlines. If you want you can just use #foreach.
<havenwood> frozenclusterd: File.foreach filename, chomp: true do |line|
<havenwood> frozenclusterd: (I'd suggest `line` or something more descriptive instead of `x` for clarity.)
tdy has quit [Ping timeout: 265 seconds]
twobitsp1ite has quit [Ping timeout: 268 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
<apeiros> the codeshare thing doesn't even load for me ("over capacity")
<frozenclusterd> yeah it happens if you refresh should show
<apeiros> oh, that's live
<frozenclusterd> havenwood: :( still no go
<frozenclusterd> with chomp
tdy has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
<frozenclusterd> I went to debug with `p` inside of the function and it works now...
lxsameer has joined #ruby
<frozenclusterd> i must have did the chomp weird or not saved properly
<frozenclusterd> havenwood: thank you for the help
lxsameer has quit [Ping timeout: 255 seconds]
postmodern has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Emmanuel_Chanel has joined #ruby
s2013 has joined #ruby
orbyt_ has joined #ruby
segy has quit [Max SendQ exceeded]
akaiiro has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
Emmanuel_Chanel has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
segy has joined #ruby
alfiemax_ has quit [Ping timeout: 268 seconds]
s2013 has joined #ruby
bga57 has quit [Quit: Leaving.]
za1b1tsu has quit [Ping timeout: 265 seconds]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eckhardt_ has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
frozenclusterd has quit [Remote host closed the connection]
apeiros has quit []
code_zombie has quit [Quit: Leaving]
mikecmpbll has joined #ruby
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lytol_ has quit [Remote host closed the connection]
za1b1tsu has joined #ruby
alex`` has quit [Ping timeout: 255 seconds]
za1b1tsu has quit [Ping timeout: 240 seconds]
rindolf has quit [Ping timeout: 252 seconds]
bga57 has joined #ruby
hipertracker has quit [Quit: hipertracker]
CaptainAmari has quit [Quit: Leaving]
mostlybadfly has quit [Quit: Connection closed for inactivity]
eckhardt_ has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reber has quit [Remote host closed the connection]
orbyt_ has joined #ruby
duderonomy has joined #ruby
t0x has quit [Quit: Connection closed for inactivity]
nima_m has quit [Quit: Connection closed for inactivity]
za1b1tsu has joined #ruby
GodFather has joined #ruby
jcarl43 has quit [Ping timeout: 252 seconds]
ellcs has joined #ruby
za1b1tsu has quit [Ping timeout: 264 seconds]
akaiiro has quit [Ping timeout: 265 seconds]
lxsameer has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby