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!
skryking has quit [Ping timeout: 246 seconds]
skryking has joined #ruby
fphilipe_ has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
leitz has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 272 seconds]
DaRock has joined #ruby
sgen has joined #ruby
fphilipe_ has joined #ruby
codefriar has joined #ruby
Swyper has joined #ruby
DarthGandalf has quit [Ping timeout: 245 seconds]
DarthGandalf has joined #ruby
Swyper has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 245 seconds]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
sgen has quit [Ping timeout: 276 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidepocket has joined #ruby
fphilipe_ has quit [Ping timeout: 245 seconds]
duderonomy has joined #ruby
henninb has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 272 seconds]
aither has quit [Ping timeout: 245 seconds]
sidepocket_ has joined #ruby
sidepocket has quit [Remote host closed the connection]
henninb has quit [Remote host closed the connection]
unixcat has joined #ruby
unixcat has quit [Client Quit]
ramfjord has joined #ruby
unixcat has joined #ruby
unixcat has quit [Client Quit]
unixcat has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
unixcat has quit [Client Quit]
unixcat has joined #ruby
unixcat has quit [Client Quit]
unixcat has joined #ruby
tdy has quit [Ping timeout: 272 seconds]
fphilipe_ has joined #ruby
SidepocketNeo has joined #ruby
sidepocket_ has quit [Remote host closed the connection]
galaxie has quit [Ping timeout: 260 seconds]
galaxie has joined #ruby
Thenekofell has quit [Ping timeout: 268 seconds]
fphilipe_ has quit [Ping timeout: 246 seconds]
AJA4350 has quit [Quit: AJA4350]
Thenekofell has joined #ruby
jmcgnh has quit [Ping timeout: 248 seconds]
jmcgnh has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
Mrgoose8 has joined #ruby
orbyt_ has joined #ruby
gix has joined #ruby
gix- has quit [Ping timeout: 245 seconds]
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DaRock has quit [Ping timeout: 244 seconds]
brool has quit [Ping timeout: 250 seconds]
spectra has quit [Ping timeout: 258 seconds]
fphilipe_ has joined #ruby
spectra has joined #ruby
unixcat has quit [Quit: ZNC - https://znc.in]
unixcat has joined #ruby
AndreYuhai has quit [Remote host closed the connection]
AndreYuhai has joined #ruby
ur5us has quit []
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AndreYuhai has quit [Remote host closed the connection]
AndreYuhai has joined #ruby
queip has quit [Ping timeout: 272 seconds]
fphilipe_ has quit [Ping timeout: 276 seconds]
queip has joined #ruby
ur5us has joined #ruby
fphilipe_ has joined #ruby
fphilipe has joined #ruby
fphilipe_ has quit [Ping timeout: 264 seconds]
sauvin has joined #ruby
conta has joined #ruby
Thenekofell has quit [Ping timeout: 245 seconds]
aither has joined #ruby
lightstalker has quit [Ping timeout: 258 seconds]
teardown has joined #ruby
Swyper has joined #ruby
ramfjord has joined #ruby
lightstalker has joined #ruby
conta has quit [Ping timeout: 272 seconds]
conta has joined #ruby
ramfjord has quit [Ping timeout: 258 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
schneider has joined #ruby
absolutejam has joined #ruby
ur5us has quit [Ping timeout: 272 seconds]
gix has quit [Ping timeout: 272 seconds]
ferhaty has joined #ruby
Swyper has quit [Remote host closed the connection]
absolutejam has quit [Ping timeout: 246 seconds]
Thenekofell has joined #ruby
sauvin has quit [Ping timeout: 248 seconds]
schneider has quit [Ping timeout: 248 seconds]
snickers has joined #ruby
snickers has quit [Remote host closed the connection]
andikr has joined #ruby
lxsameer has joined #ruby
drnerdius has joined #ruby
prestorium has joined #ruby
leah2 has joined #ruby
absolutejam has joined #ruby
priodev has quit [Ping timeout: 258 seconds]
TomyWork has joined #ruby
sauvin has joined #ruby
hope_canyon has quit [Quit: Leaving]
priodev has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aupadhye has joined #ruby
absolutejam1 has quit [Quit: WeeChat 2.5]
schneider has joined #ruby
bitwinery has joined #ruby
wopi has joined #ruby
ramfjord has joined #ruby
<wopi> Hi, it's safe to upgrade from Puma 3.x to Puma 4.x? I can't see any related information. I mean is it a drop in replacement or are there changes I have to do in my application?
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snickers has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
<Lewix> im lookin . for a public url . that . timeout
<Lewix> wopi: thank you
deepreds1 has joined #ruby
DTZUZO has quit [Ping timeout: 258 seconds]
queip has quit [Ping timeout: 244 seconds]
dhollinger has quit [Ping timeout: 245 seconds]
queip has joined #ruby
za1b1tsu has joined #ruby
conta has quit [Ping timeout: 245 seconds]
wopi has left #ruby ["The Lounge - https://thelounge.github.io"]
<havenwood> wop, it should *just work*
DaRock has joined #ruby
themsay has quit [Ping timeout: 248 seconds]
themsay has joined #ruby
jefffrails35 has joined #ruby
jefffrails35 has quit [Client Quit]
fphilipe has quit [Ping timeout: 268 seconds]
absolutejam has quit [Ping timeout: 248 seconds]
ellcs has joined #ruby
absolutejam has joined #ruby
absolutejam1 has joined #ruby
evdubs_ has joined #ruby
evdubs has quit [Ping timeout: 276 seconds]
<Yxhuvud> So why was the major number increased? less support of old rubies?
conta has joined #ruby
jenrzzz has joined #ruby
themsay has quit [Ping timeout: 245 seconds]
fphilipe has joined #ruby
dhollinger has joined #ruby
leitz has joined #ruby
<havenwood> Yxhuvud: Not even old Rubies deprecated afaik. There was a commit that touches the tight loop portion of the thread pool, but it didn't change much.
<havenwood> Heh, guess I didn't quite get it right on my stab at that line back in 2014: https://github.com/wjordan/puma/commit/3896e2aa121bfc0ea99951bd984c8acf51f01154#diff-a4330ac333778a0fff63a0c404c4fc64
<havenwood> I was closer than before. :P
<havenwood> Inching towards correct.
<leitz> havenwood, are you up early or late?
<havenwood> late
<havenwood> speaking of, i need to sleep!
<leitz> Yup.
<leitz> Enjoy!
<leitz> I need to figure out why my rspec test fails sometimes.
arand has quit [Remote host closed the connection]
themsay has joined #ruby
dantey has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
queip has quit [Ping timeout: 258 seconds]
brahmana has joined #ruby
Nicmavr has joined #ruby
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ruby
queip has joined #ruby
ramfjord has joined #ruby
ferhaty has quit [Quit: ferhaty]
fphilipe has quit [Ping timeout: 258 seconds]
<brahmana> Hi.. I have libssl1.0 and libssl1.1 (both) installed on my Ubuntu 18.04 machine. I am trying to build Ruby 2.2.10 on this. The build and install are successful but require 'openssl' doesn't work
<leitz> brahmana, "require 'openssl'" in your ruby code, or in the compile?
<leitz> On a different note, I'm loathe to suspect a bug in Ruby or one of the standard libraries. However, this is sort of funny, and suspect. https://gist.github.com/LeamHall/84a8d44ba542f28810416adcf6801fcb
ramfjord has quit [Ping timeout: 272 seconds]
<leitz> Usually it's operator error. Okay, it's always operator error. But in the data set, I'm using curl to pull a POST. The average "speed" reported by curl is in the 50,00 - 70,000 range. However, sometimes the speed is faster that 300K, and those times the output doesn't have what it's supposed to.
<leitz> The machine I'm on is void linux, patched, and just me sitting here. No real apps running except Firefox and HexChat. OS load is less than 0.2.
<brahmana> leitz : "require 'openssl'" in IRB.
<leitz> brahmana, openssl is a gem. Have you installed it?
<brahmana> Actually I encountered the error when I tried to install bundler with "gem install bundler"
<leitz> brahmana, hmmm... does Ubuntu have an "openssl-dev" package? Often compilers need the development tools for the topic, like openssl.
<brahmana> Yes, I have the libssl1.0-dev installed
<leitz> How about for 1.1, since you have both installed? Did the compile show any errors?
<brahmana> leitz : Btw, I did not know that I need to install the openssl gem separately. I thought it was a ruby extension installed along with ruby if not explicitly disabled during ./configure step
<leitz> I usually remember the -devel packages *after* the compile logs tell me they missed something.
<brahmana> make and make install worked without any issues.
<leitz> brahmana, I'd try 'gem install openssl' to see.
dantey has quit [Quit: leaving]
bitwinery has quit [Quit: Leaving]
dantey has joined #ruby
DaRock has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 246 seconds]
Tuor has joined #ruby
<brahmana> leitz : gem install openssl is not an option :
<brahmana> ERROR: While executing gem ... (Gem::Exception) Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
<brahmana> From the out of the "./configure" can I find out which openssl library / header files are being used
<brahmana> Or whether ruby is being compiled with OpenSSL or not?
<leitz> You should be able to. When I compile I usually make a separate log for configure, make, make install, etc.
<brahmana> Ok, I ran ./configure and I now have the config.log but it does not mention ssl anywhere
sphenxes has joined #ruby
conta has quit [Ping timeout: 258 seconds]
fphilipe has joined #ruby
reber has joined #ruby
<leitz> brahmana, can you post that log, and the make log, in a gist? I have a few minutes if you want me to look over it.
<brahmana> doing that right away
<brahmana> leitz : https://dpaste.de/sUQT
<brahmana> That is the config.log
<brahmana> I do not seem to have a similar log file for make
<brahmana> Let me try running make again with output redirected to a file.
cd has quit [Quit: cd]
<leitz> Include the errors.
<leitz> I'm not seeing anything in the config.log that mentions ssl.
<leitz> Odd...
mniip has joined #ruby
conta has joined #ruby
<brahmana> yeah... that is what I am surprised about too.
Thenekofell has quit [Remote host closed the connection]
<brahmana> leitz : Is there any config flag that I need to pass to enabled openssl ?
<brahmana> enable*
<brahmana> leitz : Ok ran make again in the same folder and this time there is an error
<leitz> Let me go look, I haven't compiled in a while.
<leitz> Errors can be good. :)
<leitz> That error looks more like a permission thing. Did you "make clean"?
<brahmana> aah no
<brahmana> make clean done
<brahmana> Do I ./configure again?
<leitz> I tend to, and ./configure > configure_yyyymmdd.log 2>&1, with yyyymmdd being the date.
<brahmana> ok
<leitz> Ah, did you run "autoconf"?
<brahmana> no
<brahmana> I have never done that for previous Ruby builds
jenrzzz has joined #ruby
<leitz> I'm reading the README.md for Rubyt 2.2 now, and it mentions it. I tend to start with a totally blank slate when I compile.
<brahmana> ok.. Run autoconf after configure?
<leitz> before
<leitz> it should re-write your configure.
<leitz> I'm doing the same on my void box.
<brahmana> ok
ixti has joined #ruby
<leitz> brahmana, did you see this? https://github.com/rvm/rvm/issues/4357
<leitz> Maybe there's a libssl-dev and a libssl1.0-dev?
<brahmana> yes I did. There are a couple other such posts and stackoverflow QAs also
dbugger has joined #ruby
<brahmana> No, I confirmed that. libssl-dev is not installed
<brahmana> Checked again now.
<brahmana> I pasted the latest make output above. it has references to openssl. Looks like openssl is being compiled
<leitz> Yup, I saw that. Have you tried "make install" and then "gem install openssl"?
chalkmonster has joined #ruby
<brahmana> leitz : Previously I had done make install. That is when I faced that error when installing any gem
<brahmana> Let me try install again after this second make
<leitz> It should work, or at least give us another error. :)
<brahmana> leitz : https://dpaste.de/ZRih - make install log
<leitz> Looking good!
conta has quit [Ping timeout: 244 seconds]
queip has quit [Ping timeout: 244 seconds]
<brahmana> leitz gem install is stuck because of a proxy issue. The machine is behind a proxy and gem tool doesn't seem to be picking up the http_proxy env var
<brahmana> leitz it seems to be working...
<brahmana> leitz : Worked... !!
<brahmana> bundler was successfully installed
<brahmana> leitz : Thank you
queip has joined #ruby
conta has joined #ruby
<leitz> Yay!
<leitz> My guess is that the configure was built before you had the ssl libraries installed. Running autoconf is probably what fixed that.
<brahmana> I actually did not run autoconf.. your first part is correct I think
<brahmana> I was running apt install to install a bunch of dev dependencies for compiling Ruby. I most likely started ./configure in parallel in a different shell
<brahmana> I do not precisely remember.. but most likely that is the case
<brahmana> So configure finished before apt install could install libssl1.0-dev
<leitz> Does the current configure script include ssl?
<brahmana> The configure output?
<brahmana> or the configure script itself?
<leitz> Either.
<leitz> The first time it did not.
<leitz> Hmm..mine doesn't either. False trail, I think.
<dionysus69> I failed to point Gemfile gem path to point to my local gem
<dionysus69> does anyone have example on how to import a local .gem file
<brahmana> Yeah, configure does not have anything like ssl
<brahmana> make and make install outputs have it though
<leitz> dionysus69, you should just be able to "gem install <my-cool_gem>", if you're in the same directory as the gem file.
<leitz> brahmana, then it looks like Ruby builds with SSL if you have it installed, without a specific configure command. Cool.
<brahmana> yeah.. looks like it
<brahmana> Since require 'openssl' is now working in irb, I believe we can say that gem install 'openssl' is not needed as it comes packages with Ruby itself
evdubs_ is now known as evdubs
<dionysus69> leitz: and it will use locally installed gem and not fetch from rubygems? because I also have it on rubygems
<dionysus69> ok I think I understood how it will work
<dionysus69> I will bump minor version, rebuild install and then use it in another gemfile using different version
ixti has quit [Ping timeout: 245 seconds]
<leitz> brahmana, openssl is a gem, but it may be a part of the core Ruby build or standard library. I'm not sure, thought.
<leitz> though.
<leitz> dionysus69, if you have one installed locally, and you 'require my_gem', then it should not try to fetch from rubygems.
<leitz> I thought you meant "Install a gem from a file I have locally".
<leitz> My coffee is wearing off...
mniip has quit [Quit: This page is intentionally left blank.]
mniip has joined #ruby
<dionysus69> leitz: worked without require too :), just specified gem "", "version"
<dionysus69> thanks!
<dionysus69> that's what I did yes, I installed file locally
<leitz> Ah, cool!
<dionysus69> cause I dont wanna release a gem on every minor change
<dionysus69> would be very taxing on rubygems.org too :D
<leitz> Agreed! I'm re-doing stuff on one of my gems and will re-publish when it's at a usable state. You have to balance deployment and stability.
<dionysus69> I am starting to like this gem ecosystem, turned out to be so simple, building my rails engine/plugin as a gem now ^.^
misterioso has quit [Quit: Connection closed for inactivity]
chalkmonster has quit [Quit: WeeChat 2.5]
mcspud has quit [Ping timeout: 268 seconds]
mcspud has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
AJA4350 has joined #ruby
brahmana has quit [Ping timeout: 260 seconds]
lucasb has joined #ruby
absolutejam has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
Swyper has joined #ruby
Obats has joined #ruby
<Obats> Hey guys, ruby newbie. Deep inside Mustache I get "Unknown error (class: Encoding::CompatibilityError): incompatible character encodings: UTF-8 and ASCII-8BIT", and then a stacktrace. Now, I get what the encodings part means, but how to find out which string(s) that are causing this error? Can I somehow enable extended error output, or something?
Swyper has quit [Remote host closed the connection]
<Obats> It would probably solve the problem if I could just see the strings(it has to be something comparing two strings, right?)..
dantey has quit [Ping timeout: 272 seconds]
<leitz> Obats, I'm not familiar with Mustache, but the stack trace should give you more. You can also put "$VERBOSE = true" at the top of your Ruby code, in some cases it gives more detail.
<leitz> Maybe post a gist of the output?
absolutejam has joined #ruby
<Obats> leitz: It's a template engine. I'll just give $VERBOSE a quick try
<Obats> (thanks :))
za1b1tsu has quit [Remote host closed the connection]
brahmana has joined #ruby
yalue has joined #ruby
selckin has joined #ruby
snickers has quit [Quit: Textual IRC Client: www.textualapp.com]
dantey has joined #ruby
Swyper has joined #ruby
<Obats> leitz: https://pastebin.com/RK63A4QJ (I added linebreaks) If you - or anyone else - would feel like having a look.. It's just the stack though, no context or environment data of any kind =[
<ruby[bot]> Obats: 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
DaRock has joined #ruby
drnerdius has quit [Read error: Connection reset by peer]
drnerdius has joined #ruby
<Obats> Ok, I just got a message from ruby about not using pastebin. Does that mean that you can't see my post with the pastebin link? (No harm intended, first time I'm here)
<leitz> Obats, I'm a newbie, so when the smart folks show up, listen to them. I can see your paste, just just gist next time.
<leitz> The errors go from most specific to parentage, so the first few lines are often where the issues are. The other bits are how you got there.
dantey has quit [Ping timeout: 245 seconds]
absolutejam has quit [Quit: WeeChat 2.5]
absolutejam has joined #ruby
<leitz> Obats, have you seen this? It might give you some ideas. https://github.com/logstash-plugins/logstash-filter-urldecode/issues/6
<adam12> Obats: Is this your project? or something you've downloaded?
<adam12> Obats: That mustache version is _ancient_.
brahmana has quit [Remote host closed the connection]
vondruch has quit [Ping timeout: 268 seconds]
<Obats> adam12: I'm one of the grunts working on that project
deepreds1 has quit [Ping timeout: 245 seconds]
<Obats> ..and yes, I noticed there's 1.1.0 out now, not sure if that would help here, but it's perhaps worth a shot
<adam12> Obats: I'd try updating Mustache. Also, in mail_renderer.rb, I'm presuming you're calling Mustache.render or something similar, perhaps with a locals hash. I'd start checking those variables for their encodings.
Obats has quit [Ping timeout: 260 seconds]
absolutejam has quit [Ping timeout: 245 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
deepreds1 has joined #ruby
aupadhye has quit [Ping timeout: 272 seconds]
deepreds1 has quit [Ping timeout: 246 seconds]
drnerdius has quit [Ping timeout: 245 seconds]
<leitz> Obats, adam12 is one of the "smart folks" I mentioned earlier. :)
Obats has joined #ruby
schneider has quit [Ping timeout: 245 seconds]
absolutejam has joined #ruby
drnerdius has joined #ruby
DTZUZO has joined #ruby
skryking has quit [Quit: WeeChat 2.4]
akem-lnvo has quit [Ping timeout: 244 seconds]
deepreds1 has joined #ruby
involans has joined #ruby
ZAJDAN has quit [Quit: Konversation terminated!]
aupadhye has joined #ruby
drnerdius has quit [Ping timeout: 248 seconds]
akem-lnvo has joined #ruby
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ruby
ramfjord has joined #ruby
<Obats> adam12: Yes, that's exactly what I am working on, checking the encoding of the variables. And yes, .render() is called :). I started using Ruby this morning though(sorry..). So I'm learning how to traverse an array with all kinds of types of data to print them, with the encoding if it's a string, etc..
jenrzzz has quit [Ping timeout: 244 seconds]
dantey has joined #ruby
conta has quit [Quit: conta]
ramfjord has quit [Ping timeout: 245 seconds]
za1b1tsu has joined #ruby
involans has quit [Remote host closed the connection]
Inline has joined #ruby
Esa_ has joined #ruby
Swyper has quit [Remote host closed the connection]
orbyt_ has joined #ruby
Snowy has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dbugger has quit [Ping timeout: 264 seconds]
dbugger has joined #ruby
madhatter has quit [Remote host closed the connection]
misterioso_ has joined #ruby
absolutejam has quit [Ping timeout: 244 seconds]
sgen has joined #ruby
jenrzzz has joined #ruby
orbyt_ has joined #ruby
ellcs has quit [Ping timeout: 246 seconds]
anjen has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
DaRock has quit [Ping timeout: 258 seconds]
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ruby
sgen has quit [Ping timeout: 276 seconds]
anjen has quit [Quit: anjen]
Technodrome has joined #ruby
ruby_student has joined #ruby
Technodrome has quit [Remote host closed the connection]
<ruby_student> Hi! Day 3 programming student here, can anyone point out what's wrong with my interpolation syntax. The array items are not appearing. "<#{tag_name} #{attributes[0]}=\"#{attributes[1]}\">#{yield}</#{tag_name}>"
jenrzzz has quit [Ping timeout: 244 seconds]
deepreds1 has quit [Ping timeout: 272 seconds]
ixti has joined #ruby
Obats has quit [Ping timeout: 260 seconds]
deepreds1 has joined #ruby
prestorium has quit [Ping timeout: 248 seconds]
codefriar has joined #ruby
deepreds1 has quit [Ping timeout: 272 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> ruby_student: Hi!
<havenwood> ruby_student: The interpolation looks good. Sanity check what `attributes` is?: p attributes
codefriar has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> ruby_student: Is attributes an Array, for sure?: puts attributes.class
<havenwood> ruby_student: If it is, double check its size: puts attributes.size
<havenwood> ruby_student: (I'm suspicious it's a Hash, but just a wild guess.)
Exuma has joined #ruby
<ruby_student> yep, attributes is an array. I'm tinkering around with the code, something else should be causing the arrays to not return correctly. At least I now know the interpolation is correct, thanks havenwood!
ruby_student has left #ruby [#ruby]
AndreYuhai has quit [Remote host closed the connection]
AndreYuhai has joined #ruby
AndreYuhai has quit [Client Quit]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
alem0lars has joined #ruby
SanguineAnomaly has quit [Ping timeout: 272 seconds]
SanguineAnomaly has joined #ruby
involans has joined #ruby
gix has joined #ruby
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
involans has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
jenrzzz has joined #ruby
joshua__ has joined #ruby
<joshua__> can anyone tell me if this is possible
<joshua__> im trying to set the IRB prompt mode using `IRB.conf[:PROMPT_MODE] = mode` where mode is a variable
<joshua__> the full code (except the config file where the variable is pulled from.) is at https://github.com/Myersj281/rbsh.git
joshua__ has quit [Quit: joshua__]
joshua__ has joined #ruby
joshua__ has quit [Client Quit]
rshetty has joined #ruby
dantey has quit [Ping timeout: 268 seconds]
rshetty has quit [Remote host closed the connection]
duderonomy has joined #ruby
alem0lars has quit [Ping timeout: 272 seconds]
Snowy has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 244 seconds]
lord4163 has quit [Excess Flood]
lord4163 has joined #ruby
s2013 has joined #ruby
milkohol has joined #ruby
rshetty has joined #ruby
aupadhye has quit [Remote host closed the connection]
akem-lnvo has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
ixti has quit [Ping timeout: 272 seconds]
rshetty has quit [Ping timeout: 276 seconds]
za1b1tsu has quit [Remote host closed the connection]
absolutejam has joined #ruby
zapata has joined #ruby
matled has quit [Remote host closed the connection]
matled has joined #ruby
nuck has quit [Ping timeout: 257 seconds]
Iambchop has quit [Ping timeout: 257 seconds]
fowlduck has quit [Ping timeout: 258 seconds]
zipkid has quit [Ping timeout: 258 seconds]
nuck has joined #ruby
fowlduck has joined #ruby
zipkid has joined #ruby
absolutejam has quit [Ping timeout: 248 seconds]
akem-lnvo has joined #ruby
Iambchop has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
absolutejam has joined #ruby
Exuma has joined #ruby
ramfjord has joined #ruby
themsay has quit [Ping timeout: 245 seconds]
oncall-pokemon has joined #ruby
xco has joined #ruby
mb^ has joined #ruby
s2013 has joined #ruby
sauvin has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
absolutejam has quit [Ping timeout: 248 seconds]
Snowy has joined #ruby
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
themsay has joined #ruby
schneider has joined #ruby
alem0lars has joined #ruby
Steap_ has joined #ruby
Steap has quit [Ping timeout: 268 seconds]
Steap_ is now known as Steap
cd has joined #ruby
tdy has joined #ruby
schne1der has joined #ruby
schne1der has quit [Client Quit]
Snowy has quit [Ping timeout: 245 seconds]
pwnd_nsfw` has quit [Ping timeout: 248 seconds]
leitz has quit [Quit: Leaving]
queip has quit [Ping timeout: 272 seconds]
kaiser has joined #ruby
sphenxes has quit [Remote host closed the connection]
xco has quit [Quit: xco]
absolutejam has joined #ruby
queip has joined #ruby
crankharder has joined #ruby
kaiser0 has joined #ruby
kaiser has quit [Ping timeout: 244 seconds]
Technodrome has joined #ruby
involans has joined #ruby
crankharder has quit [Quit: leaving]
fphilipe has quit [Ping timeout: 244 seconds]
xco has joined #ruby
manakanapa has quit [Quit: The Lounge - https://thelounge.chat]
manakanapa has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
fphilipe has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bitwinery has joined #ruby
mynameisdebian has joined #ruby
orbyt_ has joined #ruby
<mynameisdebian> How do I text-join all members of an array with a comma, except those members that are nil?
s2013 has joined #ruby
<canton7> what do you want to do with members that are nil? just exclude them entirely?
hiroaki has joined #ruby
iNs_ has quit [Remote host closed the connection]
iNs has joined #ruby
yalue has quit [Ping timeout: 246 seconds]
tdy has quit [Ping timeout: 246 seconds]
<ramfjord> mynameisdebian: ary.compact.join(",") do what you want?
<mynameisdebian> ramfjord, it does, thanks!
<mynameisdebian> definitely cleaner than .reject(&:blank?).join
<Norrin> what's the & do on that line?
DTZUZO has quit [Ping timeout: 245 seconds]
kabads has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
alem0lars has quit [Remote host closed the connection]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
jinie has joined #ruby
fphilipe has quit [Ping timeout: 276 seconds]
leitz has joined #ruby
<mozzarella> passes :blank? as block
<mozzarella> which gets .to_proc called upon
jenrzzz has quit [Ping timeout: 245 seconds]
<Norrin> oh sweet
reber has quit [Remote host closed the connection]
jcalla has quit [Quit: Leaving]
involans has quit [Quit: involans]
deepreds1 has joined #ruby
sameerynho has joined #ruby
Snowy has joined #ruby
AndreYuhai has joined #ruby
schneider has quit [Ping timeout: 246 seconds]
<AndreYuhai> Hey there, how do I throw an exception out of my function? Just like in Java like public int foo () throws ...
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvw has joined #ruby
<leftylink> is the question just about using the keyword `raise` ? or is it about signalling to some static analysis sytem that a function might raise? (answer to second question will depend on exactly what static analysis system)
queip has quit [Ping timeout: 245 seconds]
<AndreYuhai> leftylink: Nope, to be more clear, I have a class called "Database" using the gem "Mysql2" and in that class I have a function called insert_into_table. So I am using this "Database" class in another class to insert some data into my table.
<AndreYuhai> But when the data is duplicate I get an exception. I want to pass this exception to the calling class
<leftylink> then doesn't that mean your question is in fact about the `raise` keyword?
<AndreYuhai> leftylink: So do I just rescue StandardError => e; raise e; end ?
<AndreYuhai> I mean inside the begin block of course
queip has joined #ruby
s2013 has joined #ruby
fphilipe has joined #ruby
DTZUZO has joined #ruby
Snowy has quit [Ping timeout: 248 seconds]
Fernando-Basso has joined #ruby
ur5us has joined #ruby
spiette has quit [Quit: ZNC 1.7.3 - https://znc.in]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kaiser_ has joined #ruby
spiette has joined #ruby
kaiser0 has quit [Ping timeout: 244 seconds]
themsay has quit [Ping timeout: 245 seconds]
themsay has joined #ruby
AndreYuhai has quit [Remote host closed the connection]
AndreYuhai has joined #ruby
ellcs has joined #ruby
AndreYuhai has quit [Remote host closed the connection]
AndreYuhai has joined #ruby
<mynameisdebian> I use blocks = Array.new(20, {})
<mynameisdebian> to generate an array of empty Hashes, then blocks[0]["type"] = "context"
<mynameisdebian> and blocks is now an array of 20 Hashes, each Hash being {"type" => "context"} Any idea what's going on?
brool has joined #ruby
<baweaver> You want to use a block for those
<baweaver> Otherwise every default value is that hash
<baweaver> the same hash in fact
<baweaver> Array.new(20) { |i| {} }
<mynameisdebian> thanks, that works but I don't really get why
fphilipe has quit [Ping timeout: 246 seconds]
<baweaver> In your example it's using literally the same hash
<baweaver> The reason it works with things like 0 is because they cannot be mutated
<baweaver> Try it with a string or another array or an object
sameerynho has quit [Ping timeout: 258 seconds]
ellcs has quit [Ping timeout: 264 seconds]
queip has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 244 seconds]
deepreds1 has quit [Ping timeout: 268 seconds]
ramfjord has joined #ruby
queip has joined #ruby
rafadc has joined #ruby
rafadc_ has quit [Read error: Connection reset by peer]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 246 seconds]
involans has joined #ruby
Technodrome has joined #ruby
ramfjord has joined #ruby
fphilipe has joined #ruby
milkohol has quit [Ping timeout: 258 seconds]
xco has quit [Quit: xco]
cd has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
xco has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
cd has joined #ruby
ramfjord has joined #ruby
amrx has joined #ruby
jls42 has joined #ruby
jls42 has quit [Client Quit]
kaiser0 has joined #ruby
involans has quit [Quit: involans]
kaiser_ has quit [Ping timeout: 272 seconds]
amrx has quit [Ping timeout: 246 seconds]
<leitz> And look at the object_id.
absolutejam has quit [Ping timeout: 268 seconds]
<leitz> Well, I was going to ask a question, but I figured it out. :)
henninb has joined #ruby
fphilipe has quit [Ping timeout: 268 seconds]
<leitz> Is there a better way to make the form data in integer? https://github.com/makhidkarun/ftl_tools/blob/master/lib/ftl_tools/ship_builder.rb#L21-L22
<leitz> in/an integer
Xeago_ has joined #ruby
Fernando-Basso has quit [Ping timeout: 272 seconds]
Xeago has quit [Ping timeout: 272 seconds]
Xeago_ is now known as Xeago
ixti has joined #ruby
defn has joined #ruby
<leitz> Ah, just add .to_i to the @data(fetch blah blah).to_i
Snowy has joined #ruby
staticx has quit [Remote host closed the connection]
defn has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
lxsameer has quit [Ping timeout: 245 seconds]
Technodrome has quit [Remote host closed the connection]