havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.3, 2.5.5, 2.7.0-preview1: 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!
lepepe has quit [Remote host closed the connection]
lepepe has joined #ruby
megamos has quit [Ping timeout: 268 seconds]
Exuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lepepe has quit [Ping timeout: 245 seconds]
skryking has joined #ruby
Exuma has joined #ruby
CCDelivery has joined #ruby
BTRE has quit [Remote host closed the connection]
sarink has joined #ruby
sarink has quit [Ping timeout: 268 seconds]
fphilipe has joined #ruby
quarters has quit [Ping timeout: 258 seconds]
noodle has quit [Quit: /quit]
emptyfl4sk has joined #ruby
BTRE has joined #ruby
quarters has joined #ruby
noodle has joined #ruby
mistergibson has quit [Quit: Leaving]
emptyfl4sk has quit [Ping timeout: 245 seconds]
lepepe has joined #ruby
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
Nicmavr has quit [Read error: Connection reset by peer]
F3rn4 has joined #ruby
F3rn4 has quit [Client Quit]
molly has joined #ruby
fphilipe_ has joined #ruby
molly is now known as Guest30473
Nicmavr has joined #ruby
F3rn4 has joined #ruby
m27frogy has joined #ruby
Fenhl_ has joined #ruby
F3rn4 has quit [Client Quit]
octos has quit [Read error: Connection reset by peer]
fphilipe has quit [Read error: Connection reset by peer]
Fenhl has quit [Ping timeout: 246 seconds]
m27frogy_ has quit [Quit: ZNC - https://znc.in]
gdrc has quit [Ping timeout: 246 seconds]
llua has quit [Remote host closed the connection]
Fenhl_ is now known as Fenhl
llua has joined #ruby
gdrc has joined #ruby
fphilipe_ has quit [Ping timeout: 268 seconds]
\13k has quit [Ping timeout: 246 seconds]
lypsis has quit [Quit: ZNC - https://znc.in]
SCHAPiE has quit [Quit: ZNC - https://znc.in]
c0san0stra has quit [Ping timeout: 246 seconds]
lypsis has joined #ruby
SCHAPiE has joined #ruby
c0san0stra has joined #ruby
\13k has joined #ruby
fphilipe_ has joined #ruby
renich has quit [Quit: renich]
fphilipe_ has quit [Ping timeout: 246 seconds]
involans has joined #ruby
emptyfl4sk has joined #ruby
gix has quit [Ping timeout: 248 seconds]
involans has quit [Quit: involans]
CCDelivery has quit [Remote host closed the connection]
involans has joined #ruby
involans has quit [Client Quit]
emptyfl4sk has quit [Ping timeout: 248 seconds]
haxx0r has joined #ruby
thejamespinto has joined #ruby
<thejamespinto> a
bjpenn has quit [Ping timeout: 258 seconds]
tdy has joined #ruby
fphilipe_ has joined #ruby
AJA4350 has quit [Remote host closed the connection]
bjpenn has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bjpenn has quit [Ping timeout: 272 seconds]
sarink has joined #ruby
DTZUZO has joined #ruby
bjpenn has joined #ruby
sarink has quit [Ping timeout: 268 seconds]
bjpenn has quit [Ping timeout: 245 seconds]
fphilipe_ has quit [Ping timeout: 258 seconds]
akem-lnvo has quit [Ping timeout: 258 seconds]
sarink has joined #ruby
braincrash has quit [Quit: bye bye]
chalkmonster has joined #ruby
braincrash has joined #ruby
Azure has joined #ruby
bjpenn has joined #ruby
bjpenn has quit [Remote host closed the connection]
Azure has quit [Read error: Connection reset by peer]
thejamespinto has quit []
Azure has joined #ruby
zacts_pi has joined #ruby
lepepe has quit [Remote host closed the connection]
lepepe has joined #ruby
Azure has quit [Remote host closed the connection]
Exuma has joined #ruby
lepepe has quit [Ping timeout: 245 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jhass has quit [Ping timeout: 276 seconds]
ascarter has joined #ruby
jhass has joined #ruby
mcspud has quit [Ping timeout: 250 seconds]
zacts_pi has quit [Quit: WeeChat 2.4]
DaRock has quit [Ping timeout: 272 seconds]
emptyfl4sk has joined #ruby
jud has quit [Ping timeout: 246 seconds]
jud has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
emptyfl4sk has quit [Ping timeout: 258 seconds]
fphilipe_ has joined #ruby
sandstrom has joined #ruby
Dr_MDMA_MD has quit [Quit: Connection closed for inactivity]
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
ur5us has quit [Remote host closed the connection]
planigan has quit [Ping timeout: 258 seconds]
sarink has quit [Ping timeout: 245 seconds]
ur5us has joined #ruby
sauvin_ has joined #ruby
planigan has joined #ruby
Tempesta has quit [Quit: See ya!]
cammellos has joined #ruby
za1b1tsu has joined #ruby
code_zombie has quit [Quit: Leaving]
zacts_pi has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
za1b1tsu has joined #ruby
ur5us has quit [Ping timeout: 246 seconds]
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
conta has joined #ruby
ur5us has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
zacts_pi has quit [Quit: WeeChat 2.4]
za1b1tsu has quit [Remote host closed the connection]
exmortus has quit [Ping timeout: 272 seconds]
exmortus has joined #ruby
conta has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
conta has joined #ruby
DTZUZO has quit [Ping timeout: 244 seconds]
Tempesta has joined #ruby
brool has quit [Ping timeout: 264 seconds]
sarink has joined #ruby
zacts_pi has joined #ruby
akem-lnvo has joined #ruby
schne1der has joined #ruby
podlech has joined #ruby
molly has joined #ruby
molly is now known as Guest42592
Guest30473 has quit [Read error: Connection reset by peer]
sandstrom has quit [Quit: My computer has gone to sleep.]
sandstrom has joined #ruby
emptyfl4sk has joined #ruby
sandstrom has quit [Client Quit]
jud^ has joined #ruby
vethis has joined #ruby
jud has quit [Ping timeout: 245 seconds]
<vethis> everyone asleep? lol
<havenwood> vethis: just waiting for Ruby questions!
<vethis> awesome. well i think i'm having more of a git-bash problem than a ruby one, but i am using ruby so here i am.
sarink has quit [Ping timeout: 246 seconds]
<vethis> i'm using git-bash for windows to learn with. all i'm trying to do is print a prompt for input, get input, and print the input result. easy! this works in every other terminal i use except git-bash. with git-bash it actually waits for input first before printing the rest. it's giving me a headache lol any insight as to why this is?
<vethis> i could give up and use another terminal, sure lol but i'm trying to use git-bash as an alternative as i'm having a different problem with another terminal >_>
<havenwood> vethis: you're trying to echo in bash or a bash function or your Ruby script doesn't work from git-bash?
<vethis> it's a ruby script
jud has joined #ruby
<havenwood> vethis: share the script?
sarink has joined #ruby
jud^ has quit [Ping timeout: 248 seconds]
<vethis> and i'm using 2.5.5 *shrug*
<havenwood> vethis: So on git-bash you don't see "Gimme something: " until after you hit Enger?
<havenwood> Enter*
<vethis> yea or entering a string
kyrylo has joined #ruby
<havenwood> vethis: Same result if you change `puts` to `STDOUT.puts` and change `gets` to `STDIN.gets`?
jud has quit [Ping timeout: 245 seconds]
podlech has quit [Quit: WeeChat 2.5-dev]
<vethis> yep same results
schne1der has quit [Ping timeout: 248 seconds]
sarink has quit [Ping timeout: 272 seconds]
<havenwood> vethis: Try a STDOUT.flush after the first STOUT.puts?
<havenwood> vethis: Or: STDOUT.sync = true
<vethis> alright, flushing worked
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> vethis: Ah, so git-bash if buffering the output for some reason.
<vethis> well that's no fun
<havenwood> vethis: It should fix it if you up top once do a: STDOUT.sync = true
sarink has joined #ruby
<vethis> that's nifty. well that works fine! thank you havenwood
<havenwood> vethis: you're welcome
<havenwood> happy coding!
<vethis> are you familiar with the Cmder terminal for windows? :P
<havenwood> nope, I'm not familiar with Cmder.
<vethis> well that's unfortunate. my other issue, which made me switch to git-bash, was for some reason Cmder doesn't want to output bright colors anymore lol. i've been using the Colorize gem for weeks now and all of a sudden my bright colors just quit rendering in Cmder. another headache
<vethis> i'll have to deal with remembering STDOUT.sync until i can find a solution to Cmder's random quirk. thanks again i appreciate it!
<havenwood> vethis: Are you on Windows 10? You might try WSL or even WSL 2.
<vethis> ah yes i am. i want to try WSL but i goofed and removed the Store app with a powershell decrappifier script haha. i hardly use microsoft stuff but once i found out about WSL i already screwed myself.
<vethis> can't re-enable the Store app to save my life. nothing works
<vethis> i hadn't needed it before though. the colorize gem uses the win32console(?) gem to enable colored output for windows. like i said it was working fine, even earlier today. then it just decided to stop. normal colors work fine but String.light_(color) just reverts to gray
<havenwood> vethis: do you even need the store for WSL? http://wsl-guide.org/en/latest/installation.html
<havenwood> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
<havenwood> vethis: Run that ^ from PowerShell
<havenwood> I'm not sure what does or doesn't use the Store.
<vethis> ah! yeah i do have it installed then. i was thinking of the Debian package to use with WSL. this was a couple months ago when i was looking into it
<vethis> yeah Cmder gives me this error when trying to open with WSL
<vethis> note: bash.exe output: Windows Subsystem for Linux has no installed distributions.
emptyfl4sk has quit [Ping timeout: 245 seconds]
<vethis> then gives me a link to get distributions, which only opens with the Store app apparently
<havenwood> vethis: lxrun /install
<vethis> well i'll be
<havenwood> vethis: or check? wslconfig /l
<havenwood> if the latter shows a distro, you can just use that
sarink_ has joined #ruby
queip has quit [Ping timeout: 258 seconds]
<havenwood> wsl -l
sphenxes has joined #ruby
<havenwood> wsl --setdefault ...
<vethis> yep, no distros. getting ubuntu now hopefully that's a smooth process
<havenwood> vethis: good luck!
<vethis> thanks again :P
<havenwood> you're welcome
jud has joined #ruby
akem-lnvo has quit [Quit: Leaving]
sarink has quit [Ping timeout: 244 seconds]
akem-lnvo has joined #ruby
schne1der has joined #ruby
akem-lnvo has quit [Client Quit]
jhass has quit [Ping timeout: 264 seconds]
queip has joined #ruby
DTZUZO has joined #ruby
TomyWork has joined #ruby
TimApple has joined #ruby
jud^ has joined #ruby
jud has quit [Ping timeout: 245 seconds]
jhass has joined #ruby
aupadhye has joined #ruby
ur5us has joined #ruby
reber has joined #ruby
emptyfl4sk has joined #ruby
andikr has joined #ruby
fphilipe_ has quit [Ping timeout: 246 seconds]
emptyfl4sk has quit [Ping timeout: 244 seconds]
deepredsky has quit [Ping timeout: 272 seconds]
jhass|off has joined #ruby
jhass has quit [Ping timeout: 264 seconds]
jhass|off is now known as jhass
sandstrom has joined #ruby
planigan has quit [Ping timeout: 272 seconds]
fphilipe_ has joined #ruby
lepepe has joined #ruby
planigan has joined #ruby
megamos has joined #ruby
lepepe has quit [Ping timeout: 246 seconds]
chalkmon1 has joined #ruby
chalkmonster has quit [Ping timeout: 245 seconds]
hutch has quit [Ping timeout: 248 seconds]
pwnd_nsfw has quit [Ping timeout: 268 seconds]
chalkmonster has joined #ruby
Tuor has joined #ruby
chalkmon1 has quit [Ping timeout: 246 seconds]
deepredsky has joined #ruby
DaRock has joined #ruby
jhass has quit [Ping timeout: 248 seconds]
megamos has quit [Ping timeout: 245 seconds]
chalkmon1 has joined #ruby
akem-lnvo has joined #ruby
zacts_pi has quit [Quit: WeeChat 2.4]
chalkmonster has quit [Ping timeout: 246 seconds]
akem-lnvo has quit [Remote host closed the connection]
vondruch_ has joined #ruby
sarink_ has quit [Remote host closed the connection]
queip has quit [Ping timeout: 272 seconds]
vondruch has quit [Ping timeout: 272 seconds]
vondruch_ is now known as vondruch
m27frogy has quit [Read error: Connection reset by peer]
m27frogy has joined #ruby
chalkmon1 has quit [Quit: WeeChat 2.5]
queip has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
sarink has joined #ruby
lxsameer has joined #ruby
sarink has quit [Remote host closed the connection]
gdrc has quit [Changing host]
gdrc has joined #ruby
chalkmonster has joined #ruby
conta has quit [Ping timeout: 245 seconds]
chalkmonster has quit [Client Quit]
akem-lnvo has joined #ruby
yo-wan has joined #ruby
conta has joined #ruby
pwnd_nsfw has joined #ruby
zacts_pi has joined #ruby
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
cd has quit [Quit: cd]
ellcs has joined #ruby
BH23 has joined #ruby
Guest42592 has quit [Remote host closed the connection]
Guest42592 has joined #ruby
cisco has joined #ruby
queip has quit [Ping timeout: 245 seconds]
cisco is now known as Guest36664
themsay has quit [Ping timeout: 245 seconds]
sarink has joined #ruby
queip has joined #ruby
sarink has quit [Remote host closed the connection]
emptyfl4sk has joined #ruby
ur5us has quit [Remote host closed the connection]
emptyfl4sk has quit [Ping timeout: 245 seconds]
sarink has joined #ruby
jhass has joined #ruby
themsay has joined #ruby
sarink has quit [Remote host closed the connection]
zoz has joined #ruby
n13z has joined #ruby
n13z has quit [Client Quit]
themsay has quit [Ping timeout: 245 seconds]
reber has quit [Remote host closed the connection]
zacts_pi has quit [Quit: WeeChat 2.4]
BH23 has quit [Ping timeout: 245 seconds]
themsay has joined #ruby
DaRock has quit [Read error: Connection reset by peer]
sarink has joined #ruby
Swyper has joined #ruby
dbugger has joined #ruby
BH23 has joined #ruby
Swyper has quit [Remote host closed the connection]
zoz has quit [Remote host closed the connection]
conta has quit [Ping timeout: 245 seconds]
Swyper has joined #ruby
lubekpl has quit [Quit: WeeChat 1.9.1]
kyrylo has joined #ruby
tdy has quit [Ping timeout: 244 seconds]
conta has joined #ruby
BH23 has quit [Ping timeout: 272 seconds]
BH23 has joined #ruby
leitz has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
BH23 has quit [Ping timeout: 248 seconds]
<leitz> Newbie, could use some help with Sinatra calling a library. This line: https://github.com/makhidkarun/ftl_tools/blob/reorg_to_lib/bin/crewgen.rb#L11
sarink has quit [Remote host closed the connection]
<leitz> so that when I run the first command and go to "localhost:4567/crew" it should recognize the route.
<leitz> instead, I'm getting the "Sinatra doesn't know this ditty", so my guess is that I'm not creating the application object correctly.
<leitz> What am I missing?
lepepe has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
grenierm_ has joined #ruby
lepepe has quit [Ping timeout: 258 seconds]
evdubs has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
evdubs has joined #ruby
<leftylink> IIRC, and from what I see on http://sinatrarb.com/ , require 'sinatra' runs a sinatra app w/ any `get` (and others) that are called on the top level. there are zero such calls, therefore the sinatra app knows no routes and therefore "doesn't know this ditty". it is true that there is an application `crew` that got created, but that `crew` isn't doing anything. that CrewGen is a
deepredsky has quit [Ping timeout: 245 seconds]
<leftylink> https://www.rubydoc.info/gems/sinatra#Sinatra__Base_-_Middleware__Libraries__and_Modular_Apps , and reading that corresponding section will be helpful
<leitz> leftylink, thanks!
* leitz goes to read.
emptyfl4sk has joined #ruby
emptyfl4sk has quit [Ping timeout: 246 seconds]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
<leitz> leftylink, I've gotten it to work; thanks! Of course, that doesn't mean I deeply understand it, but it does work. Progress...
Guest36664 has quit [Ping timeout: 246 seconds]
Snowy has joined #ruby
sarink has joined #ruby
Ca1us has joined #ruby
Ca1us has joined #ruby
Ca1us has quit [Changing host]
Ca1us is now known as Caius_
Caius_ is now known as Caius__
Caius__ is now known as Caius___
Caius___ is now known as Caius_
szulak has joined #ruby
sezuan_ has joined #ruby
gbristol_ has joined #ruby
sarink has quit [Remote host closed the connection]
Caius_ has quit [Quit: ""]
spectra_ has joined #ruby
Ca1us has joined #ruby
Ca1us has quit [Changing host]
Ca1us has joined #ruby
DaRock has joined #ruby
spectra has quit [*.net *.split]
n1v has quit [*.net *.split]
vqrs_ has quit [*.net *.split]
JayDoubleu has quit [*.net *.split]
timeless has quit [*.net *.split]
siasmj has quit [*.net *.split]
TheBrayn has quit [*.net *.split]
gajus has quit [*.net *.split]
Argorok has quit [*.net *.split]
szulak_ has quit [*.net *.split]
mkaito has quit [*.net *.split]
sezuan has quit [*.net *.split]
kapilp has quit [*.net *.split]
gbristol has quit [*.net *.split]
liKe2k1 has quit [*.net *.split]
Kilo`byte has quit [*.net *.split]
jokester has quit [*.net *.split]
iamdevnul has quit [*.net *.split]
nuck has quit [*.net *.split]
zipkid has quit [*.net *.split]
hsiktas has quit [*.net *.split]
fowlduck has quit [*.net *.split]
darthThorik has quit [*.net *.split]
raggi has quit [*.net *.split]
kevinsjoberg has quit [*.net *.split]
manveru has quit [*.net *.split]
BuildTheRobots has quit [*.net *.split]
towo has quit [*.net *.split]
Iambchop has quit [*.net *.split]
jacksoow has quit [*.net *.split]
Norrin has quit [*.net *.split]
krasnus has quit [*.net *.split]
heyimwill has quit [*.net *.split]
ndrst has quit [*.net *.split]
creat has quit [*.net *.split]
linuxdaemon has quit [*.net *.split]
Caius has quit [*.net *.split]
Ca1us is now known as Caius
gigetoo has quit [Ping timeout: 272 seconds]
vqrs_ has joined #ruby
timeless has joined #ruby
n1v has joined #ruby
Norrin has joined #ruby
zipkid has joined #ruby
siasmj has joined #ruby
gajus has joined #ruby
iamdevnul has joined #ruby
kapilp has joined #ruby
Argorok has joined #ruby
liKe2k1 has joined #ruby
mkaito has joined #ruby
TheBrayn has joined #ruby
JayDoubleu has joined #ruby
nuck has joined #ruby
Kilo`byte has joined #ruby
jokester has joined #ruby
fowlduck has joined #ruby
towo has joined #ruby
BuildTheRobots has joined #ruby
raggi has joined #ruby
hsiktas has joined #ruby
Iambchop has joined #ruby
jacksoow has joined #ruby
ndrst has joined #ruby
krasnus has joined #ruby
heyimwill has joined #ruby
kevinsjoberg has joined #ruby
manveru has joined #ruby
linuxdaemon has joined #ruby
creat has joined #ruby
darthThorik has joined #ruby
hsiktas has quit [Max SendQ exceeded]
kapilp has quit [Max SendQ exceeded]
linuxdaemon has quit [Max SendQ exceeded]
JayDoubleu has quit [Max SendQ exceeded]
lepepe has joined #ruby
deepredsky has joined #ruby
JayDoubleu has joined #ruby
BuildTheRobots has quit [Ping timeout: 257 seconds]
kapilp has joined #ruby
BuildTheRobots has joined #ruby
hsiktas has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
lepepe has quit [Ping timeout: 246 seconds]
Nicmavr has joined #ruby
linuxdaemon has joined #ruby
gigetoo has joined #ruby
xco has joined #ruby
olspookishmagus has quit [Ping timeout: 245 seconds]
olspookishmagus has joined #ruby
olspookishmagus is now known as Guest34898
go|dfish has quit [Ping timeout: 248 seconds]
go|dfish has joined #ruby
<leitz> is there a way to put what's in config.ru onto the rackup command? I'm trying to figure out how to add the "run X/YZ" bit.
yalue has joined #ruby
lepepe has joined #ruby
lepepe has quit [Ping timeout: 245 seconds]
conta has quit [Ping timeout: 272 seconds]
conta has joined #ruby
cisco has joined #ruby
cisco is now known as Guest51410
AJA4350 has joined #ruby
reber has joined #ruby
involans has joined #ruby
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
<leitz> This is what I'm trying. Running it on the command line works. system("rackup -I ../lib -r ftl_tools -s thin -p 4567 ./crewgen_config.ru")
reber has quit [Remote host closed the connection]
sarink has joined #ruby
CCDelivery has joined #ruby
lepepe has joined #ruby
yalue has quit [Quit: Leaving]
CCDelivery_ has joined #ruby
CCDelivery has quit [Read error: Connection reset by peer]
yalue has joined #ruby
sarink has quit [Remote host closed the connection]
emptyfl4sk has joined #ruby
emptyfl4sk has quit [Ping timeout: 258 seconds]
lepepe_ has joined #ruby
lepepe has quit [Ping timeout: 248 seconds]
DTZUZO has quit [Ping timeout: 245 seconds]
fphilipe has joined #ruby
fphilipe_ has quit [Ping timeout: 245 seconds]
Inline has joined #ruby
xfbs has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
sarink has joined #ruby
megamos has joined #ruby
Azure has joined #ruby
xfbs has joined #ruby
DTZUZO has joined #ruby
conta has quit [Ping timeout: 248 seconds]
Azure has quit [Read error: Connection reset by peer]
jtperreault has joined #ruby
Azure has joined #ruby
queip has quit [Ping timeout: 246 seconds]
Azure has quit [Ping timeout: 246 seconds]
sarink_ has joined #ruby
tf2ftw has joined #ruby
Azure has joined #ruby
queip has joined #ruby
<tf2ftw> I haven't found a way to do this so I assume it doesn't exist but I figured I'd ask here as a last resort. Is it possible to add a gem to a gemspec via Bundler? I'm looking for the same type of functionality `bundle add` provides but instead of modifying the Gemfile it updates gemspec.
sarink has quit [Ping timeout: 272 seconds]
schne1der has quit [Ping timeout: 244 seconds]
lucasb has joined #ruby
DaRock has quit [Ping timeout: 245 seconds]
involans_ has joined #ruby
Esa_ has joined #ruby
involans has quit [Ping timeout: 245 seconds]
deepredsky has quit [Ping timeout: 244 seconds]
fphilipe has quit [Ping timeout: 272 seconds]
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rippa has joined #ruby
fphilipe has joined #ruby
Tuor has quit [Quit: Konversation terminated!]
DTZUZO has quit [Ping timeout: 245 seconds]
deepredsky has joined #ruby
lepepe_ has quit [Ping timeout: 245 seconds]
brool has joined #ruby
deepredsky has quit [Ping timeout: 248 seconds]
Snowy has quit [Quit: ragequit]
lepepe has joined #ruby
TomyWork has quit [Remote host closed the connection]
lepepe_ has joined #ruby
involans_ has quit [Quit: involans_]
emptyfl4sk has joined #ruby
lepepe has quit [Ping timeout: 244 seconds]
emptyfl4sk has quit [Ping timeout: 258 seconds]
Guest51410 has quit [Quit: Lost terminal]
deepredsky has joined #ruby
sarink_ has quit [Remote host closed the connection]
going_insane_fas has joined #ruby
<going_insane_fas> hello~
<going_insane_fas> What could be causing this ?
<going_insane_fas> https://imgur.com/a/cl20NFJ
sandstrom has quit [Ping timeout: 252 seconds]
codefriar has joined #ruby
codefriar has quit [Read error: Connection reset by peer]
codefriar has joined #ruby
codefriar has quit [Client Quit]
fphilipe has quit [Read error: Connection reset by peer]
<ytti> jesus h christ, imgur as pastebin, well at least the bot doesn't complain
<going_insane_fas> ye well
<ytti> maybe there is bundle file there locking that file
fphilipe has joined #ruby
schne1der has joined #ruby
<going_insane_fas> I don't know how bundle locks work... when you mean there, do you mean the current directory ?
zacts has joined #ruby
DTZUZO has joined #ruby
<ytti> yeah i'm not too familiar either,and i think i'd just strace it to see what happens when i call the bundler
<ytti> but that may be the lazy man's approach, smarter man probably would try to understand instead of brute force
chamunks has quit [Quit: Don't worry I'm not gone yet.]
<going_insane_fas> I've literally never used the gem ecosystem before... so I don't really know where to sink my teeth in this.
<going_insane_fas> strace sounds like a good idea
zacts has quit [Client Quit]
Snowy has joined #ruby
emptyfl4sk has joined #ruby
sandstrom has joined #ruby
<phaul> I would check the PATH to make sure bundle is the bundle that was last installed. the command "which bundle" might help
<phaul> outher thing that you could try is updating the locate db, run slocate bundle and try each with --version and full path to see which one you want
fphilipe has quit [Ping timeout: 246 seconds]
codefriar has joined #ruby
<going_insane_fas> thanks for the tip.
involans has joined #ruby
gbristol_ is now known as gbristol
deepreds1 has joined #ruby
deepredsky has quit [Ping timeout: 246 seconds]
orbyt_ has joined #ruby
Dr_MDMA_MD has joined #ruby
orbyt_ has quit [Remote host closed the connection]
Scriptonaut has joined #ruby
<Scriptonaut> hey all, I wrote a small script to run a command if my site doesn't respond with a "200" 3 times in a row. It was working fine where I wrote it (ruby 2.5 something), but when I put it on a production server running ruby 1.8.7, it just hangs on the "http.request(request)" on line 16.
<Scriptonaut> Eventually I get a timeout error
<Scriptonaut> anyone know why the code would work in ruby 2.5 and not 1.8.7? I've used net/https plenty of times on ruby 1.8.7 without problems
reber has joined #ruby
reber_ has joined #ruby
<havenwood> Scriptonaut: Can you tell from the exception whether it's open_timeout, read_timeout or ssl_timeout?
reber_ has quit [Client Quit]
<havenwood> Scriptonaut: Does 1.8 work with modern ssl? I'm not spotting anything.
<havenwood> Scriptonaut: Does it work for non-ssl sites?
<Scriptonaut> havenwood: let me test
<Scriptonaut> the timeout takes a long time
involans has quit [Quit: involans]
jaequery has joined #ruby
maryo has joined #ruby
DTZUZO has quit [Ping timeout: 246 seconds]
<havenwood> Scriptonaut: You might try setting a short `http.open_timeout = ..` then `http.read_timeout = ..`, etc.
<Scriptonaut> Errno::ETIMEDOUT: Connection timed out - connect(2)
<havenwood> I didn't use Net::HTTP until 1.9. :)
<Scriptonaut> ok
<Scriptonaut> that time I got: Timeout::Error: execution expired
<Scriptonaut> havenwood: what did you use before then? I can't remember what I used back in the 1.8 days
<Scriptonaut> I really just need to grab a status code, could do it with curl but would rather not do system calls
<havenwood> Scriptonaut: I was a lawyer back then. I did a different kind of code. :P
<Scriptonaut> haha cool
involans has joined #ruby
<havenwood> Scriptonaut: I suspect an ssl issue.
<Scriptonaut> I think so too
<Scriptonaut> the googling I did said it might be an ssl version thing
<Scriptonaut> I tried commenting out the http.use_ssl = true
MuffinPimp has quit [Quit: Goodbye.]
<al2o3-cr> Scriptonaut: just out of interest what does this return: Net::HTTP.get_response URI('http://yoursite.com')
<Scriptonaut> with http or https?
<Scriptonaut> oh it gives me a 200
<Scriptonaut> weird, I thought it would redirect like curl does
<Scriptonaut> using http just hangs
<Scriptonaut> https**
<al2o3-cr> so it it hangs using https?
<Scriptonaut> ya
aupadhye has quit [Quit: Leaving]
<Scriptonaut> when I curl with http I get a 301
maryo has quit [Quit: Leaving]
Guest42592 has quit [Remote host closed the connection]
<Scriptonaut> this is really confusing
<Scriptonaut> why would curl give me a 301 and Net::HTTP.get_response give me a 200
Guest42592 has joined #ruby
tdy has joined #ruby
<al2o3-cr> Scriptonaut: not sure
AJA4351 has joined #ruby
pygmypuppy has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
andikr has quit [Remote host closed the connection]
leitz has quit [Quit: Leaving]
fphilipe has joined #ruby
DTZUZO has joined #ruby
sarink has joined #ruby
gix has joined #ruby
fphilipe has quit [Ping timeout: 258 seconds]
deepredsky has joined #ruby
miskatonic has joined #ruby
deepreds1 has quit [Ping timeout: 248 seconds]
grenierm_ has quit [Remote host closed the connection]
emptyfl41 has joined #ruby
emptyfl4sk has quit [Ping timeout: 245 seconds]
fphilipe has joined #ruby
sagax has quit [Ping timeout: 272 seconds]
DTZUZO has quit [Ping timeout: 268 seconds]
mcspud has joined #ruby
fphilipe has quit [Ping timeout: 258 seconds]
akem-lnvo has quit [Read error: Connection reset by peer]
Snowy has quit [Remote host closed the connection]
leah2 has quit [Ping timeout: 258 seconds]
Snowy has joined #ruby
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Snowy has quit [Ping timeout: 245 seconds]
sagax has joined #ruby
codefriar has joined #ruby
lxsameer has quit [Ping timeout: 246 seconds]
involans has quit [Quit: involans]
hutch has joined #ruby
codefriar has quit [Read error: Connection reset by peer]
codefriar has joined #ruby
leah2 has joined #ruby
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
miskatonic has joined #ruby
absolutejam1 has joined #ruby
emptyfl41 has quit [Quit: WeeChat 2.5]
chalkmonster has joined #ruby
involans has joined #ruby
megamos has quit [Ping timeout: 244 seconds]
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
codefriar has joined #ruby
themsay has quit [Ping timeout: 272 seconds]
Snowy has joined #ruby
tdy1 has joined #ruby
sphenxes has quit [Ping timeout: 246 seconds]
tdy has quit [Ping timeout: 248 seconds]
tdy1 has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
CCDelivery_ has quit [Remote host closed the connection]
CCDelivery_ has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
involans has quit [Quit: involans]
ellcs1 has joined #ruby
zacts has joined #ruby
involans has joined #ruby
CCDelivery_ has quit [Remote host closed the connection]
themsay has joined #ruby
dviola has joined #ruby
megamos has joined #ruby
sphenxes has joined #ruby
fphilipe has joined #ruby
code_zombie has joined #ruby
fphilipe has quit [Ping timeout: 246 seconds]
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
queip has quit [Ping timeout: 244 seconds]
Exuma has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
tf2ftw has quit [Quit: This computer has gone to sleep]
lucasb has quit [Quit: Connection closed for inactivity]
tf2ftw has joined #ruby
ellcs1 has quit [Remote host closed the connection]
cd has joined #ruby
ellcs1 has joined #ruby
queip has joined #ruby
sphenxes has quit [Remote host closed the connection]
skryking has quit [Remote host closed the connection]
iffraff has joined #ruby
Snowy has quit [Remote host closed the connection]
codefriar has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
sandstrom has joined #ruby
iffraff has quit [Ping timeout: 244 seconds]
iffraff has joined #ruby
queip has quit [Ping timeout: 258 seconds]
tabakhase has quit [Quit: ZNC - http://znc.in]
sarink has quit [Remote host closed the connection]
tabakhase has joined #ruby
Fusl has quit [Max SendQ exceeded]
Fusl has joined #ruby
Fusl has quit [Max SendQ exceeded]
tdy2 has joined #ruby
Fusl has joined #ruby
Fusl has quit [Max SendQ exceeded]
queip has joined #ruby
Fusl has joined #ruby
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
bjpenn has joined #ruby
<bjpenn> hey guys, im trying to find an alternative way to write this code to pass rubocop exception: curl_options = '-sX POST -w "%{http_code}"'
<bjpenn> it violates this rubocop error: Style/FormatStringToken: Prefer annotated tokens (like %<foo>s) over template tokens (like %{foo}).
<bjpenn> any ideas? :)
tw1sted has joined #ruby
<havenwood> bjpenn: Normally you'd write: "-sX POST -w \"#{http_code}\""
<havenwood> bjpenn: You might consider not shelling out to curl, if that's an option.
Snowy has joined #ruby
<havenwood> bjpenn: There are solid gems with bindings to libcurl, Net::HTTP or other gems.
haxx0r has quit [Ping timeout: 244 seconds]
jaequery has joined #ruby
jaequery has quit [Client Quit]
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
codefriar has joined #ruby
zacts has quit [Quit: WeeChat 2.4]
<bjpenn> havenwood: oh really? i mainly wanted to write something that could be a wrapper to curl, that can take in shell parameters like -X POST, -X GET, -v
tf2ftw has quit [Quit: This computer has gone to sleep]
<bjpenn> just fyi, even with this: "-sX POST -w \"#{http_code}\"", i get the rubocop error still
<havenwood> bjpenn: Show the context of the code?
tdy2 has quit [Ping timeout: 268 seconds]
<bjpenn> essentially, it parses the CLI for parameters to the script, and takes those parameters, and runs `curl #{params}"`
<bjpenn> otherwise i'd have to implement separate functionality for every parameter that curl provides
<bjpenn> to cover all cases
Inline has quit [Quit: Leaving]
<bjpenn> for example, if someone wanted to curl <microserviceA> with /foo/bar/ using POST, and wanted verbose output, they can just ./curl-script microserviceA /foo/bar/ -X POST -v
<bjpenn> it'd know how to find the url for microserviceA, along with its credentials, etc
tdy2 has joined #ruby
<bjpenn> havenwood: but yeah, ideally, for making a specific call, i'd love to just use net/http
<bjpenn> just a lot cleaner
<bjpenn> instead of having to parse curl output
ellcs1 has quit [Ping timeout: 252 seconds]
yalue has quit [Quit: Leaving]
bjpenn has quit [Ping timeout: 246 seconds]
ellcs1 has joined #ruby
leah2 has quit [Ping timeout: 248 seconds]
bjpenn has joined #ruby
xco has quit [Quit: xco]
MuffinPimp has joined #ruby
codefriar has quit [Quit: Textual IRC Client: www.textualapp.com]
codefriar has joined #ruby
LenPayne has quit [Quit: ZNC 1.7.3 - https://znc.in]
SeepingN has joined #ruby
tdy3 has joined #ruby
LenPayne has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
tdy2 has quit [Ping timeout: 245 seconds]
leah2 has joined #ruby
tdy3 has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
tdy3 has joined #ruby
iffraff has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
akem-lnvo has joined #ruby
xco has joined #ruby
tf2ftw has joined #ruby
Xiti has quit [Quit: Xiti]
miskatonic has quit [Remote host closed the connection]
tf2ftw has quit [Client Quit]
tdy3 has quit [Ping timeout: 244 seconds]
chalkmonster has quit [Quit: WeeChat 2.5]
Xiti has joined #ruby
fphilipe has joined #ruby
tdy3 has joined #ruby
RyanMcCoskrie has joined #ruby
fphilipe has quit [Ping timeout: 258 seconds]
RyanMcCoskrie has quit [Client Quit]
RyanMcCoskrie has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
RyanMcCoskrie has quit [Client Quit]
Swyper has joined #ruby
RyanMcCoskrie has joined #ruby
ur5us has joined #ruby
Snowy has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Snowy has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Snowy has quit [Ping timeout: 245 seconds]
jaequery has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
lepepe_ has quit [Remote host closed the connection]
lepepe has joined #ruby
Swyper has quit [Remote host closed the connection]
lepepe has quit [Ping timeout: 258 seconds]
akem-lnvo has quit [Remote host closed the connection]
akem-lnvo has joined #ruby
reber has quit [Remote host closed the connection]
Snowy has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
schne1der has quit [Ping timeout: 248 seconds]
sarink has joined #ruby
sarink has quit [Ping timeout: 245 seconds]
RyanMcCoskrie has quit [Remote host closed the connection]
lepepe has joined #ruby
ellcs1 has quit [Ping timeout: 250 seconds]
tpanarch1st has joined #ruby
sarink has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lepepe has quit [Ping timeout: 245 seconds]
sarink has quit [Ping timeout: 248 seconds]
tpanarch1st has quit [Quit: Thanks for your help, nice to see you, take care.]
lepepe has joined #ruby
lepepe has quit [Ping timeout: 248 seconds]
involans has quit [Quit: involans]
abaiste^ has quit []
nowhereman has joined #ruby
xco has quit [Quit: xco]
shah^ has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
chamunks has joined #ruby
Snowy has quit [Ping timeout: 245 seconds]
xco has joined #ruby
queip has quit [Ping timeout: 246 seconds]
going_insane_fas has quit [Ping timeout: 260 seconds]
Exuma has joined #ruby
queip has joined #ruby
fphilipe has joined #ruby
RedSnarf has joined #ruby
RedSnarf has quit [Client Quit]
fphilipe has quit [Ping timeout: 244 seconds]
teej has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
d^sh has quit [Ping timeout: 258 seconds]
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has quit [Quit: xco]
emptyflask has quit [Quit: WeeChat 2.4]
d^sh has joined #ruby
absolutejam1 has quit [Ping timeout: 272 seconds]
tpanarch1st has joined #ruby
lepepe has joined #ruby
tpanarch1st has quit [Client Quit]
emptyflask has joined #ruby
cd has quit [Quit: cd]
lepepe has quit [Ping timeout: 272 seconds]
d^sh has quit [Ping timeout: 245 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
d^sh has joined #ruby