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!
jenrzzz has joined #ruby
ramfjord has joined #ruby
Fernando-Basso has quit [Ping timeout: 246 seconds]
donofrio has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
<leitz> Coding Ruby is the only way to learn it. Or any language, for that matter.
ramfjord has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sylario has quit [Quit: Connection closed for inactivity]
fphilipe has quit [Ping timeout: 245 seconds]
woodruffw has quit [Ping timeout: 272 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
cd has quit [Quit: cd]
leitz has quit [Quit: Leaving]
georgie has joined #ruby
_dbugger has quit [Ping timeout: 264 seconds]
zave has quit [Remote host closed the connection]
georgie has quit [Read error: Connection reset by peer]
ixti has quit [Quit: WeeChat 2.3]
fphilipe has joined #ruby
brool has joined #ruby
bambanx has quit [Read error: Connection reset by peer]
bambanx has joined #ruby
xco has joined #ruby
mb^ has quit []
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe has quit [Ping timeout: 245 seconds]
xco has quit [Quit: xco]
bambanx has quit [Quit: Leaving]
tdy has joined #ruby
bga57 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<brool> where on my disk does gem save stuff when i install a gem?
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
orbyt_ has joined #ruby
involans has joined #ruby
segy has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wald0 has joined #ruby
involans has quit [Quit: involans]
vjacob has quit [Ping timeout: 245 seconds]
Hello25 has joined #ruby
<Hello25> Hey guys, got a question about eigenclass, is there a link directly from an instance to a class, or is it always rerouted through the eigenclass?
Hello25 has quit [Ping timeout: 260 seconds]
AJA4350 has quit [Remote host closed the connection]
fphilipe has joined #ruby
oetjenj has joined #ruby
duderonomy has joined #ruby
<havenwood> brool: gem env gemdir
brool has quit [Ping timeout: 264 seconds]
bitwinery has joined #ruby
<havenwood> Hello25 is gone, but if they check the logs, there's a class pointer from an instance to its class, and another class pointer from a class to its singleton class (eigenclass).
gix- has joined #ruby
gix has quit [Disconnected by services]
<havenwood> Hello25: The class pointer on an instance is directly to its class: instance -> class -> eigenclass
fphilipe has quit [Ping timeout: 268 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
jenrzzz has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ElFerna has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
ElFerna has quit [Client Quit]
ElFerna has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
ElFerna has quit [Ping timeout: 245 seconds]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
orbyt_ has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
fphilipe has joined #ruby
fphilipe has quit [Ping timeout: 246 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Hello25 has joined #ruby
tsrt^ has joined #ruby
fphilipe has joined #ruby
duderonomy has joined #ruby
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
Emmanuel_Chanel has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Emmanuel_Chanel has quit [Quit: Leaving]
SeepingN has joined #ruby
wald0 has quit [Quit: Lost terminal]
za1b1tsu has joined #ruby
Emmanuel_Chanel has joined #ruby
orbyt_ has joined #ruby
sauvin has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe has quit [Ping timeout: 268 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Hello25 has quit [Remote host closed the connection]
agent_white has quit [Quit: brb]
agent_white has joined #ruby
mochiyoda has quit [Ping timeout: 276 seconds]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ZAJDAN> how to replace ng/break lines for </br> ...?
mochiyoda has joined #ruby
Snowy has joined #ruby
ua_ has joined #ruby
Snowy has quit [Remote host closed the connection]
ua has quit [Ping timeout: 248 seconds]
absolutejam2 has joined #ruby
duderonomy has joined #ruby
<havenwood> ZAJDAN: Can you show an example of what you have and of what you want?
<ZAJDAN> havenwood...Rails...https://dpaste.de/NA2J
Dr_MDMA_MD has quit [Quit: Connection closed for inactivity]
sameerynho has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mochiyoda has quit [Read error: Connection reset by peer]
mochiyoda has joined #ruby
<ZAJDAN> but in this case the simple_format doesnt change it for <br>
duderonomy has joined #ruby
wolfshappen has quit [Ping timeout: 244 seconds]
duderonomy has quit [Client Quit]
wolfshappen has joined #ruby
duderonomy has joined #ruby
fphilipe has joined #ruby
Dr_MDMA_MD has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
oetjenj has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
absolutejam2 has quit [Ping timeout: 248 seconds]
themsay has quit [Ping timeout: 246 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe has quit [Ping timeout: 245 seconds]
Snowy has joined #ruby
schne1der has joined #ruby
themsay has joined #ruby
absolutejam2 has joined #ruby
jenrzzz has joined #ruby
themsay has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
za1b1tsu has quit [Ping timeout: 245 seconds]
absolutejam2 has quit [Ping timeout: 245 seconds]
themsay has joined #ruby
schne1der has quit [Ping timeout: 245 seconds]
fphilipe has joined #ruby
_whitelogger has joined #ruby
tdy has quit [Ping timeout: 244 seconds]
duderonomy has joined #ruby
dbugger has joined #ruby
dbugger has quit [Client Quit]
dbugger has joined #ruby
fphilipe has quit [Ping timeout: 246 seconds]
chalkmonster has joined #ruby
DTZUZO has quit [Ping timeout: 248 seconds]
deepreds1 has joined #ruby
oetjenj 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
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]
Xeago_ has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
Xeago_ is now known as Xeago
troulouliou_dev has joined #ruby
ramfjord has joined #ruby
chalkmonster has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 244 seconds]
philosophy has joined #ruby
chalkmonster has joined #ruby
howdoi has joined #ruby
philosophy has quit [K-Lined]
ElFerna has joined #ruby
jenrzzz has joined #ruby
DTZUZO has joined #ruby
ElFerna has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
Snowy has quit [Remote host closed the connection]
DTZUZO has quit [Ping timeout: 244 seconds]
Snowy has joined #ruby
Snowy has quit [Ping timeout: 245 seconds]
_whitelogger has joined #ruby
xco has joined #ruby
hiroaki has quit [Read error: Connection reset by peer]
hiroaki has joined #ruby
fphilipe has joined #ruby
deepreds1 has quit [Ping timeout: 272 seconds]
<ZAJDAN> how do You mount cifs ?
xco has quit [Quit: xco]
xco has joined #ruby
Snowy has joined #ruby
leitz has joined #ruby
DTZUZO has joined #ruby
xco has quit [Quit: xco]
AJA4350 has joined #ruby
Fernando-Basso has joined #ruby
fphilipe has quit [Ping timeout: 246 seconds]
leitz has quit [Quit: Leaving]
DTZUZO has quit [Ping timeout: 245 seconds]
x86sk has joined #ruby
Dr_MDMA_MD has quit [Quit: Connection closed for inactivity]
Snowy has quit [Ping timeout: 258 seconds]
DTZUZO has joined #ruby
DTZUZO has quit [Ping timeout: 258 seconds]
ramfjord has joined #ruby
fphilipe has joined #ruby
ElFerna has joined #ruby
Fernando-Basso has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 245 seconds]
vjacob has joined #ruby
DTZUZO has joined #ruby
Fernando-Basso has joined #ruby
fphilipe has quit [Ping timeout: 245 seconds]
DaRock has quit [Remote host closed the connection]
DaRock has joined #ruby
staticx has quit [Remote host closed the connection]
staticx has joined #ruby
ElFerna has quit [Quit: ElFerna]
sylario has joined #ruby
Inline has quit [Ping timeout: 264 seconds]
xco has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.5]
xco has quit [Quit: xco]
Snowy has joined #ruby
conta has joined #ruby
Fernando-Basso has quit [Ping timeout: 245 seconds]
conta has quit [Quit: conta]
Inline has joined #ruby
tdy has joined #ruby
xco has joined #ruby
ua_ has quit [Ping timeout: 245 seconds]
oetjenj has joined #ruby
Fernando-Basso has joined #ruby
Snowy has quit [Ping timeout: 245 seconds]
xco has quit [Quit: xco]
ua has joined #ruby
bathtub_shark has left #ruby ["y"]
fphilipe has joined #ruby
xco has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
DaRock has quit [Ping timeout: 245 seconds]
Dr_MDMA_MD has joined #ruby
fphilipe has quit [Ping timeout: 268 seconds]
chalkmonster has joined #ruby
GodFather has joined #ruby
noobineer has quit [Remote host closed the connection]
agent_white has quit [Quit: later]
GodFather has quit [Read error: No route to host]
Snowy has joined #ruby
segy has quit [Quit: ZNC - http://znc.in]
segy has joined #ruby
<ged> Does anyone know of a way to get a singleton class's "attached" object, short of dropping down to C?
vjacob has quit [Ping timeout: 248 seconds]
<mozzarella> what do you mean attached?
Snowy has quit [Ping timeout: 245 seconds]
schne1der has joined #ruby
ferhaty has joined #ruby
<ged> The "instance" of the singleton class, e.g., if m = Module.method( :constants ), then the "attached" object of m.owner is Module.
queip has quit [Ping timeout: 245 seconds]
<ged> For my purposes, I want to find the class which will be the receiver given a Method object for one of its singleton methods.
<ged> It's reachable from C by getting the ivar named "__attached__", but you can access such ivars from Ruby.
<ged> It's reachable from C by getting the ivar named "__attached__", but you can't access such ivars from Ruby.
vjacob has joined #ruby
queip has joined #ruby
fphilipe has joined #ruby
valedithat has joined #ruby
<valedithat> I'm in the midst of making a platform that's going to have articles on it. I'm using rails 5, and active admin to manage and create the articles, and I want to be able to style the article (namely keep the article indentation) and I haven't really found a good way to do that. I found one gem: ckeditor but it's a pain to setup. I'm just wondering if there is any other way
absolutejam2 has joined #ruby
absolutejam2 has quit [Ping timeout: 245 seconds]
orbyt_ has joined #ruby
fphilipe has quit [Ping timeout: 244 seconds]
Tempesta has quit [Quit: See ya!]
xco has quit [Quit: xco]
xco has joined #ruby
xco has quit [Client Quit]
Esa_ has quit []
xco has joined #ruby
xco has quit [Client Quit]
fphilipe has joined #ruby
xco has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
<havenwood> valedithat: Take a look at Trix! https://trix-editor.org/
<havenwood> valedithat: Trix will be integrated and released with Rails 6 as Action Text.
<valedithat> oh nice, I'll check it out
<valedithat> thanks
<havenwood> valedithat: I think going ahead and using Action Text makes sense. :)
crang has joined #ruby
<havenwood> &>> Module.method(:constants).receiver
<rubydoc> # => Module (https://carc.in/#/r/79id)
<havenwood> ged: ^
<valedithat> will this work with active admin havenwood
<crang> i am having problems installing some native gems. sqlite3 fails to compile due to a missing sqlite3.h header file. do i have to install a gems-dev package or something on debian to get thise native gems to build?
<crang> i have installed ruby's header files, but i cant figure out how to install a given gem's header files
<crang> 0.o
<crang> i have had this problem while building native gems on window as well
<crang> how does a gem distribute header files? is there a source gem or what
<havenwood> valedithat: You can for sure use Trix from Active Admin. I have no clue whether Active Admin is integrating Action Text. I don't follow Active Admin development.
<havenwood> crang: sudo apt-get install -y sqlite3 libsqlite3-dev
<crang> havenwood: thanks. so it just looks in the system include paths because... gcc
<crang> sorry for noise
<valedithat> okay cool thanks havenwood
fphilipe has quit [Ping timeout: 245 seconds]
vjacob has quit [Ping timeout: 245 seconds]
Snowy has joined #ruby
deepreds1 has joined #ruby
Swyper has joined #ruby
code_zombie has joined #ruby
<ged> havenwood: Brilliant, thanks!
Snowy has quit [Ping timeout: 248 seconds]
Dr_MDMA_MD has quit [Quit: Connection closed for inactivity]
Swyper has quit [Remote host closed the connection]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has joined #ruby
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]
ferhaty has quit [Quit: ferhaty]
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]
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]
Freshnuts has joined #ruby
crang has quit [Ping timeout: 244 seconds]
Cork has quit [Quit: .]
xco has quit [Quit: xco]
SeepingN has joined #ruby
lupine has quit [Read error: Connection reset by peer]
lupine has joined #ruby
xco has joined #ruby
lucasb has joined #ruby
r3m has quit [Quit: WeeChat 2.6-dev]
Cork has joined #ruby
r3m has joined #ruby
moei has joined #ruby
crang has joined #ruby
crang is now known as Guest95369
leitz has joined #ruby
<leitz> If my gem has a development dependency of rspec, which requires rspec-expectations, and rspec-expectations is fetched, why would rspec fail because it requires rspec-expectations?
xco has quit [Quit: xco]
dviola has joined #ruby
<leitz> There is a version difference between the actual and the expected: 3.8.0 and 3.8.4.
xco has joined #ruby
ferhaty has joined #ruby
GodFather has joined #ruby
cd has joined #ruby
fphilipe has joined #ruby
Guest95369 has quit [Ping timeout: 245 seconds]
vjacob has joined #ruby
Freshnuts has quit [Ping timeout: 245 seconds]
queip has quit [Ping timeout: 245 seconds]
queip has joined #ruby
reber has joined #ruby
Fernando-Basso has quit [Remote host closed the connection]
AndroidKitKat has quit [Quit: バイバイ〜!]
AndroidKitKat has joined #ruby
matheusmoreira has quit [Ping timeout: 248 seconds]
fphilipe has quit [Ping timeout: 272 seconds]
xco has quit [Quit: xco]
Snowy has joined #ruby
ur5us has joined #ruby
Joufflu has joined #ruby
<Joufflu> help
<Joufflu> i'm learning #count and i'm not getting it
<Joufflu> i wrote the follwonig https://dpaste.de/4u1U
<Joufflu> but its just giving me boolean instead of counting the numbers
<Joufflu> dvisible by 2, as i copied it form the docs example https://ruby-doc.org/core-2.5.1/Enumerable.html#method-i-count
<baweaver> What does puts return
<baweaver> &>> puts "something"
<rubydoc> # => something (https://carc.in/#/r/79il)
<baweaver> Give you a hint, it's actually nil
<baweaver> &>> (puts "something").nil?
<rubydoc> # => something (https://carc.in/#/r/79im)
<baweaver> of course, output is cropped...
<Joufflu> baweaver, you asking me or you making a new question ?
<baweaver> answering by asking
<baweaver> `Kernel#puts` returns nil.[
<baweaver> Blocks like count will end up counting nil
<Joufflu> so count will count nil ok
<Joufflu> how is that making it not count the numbers in the array divisiable by 2
<Joufflu> nil/2 ? idk. i'm guessing at this point
<Joufflu> nil%2**
<baweaver> 1. puts returns nil
<baweaver> 2. That means the output of the equation is now nil
<baweaver> puts(x % 2 == 0) # => nil
<Joufflu> so count does actually do the %2 but puts wipes it because nil ?
<baweaver> It does do it, but the return value of that block is nil
<baweaver> puts only outputs it to the screen and returns back nil to the program
<baweaver> Remove the puts to see for yourself
<Joufflu> AH ok
<Joufflu> ok by removing puts we got rid of the nil; now it just prints nothing at all but no error either
<Joufflu> hmm lol i think i know what it is
<Joufflu> blocks vs methods ... i need to keep that in mind
fphilipe has joined #ruby
code_zombie has quit [Quit: Leaving]
Snowy has quit [Ping timeout: 272 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Joufflu> So I'm doing some coding challenges on hackerRank and I run them on my terminal using linux with ruby 2.6 and my code works in my terminal but when I run the same code on hacker rank it saying no solutions found; anyone got experience on how I should be entering my code? I've googled around and can't seem to get a clear answer
<Joufflu> thanks baweaver
<Joufflu> so get.chomp would be the equivalent of scanf() in c ?
<Joufflu> gets*
reber has quit [Read error: Connection reset by peer]
sagax has quit [Ping timeout: 272 seconds]
fphilipe has quit [Ping timeout: 252 seconds]
dviola has quit [Quit: WeeChat 2.5]
sh7d has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
matheusmoreira has joined #ruby
sameerynho has quit [Ping timeout: 245 seconds]
involans has joined #ruby
crang has joined #ruby
crang is now known as Guest30198
_whitelogger has joined #ruby
ua has quit [Ping timeout: 245 seconds]
Snowy has joined #ruby
vjacob has quit [Ping timeout: 246 seconds]
leitz has quit [Quit: Leaving]
ua has joined #ruby
ua has quit [Excess Flood]
ua has joined #ruby