baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.3, 2.3.6, 2.2.9 & 2.5.0-rc1: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
jrabe has quit [Quit: Disconnected]
eckhardt has joined #ruby
chocoelho has quit [Quit: chocoelho]
jrabe has joined #ruby
jamesaxl has quit [Quit: WeeChat 1.9.1]
scorpiosec has quit [Quit: No Ping reply in 180 seconds.]
scorpiosec has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
cschneid_ has quit [Remote host closed the connection]
mtkd has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chaos95 has joined #ruby
eckhardt has joined #ruby
romeoh has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
NightMonkey has quit [Ping timeout: 276 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
pelegreno has joined #ruby
pelegreno has quit [Remote host closed the connection]
pelegreno has joined #ruby
romeoh has quit [Ping timeout: 264 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has joined #ruby
NightMonkey has joined #ruby
d^sh has quit [Ping timeout: 256 seconds]
pastorinni has quit [Remote host closed the connection]
d^sh has joined #ruby
cschneid_ has quit [Ping timeout: 248 seconds]
scorpiosec has quit [Quit: No Ping reply in 180 seconds.]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
scorpiosec has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
halt- has quit [Ping timeout: 265 seconds]
mtkd has quit [Ping timeout: 256 seconds]
shinnya has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
cdg has quit [Ping timeout: 265 seconds]
Guest12437 has joined #ruby
orbyt_ has joined #ruby
jxv has joined #ruby
clemens3 has quit [Ping timeout: 264 seconds]
pilne has joined #ruby
maum has joined #ruby
cdg has joined #ruby
cdg has quit [Read error: Connection reset by peer]
scmlinux has joined #ruby
cdg has joined #ruby
scmlinux has quit [Remote host closed the connection]
scmlinux has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
alfiemax has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
RougeT430 has quit [Ping timeout: 248 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
romeoh has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
romeoh has quit [Ping timeout: 268 seconds]
Guest12437 has quit [Ping timeout: 256 seconds]
<scmlinux> Hi, all.
k0mpa has joined #ruby
marr has quit [Ping timeout: 256 seconds]
cagomez has quit [Ping timeout: 268 seconds]
scmlinux` has joined #ruby
scmlinux` has quit [Client Quit]
scmlinux has quit [Ping timeout: 256 seconds]
milardovich has quit []
mtkd has joined #ruby
uZiel has joined #ruby
Guest29 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gnufied has quit [Quit: Leaving]
jxv has quit [Quit: string on the can snapped off]
knight33 has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 248 seconds]
pilne has quit [Quit: Quitting!]
mikhael_k33hl has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Gabemo has quit [Read error: Connection reset by peer]
<mikhael_k33hl> I'm having problems setting up rvm with jenkins. https://gist.github.com/marzdgzmn/d3d1e78b2c94249b3c89fc48ffabf880 I'm pretty new to ruby, what seems to be the problem here?
pilne has joined #ruby
scm has quit [Remote host closed the connection]
scmlinux has joined #ruby
uZiel has joined #ruby
cagomez has joined #ruby
cagomez has quit [Ping timeout: 272 seconds]
troulouliou_dev has quit [Quit: Leaving]
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
<ReinH> @mikhael_k33hl Have you tried googling for your error message?
<havenwood> mikhael_k33hl: The RVM script ~/.rvm/script/rvm isn't getting sourced because you're not using a login shell.
Dimik has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<mikhael_k33hl> havenwood: just a newbie question though what does 'rvm use ruby@gemset' do?
<havenwood> mikhael_k33hl: Before you can run `bundle` you need to: gem install bundler
<havenwood> mikhael_k33hl: RVM has a thing that chruby and rbenv don't have called gemsets.
<havenwood> mikhael_k33hl: Gemsets come from a pre-Bundler era, and were used to keep gems separate from system gems.
romeoh has joined #ruby
<havenwood> mikhael_k33hl: RVM used to provide the Bundler gem for you, but it doesn't anymore. Bundler will ship with Ruby in 2.5.
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> mikhael_k33hl: I'd be happy to help you with the login shell stuff in #rvm. It's not very Ruby-related.
<havenwood> It's more RVM related, in shell scripting land.
<mikhael_k33hl> havenwood: oh gee, thanks mate
kapil___ has joined #ruby
<havenwood> mikhael_k33hl: Note the `i` in `sudo -Hiu jenkins` runs as a login shell: https://rvm.io/integration/jenkins
romeoh has quit [Ping timeout: 248 seconds]
d^sh has quit [Ping timeout: 265 seconds]
d^sh has joined #ruby
sotrhraven has quit [Quit: sotrhraven]
howdoi has quit [Quit: Connection closed for inactivity]
mikhael_k33hl has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
cloaked1 has quit [Ping timeout: 256 seconds]
cdg has quit [Ping timeout: 265 seconds]
nofxx_ has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
ramfjord has joined #ruby
cagomez has joined #ruby
meesles has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
pastorinni has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
pastorinni has quit [Read error: Connection reset by peer]
pastorinni has joined #ruby
alfiemax has joined #ruby
justicef_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
justicefries has joined #ruby
d^sh has quit [Ping timeout: 248 seconds]
konsolebox has quit [Ping timeout: 264 seconds]
konsolebox has joined #ruby
d^sh has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
cdg_ has joined #ruby
romeoh has joined #ruby
Dimik has joined #ruby
pelegreno has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 255 seconds]
pelegreno has joined #ruby
romeoh has quit [Ping timeout: 272 seconds]
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
scmlinux has quit [Remote host closed the connection]
halt has joined #ruby
pilne has quit [Quit: Quitting!]
nogic has quit [Ping timeout: 248 seconds]
halt is now known as Guest59098
nfk has joined #ruby
nfk has quit [Client Quit]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest59098 has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Remote host closed the connection]
halt- has joined #ruby
jnyw has quit [Quit: WeeChat 2.0]
orbyt_ has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
skweek has quit [Ping timeout: 256 seconds]
eckhardt has joined #ruby
knight33 has joined #ruby
DmitryBochkarev has joined #ruby
scorpiosec has quit [Ping timeout: 272 seconds]
scorpiosec has joined #ruby
troys is now known as troys_
tamouse__ has quit [Quit: Lost terminal]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
halt- has quit [Ping timeout: 248 seconds]
riceandb1ans is now known as riceandbeans
romeoh has joined #ruby
riceandbeans has quit [Changing host]
riceandbeans has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cdg_ has quit [Remote host closed the connection]
lytol_ has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 268 seconds]
AJA4350 has joined #ruby
AJA4350 has quit [Client Quit]
chocoelho has joined #ruby
chocoelho has quit [Remote host closed the connection]
zwliew has joined #ruby
nofxx has joined #ruby
gix has joined #ruby
gix- has quit [Ping timeout: 272 seconds]
scorpiosec has quit [Ping timeout: 248 seconds]
scorpiosec has joined #ruby
slash_nick has joined #ruby
romeoh has quit [Remote host closed the connection]
nso95- has joined #ruby
nso95 has quit [Disconnected by services]
nso95- is now known as nso95
nso95 has quit [Changing host]
nso95 has joined #ruby
slash_nick has quit [Ping timeout: 240 seconds]
Guest29 has joined #ruby
plexigras has quit [Ping timeout: 265 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
c0ncealed has quit [Remote host closed the connection]
plexigras has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
c0ncealed has joined #ruby
halt has joined #ruby
halt is now known as Guest80953
ramfjord has joined #ruby
d_kam has joined #ruby
pastorinni has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 260 seconds]
Guest80953 has quit [Quit: ZNC 1.6.5 - http://znc.in]
bmurt has joined #ruby
slash_nick has joined #ruby
slash_nick has quit [Client Quit]
dviola has quit [Quit: WeeChat 2.0]
anisha has joined #ruby
konsolebox has quit [Ping timeout: 264 seconds]
konsolebox has joined #ruby
<Vashy> I want to create a scaffold for the details of a game. Something like: `rails g scaffold MatchDetails`
<Vashy> Is the pluralness of MatchDetails going to mess things up?
<Vashy> I'm a rails beginner (also posted in #RubyOnRails)
jenrzzz has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
ur5us has quit [Remote host closed the connection]
iamarun has joined #ruby
halt has joined #ruby
halt is now known as Guest79992
garyserj has joined #ruby
jamesaxl has joined #ruby
<garyserj> Hi, if I have a string representing a command i'd like to run such as mystr="dir c:\\windows\\system32\\calc.exe" How can I get the output of that command?
LocaMocha has joined #ruby
Guest29 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> what have you tried?
<garyserj> a=`dir c:\\windows\\system32\\calc.exe` That gets the output but doesn't let me puts my string.
<garyserj> i'd like to be able to convery mystr to something with backticks
<garyserj> And i've tried system(mystr) that preserves mystr but it doesn't let me get the output
Guest29 has joined #ruby
<baweaver> &ri Dir
<baweaver> the builtin works better
<baweaver> also backticks will take interpolation
<garyserj> i'm trying to run commands. not specifically dir
<garyserj> dir was just an example command
<baweaver> also the built in is cross platform
<baweaver> Open3 is the best, though not sure if it works on Windows
<baweaver> &ri Open3
aupadhye has joined #ruby
<garyserj> thanks
pwnd_nsfw has quit [Ping timeout: 248 seconds]
troys_ is now known as troys
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fyrril has quit [Quit: Leaving]
rippa has joined #ruby
uZiel has quit [Remote host closed the connection]
meesles has quit []
enterprisey has joined #ruby
alfiemax has quit [Remote host closed the connection]
konsolebox has quit [Ping timeout: 256 seconds]
pwnd_nsfw has joined #ruby
konsolebox has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
alfiemax has joined #ruby
terens has joined #ruby
reber has joined #ruby
rhebz916 has joined #ruby
rrutkowski has joined #ruby
<garyserj> how do I get this to work, I want to use gsub with an array
<garyserj> a=[/q/]
<garyserj> puts "asdf".gsub(a[0],"q")
zwliew has quit [Quit: Connection closed for inactivity]
d_kam has quit [Quit: Be back later ...]
terens has quit [Ping timeout: 240 seconds]
d_kam has joined #ruby
SuperL4g is now known as SuperLag
d_kam has quit [Ping timeout: 268 seconds]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
troys has quit [Quit: Bye]
<apeiros> garyserj: that should work. bug replacing a q with a q won't have a visible effect. even less on a string without a q.
<apeiros> *but
spooky_d has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
<spooky_d> Hi guys
<spooky_d> I have a program that uses the RUBY C API for something
<spooky_d> and when I have a crash in that program I always see the ruby SIGSEGV handler
<spooky_d> I no longer want to see that thing.
<spooky_d> Do you have any idea how can I disable it?
pelegreno has quit [Remote host closed the connection]
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
ldepandis has joined #ruby
ramfjord has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
pelegreno has joined #ruby
Guest29 has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 256 seconds]
dionysus69 has joined #ruby
mozzarella has quit [Read error: Connection reset by peer]
mozzarella has joined #ruby
<garyserj> apeiros: this doesn't work a=[/q/]
<garyserj> puts "asdf".gsub(a[0],"w")
<garyserj> doh I must be mad..
<apeiros> garyserj: what do you expect it to replace?
<garyserj> yeah it works.. "qsdf".gsub(a[0],"w")
<garyserj> thanks
<apeiros> yw
swati_27 has joined #ruby
pelegreno has quit [Remote host closed the connection]
konsolebox has quit [Ping timeout: 265 seconds]
b100s has joined #ruby
<b100s> hi2all
<swati_27> Hi. I'm new to ruby on rails and i'm trying to run the server
<swati_27> But it's giving me error. Please help
pelegreno has joined #ruby
<swati_27> This is what I did:
<ruby[bot]> swati_27: we in #ruby do not like irccloud.com, I reposted your paste to gist for you: https://gist.github.com/96563bb971dc2817551c6d30a67cc2e1
<ruby[bot]> swati_27: irccloud.com has no syntax highlighting, distracting formatting and loads slowly for most.
konsolebox has joined #ruby
pwnd_nsfw` has joined #ruby
pelegreno has quit [Remote host closed the connection]
pelegreno has joined #ruby
ur5us has joined #ruby
p0p0pr37 has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
graft has joined #ruby
KeyJoo has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
d_kam has joined #ruby
jenrzzz has joined #ruby
d_kam has quit [Ping timeout: 256 seconds]
ldepandis has quit [Ping timeout: 255 seconds]
terens has joined #ruby
Pgouv_ has joined #ruby
terens has quit [Ping timeout: 264 seconds]
<b100s> i mean, what is better to have as last stament of function: `return body.is_a?(Hash) ? body['foo'] : nil` or `body['foo'] rescue nil` ?
pelegreno has quit [Remote host closed the connection]
pelegreno has joined #ruby
rrutkowski has quit [Quit: rrutkowski]
jenrzzz has quit [Ping timeout: 248 seconds]
<pwnd_nsfw> b100s, probably the return nil option
<b100s> @pwnd_nsfw, could you explain why?
apeiros has joined #ruby
benjen- is now known as benjen
<apeiros> ?rails swati_27
<ruby[bot]> swati_27: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<pwnd_nsfw> b100s, I guess you can kind of narrow down why body['foo'] isn't returning what you want
<apeiros> b100s: clearly the first option
<b100s> @pwnd_nsfw, thanks! @apeiros , why would you choose first?
<matthewd> body && body['foo']
<apeiros> b100s: because your rescue will swallow all kinds of errors
<apeiros> not just the one you expect
<apeiros> but better yet would be if you didn't have to test at all
<apeiros> or if it's only nil & hash, then body&.[]('foo') (yes, looks terribly ugly)
alex`` has joined #ruby
alex`` is now known as alexherbo2
alexherbo2 is now known as alex``
hs366 has joined #ruby
yeticry has quit [Ping timeout: 248 seconds]
mtkd has quit [Ping timeout: 248 seconds]
lupine has quit [Ping timeout: 240 seconds]
<b100s> apeiros, thanks
mtkd has joined #ruby
oleo has quit [Quit: Leaving]
ta_ has quit [Remote host closed the connection]
lupine has joined #ruby
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
Pgouv_ has quit [Quit: Leaving]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
blackmesa has joined #ruby
<Yxhuvud> I wonder why Enuerable#count with break in the block returns the break value instead of the sum so far. :(
d_kam has joined #ruby
<apeiros> because break does not return control to count
<apeiros> next does
mniip has quit [Ping timeout: 260 seconds]
apeiros has quit [Read error: Connection reset by peer]
mozzarella has quit [Quit: WeeChat 1.9.1]
mozzarella has joined #ruby
andikr has joined #ruby
despai has joined #ruby
uZiel has joined #ruby
apeiros has joined #ruby
selim has quit [Ping timeout: 265 seconds]
selim has joined #ruby
InfinityFye has joined #ruby
despai has quit [Quit: ...]
TomyWork has joined #ruby
ta_ has joined #ruby
lunarkitty7 has quit [Ping timeout: 252 seconds]
biberu has joined #ruby
jameser has joined #ruby
Burgestrand has joined #ruby
claudiuinberlin has joined #ruby
Burgestrand has quit [Client Quit]
Kristjan has joined #ruby
mniip has joined #ruby
Kristjan has left #ruby [#ruby]
mark_66 has joined #ruby
pikislabis has joined #ruby
Dimik has joined #ruby
amatas has joined #ruby
ur5us has joined #ruby
lunarkitty7 has joined #ruby
InfinityFye has left #ruby ["Leaving"]
kernelPaniq has joined #ruby
Burgestrand has joined #ruby
<apeiros> Yxhuvud: back. had to update my mobile. see:
<apeiros> >> def foo; yield; puts "I don't even"; end; foo { break "hi" }
<ruby[bot]> apeiros: # => "hi" (https://eval.in/921790)
<apeiros> the puts isn't executed since control is never given back to foo
bkxd has joined #ruby
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
Riddell has quit [Ping timeout: 265 seconds]
Riddell has joined #ruby
enterprisey has quit [Remote host closed the connection]
jenrzzz has joined #ruby
mikecmpbll has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
ta_ has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
uZiel has joined #ruby
uZiel has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 248 seconds]
ta_ has joined #ruby
uZiel has joined #ruby
b100s has quit [Quit: Leaving]
RougeT430 has joined #ruby
blackmesa1 has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
bkxd has joined #ruby
Dimik has quit [Ping timeout: 272 seconds]
uZiel has quit [Remote host closed the connection]
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
blackmesa1 has quit [Ping timeout: 272 seconds]
cadillac_ has quit [Ping timeout: 256 seconds]
Serpent7776 has joined #ruby
blackmesa1 has joined #ruby
hs367 has joined #ruby
hs366 has quit [Read error: Connection reset by peer]
_hs366 has joined #ruby
A124 has quit [Ping timeout: 240 seconds]
alex`` has quit [Quit: WeeChat 2.0]
DmitryBochkarev has joined #ruby
alex`` has joined #ruby
A124 has joined #ruby
cadillac_ has joined #ruby
hs367 has quit [Ping timeout: 248 seconds]
alex`` has quit [Client Quit]
A124 has quit [Ping timeout: 264 seconds]
A124 has joined #ruby
_hs366 has quit [Read error: Connection reset by peer]
_hs366 has joined #ruby
bkxd has quit []
alex`` has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
Beams has joined #ruby
ta_ has joined #ruby
eb0t has quit [Quit: WeeChat 1.9.1]
erlend has quit [Ping timeout: 268 seconds]
Nowaker has quit [Remote host closed the connection]
scorpiosec has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
erlend has joined #ruby
amatas has quit [Read error: Connection reset by peer]
Nowaker has joined #ruby
amatas has joined #ruby
ur5us has joined #ruby
uZiel has joined #ruby
Cavallari has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
uZiel has quit [Remote host closed the connection]
miskatonic has joined #ruby
uZiel has joined #ruby
milardovich has joined #ruby
ana_ has joined #ruby
pikislabis has quit [Quit: pikislabis]
_hs366 has quit [Quit: Leaving]
blackmesa1 has quit [Ping timeout: 255 seconds]
pikislabis has joined #ruby
kedare has joined #ruby
eb0t has joined #ruby
ta_ has quit [Ping timeout: 255 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
blackmesa1 has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
nadir has joined #ruby
<dminuoso> apeiros: It's a freaking mess.
<dminuoso> It's really tough to explain how "break", "return" and "next" differ..
<dminuoso> I thought I got it right, but Burgestrand had to prove me wrong. :(
blackmesa1 has quit [Client Quit]
<Burgestrand> 💪
uZiel has quit [Ping timeout: 248 seconds]
marr has joined #ruby
milardovich has quit [Remote host closed the connection]
yosafbridge has quit [Quit: Leaving]
ramfjord has joined #ruby
milardovich has joined #ruby
amatas_ has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
s2013 has joined #ruby
mrBen2k2k2k has quit [Ping timeout: 256 seconds]
yosafbridge has joined #ruby
jaruga has joined #ruby
mniip has quit [Ping timeout: 240 seconds]
RougeT430 has quit [Ping timeout: 248 seconds]
<apeiros> dminuoso: I think next and break are easy
<apeiros> return is somewhat complex
<apeiros> especially with those minute differences depending on whether you use lambda or proc.
mniip has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
nicoulaj has quit [Quit: quit]
cschneid_ has joined #ruby
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
nicoulaj has joined #ruby
mrBen2k2k2k_ has joined #ruby
cschneid_ has quit [Ping timeout: 268 seconds]
Burgestrand has quit [Quit: Closing time!]
milardovich has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
ldnunes has joined #ruby
cosimo_ has quit [Ping timeout: 264 seconds]
leitz has joined #ruby
<dminuoso> return in isolation is the easiest to explain
<apeiros> go ahead, I'd like to have an easy explanation in my repertoire :)
cosimo_ has joined #ruby
<dminuoso> apeiros: return returns control to the caller of the currently executed method/lambda.
milardovich has quit [Read error: Connection reset by peer]
<apeiros> nice. that actually seems accurate.
milardovich has joined #ruby
iamarun has quit [Remote host closed the connection]
selim has quit [Ping timeout: 248 seconds]
jrabe has left #ruby ["Rejoining channels"]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
KeyJoo has quit [Ping timeout: 264 seconds]
Burgestrand has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
qba73 has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
Psybur has joined #ruby
swati_27 has quit [Quit: Connection closed for inactivity]
ta_ has joined #ruby
AJA4350 has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
ur5us has joined #ruby
zautomata has quit [Quit: WeeChat 1.7]
scmlinux has joined #ruby
ur5us has quit [Ping timeout: 268 seconds]
amatas_ has quit [Quit: amatas_]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mostlybadfly has joined #ruby
Juzzika has joined #ruby
sameerynho has joined #ruby
d_kam has quit [Quit: Lingo: www.lingoirc.com]
rhebz916 has quit [Ping timeout: 240 seconds]
zwliew has joined #ruby
rhebz916 has joined #ruby
sundhell_away is now known as sundhell
ta_ has quit [Ping timeout: 255 seconds]
ta_ has joined #ruby
pikislabis has quit [Quit: pikislabis]
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
alfiemax has quit [Remote host closed the connection]
<mikecmpbll> what do you suppose the rationale behind this is? https://github.com/bbatsov/ruby-style-guide#no-trailing-params-comma
<mikecmpbll> given they take the opposite view on arrays/hashes
shinnya has joined #ruby
<mikecmpbll> i know it doesn't really matter, i don't need to care what someone else chooses as a guide, but i'm interested :D
milardovich has quit []
pdcawley has quit [Ping timeout: 256 seconds]
pikislabis has joined #ruby
Tempesta has quit [Quit: See ya!]
<mikecmpbll> it becomes especially superficial when you have a method that takes a single hash argument, whereby it will tell you to remove the {}, then subsequently tell you to remove the comma
amatas_ has joined #ruby
Tempesta has joined #ruby
tcopeland has joined #ruby
qba73 has quit [Ping timeout: 255 seconds]
stoffus has joined #ruby
synthroid has joined #ruby
ta_ has quit [Ping timeout: 264 seconds]
_aeris_ has quit [Ping timeout: 248 seconds]
cadillac_ has quit [Ping timeout: 256 seconds]
_aeris_ has joined #ruby
ta_ has joined #ruby
alex`` has quit [Quit: WeeChat 2.0]
jameser has joined #ruby
cadillac_ has joined #ruby
cagomez has joined #ruby
chmuri has quit [Excess Flood]
cagomez has quit [Ping timeout: 240 seconds]
chmurifree has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
KeyJoo has joined #ruby
<apeiros> syntax quiz: with `foo(<<-END_OF_STRING) {`, what comes first after the newline? the block body or the string literal? :)
cdg has joined #ruby
<ar> apeiros: string
<apeiros> ar: 💯
<apeiros> it's impressively ugly :D
cdg has quit [Ping timeout: 252 seconds]
pikislabis has quit [Quit: pikislabis]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
<dminuoso> apeiros: Id guess the string literal.
<apeiros> dminuoso: : 💯
<apeiros> I had to try. I didn't know. in the actual case where it came up I solved it by avoiding the situation as it's so ugly to read.
<dminuoso> apeiros: Did you see my findings in -ot?
<apeiros> yupp
<marahin> apeiros could you make a runnable example with the use of that syntax?
<marahin> :O
<dminuoso> It's so annoying. :(
<dminuoso> From now on Ill just use `break` every time.
<apeiros> marahin: sure. sec.
<marahin> apeiros thx
qba73 has joined #ruby
<apeiros> marahin: https://eval.in/921958
KeyJoo has quit [Quit: Good luck! Have a nice Day!]
<apeiros> dminuoso: I'll just use throw/catch everywhere now.
qba73 has quit [Remote host closed the connection]
<marahin> apeiros awesome!
<dminuoso> apeiros: Hah. :D
<marahin> and disgusting
<marahin> thank you!
<marahin> :D
<apeiros> marahin: it gets even funnier if you have multiple here-doc args ;-)
qba73 has joined #ruby
mjolnird has joined #ruby
cdg has joined #ruby
<dminuoso> apeiros: It's come to my attention that heredocs are a code smell of a larger underlying problem.
<dminuoso> It's the refusal to hide interpolation in an abstraction.
<apeiros> strings in code?
<apeiros> IMO strings largely don't belong into code.
<apeiros> but we have no sane mechanics to have them outside of code.
<dminuoso> Well there are valid use cases like SQL.
<apeiros> I'm not sure they wouldn't be better outside of code too.
<apeiros> but I've got bigger beefs with sql anyway.
<apeiros> "lets talk from machine to machine through a language designed to be used by humans"
<apeiros> awesome idea.
<dminuoso> apeiros: SQL is a pretty decent declarative DSL.
<apeiros> yes. it's still one for humans.
Cavallari has quit [Quit: Cavallari]
<apeiros> bind variables make it slightly less painful. but only slightly.
cdg has quit [Ping timeout: 255 seconds]
Cavallari has joined #ruby
<apeiros> the approach I take with my framework btw. is to move any non-trivial sql to the database. use views. use table valued functions.
<apeiros> makes a couple of things also less painful. but it's still leaky.
<dminuoso> views.
<dminuoso> please dont.
<dminuoso> Ive had enough of views.
Cavallari has quit [Client Quit]
<apeiros> I'm sorry. but a view is a ton better than MyModel.joins("funny sql").joins("other funny sql").joins(:some_association).where(guess_the_table_name: {col: …})
<apeiros> even more so if you have funny expressions like rownum over partition, grouped subselects etc.
<apeiros> (yes, some people have more complex queries than `select * from foos`)
<dminuoso> apeiros: I think the arel approach is in the right direction.
bhaak has quit [Ping timeout: 265 seconds]
<apeiros> no. strong disagree.
<dminuoso> Well it's just executed incorrectly.
<apeiros> there's *literally* no point in learning a pure abstraction layer if it gains you absolutely *nothing*
<dminuoso> But I do wonder whether there's a monadic combinator approach.
justicefries has joined #ruby
kedare has quit [Quit: kedare]
<apeiros> arel is an amazing piece of code. but IMO it's entirely the wrong direction.
<dminuoso> apeiros: Well the great flexibility of ARel comes from being able to merge nodes.
ur5us has joined #ruby
<dminuoso> And that's the bit that allows you to think of arel nodes are monoids.
<apeiros> great. you have a good theory which is destroyed by first contact with reality.
<dminuoso> So far its been working great for us, but we dont have complexity in depth.
<dminuoso> We have complexity in width, so in many cases arel does allow for code sharing.
swati_27 has joined #ruby
<apeiros> look, the very moment you need a piece of sql to hold your arel together, the abstraction breaks and you need to know about complex interactions between two already complex systems
<apeiros> -> nogo
<dminuoso> A lot of our queries are structurally similar, they just target different levels of hierarchies.
shinnya has quit [Ping timeout: 264 seconds]
<apeiros> and if arel wants to get rid of every piece of sql to use in it, it has to map *all* nuances the different sql implementations use
<apeiros> good fucking luck with that
<dminuoso> apeiros: Well I opt out and go to raw SQL for any non-trivial queries.
<dminuoso> I dont pretend to do any joins.where.left_joins.merge.magic.shit.show
<dminuoso> Because that gets you nowhere, I agree with that.
<dminuoso> I think we're on the same page in a way.
<dminuoso> It's just that our needs are mostly covered by arel.
<dminuoso> Yours probably aren't.
<dminuoso> (Though things quickly break when you start talking about things like ransack)
<apeiros> also I'm quite sure I do not want to even learn the arel equivalent of e.g. `select rank over (partition by col) from foos`
<dminuoso> apeiros: +1
<dminuoso> Im absolutely with you.
<dminuoso> Non-trivial queries, screw AR/arel
<ar> dminuoso: hey!
ur5us has quit [Ping timeout: 265 seconds]
<dminuoso> Heh.
<apeiros> see, that's where views + table valued functions come into play
<apeiros> you can write the sql as nice as possible and all you see from code is "another table"
<dminuoso> Mmmm.
<apeiros> that it is aggregated data from "elsewhere" is of no concern to the code anyway. it shouldn't be its concern.
alex`` has joined #ruby
<apeiros> of course, this boundary also breaks due to e.g. write restrictions. some views you can write, some you can't.
alex`` is now known as alexherbo2
<apeiros> where I'm with you is wrt building complex where clauses
<apeiros> +e.g.
alexherbo2 is now known as alex``
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
sameerynho has quit [Ping timeout: 248 seconds]
chocoelho has joined #ruby
<dminuoso> apeiros: it's interesting, we have had some application that was built around that exact idea. The problem is that you end up baking business logic into views.
<apeiros> that is a problem
<apeiros> albeit IMO limited
<apeiros> given that a view is almost always for read-only, the amount of "logic" in them is necessarily limited
<apeiros> and usually related to how business logic and persistence logic interact. and persistence is the DBs concern, so it's not that far off IMO
<apeiros> but yes, still a problem
<apeiros> there's a list of "business logic" & "persistence logic" interactions I consider problematic and have no clear answer yet.
chocoelho has quit [Remote host closed the connection]
<apeiros> f.ex. a couple of integrity checks at the db level require application level knowledge
nso95- has joined #ruby
chocoelho has joined #ruby
aupadhye has quit [Ping timeout: 256 seconds]
yeticry has joined #ruby
nso95 has quit [Ping timeout: 240 seconds]
<dminuoso> apeiros: Well it's a fine line in the end. I have plenty of spots where I willingly bite the bullet and produce N+1 because the code has the right abstraction that way.
<dminuoso> And its mostly fine, because in most of these cases I can take a 50-100ms hit.
<dminuoso> (And I know about them, so if it gets out of hands I can refactor)
polishdub has joined #ruby
cdg has joined #ruby
bmurt has joined #ruby
<dminuoso> apeiros: But at any rate! In my private project Im so glad to be dealing with expression trees. :-)
mjolnird has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
bodgix has joined #ruby
chocoelho has quit [Remote host closed the connection]
<apeiros> :-)
alfiemax has joined #ruby
oleo has joined #ruby
krawchyk has joined #ruby
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has quit [Remote host closed the connection]
justicefries has joined #ruby
zwliew has quit [Quit: Connection closed for inactivity]
KeyJoo has joined #ruby
ramfjord has joined #ruby
krawchyk is now known as krawchyk[away]
romeoh has joined #ruby
krawchyk[away] has quit [Quit: krawchyk[away]]
JaccoP has joined #ruby
krawchyk has joined #ruby
selim has joined #ruby
vee__ has quit [Ping timeout: 264 seconds]
swati_27 has left #ruby [#ruby]
DmitryBochkarev has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
konsolebox has quit [Ping timeout: 240 seconds]
andikr has quit [Remote host closed the connection]
sameerynho has joined #ruby
konsolebox has joined #ruby
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
vee__ has joined #ruby
scmlinux has quit [Ping timeout: 240 seconds]
sundhell is now known as sundhell_away
JaccoP has quit [Ping timeout: 248 seconds]
sotrhraven has joined #ruby
safetypin has joined #ruby
JaccoP has joined #ruby
cdolan has joined #ruby
Rapture has joined #ruby
mr_foto has joined #ruby
cdolan has quit [Quit: WeeChat 2.0]
krawchyk is now known as krawchyk[away]
selim has quit [Ping timeout: 272 seconds]
krawchyk[away] has quit [Quit: krawchyk[away]]
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
c0ncealed has quit [Remote host closed the connection]
c0ncealed has joined #ruby
kanobt61 has joined #ruby
selim has joined #ruby
troys has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
krawchyk has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
marr has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
krawchyk has quit [Client Quit]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
qba73 has quit [Ping timeout: 265 seconds]
mikecmpb_ has joined #ruby
krawchyk[away] has joined #ruby
krawchyk[away] is now known as krawchyk
gnufied has joined #ruby
mikecmpbll has quit [Ping timeout: 255 seconds]
heliumk has joined #ruby
selim_ has joined #ruby
selim has quit [Ping timeout: 265 seconds]
stoffus has quit [Ping timeout: 264 seconds]
zwliew has joined #ruby
nogic has joined #ruby
dmiller85 has joined #ruby
justicefries has left #ruby ["Textual IRC Client: www.textualapp.com"]
heliumk has quit [Quit: heliumk]
marr has joined #ruby
pavelz has joined #ruby
<pavelz> hello is there a gemrepo generating tool? https://git.themindstudios.com/a.averyanov/esputnik this readme seems templated from somewhere ...
cadillac_ has quit [Read error: Connection reset by peer]
Burgestrand has quit [Quit: Closing time!]
dmiller85 has quit [Ping timeout: 268 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpb_ has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
cadillac_ has joined #ruby
<mikecmpbll> pavelz : that'll be generated by bundler i expect.
<mikecmpbll> `bundle gem my_gem`, it generates a gem project scaffold.
kanobt61 has quit [Read error: Connection reset by peer]
sameerynho has quit [Ping timeout: 256 seconds]
selim_ has quit [Ping timeout: 265 seconds]
ana_ has quit [Quit: Leaving]
<pavelz> mikecmpbll: thanks!
amelliaa has joined #ruby
selim has joined #ruby
yeoman has joined #ruby
<yeoman> there really isn't a good way to make screenshots in ruby (of html-pages) right?
cschneid_ has joined #ruby
<Papierkorb> Someone has to render it. Selenium may be able to do that
ur5us has joined #ruby
<yeoman> but that would require a real browser running, doesn't it?
<Papierkorb> Well of course
<yeoman> hows that 'ofcourse'
<Papierkorb> You can't get around that. You need a HTML rendering engine with CSS capabilities. That's a browser.
<yeoman> well.. nodejs makes it easy.
<yeoman> but i hate js
ta_ has joined #ruby
<Papierkorb> They still need a HTML rendering engine
<yeoman> phantomjs was great for that task
<yeoman> sure, but it's headless
qba73 has joined #ruby
<yeoman> up and running in 5 mins
<Papierkorb> No one said it can't be headless
<yeoman> i struggle with this for hours in ruby now
<yeoman> imgkit uses wkhtmltopdf and therefore sucks, right now i try capybara(-webkit)
<yeoman> why isn't there something as easy as mechanize making screenshots
milardovich has joined #ruby
<Papierkorb> https://blog.redpanthers.co/screenshots-using-ruby/ was the first google result.
<yeoman> Capybara::Webkit::ConnectionError: /var/lib/gems/2.4.0/gems/capybara-webkit-1.14.0/bin/webkit_server failed to start.
<yeoman> well not really clean :/
<yeoman> but thanks for the link
<yeoman> wasn't the first google result for me
<Papierkorb> the author compares multiple gems it seems.
ur5us has quit [Ping timeout: 240 seconds]
<yeoman> lawl.. it does install phantomjs as it's calling a method
<yeoman> talking about dirty
<yeoman> usually ruby gems are so tidy
<Papierkorb> Did you bother scrolling on?
<Papierkorb> the later ones take like 3 lines in total. Can't get much shorter than that.
<yeoman> you mean the other gem? yeah trying the first one
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
synthroid has quit [Remote host closed the connection]
<yeoman> sigh
<yeoman> ArgumentError: The detector #<struct Cliver::Detector command_arg=nil, version_pattern=nil> failed to detect theversion of the executable at '/usr/bin/phantomjs'
qba73 has quit [Remote host closed the connection]
<yeoman> QXcbConnection: Could not connect to display
<yeoman> god i love this.
qba73 has joined #ruby
<Papierkorb> Well, does phantomjs require a running X?
ramfjord has joined #ruby
<yeoman> it doesn't but on ubuntu it does
<darix> yeoman: you will probably need something like Xfvb
<darix> yeoman: you will probably need something like Xvfb
<yeoman> and i am using docker.
dmiller85 has joined #ruby
<yeoman> darix: thanks and.. thanks.
<darix> had to fix my typo
<yeoman> didn't even see it, still don't
<yeoman> oh i see.
<darix> launching xvfb and then setting DISPLAY accordingly
<darix> should probably make it work even in docker
Cavallari has joined #ruby
<Papierkorb> Oh that may be a world of pain. You'll need to figure out how to run xvfb (or some other small X daemon) in docker
<yeoman> well, no, it's pain because it's ugly
<yeoman> i need to render html, better load kde.
<Papierkorb> What has KDE to do with that?
<yeoman> dafuq thats just bad craftsmanship
<Papierkorb> Qt != KDE
<Papierkorb> Like, really nothing to do with one another
<yeoman> yeah okay, then qt with all the X stuff
<yeoman> ugly af, still
<yeoman> i am pretty sure i've run phantom without a running x before.. i am wondering
apeiros has quit [Ping timeout: 264 seconds]
<darix> yeoman: well you can build your own Qt without the X bindings. then build your phantomjs against that ... and then you can use that stripped down binary
despai has joined #ruby
<darix> i bet the phantomjs that someone stuffed into a gem
<darix> or npm package
<darix> might be built like that already
troys is now known as troys_
synthroid has joined #ruby
mtkd has quit [Ping timeout: 255 seconds]
mtkd has joined #ruby
qba73 has quit []
zapata has quit [Read error: Connection reset by peer]
chocoelho has joined #ruby
zapata has joined #ruby
pastorinni has joined #ruby
ta_ has quit [Remote host closed the connection]
<darix> yeoman: see that link maybe ;)
ta_ has joined #ruby
Keltia_ is now known as Keltia
troys_ is now known as troys
meesles has joined #ruby
Cavallari has quit [Quit: Cavallari]
cagomez has joined #ruby
mr_foto has quit []
VeryBewitching has joined #ruby
metagod has joined #ruby
ruschlem_ has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
ruschlem_ has quit [Read error: Connection reset by peer]
romeoh has quit [Remote host closed the connection]
mtkd has quit [Ping timeout: 260 seconds]
jottr has joined #ruby
krawchyk has quit [Quit: krawchyk]
ledestin has joined #ruby
FrostCandy has joined #ruby
mtkd has joined #ruby
krawchyk has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
MurphyOne has joined #ruby
Serpent7776 has quit [Quit: Leaving]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
<metagod> I wanted to learn more about Classes Modules Inheritance vs Composition any good guide?
mtkd has quit [Ping timeout: 256 seconds]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
mikecmpb_ has joined #ruby
krawchyk has quit [Quit: krawchyk]
cdg has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 240 seconds]
<dminuoso> metagod: About how it works, or how to utilize it?
<metagod> how to utilize it
<metagod> practical part
mtkd has joined #ruby
<metagod> also is there a way to delete an instance of class ?
<metagod> def die(victim)
<metagod> puts "Dying .. . . . . .. . "
<metagod> #want to delete the object
<metagod> puts "Dead"
<metagod> end
<metagod> I want to kill the victim(object)
<dminuoso> metagod: It's just like when you were a kid.
<dminuoso> You leave it on the ground, mommy will vacuum it away when she has time.
<metagod> ?
<metagod> i want to explicitly delete it i know ruby uses GC
<dminuoso> You dont.
<metagod> def kill(victim)
<metagod> #if victim exists then kill it
<metagod> die(victim)
<metagod> if victim.character_name
<metagod> puts "Killer Joke"
<metagod> else
<metagod> puts "Dead already RIP"
<metagod> end
<metagod> end
<dminuoso> Please do not paste in this channel.
<metagod> sorry
<dminuoso> You do not want to delete items.
<metagod> do i paste in Pastebin?
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
<dminuoso> ?gist
<ruby[bot]> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<metagod> @dminuoso I am making a prototype game form exercise 45 from learn ruby the hard way i am just beginner so in this game i want to make a player kill other player thus deleting the object
<dminuoso> metagod: So don't focus on deleting objects. That's not the model you need to care about.
<dminuoso> metagod: You could either track his health status, or keep it in a container and just remove it from the container.
<metagod> Please guide how to remove from the container
skweek has joined #ruby
DmitryBochkarev has joined #ruby
hahuang65 has quit [Ping timeout: 272 seconds]
Ishido has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
<metagod> ?
garyserj has quit [Ping timeout: 264 seconds]
garyserj has joined #ruby
mark_66 has quit [Remote host closed the connection]
CrazyEddy has quit [Ping timeout: 240 seconds]
metagod has quit [Quit: Leaving]
vee__ has quit [Ping timeout: 256 seconds]
Ishido has joined #ruby
[Butch] has joined #ruby
kapil___ has joined #ruby
ruschlem_ has joined #ruby
ta_ has joined #ruby
mikecmpb_ has quit [Ping timeout: 256 seconds]
sotrhraven has quit [Quit: sotrhraven]
alfiemax has quit [Remote host closed the connection]
ruschlem_ has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
__main__ has joined #ruby
dviola has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
vee__ has joined #ruby
MurphyOne has quit [Quit: Page closed]
krawchyk has joined #ruby
Beams has quit [Quit: .]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
eckhardt has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
mtkd has quit [Remote host closed the connection]
bhaak has joined #ruby
zwliew has quit [Quit: Connection closed for inactivity]
jottr has quit [Ping timeout: 240 seconds]
metagod has joined #ruby
<metagod> how can i get the object from one of its attribute?
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
marxarelli|afk is now known as marxarelli
orbyt_ has joined #ruby
<metagod> any help getting object instance from object attribute
hahuang65 has joined #ruby
<metagod> ?
metagod has left #ruby ["Leaving"]
mtkd has joined #ruby
ur5us has joined #ruby
Psybur_ has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
krawchyk has quit [Quit: krawchyk]
Psybur has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 264 seconds]
krawchyk has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
TomyWork has quit [Ping timeout: 240 seconds]
c0dy has joined #ruby
knight33 has joined #ruby
exhiled has joined #ruby
knight33 has quit [Client Quit]
raynold has joined #ruby
vee__ has quit [Ping timeout: 256 seconds]
krawchyk has quit [Quit: krawchyk]
dionysus69 has quit [Quit: dionysus69]
ta_ has joined #ruby
JaccoP has quit [Ping timeout: 264 seconds]
romeoh has joined #ruby
TomyLobo has joined #ruby
mr_foto has joined #ruby
ramfjord has joined #ruby
ruschlem_ has joined #ruby
vee__ has joined #ruby
pastorinni has quit [Remote host closed the connection]
zautomata has joined #ruby
pastorinni has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
JaccoP has joined #ruby
wald0 has joined #ruby
troys is now known as troys_
mr_foto has quit []
pastorinni has quit [Ping timeout: 248 seconds]
anisha has quit [Quit: This computer has gone to sleep]
alfiemax has quit [Remote host closed the connection]
despai has quit [Quit: ...]
mikecmpbll has joined #ruby
alfiemax has joined #ruby
guille-moe has joined #ruby
despai has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
ruschlem_ has quit [Quit: -a- IRC for Android 2.1.38]
chocoelho1 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chocoelho has quit [Ping timeout: 240 seconds]
chocoelho1 is now known as chocoelho
ta_ has quit [Ping timeout: 240 seconds]
cdolan has joined #ruby
lytol_ has joined #ruby
chocoelho has quit [Client Quit]
ta_ has joined #ruby
guille-moe has quit [Ping timeout: 260 seconds]
jaruga has quit [Quit: jaruga]
mtkd has quit [Ping timeout: 240 seconds]
guille-moe has joined #ruby
ur5us has joined #ruby
mtkd has joined #ruby
amelliaa has quit [Quit: -]
wald0 has quit [Quit: Lost terminal]
guille-moe has quit [Ping timeout: 240 seconds]
Dimik has joined #ruby
vee__ has quit [Ping timeout: 264 seconds]
unreal has quit [Read error: Connection reset by peer]
amatas_ has quit [Quit: amatas_]
falaafel has joined #ruby
<falaafel> Hihi. how can I debug my ruby script if I'm using bundler when I've install my dependant gems into vendor/bundle?
claudiuinberlin has joined #ruby
<falaafel> Apologies, if this is a newbie question, but I couldn't find anyone else having similar problems - and 'bundle exec ruby -rdebug ./foo.rb' loses bundler's context
Psybur__ has joined #ruby
Ltem has joined #ruby
vee__ has joined #ruby
<dminuoso> falaafel: What does "loses bundler's context" mean?
clemens3 has joined #ruby
apeiros has joined #ruby
Psybur_ has quit [Ping timeout: 240 seconds]
Psybur__ is now known as Psybur
pastorinni has joined #ruby
<falaafel> well, I get a LoadError, so I assume it cannot find it in the same manner
<raynold> ahh it's a wonderful day
tvw has joined #ruby
jnollette has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
romeoh has quit [Remote host closed the connection]
romeoh has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
tvw has quit []
tvw has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
<falaafel> okay well, if anyone ever has that ever again, you can use pry and require bundle in it's preamble to keep the bundler context of where it stored everything
falaafel has quit [Quit: WeeChat 1.6]
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
jnollette has joined #ruby
ramfjord has quit [Quit: Lost terminal]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
milardov_ has joined #ruby
milardov_ has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
tvw has quit []
tvw has joined #ruby
vee__ has quit [Ping timeout: 248 seconds]
RougeT430 has joined #ruby
milardovich has quit [Ping timeout: 272 seconds]
pastorinni has quit [Remote host closed the connection]
voker57 has quit [Quit: No Ping reply in 180 seconds.]
voker57 has joined #ruby
tvw has quit []
tvw has joined #ruby
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
tvw has quit [Client Quit]
jottr has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nogic has quit [Ping timeout: 255 seconds]
jud has quit [Ping timeout: 246 seconds]
vee__ has joined #ruby
schfkt has joined #ruby
riotjones has joined #ruby
schfkt has left #ruby [#ruby]
orbyt_ has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
the_f0ster has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
ldnunes has quit [Quit: Leaving]
chiggins has joined #ruby
my123 has quit [Ping timeout: 240 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<chiggins> When deploying a ruby application to production in passenger, is it appropriate to use RVM?
chocoelho has joined #ruby
FrostCandy has quit []
jottr has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
cdolan has quit [Quit: WeeChat 2.0]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 272 seconds]
alfiemax has joined #ruby
my123 has joined #ruby
my123 has joined #ruby
my123 has quit [Changing host]
Psybur_ has joined #ruby
danielpclark has quit [Quit: Leaving]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
Psybur has quit [Ping timeout: 248 seconds]
Psybur_ has quit [Ping timeout: 260 seconds]
jottr has joined #ruby
exhiled has quit [Quit: Textual IRC Client: www.textualapp.com]
cagomez has quit [Ping timeout: 260 seconds]
jottr has quit [Client Quit]
kapil___ has quit [Quit: Connection closed for inactivity]
<havenwood> chiggins: You don't need a Ruby version switcher if you're not switching Rubies.
<havenwood> chiggins: That said, plenty of folk use RVM in prod - despite most Ruby version maintainers arguing you shouldn't.
<havenwood> Ruby version switcher maintainers**
<havenwood> chiggins: Consider using a package manager Ruby or installing to /usr/local in prod.
<havenwood> chiggins: You absolutely can use RVM with Passenger in prod. But it's typically simpler to just have one Ruby.
cagomez has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
cagomez has quit [Ping timeout: 272 seconds]
dinfuehr has quit [Ping timeout: 240 seconds]
miskatonic has joined #ruby
<al2o3-cr> ruby is not a sagittarius :(
dinfuehr has joined #ruby
<al2o3-cr> 0.95 was released on 21st December 1995, i'm so happy now :)
biberu has quit []
eckhardt has joined #ruby
unreal has joined #ruby
cagomez has joined #ruby
cdg has joined #ruby
cagomez has quit [Ping timeout: 256 seconds]
riotjones has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
ramfjord has joined #ruby
cjkinni has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
<craysiii> Havenwood what reasoning do people have for dissuading others from ruby in production?
<craysiii> I mean RVM *
cagomez has joined #ruby
zautomata has left #ruby ["WeeChat 1.7"]
<Radar> Same reason that you wouldn't use a house to crush an ant
<Radar> I mean, you could...
<Zarthus> you can lift a house?
cagomez has quit [Ping timeout: 240 seconds]
<Radar> Zarthus: do you even lift bro?
<Zarthus> no
<Radar> also depends on the size of the house
<Zarthus> i am confident i could not lift any form of realistic non-toy house
<Zarthus> with a crane i could lift one of those portable houses
eckhardt_ has joined #ruby
cagomez has joined #ruby
selim has quit [Ping timeout: 268 seconds]
milardovich has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
selim has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
John__ has joined #ruby
elisaado has quit [Ping timeout: 240 seconds]
reber has quit [Remote host closed the connection]
milardovich has quit [Read error: Connection reset by peer]
eckhardt has quit [Ping timeout: 265 seconds]
milardovich has joined #ruby
synthroid has quit []
cadillac_ has quit [Read error: Connection reset by peer]
milardovich has quit [Read error: Connection reset by peer]
pastorinni has joined #ruby
milardovich has joined #ruby
orbyt_ has joined #ruby
selim has quit [Ping timeout: 264 seconds]
nadir has quit [Quit: Connection closed for inactivity]
pastorinni has quit [Ping timeout: 256 seconds]
cadillac_ has joined #ruby
pastorinni has joined #ruby
selim has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
hahuang65 has quit [Ping timeout: 265 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
marxarelli is now known as marxarelli|afk
jenrzzz has joined #ruby
LocaMocha is now known as TamePikachu
Juzzika has quit [Quit: Textual IRC Client: www.textualapp.com]
enterprisey has joined #ruby
moei has quit [Quit: Leaving...]
milardov_ has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
JaccoP has quit [Ping timeout: 260 seconds]
ta_ has quit [Read error: Connection reset by peer]
the_f0ster has quit [Remote host closed the connection]
ta_ has joined #ruby
Ltem has quit [Quit: Leaving]
milardov_ has quit [Remote host closed the connection]
rhebz916 has quit [Quit: Leaving]
jnyw has joined #ruby
sameerynho has joined #ruby
eckhardt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
tomphp has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
tcopeland has quit [Quit: tcopeland]
amatas has quit [Quit: amatas]
davidcsi has joined #ruby
neo95 has joined #ruby
<chiggins> havenwood: Didn't notice my IRC session closed on my end. Thank you for the advice.
<chiggins> I'm trying to plan out a deployment of a Sinatra application and figure out the right ways to do it
despai has quit [Quit: ...]
Inoperable has joined #ruby
troys_ is now known as troys
alfiemax has quit [Remote host closed the connection]
neo95_ has joined #ruby
<chiggins> I'm currently getting 'directory index of "/opt/application/public/" is forbidden' while trying to use passenger/nginx
<chiggins> Any ideas how I can get my application running?
dmiller85 has quit [Quit: WeeChat 2.0]
alfiemax has joined #ruby
chocoelho has quit [Quit: chocoelho]
sameerynho has quit [Ping timeout: 240 seconds]
<davidcsi> hello guys, i have this .map{ |n| statement..\n statement... } and i need to know when i'm processing the last one, is there a way?
safetypin has quit [Quit: ZZZzzz…]
nadir has joined #ruby
s2013 has joined #ruby
<baweaver> davidcsi: what's your actual code?
<baweaver> Also explain what you're wanting to do a bit more clearly
<al2o3-cr> davidcsi: probably use indexing.
cdg has quit [Remote host closed the connection]
<baweaver> you can use indexing as al2o3-cr mentioned
<davidcsi> i iterate through an xml document, getting all elements and printing them out, but i need to add a comma (,) to each one, but the last (converting to json, there's probably one out there, but i'm embedding this in logstash)
<baweaver> ah, join
<baweaver> >> [1,2,3,4].join(', ')
<ruby[bot]> baweaver: # => "1, 2, 3, 4" (https://eval.in/922401)
<baweaver> though you could always just map [0..-2] and do the last seperate
<baweaver> also the newline before the |n| is really odd
<davidcsi> oh i did that for (my) clarity
<davidcsi> i'm pretty new at ruby
<baweaver> >> [1,2,3].map.with_index { |n, i| n + i }
<ruby[bot]> baweaver: # => [1, 3, 5] (https://eval.in/922402)
alfiemax has quit [Remote host closed the connection]
SeepingN has joined #ruby
<al2o3-cr> >> foo = [1,2,3]; foo.map.with_index { |e, i| e.to_s if foo.size.pred == i }
<ruby[bot]> al2o3-cr: # => [nil, nil, "3"] (https://eval.in/922403)
polishdub has quit [Quit: leaving]
code_zombie has joined #ruby
c0dy has quit [Quit: Leaving]
<al2o3-cr> maybe i'm not getting it.
<davidcsi> @al2o3, that was perfect, great pointer, working perfectly
<davidcsi> @al2o3-cr, that was perfect, great pointer, working perfectly
<al2o3-cr> davidcsi: yeah, no worries. i thought i'd read it wrong tbh :P
cadillac_ has quit [Read error: Connection reset by peer]
marxarelli|afk is now known as marxarelli
<davidcsi> many thanks!!
<al2o3-cr> cool! :)
jenrzzz has quit [Ping timeout: 248 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
MrBusiness has quit [Ping timeout: 246 seconds]
cadillac_ has joined #ruby
neo95 has quit [Quit: Lost terminal]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
scmlinux has joined #ruby
TomyLobo has quit [Ping timeout: 255 seconds]
cschneid_ has quit [Remote host closed the connection]
<Radar> If I wanted a class that is like Struct, but had named args instead of positional args, what is there available for me to use?
<Radar> OpenStruct doesn't fill that obligation because I don't want random attributes to be settable
<Radar> https://rubygems.org/gems/values looks like the right thing, but I was wondering if there's anything in stdlib that I could use
tcopeland has joined #ruby
tjbp has quit [Remote host closed the connection]
ruschlem_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
tjbp has joined #ruby
romeoh has quit []
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
<Radar> Could probably do it with a plain class actually.
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
MrBusiness has joined #ruby
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
miskatonic has quit [Remote host closed the connection]