havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.5, 2.5.7, 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!
akemhp_ has joined #ruby
akemhp has quit [Ping timeout: 240 seconds]
akem__ has joined #ruby
akemhp_ has quit [Ping timeout: 276 seconds]
cd has quit [Quit: cd]
hutch1 has joined #ruby
kodcx[m] has joined #ruby
SeeSeeRider has joined #ruby
Intelo has quit [Remote host closed the connection]
akemhp has joined #ruby
Intelo has joined #ruby
akem__ has quit [Ping timeout: 276 seconds]
hutch1 has quit [Ping timeout: 245 seconds]
akemhp has quit [Ping timeout: 276 seconds]
leitz has joined #ruby
<leitz> Anyone know what provides "fiddle" when compiling Ruby trunk on a CentOS based system?
AJA4350 has quit [Quit: AJA4350]
<leitz> I installed libffi and libffi-devel already.
teardown has quit [Read error: Connection reset by peer]
teardown has joined #ruby
akemhp has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akemhp_ has joined #ruby
Intelo has quit [Remote host closed the connection]
akemhp has quit [Ping timeout: 240 seconds]
jacksoow has quit [Ping timeout: 276 seconds]
teardown has quit [Read error: Connection reset by peer]
teardown has joined #ruby
dbz_ has joined #ruby
akemhp has joined #ruby
akemhp_ has quit [Read error: Connection reset by peer]
akemhp_ has joined #ruby
akemhp has quit [Ping timeout: 250 seconds]
jacksoow has joined #ruby
dbz_ has quit [Ping timeout: 268 seconds]
bambanx has quit [Quit: Leaving]
akem__ has joined #ruby
<Iambchop> leitz: compile-time or run-time error? compiling manually or using something like ruby-build?
akemhp has joined #ruby
akemhp_ has quit [Ping timeout: 268 seconds]
tdy has joined #ruby
akem__ has quit [Ping timeout: 268 seconds]
kyrylo has joined #ruby
<leitz> Hey Iambchop, I think it was that I didn't make clean after installing libffi-devel.
<leitz> Things seem to work now. Compiled manually.
<Iambchop> cool :-)
akem__ has joined #ruby
akemhp has quit [Ping timeout: 265 seconds]
leitz has quit [Quit: Leaving]
teardown has quit [Read error: Connection reset by peer]
teardown has joined #ruby
akemhp_ has joined #ruby
akem__ has quit [Ping timeout: 276 seconds]
golevka6489 has quit [Read error: Connection reset by peer]
zone_31 has joined #ruby
SeeSeeRider has quit [Quit: Bye Bye]
s3nd1v0g1us has quit [Quit: WeeChat 2.4]
jtdowney has quit [Quit: Bye]
jtdowney has joined #ruby
bradleyprice has joined #ruby
pawptart has joined #ruby
x0f has joined #ruby
x0f_ has quit [Ping timeout: 276 seconds]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dbz_ has joined #ruby
teardown has quit [Read error: Connection reset by peer]
xGrind has quit [Quit: Saindo]
teardown has joined #ruby
hutch1 has joined #ruby
brool has quit [Ping timeout: 276 seconds]
kyrylo has joined #ruby
akemhp has joined #ruby
akemhp_ has quit [Ping timeout: 240 seconds]
teardown has quit [Read error: Connection reset by peer]
teardown has joined #ruby
akemhp_ has joined #ruby
dviola has joined #ruby
akemhp has quit [Ping timeout: 276 seconds]
teardown has quit [Read error: Connection reset by peer]
teardown has joined #ruby
gix has quit [Ping timeout: 276 seconds]
pawptart has quit [Quit: Leaving]
teardown has quit [Read error: Connection reset by peer]
teardown has joined #ruby
Frobozz has joined #ruby
hutch1 has quit [Ping timeout: 250 seconds]
sankamur_ has joined #ruby
sankamur_ has quit [Remote host closed the connection]
sankamur_ has joined #ruby
teardown has quit [Read error: Connection reset by peer]
teardown has joined #ruby
queip has quit [Ping timeout: 265 seconds]
queip_ has joined #ruby
queip_ is now known as queip
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sankamur_ has quit [Read error: Connection reset by peer]
Inline__ has joined #ruby
Inline has quit [Ping timeout: 264 seconds]
chalkmonster has joined #ruby
teardown has quit [Read error: Connection reset by peer]
teardown has joined #ruby
kyrylo has joined #ruby
ur5us has quit [Remote host closed the connection]
salinasc has quit [Remote host closed the connection]
ur5us has joined #ruby
teardown has quit [Read error: Connection reset by peer]
teardown has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
queip has quit [Ping timeout: 240 seconds]
queip has joined #ruby
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
dbz_ has quit [Ping timeout: 268 seconds]
dbz_ has joined #ruby
xarthna has joined #ruby
brandoncc has quit [Ping timeout: 250 seconds]
donofrio has quit [Remote host closed the connection]
lightstalker has quit [Remote host closed the connection]
lightstalker has joined #ruby
akem__ has joined #ruby
akemhp_ has quit [Ping timeout: 265 seconds]
dbz_ has quit [Ping timeout: 246 seconds]
bradleyprice has quit [Remote host closed the connection]
dbz_ has joined #ruby
dbz_ has quit [Ping timeout: 268 seconds]
xarthna has quit [Ping timeout: 276 seconds]
teardown has quit [Read error: Connection reset by peer]
teardown has joined #ruby
tdy1 has joined #ruby
tdy has quit [Ping timeout: 268 seconds]
queip_ has joined #ruby
queip has quit [Ping timeout: 265 seconds]
queip_ is now known as queip
rippa has joined #ruby
dbz_ has joined #ruby
conta has joined #ruby
Swyper has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dbz_ has quit [Ping timeout: 240 seconds]
chalkmonster has quit [Quit: WeeChat 2.6]
teardown has quit [Read error: Connection reset by peer]
teardown has joined #ruby
luminousnine has quit [Quit: Toodles]
dviola has quit [Quit: WeeChat 2.6]
chalkmonster has joined #ruby
cyclonis has joined #ruby
Inline__ has quit [Quit: Leaving]
luminousnine has joined #ruby
luminousnine has joined #ruby
luminousnine has quit [Changing host]
queip has quit [Ping timeout: 265 seconds]
chalkmonster has quit [Quit: WeeChat 2.6]
queip has joined #ruby
mossplix has joined #ruby
blackmesa has joined #ruby
teardown has quit [Read error: Connection reset by peer]
teardown has joined #ruby
mossplix has quit [Ping timeout: 250 seconds]
conta has quit [Ping timeout: 240 seconds]
mossplix has joined #ruby
chalkmonster has joined #ruby
conta has joined #ruby
queip has quit [Ping timeout: 240 seconds]
queip has joined #ruby
fanta1 has joined #ruby
absolutejam4 has joined #ruby
queip has quit [Ping timeout: 265 seconds]
queip_ has joined #ruby
queip_ is now known as queip
queip_ has joined #ruby
queip has quit [Ping timeout: 268 seconds]
queip_ is now known as queip
conta has quit [Ping timeout: 265 seconds]
queip has quit [Ping timeout: 240 seconds]
queip_ has joined #ruby
queip_ is now known as queip
andikr has joined #ruby
conta has joined #ruby
absolutejam4 has quit [Ping timeout: 240 seconds]
suukim has joined #ruby
phaul has quit [Quit: :wq]
Fraeon has joined #ruby
phaul has joined #ruby
queip_ has joined #ruby
queip has quit [Ping timeout: 265 seconds]
queip_ is now known as queip
akemhp_ has joined #ruby
akem__ has quit [Ping timeout: 265 seconds]
dbugger has joined #ruby
dbugger has quit [Client Quit]
dellavg has joined #ruby
queip has quit [Ping timeout: 276 seconds]
queip has joined #ruby
TomyWork has joined #ruby
TomyWork has quit [Remote host closed the connection]
TomyWork has joined #ruby
dbz_ has joined #ruby
akem__ has joined #ruby
queip has quit [Ping timeout: 240 seconds]
queip_ has joined #ruby
queip_ is now known as queip
dbz_ has quit [Ping timeout: 240 seconds]
akemhp_ has quit [Ping timeout: 268 seconds]
paraxial has joined #ruby
payknight has joined #ruby
conta has quit [Ping timeout: 268 seconds]
conta has joined #ruby
absolutejam4 has joined #ruby
akemhp_ has joined #ruby
uranoss has quit [Quit: Connection closed for inactivity]
akem__ has quit [Ping timeout: 268 seconds]
akem__ has joined #ruby
johnb820 has joined #ruby
akemhp_ has quit [Ping timeout: 268 seconds]
vondruch has quit [Quit: vondruch]
dionysus69 has joined #ruby
dbugger has joined #ruby
<sagax> hi all!
johnb820 has quit [Remote host closed the connection]
<sagax> i can compare `object_id` between two object with `==` ? or i need equal? or eql? or `===` ?
ur5us has joined #ruby
bitwinery has quit [Quit: Leaving]
conta has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
andikr has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
claudiuinberlin has joined #ruby
queip has quit [Ping timeout: 268 seconds]
queip_ has joined #ruby
queip_ is now known as queip
vondruch has joined #ruby
f440[m] has joined #ruby
dbz_ has joined #ruby
mossplix has quit [Remote host closed the connection]
DTZUZO has quit [Ping timeout: 264 seconds]
edwardly has quit [Read error: Connection reset by peer]
dbz_ has quit [Ping timeout: 240 seconds]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
claudiuinberlin has quit [Ping timeout: 268 seconds]
DaRock has joined #ruby
mossplix has joined #ruby
Jonopoly has joined #ruby
queip has quit [Ping timeout: 276 seconds]
queip_ has joined #ruby
queip_ is now known as queip
blackmesa has quit [Ping timeout: 245 seconds]
edwardly has quit [Read error: Connection reset by peer]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
conta has joined #ruby
queip_ has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
queip has quit [Ping timeout: 268 seconds]
queip_ is now known as queip
absolutejam4 has quit [Ping timeout: 268 seconds]
luminousnine has quit [Quit: Toodles]
Mia has quit [Ping timeout: 252 seconds]
conta has quit [Ping timeout: 240 seconds]
conta has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
luminousnine has joined #ruby
luminousnine has joined #ruby
luminousnine has quit [Changing host]
Axy has quit [Ping timeout: 268 seconds]
absolutejam4 has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
andikr has quit [Quit: No Ping reply in 180 seconds.]
Mia has quit [Ping timeout: 268 seconds]
andikr has joined #ruby
absolutejam4 has quit [Ping timeout: 265 seconds]
DTZUZO has joined #ruby
absolutejam4 has joined #ruby
DTZUZO has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
mossplix has quit [Remote host closed the connection]
DaniG2k has joined #ruby
DTZUZO has joined #ruby
mossplix has joined #ruby
ellcs has joined #ruby
seanianhale has joined #ruby
dbz_ has joined #ruby
DTZUZO has quit [Remote host closed the connection]
DTZUZO has joined #ruby
<seanianhale> Folks, I'm a ruby newbie. Is there a best practices way to convert an instance of a class to JSON wherein I can specify the resulting JSON property names? This seems like it should be so easy to find by searching in any search engine, but I must be doing it wrong.
blackmesa has quit [Ping timeout: 246 seconds]
DTZUZO has quit [Ping timeout: 240 seconds]
dbz_ has quit [Ping timeout: 276 seconds]
conta has quit [Ping timeout: 268 seconds]
<leftylink> hmm, while I don't know about best practices, if I were asked to perform this task, I guess I would iterate the list of desired keys and just public_send them to the object
<leftylink> &>> require 'json'; obj = Struct.new(:foo, :bar, :baz).new(1, 2, 3); props = %i(foo bar baz); JSON.dump(props.to_h { |k| [k, obj.public_send(k)] })
<rubydoc> # => "{\"foo\":1,\"bar\":2,\"baz\":3}" (https://carc.in/#/r/7stb)
<leftylink> shrug
conta has joined #ruby
DTZUZO has joined #ruby
queip has quit [Ping timeout: 265 seconds]
queip has joined #ruby
DTZUZO has quit [Ping timeout: 250 seconds]
<seanianhale> Thanks leftylink. I appreciate your input. However, your solution isn't quite what I'm looking for. I was hoping to be able to start with a class. Create an instance of that class and put some data in into its attributes. Take that class instance and get it serialized to a JSON string. Specify the JSON property names for each of the attributes on
<seanianhale> the Ruby class instance for cases where I want them to differ from how they appear in Ruby.
mossplix has quit [Remote host closed the connection]
mossplix has joined #ruby
DTZUZO has joined #ruby
mossplix has quit [Ping timeout: 265 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
<seanianhale> Any pointers to places to get help with Ruby questions? I'm a newbie
ellcs has quit [Ping timeout: 265 seconds]
DTZUZO has joined #ruby
queip has quit [Ping timeout: 268 seconds]
queip_ has joined #ruby
mossplix has joined #ruby
queip_ is now known as queip
dbz_ has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
seanianhale has quit [Remote host closed the connection]
Axy has quit [Ping timeout: 265 seconds]
dbz_ has quit [Ping timeout: 240 seconds]
DTZUZO has quit [Ping timeout: 240 seconds]
DaniG2k has quit [Quit: leaving]
DTZUZO has joined #ruby
Fusl has quit [Max SendQ exceeded]
Fusl has joined #ruby
ur5us has quit [Remote host closed the connection]
tdy1 has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
DTZUZO has quit [Ping timeout: 250 seconds]
ur5us has quit [Remote host closed the connection]
conta has quit [Ping timeout: 265 seconds]
DTZUZO has joined #ruby
conta has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
conta has quit [Ping timeout: 240 seconds]
DTZUZO has joined #ruby
mossplix has quit [Remote host closed the connection]
Intelo has joined #ruby
DTZUZO has quit [Ping timeout: 252 seconds]
absolutejam4 has quit [Ping timeout: 268 seconds]
DTZUZO has joined #ruby
ellcs has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
DTZUZO has joined #ruby
bradleyprice has joined #ruby
DTZUZO has quit [Ping timeout: 268 seconds]
bradleyprice has quit [Remote host closed the connection]
conta has joined #ruby
DTZUZO has joined #ruby
DTZUZO has quit [Ping timeout: 268 seconds]
SeeSeeRider has joined #ruby
dbz_ has joined #ruby
DTZUZO has joined #ruby
SeeSeeRider is now known as SuspiciousMinds
absolutejam4 has joined #ruby
dbz_ has quit [Ping timeout: 240 seconds]
DTZUZO has quit [Ping timeout: 240 seconds]
mossplix has joined #ruby
inkvar has joined #ruby
Freshnuts has quit [Quit: Leaving]
DTZUZO has joined #ruby
mossplix has quit [Remote host closed the connection]
mossplix has joined #ruby
absolutejam has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
absolutejam4 has quit [Read error: Connection reset by peer]
NL3limin4t0r_afk is now known as NL3limin4t0r
mossplix has quit [Ping timeout: 268 seconds]
DTZUZO has joined #ruby
AJA4350 has joined #ruby
queip has quit [Ping timeout: 240 seconds]
queip_ has joined #ruby
queip_ is now known as queip
DTZUZO has quit [Ping timeout: 240 seconds]
sarna has joined #ruby
DTZUZO has joined #ruby
johnny56 has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
DTZUZO has joined #ruby
DTZUZO has quit [Remote host closed the connection]
<Frankenstein> if I have a "main" module that wraps a lot of other modules, is there a (clever) way to iterate through all of the modules I've defined
<Frankenstein> in the main module i mean
n88 has joined #ruby
yann-kaelig has joined #ruby
fanta1 has quit [Quit: fanta1]
drincruz has joined #ruby
dbz_ has joined #ruby
<ytti> is there any obvikous way to implement your own assertion so that == is method call
<ytti> if i want like
<ytti> assert a == b
<ytti> and what I mean is
<ytti> Assert.new(a).==(b)
<ytti> i think this is not possible, due to the == prececdence
<ytti> but it'll be Assert.new(a==b) always
dbz_ has quit [Ping timeout: 250 seconds]
donofrio has joined #ruby
luminousnine has quit [Quit: Toodles]
FlorianFa has joined #ruby
luminousnine has joined #ruby
luminousnine has quit [Changing host]
luminousnine has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
drincruz has quit [Ping timeout: 250 seconds]
gavlee has quit []
Mia has quit [Ping timeout: 268 seconds]
queip_ has joined #ruby
queip has quit [Ping timeout: 276 seconds]
queip_ is now known as queip
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Axy has quit [Ping timeout: 276 seconds]
<adam12> ytti: Check out power_assert. It's close.
conta has quit [Quit: conta]
<ytti> i'd be ok to mixin minitest
<ytti> but that doesn't seem to be possible
<ytti> i'd need to subclass which is not ok here
<adam12> minitest-power_assert maybe?
jcalla has quit [Ping timeout: 264 seconds]
mossplix has joined #ruby
<ytti> that requires subclassing too
<ytti> i just want assertion methods
<ytti> my application itself is about testing
<ytti> what i have now http://p.ip.fi/-uHp
<ytti> but i've written the assert_equal and flunk myself
<ytti> and i feel like it would be better to just mixin
chalkmonster has quit [Quit: WeeChat 2.6]
Esa_ has joined #ruby
queip has quit [Ping timeout: 240 seconds]
queip_ has joined #ruby
queip_ is now known as queip
cyclonis has quit [Ping timeout: 240 seconds]
cyclonis_ has joined #ruby
griffindy has joined #ruby
dbz_ has joined #ruby
<adam12> Frankenstein: I'm not sure I follow but there is a way to get ancestors and constants. With an example I might be able to provide more guidance.
griffindy has quit [Quit: Textual IRC Client: www.textualapp.com]
dbz_ has quit [Ping timeout: 240 seconds]
queip has quit [Ping timeout: 268 seconds]
queip_ has joined #ruby
andikr has quit [Remote host closed the connection]
queip_ is now known as queip
Nicmavr has quit [Read error: Connection reset by peer]
schne1der has joined #ruby
Bish has joined #ruby
<Bish> does somebody know how to forward a remote linux socket via net-ssh?
<Bish> i think it only has support for the other way around
Nicmavr has joined #ruby
queip has quit [Ping timeout: 240 seconds]
queip has joined #ruby
hutch1 has joined #ruby
<Frankenstein> adam12: i figured it out. thanks anyways
inkvar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe has quit [Read error: Connection reset by peer]
fphilipe has joined #ruby
conta has joined #ruby
cyclonis_ has quit [Ping timeout: 246 seconds]
cycloni17 has joined #ruby
poontangmessiah has joined #ruby
witlesswonder_ has joined #ruby
witlesswonder has quit [Remote host closed the connection]
lucasb has joined #ruby
bradleyprice has joined #ruby
bradleyprice has quit [Remote host closed the connection]
dbz_ has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 265 seconds]
absolutejam has quit [Ping timeout: 265 seconds]
<ytti> is there way to install gem in CLI from http URL
<ytti> pretty much only thing I prefer in pip
<ytti> as i can just do pip install https://gitlab/user/project
dbz_ has quit [Ping timeout: 268 seconds]
<hyperreal> Hello all. This may be a noob question, but what does the "p" mean in "p imap.sort"?
jcalla has joined #ruby
<hyperreal> something to do with it being a public instance method?
vondruch has quit [Ping timeout: 240 seconds]
vondruch has joined #ruby
clemens3 has joined #ruby
<Bish> hyperreal: p is *kinda" a short version of
<Bish> puts obj.inspect
<hyperreal> ah okay. thanks :)
<Bish> inspect is a method every object has, and it spits out a string that explains the object
<Bish> in one sort or another
<Bish> &> puts "hi"
<rubydoc> parser error at position 0 around `>'
<Bish> > puts "hi"
<Bish> *shrugs*
poontangmessiah has quit [Remote host closed the connection]
cycloni17 has quit [Quit: -a- IRC for Android 2.1.55]
zodd has joined #ruby
<zodd> Hi. I am trying to use DBI + ODBC without a DSN (using the driver) so sominthing in the line of: dbi:ODBC:DRIVER={Easysoft ODBC-SQL Server};Server=myhost;UID=myusername;PWD=mypassword;
baojg has quit [Remote host closed the connection]
zodd has quit [Read error: Connection reset by peer]
fphilipe has quit [Ping timeout: 250 seconds]
zodd has joined #ruby
baojg has joined #ruby
rafadc has quit [Ping timeout: 250 seconds]
zodd has quit [Read error: Connection reset by peer]
zodd has joined #ruby
mossplix has quit [Ping timeout: 240 seconds]
<adam12> hyperreal: Just in case you were curious, it comes from the Kernel module which is available everywhere. Here's the docs on it: https://ruby-doc.org/core-2.6.5/Kernel.html#method-i-p
TomyWork has quit [Ping timeout: 246 seconds]
<zodd> like I said: I want to connect to a db using DBI/ODBC I get: C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/dbi-0.4.5/lib/dbi.rb:318:in `rescue in load_driver`: Could not load driver (undefined method `driver_name` for ODBC:Module (DBI::InterfaceError)
conta has quit [Ping timeout: 240 seconds]
drincruz has joined #ruby
<adam12> zodd: dbi is ancient.
<adam12> zodd: At a high level, what are you looking to achieve? Maybe we can suggest something better.
Swyper has joined #ruby
inkvar has joined #ruby
absolutejam has joined #ruby
<zodd> adam12, thanks. I am just writing some POC code. So far I have done so using ODBC directly and using Sequel. Next and last would be DBI
sarna has quit [Ping timeout: 264 seconds]
<adam12> zodd: Ah OK. Well I would of suggested Sequel, as it's maintained. DBI is from 2009.. which likely predates Ruby 2.
<zodd> I think the only serious way for coding is Sequel unless there are alternatives?
rafadc has joined #ruby
<adam12> zodd: Sequel is my preferred toolkit for DB access.
DTZUZO has joined #ruby
Rapture has joined #ruby
<zodd> Never the less. I am persuing DSN based and DSN-less ODBC connections. for native ODBC I have implemented both for Sequel (working) only DSN-less. DBI was my next and final stop. Not much use in using DSNs I think
mossplix has joined #ruby
<zodd> in other languages/libraries (or in ruby-odbc) one should call connectdrv or something similar instead of connect
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zodd> not sure if that can/should be done here as the DBI homepage vanished :P
<zodd> like you said: ancient history
<zodd> still interested in the error/fix though
<adam12> zodd: Yeah. I think dbi was hosted on rubyforge which ended up becoming Rubygems, kinda. Rubygems+Github.
chalkmonster has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
inkvar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zodd has quit [Read error: Connection reset by peer]
zodd has joined #ruby
dbz_ has joined #ruby
<zodd> anyone else with an idea?
mossplix has quit [Remote host closed the connection]
inkvar has joined #ruby
SuspiciousMinds has quit [Quit: Bye Bye]
mossplix has joined #ruby
dbz_ has quit [Ping timeout: 240 seconds]
mossplix has quit [Remote host closed the connection]
<zodd> now that is fun. Regardless of the connectionstring (also if DSN based): I always get this error
fphilipe has joined #ruby
fmartingr has joined #ruby
fmartingr has quit [Client Quit]
mossplix has joined #ruby
bradleyprice has joined #ruby
queip has quit [Ping timeout: 265 seconds]
queip_ has joined #ruby
queip_ is now known as queip
poontangmessiah has joined #ruby
teclator_ has joined #ruby
rafadc_ has joined #ruby
rafadc_ has quit [Read error: Connection reset by peer]
rafadc has quit [Ping timeout: 268 seconds]
rafadc has joined #ruby
Emmanuel_Chanel has joined #ruby
teclator_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
mossplix has quit [Remote host closed the connection]
Intelo has quit [Remote host closed the connection]
Intelo has joined #ruby
DaRock has quit [Ping timeout: 250 seconds]
Intelo has quit [Ping timeout: 268 seconds]
queip_ has joined #ruby
queip has quit [Ping timeout: 265 seconds]
queip_ is now known as queip
bradland has joined #ruby
kyrylo has joined #ruby
poontangmessiah has quit [Remote host closed the connection]
cd has joined #ruby
rubydoc has quit [Ping timeout: 240 seconds]
bradland has quit [Client Quit]
kyrylo has quit [Client Quit]
etupat has joined #ruby
edwardly has quit [Read error: Connection reset by peer]
_dbugger has joined #ruby
_dbugger has quit [Client Quit]
rubydoc has joined #ruby
dbugger has quit [Ping timeout: 250 seconds]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
etupat has quit []
Intelo has joined #ruby
SeepingN has joined #ruby
<al2o3-cr> &>> x, y = []; [x, y]
<rubydoc> # => [nil, nil] (https://carc.in/#/r/7svw)
<al2o3-cr> what's going on here?
<al2o3-cr> i'd expect [[], nil] no?
absolutejam has quit [Ping timeout: 240 seconds]
<NL3limin4t0r> nope
<al2o3-cr> why not?
<NL3limin4t0r> That's implicit array decomposition
<NL3limin4t0r> x is assigned the first value of the array
<NL3limin4t0r> y is assigned the second value of the array
<NL3limin4t0r> adding a comma to the end would fix it
<al2o3-cr> oh, i see
<NL3limin4t0r> nvm, ruby doesn't like the comma at the end of the first line
<NL3limin4t0r> &>> x, y = [], nil; [x, y]
<rubydoc> # => [[], nil] (https://carc.in/#/r/7svx)
<al2o3-cr> thanks, i get it now ;)
<NL3limin4t0r> np, gl
<al2o3-cr> cheers
AJA4350 has quit [Ping timeout: 264 seconds]
troulouliou_div2 has joined #ruby
ellcs has quit [Remote host closed the connection]
brool has joined #ruby
queip_ has joined #ruby
queip has quit [Ping timeout: 265 seconds]
fphilipe has quit [Ping timeout: 265 seconds]
queip_ is now known as queip
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
orbyt_ has joined #ruby
reber has joined #ruby
yann-kaelig has quit [Ping timeout: 250 seconds]
xarthna has joined #ruby
bradleyprice has quit [Ping timeout: 240 seconds]
al2o3-cr has quit [Quit: WeeChat 2.6]
queip_ has joined #ruby
queip has quit [Ping timeout: 276 seconds]
al2o3-cr has joined #ruby
queip_ is now known as queip
tdy1 has joined #ruby
stryek has joined #ruby
poontangmessiah has joined #ruby
bradleyprice has joined #ruby
bradleyprice has quit [Read error: Connection reset by peer]
bradleyprice has joined #ruby
cyclonis has joined #ruby
gdrc has left #ruby [#ruby]
Jonopoly has quit [Quit: WeeChat 2.5]
millerti has joined #ruby
cyclonis_ has joined #ruby
GodFather has joined #ruby
cyclonis has quit [Ping timeout: 245 seconds]
cyclonis has joined #ruby
queip has quit [Ping timeout: 268 seconds]
cyclonis_ has quit [Ping timeout: 246 seconds]
queip_ has joined #ruby
queip_ is now known as queip
xarthna has quit [Ping timeout: 240 seconds]
Intelo has quit [Remote host closed the connection]
akemhp_ has joined #ruby
akem__ has quit [Ping timeout: 268 seconds]
GodFather has quit [Ping timeout: 265 seconds]
akemhp_ has quit [Ping timeout: 240 seconds]
hiroaki has joined #ruby
xarthna has joined #ruby
kyrylo has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
mikecmpbll has quit [Quit: inabit. zz.]
CableNinja has joined #ruby
GodFather has joined #ruby
zodd has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
GodFather has quit [Read error: No route to host]
blackmesa has quit [Ping timeout: 245 seconds]
impermanence has quit [Remote host closed the connection]
AJA4350 has joined #ruby
akemhp has joined #ruby
queip has quit [Ping timeout: 240 seconds]
queip has joined #ruby
xarthna has quit [Ping timeout: 268 seconds]
suukim has quit [Quit: Konversation terminated!]
cyclonis has quit [Quit: -a- IRC for Android 2.1.55]
cyclonis has joined #ruby
gix has joined #ruby
blackmesa has joined #ruby
GodFather has joined #ruby
cyclonis has quit [Client Quit]
cyclonis has joined #ruby
cyclonis has quit [Client Quit]
dretnx has joined #ruby
cyclonis has joined #ruby
cyclonis has quit [Remote host closed the connection]
cyclonis has joined #ruby
xarthna has joined #ruby
xarthna has quit [Ping timeout: 265 seconds]
dellavg has quit [Ping timeout: 245 seconds]
tdy1 is now known as tdy
cyclonis_ has joined #ruby
cyclonis has quit [Ping timeout: 245 seconds]
cycloni48 has joined #ruby
cyclonis_ has quit [Ping timeout: 245 seconds]
AJA4351 has joined #ruby
xarthna has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
bitwinery has joined #ruby
bitwinery has quit [Remote host closed the connection]
bitwinery has joined #ruby
poontangmessiah has quit [Remote host closed the connection]
chalkmonster has quit [Quit: WeeChat 2.6]
blackmesa has quit [Quit: WeeChat 2.6]
queip_ has joined #ruby
queip has quit [Ping timeout: 268 seconds]
queip_ is now known as queip
sameerynho has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cyclonis has joined #ruby
cycloni48 has quit [Ping timeout: 264 seconds]
johnny56 has quit [Ping timeout: 240 seconds]
dretnx has quit [Quit: Going offline, see ya! (www.adiirc.com)]
wildtrees has joined #ruby
wildtrees has quit [Remote host closed the connection]
wildtrees has joined #ruby
millerti has quit [Read error: Connection reset by peer]
clemens3 has quit [Quit: WeeChat 1.6]
johnny56 has joined #ruby
fphilipe has joined #ruby
dionysus70 has joined #ruby
crichoux has joined #ruby
crichoux is now known as laudecay
AJA4350 has quit [Ping timeout: 240 seconds]
zodd has joined #ruby
dionysus69 has quit [Ping timeout: 276 seconds]
dionysus70 is now known as dionysus69
zodd is now known as Guest14344
fphilipe has quit [Ping timeout: 276 seconds]
cyclonis has quit [Quit: -a- IRC for Android 2.1.55]
cyclonis has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
cyclonis has quit [Read error: Connection reset by peer]
gix has joined #ruby
inkvar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xarthna has quit [Ping timeout: 265 seconds]
queip has quit [Ping timeout: 240 seconds]
gix- has quit [Ping timeout: 265 seconds]
queip has joined #ruby
s3nd1v0g1us has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
<laudecay> how would i translate the sample safe policy here https://csp-evaluator.withgoogle.com/ into the rails DSL? https://bauland42.com/ruby-on-rails-content-security-policy-csp/
<laudecay> i don't really know rails
salinasc has joined #ruby
<laudecay> and nobody in that channel is answering (i also dunno ruby well)
queip has quit [Ping timeout: 240 seconds]
queip_ has joined #ruby
queip_ is now known as queip
blackmesa has joined #ruby
Intelo has joined #ruby
tpanarch1st has joined #ruby
reber_ has joined #ruby
reber has quit [Ping timeout: 268 seconds]
nowhere_man has joined #ruby
payknight has quit [Ping timeout: 260 seconds]
fphilipe has joined #ruby
queip has quit [Ping timeout: 276 seconds]
queip has joined #ruby
xarthna has joined #ruby
hiroaki has quit [Ping timeout: 268 seconds]
drincruz_ has joined #ruby
drincruz has quit [Ping timeout: 250 seconds]
wildtrees has quit [Quit: Leaving]
CableNinja has quit [Ping timeout: 265 seconds]
dviola has joined #ruby
Guest14344 has quit [Ping timeout: 240 seconds]
r3m has quit [Quit: WeeChat 2.7-dev]
r3m has joined #ruby
fphilipe has quit [Ping timeout: 246 seconds]
tpanarch1st has quit [Read error: Connection reset by peer]
tpanarch1st has joined #ruby
queip has quit [Ping timeout: 265 seconds]
queip has joined #ruby
ctp has joined #ruby
hiroaki has joined #ruby
wildtrees has joined #ruby
queip_ has joined #ruby
queip has quit [Ping timeout: 268 seconds]
queip_ is now known as queip
<laudecay> hi what's this do https://guides.rubyonrails.org/security.html, the line with ' content_security_policy_report_only only: :index'
<laudecay> if you search that you'll see, i just don't understand what the only: :index part means
dviola has quit [Quit: WeeChat 2.6]
laudecay has quit [Ping timeout: 276 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
dionysus69 has quit [Ping timeout: 245 seconds]
schne1der has quit [Ping timeout: 265 seconds]
ur5us has joined #ruby
SuspiciousMinds has joined #ruby
xarthna has quit [Ping timeout: 265 seconds]
<Frankenstein> only: :index becomes { :only => :index }
<Frankenstein> :only (and :index) is an atom whose value is :only
absolutejam has joined #ruby
drincruz_ has quit [Read error: Connection reset by peer]
drincruz has joined #ruby
NL3limin4t0r is now known as NL3limin4t0r_afk
<baweaver> Frankenstein: someone's been doing Scheme
<baweaver> A Hash with a key `:only` that has a value of `:index` :P
<Frankenstein> oh dear, does ruby not call them atoms
blackmesa has quit [Ping timeout: 246 seconds]
<wildtrees> aren't :things in ruby called symbols?
<SuspiciousMinds> :abc.class
nowhere_man has quit [Ping timeout: 250 seconds]
<SuspiciousMinds> => Symbol
hutch1 has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
tdy has quit [Ping timeout: 268 seconds]
laudecay has joined #ruby
<laudecay> anyone?
<leftylink> I was about to say "but you didn't ask a question" but you did ask a question. but your question was alrady answered
<laudecay> oh did i disconnect
<laudecay> heck could someone report
<laudecay> repost
<laudecay> i don't have bouncer
<laudecay> srry :/
zapata has quit [Ping timeout: 276 seconds]
<leftylink> all channel members are hereby reminded that there is a link to https://irclog.whitequark.org/ruby in the /topic of this channel
<leftylink> also we can demonstrate this with a code example
<leftylink> &>> def f(arg); p arg end; f only: :index
<rubydoc> # => {:only=>:index}... check link for more (https://carc.in/#/r/7sxu)
<leftylink> so as we can see, only: index is {:only=>:index}
<leftylink> although
<leftylink> I guess it could also be a kwarg
<leftylink> &>> def f(only:); p only end; f only: :index
<rubydoc> # => :index... check link for more (https://carc.in/#/r/7sy1)
<leftylink> so we know it is one of those two possibilities
<laudecay> ohhhh okay
<laudecay> leftylink: i don't know what either of those mean though :/
<laudecay> sorry i'm really new to ruby
<leftylink> here are some ways that this can be explored
<leftylink> &>> {:only => :index}.class
<rubydoc> # => Hash (https://carc.in/#/r/7sy2)
<leftylink> as we can see, that is a hash
<leftylink> therefore
<leftylink> &ri Hash
<laudecay> what's the &>> do
<laudecay> does that just have the bot run code in a repl thiing
<leftylink> &>> :only.class
<rubydoc> # => Symbol (https://carc.in/#/r/7sy3)
<leftylink> as we can see, that is a symbol
<leftylink> therefore
<laudecay> what's a symbol
<leftylink> &ri Symbol
<laudecay> oh a hash is like a dict
<phaul> laudecay: &ri and &>> are indeed just bot things
<laudecay> okie
<laudecay> what's a name in the ruby interpreter
<laudecay> is that like a variable or
<laudecay> "Thus if Fred is a constant in one context, a method in another, and a class in a third, the Symbol :Fred will be the same object in all three contexts." <- this is physically painful for me to witness, as a functional programmer, i am afraid and may need therapy
troulouliou_div2 has quit [Ping timeout: 268 seconds]
bradleyprice has quit [Remote host closed the connection]
salinasc has quit [Remote host closed the connection]
fphilipe has joined #ruby
<laudecay> leftylink: anyway so like what are the other things i could put as keys in that hash? i see :only, where's the other documentation about the other options there?
<laudecay> like is there like an ":all" sort of thing?
queip has quit [Ping timeout: 240 seconds]
queip_ has joined #ruby
queip_ is now known as queip
<phaul> :all as opposed to :only?
<leftylink> interesting. I would imagine that question can be answered by searching "rails content_security_policy_report_only" but lol I searched that and just got `https://api.rubyonrails.org/classes/ActionController/ContentSecurityPolicy/ClassMethods.html#method-i-content_security_policy_report_only` which is just a `**options`. But the good news is that the source says the `options` gets passed to
<leftylink> `before_action`, so I guess the next stop to look would be before_action.
<leftylink> since I don't know Rails, I guess this is as far as I can take anyone on this matter. wishing luck.
fphilipe has quit [Ping timeout: 250 seconds]
<laudecay> oh okay
<laudecay> i searched that and
<laudecay> yeah :/
tdy has joined #ruby
<laudecay> thoughts?
<leftylink> so it looks like the next place to look will be `before_action`, to see how it handles the options
<laudecay> where would i look for that
<laudecay> i'm seeing something with controllers
AJA4350 has joined #ruby
<laudecay> i'm just a math major what even is mvc
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leftylink> since we have reason to believe that "before_action" is also part of rails, perhaps searching for "rails before_action" would produce useful results there
<laudecay> yeah im reading action controller overview
<laudecay> im just kinda hoping ppl have thoughts about these things
<laudecay> sorry i just started at a new job and im kinda panicking about how little ruby i understand eek
<phaul> maybe it would be useful to spend a couple of days with ruby and the basics. Leave rails and read let's say the pickaxe book. It would take a couple of days but it would englighten you about most of the syntax
<laudecay> yeah this "do" and || stuff is tripping me out
<phaul> better than panicking...
<laudecay> im just like..... the youngest engineer here by a LOT and they have crazy high expectations and im
<laudecay> aaaaAAAAåååå
<laudecay> but yeah ill go read... thanks for the recs
zapata has joined #ruby
gix has quit [Ping timeout: 265 seconds]
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
crichoux has joined #ruby
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
cloaked1 has joined #ruby
laudecay has quit [Ping timeout: 240 seconds]
gix has joined #ruby
tdy has quit [Ping timeout: 268 seconds]
bambanx has joined #ruby
<phaul> &fake Hacker.say_something_smart
<rubydoc> You can't parse the monitor without parsing the digital RAM program!
tdy has joined #ruby
Swyper has quit [Remote host closed the connection]
orbyt_ has joined #ruby
crichoux has quit [Ping timeout: 276 seconds]
howdoi has joined #ruby
cyclonis has joined #ruby
AJA4351 has joined #ruby
Fernando-Basso has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
vondruch has quit [Ping timeout: 246 seconds]
axsuul has quit [Ping timeout: 244 seconds]
<hyperreal> does anyone know of a more up-to-date keyring interface than this? https://github.com/jheiss/keyring
tdy has quit [Ping timeout: 268 seconds]
bradleyprice has joined #ruby
fphilipe has joined #ruby
absolutejam has quit [Ping timeout: 240 seconds]
<hyperreal> or is that keyring interface still good?
absolutejam has joined #ruby
fphilipe has quit [Ping timeout: 276 seconds]
cloaked1 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
absolutejam has quit [Ping timeout: 240 seconds]
ogres has joined #ruby
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
absolutejam has joined #ruby
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
hyperreal has quit [Read error: Connection reset by peer]
hyperreal has joined #ruby
drincruz has quit [Ping timeout: 240 seconds]
absolutejam has quit [Ping timeout: 240 seconds]
queip has quit [Ping timeout: 268 seconds]
queip_ has joined #ruby
queip_ is now known as queip
xarthna has joined #ruby
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
hyperreal has quit [Quit: kthxbai]
hyperreal has joined #ruby
hiroaki has quit [Ping timeout: 265 seconds]
bradleyprice has quit [Ping timeout: 268 seconds]
hiroaki has joined #ruby
Swyper has joined #ruby
reber_ has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 240 seconds]
s3nd1v0g1us has quit [Quit: WeeChat 2.4]
mostlybadfly has joined #ruby
sameerynho has quit [Ping timeout: 240 seconds]
SuspiciousMinds has quit [Quit: Bye Bye]
absolutejam has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
Swyper has quit [Remote host closed the connection]
absolutejam has quit [Ping timeout: 240 seconds]
DaRock has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Frobozz has quit [Quit: quit]
gnufied has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
agent_white has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
hiroaki has quit [Ping timeout: 265 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
zodd has joined #ruby
zodd is now known as Guest99324
Azure has joined #ruby
agent_white has quit [Quit: brb]
poontangmessiah has joined #ruby
tdy has joined #ruby
Swyper has quit [Remote host closed the connection]
hiroaki has joined #ruby
Guest99324 has quit [Read error: Connection reset by peer]
mynameisdebian has joined #ruby