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!
aphprentice__ has joined #ruby
fphilipe_ has joined #ruby
exmortus has quit [Remote host closed the connection]
exmortus has joined #ruby
dbugger has quit [Quit: Leaving]
fphilipe_ has quit [Ping timeout: 258 seconds]
Zamyatin has joined #ruby
Exuma has joined #ruby
<Exuma> why cant I stop an each_cons loop...? i want to stop iterating
<Exuma> i have tried break, return
<Exuma> so far exit is the only thing that works
_whitelogger has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
Zamyatin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
<havenwood> &>> 0.step.each_cons(2) { break }
<rubydoc> # => nil (https://carc.in/#/r/79nn)
<havenwood> Exuma: There's ^ an example of it working. Show an example of it not working?
<havenwood> Exuma: Or you mean it's not breaking twice?
<havenwood> Exuma: Do you have an each nested within a loop?
<Exuma> havenwood ............. what in the.............
<Exuma> hold on WTF
<Exuma> i dunno, ... i am gonna just shut my laptop
<havenwood> Exuma: It can be confusing where the point of return is with nested loops.
<Exuma> i think what happened is i had multple function calls in my example which perfectly matched the number of loops, so it was actually breaking but it appeared it was looping 5 times
fphilipe_ has joined #ruby
Tempesta has joined #ruby
podlech has joined #ruby
Zamyatin has joined #ruby
esrse has joined #ruby
Zamyatin has quit [Quit: Knocking out. Peace y'all...]
fphilipe_ has quit [Ping timeout: 258 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lucasb has quit [Quit: Connection closed for inactivity]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
JoeA2552 has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
s2013 has joined #ruby
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
evaz has quit [Quit: Leaving]
englishm has quit [Excess Flood]
englishm has joined #ruby
englishm has quit [Excess Flood]
englishm has joined #ruby
englishm has quit [Excess Flood]
englishm has joined #ruby
englishm has quit [Excess Flood]
englishm has joined #ruby
englishm has quit [Excess Flood]
howdoi has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy has quit [Ping timeout: 272 seconds]
noobineer has joined #ruby
duderonomy has joined #ruby
fphilipe_ has joined #ruby
noobineer has quit [Remote host closed the connection]
dellavg has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
JoeA2552 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
r3m is now known as Pascal
Pascal is now known as r3m
r3m has quit [Quit: WeeChat 2.6-dev]
tdy has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dellavg has quit [Ping timeout: 268 seconds]
mb^ has quit []
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe_ has quit [Ping timeout: 244 seconds]
Norrin has quit [Ping timeout: 258 seconds]
fphilipe_ has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
tdy has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
ur5us has quit [Ping timeout: 268 seconds]
tdy has joined #ruby
Inline has quit [Quit: Leaving]
tdy has quit [Ping timeout: 258 seconds]
Norrin has joined #ruby
tdy has joined #ruby
tdy has quit [Ping timeout: 245 seconds]
ferhaty has joined #ruby
s2013 has joined #ruby
gix- has quit [Ping timeout: 268 seconds]
absolutejam2 has joined #ruby
tdy has joined #ruby
podlech has quit [Quit: WeeChat 2.5-dev]
fphilipe_ has quit [Ping timeout: 245 seconds]
fphilipe_ has joined #ruby
schne1der has joined #ruby
chalkmonster has joined #ruby
absolutejam3 has joined #ruby
absolutejam2 has quit [Ping timeout: 246 seconds]
absolutejam3 has quit [Ping timeout: 244 seconds]
lxsameer has joined #ruby
DTZUZO has quit [Ping timeout: 248 seconds]
schne1der has quit [Ping timeout: 245 seconds]
vondruch has quit [Quit: vondruch]
aupadhye has joined #ruby
deepreds1 has quit [Ping timeout: 272 seconds]
andikr has joined #ruby
jmcgnh has quit [Ping timeout: 248 seconds]
sylario has joined #ruby
jefffrails35 has joined #ruby
jefffrails35 has quit [Client Quit]
jmcgnh_ has joined #ruby
jmcgnh_ is now known as jmcgnh
schne1der has joined #ruby
soniya29 has joined #ruby
vondruch has joined #ruby
conta has joined #ruby
deepreds1 has joined #ruby
absolutejam3 has joined #ruby
galaxie has quit [Ping timeout: 260 seconds]
galaxie has joined #ruby
soniya29 has quit [Ping timeout: 272 seconds]
andikr has quit [Ping timeout: 245 seconds]
andikr has joined #ruby
conta has quit [Ping timeout: 245 seconds]
absolutejam4 has joined #ruby
absolutejam3 has quit [Ping timeout: 272 seconds]
deepreds1 has quit [Ping timeout: 244 seconds]
TomyWork has joined #ruby
deepreds1 has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
absolutejam4 has quit [Ping timeout: 244 seconds]
andikr has quit [Quit: No Ping reply in 180 seconds.]
ur5us has joined #ruby
gregf_ has joined #ruby
andikr has joined #ruby
conta has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.5]
absolutejam4 has joined #ruby
exmortus has quit [Remote host closed the connection]
exmortus has joined #ruby
TomyWork has quit [Remote host closed the connection]
absolutejam4 has quit [Ping timeout: 245 seconds]
esrse has quit [Ping timeout: 245 seconds]
TomyWork has joined #ruby
bitwinery has quit [Quit: Leaving]
deepreds1 has quit [Ping timeout: 258 seconds]
soniya29 has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
ryouba has left #ruby ["WeeChat 2.3"]
gregf_ has quit [Remote host closed the connection]
DTZUZO has joined #ruby
Obats has joined #ruby
<Obats> Hi guys. Is it possible to see which file that ruby loads the config from? Is it called environment.rb?
<Obats> ..either from within the code or from command line. Hopefully they're the same in my case..
<Obats> Encoding.default_internal seems to be empty, I'm trying to track it down to see where this comes from
Nicmavr has quit [Read error: Connection reset by peer]
<Obats> Reading the web I thought default encoding for Ruby 2.0 would be UTF-8. So perhaps there's something in environment.rb that changes it in my case?
Nicmavr has joined #ruby
ferhaty has quit [Quit: ferhaty]
deepreds1 has joined #ruby
<Obats> Is Encoding.default_internal=Encoding::UTF_8 forbidden in the code?
queip has quit [Ping timeout: 258 seconds]
deepreds1 has quit [Ping timeout: 248 seconds]
queip has joined #ruby
chalkmonster has joined #ruby
<Obats> Strange thing is I have '# encoding: UTF-8' at the top of the file, right before checking Encoding.default_internal. But still Encoding.default_internal is empty =[
Obats has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
Obats has joined #ruby
ur5us has joined #ruby
<Obats> Strange thing is I have '#encoding: UTF-8' at the top of the file, right before checking Encoding.default_internal. But still Encoding.default_internal is empty =[
<Obats> Is the comment "just" to tell ruby about the encoding of that specific source file?
<voker57> yes
<voker57> environment.rb is rails stuff, not ruby
<voker57> it basically does Encoding.default_internal= for you
fphilipe_ has quit [Ping timeout: 258 seconds]
<voker57> protip: run ruby with -U
ur5us has quit [Ping timeout: 258 seconds]
<voker57> it should default to utf-8 if your locale is utf-8 but shit's complicated
<Obats> Ahh, that wasn't listed on the command line -h. Thanks :).
chalkmonster has quit [Quit: WeeChat 2.5]
<Obats> My default encodings problem is like this: 'TCPSocket.open(..) do |sock| .. sock.each_line do |line| ..' (Hope that was sort of readable, basically two lines) The content of line is UTF-8, but still line.encoding.name seems to be ASCII-8BIT. It seems Encoding.default_* doesn't cover that?
JoeA2552 has joined #ruby
<voker57> did you try running this code directly in ruby, w/o rails and other environment?
<Obats> voker57: Not yet. Can I do that with -e ?
deepreds1 has joined #ruby
<voker57> why do you need -e?
<voker57> ruby yourfile.rb
<voker57> also can do with -e, yes
<Obats> Got it. Sorry, new to this.
<dionysus69> hmm
<dionysus69> so I have a method with lots of hash key arguments
conta has quit [Ping timeout: 246 seconds]
<dionysus69> so the code is here https://paste.debian.net/1092595/
<dionysus69> on the line 11, I want to pass all method params to the validator
<dionysus69> as you can notice I am returning a hash
<dionysus69> I don't think it will be pretty if I save the hash, pass it to the validator and then return it if valid
<voker57> why not
DTZUZO has quit [Ping timeout: 248 seconds]
<dionysus69> so ruby doesnt save method arguments in a named variable already?
<dionysus69> like ARGS?
<dionysus69> yea just read that too, but doesnt do my thing
<leftylink> there's also **args but then there is no longer the way to make some required and/or error if an extra one is passed... unless maybe you make index_data_validator do that
<leftylink> def f(**a)
<leftylink> ops
<leftylink> wasn't ready to hit enter on that
fphilipe_ has joined #ruby
<leftylink> &>> def g(a: 5, b:) a.is_a?(Integer) end; def f(**a) g(**a) ? a : :no end; f
<rubydoc> stderr: -e:2:in `g': missing keyword: b (ArgumentError) (https://carc.in/#/r/79qy)
<leftylink> &>> def g(a: 5, b:) a.is_a?(Integer) end; def f(**a) g(**a) ? a : :no end; f(b: :yes)
<rubydoc> # => {:b=>:yes} (https://carc.in/#/r/79qz)
<dionysus69> yea I will try stay away from def f(**a)
<leftylink> will need to merge the default values back in somehow too, that is too bad
<dionysus69> ok I guess I will just save returning hash in a var
<dionysus69> and then pass it to validator
<dionysus69> anyways, as for the conventions go, how am I doing, am I breaking too many rules? :D
<dionysus69> even the way I am outputing an exception error
conta has joined #ruby
Jonopoly has joined #ruby
<dionysus69> also, is any one of the two ways preferred? raise ArgumentError if index_data_invalid?(data) || raise ArgumentError unless index_data_valid?(data)
Jonopoly has quit [Client Quit]
<dionysus69> I kind of prefer negating method name instead of negating if to unless
<voker57> yeah i also think second way is better
<voker57> eh, misread. s/yeah i also/i/
<voker57> because unless index_data_invalid becomes too hard to read
Jonopoly has joined #ruby
<dionysus69> yea that is double negation, horrible thing :D
<dionysus69> word twister game :D
<Obats> I got a lot of 'incompatible character encodings: UTF-8 and ASCII-8BIT' now after updating to ruby 2, I don't think that happened before. Am I right in assuming the handling of string mismatches has changed?
soniya29 has quit [Remote host closed the connection]
<voker57> hard to say, it's ancient history
fphilipe_ has quit [Ping timeout: 250 seconds]
za1b1tsu has joined #ruby
ellcs has joined #ruby
themsay has quit [Ping timeout: 246 seconds]
sagax has quit [Ping timeout: 258 seconds]
gregf_ has joined #ruby
gregf_ has quit [Remote host closed the connection]
ellcs has quit [Ping timeout: 264 seconds]
fphilipe_ has joined #ruby
chalkmonster has joined #ruby
conta has quit [Remote host closed the connection]
conta has joined #ruby
<ZAJDAN> some tip for array differences?
<dionysus69> ZAJDAN: [1,2,3] - [2,3] ?
<dionysus69> (...).empty? <-- if this happens then arrays are same
absolutejam4 has joined #ruby
<ZAJDAN> okok will try
absolutejam4 has quit [Ping timeout: 245 seconds]
sh7d has quit [Ping timeout: 272 seconds]
CrazyEddy has joined #ruby
themsay has joined #ruby
Obats has quit [Remote host closed the connection]
fphilipe_ has quit [Ping timeout: 250 seconds]
conta has quit [Ping timeout: 268 seconds]
jefffrails35 has joined #ruby
sh7d has joined #ruby
ua has quit [Read error: Connection reset by peer]
ua has joined #ruby
conta has joined #ruby
yalue has joined #ruby
cow[moo] has joined #ruby
evdubs has quit [Remote host closed the connection]
evdubs has joined #ruby
jcalla has quit [Ping timeout: 258 seconds]
krandi has joined #ruby
andikr has quit [Ping timeout: 246 seconds]
fphilipe_ has joined #ruby
DTZUZO has joined #ruby
hogetaro has quit [Quit: Leaving...]
conta has quit [Ping timeout: 248 seconds]
griffindy has joined #ruby
conta has joined #ruby
yqt has joined #ruby
deepreds1 has quit [Ping timeout: 245 seconds]
tdy has quit [Ping timeout: 272 seconds]
deepreds1 has joined #ruby
yqt has quit [Ping timeout: 248 seconds]
andikr has joined #ruby
absolutejam4 has joined #ruby
krandi_ has joined #ruby
krandi__ has joined #ruby
krandi___ has joined #ruby
krandi has quit [Ping timeout: 272 seconds]
andikr has quit [Ping timeout: 244 seconds]
krandi_ has quit [Ping timeout: 245 seconds]
krandi__ has quit [Ping timeout: 244 seconds]
absolutejam4 has quit [Ping timeout: 258 seconds]
deepreds1 has quit [Ping timeout: 258 seconds]
aphprentice__ has quit [Quit: Connection closed for inactivity]
involans has joined #ruby
mikecmpbll has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.5]
ZAJDAN has quit [Quit: Konversation terminated!]
jcalla has joined #ruby
chalkmonster has joined #ruby
andikr has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
vondruch_ has joined #ruby
donofrio has joined #ruby
krandi has joined #ruby
jcalla has quit [Ping timeout: 244 seconds]
krandi_ has joined #ruby
krandi___ has quit [Ping timeout: 268 seconds]
vondruch has quit [Ping timeout: 268 seconds]
vondruch_ is now known as vondruch
andikr has quit [Ping timeout: 244 seconds]
andikr has joined #ruby
krandi has quit [Ping timeout: 258 seconds]
krandi_ has quit [Ping timeout: 246 seconds]
jcalla has joined #ruby
absolutejam4 has joined #ruby
jcalla has quit [Remote host closed the connection]
jcalla has joined #ruby
absolutejam4 has quit [Ping timeout: 258 seconds]
skryking has joined #ruby
involans has quit [Remote host closed the connection]
yqt has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
sagax has joined #ruby
yqt has quit [Ping timeout: 245 seconds]
cd has quit [Quit: cd]
krandi has joined #ruby
krandi_ has joined #ruby
aupadhye has quit [Ping timeout: 244 seconds]
andikr has quit [Ping timeout: 246 seconds]
conta has quit [Ping timeout: 246 seconds]
krandi has quit [Ping timeout: 272 seconds]
sparc_ has quit []
andikr has joined #ruby
sparc_ has joined #ruby
krandi has joined #ruby
krandi_ has quit [Ping timeout: 245 seconds]
andikr has quit [Ping timeout: 272 seconds]
chalkmonster has quit [Ping timeout: 245 seconds]
s2013 has joined #ruby
BH23 has joined #ruby
andikr has joined #ruby
krandi_ has joined #ruby
krandi has quit [Ping timeout: 246 seconds]
krandi__ has joined #ruby
pwnd_nsfw` has joined #ruby
andikr has quit [Ping timeout: 258 seconds]
andikr has joined #ruby
pwnd_nsfw has quit [Ping timeout: 248 seconds]
krandi_ has quit [Ping timeout: 248 seconds]
krandi__ has quit [Ping timeout: 245 seconds]
help_me12398 has joined #ruby
krandi has joined #ruby
krandi_ has joined #ruby
andikr has quit [Ping timeout: 245 seconds]
<help_me12398> hey everybody, i have a question about some weird (rails) scopes we use - we need three scopes on a model "A" which has a beginning and ending field. all scopes are about dates (two date parameters), one scope needs to talk about how A is completely inside the two parameters, one scope is about all As which completely include the two parameters an
<help_me12398> d one scope is about where the dates just overlap in any way
krandi has quit [Ping timeout: 245 seconds]
<help_me12398> currently we're naming one A.in_date_range and another one A.including_date_range but we dont like the naming
<help_me12398> https://hastebin.com/hesozivaza.pl these are the first two ranges i mentioned in my first line
<help_me12398> we were thinking about something exclusive_in_date_range etc but we don't like anything we can come up with
unixcat has quit [Quit: ZNC - https://znc.in]
<help_me12398> im always talking about the range beginning..ending and parameter1..parameter2
segy has quit [Quit: ZNC - http://znc.in]
dbugger has joined #ruby
segy has joined #ruby
milkohol has joined #ruby
Inline has joined #ruby
donofrio_ has joined #ruby
matled- has joined #ruby
matled has quit [Read error: Connection reset by peer]
matled- is now known as matled
hagabaka has quit [Read error: Connection reset by peer]
andikr has joined #ruby
donofrio has quit [Ping timeout: 272 seconds]
hagabaka has joined #ruby
Technodrome has joined #ruby
krandi has joined #ruby
krandi_ has quit [Ping timeout: 244 seconds]
BH23 has quit [Ping timeout: 258 seconds]
krandi_ has joined #ruby
andikr has quit [Ping timeout: 244 seconds]
yqt has joined #ruby
BH23 has joined #ruby
andikr has joined #ruby
krandi has quit [Ping timeout: 272 seconds]
krandi_ has quit [Ping timeout: 245 seconds]
Technodrome has quit [Remote host closed the connection]
JoeA2552 has quit [Quit: Textual IRC Client: www.textualapp.com]
yqt has quit [Ping timeout: 258 seconds]
schne1der has quit [Ping timeout: 248 seconds]
aupadhye has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
krandi has joined #ruby
Snowy has joined #ruby
krandi_ has joined #ruby
SeepingN has joined #ruby
andikr has quit [Ping timeout: 272 seconds]
krandi has quit [Ping timeout: 268 seconds]
absolutejam4 has joined #ruby
Technodrome has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
Dr_MDMA_MD has joined #ruby
andikr has joined #ruby
absolutejam4 has quit [Ping timeout: 245 seconds]
krandi has joined #ruby
BH23 has quit [Ping timeout: 245 seconds]
krandi_ has quit [Ping timeout: 268 seconds]
andikr has quit [Ping timeout: 246 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BH23 has joined #ruby
greengriminal has joined #ruby
yqt has joined #ruby
chalkmonster has joined #ruby
Fr4n has joined #ruby
yqt has quit [Ping timeout: 245 seconds]
andikr has joined #ruby
krandi has quit [Ping timeout: 268 seconds]
Cthulu201 has quit [Quit: Nowhere special. I always wanted to go there.]
krandi has joined #ruby
Cthulu201 has joined #ruby
agent_white has joined #ruby
iNs_ has joined #ruby
krandi_ has joined #ruby
iNs has quit [Ping timeout: 260 seconds]
andikr has quit [Ping timeout: 244 seconds]
krandi has quit [Ping timeout: 246 seconds]
oryman has joined #ruby
oryman has quit [Remote host closed the connection]
BH23 has quit [Ping timeout: 246 seconds]
BH23 has joined #ruby
kaiser has joined #ruby
s2013 has joined #ruby
kaiser has quit [Client Quit]
tdy has joined #ruby
kaiser has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
help_me12398 has quit [Ping timeout: 245 seconds]
krandi_ has quit [Remote host closed the connection]
DaRock has quit [Ping timeout: 272 seconds]
BH23 has quit [Ping timeout: 245 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
aupadhye has quit [Remote host closed the connection]
jefffrails35 has quit [Quit: Leaving]
Technodrome has joined #ruby
yqt has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yqt has quit [Ping timeout: 272 seconds]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
jinie has joined #ruby
jinie has quit [Client Quit]
SeepingN has joined #ruby
lxsameer has quit [Quit: out]
ascarter has joined #ruby
za1b1tsu has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
ascarter has quit [Read error: Connection reset by peer]
sgen has joined #ruby
ascarter has joined #ruby
jinie has joined #ruby
milkohol has quit [Quit: milkohol]
Norrin has quit [Changing host]
Norrin has joined #ruby
ascarter_ has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ascarter has quit [Ping timeout: 276 seconds]
Emmanuel_Chanel has joined #ruby
absolutejam4 has joined #ruby
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
jinie has joined #ruby
kaiser has quit [Ping timeout: 272 seconds]
hiroaki has joined #ruby
ramfjord has joined #ruby
za1b1tsu has quit [Ping timeout: 246 seconds]
conta has joined #ruby
ascarter_ has quit [Quit: Textual IRC Client: www.textualapp.com]
absolutejam4 has quit [Ping timeout: 244 seconds]
SeepingN has joined #ruby
SeepingN has quit [Client Quit]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yqt has joined #ruby
Snowy_ has joined #ruby
Snowy has quit [Ping timeout: 268 seconds]
greengriminal has quit [Quit: This computer has gone to sleep]
fphilipe has joined #ruby
s2013 has joined #ruby
yqt has quit [Ping timeout: 248 seconds]
schne1der has joined #ruby
gix has joined #ruby
fphilipe_ has quit [Ping timeout: 250 seconds]
Snowy_ has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
duderonomy has joined #ruby
snickers has joined #ruby
greengriminal has joined #ruby
greengriminal has quit [Client Quit]
greengriminal has joined #ruby
Snowy has quit [Remote host closed the connection]
shanks8080 has joined #ruby
Snowy has joined #ruby
themsay has quit [Ping timeout: 268 seconds]
Snowy has quit [Ping timeout: 248 seconds]
shtirlic has quit [Quit: ZNC - http://znc.in]
shtirlic has joined #ruby
shtirlic has quit [Remote host closed the connection]
sauvin has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby
absolutejam4 has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
sgen has quit [Ping timeout: 276 seconds]
mikecmpbll has joined #ruby
conta has quit [Quit: conta]
wildermind has joined #ruby
themsay has joined #ruby
absolutejam4 has quit [Ping timeout: 245 seconds]
cca4 has joined #ruby
yqt has joined #ruby
involans has joined #ruby
involans has quit [Remote host closed the connection]
greengriminal has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jinie_ has joined #ruby
jenrzzz has joined #ruby
<cca4> Hello everyone, I use the gem omniauth facebook https://github.com/mkdynamic/omniauth-facebook so that people can connect to my application via facebook. I would like to test my OmniauthCallbacksController < Currency::OmniauthCallbacksController but I don't see how to do it. I found this article but we use minitest for testing. How can I adapt this
jinie has quit [Ping timeout: 248 seconds]
jinie_ is now known as jinie
greengriminal has quit [Quit: This computer has gone to sleep]
jinie_ has joined #ruby
jinie_ has quit [Remote host closed the connection]
jinie has quit [Ping timeout: 272 seconds]
yqt has quit [Ping timeout: 245 seconds]
jinie has joined #ruby
sgen has joined #ruby
sagax has quit [Ping timeout: 272 seconds]
schne1der has quit [Ping timeout: 268 seconds]
yalue has quit [Quit: Leaving]
Snowy has joined #ruby
greengriminal has joined #ruby
absolutejam4 has joined #ruby
redlegion has quit [Quit: The Lounge - https://thelounge.chat]
<havenwood> glad to see that merged
sagax has joined #ruby
SeepingN has joined #ruby
amrx_ has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
yqt has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
yqt has quit [Ping timeout: 248 seconds]
Snowy has quit [Ping timeout: 246 seconds]
Nicmavr has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.5]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
BTRE has quit [Ping timeout: 268 seconds]
Emmanuel_Chanel has quit [Quit: Leaving]
jinie has joined #ruby
BTRE has joined #ruby
Emmanuel_Chanel has joined #ruby
jinie_ has joined #ruby
jinie has quit [Ping timeout: 245 seconds]
jinie_ is now known as jinie
davor has quit [Ping timeout: 245 seconds]
jinie has quit [Ping timeout: 245 seconds]
davor has joined #ruby
ramfjord has quit [Ping timeout: 258 seconds]
jinie has joined #ruby
Snowy has joined #ruby
cca4 has quit [Ping timeout: 260 seconds]
kaiser has joined #ruby
sgen has quit [Ping timeout: 250 seconds]
hiroaki has quit [Ping timeout: 246 seconds]
s2013 has joined #ruby
jinie_ has joined #ruby
yqt has joined #ruby
jinie has quit [Ping timeout: 244 seconds]
jinie_ is now known as jinie
ramfjord has joined #ruby
Bounga has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yqt has quit [Ping timeout: 246 seconds]
jinie_ has joined #ruby
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jinie has quit [Ping timeout: 272 seconds]
jinie_ is now known as jinie
hiroaki has joined #ruby
wildermind has quit [Quit: Connection closed for inactivity]
lucasb has joined #ruby
Pascal has joined #ruby
greengriminal has quit [Quit: Leaving]
ur5us has joined #ruby
fphilipe has quit [Ping timeout: 248 seconds]
aef has quit [Ping timeout: 258 seconds]
kaiser has quit [Quit: Leaving]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Bounga> Anyone using Emacs, Ruby and LSP?
Snowy has quit [Quit: ragequit]
wildermind has joined #ruby
kapilp has quit [Quit: Connection closed for inactivity]
ascarter has joined #ruby
fphilipe has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
yqt has joined #ruby
<havenwood> Bounga: LSP?
yqt has quit [Ping timeout: 248 seconds]
<Bounga> Language Server Protocol
<havenwood> Bounga: Aha
oetjenj has joined #ruby
Vaevictus has quit [Quit: leaving]
jenrzzz has joined #ruby
<leftylink> ah, too bad, it was set up to be a good "what do you call a fish without an eye" joke
<leftylink> except s/fish/lisp/
mniip has quit [Remote host closed the connection]
fphilipe has quit [Ping timeout: 268 seconds]
cd has joined #ruby
houhoulis has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 245 seconds]
m27frogy_ has quit [Quit: ZNC - https://znc.in]
m27frogy has joined #ruby
Technodrome has joined #ruby
bitwinery has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
tdy has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
tdy has joined #ruby
tdy has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
jenrzzz has joined #ruby
morenoh11 has joined #ruby
<morenoh11> anyone know why this solution doesn't pass all cases? https://leetcode.com/problems/reverse-string/discuss/341404/My-ruby-solution-is-not-being-accepted
orbyt_ has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jonopoly has quit [Quit: WeeChat 2.5]
aphprentice__ has joined #ruby
Swyper has quit [Remote host closed the connection]
<Norrin> any way to, from unix shell, give some code for pry to run, it run it, and it exits immediately?
<havenwood> Norrin: You can do that with Ruby directly: ruby -e "p 'run this'"
<Norrin> p?
<havenwood> Norrin: It's like #puts + #inspect
<havenwood> Norrin: Printing for debugging
<havenwood> Norrin: You could run the same with Pry if you'd like then exit: pry -e "p 'run this'; exit"
<Norrin> ok, but i want Pry because it'll attach to the web app that i have running
<havenwood> Norrin: But no reason to use Pry there ^ when you can run it with Ruby directly.
yqt has joined #ruby
<havenwood> Norrin: Normally, you put a `binding.pry` in your webserver code, then run it.
<havenwood> Norrin: You'll then get a Pry REPL at that binding.
<leftylink> morenoh11: run it on %w(a s d f)
yqt has quit [Ping timeout: 268 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
absolutejam4 has quit [Ping timeout: 246 seconds]
absolutejam4 has joined #ruby
absolutejam4 has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 246 seconds]
ramfjord has joined #ruby
agent_white has quit [Quit: later]
Swyper has joined #ruby
ur5us has quit []
mikecmpbll has quit [Quit: inabit. zz.]
ramfjord has quit [Ping timeout: 258 seconds]
s2013 has joined #ruby
Swyper has quit [Remote host closed the connection]
amrx_ has quit [Ping timeout: 258 seconds]
Swyper has joined #ruby