havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.4, 2.5.6, 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!
henninb has joined #ruby
fphilipe_ has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
skryking has quit [Ping timeout: 245 seconds]
skryking has joined #ruby
fphilipe_ has quit [Ping timeout: 276 seconds]
psilly0 has quit [Quit: psilly0]
amateur_rubyist has quit [Remote host closed the connection]
amateur_rubyist has joined #ruby
r29v has quit [Quit: r29v]
amateur_rubyist has quit [Ping timeout: 248 seconds]
catbusters has joined #ruby
henninb has quit [Remote host closed the connection]
r29v has joined #ruby
bambanx has joined #ruby
s3nd1v0g1us has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
^amra has joined #ruby
<^amra> I have a string "^1SomeText1^2SomeText2^NSomeText3", how can I replace all between ^1 and ^2, ^2 and ^N, ^N and ^N+i by <font color="#f00">$1</font>
grilix has joined #ruby
<^amra> For example: /\^1/
<^amra> For example: /\^1SomeText1^/ to <font color="#f00">SomeText1</font>, and /\^2SomeText2^/ to <font color="#0cc">SomeText2</font>
<^amra> For example: /\^1SomeText1^/ to <font color="#f00">SomeText1</font>^, and /\^2SomeText2^/ to <font color="#0cc">SomeText2</font>^
Swyper has joined #ruby
RiPuk has quit [Ping timeout: 245 seconds]
r29v has quit [Quit: r29v]
greengriminal has joined #ruby
<havenwood> ^amra: Where do those hex codes come from?
<^amra> Which one?
<^amra> #f00? html
<mozzarella> yeah but both are different
<^amra> for each text different color #hex code
<mozzarella> how do you determine which one, though
<havenwood> ^amra: Why is the zero one zero and why is the city-cee one city-cee?
hope_canyon has joined #ruby
<^amra> havenwood, umm, what do you mean?
<leftylink> anytime I'm looking to do something with text between two instances of T, I consider splitting the text on T with String#split.
john2496 has quit []
<^amra> Hm, this is idea... I need to split text first? Then work with each splitted value, right?
<havenwood> ^amra: An example of leftylink's strategy would be: "^1SomeText1^2SomeText2^3SomeText3"[/(?<=\A\^1).+(?=\d+\z)/].split(/\d+\^\d+/)
henninb has joined #ruby
<havenwood> #=> ["SomeText", "SomeText", "SomeText"]
<^amra> Hm
<^amra> And how can I split this? ^1U^2n^3n^4a^5m^6e^7d^8P^9l^0a^7yer_1 split(/\^\d/) ?
<leftylink> did you find it insufficient for your needs? if so, in what way insufficient?
<havenwood> ^amra: What should the result be?
<havenwood> ^amra: Is "^0a" the digit "0a" or the digit "0"?
<havenwood> ^amra: hex or not?
<^amra> "^1U^2n^3n^4a^5m^6e^7d^8P^9l^0a^7yer_1"="<font color="#f00">U</font><font color="#0f0">n<font color="#cc0"n</font>.........."
<^amra> ^1 ^2 ^3 used as color markers
<^amra> This is just a combination for parser to set the color for symbols after ^N... till next ^N in the string
greengriminal has quit [Quit: This computer has gone to sleep]
<havenwood> ^amra: '^1U^2n^3n^4a^5m^6e^7d^8P^9l^0a^7yer_1'.scan(/(?<=\^\d)[^\^]+/)
<havenwood> ^amra: Then map.
<^amra> one sec
<^amra> I have ["U", "n", "n", "a", "m", "e", "d", "P", "l", "a", "yer_1"], but how can I understand where is ^1 color code or ^2 ^3 etc?
<^amra> And this code ignores digits in text
<^amra> '^1U1^2n223^3nd^4a22^5m^6e^7d^8P^9l^0a^7yer_1'.scan(/(?<=\^\d)[^\^\d]+/) - will be without digits in array
<^amra> I do this: '^1U1^2n223^3nd^4a22^5m^6e^7d^8P^9l^0a^7yer_1'.split(/\^\d/) and get ["", "U1", "n223", "nd", "a22", "m", "e", "d", "P", "l", "a", "yer_1"]
<^amra> But i lost the ^1 ^2 ^N color codes
<leftylink> then it looks like you shouldn't split on the \d, no? only the ^.
<havenwood> ^amra: You should show us the desired results up front.
<havenwood> ^amra: If you show us what you have, but not what you want, we can only stab wildly.
<^amra> '^1U1^2n223^3nd^4a22^5m^6e^7d^8P^9l^0a^7yer_1' = ["^1U1", "^2n223", "^3nd", "^4a22", "^5m", "^6e", "^7d", "^8P", "^9l", "^0a", "^7yer_1"]
<^amra> This is what I wont to do
<^amra> Now when I use split(/\^\d/) all ^N color markers was cropped out
<^amra> splitting is correct but without needed color markers ^N
<havenwood> ^amra: We didn't know those were color markers. mozzarella asked: <mozzarella>:how do you determine which one, though
<^amra> havenwood, sorry my fault. I want to split all by ^N(*.*)^N
<leftylink> I accuse being too specific, but okay I'll humour it. note that if an Enumerable needs to be split before each occurrence of a given element (here, '^'), then Enumerable#slice_before is named appropriately for the occasion.
<al2o3-cr> ^amra: '^1U1^2n223^3nd^4a22^5m^6e^7d^8P^9l^0a^7yer_1'.split(/(?=\^)/)
wildtrees has quit [Quit: Leaving]
<^amra> Like a charm
<^amra> Thanks :)
<havenwood> &24>> '^1U^2n^3n^4a^5m^6e^7d^8P^933l^0a^7yer_1'.scan(/[^\^]+/).map { |s| color, _, content = s.partition(/(?=\D)/); [color, content] }
<rubydoc> stderr: playpen: timeout triggered! (https://carc.in/#/r/7goa)
<al2o3-cr> ^amra: it's easy to get an answer when desired output is shown :P
<havenwood> #=> [["1", "U"], ["2", "n"], ["3", "n"], ["4", "a"], ["5", "m"], ["6", "e"], ["7", "d"], ["8", "P"], ["933", "l"], ["0", "a"], ["7", "yer_1"]]
<^amra> But if I set "^^" or "\^" it's splitted to, but should not
<havenwood> ^amra: Give us a Gist with several inputs and the corresponding correct output? Better yet, write tests that fail. :)
<^amra> Ok, sec pls
<havenwood> ^amra: Are you trying to get pairs of numbers and content like I show above?
<^amra> yes
<havenwood> ^amra: When you get to the level of writing tests that fail, you'll find you'll get solutions super quick.
<leftylink> it occurs to me that https://www.vidarholen.net/contents/blog/?p=766 would also work in Ruby
<^amra> :)
<havenwood> (Since we'll just make the tests pass.)
<hope_canyon> hi folks - have tried in the ROR channel already, thought i'd try here. I have a question for SCSS users: can anyone tell me precisely when SCSS is compiled and output as CSS in a rails app? I'm doing some dumb shit with IMGKit and it will apparently only accept paths to css files for the stylesheets attribute accessor. If there's a compiled css file somewhere in the application when the server runs, I am guessing i could just use that?
<havenwood> leftylink: Create a file with the content: loop { fork { load File.absolute_path __FILE__ } }
<havenwood> leftylink: Just don't run it. >.>
<havenwood> hope_canyon: Would that depend on whether you're using Sprockets or Webpacker?
a0s510 has quit [Ping timeout: 264 seconds]
<^amra> havenwood, this is the three view of output
<havenwood> ^amra: This is a picture of what?
<^amra> Where is every string with ^\d ^\w is a marker.
<^amra> And after that text in marker
<hope_canyon> havenwood: sprockets! we're on rails 4.2.1.
<havenwood> ^amra: I'm totally lost on what this is and what you're trying to show. It's better to show us text. Gists are nice since they can be edited, we can fork them, comment, etc.
<^amra> ^^f12U1^x1^111d => ^<^f>12U1<^x>1<^1>11d
<^amra> Oh ok
<^amra> Which gist I must use?
<havenwood> ^amra: I don't get it. I'd say do a gist of example inputs with desired output for each.
<^amra> ok
<havenwood> ^amra: Do you have a GitHub account? If so, just gist.github.com.
<havenwood> ^amra: An alternative is: https://dpaste.de/
hays has joined #ruby
greengriminal has joined #ruby
howdoi has joined #ruby
fphilipe_ has joined #ruby
fphilipe_ has quit [Ping timeout: 264 seconds]
a0s510 has joined #ruby
MrCrackPot has joined #ruby
amateur_rubyist has joined #ruby
ua_ has joined #ruby
amateur_rubyist has quit [Ping timeout: 245 seconds]
ua has quit [Ping timeout: 245 seconds]
grilix has quit [Ping timeout: 268 seconds]
greengriminal has quit [Quit: This computer has gone to sleep]
henninb has quit [Quit: leaving]
x86sk has joined #ruby
bmurt has joined #ruby
gb_away has joined #ruby
a0s510 has quit [Remote host closed the connection]
tdy has joined #ruby
AJA4350 has quit [Quit: AJA4350]
jokester has quit [Quit: horrified]
gix has quit [Ping timeout: 268 seconds]
psilly0 has joined #ruby
psilly0 has quit [Remote host closed the connection]
iNs has quit [Remote host closed the connection]
iNs has joined #ruby
brool has quit [Ping timeout: 276 seconds]
alireza has joined #ruby
<alireza> hey guys what do you think about this peice code which uses Dry::Monads fo an interactor/service object
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
bambanx has quit [Quit: Leaving]
tdy has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
tdy has joined #ruby
alireza has quit [Quit: WeeChat 2.5]
fphilipe_ has joined #ruby
jokester has joined #ruby
fphilipe_ has quit [Ping timeout: 252 seconds]
Swyper has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has joined #ruby
^amra has quit [Quit: Leaving]
orbyt_ has quit [Read error: Connection reset by peer]
r3m has quit [Quit: WeeChat 2.6-dev]
s3nd1v0g1us has quit [Quit: WeeChat 2.4]
lalitmee has joined #ruby
r3m_ has joined #ruby
r3m_ has quit [Client Quit]
r3m_ has joined #ruby
flak has joined #ruby
rippa has quit [Ping timeout: 245 seconds]
sagax has quit [Ping timeout: 245 seconds]
Swyper has quit [Remote host closed the connection]
greengriminal has joined #ruby
r3m_ has quit [Quit: WeeChat 2.6-dev]
r3m_ has joined #ruby
sagax has joined #ruby
genpaku has quit [Ping timeout: 268 seconds]
genpaku has joined #ruby
Inline has quit [Quit: Leaving]
dbugger has joined #ruby
catbusters has quit [Quit: Connection closed for inactivity]
greengriminal has quit [Quit: Leaving]
chalkmonster has joined #ruby
oetjenj has joined #ruby
tdy has quit [Ping timeout: 248 seconds]
esrse has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rsenic_ has quit [Quit: Leaving]
rsenic has joined #ruby
flak has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
sauvin has joined #ruby
Lothian has joined #ruby
thomas_25 has joined #ruby
absolutejam has joined #ruby
thomas_25 has quit [Client Quit]
tdy has joined #ruby
dionysus69 has joined #ruby
fphilipe_ has joined #ruby
schneider has joined #ruby
Lothian has quit [Remote host closed the connection]
amateur_rubyist has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
schneider has quit [Ping timeout: 244 seconds]
emptyflask has quit [Ping timeout: 244 seconds]
amateur_rubyist has quit [Ping timeout: 248 seconds]
BTRE has quit [Ping timeout: 248 seconds]
chalkmonster has quit [Quit: WeeChat 2.5]
sameerynho has joined #ruby
absolutejam has quit [Ping timeout: 244 seconds]
thomas_25 has joined #ruby
MrCrackPot has quit [Remote host closed the connection]
fphilipe has joined #ruby
TomyWork has joined #ruby
hope_canyon has quit [Quit: Leaving]
fphilipe_ has quit [Ping timeout: 276 seconds]
fphilipe has quit [Ping timeout: 264 seconds]
fphilipe has joined #ruby
schneider has joined #ruby
absolutejam has joined #ruby
queip has quit [Ping timeout: 268 seconds]
dionysus69 has joined #ruby
MrCrackPot has joined #ruby
queip has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
jmcgnh has quit [Ping timeout: 245 seconds]
jmcgnh_ has joined #ruby
lalitmee has quit [Ping timeout: 258 seconds]
jmcgnh_ is now known as jmcgnh
jmcgnh is now known as jmcgnh_
jmcgnh_ is now known as jmcgnh
CrazyEddy has joined #ruby
amateur_rubyist has joined #ruby
chalkmonster has joined #ruby
amateur_rubyist has quit [Remote host closed the connection]
amateur_rubyist has joined #ruby
amateur_rubyist has quit [Ping timeout: 268 seconds]
vondruch has quit [Quit: vondruch]
baojg has quit [Ping timeout: 244 seconds]
vondruch has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.5]
sylario has joined #ruby
queip has quit [Ping timeout: 245 seconds]
queip has joined #ruby
lalitmee has joined #ruby
tdy has quit [Ping timeout: 268 seconds]
amateur_rubyist has joined #ruby
amateur_rubyist has quit [Ping timeout: 244 seconds]
za1b1tsu has joined #ruby
BTRE has joined #ruby
paraxial has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
galaxie has quit [Remote host closed the connection]
galaxie has joined #ruby
liKe2k1 has quit [Ping timeout: 246 seconds]
x86sk has quit [Quit: Connection closed for inactivity]
amateur_rubyist has joined #ruby
iffraff has quit [Ping timeout: 245 seconds]
ellcs has joined #ruby
Tuor has joined #ruby
Tuor has joined #ruby
Tuor has quit [Changing host]
BuildTheRobots has quit []
dionysus69 has quit [Read error: Connection reset by peer]
BuildTheRobots has joined #ruby
dionysus69 has joined #ruby
deathwishdave has joined #ruby
amateur_rubyist has quit [Remote host closed the connection]
amateur_rubyist has joined #ruby
amateur_rubyist has quit [Ping timeout: 248 seconds]
fphilipe has quit [Ping timeout: 245 seconds]
Tuor has joined #ruby
Tuor has quit [Quit: Konversation terminated!]
BTRE has quit [Ping timeout: 248 seconds]
linduxed has quit [Ping timeout: 244 seconds]
BTRE has joined #ruby
Freshnuts has quit [Quit: Leaving]
howdoi has joined #ruby
Tuor has joined #ruby
absolutejam has quit [Ping timeout: 268 seconds]
MrCrackPot has quit [Quit: Something went wrong again oh the joys]
Nicmavr has quit [Read error: Connection reset by peer]
absolutejam has joined #ruby
Nicmavr has joined #ruby
BTRE has quit [Ping timeout: 244 seconds]
sagax has quit [Remote host closed the connection]
star_prone1 has joined #ruby
star_prone has quit [Ping timeout: 245 seconds]
BTRE has joined #ruby
lalitmee has quit [Remote host closed the connection]
lalitmee has joined #ruby
sameerynho has quit [Ping timeout: 248 seconds]
Eiam has quit [Ping timeout: 276 seconds]
dionysus69 has quit [Quit: dionysus69]
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lalitmee has quit [Remote host closed the connection]
AJA4350 has joined #ruby
deathwishdave has joined #ruby
lalitmee has joined #ruby
lalitmee has quit [Max SendQ exceeded]
lalitmee has joined #ruby
FernandoBasso has joined #ruby
sameerynho has joined #ruby
vondruch_ has joined #ruby
vondruch has quit [Ping timeout: 245 seconds]
vondruch_ is now known as vondruch
al-damiri has joined #ruby
amateur_rubyist has joined #ruby
dionysus69 has joined #ruby
za1b1tsu has quit [Read error: Connection reset by peer]
deathwishdave has quit [Quit: Textual IRC Client: www.textualapp.com]
ua_ has quit [Ping timeout: 248 seconds]
esrse has quit [Ping timeout: 268 seconds]
ua has joined #ruby
za1b1tsu has joined #ruby
vondruch has quit [Quit: vondruch]
yann-kaelig has joined #ruby
FernandoBasso has quit [Remote host closed the connection]
fphilipe has joined #ruby
sh7d has quit [Quit: meh]
sh7d_ has joined #ruby
tim17d has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
brool has joined #ruby
FastJack has quit [Ping timeout: 264 seconds]
FastJack has joined #ruby
za1b1tsu has quit [Read error: Connection reset by peer]
fuzzface has joined #ruby
lalitmee has quit [Read error: Connection reset by peer]
FastJack has quit [Ping timeout: 264 seconds]
FastJack has joined #ruby
lucasb has joined #ruby
FastJack has quit [Ping timeout: 264 seconds]
schneider has quit [Ping timeout: 245 seconds]
n13z has joined #ruby
dbugger has quit [Ping timeout: 264 seconds]
nahra has quit [Quit: ERC (IRC client for Emacs 25.1.1)]
yann-kaelig has quit [Quit: yann-kaelig]
crankharder has joined #ruby
baojg has joined #ruby
georgie has joined #ruby
tsujp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tsujp has joined #ruby
georgie has quit []
GodFather has quit [Remote host closed the connection]
GodFather has joined #ruby
DTZUZO has quit [Ping timeout: 248 seconds]
yann-kaelig has joined #ruby
chalkmonster has joined #ruby
ua has quit [Ping timeout: 245 seconds]
Technodrome has joined #ruby
ua has joined #ruby
ua has quit [Ping timeout: 245 seconds]
tsujp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
yann-kaelig has quit [Quit: yann-kaelig]
tsujp has joined #ruby
bmurt has quit [Ping timeout: 272 seconds]
dionysus69 has quit [Ping timeout: 244 seconds]
dbugger has joined #ruby
pinky has left #ruby [#ruby]
Inline has joined #ruby
yann-kaelig has joined #ruby
bhaak has quit [Ping timeout: 245 seconds]
emptyflask has joined #ruby
robotcars has left #ruby [#ruby]
ua has joined #ruby
Technodrome has quit [Ping timeout: 258 seconds]
yann-kaelig has quit [Quit: yann-kaelig]
yann-kaelig has joined #ruby
<cjohnson> Does anybody here use solargraph as a lsp for ruby? How satisfied are you with it?
<cjohnson> Last I used it, it was marginally better than just running ctags. Has that improved?
grilix has joined #ruby
<cjohnson> havenwood: oh btw thanks for your response yesterday
<cjohnson> That's where I landed as well
Swyper has joined #ruby
<cjohnson> Nice to know about #then
thomas_25 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ravenous_ has quit [Read error: Connection reset by peer]
ravenous_ has joined #ruby
rippa has joined #ruby
sagax has joined #ruby
greengriminal has joined #ruby
Swyper has quit [Remote host closed the connection]
za1b1tsu has joined #ruby
fuzzface has quit [Quit: Leaving]
poontangmessiah has joined #ruby
john2496 has joined #ruby
ElFerna has joined #ruby
tsujp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
absolutejam has quit [Ping timeout: 258 seconds]
blizzow has joined #ruby
grilix has quit [Ping timeout: 246 seconds]
istrasci has joined #ruby
jottr has joined #ruby
kssm has joined #ruby
thomas_25 has joined #ruby
banisterfiend has joined #ruby
banisterfiend has quit [Client Quit]
meinside has quit [Quit: Connection closed for inactivity]
r29v has joined #ruby
ElFerna has quit [Remote host closed the connection]
banisterfiend has joined #ruby
FastJack has joined #ruby
ellcs has quit [Ping timeout: 245 seconds]
Technodrome has joined #ruby
emptyflask has quit [Ping timeout: 272 seconds]
vondruch has joined #ruby
mozzarella has quit [Read error: Connection reset by peer]
emptyflask has joined #ruby
mozzarella has joined #ruby
teardown has joined #ruby
thomas_25 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ellcs has joined #ruby
DTZUZO has joined #ruby
jottr has quit [Ping timeout: 268 seconds]
DTZUZO has quit [Ping timeout: 268 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MrCrackPot has joined #ruby
brool has quit [Ping timeout: 276 seconds]
wildtrees has joined #ruby
wildtrees has quit [Max SendQ exceeded]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Tuor has quit [Quit: Konversation terminated!]
banisterfiend has joined #ruby
grilix has joined #ruby
suukim has joined #ruby
r29v has quit [Ping timeout: 245 seconds]
tpanarch1st has joined #ruby
<havenwood> cjohnson: Yeah, #then and #tap both come in handy. I still want a functional style pipeline operator. :)
jacksop has joined #ruby
grilix has quit [Ping timeout: 248 seconds]
<havenwood> If you use rdoc, there's an rdoc CVE so update the rdoc gem and regenerate your docs!
<havenwood> gem install rdoc -f
<havenwood> gem rdoc --all --overwrite
<havenwood> And new Ruby versions with rdoc fixes: https://www.ruby-lang.org/en/news/2019/08/28/ruby-2-6-4-released/
<havenwood> The new Rubies are available on mirrors, ruby-install, RVM and ruby-build.
<al2o3-cr> this is pretty cool: ruby -ropen-uri -e'$><<(URI("http://v2.wttr.in/Los_Angeles").open &:read)'
* al2o3-cr needs a better font
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TomyWork has quit [Ping timeout: 246 seconds]
dinfuehr has quit [Ping timeout: 258 seconds]
<havenwood> al2o3-cr: nice
dinfuehr has joined #ruby
<al2o3-cr> ;)
<havenwood> al2o3-cr: I'd write it: ruby -r open-uri -e "puts URI('https://v2.wttr.in/Los_Angeles').open.read"
poontangmessiah has quit [Read error: Connection reset by peer]
emptyflask has quit [Ping timeout: 245 seconds]
tdy has joined #ruby
banisterfiend has joined #ruby
r29v has joined #ruby
<al2o3-cr> havenwood: ah, yep! wasn't thinking :)
queip has quit [Ping timeout: 246 seconds]
tdy has quit [Ping timeout: 272 seconds]
suukim has quit [Quit: Konversation terminated!]
tdy has joined #ruby
queip has joined #ruby
fphilipe has quit [Read error: Connection reset by peer]
teser has joined #ruby
<teser> Hi
<teser> Does anybody know what is #{@ in: test = ":order => '#{@order}'"
stryek has joined #ruby
thomas_25 has joined #ruby
queip has quit [Ping timeout: 245 seconds]
thomas_25 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bhaak has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
queip has joined #ruby
cliluw has joined #ruby
<jacksop> teser: Ruby String interpolation is being used to substitute in the value of the class instance variable @order - see https://www.rubyguides.com/2018/01/ruby-string-methods/#What_is_String_Interpolation
iffraff has joined #ruby
<teser> jacksop, thanks. one more thing: when is the func(path: '/path') used - I mean the parameter followed by a colon, then the string ?
banisterfiend has joined #ruby
<havenwood> teser: That's commonly referred to as a keyword argument.
Technodrome has joined #ruby
<jacksop> teser: another link :) - https://thoughtbot.com/blog/ruby-2-keyword-arguments
<jacksop> Ha. Beat me to it
gix has joined #ruby
<teser> Thank you!
iffraff has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
glosoli has joined #ruby
istrasci has quit [Remote host closed the connection]
tdy has quit [Ping timeout: 258 seconds]
dionysus69 has joined #ruby
amateur_rubyist has quit [Remote host closed the connection]
oetjenj has joined #ruby
jmcgnh has quit [Ping timeout: 248 seconds]
<NL3limin4t0r> teser: Adding to what jacksop already said. You can find the Ruby documentation about string interpolation here: https://ruby-doc.org/core-2.6.3/doc/syntax/literals_rdoc.html#label-Strings and the documentation about instance variables here: https://ruby-doc.org/core-2.6.3/doc/syntax/assignment_rdoc.html#label-Instance+Variables
jmcgnh has joined #ruby
NL3limin4t0r is now known as NL3limin4t0r_afk
grilix has joined #ruby
glosoli has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Read error: Connection reset by peer]
jacksop has quit []
dionysus69 has joined #ruby
tdy has joined #ruby
al-damiri has quit [Quit: Connection closed for inactivity]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has joined #ruby
Technodrome has quit [Ping timeout: 272 seconds]
crankharder has quit [Ping timeout: 268 seconds]
RiPuk has joined #ruby
banisterfiend has joined #ruby
bmurt has joined #ruby
cthu| has joined #ruby
yorickpeterse has joined #ruby
Freshnuts has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
Ven`` has joined #ruby
oetjenj has joined #ruby
yorickpeterse has quit [Changing host]
yorickpeterse has joined #ruby
oetjenj has quit [Client Quit]
tpanarch1st has quit [Quit: Thanks for your help, nice to see you, take care.]
cthulchu_ has quit [Ping timeout: 244 seconds]
oetjenj has joined #ruby
yorickpeterse has quit [Client Quit]
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]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
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]
oetjenj has joined #ruby
tdy has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
hiroaki has joined #ruby
oetjenj has quit [Client Quit]
tdy has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
banisterfiend has joined #ruby
brool has joined #ruby
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
thomas_25 has joined #ruby
fphilipe has joined #ruby
englishm has quit [Excess Flood]
englishm has joined #ruby
bambanx has joined #ruby
sebcarotte has joined #ruby
<sebcarotte> Hi everyone I have an error when I try to install a gem :
<sebcarotte> ERROR: Failed to build gem native extension.
<sebcarotte> Can someone help me ?
ElFerna has joined #ruby
za1b1tsu has quit [Read error: Connection reset by peer]
absolutejam has joined #ruby
chalkmonster has quit [Ping timeout: 245 seconds]
SCHAPiE has quit [Quit: ZNC - https://znc.in]
za1b1tsu has joined #ruby
<brool> are you on mac?
<brool> and which gem are you trying to install
<sebcarotte> I'm on Linux
<sebcarotte> the gem is called t
<brool> just t?
<nius> lol
<brool> when i google your error message the most common answer i see is for you to install "ruby-dev", but those comments are from a few years ago so i don't know if they're still relevant
RiPuk has quit [Ping timeout: 248 seconds]
SCHAPiE has joined #ruby
RiPuk has joined #ruby
sagax has quit [Quit: Konversation terminated!]
sagax has joined #ruby
<al2o3-cr> sebcarotte: start with pasting the full error.
<brool> on a paste bin
<al2o3-cr> sebcarotte: to a pastebin of your choice
<al2o3-cr> https://dpaste.de is one
BTRE has quit [Remote host closed the connection]
<al2o3-cr> it most likely is ruby-dev isn't installed
howdoi has quit [Quit: Connection closed for inactivity]
<brool> is it just me or does that site not support c++?
<brool> reee
ravenous_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RiPuk has quit [Ping timeout: 245 seconds]
Rapture has joined #ruby
<al2o3-cr> brool: it just works under C
<al2o3-cr> maybe not
absolutejam has quit [Ping timeout: 258 seconds]
<brool> T_T
AJA4350 has quit [Ping timeout: 245 seconds]
s2013 has joined #ruby
thomas_25 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BTRE has joined #ruby
ur5us has joined #ruby
tdy has quit [Ping timeout: 245 seconds]
dionysus69 has quit [Ping timeout: 272 seconds]
SeepingN has joined #ruby
RiPuk has joined #ruby
ElFerna has quit [Remote host closed the connection]
chambln has joined #ruby
Technodrome has joined #ruby
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
banisterfiend has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
banisterfiend has quit [Client Quit]
banisterfiend has joined #ruby
bmurt has joined #ruby
bmurt has quit [Client Quit]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
dbugger has quit [Remote host closed the connection]
ElFerna has joined #ruby
dbugger has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
marahin has quit [Ping timeout: 252 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
poontangmessiah has joined #ruby
marahin has joined #ruby
marahin has quit [Changing host]
marahin has joined #ruby
Nicmavr has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
grilix has quit [Ping timeout: 245 seconds]
dbugger has quit [Quit: Leaving]
jcalla has quit [Ping timeout: 258 seconds]
absolutejam has joined #ruby
thomas_25 has joined #ruby
jangid has joined #ruby
tdy has joined #ruby
grilix has joined #ruby
yann-kaelig has quit [Quit: yann-kaelig]
jangid has left #ruby ["ERC (IRC client for Emacs 26.2)"]
jottr has joined #ruby
sagax has quit [Remote host closed the connection]
john2496 has quit [Remote host closed the connection]
yann-kaelig has joined #ruby
thomas_25 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hiroaki has quit [Ping timeout: 252 seconds]
al-damiri has joined #ruby
yann-kaelig has quit [Quit: yann-kaelig]
DTZUZO has joined #ruby
crankharder has joined #ruby
haengma has joined #ruby
sameerynho has quit [Ping timeout: 244 seconds]
haengma has quit [Client Quit]
haengma has joined #ruby
banisterfiend has joined #ruby
john2496 has joined #ruby
absolutejam has quit [Ping timeout: 272 seconds]
banisterfiend has quit [Client Quit]
john2496 has quit [Ping timeout: 246 seconds]
absolutejam has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
schneider has quit [Ping timeout: 244 seconds]
greengriminal has quit [Quit: This computer has gone to sleep]
teardown has quit [Ping timeout: 245 seconds]
za1b1tsu has quit [Remote host closed the connection]
Criten has joined #ruby
<Criten> :D
thomas_25 has joined #ruby
poontangmessiah has quit [Remote host closed the connection]
sebcarotte has quit [Remote host closed the connection]
thomas_25 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ellcs1 has joined #ruby
involans has quit [Quit: involans]
greengriminal has joined #ruby
bmurt has joined #ruby
teser has quit [Quit: Leaving]
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ElFerna has quit [Read error: Connection reset by peer]
ElFerna has joined #ruby
ElFerna has quit [Remote host closed the connection]
involans has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<brool> :D
involans has quit [Quit: involans]
banisterfiend has joined #ruby
MrCrackPot has quit [Remote host closed the connection]
MrCrackPot has joined #ruby
MrCrackPot has quit [Max SendQ exceeded]
MrCrackPot has joined #ruby
MrCrackPot has quit [Max SendQ exceeded]
MrCrackPot has joined #ruby
absolutejam has quit [Ping timeout: 272 seconds]
ellcs1 has quit [Ping timeout: 264 seconds]
jaequery has joined #ruby
involans has joined #ruby
r29v has quit [Quit: r29v]
tdy has quit [Ping timeout: 244 seconds]
involans has quit [Quit: involans]
grilix has quit [Ping timeout: 246 seconds]
ramfjord has joined #ruby
s2013 has joined #ruby
<quintasan> How do I stub TCPSocket using minitest so that it can receive puts? I tried using spy gem but now my tests failed with 'called private method puts for nil:NilClass' https://dpaste.de/uKAG
greengriminal has quit [Quit: Leaving]
cyclonis has joined #ruby
cyclonis has quit [Excess Flood]
unreal has joined #ruby
haengma has quit [Remote host closed the connection]
haengma has joined #ruby
cyclonis has joined #ruby
reber has joined #ruby