jhass[m] changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.2, 3.0.4, 2.7.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
crankharder has quit [Ping timeout: 246 seconds]
some14u has joined #ruby
floss-jas has joined #ruby
hanzo has joined #ruby
WhereIsMySpoon has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
WhereIsMySpoon has quit [Ping timeout: 272 seconds]
giorgian has joined #ruby
crankharder has joined #ruby
some14u has joined #ruby
giorgian has quit [Ping timeout: 276 seconds]
giorgian has joined #ruby
comet23 has quit [Quit: Client closed]
giorgian has quit [Ping timeout: 256 seconds]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
giorgian has joined #ruby
giorgian has quit [Ping timeout: 240 seconds]
roadie has joined #ruby
Al2O3 has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
some14u has joined #ruby
some14u has quit [Client Quit]
giorgian has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
crankharder has quit [Ping timeout: 256 seconds]
giorgian has quit [Ping timeout: 276 seconds]
dionysus69 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
crankharder has joined #ruby
roadie has quit [Ping timeout: 272 seconds]
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
aesthetikx has quit [Ping timeout: 256 seconds]
aesthetikx has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
crankharder has quit [Ping timeout: 272 seconds]
crankharder has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
Ziyan has joined #ruby
crankharder has quit [Ping timeout: 246 seconds]
dionysus69 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
dionysus69 has quit [Client Quit]
dionysus69 has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
Guest26nakilon has joined #ruby
<Guest26nakilon> what do I do wrong? https://dpaste.org/pWbt6/raw the formatter foes not work
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
<Guest26nakilon> oh, I guess "not used after 1.2.7. just for compat." docs remark
dionysus69 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
WhereIsMySpoon has joined #ruby
crankharder has joined #ruby
<Guest26nakilon> the last two CVE links in recent ruby-lang website news don't work
Guest26nakilon has quit [Quit: Client closed]
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
WhereIsMySpoon has quit [Ping timeout: 246 seconds]
crankharder has quit [Ping timeout: 246 seconds]
roadie has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
giorgian has joined #ruby
dionysus69 has joined #ruby
dionysus69 has quit [Remote host closed the connection]
giorgian has quit [Ping timeout: 246 seconds]
crankharder has joined #ruby
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
Vonter has joined #ruby
swaggboi has quit [Quit: C-x C-c]
hanzo has quit [Quit: Connection closed for inactivity]
hanzo has joined #ruby
swaggboi has joined #ruby
Guest26nakilon has joined #ruby
<Guest26nakilon> I wonder if there is a gem that defines these 16 colors https://en.wikipedia.org/wiki/Web_colors#Basic_colors or do I have to hardcode them by myself
Sheilong has quit []
giorgian has joined #ruby
giorgian has quit [Ping timeout: 276 seconds]
ssh073 has quit [Remote host closed the connection]
ssh073 has joined #ruby
crankharder has quit [Ping timeout: 272 seconds]
Ziyan has quit [Ping timeout: 240 seconds]
Ziyan has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 246 seconds]
mdemo has quit [Quit: The Lounge - https://thelounge.github.io]
mdemo has joined #ruby
kiki_lamb has quit [Ping timeout: 276 seconds]
kiki_lamb has joined #ruby
giorgian has joined #ruby
kiki_lamb has quit [Ping timeout: 272 seconds]
giorgian has quit [Ping timeout: 256 seconds]
crankharder has joined #ruby
Guest26nakilon has quit [Quit: Client closed]
Guest54 has joined #ruby
kiki_lamb has joined #ruby
sshock has joined #ruby
kiki_lamb has quit [Ping timeout: 240 seconds]
Guest54 has quit [Quit: Client closed]
sshock has left #ruby [#ruby]
sshock has joined #ruby
Ziyan has quit [Ping timeout: 272 seconds]
Ziyan has joined #ruby
giorgian has joined #ruby
kiki_lamb has joined #ruby
giorgian has quit [Ping timeout: 276 seconds]
kiki_lamb has quit [Ping timeout: 276 seconds]
sshock has left #ruby [#ruby]
crankharder has quit [Ping timeout: 276 seconds]
Sankalp has quit [Ping timeout: 276 seconds]
Ziyan has quit [Ping timeout: 276 seconds]
Sankalp has joined #ruby
Ziyan has joined #ruby
crankharder has joined #ruby
kiki_lamb has joined #ruby
crankharder has quit [Ping timeout: 272 seconds]
kiki_lamb has quit [Ping timeout: 276 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 276 seconds]
giorgian has joined #ruby
giorgian has quit [Ping timeout: 276 seconds]
kiki_lamb has joined #ruby
kiki_lamb has quit [Ping timeout: 276 seconds]
Ziyan has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
crankharder has joined #ruby
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
kiki_lamb has joined #ruby
kiki_lamb has quit [Ping timeout: 246 seconds]
giorgian has joined #ruby
kiki_lamb has joined #ruby
kiki_lamb has quit [Ping timeout: 276 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 276 seconds]
kiki_lamb has joined #ruby
kiki_lamb has quit [Ping timeout: 240 seconds]
crankharder has quit [Ping timeout: 276 seconds]
crankharder has joined #ruby
Ziyan has joined #ruby
kiki_lamb has joined #ruby
<rapha> maaaaybe the colorize gem
kiki_lamb has quit [Ping timeout: 256 seconds]
<rapha> oh, gone again already
<rapha> and colorize stubbornly calls gray "light_black" which'll never cease to amaze and annoy me
teclator has joined #ruby
giorgian has quit [Ping timeout: 276 seconds]
crankharder has quit [Ping timeout: 276 seconds]
giorgian has joined #ruby
_ht has joined #ruby
crankharder has joined #ruby
giorgian has quit [Ping timeout: 256 seconds]
kiki_lamb has joined #ruby
hanzo has quit [Quit: Connection closed for inactivity]
kiki_lamb has quit [Ping timeout: 272 seconds]
giorgian has joined #ruby
giorgian has quit [Ping timeout: 272 seconds]
giorgian has joined #ruby
giorgian has quit [Ping timeout: 246 seconds]
kiki_lamb has joined #ruby
___nick___ has joined #ruby
giorgian has joined #ruby
kiki_lamb has quit [Ping timeout: 272 seconds]
giorgian has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
crankharder has quit [Ping timeout: 246 seconds]
crankharder has joined #ruby
kiki_lamb has joined #ruby
crankharder has quit [Ping timeout: 272 seconds]
kiki_lamb has quit [Ping timeout: 246 seconds]
Ziyan has quit [Quit: Textual IRC Client: www.textualapp.com]
ur5us has quit [Ping timeout: 250 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 256 seconds]
crankharder has joined #ruby
giorgian has joined #ruby
ur5us has joined #ruby
kiki_lamb has joined #ruby
crankharder has quit [Ping timeout: 246 seconds]
giorgian has quit [Ping timeout: 276 seconds]
kiki_lamb has quit [Ping timeout: 276 seconds]
crankharder has joined #ruby
roadie has joined #ruby
some14u has joined #ruby
some14u has quit [Client Quit]
foxxx0 has quit [Quit: foxxx0]
foxxx0 has joined #ruby
kiki_lamb has joined #ruby
kiki_lamb has quit [Ping timeout: 272 seconds]
giorgian has joined #ruby
giorgian has quit [Ping timeout: 256 seconds]
crankharder has quit [Ping timeout: 272 seconds]
ur5us has quit [Quit: Leaving]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
kiki_lamb has joined #ruby
giorgian has joined #ruby
Ziyan has joined #ruby
kiki_lamb has quit [Ping timeout: 272 seconds]
giorgian has quit [Ping timeout: 248 seconds]
Ziyan has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
crankharder has joined #ruby
kiki_lamb has joined #ruby
<havenwood> rapha: yeah, when "dark_white" is the obvious choice!
protektwar has quit [Ping timeout: 260 seconds]
giorgian has joined #ruby
kiki_lamb has quit [Ping timeout: 256 seconds]
giorgian has quit [Ping timeout: 240 seconds]
crankharder has quit [Ping timeout: 272 seconds]
Ziyan has joined #ruby
Ziyan has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
giorgian has joined #ruby
crankharder has joined #ruby
giorgian has quit [Ping timeout: 260 seconds]
kiki_lamb has joined #ruby
some14u has joined #ruby
kiki_lamb has quit [Ping timeout: 256 seconds]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
some14u has quit [Client Quit]
some14u has joined #ruby
some14u has quit [Client Quit]
Ziyan has joined #ruby
Rounin has joined #ruby
kiki_lamb has joined #ruby
some14u has joined #ruby
some14u has quit [Client Quit]
roadie has quit [Ping timeout: 250 seconds]
giorgian has joined #ruby
giorgian has quit [Ping timeout: 276 seconds]
crankharder has quit [Ping timeout: 272 seconds]
crankharder has joined #ruby
kaivai has quit [Quit: ZNC - https://znc.in]
crankharder has quit [Ping timeout: 240 seconds]
kaivai has joined #ruby
crankharder has joined #ruby
some14u has joined #ruby
roadie has joined #ruby
some14u has quit [Client Quit]
crankharder has quit [Ping timeout: 256 seconds]
crankharder has joined #ruby
roadie has quit [Ping timeout: 248 seconds]
crankharder has quit [Ping timeout: 276 seconds]
crankharder has joined #ruby
Al2O3 has quit [Ping timeout: 276 seconds]
hololeap has joined #ruby
roadie has joined #ruby
Sheilong has joined #ruby
crankharder has quit [Ping timeout: 246 seconds]
roadie has quit [Ping timeout: 250 seconds]
giorgian has joined #ruby
WhereIsMySpoon has joined #ruby
giorgian has quit [Ping timeout: 246 seconds]
roadie has joined #ruby
smp has quit [Ping timeout: 240 seconds]
smp_ has joined #ruby
smp_ is now known as smp
WhereIsMySpoon has quit [Ping timeout: 246 seconds]
crankharder has joined #ruby
roadie has quit [Ping timeout: 250 seconds]
havenwood has quit [Quit: The Lounge - https://thelounge.chat]
roadie has joined #ruby
havenwood has joined #ruby
roadie has quit [Ping timeout: 260 seconds]
hololeap_ has joined #ruby
hololeap has quit [Ping timeout: 240 seconds]
hololeap_ is now known as hololeap
roadie has joined #ruby
roadie has quit [Ping timeout: 250 seconds]
giorgian has joined #ruby
crankharder has quit [Quit: Lost terminal]
giorgian has quit [Ping timeout: 256 seconds]
roadie has joined #ruby
Thanzex6 has joined #ruby
Thanzex has quit [Ping timeout: 272 seconds]
Thanzex6 is now known as Thanzex
roadie` has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
gramps has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
Sankalp- has joined #ruby
Sankalp has quit [Ping timeout: 276 seconds]
Sankalp- is now known as Sankalp
giorgian has joined #ruby
roadie` has quit [Ping timeout: 260 seconds]
giorgian has quit [Ping timeout: 248 seconds]
fef has joined #ruby
roadie` has joined #ruby
roadie` has quit [Ping timeout: 240 seconds]
gramps has joined #ruby
roadie` has joined #ruby
smp_ has joined #ruby
smp has quit [Ping timeout: 276 seconds]
smp_ is now known as smp
<rapha> hihi
<rapha> that was a nice one
giorgian has joined #ruby
roadie` has quit [Ping timeout: 240 seconds]
roadie` has joined #ruby
giorgian has quit [Ping timeout: 272 seconds]
hololeap has quit [Ping timeout: 240 seconds]
moo has quit [Quit: moo]
roadie` has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
moo has joined #ruby
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
giorgian has joined #ruby
giorgian has quit [Ping timeout: 248 seconds]
Sankalp has quit [Ping timeout: 246 seconds]
dstein64- has joined #ruby
Sankalp has joined #ruby
dstein64 has quit [Ping timeout: 260 seconds]
dstein64- is now known as dstein64
ua_ has quit [Ping timeout: 276 seconds]
giorgian has joined #ruby
some14u has joined #ruby
WhereIsMySpoon has joined #ruby
some14u has quit [Client Quit]
some14u has joined #ruby
giorgian has quit [Ping timeout: 256 seconds]
some14u has quit [Client Quit]
John_Ivan has joined #ruby
ua_ has joined #ruby
<John_Ivan> doesn't one find it a matter of annoyance how Ruby on Rails has a direct strong dependency on NodeJS and Yarn? ;/
<John_Ivan> you can't build a pure RoR stack without needing nodejs for the back end.
WhereIsMySpoon has quit [Ping timeout: 276 seconds]
<ox1eef> as far as i know, those features can be opt-out at the command line. the default stack requires them tho, and i think it makes sense for the time being.
<ox1eef> i heard rails 7 is pulling away from webpack, and that type of development.
oxfuxxx has joined #ruby
<John_Ivan> hmm. I see.
oxfuxxx has quit [Ping timeout: 256 seconds]
oxfuxxx has joined #ruby
hololeap has joined #ruby
WhereIsMySpoon has joined #ruby
oxfuxxx has quit [Ping timeout: 272 seconds]
WhereIsMySpoon has quit [Ping timeout: 256 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 276 seconds]
smp has quit [Quit: ZNC 1.8.2 - https://znc.in]
smp has joined #ruby
giorgian has joined #ruby
some14u has joined #ruby
Tempesta_ has joined #ruby
Tempesta has quit [Read error: Connection reset by peer]
hololeap has quit [Ping timeout: 240 seconds]
giorgian has quit [Ping timeout: 246 seconds]
hololeap has joined #ruby
dionysus69 has joined #ruby
___nick___ has quit [Ping timeout: 250 seconds]
fef has quit [Ping timeout: 240 seconds]
oxfuxxx has joined #ruby
giorgian has joined #ruby
oxfuxxx has quit [Ping timeout: 250 seconds]
_ht has quit [Remote host closed the connection]
oxfuxxx has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oxfuxxx has quit [Ping timeout: 246 seconds]
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
some14u has joined #ruby
weaksauce has joined #ruby
Astra4 has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 276 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 276 seconds]
Sankalp has quit [Ping timeout: 272 seconds]
Sankalp has joined #ruby
oxfuxxx has joined #ruby
<Astra4> Hello everyone
<Astra4> I'm learning Ruby and I have a problem I can't solve
<Astra4> Time#strftime does not pick up on the machine's locale settings
<Astra4> and I checked the documentation, it seems there isn't anything that correlates to setlocale
<ccooke> Astra4: Where are you getting the Time object from that you're formatting?
<Astra4> May I post some screenshot links?
<ccooke> Time objects contain their timezone (because you might be dealing with times from many different timezones)
<Astra4> Timezone support is perfect, so is the support for Unicode strings
<ccooke> Generally pastebin-style sharing is recommended - text works everywhere
<Astra4> Ok
<ccooke> (gist.github.com is recommended in the topic, FWIW)
<ruby[bot]> Astra4: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<Astra4> Oh sorry
<Astra4> But I don't have a github account for gist
oxfuxxx has quit [Ping timeout: 276 seconds]
<Astra4> The pastebin I posted is in PHP
<Astra4> Now I want to do the same thing in Ruby
Thanzex has quit [Read error: Connection reset by peer]
<Astra4> But there is no way to set the locale
Thanzex has joined #ruby
<Astra4> Technically the LC_* variables are read from the environment
<Astra4> But it does not affect the Time class
<Astra4> LC_ALL=az_IR.UTF-8 ruby -e 'puts Time.now.strftime("%A")'
<Astra4> outputs Sunday to the terminal
<weaksauce> that's php
<Astra4> Yes. I'm looking for the corresponding functionality in Ruby
Ziyan has quit [Quit: Textual IRC Client: www.textualapp.com]
oxfuxxx has joined #ruby
<weaksauce> ah yes
twosuns has joined #ruby
hololeap has quit [Ping timeout: 240 seconds]
<weaksauce> Astra4 doesn't seem to have that ability
<Astra4> ;(
<weaksauce> not sure how much c you know but yeah it's hard coded
<weaksauce> which is a bit surprising considering matz is japanese
<Astra4> Yeah, I know C. I thought it is a binding to the strftime function from C
<Astra4> which respects the locale
<weaksauce> yeah
<weaksauce> hah
oxfuxxx has quit [Ping timeout: 272 seconds]
<leah2> shell out to date(1) :p
<Astra4> But it's not just Time that's affected
<Astra4> If I'm guessing correctly, it will not respect LC_NUMERIC, so the Kernel#sprintf will not respect it too
WhereIsMySpoon has joined #ruby
<Astra4> (technically i can shell that out to printf :') )
<leah2> that's a feature tho :p
oxfuxxx has joined #ruby
<Astra4> LC_ALL=az_IR.UTF-8 ruby -e 'puts `date +%A`'
<Astra4> works correctly
<Astra4> -_- :')
<weaksauce> I wonder why they did that
<Astra4> portability??
<Astra4> setlocale is available in almost all major scripting languages
<Astra4> I just tested perl, python, and php
<Astra4> They all respect LC_*
<Astra4> and have functions to change the locale of the program mid-execution
<weaksauce> yeah seems a weird omission to me. I guess they expect you to use some other function or a gem or something for that
WhereIsMySpoon has quit [Ping timeout: 276 seconds]
<Astra4> During my searches, i stumbled across a few gems and posts
<Astra4> this seems to solve the problem
<Astra4> But it's just odd to pull Rails, just to change the locale (rails-i18n)
oxfuxxx has quit [Ping timeout: 240 seconds]
<Astra4> and the thing that baffles me the most is that Ruby's interface to system is very well done in core and stdlib
<Astra4> this has been my only problem so far
<Astra4> everything else is just clean and elegant
Sheilong has quit [Quit: Connection closed for inactivity]
<weaksauce> do you need all of rails? you could just add activesupport
w\W has joined #ruby
<Astra4> This is the gem that provides the internationalization support
<weaksauce> it doesn't seem like it does it for you but it's just a cursory look
<weaksauce> you have to provide locale files
<Astra4> It has builtin locales
<weaksauce> ah cool i didn't delve too deep
<Astra4> What I was thinking, was opening the Time class and changing strftime's behavior
<Astra4> But that way I can only add support for the language I'm currently working on in the application
<Astra4> I found a gem called locale
<Astra4> I couldn't get it to read system locale's, but I'm still testing
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
twosuns has quit [Quit: ...]
<weaksauce> something there might grab you
<Astra4> Thanks. Checking it now. 'rails-i18n' has a hard dependency on 'rails'
<Astra4> testing 'i18n' from the same author right now
<Astra4> The 'i18n' gem worked correctly, but does not have the default locale data available in 'rails-i18n'
<Astra4> After providing the default locale data, it works as expected
<weaksauce> nice
<Astra4> I18n.l Time.now, format: '%A'
<Astra4> Thanks everyone <3
<Astra4> BTW are there any plans for system locale support to be added to the core in the future?
<weaksauce> doubtful but you could send a message to the dev list
<weaksauce> or search for it
<Astra4> And since I don't have access to JRuby, does JRuby's Time class map to Java's standard library?
<Astra4> or is the behavior similar to MRI?
<weaksauce> I would think it maps to the java version but I am just guessing
<Astra4> Thanks a lot <3
dionysus69 has quit [Ping timeout: 246 seconds]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
dionysus69 has joined #ruby
giorgian has quit [Ping timeout: 250 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
giorgian has joined #ruby
giorgian has quit [Ping timeout: 240 seconds]
Astra4 has quit [Quit: Client closed]
WhereIsMySpoon has joined #ruby
WhereIsMySpoon has quit [Ping timeout: 272 seconds]
WhereIsMySpoon has joined #ruby
bastienleonard has quit [Quit: WeeChat 3.5]