apeiros changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.10: https://www.ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
ggherdov has quit [Excess Flood]
matp has quit [Excess Flood]
helpa has quit [Remote host closed the connection]
helpa-bot has joined #ruby
abernstein has joined #ruby
gnufied has quit [Quit: Leaving]
ggherdov has joined #ruby
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
snguyen has quit [Quit: Textual IRC Client: www.textualapp.com]
cdg has quit [Remote host closed the connection]
gusrub has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gizmore has quit [Ping timeout: 260 seconds]
chopin has quit [Remote host closed the connection]
Derperperd has joined #ruby
gizmore has joined #ruby
palms has joined #ruby
nitric has quit [Ping timeout: 244 seconds]
symm- has joined #ruby
masterasia has joined #ruby
<masterasia> Thinking of optimizing pngs
<masterasia> are these tools typically idempotent?
wldcordeiro has joined #ruby
noob_on_rails has quit [Ping timeout: 260 seconds]
jhass|off has joined #ruby
<lupine> I'd expect the non-lossy ones to be so
<lupine> (and the lossy ones to not be so)
jhass has quit [Ping timeout: 245 seconds]
nick123_4 has quit [Quit: WeeChat 1.4]
coffeejunk has quit [Ping timeout: 245 seconds]
jhass|off is now known as jhass
coffeejunk has joined #ruby
ujjain- has quit [Ping timeout: 245 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
arescorpio has joined #ruby
ace05_ has quit [Remote host closed the connection]
ujjain has joined #ruby
ujjain has joined #ruby
ujjain has quit [Changing host]
siemprefresco has joined #ruby
siemprefresco has quit [Client Quit]
matp has joined #ruby
jhass|off has joined #ruby
marr has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
griffindy has joined #ruby
ebbflowgo_ has joined #ruby
FastJack_ has joined #ruby
Torkable has quit [Ping timeout: 265 seconds]
volix_ has joined #ruby
FastJack has quit [Ping timeout: 240 seconds]
djbkd has quit [Quit: My people need me...]
Ropeney has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
volix has quit [Ping timeout: 245 seconds]
kmhn has quit [Ping timeout: 245 seconds]
ebbflowgo_ is now known as ebbflowgo
kloeri_ has joined #ruby
kmhn has joined #ruby
palms has quit [Ping timeout: 256 seconds]
jhass has quit [Ping timeout: 256 seconds]
jhass|off is now known as jhass
xall has quit [Ping timeout: 256 seconds]
xall has joined #ruby
chouhoul_ has joined #ruby
kloeri has quit [Read error: Connection reset by peer]
chouhoul_ has quit [Remote host closed the connection]
ur5us has joined #ruby
al2o3-cr has joined #ruby
chouhoulis has quit [Ping timeout: 265 seconds]
antgel has quit [Ping timeout: 265 seconds]
arashb has joined #ruby
ghostlight has joined #ruby
CloCkWeRX has quit [Ping timeout: 245 seconds]
Pupeno has quit [Remote host closed the connection]
masterasia has quit [Quit: Leaving]
Sxcd6 has joined #ruby
<Sxcd6> I'm trying to install in Windows 10 and I'm getting an SSL error trying to do a "gem install ..." Any ideas how to fix it?
<havenwood> if you had the cert for github this would work: https://gist.github.com/havenwood/9cd08a0b66b75d726ef6
Antiarc_ has quit [Quit: No Ping reply in 180 seconds.]
<SeepingN> google parts of that error (no timestamps, no machine specific data)
arashb has quit [Ping timeout: 260 seconds]
pontiki has joined #ruby
dnicole has joined #ruby
Antiarc has joined #ruby
<havenwood> is it worth advising folk to go ahead and use the Windows 10 subsystem for Linux?
<havenwood> it seems folk are reporting things *just work* so maybe it is
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
<pontiki> i have no experience with it, nor has anyone i talk to. if it's just working for people, it's probably okay
<Sxcd6> What do I do with that ? Sorry if it's obvious
dnicole_ has quit [Remote host closed the connection]
<havenwood> Sxcd6: You could save it locally and run `ruby trust.rb` or run `irb` and paste it.
<havenwood> Sxcd6: It'd work but I imagine you might get the same SSL error.
SCHAAP137 has quit [Ping timeout: 244 seconds]
<Sxcd6> run 'ruby trust.rb' from the command prompt?
dnicole has quit [Ping timeout: 260 seconds]
<havenwood> Sxcd6: You could download it and copy it there yourself instead of using the script. Sec, let me find the gist.
<havenwood> Sxcd6: or type `irb` from the command line and try pasting the gist contents
<Sxcd6> thanks for your help I'm lost
griffindy has quit [Read error: Connection reset by peer]
nadir has joined #ruby
<havenwood> Sxcd6: That gist I wrote above was an attempt to copy the right file to the right place, but I think you might get the same SSL error preventing you from using Ruby to download it. Maybe give it a try? Does it work?
<havenwood> There's ^ a more detailed explanation with some workarounds that may work.
<Sxcd6> I tried to follow that site but couldn't
<havenwood> We really should make a little script to fix the issue though.
<havenwood> Because folk have trouble following the long-form one
<Sxcd6> still in irb (main) prompt - do I have to ctrl c to exit?
<havenwood> Sxcd6: type: exit
<havenwood> Sxcd6: Did the script work?
<Sxcd6> OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
<Sxcd6> from C:/Ruby23-x64/lib/ruby/2.3.0/net/http.rb:863:in `do_start'
<Sxcd6> from C:/Ruby23-x64/lib/ruby/2.3.0/net/http.rb:933:in `connect'
<Sxcd6> from C:/Ruby23-x64/lib/ruby/2.3.0/net/http.rb:852:in `start'
<Sxcd6> from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:319:in `open_http'
<Sxcd6> from C:/Ruby23-x64/lib/ruby/2.3.0/net/http.rb:933:in `connect_nonblock'
<Sxcd6> from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:737:in `buffer_open'
<Sxcd6> from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:212:in `block in open_loop'
<Sxcd6> from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:210:in `catch'
<Sxcd6> from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:210:in `open_loop'
<Sxcd6> from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:151:in `open_uri'
<Sxcd6> from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:717:in `open'
<Sxcd6> from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:35:in `open'
<Sxcd6> from (irb):7
<havenwood> Sxcd6: Ah, a shame. Yeah, the same SSL error prevents you from using SSL to fetch the pem file...
<havenwood> Sxcd6: Please gist more than three lines. :-)
<Sxcd6> irb
<Sxcd6> => true
<Sxcd6> irb(main):001:0> require 'open-uri'
<Sxcd6> irb(main):002:0>
Sxcd6 has quit [Excess Flood]
Sxcd6 has joined #ruby
<havenwood> ah, they may have moved it too
<Sxcd6> got kicked so I don't know if I missed something
ruby-lang004 has joined #ruby
<Sxcd6> ok what do I do with it
<havenwood> Sxcd6: Run this command to see where to put it: ruby -e "puts File.join RbConfig::CONFIG['rubylibdir'], 'rubygems', 'ssl_certs'"
<havenwood> or it should say in the long gist
<Sxcd6> C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/ssl_certs and save the download from notepad to that directory? with what file name
<havenwood> Sxcd6: yup, that looks like the dir
<havenwood> sagax: put AddTrustExternalCARoot.pem there
chopin has joined #ruby
<havenwood> sagax: sorry, misstell
<havenwood> yeah, we should write a script to do this for people
<havenwood> hmm
CloCkWeRX has joined #ruby
ruby-lang004 has quit [Ping timeout: 260 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
ebbflowgo has quit [Read error: Connection reset by peer]
<Sxcd6> havenwood: what file name do I save it to?
ebbflowgo has joined #ruby
gusrub has quit [Remote host closed the connection]
_sfiguser has quit [Ping timeout: 276 seconds]
Anatzum has quit [Remote host closed the connection]
<havenwood> Sxcd6: AddTrustExternalCARoot.pem
<sagax> no problem
bongobrown has joined #ruby
harai has quit [Ping timeout: 250 seconds]
abernstein_ has joined #ruby
<Sxcd6> now getting ERROR: While executing gem ... (OpenSSL::X509::StoreError)
CloCkWeRX has quit [Ping timeout: 250 seconds]
abernstein has quit [Ping timeout: 260 seconds]
abernstein_ is now known as abernstein
<havenwood> Sxcd6: Did that pem file not quite get copied right? Hrm.
gusrub has joined #ruby
amclain has quit [Quit: Leaving]
d^sh has quit [Ping timeout: 245 seconds]
bongobrown has quit [Quit: Konversation terminated!]
bongobrown has joined #ruby
d^sh has joined #ruby
gusrub has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 276 seconds]
gusrub has joined #ruby
<Sxcd6> images show what I did
_sfiguser has joined #ruby
Salve has quit [Remote host closed the connection]
Salve has joined #ruby
elifoster has joined #ruby
jottr_ has joined #ruby
zeroDi has quit [Quit: WeeChat 1.5]
Salve has quit [Ping timeout: 244 seconds]
CloCkWeRX has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
h1fuelcell has joined #ruby
<havenwood> Sxcd6: That looks right to me
<Sxcd6> any other options?
ace05 has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
<havenwood> Sxcd6: I suppose you could fork and download the file from here?: https://github.com/rubygems/rubygems/blob/master/lib/rubygems/ssl_certs/rubygems.org/AddTrustExternalCARoot.pem
<havenwood> Sxcd6: Sorry, distracted at the moment.
riskish has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> Sxcd6: I wonder if windows line endings are messing it up or something from the one you pasted? Unsure why it didn't work.
Pupeno has quit [Remote host closed the connection]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> Sxcd6: You might have an all-around easier time installing Ruby on the new Linux subsystem: https://msdn.microsoft.com/en-us/commandline/wsl/install_guide
h1fuelcell has joined #ruby
rakm has joined #ruby
<havenwood> Sxcd6: It's more likely to work and fancy to boot.
rakm has left #ruby [#ruby]
<havenwood> albeit beta
gusrub has quit [Remote host closed the connection]
h1fuelcell has quit [Remote host closed the connection]
<Sxcd6> I'm using notepad+ and have it set to EOL for unix
ace05 has quit [Ping timeout: 244 seconds]
Rodya_ has joined #ruby
Channel6 has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Sxcd6> I think I made an error saving the file from notepad+, saved as a text file not .perm. Still getting the error openssl::x509
Rodya_ has quit [Ping timeout: 256 seconds]
<Sxcd6> Can I uninstall ruby from the control panel and start over?
jottr_ has joined #ruby
Jameser has joined #ruby
gusrub has joined #ruby
solocshaw has joined #ruby
jottr_ has quit [Client Quit]
Salve has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
minimalism has joined #ruby
gusrub has quit [Ping timeout: 276 seconds]
<Sxcd6> reinstalled Ruby and told it to associate .rb files. Then saved the pem file and ran the rubygem setup.rb file. Ran gem install ... and got the msg 1 gem installed
Salve has quit [Ping timeout: 256 seconds]
Madplatypus has joined #ruby
TreyG has joined #ruby
Rodya_ has joined #ruby
blackwind_123 has quit [Ping timeout: 260 seconds]
TreyG_ has quit [Ping timeout: 250 seconds]
hutch34 has joined #ruby
blackwind_123 has joined #ruby
brent__ has quit [Quit: Connection closed for inactivity]
agent_white has joined #ruby
hutch34 has quit [Ping timeout: 252 seconds]
dnicole has joined #ruby
optiz0r has quit [Ping timeout: 260 seconds]
palms has joined #ruby
marxarelli|afk is now known as marxarelli
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
c355e3b has quit [Quit: Connection closed for inactivity]
jenrzzz_ has quit [Ping timeout: 256 seconds]
jtd has quit [Read error: Connection reset by peer]
pwnd_nsfw` has quit [Ping timeout: 260 seconds]
User458764 has joined #ruby
chouhoulis has joined #ruby
pwnd_nsfw has joined #ruby
jenrzzz has joined #ruby
bongobrown has left #ruby ["Konversation terminated!"]
jackjackdripper1 has quit [Quit: Leaving.]
riskish has joined #ruby
donnoc_ has quit [Quit: ZNC - http://znc.in]
eelster has joined #ruby
aryaching_ has quit [Ping timeout: 256 seconds]
Dimik has quit [Ping timeout: 260 seconds]
scott4000_ is now known as scott4000
ruby-lang424 has joined #ruby
<ruby-lang424> last chapter for ruby novice to professional
<ruby-lang424> :)
ace05 has joined #ruby
h1fuelcell has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
Fetch_ is now known as Fetch
tyang has joined #ruby
Sxcd6 has quit []
ace05 has quit [Ping timeout: 256 seconds]
Jameser_ has joined #ruby
h1fuelcell has quit [Ping timeout: 276 seconds]
ruby-lang424 has quit [Ping timeout: 260 seconds]
<xall> my test is failing when i try to compare hashes. i tried calling to_s on both but that didn't help. what do i need to do here? https://gist.github.com/anonymous/f84a40407bf79f566b6104e41f3908c8
Jameser has quit [Ping timeout: 244 seconds]
<eelster> :...woman vs "..." is a problem
shinnya has quit [Ping timeout: 265 seconds]
ruby-lang687 has joined #ruby
<xall> eelster: i think that's diff concating. the actual diff doesn't have anything strange
tuxaddicted has joined #ruby
solocshaw has quit [Ping timeout: 245 seconds]
<xall> er truncating
ColeHub has joined #ruby
ruby-lang687 has quit [Ping timeout: 260 seconds]
<ColeHub> Could someone explain to me why this doesn't create new random numbers for my hash values? https://gist.github.com/ColeHub/61799fde1bba45f928842ee152d46556
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
astrobunny has joined #ruby
<ColeHub> Oh wait disregard that
ben__ has joined #ruby
JoshS has joined #ruby
<tuxaddicted> guten tag!
Jameser_ has quit [Quit: Textual IRC Client: www.textualapp.com]
ben__ has quit [Ping timeout: 256 seconds]
seggy_ has left #ruby [#ruby]
tdy1 has quit [Quit: tdy1]
seggy has joined #ruby
palms has quit [Ping timeout: 260 seconds]
ixti has quit [Ping timeout: 256 seconds]
ace05 has joined #ruby
optiz0r has joined #ruby
tdy has joined #ruby
eelster has quit [Quit: leaving]
xall has quit [Ping timeout: 256 seconds]
Jameser has joined #ruby
Jameser has quit [Client Quit]
ace05 has quit [Ping timeout: 256 seconds]
Rufus has quit [Ping timeout: 244 seconds]
ace05 has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
Jameser has joined #ruby
arescorpio has quit [Quit: Leaving.]
elifoster|alt has joined #ruby
elifoster has quit [Read error: Connection reset by peer]
elifoster|alt has quit [Client Quit]
gix has quit [Ping timeout: 276 seconds]
Jameser_ has joined #ruby
Jameser_ has quit [Client Quit]
ramfjord has quit [Ping timeout: 265 seconds]
Jameser has quit [Ping timeout: 256 seconds]
Jameser_ has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
compro_prasad has joined #ruby
gix has joined #ruby
zacstewart has quit [Ping timeout: 244 seconds]
compro_prasad has quit [Client Quit]
zacstewart has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
palms has joined #ruby
Pupeno has joined #ruby
pwnd_nsfw` has joined #ruby
ColeHub has quit [Quit: Snooze.]
Cohedrin has joined #ruby
pwnd_nsfw has quit [Ping timeout: 245 seconds]
Pupeno has quit [Ping timeout: 256 seconds]
mac_ has quit [Quit: This computer has gone to sleep]
roamingdog has joined #ruby
Robtop__ has joined #ruby
mac_ has joined #ruby
ColeHub has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 250 seconds]
Anatzum has joined #ruby
Rickmasta has quit [Read error: No route to host]
ColeHub has quit [Quit: Bye.]
Rickmasta has joined #ruby
function has joined #ruby
hutch34 has joined #ruby
dviola has quit [Quit: WeeChat 1.6]
charliesome has joined #ruby
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 250 seconds]
Technodrome has joined #ruby
<Technodrome> Good day
hanmac has quit [Ping timeout: 256 seconds]
<Technodrome> on line 8, self is Foo correct?
agent_white has quit [Ping timeout: 250 seconds]
dmtd has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
xall has joined #ruby
sagax has quit [Ping timeout: 265 seconds]
misterpink has quit [Ping timeout: 244 seconds]
misterpink has joined #ruby
allomov has quit [Remote host closed the connection]
Madplatypus has quit [Quit: Connection closed for inactivity]
Rodya_ has quit [Remote host closed the connection]
hanmac has joined #ruby
hutch34 has joined #ruby
djbkd has joined #ruby
rkazak has joined #ruby
TreyG_ has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
zukin has joined #ruby
Silthias has joined #ruby
cibs has joined #ruby
zacstewart has quit [Ping timeout: 245 seconds]
Anatzum has quit [Remote host closed the connection]
TreyG has quit [Ping timeout: 260 seconds]
sagax has joined #ruby
Silthias1 has quit [Ping timeout: 260 seconds]
blackwind_123 has quit [Quit: Do fish get thirsty?]
ec is now known as ELLIOTTCABLE
rkazak has quit [Quit: Sleep.....ing....]
hutch34 has quit [Ping timeout: 250 seconds]
blackwind_123 has joined #ruby
palms has quit [Ping timeout: 260 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
ramfjord has joined #ruby
roamingdog has quit [Remote host closed the connection]
agent_white has joined #ruby
mac_ has quit [Quit: This computer has gone to sleep]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
riskish has quit [Quit: Textual IRC Client: www.textualapp.com]
User458764 has joined #ruby
bob434 has joined #ruby
robnester has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
blackwind_123 has quit [Ping timeout: 252 seconds]
bturker has joined #ruby
elifoster has joined #ruby
blackwind_123 has joined #ruby
Madper|M` has quit [Remote host closed the connection]
robnester has joined #ruby
tyang has quit [Read error: Connection reset by peer]
Channel6 has quit [Quit: Leaving]
bturker has quit [Ping timeout: 256 seconds]
blackwind_123 has quit [Ping timeout: 250 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
blackwind_123 has joined #ruby
ace05 has quit [Remote host closed the connection]
jenrzzz has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
ELLIOTTCABLE is now known as purr
abernstein_ has joined #ruby
abernstein has quit [Ping timeout: 256 seconds]
abernstein_ is now known as abernstein
chopin has quit [Remote host closed the connection]
chopin has joined #ruby
Azure has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
chopin has quit [Ping timeout: 245 seconds]
roamingdog has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
User458764 has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
gusrub has joined #ruby
ben__ has joined #ruby
igniting has quit [Ping timeout: 245 seconds]
benlieb has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
ben__ has quit [Ping timeout: 245 seconds]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
bluOxigen has joined #ruby
function has quit [Quit: found 1 in /dev/zero]
roamingdog has joined #ruby
bluOxigen has left #ruby [#ruby]
roamingdog has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
brendan- has joined #ruby
zacstewart has joined #ruby
abernstein has quit [Quit: abernstein]
abernstein has joined #ruby
LoneHerm_ has joined #ruby
User458764 has joined #ruby
dnicole has quit [Remote host closed the connection]
function has joined #ruby
function has quit [Client Quit]
LoneHerm_ has quit [Remote host closed the connection]
dnicole has joined #ruby
LoneHerm_ has joined #ruby
modlin has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
zukin has quit [Quit: os x updates!]
function has joined #ruby
function has quit [Client Quit]
LoneHerm_ has quit [Ping timeout: 260 seconds]
harai has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
aryaching has joined #ruby
awk_ is now known as awk
jenrzzz has quit [Ping timeout: 256 seconds]
mikeiniowa has quit [Ping timeout: 250 seconds]
yeticry has quit [Ping timeout: 244 seconds]
Pupeno has joined #ruby
yeticry has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Devalo has joined #ruby
conta has joined #ruby
ace05 has joined #ruby
gizless has joined #ruby
xall_ has joined #ruby
Pupeno has quit [Ping timeout: 265 seconds]
<havenwood> Technodrome: see my comment on your gist
xall has quit [Ping timeout: 245 seconds]
CloCkWeRX has joined #ruby
Devalo has quit [Ping timeout: 256 seconds]
gizmore has quit [Ping timeout: 252 seconds]
ace05 has quit [Ping timeout: 260 seconds]
tuxaddicted has quit [Quit: Lost terminal]
conta has quit [Ping timeout: 250 seconds]
<Technodrome> havenwood so its the object caller in this case
gusrub has quit [Quit: Leaving]
djbkd has quit [Remote host closed the connection]
zacstewart has quit [Ping timeout: 250 seconds]
Devalo has joined #ruby
gusrub has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
nchambers has joined #ruby
gusrub has quit [Client Quit]
gusrub has joined #ruby
gusrub has quit [Client Quit]
yardenbar has joined #ruby
gusrub has joined #ruby
gusrub has quit [Client Quit]
gusrub has joined #ruby
gusrub has quit [Remote host closed the connection]
TreyG has joined #ruby
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
User458764 has joined #ruby
djbkd has joined #ruby
pawnbox has joined #ruby
TreyG_ has quit [Ping timeout: 252 seconds]
TheTank111 has joined #ruby
jaequery has joined #ruby
TheTank111 has left #ruby [#ruby]
yardenbar has quit [Ping timeout: 250 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
compro has left #ruby ["Leaving"]
masterasia has joined #ruby
<masterasia> obj.write(File.open('path/to/file.txt', 'rb')) <--will this file need to be closed manually?
Yzguy has joined #ruby
Dohplay has quit [Read error: Connection reset by peer]
<Yzguy> hello!
<Yzguy> anyone have any advice for refactoring this? https://gist.github.com/yzguy/40e304c0adef56826030b1863ae2dfec
<Yzguy> it works, but it feels hacky. first time doing Rakefiles
charliesome has joined #ruby
pokalyis has quit [Quit: Textual IRC Client: www.textualapp.com]
ace05 has joined #ruby
xall_ has quit [Ping timeout: 260 seconds]
xall_ has joined #ruby
zacts has quit [Quit: leaving]
agit0 has quit [Quit: zzzZZZ….]
aidalgol has joined #ruby
Technodrome has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mvxlr has joined #ruby
zacstewart has joined #ruby
yardenbar has joined #ruby
zacts has joined #ruby
Devalo has quit [Remote host closed the connection]
ecksit has joined #ruby
ace05 has quit [Ping timeout: 256 seconds]
ecksit has quit [Client Quit]
ecksit has joined #ruby
TinkerTyper has quit [Read error: Connection reset by peer]
anisha has joined #ruby
igniting has joined #ruby
yardenbar has quit [Ping timeout: 250 seconds]
TinkerTyper has joined #ruby
gingray has joined #ruby
ur5us has quit [Remote host closed the connection]
roamingdog has joined #ruby
ur5us has joined #ruby
Salve has joined #ruby
dminuoso_ has joined #ruby
gizless is now known as gizmore
tonini has joined #ruby
roamingdog has quit [Ping timeout: 265 seconds]
Salve has quit [Ping timeout: 244 seconds]
ur5us has quit [Ping timeout: 260 seconds]
bturker has joined #ruby
User458764 has joined #ruby
ur5us has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
yardenbar has joined #ruby
davidt has joined #ruby
firstdayonthejob has joined #ruby
paolooo has joined #ruby
davidt has quit [Client Quit]
wugy has joined #ruby
dminuoso_ has quit [Ping timeout: 276 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
bocaneri has joined #ruby
gingray has quit [Ping timeout: 256 seconds]
paolooo has quit [Quit: Page closed]
Dimik has joined #ruby
zacstewart has quit [Ping timeout: 276 seconds]
conta has joined #ruby
xall_ has quit [Ping timeout: 245 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
last_staff has joined #ruby
firstdayonthejob has quit [Ping timeout: 244 seconds]
yardenbar has quit [Ping timeout: 265 seconds]
mark_66 has joined #ruby
xall_ has joined #ruby
Keltia has joined #ruby
Silthias1 has joined #ruby
havenn has joined #ruby
havenn has quit [Changing host]
havenn has joined #ruby
headius has joined #ruby
Asher1 has joined #ruby
nankyokusei has joined #ruby
ihme-TTilus has joined #ruby
agit0 has joined #ruby
pragmatism42 has joined #ruby
Silthias has quit [Ping timeout: 265 seconds]
headius_ has quit [Ping timeout: 265 seconds]
Keltia_ has quit [Read error: Connection reset by peer]
havenwood has quit [Ping timeout: 265 seconds]
pragmatism has quit [Ping timeout: 265 seconds]
skweeke has quit [Ping timeout: 265 seconds]
Guest2028 has quit [Ping timeout: 265 seconds]
TTilus has quit [Ping timeout: 265 seconds]
guardian has quit [Ping timeout: 265 seconds]
freedrull has quit [Ping timeout: 265 seconds]
pragmatism42 is now known as pragmatism
nullfxn has quit [Ping timeout: 265 seconds]
havenn is now known as havenwood
bluOxigen has joined #ruby
skweeke has joined #ruby
guardian has joined #ruby
Asher has quit [Ping timeout: 265 seconds]
_ht has quit [Ping timeout: 265 seconds]
Morrolan has quit [Ping timeout: 265 seconds]
_ht has joined #ruby
AnoHito has joined #ruby
nullfxn has joined #ruby
freedrull has joined #ruby
Morrolan has joined #ruby
AnoHito_ has quit [Ping timeout: 245 seconds]
Guest55881 has joined #ruby
ghostlight has quit [Ping timeout: 256 seconds]
nankyokusei has quit [Ping timeout: 250 seconds]
djbkd has quit [Remote host closed the connection]
irisseries has joined #ruby
blaxter has joined #ruby
ghostlight has joined #ruby
Shmulik has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
johnmilton has quit [Ping timeout: 245 seconds]
ben__ has joined #ruby
jcao219 has quit [Ping timeout: 260 seconds]
johnmilton has joined #ruby
Eiam has quit [Ping timeout: 245 seconds]
lxsameer has joined #ruby
Yzguy has quit [Quit: Cya]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
ben__ has quit [Ping timeout: 256 seconds]
volix_ is now known as volix
volix has quit [Changing host]
volix has joined #ruby
Salve has joined #ruby
zacstewart has joined #ruby
dminuoso_ has joined #ruby
modlin has quit [Remote host closed the connection]
ecksit has quit [Quit: Textual IRC Client: www.textualapp.com]
Derperperd has quit [Quit: Derperperd]
Macaveli has joined #ruby
kith_ has joined #ruby
Salve has quit [Ping timeout: 260 seconds]
ace05 has joined #ruby
kith has quit [Ping timeout: 256 seconds]
djbkd has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlieb has quit [Quit: benlieb]
aganov has joined #ruby
ace05 has quit [Ping timeout: 260 seconds]
biberu has joined #ruby
bluOxigen has quit [Ping timeout: 265 seconds]
bluOxigen has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
andikr has joined #ruby
TreyG has quit [Remote host closed the connection]
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blockchan has joined #ruby
blockchan has quit [Client Quit]
xall has joined #ruby
TomyWork has joined #ruby
aufi has joined #ruby
xall_ has quit [Ping timeout: 250 seconds]
bturker has joined #ruby
mvxlr has joined #ruby
jenrzzz has joined #ruby
ta_ has joined #ruby
blaxter has quit [Quit: foo]
jenrzzz has quit [Ping timeout: 260 seconds]
Guest55881 is now known as CrazEd
CrazEd is now known as Guest10530
mark_66 has quit [Read error: Connection reset by peer]
mark_66 has joined #ruby
jenrzzz has joined #ruby
gingray has joined #ruby
mikecmpbll has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
Snowy has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
ta_ has quit [Quit: Leaving...]
allomov has joined #ruby
dionysus69 has joined #ruby
Snowy has quit [Remote host closed the connection]
User458764 has joined #ruby
Snowy has joined #ruby
claudiuinberlin has joined #ruby
SesMan has joined #ruby
phredus has quit [Read error: Connection reset by peer]
Salve has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
phredus has joined #ruby
meshsmith has quit [Remote host closed the connection]
Salve has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaguarmagenta has joined #ruby
xall_ has joined #ruby
aries_liuxueyang has joined #ruby
xall has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
Silthias has joined #ruby
Silthias1 has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
aupadhye has joined #ruby
pawnbox has joined #ruby
rajdesai has joined #ruby
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
jaiks has joined #ruby
aries_liuxueyang has joined #ruby
jenrzzz has joined #ruby
latpaw has joined #ruby
zacstewart has joined #ruby
_sfiguser has quit [Ping timeout: 245 seconds]
xall has joined #ruby
xall_ has quit [Ping timeout: 256 seconds]
ace05 has joined #ruby
<irisseries> quick questions?is there editors people use to keep code kinda neat or do most just use texteditors
Snowy has quit [Remote host closed the connection]
<_ht> irisseries: I use vim, which seems to understand Ruby quite fine
Snowy has joined #ruby
teledyn has joined #ruby
Silthias1 has joined #ruby
<teledyn> anyone familiar with textbook "Starting out with Java" by Gaddis? I'm looking for a similar textbook in Ruby. have some familiarity with programming
<teledyn> have already studied php, python, and java
Silthias has quit [Ping timeout: 245 seconds]
<teledyn> so would like a good reference text that has for example chapter on strings, one on arrays, one on classes, etc.
palms has joined #ruby
ace05 has quit [Ping timeout: 245 seconds]
rajdesai has quit [Read error: Connection reset by peer]
mluts has joined #ruby
Snowy has quit [Ping timeout: 250 seconds]
Dimik has quit [Ping timeout: 244 seconds]
allomov has quit [Remote host closed the connection]
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elifoster has quit [Ping timeout: 250 seconds]
rajdesai has joined #ruby
Chair has joined #ruby
habitullence has joined #ruby
palms has quit [Ping timeout: 260 seconds]
bturker has quit [Ping timeout: 256 seconds]
_sfiguser has joined #ruby
rajdesai has quit [Ping timeout: 245 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
quazimodo has quit [Ping timeout: 256 seconds]
pawnbox has quit [Ping timeout: 250 seconds]
Burgestrand has joined #ruby
habitullence_ has joined #ruby
habitullence has quit [Ping timeout: 256 seconds]
habitullence_ is now known as habitullence
aries_liuxueyang has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
joast has quit [Ping timeout: 250 seconds]
Salve has joined #ruby
djbkd has quit [Remote host closed the connection]
mvxlr has joined #ruby
zmo_ has quit [Changing host]
zmo_ has joined #ruby
zmo_ is now known as zmo
Salve has quit [Ping timeout: 245 seconds]
aries_liuxueyang has joined #ruby
Guest10530 is now known as CrazEd
CrazEd is now known as Guest74985
marens has joined #ruby
harai has quit [Ping timeout: 250 seconds]
aries_liuxueyang has quit [Ping timeout: 244 seconds]
zacstewart has quit [Ping timeout: 260 seconds]
jsrn_ has joined #ruby
xall_ has joined #ruby
xall has quit [Ping timeout: 245 seconds]
jaguarmagenta has quit [Remote host closed the connection]
elenatanasoiu has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
kloeri_ is now known as kloeri
nettoweb has joined #ruby
allomov has joined #ruby
<xall_> teledyn: idk about that book, though i've been reading Eloquent Ruby and recommend it. it's really brief
ruby-lang505 has joined #ruby
<xall_> if you understand concepts, it's a good way to see how Ruby does things
nankyokusei has joined #ruby
marr has joined #ruby
roamingdog has joined #ruby
vuoto has joined #ruby
Snowy has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
<ruby-lang505> Hello i transfer app from one server to another ,everyting is working exept when open admin panel give me error :undefined method `read' for #<String:0x7f0159dcc9e8> ....sorry i'm noob in ruby.
salut has joined #ruby
Beams has joined #ruby
Pupeno has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
joconcepts has joined #ruby
roamingdog has quit [Ping timeout: 265 seconds]
<xall_> ruby-lang505: nobody can help without a gist. that error means you're calling read on an object that doesn't have read defined
joconcep- has joined #ruby
joconcep- has quit [Client Quit]
joconcepts_ has quit [Ping timeout: 260 seconds]
auxbuss has joined #ruby
auxbuss has quit [Client Quit]
ben__ has joined #ruby
symm- has quit [Quit: Leaving...]
joconcepts has quit [Ping timeout: 250 seconds]
allomov has quit [Remote host closed the connection]
allomov has joined #ruby
ben__ has quit [Ping timeout: 256 seconds]
ramfjord has quit [Ping timeout: 256 seconds]
xall_ has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
xall_ has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
llaine has joined #ruby
flying has joined #ruby
ziarkaen has joined #ruby
yardenbar has joined #ruby
sagax has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby
Salve has joined #ruby
yardenbar has quit [Max SendQ exceeded]
yardenbar has joined #ruby
ur5us has quit [Ping timeout: 256 seconds]
agent_white has quit [Write error: Connection reset by peer]
agent_white has joined #ruby
hutch34 has joined #ruby
pandaant has joined #ruby
Salve has quit [Ping timeout: 252 seconds]
borodin has quit [Ping timeout: 245 seconds]
hutch34 has quit [Ping timeout: 244 seconds]
KnownSyntax has quit [Ping timeout: 245 seconds]
ferr has joined #ruby
allomov has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
xall_ has quit [Ping timeout: 245 seconds]
xall_ has joined #ruby
tvw has joined #ruby
troulouliou_div2 has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
xall has joined #ruby
ziarkaen_ has joined #ruby
lenwood has joined #ruby
xall_ has quit [Ping timeout: 260 seconds]
astrobunny has quit []
Pupeno has quit [Quit: Leaving...]
Guest74985 is now known as CrazEd
vqrs has quit [Ping timeout: 250 seconds]
CrazEd is now known as Guest29164
aries_liuxueyang has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alexherbo2 has quit [Quit: WeeChat 1.5]
astrobunny has joined #ruby
Pupeno has joined #ruby
SCHAAP137 has joined #ruby
Burgestrand has joined #ruby
vqrs has joined #ruby
lenwood has quit [Ping timeout: 256 seconds]
Burgestrand has quit [Client Quit]
sylario has joined #ruby
zacstewart has quit [Ping timeout: 250 seconds]
ziarkaen has quit [Disconnected by services]
ziarkaen_ has quit [Quit: leaving]
ziarkaen has joined #ruby
face has quit [Disconnected by services]
aries_liuxueyang has quit [Ping timeout: 260 seconds]
User458764 has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
Salve has joined #ruby
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aries_liuxueyang has joined #ruby
Salve has quit [Ping timeout: 260 seconds]
ben__ has joined #ruby
Jameser_ has quit [Ping timeout: 250 seconds]
jaruga___ has joined #ruby
RobertBirnie has joined #ruby
lenwood has joined #ruby
ben__ has quit [Ping timeout: 256 seconds]
meshsmith has joined #ruby
pawnbox has quit [Remote host closed the connection]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 250 seconds]
meshsmith has quit [Remote host closed the connection]
zacstewart has joined #ruby
palms has joined #ruby
ace05 has joined #ruby
pawnbox has joined #ruby
xall_ has joined #ruby
Cohedrin has joined #ruby
xall has quit [Ping timeout: 250 seconds]
ace05 has quit [Ping timeout: 244 seconds]
phredus has quit [Read error: Connection reset by peer]
phredus has joined #ruby
Kero has left #ruby [#ruby]
Kero has joined #ruby
nettoweb1 has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
yardenbar has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
nettoweb has quit [Ping timeout: 260 seconds]
ebbflowgo has joined #ruby
mvxlr has joined #ruby
ebbflowgo has quit [Ping timeout: 256 seconds]
latpaw has quit [Ping timeout: 260 seconds]
trifling-jest has joined #ruby
trifling-jest has quit [Client Quit]
senayar has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
yardenbar has joined #ruby
Salve has joined #ruby
bturker has joined #ruby
Guest29164 is now known as CrazEd
brendan- has joined #ruby
CrazEd is now known as Guest91557
Beams_ has joined #ruby
Beams has quit [Remote host closed the connection]
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yardenbar has quit [Ping timeout: 250 seconds]
astrobunny has quit [Remote host closed the connection]
Salve has quit [Ping timeout: 276 seconds]
troulouliou_div2 has quit [Quit: Leaving]
astrobunny has joined #ruby
astrobunny has quit [Ping timeout: 256 seconds]
coffeebeanzz has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
aidalgol has quit [Remote host closed the connection]
Robtop__ has quit [Read error: Connection reset by peer]
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
zacstewart has quit [Ping timeout: 250 seconds]
yardenbar has joined #ruby
pwnd_nsfw has joined #ruby
aries_liuxueyang has joined #ruby
addisaden has joined #ruby
nankyokusei has joined #ruby
JeanCarloMachado has joined #ruby
latpaw has joined #ruby
xall_ has quit [Ping timeout: 260 seconds]
Azure has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
FastJack_ has quit [Quit: leaving]
coffeebeanzz has quit [Quit: Leaving]
spt0 has joined #ruby
TheWhip has joined #ruby
Hyuk has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tlaxkit has joined #ruby
lenwood has quit [Ping timeout: 265 seconds]
mvxlr has joined #ruby
dionysus69 has joined #ruby
dmtd has quit [Quit: Connection closed for inactivity]
ace05 has joined #ruby
hutch34 has joined #ruby
vuoto has quit [Remote host closed the connection]
zacstewart has joined #ruby
Salve has joined #ruby
ace05 has quit [Ping timeout: 252 seconds]
palms has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
hutch34 has quit [Ping timeout: 252 seconds]
Salve has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 250 seconds]
pokalyis has joined #ruby
gizmore has quit [Ping timeout: 256 seconds]
gizmore has joined #ruby
Guest91557 is now known as CrazEd
CrazEd is now known as Guest51480
jenrzzz has quit [Ping timeout: 250 seconds]
User458764 has joined #ruby
sdothum has joined #ruby
johnmilton has quit [Remote host closed the connection]
brendan- has joined #ruby
gingray has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
zacstewart has quit [Ping timeout: 265 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Immune_ has quit [Ping timeout: 260 seconds]
fergal has joined #ruby
<teledyn> xall i guess you're not here but thanks for the reference
mvxlr has quit [Ping timeout: 252 seconds]
Burgestrand has joined #ruby
<fergal> is there a way to find out how many projects use a certain gem?
jmignault has joined #ruby
<Burgestrand> fergal gem dependency <gem> --reverse-dependencies
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Salve has joined #ruby
bkxd has joined #ruby
jmignault has quit [Ping timeout: 250 seconds]
<Burgestrand> fergal you also have this API for asking rubygems: http://guides.rubygems.org/rubygems-org-api/#get---apiv1gemsgem-namereversedependenciesjson
Pupeno has quit [Ping timeout: 250 seconds]
Salve has quit [Ping timeout: 260 seconds]
Pupeno has joined #ruby
ziarkaen has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
ziarkaen has joined #ruby
johnmilton has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
ace05 has joined #ruby
nadir has joined #ruby
johnmilton has quit [Ping timeout: 256 seconds]
johnmilton has joined #ruby
MoocherDK has joined #ruby
ziarkaen has quit [Ping timeout: 250 seconds]
Cyrus has quit [Ping timeout: 260 seconds]
zacstewart has joined #ruby
<MoocherDK> Hey all.. I've been looking around. Is there a way to "natively" skip a rake task? I have a build task, that depends on some files. If I call the build task it still runs - even if the files haven't changed.... A workaround is having a dummy file that depends on the build file.. and do the build in that task.. And the Build command only depend on that... But that seems very wrong..
ace05 has quit [Ping timeout: 250 seconds]
<MoocherDK> .. The build itself does not produce a file itself.. So I cant use that as a dependency
tk__ has joined #ruby
<dminuoso_> MoocherDK: How about you put the code into a method, test the condition and call the implementation if the test succeeds?
JeanCarloMachado has quit [Ping timeout: 250 seconds]
<MoocherDK> dminuoso_: I'vw thought about that too.. But it "feels" wrong.. For files it's all in the denpendency part. This seems to take the whole dependency into the methods.
<MoocherDK> My "best" guess is having a dependecy, that tells me if I should be skipped. But I can't seem to find a nice way of doing this
<MoocherDK> My build is docker images. And there is no reason to run the build if the dockerfile hasn't changed. And no reason to push to the server, if there was no changes to the image
nankyokusei has joined #ruby
TheWhip has quit []
gingray has joined #ruby
<lupine> MoocherDK: one option frequently used in makefiles is a stamp file
<lupine> MoocherDK: one option frequently used in makefiles is a stamp file
<MoocherDK> lupine: Yeah, thats where I am now. That build depends on the stampfile.. and it is the stampfile task that handles the build.. But it just feels so wrong
<lupine> whoops
sparch has joined #ruby
latpaw has quit [Ping timeout: 256 seconds]
<lupine> MoocherDK: you need somewhere to store the state. if you're not writing any files at all, where else can it go?
brendan- has joined #ruby
sepp2k has joined #ruby
tyang has joined #ruby
catphish has joined #ruby
roamingdog has joined #ruby
Guest51480 is now known as CrazEd
Pupeno has quit [Remote host closed the connection]
CrazEd is now known as Guest13113
Salve has joined #ruby
postmodern has quit [Remote host closed the connection]
bw_ has quit [Quit: Changing server]
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
dionysus70 is now known as dionysus69
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sonne has quit [Quit: ZNC - http://znc.in]
Salve has quit [Ping timeout: 250 seconds]
Derperperd has joined #ruby
<jokke> hey
<jokke> Time.now.zone # => "CEST"
<jokke> Time.now.in_time_zone("CEST") # => ArgumentError: Invalid Timezone: CEST
sonne has joined #ruby
ixti has joined #ruby
<jokke> Time.now.in_time_zone("CET").zone # => "CEST"
<jokke> wtf
<jokke> i'm trying to write a core ext for time that returns a new time based on the existing one. I need it to preserve the timezone
czerasz has joined #ruby
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
<Zarthus> ?rubyonrails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<jokke> which is why just using Time.new(...).in_timezone(zone) would do the trick
Technodrome has joined #ruby
<jokke> i'm not using raisls
<jokke> rails
<jokke> just active_support
<jokke> which i think is pretty common
<Zarthus> I'd imagine rails would still be better to support there; but fair enough
<jokke> sure
<jokke> i'll join there then
* Zarthus was under the impression AS is a primarily rails thing.
<Zarthus> It's not in the official ruby documentation, in either case.
<jokke> that is correct :)
<jokke> and it's originated from rails
<Burgestrand> jokke you also didn't ask a question
emilkarl has joined #ruby
<jokke> that is true
<jokke> i need to be able to construct a time object that has the same zone as another
<jokke> i construct it from a unix timestamp
User458764 has joined #ruby
sonne has quit [Quit: ZNC - http://znc.in]
sonne has joined #ruby
brendan- has joined #ruby
zacstewart has quit [Ping timeout: 244 seconds]
<MoocherDK> lupine: I guess you are right... The I keep the stamp files
sonne_ has joined #ruby
sonne has quit [Read error: Connection reset by peer]
Jameser has joined #ruby
vondruch has left #ruby [#ruby]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
emilkarl has quit [Read error: Connection reset by peer]
FastJack has joined #ruby
JeanCarloMachado has joined #ruby
emilkarl has joined #ruby
vondruch_ has joined #ruby
ben__ has joined #ruby
halfdan has quit [Quit: Connection closed for inactivity]
<apeiros> jokke: if I'd get a penny for every "but I'm not using rails", where it is utterly irrelevant that you're just using a part of the rails project…
ace05 has joined #ruby
hutch34 has joined #ruby
alibby has joined #ruby
Jameser has quit [Max SendQ exceeded]
Derperperd has quit [Quit: Derperperd]
Jameser has joined #ruby
chouhoulis has joined #ruby
brendan- has joined #ruby
spt0 has quit [Ping timeout: 256 seconds]
jaiks has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 252 seconds]
ace05 has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
<linduxed> so to get a list of all "tails" of a list, i do the following:
cdg has joined #ruby
ziarkaen has joined #ruby
<dminuoso_> ary.map(&:last)
chouhoulis has joined #ruby
<dminuoso_> Seeing as you are still typing your solution must be convoluted.
<linduxed> (1..4).each_with_object([[]]) { |e, list| list << [list.last + [e]].flatten }.drop(1)
<jokke> apeiros: that's like calling statsd a part of the 'Etsy-Project'
<linduxed> this results in [[1], [1,2], [1,2,3], [1,2,3,4]]
<dminuoso_> [[1], [1,2], [1,2,3], [1,2,3,4]].map(&:last)
<dminuoso_> >> [[1], [1,2], [1,2,3], [1,2,3,4]].map(&:last)
<ruby[bot]> dminuoso_: # => [1, 2, 3, 4] (https://eval.in/666063)
<dminuoso_> Hooray.
<linduxed> well... i wanted to go from (1..4) to [[1], [1,2], [1,2,3], [1,2,3,4]]
<linduxed> (1..4).map(&:last) won't do the trick
jaiks has joined #ruby
ramortegui has joined #ruby
Salve has joined #ruby
<linduxed> i was mainly wondering if you guys saw an obvious alternative shorter versino
<linduxed> *version
<dminuoso_> Yes.
<jokke> (1..4).reduce([], &:concat)
<jokke> ?
<jokke> >> (1..4).reduce([], &:concat)
<ruby[bot]> jokke: # => no implicit conversion of Fixnum into Array (TypeError) ...check link for more (https://eval.in/666068)
<jokke> :P
<jokke> that's also totally wrong
<jokke> in every way
<jokke> :D
<linduxed> i was trying to think of a good way to do it with reduce, but i couldn't think of something good
<jokke> >> (1..4).reduce([]) { |a, e| a + [*a.last, e] }
<ruby[bot]> jokke: # => [1, 1, 2, 2, 3, 3, 4] (https://eval.in/666070)
<dminuoso_> >> ->(r) { r.map { |b| (r.begin..b).to_a } }.call(1..5)
<ruby[bot]> dminuoso_: # => [[1], [1, 2], [1, 2, 3], [1, 2, 3, 4], [1, 2, 3, 4, 5]] (https://eval.in/666071)
<jokke> uh
<dminuoso_> linduxed: how about that?
<jokke> >> (1..4).reduce([]) { |a, e| a << [*a.last, e] }
<ruby[bot]> jokke: # => [[1], [1, 2], [1, 2, 3], [1, 2, 3, 4]] (https://eval.in/666072)
<jokke> yeah
<jokke> there ya go
<dminuoso_> mmm yeah that is better.
<dminuoso_> a bit shorter.
<Technodrome> why is the word eigenclass not in pickaxe at all? do they just call it something different? or is that not explained in there?
<dminuoso_> Technodrome: does it mention "singleton classes" ?
jphase has joined #ruby
<linduxed> jokke: that's it i guess
<linduxed> thx!
joast has joined #ruby
<ljarvis> >> (1..4).map { |x| (1..x).to_a }
<ruby[bot]> ljarvis: # => [[1], [1, 2], [1, 2, 3], [1, 2, 3, 4]] (https://eval.in/666075)
Salve has quit [Ping timeout: 265 seconds]
jphase has quit [Remote host closed the connection]
<dminuoso_> ljarvis: Cheating. You are assuming the range starts with 1.
<dminuoso_> ;p
zacstewart has joined #ruby
<Technodrome> dminuoso_ seems to be a small part mentioning singletons
jackjackdripper has joined #ruby
<ljarvis> dminuoso_: did you have that response ready? :D
<dminuoso_> ljarvis: Heh.
jphase has joined #ruby
<ljarvis> >> (1..4).map { |x| (x-x+1..x).to_a }
<ruby[bot]> ljarvis: # => [[1], [1, 2], [1, 2, 3], [1, 2, 3, 4]] (https://eval.in/666079)
<dminuoso_> Technodrome: That's sad. In reality everytime you do something like "def self.foo" or "class << self" you are interacting with singleton classes.
<Technodrome> dminuoso_ the wording used to describe it seems to be, Object specific classes
Rodya_ has joined #ruby
<ljarvis> *wonders if anyone can tell*
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
ebbflowgo has joined #ruby
jaiks has quit [Ping timeout: 245 seconds]
<dminuoso_> ljarvis: I can.
<ljarvis> sshh
<dminuoso_> :P
<Technodrome> dminuoso_ even I am a bit iffy on this topic, i always thought they were for creating methods to a specific instance more or less, how they work with Classes to create class methods, kinda confuses me
<dminuoso_> Technodrome: Technically there is non such thing as "class methods"
<Technodrome> just methods specific to the Class object's defined singleton?
<dminuoso_> Technodrome: Precisely.
<Technodrome> thank you, completely cleared up
<Technodrome> lol
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Technodrome> i keep forgetting a class is "just an object" too
Ropeney has joined #ruby
<dminuoso_> Technodrome: Yeah, and as such that object has a singleton class. :)
MoocherDK has quit [Ping timeout: 260 seconds]
Ropeney has quit [Read error: Connection reset by peer]
<Technodrome> dminuoso_ i think all the articles explaining it, and being like , you can use eigenclasses for "class methods" as well , made my mind go, is there something special going on with class << self in a class rather than an instance?
lxsameer has quit [Quit: WeeChat 1.5]
<dminuoso_> Technodrome: class << self opens the singleton class of self.
<dminuoso_> Technodrome: You could also do: class << obj; stuff; end.
<Technodrome> then again, i guess they are just trying to say , "this is how you create a class method like concept in other languages "
<Technodrome> dminuoso_ self in this case, being the class
<dminuoso_> >> obj = "foo"; class << obj; def foo; puts "hello world" end; obj.foo
<ruby[bot]> dminuoso_: # => /tmp/execpad-d80748e8bb27/source-d80748e8bb27:7: syntax error, unexpected end-of-input, expecting ke ...check link for more (https://eval.in/666082)
<dminuoso_> >> obj = "foo"; class << obj; def foo; puts "hello world" end; end; obj.foo # Technodrome
<ruby[bot]> dminuoso_: # => hello world ...check link for more (https://eval.in/666083)
<dminuoso_> Technodrome: Exatly.
<dminuoso_> Technodrome: And then, "def self.method" is no different from "def obj.method"
<Technodrome> only one is not wrapped in a class wrapper
hutch34 has joined #ruby
<dminuoso_> you can use "def self.method" anywhere.
<dminuoso_> There is always a self somehow. ;-)
nankyokusei has quit [Remote host closed the connection]
Rodya_ has quit [Ping timeout: 256 seconds]
<dminuoso_> Question is just what it is..
<Technodrome> maybe a better way to look at it is just every object has a class
<dminuoso_> Two classes.
<Technodrome> can it be thought of as an objects superclass? in a way?
<Technodrome> like not super class in inheritance, but almost something different
<dminuoso_> Technodrome: How interested are you in all of this?
Asher1 has quit [Quit: Leaving.]
c355e3b has joined #ruby
<Technodrome> pretty interested? why do you know something in depth on it? ha
<dminuoso_> Technodrome: Get Ruby Under A Microscope - it will dissect how Ruby works internally (covering all of this). It is a superb book.
<Technodrome> its funny you mentioned that, i just got that book from a fellow programmer for my birthday
<dminuoso_> :)
<Technodrome> so it covers this whole singleton class of every object sorta thing?
<dminuoso_> Yes.
<dminuoso_> Amongst many other things.
<Technodrome> look how small the pickaxe section is
Guest13113 is now known as CrazEd
<dminuoso_> Technodrome: The real notion of "instance methods" and "class methods" is just related to how method lookup works in Ruby.
CrazEd is now known as Guest52647
<dminuoso_> Though technically they are the same - just with different receivers.
Asher has joined #ruby
<dminuoso_> Technodrome: If you want you can skip the lexing/parsing introductions and hop right into the VM in the book.
spt0 has joined #ruby
tubbo has quit [Ping timeout: 245 seconds]
<dminuoso_> Technodrome: After covering that book, you will also suddenly understand how and why modules work.
frankiee_ has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaiks has joined #ruby
p1k has quit [Quit: WeeChat 1.5]
brendan- has joined #ruby
p1k has joined #ruby
<sparch> dminuoso, VM stands for what?
<sparch> ^ dminuoso_
<dminuoso_> sparch: virtual machine
DLSteve has joined #ruby
<sparch> dminuoso_, the book you talking is the same Technodrome said?
<dminuoso_> sparch: We were talking about the book called "Ruby Under a Microscope"
<sparch> nice
<sparch> thanks!
Silthias has joined #ruby
tubbo has joined #ruby
Silthias1 has quit [Ping timeout: 250 seconds]
tonini has quit [Quit: Connection closed for inactivity]
jackjackdripper1 has joined #ruby
Burgestrand has joined #ruby
<Technodrome> i'm going to start reading it here soon dminuoso_ , no work for a few days
pawnbox has quit [Remote host closed the connection]
<Technodrome> its amazing, you can use ruby without really understanding some of these concepts, kinda like how smalltalk was
<Technodrome> so many people used it without really knowing what the VM was doing
griffindy has joined #ruby
jackjackdripper has quit [Ping timeout: 256 seconds]
<dminuoso_> Technodrome: That book led me on a road that ended up in me hacking in Ruby, then writing my own language - and then writing my own kernel. I love it.
<Technodrome> something tells me what modules when included in a class, do something similar as a singleton class
<dminuoso_> No.
griffindy has quit [Client Quit]
ta_ has quit [Remote host closed the connection]
<Technodrome> its just a guess :)
<dminuoso_> Only classes can have methods.
<dminuoso_> That kind of means a module must be a class too.
saslam has joined #ruby
<Technodrome> but when you include it, doesn't it sorta just stick like a "hidden anonymous class" on top of the inheritance chain?
<dminuoso_> Not ontop!
<dminuoso_> It directly inserts the class into the inheritance chain.
<frankiee_> When do I fire a remote Ruby developer?
<Technodrome> or maybe i meant the bottom, top would be Object here right?
nankyokusei has joined #ruby
<frankiee_> It's like we make a deal, he's gonna work so and so for this and this price. He does a little bit of work and then disappears for months and ignore my emails.
<dminuoso_> frankiee_: I try to not fire people before 10.
aupadhye has quit [Ping timeout: 244 seconds]
<frankiee_> On social media I see he's active with his own side projects. A lot of them using a lot of the same designs and libraries I use.
<Technodrome> dminuoso_ what has more precedence , a class method defined in a module then included , or the singleton class of that class?
<frankiee_> dminuoso_: lol
<dminuoso_> Technodrome: Now you're talking. ;-)
<dminuoso_> >> module M; end; class A; include M; end; puts A.ancestors
<ruby[bot]> dminuoso_: # => A ...check link for more (https://eval.in/666090)
<dminuoso_> >> module M; end; class A; include M; end; puts A.ancestors.inspect
<ruby[bot]> dminuoso_: # => [A, M, Object, Kernel, BasicObject] ...check link for more (https://eval.in/666091)
malconis has joined #ruby
<frankiee_> Fuck it he's out
<frankiee_> Sorry for the rant
<Technodrome> most startups give you a week, months is way too long frankiee_
<frankiee_> Technodrome: my startup's been going on for years lol
<Technodrome> how many employees?
<frankiee_> It's more of a side project though. I just need everything to be perfect
<dminuoso_> Thats why its still a startup.
<frankiee_> Just me, and some freelancers I hire from time to time. Such as this indian dude
<dminuoso_> Technodrome: So "ancestors" displays the inheritance chain in which method lookup will occur.
<frankiee_> which, despite having written a lot of good code, and believe me i paid him well, has been acting real arrogant lately
<frankiee_> can't respond to an email? does it really take that much effort?
<frankiee_> to say "i'll be gone for a few weeks for this convention", but nah
<Technodrome> dminuoso_ so the module sits directly on top of the class
griffindy has joined #ruby
<dminuoso_> Technodrome: exactly. it gets inserted into the inheritance chain
nankyokusei has quit [Ping timeout: 245 seconds]
<Technodrome> dminuoso_ where does the eigenclass fit into that? is that A as well?
<dminuoso_> Technodrome: Now the fancy thing is prepend
<dminuoso_> >> module M; end; class A; prepend M; end; puts A.ancestors.inspect
<ruby[bot]> dminuoso_: # => [M, A, Object, Kernel, BasicObject] ...check link for more (https://eval.in/666092)
rajdesai has joined #ruby
<dminuoso_> Technodrome: That causes the module to appear *first* in the ancestory.
mim1k|work has quit [Read error: Connection reset by peer]
<Technodrome> interesting, why would you want that?
<Technodrome> the module would then override methods of the same name in that class right?
<dminuoso_> 15:46 < dminuoso_> Technodrome: So "ancestors" displays the inheritance chain in which method lookup will occur.
<dminuoso_> Yeah
<dminuoso_> well "hide"
<Technodrome> yeah, I'll probably not need that much
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
anisha has quit [Quit: This computer has gone to sleep]
<dminuoso_> prepend is one of the most useful features in ruby 2.something
<Technodrome> dminuoso_ but lets say you have an eigenclass on A which adds a self.x method, and the module does the same, which takes precedence?
<Technodrome> is A's eigenclass still before M ?
ruby-lang505 has quit [Quit: Page closed]
<dminuoso_> Technodrome: obj.method does obj.singleton_class > obj.ancestors
AlexJakeGreen has joined #ruby
QpQ4 has joined #ruby
<Technodrome> makes sense, so the objects singleton is always first
<dminuoso_> Technodrome: and this is why a "class method" is a class method. If its defined on As singleton class, its not in the lookup chain.
<dminuoso_> Correct.
<dminuoso_> But! a class method on A is in the lookup chain of A.method
QpQ4 has quit [Client Quit]
Rodya_ has joined #ruby
<Technodrome> just not in the inheritance chain
<dminuoso_> >> module M; end; class A; include M; end; puts A.new.ancestors.inspect
<ruby[bot]> dminuoso_: # => undefined method `ancestors' for #<A:0x41149920> (NoMethodError) ...check link for more (https://eval.in/666095)
<dminuoso_> uhh
<dminuoso_> Technodrome: No its still in the inheritance chain sort of
<dminuoso_> >> a = ""; a.is_a?(a.singleton_class)
Blueby has joined #ruby
<ruby[bot]> dminuoso_: # => true (https://eval.in/666097)
<Technodrome> i mean, you'll never see a singleton object class when looking at ancestors etc
<dminuoso_> right
<Technodrome> its already assumed it has one
<Technodrome> (which i guess every object does) hehe
<dminuoso_> Yes.
<dminuoso_> Almost.
griffindy has quit [Ping timeout: 276 seconds]
palms has joined #ruby
<Technodrome> now will prepend in a module with a class method, override the class method on A's eigenclass?
<Technodrome> err hide i should say
<dminuoso_> 15:50 < dminuoso_> Technodrome: obj.method does obj.singleton_class > obj.ancestors
<dminuoso_> if the method is not in objects singleton class, it will check its classes ancestors.
<dminuoso_> so more correctly:
mim1k|work has joined #ruby
<dminuoso_> obj.method looks up in obj.singleton_class, and then in obj.class.ancestors
<Technodrome> but that prepend thing, put M before A
pandaant has quit [Remote host closed the connection]
<Technodrome> almost like it was skipping the whole A lookup chain by looking at M first
<dminuoso_> Technodrome: still, the singelton class is always checked first.
<Technodrome> of A right?
<Technodrome> not M
<dminuoso_> No, the object.
<dminuoso_> the receiver
<dminuoso_> whatever that may be
<Technodrome> in this case A
<dminuoso_> In which case?
<dminuoso_> a = A.new; a.method #=> then no!
<dminuoso_> A.method #=> then yes.
<Technodrome> yes A.method, class method
<dminuoso_> Precisely.
<Technodrome> so the eigenclass "class method" will override anything
Jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Technodrome> on that object
<dminuoso_> Technodrome: And I lied too btw, becuase in reality things are more complicated.
<Technodrome> you lied? :( lol
<dminuoso_> 15:54 < dminuoso_> so more correctly:
<dminuoso_> Yes.
User458764 has joined #ruby
wugy has quit []
<dminuoso_> Technodrome: But honestly this takes diagrams to explain.
<Technodrome> but that book will help me right?
<dminuoso_> Absolutely.
<Technodrome> i'll try to crush out alot tonight, taking my time
<Technodrome> this is probably one of the more complex areas of ruby, even people at work doing rails for 5 years+ , "eigenclass" what?
<dminuoso_> Technodrome: The issue is that the reality requires differentiating between ruby classes which are objects, and RClass (which has the actual methods)
<Technodrome> line 8, what is that doing? returning self ?
<dminuoso_> Technodrome: Start with line 7, what does it do?
<Technodrome> opens up the singleton of the object eigenclass ?
gnufied has joined #ruby
<dminuoso_> Technodrome: No, there is no such object eigenclass.
<Technodrome> def eigenclass <<
<dminuoso_> that is just a module definition.
nankyokusei has joined #ruby
<dminuoso_> err method.
jaiks has quit [Remote host closed the connection]
jackjackdripper1 has quit [Quit: Leaving.]
<dminuoso_> Inside a method definition, what is self?
rajdesai has quit [Remote host closed the connection]
<Technodrome> i guess its Object in this case, has to be right?
<dminuoso_> No.
<dminuoso_> Remember that methods belong to classes, but can only be called on objects of that class.
<Technodrome> ok last guess, the caller ?
<dminuoso_> self is the object itself
<dminuoso_> the actual instance of Object
rajdesai has joined #ruby
<dminuoso_> and what did I tell you what class << foo; does?
JeanCarloMachado has quit [Ping timeout: 256 seconds]
ace05 has joined #ruby
<Technodrome> foo being an instance?
rajdesai has quit [Read error: Connection reset by peer]
<dminuoso_> foo being anything.
<Technodrome> it opens up the singleton class right?
<dminuoso_> right.
<dminuoso_> now this code is just very very very silly
<dminuoso_> since
<dminuoso_> &ri singleton_class
<dminuoso_> ;)
rajdesai has joined #ruby
<dminuoso_> Technodrome: Also note the hint that singleton classes are only created on demand - but thats technically just an optimization detail.
rajdesai has quit [Read error: Connection reset by peer]
dviola has joined #ruby
<Technodrome> is self really a method call here? what is it ?
rajdesai has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
rajdesai has quit [Read error: Connection reset by peer]
<Technodrome> is the empty class with self, returning self? I thought it would just throw it away
<dminuoso_> self is special.
jaiks has joined #ruby
ChiefAlexander has joined #ruby
<dminuoso_> Technodrome: It's a keyword in fact.
rajdesai has joined #ruby
<dminuoso_> >> self = 1
<ruby[bot]> dminuoso_: # => /tmp/execpad-b129a1260b77/source-b129a1260b77:2: Can't change the value of self ...check link for more (https://eval.in/666109)
<dminuoso_> Uh bad example.
rajdesai has quit [Read error: Connection reset by peer]
pragmaticus has joined #ruby
Hyuk has joined #ruby
<Technodrome> but when its in the class, what is actually happening? is it returning self ?
<dminuoso_> inside a class self is the class *object* itself
<Technodrome> when you call eigenclass now, are you just getting the value of self back?
rajdesai has joined #ruby
<Technodrome> I see
ace05 has quit [Ping timeout: 245 seconds]
<dminuoso_> inside a method self is the *object* of the class being defined on itself
<Technodrome> so in this case, anytime you call that, you are going to get back the object callers eigenclass ?
ziarkaen has quit [Ping timeout: 250 seconds]
<dminuoso_> call what?
jphase has quit [Ping timeout: 265 seconds]
<Technodrome> inside a method self is the *object* of the class being defined on itself
<Technodrome> I don't quite get that
<dminuoso_> methods belong to classes, classes can have instances
lenwood has joined #ruby
<dminuoso_> inside a method "self" refers to the instance of the class its being defined on.
<dminuoso_> so class Foo; def method; self; end; end returns the object instance itself
<Technodrome> yes not the class
<Technodrome> but outside of the method definition, its the class right?
<dminuoso_> outside the method definition WHERE?
<dminuoso_> This is a very important question, because ruby change the meaning of "self" depending on where you are.
<Technodrome> just like that example, the only thing in the class definition
<dminuoso_> inside a class definition? then its the class object itself.
<Technodrome> yes, not the instance
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dminuoso_> >> module M; class C; include M; end; C.new.singleton_class.ancestors.inspect # this should be interesting Technodrome
<ruby[bot]> dminuoso_: # => /tmp/execpad-abb546a9c420/source-abb546a9c420:7: syntax error, unexpected end-of-input, expecting ke ...check link for more (https://eval.in/666120)
<dminuoso_> >> module M; end; class C; include M; end; C.new.singleton_class.ancestors.inspect # this should be interesting Technodrome
<ruby[bot]> dminuoso_: # => "[#<Class:#<C:0x406b98fc>>, C, M, Object, Kernel, BasicObject]" (https://eval.in/666121)
<Technodrome> I still don't get it though, i can put self in a class, and thats the only thing, i thought ruby would just "throw away self" , but in that example its changing something
<dminuoso_> >> class Base; end; def Base.magic; end; module M; end; class Derived < Base; include M; end; C.new.singleton_class.ancestors.inspect # this should be interesting Technodrome
<ruby[bot]> dminuoso_: # => uninitialized constant C (NameError) ...check link for more (https://eval.in/666129)
<dminuoso_> >> class Base; end; def Base.magic; end; module M; end; class Derived < Base; include M; end; Derived.new.singleton_class.ancestors.inspect # this should be interesting Technodrome
<dminuoso_> Bah I hit the rate limit.
Blueby has quit [Ping timeout: 250 seconds]
rajdesai has quit [Ping timeout: 256 seconds]
<Technodrome> that was going to be a good one
<Technodrome> i guess my main question on that was class <<self; self; end;
<Technodrome> is that returning self?
jaiks has quit [Ping timeout: 256 seconds]
<Technodrome> i didn't know classes could "return" so to speak
Blueby has joined #ruby
<dminuoso_> Technodrome: A class definition is also an expression, and the return value is the last expression inside the class definition.
<Technodrome> i had no idea
<Technodrome> i thought the interpreter would just throw it away
<dminuoso_> >> class Base; end; def Base.magic; end; module M; end; class Derived < Base; include M; end; Derived.new.singleton_class.ancestors.inspect
<ruby[bot]> dminuoso_: # => "[#<Class:#<Derived:0x4190d6c0>>, Derived, M, Base, Object, Kernel, BasicObject]" (https://eval.in/666140)
igniting has quit [Ping timeout: 245 seconds]
<dminuoso_> >> class Base; end; def Base.magic; end; module M; end; class Derived < Base; include M; end; Derived.singleton_class.ancestors.inspect
<ruby[bot]> dminuoso_: # => "[#<Class:Derived>, #<Class:Base>, #<Class:Object>, #<Class:BasicObject>, Class, Module, Object, Ker ...check link for more (https://eval.in/666141)
<dminuoso_> Technodrome: So as you can see, Ruby makes some slight distinction based on whether the receiver is a class or not.
<dminuoso_> This is done to implement 'inheritance of "class methods"'
pawnbox has joined #ruby
<dminuoso_> And this is what I meant with lying.
harfangk has joined #ruby
andikr has quit [Remote host closed the connection]
shinnya has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
<Technodrome> I see, can you explain that last example a bit
<dminuoso_> Technodrome: No, as every time I would have to leave out certain details and admit I was lying again.
<dminuoso_> Read the book. ;-)
<Technodrome> in that last thing, it seems like the singleton class has the superclass of Derived in its inheritance
agent_white has quit [Read error: Connection reset by peer]
<Technodrome> is that what you meant for class methods
<Technodrome> (i know , i am, I am just being impatiant)
<dminuoso_> &ri method_lookup_chain
<_derpy> No results
<dminuoso_> mm okay this SO answer sucks
<dminuoso_> Im trying to look for something useful
<dminuoso_> Read the book.
<dminuoso_> Once you figure out the thing with RObject and RClass things become easy to explain.
<Technodrome> i'll read, hopefully i won't have more questions than answers , i hope its solid
elementaru has joined #ruby
<dminuoso_> Technodrome: It's 100% correct - though its very compact.
bigkevmcd has quit [Quit: Outta here...]
<Technodrome> there isn't "too much" on this on google
<Technodrome> makes me wonder how many people really have these concepts mastered
<dminuoso_> Technodrome: Also note that the code excerpt do not match current Ruby any more - but conceptually its all the same still.
jphase has joined #ruby
agent_white has joined #ruby
jphase has quit [Changing host]
jphase has joined #ruby
agent_white has joined #ruby
agent_white has quit [Changing host]
<dminuoso_> so if you happen to take ruby source code while reading it, pick 2.1 I think they used - or just accept the fact that there's going to be some minor differences
bruseleno has joined #ruby
roamingdog has quit [Remote host closed the connection]
tk__ has quit [Quit: ばいばい]
roamingdog has joined #ruby
failshell has joined #ruby
jaiks has joined #ruby
ben__ has quit [Remote host closed the connection]
Filiphe has joined #ruby
Pupeno has joined #ruby
Guest52647 is now known as CrazEd
bigkevmcd has joined #ruby
<Technodrome> dminuoso_ have they just optimized it or something?
CrazEd is now known as Guest44913
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ben__ has joined #ruby
<Technodrome> ruby is a great language, you can be quite productive even with limited knowledge, it was never like that with my last C job
<dminuoso_> Technodrome: some refactorings
bruseleno has quit [Quit: Page closed]
<Technodrome> that might be one of the only ruby books to cover this topic in depth
<dminuoso_> after that book you can easily dive into the source code yourself
hutch34 has quit [Ping timeout: 260 seconds]
pokalyis has joined #ruby
Jameser has joined #ruby
Xeago has joined #ruby
hutch34 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
conta has quit [Remote host closed the connection]
fergal_ has joined #ruby
fergal_ has quit [Client Quit]
tildes has quit [Ping timeout: 256 seconds]
Pupeno has quit [Ping timeout: 250 seconds]
<Technodrome> dminuoso_ i hope so, my C is getting a bit rusty these days, but i just would like to understand it more than do anything
fergal has quit [Ping timeout: 256 seconds]
dminuoso_ has quit [Ping timeout: 260 seconds]
ldnunes has joined #ruby
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
wldcordeiro has quit [Ping timeout: 245 seconds]
bob434 has quit [Quit: This computer has gone to sleep]
Blueby has quit [Ping timeout: 245 seconds]
tlaxkit has quit [Remote host closed the connection]
tlaxkit has joined #ruby
kyle__ has quit [Remote host closed the connection]
kyle has joined #ruby
bob434 has joined #ruby
kyle is now known as Guest92915
Blueby has joined #ruby
<Technodrome> dminuoso fun fact, if you notice most ruby books, it seems like singletons / class methods etc is the last page of the book in many cases
Guest92915 is now known as kyle__
<apeiros> jokke: no it's not. but hey, your problem if you think you know better where to get help best.
rippa has joined #ruby
csk has joined #ruby
Jameser_ has joined #ruby
<jokke> apeiros: ok. What about AS is specific to rails and only makes sense in rails applications?
<apeiros> jokke: intentionally missing the point?
<apeiros> it's not that AS is rails specific. it's that AS is maintained as part of rails.
<apeiros> same for AR
<catphish> they are the components of rails
<jokke> well... i'm not expecting to find any rails core devs in #RubyOnRails
<catphish> its lot like rails is just s framework that took those individual libraries and put them together
<apeiros> but you're expecting to find them here?
<apeiros> because if not, that's a void argument
<jokke> no, and that's why it's totally irrelevant where i post my question
Blueby has quit [Quit: Blueby]
Jameser has quit [Ping timeout: 252 seconds]
<apeiros> jokke: then I suggest you go to #computing or #programming
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> because somehow that might fit too.
<catphish> there are rails contributors in #rubyonrails, whether or not they want to help is another matter :)
<jokke> since it's a basic "i use this lib in ruby and have a problem with it" question
<apeiros> jokke: anyway, as said - your problem if you think you know better where to get help best.
<catphish> i'd just ask in both places, and tolerate the abuse :)
<apeiros> catphish: don't forget the cross-post announcement then, though. otherwise "the abuse" will be a kick.
<catphish> what announcement?
<jokke> turned out i didn't get any help in #RubyOnRails either and figured it out my self. The solution was _not to use AS at all_ and use built in ruby methods. A solution any one here with any intention in helping a fellow coder out could have helped me get to.
<apeiros> jokke: yeah, being snotty is always a good way to be memorized as somebody whom best not to help.
<catphish> ^ this
marr has quit [Ping timeout: 260 seconds]
<jokke> the fact that i tried to solve my problem with AS didn't make it an AS problem is all i'm trying to say
<catphish> take being redirected as a polite hint
<apeiros> jokke: that part is valid, yes.
<catphish> or ask how to solve the problem another way, without first alienating everyone
abernstein has quit [Quit: abernstein]
conta has joined #ruby
<jokke> i need to be able to construct a time object that has the same zone as another. i construct it from a unix timestamp
<jokke> this was my question
wldcordeiro has joined #ruby
polishdub has joined #ruby
<jokke> i don't know how that alienates anyone
malconis has quit [Read error: Connection reset by peer]
Technodrome has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<catphish> it doesn't afaik
<catphish> get the timezone from the first, pass it into the constructor of the second
nankyokusei has quit [Remote host closed the connection]
<jokke> catphish: i can't use the constructor for unix timestamps
<catphish> actually, Time.at doesn't accept a zone, i guess you can set it rhough
<jokke> i'd need to use at
Blueby has joined #ruby
<catphish> use at, then set the zone?
malconis has joined #ruby
<jokke> i can set the zone?
<jokke> how?
<catphish> actually that was indeed the obvious question
<catphish> and no, i'm not sure you can :(
jaguarmagenta has joined #ruby
fbt has quit [Remote host closed the connection]
<catphish> interesting problem
exchgr` has quit [Ping timeout: 252 seconds]
aufi has quit [Quit: Leaving]
pokalyis has quit [Quit: Textual IRC Client: www.textualapp.com]
emilkarl has quit [Quit: Textual IRC Client: www.textualapp.com]
csk has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 276 seconds]
palms_ has joined #ruby
malconis has quit [Read error: Connection reset by peer]
cdg has quit [Remote host closed the connection]
pontiki has quit [Remote host closed the connection]
<catphish> i have no idea why Time even stores the zone, seems pretty inflexible
<catphish> good luck
aganov has quit [Remote host closed the connection]
nankyokusei has joined #ruby
exchgr has joined #ruby
<jokke> catphish: basically i want to "snap" a time object to a given amount of seconds (always back in time). so that 17:07:14 snap(5) would become 17:07:10
<jokke> my solution was a core extension Time#snap_seconds(amount = 1) which does this:
<jokke> self - (to_i + utc_offset % amount) - usec / 1_000_000
[0x1a] has joined #ruby
<jokke> sorry: self - ((to_i + utc_offset) % amount) - usec / 1_000_000
chopin has joined #ruby
palms_ has quit [Ping timeout: 260 seconds]
<jokke> also 1_000_000.0
ledestin has quit [Read error: Connection reset by peer]
vondruch_ is now known as vondruch
csk has joined #ruby
cjbischof_ has joined #ruby
malconis has joined #ruby
habitullence has quit [Quit: habitullence]
null_ref has joined #ruby
startupality has joined #ruby
<catphish> personally, i don't use timezones until dates are presented to users, keeping everything in UTC makes such calculations trivial by working on Time#to_i
csk has quit [Ping timeout: 260 seconds]
last_staff has quit [Quit: last_staff]
<catphish> your way seems fraught with danger, but i couldn't commend on whether it's correct or not
<jokke> mmh
<elomatreb> catphish: You still have to deal with them though, mainly on input which can be a real pain
<jokke> time is always a pain
<elomatreb> You can't really expect users to enter everything in UTC
<catphish> time can be a pain, but by converting everything to UTC as soon as possible, and to zoned output as late as possible, you avoid many hurdles
<catphish> unit time is a wonderful thing
<catphish> *unux
<catphish> *whatever
<jokke> :)
<jokke> yeah
jaequery has joined #ruby
<jokke> but as you saw from my example it's not trivial to convert a time to a zoned output (when the zone comes from the input)
<elomatreb> Well, until 2038 (on many systems) ;)
<jokke> in a perfect world we'd have metric time and no leap years and seconds
<jokke> :)
[0x1a] has quit [Changing host]
[0x1a] has joined #ruby
[0x1a] has joined #ruby
Derperperd has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
<jokke> screw the celestial cycles. we all work indoors anyway, who cares if it's light or dark outside :)
cjbischof_ has quit [Quit: Textual IRC Client: www.textualapp.com]
jaguarmagenta has quit [Remote host closed the connection]
Devalo has joined #ruby
jaruga___ has quit [Quit: jaruga___]
vuoto has joined #ruby
Guest44913 is now known as CrazEd
skweeke has quit [Ping timeout: 252 seconds]
CrazEd is now known as Guest64270
meshsmith has joined #ruby
igniting has joined #ruby
jcao219 has joined #ruby
conta has quit [Ping timeout: 245 seconds]
<dyjakan> exactly, just pop some vit D pills, wash them with coffee & ride on
Rickmasta has joined #ruby
Jameser_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has quit [Ping timeout: 256 seconds]
lenwood has quit [Quit: Konversation terminated!]
allomov has joined #ruby
cschneid_ has joined #ruby
abernstein has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
<catphish> been struggling to work out why "bundle exec" wasn't reloading my gems after a fork, turns out one needs a ENV.delete('BUNDLE_GEMFILE')
JeanCarloMachado has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
AlexJakeGreen has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roamingdog has quit [Remote host closed the connection]
Guest29143 has joined #ruby
Ben_1 has joined #ruby
<Ben_1> hi
<Ben_1> I installed ruby and rails with rvm for my ruby user
spt0 has quit [Ping timeout: 256 seconds]
amclain has joined #ruby
<Ben_1> now I wanna install passenger using gem and it seems gem is not just local for that user but global for all users.
<Ben_1> is that normal?
sphex has quit [Ping timeout: 252 seconds]
<Ben_1> thought it would be a local installation
<elomatreb> gem will try to do a global installation, use --local (I think) to install only for the current user
<catphish> if you run gem as your user it cannot install anything globally, it doesn't have permission
Filiphe has quit [Read error: Connection reset by peer]
<catphish> but it may ask you to install globally
<elomatreb> Additionally, you may want to take a look at bundler for dependency stuff
sphex has joined #ruby
<catphish> bundler is magic
<catphish> however, passenger seems like it would have to be somewhat global, to work with the web server? i'm not totally sure
tlaxkit1 has joined #ruby
spt0 has joined #ruby
<catphish> gem will definitely install globally if it can though, ie it has root permissions
jackjackdripper has joined #ruby
tlaxkit has quit [Ping timeout: 265 seconds]
tlaxkit1 is now known as tlaxkit
vondruch has quit [Quit: vondruch]
vuoto has quit [Quit: Lost terminal]
bob434 has joined #ruby
skweek has joined #ruby
anisha has joined #ruby
bob434 has quit [Read error: Connection timed out]
bob434 has joined #ruby
dionysus69 has joined #ruby
vondruch has joined #ruby
borkdude_ has quit [Read error: Connection reset by peer]
axisys has joined #ruby
axisys has quit [Client Quit]
catphish has quit [Quit: Leaving]
_sfiguser has quit [Ping timeout: 260 seconds]
rontec76 has joined #ruby
axisys has joined #ruby
Rutix has quit []
yardenbar has quit [Ping timeout: 260 seconds]
ace05 has joined #ruby
Chair has quit [Ping timeout: 265 seconds]
mluts has quit [Ping timeout: 250 seconds]
jsrn_ has quit [Quit: Leaving]
Guest29143 has quit [Ping timeout: 245 seconds]
ace05 has quit [Ping timeout: 265 seconds]
Dohplay has joined #ruby
Eiam has joined #ruby
Torkable has joined #ruby
fergal has joined #ruby
Torkable is now known as Guest74211
<fergal> hi guys, has anyone here used commander before?
Rodya_ has quit [Remote host closed the connection]
<hanmac> fergal: what is commander? never heard of it in ruby context
malconis_ has joined #ruby
_sfiguser has joined #ruby
LuckyABA has joined #ruby
malconis has quit [Read error: Connection reset by peer]
xall_ has joined #ruby
Immune has joined #ruby
elementaru has quit [Quit: EliteBNC - http://www.elitebnc.net/]
allomov has quit [Remote host closed the connection]
anisha has quit [Quit: This computer has gone to sleep]
rontec76 has quit [Remote host closed the connection]
Guest29143 has joined #ruby
rontec76 has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramortegui has quit [Quit: Ex-Chat]
compro has joined #ruby
jcao219 has quit [Ping timeout: 256 seconds]
Rodya_ has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ben__ has quit [Remote host closed the connection]
compro has quit [Client Quit]
Rodya__ has joined #ruby
benlieb has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
mark_66 has quit [Remote host closed the connection]
vktec has quit [Ping timeout: 260 seconds]
Pupeno has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
vktec has joined #ruby
arup_r has joined #ruby
jackjackdripper has joined #ruby
hahuang65 has joined #ruby
Guest64270 is now known as CrazEd
<arup_r> Hi, need help. I can the url content in browser, but not able to read it. https://gist.github.com/aruprakshit/112b080ce3ef9c4c3c06e109f42675e3
<arup_r> any idea what I have to add
<arup_r> view the url content in browser*
CrazEd is now known as Guest2078
jackjackdripper has quit [Client Quit]
<workmad3> arup_r: you need to pull in open-uri
ben__ has joined #ruby
<workmad3> and possibly net/https
nitric has joined #ruby
<arup_r> trying
<arup_r> thanks
<arup_r> :)
<arup_r> done
senayar has quit []
harai has joined #ruby
ramfjord has joined #ruby
ben__ has quit [Remote host closed the connection]
gusrub has joined #ruby
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
mikecmpbll has quit [Quit: inabit. zz.]
flying has quit []
Pupeno has quit [Ping timeout: 260 seconds]
mephistophocles has joined #ruby
<arup_r> thanks workmad3
<Ben_1> for any reason gem install passenger --no-rdoc --no-ri --local --source http://rubygems.org fails with the following error message: ERROR: Could not find a valid gem 'passenger' (>= 0) in any repository
User458764 has joined #ruby
<Ben_1> someone an idea why this happens?
<workmad3> Ben_1: `--local` would prevent rubygems from looking at a non-local source
Rodya__ has quit [Remote host closed the connection]
claudiuinberlin has quit []
jackjackdripper has joined #ruby
<Ben_1> workmad3: thought local is for installing the gem only local for that user
conta has joined #ruby
<workmad3> Ben_1: nope, --local is for only considering local sources
<workmad3> Ben_1: you're thinking of --user-install
<workmad3> Ben_1: btw, `gem help install` gives you all of this info... docs are great :)
<elomatreb> Sorry about that, I confused them too
arup_r has quit []
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
benlieb has quit [Quit: benlieb]
<Ben_1> np elomatreb and thanks for clarification workmad3 :)
<elomatreb> You can create a .gemrc file in your homedir specifying that option to always install locally
aufi has joined #ruby
xall has joined #ruby
brendan- has joined #ruby
AndrewIsHere has joined #ruby
holmser has quit [Ping timeout: 276 seconds]
xall_ has quit [Ping timeout: 259 seconds]
cdg has joined #ruby
Snowy has quit [Remote host closed the connection]
Salve has joined #ruby
Snowy has joined #ruby
djbkd has joined #ruby
Salve has quit [Remote host closed the connection]
Beams_ has quit [Quit: .]
Salve has joined #ruby
Ishido has joined #ruby
Salve has quit [Remote host closed the connection]
Salve has joined #ruby
Ben_1 has left #ruby [#ruby]
malconis_ has quit [Read error: Connection reset by peer]
Snowy has quit [Ping timeout: 244 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
_sfiguser has quit [Remote host closed the connection]
lenwood has joined #ruby
SeepingN has joined #ruby
malconis has joined #ruby
aufi has quit [Quit: Leaving]
User458764 has joined #ruby
weaksauc_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jaguarmagenta has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
xall has quit [Ping timeout: 256 seconds]
xall has joined #ruby
eez77 has joined #ruby
mikecmpbll has joined #ruby
gusrub has quit [Remote host closed the connection]
ferr has quit [Quit: WeeChat 1.5]
Salve has quit [Remote host closed the connection]
govg has joined #ruby
chouhoulis has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
benlieb has joined #ruby
whathappens has joined #ruby
chihhsin has quit [Quit: leaving]
lacour has joined #ruby
chihhsin has joined #ruby
JoshS has quit [Read error: Connection reset by peer]
frankiee_ has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
jaequery has joined #ruby
pawnbox has quit [Remote host closed the connection]
benlieb has quit [Ping timeout: 260 seconds]
xall_ has joined #ruby
rontec76 has quit [Ping timeout: 260 seconds]
xall has quit [Ping timeout: 260 seconds]
elenatanasoiu has quit [Ping timeout: 260 seconds]
bturker has quit [Ping timeout: 256 seconds]
Salve has joined #ruby
postmodern has joined #ruby
vuoto has joined #ruby
pawnbox has joined #ruby
splud_ has joined #ruby
failshell has quit []
ben__ has joined #ruby
fergal has quit [Quit: fergal]
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
startupality has quit [Quit: startupality]
Guest2078 is now known as CrazEd
ben__ has quit [Ping timeout: 260 seconds]
CrazEd is now known as Guest11127
chadwtaylor has joined #ruby
startupality has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
ta_ has joined #ruby
gusrub has joined #ruby
Anon5235 has joined #ruby
nonnatus has joined #ruby
gusrub has quit [Remote host closed the connection]
kegster has left #ruby [#ruby]
Salve has quit [Remote host closed the connection]
Joel has joined #ruby
<Joel> https://gist.github.com/jjshoe/95972277a2d956a11cfd838ce4332c57 - any ideas on how I can keep fpm working with 1.9?
frankiee_ has joined #ruby
TomyWork has quit [Ping timeout: 256 seconds]
czerasz has quit [Quit: Ex-Chat]
helpa has quit [Write error: Broken pipe]
helpa-bot has joined #ruby
gusrub has joined #ruby
tlaxkit has quit [Read error: Connection reset by peer]
<Joel> I don't see mustache as a direct requirement of fpm, how can I figure out which sub gem is pulling it in?
Anon5235 has left #ruby [#ruby]
helpa-bot has quit [Remote host closed the connection]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
helpa has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
nankyokusei has quit []
tlaxkit has joined #ruby
Devalo has quit []
<dionysus69> I was looking at some webpage and it had this "people".pluralize and it output "peoples"
<dionysus69> I opened up console I did the same and it output people without the "s"
PlasmaStar has quit [Ping timeout: 244 seconds]
<dionysus69> so which one is the correct? :D is pluralize method built on "correct" english language principles and if yes why has it changed?
xall has joined #ruby
rajdesai has joined #ruby
ben__ has joined #ruby
xall_ has quit [Ping timeout: 245 seconds]
ben__ has quit [Remote host closed the connection]
ben__ has joined #ruby
<SeepingN> it depends on how you are using the word
<SeepingN> there are lots of people at this meeting
PlasmaStar has joined #ruby
<SeepingN> Africa is home to many peoples of various descent.
<dionysus69> yes I understand, I have seen uses of peoples in historical texts etc but why does rails console pluralize method output two different results
<SeepingN> oh I see. intereseting
<dionysus69> what does it output for you?
<SeepingN> irb(main):001:0> "people".pluralize
<SeepingN> => "people"
PlasmaStar has quit [Excess Flood]
helpa has quit [Write error: Broken pipe]
eez77 has quit [Ping timeout: 287 seconds]
helpa-bot has joined #ruby
matp has quit [Excess Flood]
<dionysus69> NoMethodError: undefined method `pluralize' for "people":String
<dionysus69> getting error in IRB
<dionysus69> I was able to check in rails console
<eam> dionysus69: it's part of rails, not ruby
<sparch> this is helper from rails, not part of ruby
PlasmaStar has joined #ruby
<dionysus69> oh I thought it would be part of ruby :D my bad
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.5]
cdg has quit [Remote host closed the connection]
mrwn has joined #ruby
njs126 has joined #ruby
Salve has joined #ruby
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ChiefAlexander has quit [Remote host closed the connection]
Cohedrin has joined #ruby
govg has quit [Quit: leaving]
govg has joined #ruby
troulouliou_dev has joined #ruby
Joel has left #ruby ["Leaving"]
nonnatus has joined #ruby
nankyokusei has joined #ruby
benlieb has joined #ruby
claudiuinberlin has joined #ruby
ChiefAlexander has joined #ruby
jackjackdripper has joined #ruby
hahuang65 has joined #ruby
banisterfiend has joined #ruby
frankiee_ has quit [Quit: leaving]
agit0 has joined #ruby
blob_ is now known as blob
blob is now known as fatbob
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper1 has joined #ruby
mweshi has joined #ruby
ace05 has joined #ruby
lenwood has quit [Quit: Konversation terminated!]
lenwood has joined #ruby
smlocal has joined #ruby
Guest74211 has quit [Ping timeout: 260 seconds]
jackjackdripper1 has quit [Client Quit]
zeroDi has joined #ruby
pur33val has joined #ruby
eez77 has joined #ruby
eez77 has quit [Max SendQ exceeded]
<pur33val> hi, does anyone know if theres a way to override the {} method in ruby to have custom order?
eez77 has joined #ruby
ace05 has quit [Ping timeout: 250 seconds]
mweshi has quit [Quit: Gone fishing!]
jackjackdripper has joined #ruby
lenwood has quit [Ping timeout: 250 seconds]
dojo2 has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
xall_ has joined #ruby
xall has quit [Ping timeout: 245 seconds]
allomov has joined #ruby
AlexRussia has quit [Read error: error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac]
tlaxkit has quit [Quit: tlaxkit]
cibs has quit [Ping timeout: 268 seconds]
cibs has joined #ruby
allomov has quit [Remote host closed the connection]
bocaneri has quit [Read error: Connection reset by peer]
elenatanasoiu has joined #ruby
JeanCarloMachado has quit [Ping timeout: 250 seconds]
pragmaticus has quit [Remote host closed the connection]
dojo2 has quit [Ping timeout: 250 seconds]
<heftig> pur33val: the what method?
jenrzzz has joined #ruby
Jackneill_ has joined #ruby
nankyokusei has quit [Remote host closed the connection]
eez77 has quit [Ping timeout: 245 seconds]
AlexRussia has joined #ruby
JeanCarloMachado has joined #ruby
<atmosx> Are there any practical advantages using puma/thin/unicorn over standard rack (webrick) for ruby web apps when they're behind a rev-proxy? Except say obvious staff (e.g.puma concurrency model).
mrwn has quit [Ping timeout: 260 seconds]
whathappens has quit [Read error: Connection reset by peer]
<Papierkorb> websocket support, also webrick was always slower for me for any work load
xall has joined #ruby
<Papierkorb> and using puma or thin is so easy...
AlexRussia has quit [Ping timeout: 244 seconds]
whathappens has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
lenwood has joined #ruby
xall_ has quit [Ping timeout: 250 seconds]
Dohplay has quit [Read error: Connection reset by peer]
<atmosx> Papierkorb: so speed, concurrency, cleaner interface (start/stop/status report)
<atmosx> in the case of then we have event-driven I/O IIRC
splud_ is now known as splud
chouhoulis has joined #ruby
TomyLobo has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<Papierkorb> I don't use the cli interface stuff. systemd takes care of that for me
<atmosx> + long connection support without a reverse proxy
<havenwood> atmosx: hot restarts, less memory at load, not crashing with normal use, streaming, etc
eez77 has joined #ruby
<atmosx> great havenwood Papierkorb thanks!
markkhosla has joined #ruby
chouhoulis has joined #ruby
markkhosla has quit [Client Quit]
<pur33val> heftig: i was referring to hashes. i was looking for a way to monkey patch the hash class. here is how: http://stackoverflow.com/questions/17927558/monkey-patching-rubys-hash-class
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
roamingdog has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
ruby-lang214 has joined #ruby
matp has joined #ruby
whathappens has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
eez77 has quit [Ping timeout: 250 seconds]
roamingdog has quit [Remote host closed the connection]
polyidus has joined #ruby
whathappens has joined #ruby
roamingdog has joined #ruby
JeanCarloMachado has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
<ruby-lang214> why is there a difference in what each variable gets in these assignments?
Rodya_ has quit [Ping timeout: 256 seconds]
<ruby-lang214> a, b = nil
<ruby-lang214> a, b = 0
<ruby-lang214> a, b = []
roamingdog has joined #ruby
AlexRussia has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
<SeepingN> ..because you assigned them different things?
roamingdog has quit [Remote host closed the connection]
xall_ has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
<ruby-lang214> i mean, in the first case, both variables get nil. in the second case, a = 0 and b = nil. in the third case, each variable gets nil
elenatanasoiu has quit [Ping timeout: 244 seconds]
xall has quit [Ping timeout: 250 seconds]
machinewar has joined #ruby
<machinewar> could log writing considerably slow down my app? i.e. logging a 30mb string?
<SeepingN> how could it not?
eez77 has joined #ruby
<SeepingN> esp if it's writing to a spinning hard drive
<SeepingN> or network
<machinewar> SeepingN: good question haha I think i just found a performance bottle neck that I didn't think about before and its my logging
[0x1a] has quit [Quit: Connection closed for inactivity]
<machinewar> you're totally right
<SeepingN> and double especailly if it's a blocking write. ie: it waits for the write to finish vs forking that off to a process to finish by itself
brendan- has joined #ruby
crdpink has quit [Quit: Konversation terminated!]
<machinewar> yea definitely
eez771 has joined #ruby
rcvalle has joined #ruby
eez77 has quit [Read error: Connection reset by peer]
jtd has joined #ruby
crdpink has joined #ruby
<lacour> ruby-lang214, because that's how multiple assignment works. You still need multiple right-hand variables. See: https://www.safaribooksonline.com/library/view/the-ruby-programming/9780596516178/ch04s05.html
vuoto has quit [Remote host closed the connection]
eez771 has quit [Ping timeout: 260 seconds]
matp has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
SCHAAP137 has quit [Ping timeout: 260 seconds]
chouhou__ has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.5]
hahuang65 has joined #ruby
crdpink has quit [Quit: Konversation terminated!]
yardenbar has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
eez77 has joined #ruby
rajdesai has quit [Remote host closed the connection]
crdpink has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
<lacour> >> a, b = []; c, d = 0; e, f = [1, 2]; [a, b, c, d, e, f]
<ruby[bot]> lacour: # => [nil, nil, 0, nil, 1, 2] (https://eval.in/666313)
ace05 has joined #ruby
claudiuinberlin has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
<sparch> nice
eez771 has joined #ruby
eez77 has quit [Client Quit]
<sparch> >> 0.2 + 0.3
<ruby[bot]> sparch: # => 0.5 (https://eval.in/666319)
DonDS has joined #ruby
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
bluOxigen has joined #ruby
mrwn has joined #ruby
xall_ has quit [Ping timeout: 245 seconds]
<DonDS> good evening, i tried ruby some years ago and liked it. but due tho i am not a programming type i forgot almost all of my skills. therefore i have a rather simple question: I wan
ruby-lang214 has quit [Ping timeout: 260 seconds]
<DonDS> want to make array[lenght] whereas it gives me array[0,1,2,3,......,lenghth]. Is there some elegant way to do that?
xall_ has joined #ruby
<SeepingN> a[0..len]
banisterfiend has joined #ruby
<al2o3-cr> don't forget to splat :)
<DonDS> SeepingN: Am i understanding right that a[0..3] gives me [0,1,2,3]?
yardenbar has quit [Ping timeout: 256 seconds]
<djellemah> >> [*0..3]
<ruby[bot]> djellemah: # => [0, 1, 2, 3] (https://eval.in/666325)
<djellemah> >> Array.new(3){|i| i}
<ruby[bot]> djellemah: # => [0, 1, 2] (https://eval.in/666326)
aeterne has joined #ruby
chadwtaylor has quit [Remote host closed the connection]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
<DonDS> wow, thats really cool!
kobain has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<DonDS> the more i understand the more i like
chadwtaylor has joined #ruby
tdy has quit [Ping timeout: 250 seconds]
<DonDS> sorry for not having much time, but thank you so much lot.
<djellemah> It's rare to need to create an array of a specific size though. Most likely, what you're looking for will be in Enumerable. Which is included in Array.
<DonDS> karma++ @ SeepingN, djellemah, al2o3-cr
<DonDS> will be back another time when therefore i have more time. roby rocks!
<DonDS> have a nice day!
Blueby has quit [Ping timeout: 245 seconds]
DonDS has quit [Quit: /aWay keyboard won't register a keystroke]
ben__ has quit [Remote host closed the connection]
brendan- has joined #ruby
chadwtaylor has quit [Ping timeout: 256 seconds]
rontec76 has joined #ruby
yardenbar has joined #ruby
xall has joined #ruby
xall_ has quit [Ping timeout: 256 seconds]
whathappens has quit [Read error: Connection reset by peer]
SCHAAP137 has joined #ruby
miqlas-H has joined #ruby
whathappens has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
aeterne has quit [Ping timeout: 260 seconds]
<atmosx> who's roby?
pawnbox has quit [Remote host closed the connection]
ben__ has joined #ruby
DLSteve has joined #ruby
sepp2k has quit [Quit: Leaving.]
conta has quit [Ping timeout: 260 seconds]
<sparch> I think it was a typo for ruby
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
uranellus has joined #ruby
uranellus has joined #ruby
uranellus has quit [Changing host]
yardenbar has quit [Ping timeout: 244 seconds]
magellanicloud has joined #ruby
chadwtaylor has joined #ruby
Snowy has joined #ruby
ur5us has joined #ruby
xall_ has joined #ruby
fergal has joined #ruby
startupality has quit [Quit: startupality]
whathappens has quit [Read error: Connection reset by peer]
sparch has quit [Quit: escrevi e saí correndo pau no cu de quem está lendo]
elenatanasoiu has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
whathappens has joined #ruby
xall has quit [Ping timeout: 245 seconds]
pokalyis has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
brendan- has joined #ruby
rontec76 has quit [Ping timeout: 250 seconds]
gusrub has quit [Remote host closed the connection]
johnmilton has quit [Remote host closed the connection]
polyidus has quit [Quit: ZZZzzz…]
eez771 has quit [Ping timeout: 252 seconds]
eez77 has joined #ruby
eez77 has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
chouhou__ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
MichaeK has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<MichaeK> Hi, I have a function `lambda{|x| puts JSON.pretty_generate(x.as_json) }`. Is there a way for me to define it so it can be called like `obj.my_func`?
djbkd has quit [Ping timeout: 250 seconds]
lenwood has quit [Ping timeout: 260 seconds]
Dohplay has joined #ruby
gusrub has joined #ruby
brendan- has joined #ruby
symm- has joined #ruby
jackjackdripper has joined #ruby
xall_ has quit [Ping timeout: 256 seconds]
LambdaSix has quit [Ping timeout: 256 seconds]
LambdaSix has joined #ruby
matp has joined #ruby
Dimik has joined #ruby
roamingdog has joined #ruby
polyidus has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
cdg has joined #ruby
biberu has quit []
<djellemah> MichaeK: def obj.my_func; puts JSON.pretty_generate(as_json) end # singleton method, which has some consequences
jackjackdripper has joined #ruby
johnmilton has joined #ruby
xall_ has joined #ruby
skweek has joined #ruby
sepp2k has joined #ruby
Rodya_ has joined #ruby
<MichaeK> djellemah: like what?
Rodya_ has quit [Ping timeout: 245 seconds]
roamingdog has quit [Remote host closed the connection]
csk has joined #ruby
Rodya_ has joined #ruby
Derperperd has quit [Quit: Derperperd]
eelster has joined #ruby
djbkd has joined #ruby
eelster has left #ruby [#ruby]
roamingdog has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
pur33val has quit [Quit: Page closed]
whathappens has joined #ruby
JeanCarloMachado has quit [Ping timeout: 276 seconds]
ldnunes has quit [Quit: Leaving]
howdoi has quit [Quit: Connection closed for inactivity]
rontec76 has joined #ruby
polyidus has quit [Quit: ZZZzzz…]
Rafcio has joined #ruby
<Rafcio> hey guys aws s3 questions here.. not sure if anyone here can help, but is there a way to make old public files set to private ?
dojo2_ has joined #ruby
polyidus has joined #ruby
<djellemah> MichaeK: It will generate a singleton class (aka eigenclass) for obj if there isn't one already. It will make obj not Marshal-able. IIRC it will also clear the method cache for obj.
roamingdog has quit [Remote host closed the connection]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
<Papierkorb> ?crosspost
<ruby[bot]> Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
<Papierkorb> ?crosspost Rafcio
<ruby[bot]> Rafcio: Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
<Rafcio> sorry guys just looking for help
gusrub has quit [Remote host closed the connection]
DrCode has quit [Ping timeout: 256 seconds]
nankyokusei has joined #ruby
Salve has quit []
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
brendan- has joined #ruby
tyang has quit [Quit: Leaving]
nankyokusei has quit [Ping timeout: 260 seconds]
peaches is now known as note
tubuliferous has joined #ruby
pibby has quit [Quit: leaving]
note is now known as naughtynote
pibby has joined #ruby
dnicole has quit [Remote host closed the connection]
ace05 has quit [Ping timeout: 256 seconds]
naughtynote is now known as notes
DrCode has joined #ruby
kafloopascope has joined #ruby
ace05 has joined #ruby
pibby has quit [Client Quit]
rontec76 has quit [Remote host closed the connection]
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
rontec76 has joined #ruby
dojo2_ has quit [Remote host closed the connection]
pibby has joined #ruby
pibby has quit [Client Quit]
bweston92 has joined #ruby
roamingdog has joined #ruby
claudiuinberlin has quit []
pibby has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
brendan- has joined #ruby
polyidus has quit [Quit: ZZZzzz…]
roamingdog has quit [Remote host closed the connection]
jphase_ has joined #ruby
jphase has quit [Ping timeout: 252 seconds]
jphase_ has quit [Ping timeout: 260 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
nettoweb1 has quit [Ping timeout: 252 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
polyidus has joined #ruby
brendan- has joined #ruby
llaine has quit [Ping timeout: 260 seconds]
inra has joined #ruby
alibby has quit [Ping timeout: 252 seconds]
palms has quit [Quit: Leaving]
tdy has joined #ruby
palms has joined #ruby
nettoweb has quit [Ping timeout: 244 seconds]
sagax has joined #ruby
inra has quit [Remote host closed the connection]
nettoweb has joined #ruby
Pupeno has quit [Remote host closed the connection]
dionysus69 has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
dionysus69 has joined #ruby
djbkd has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Rafcio has quit [Quit: Rafcio]
jenrzzz has joined #ruby
brendan- has joined #ruby
jphase has joined #ruby
djbkd has quit [Ping timeout: 252 seconds]
snath has joined #ruby
snath has left #ruby [#ruby]
chadwtaylor has quit [Remote host closed the connection]
chadwtaylor has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
weaksauce has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
Jackneill_ has quit [Remote host closed the connection]
Snowy has joined #ruby
Hiro` has joined #ruby
chadwtaylor has quit [Ping timeout: 260 seconds]
gingray has quit [Ping timeout: 245 seconds]
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
polyidus has quit [Quit: ZZZzzz…]
whathappens has quit [Client Quit]
firstdayonthejob has joined #ruby
magellanicloud has quit [Quit: Leaving]
Rodya_ has quit [Ping timeout: 256 seconds]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
djbkd has joined #ruby
hahuang65 has quit [Ping timeout: 252 seconds]
gusrub has joined #ruby
Bellthoven has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
ben__ has quit [Remote host closed the connection]
palms has quit [Ping timeout: 250 seconds]
roamingdog has joined #ruby
NeverTired has joined #ruby
mrwn has quit [Ping timeout: 260 seconds]
tubuliferous has quit [Ping timeout: 260 seconds]
gusrub__ has joined #ruby
workmad3 has joined #ruby
roamingdog has quit [Remote host closed the connection]
moei has quit [Quit: Leaving...]
dnicole has joined #ruby
MichaeK has quit [Quit: Page closed]
gusrub has quit [Ping timeout: 250 seconds]
dinoangelov has joined #ruby
gusrub__ has quit [Ping timeout: 276 seconds]
freeze_ is now known as freeze
kafloopascope has left #ruby ["Leaving"]
workmad3_ has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
dnicole has quit [Ping timeout: 260 seconds]
bob434 has quit [Quit: This computer has gone to sleep]
dionysus69 has quit [Ping timeout: 250 seconds]
bob434 has joined #ruby
bauruine has quit [Read error: Connection reset by peer]
dinoangelov has quit [Quit: (null)]
nettoweb1 has joined #ruby
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nettoweb has quit [Ping timeout: 252 seconds]
gusrub has joined #ruby
bruce_lee has quit [Read error: Connection reset by peer]
danmcguire has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
<danmcguire> I know I can just use `inject` but why doesn't `[1,2,3].each_with_object(0) {|o,i| o += i}` return 6?
bauruine has joined #ruby
<danmcguire> is it because += doesn't actually mutate the object in place?
<SeepingN> √
gusrub has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
hanshenrik has joined #ruby
hanshenrik has left #ruby ["Leaving"]
elenatanasoiu has quit [Ping timeout: 250 seconds]
chouhoulis has quit []
shinnya has quit [Ping timeout: 245 seconds]
roamingdog has joined #ruby
machinewar has quit [Ping timeout: 245 seconds]
xall has joined #ruby
inra has joined #ruby
chouhoulis has joined #ruby
hutch34 has joined #ruby
xall_ has quit [Ping timeout: 250 seconds]
bauruine has quit [Quit: ZNC - http://znc.in]
malconis has quit [Read error: Connection reset by peer]
nonnatus has joined #ruby
bauruine has joined #ruby
<fergal> hi guys, i have the following code: https://gist.github.com/anonymous/33c570e19c259919fad491e8a7a2dfcc can someone explain to me whats happening here? are “program” and “command” hashes? is it possible to invoke the “second” command from within the “init” command?
dasher00 has quit [Ping timeout: 260 seconds]
pokalyis has quit [Read error: Connection reset by peer]
rontec76 has quit [Remote host closed the connection]
pokalyis has joined #ruby
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anuxivm has joined #ruby
tubuliferous has joined #ruby
nettoweb has joined #ruby
Derperperd has joined #ruby
nettoweb1 has quit [Ping timeout: 276 seconds]
dionysus69 has quit [Ping timeout: 256 seconds]
bauruine has quit [Quit: ZNC - http://znc.in]
pokalyis has quit [Read error: Connection reset by peer]
bauruine has joined #ruby
rontec76 has joined #ruby
pokalyis has joined #ruby
rontec76_ has joined #ruby
<Radar> fergal: they're methods, not hashes. The methods are defined by the require 'commander/import' line
<Radar> I don't know how to invoke the second argument.
<Radar> second command*
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rontec76_ has quit [Remote host closed the connection]
inra has quit [Quit: Leaving]
rontec76_ has joined #ruby
workmad3_ has quit [Ping timeout: 260 seconds]
Derperperd has quit [Quit: Derperperd]
rontec76 has quit [Ping timeout: 250 seconds]
Pupeno has joined #ruby
dasher00 has joined #ruby
pokalyis has quit [Quit: Textual IRC Client: www.textualapp.com]
Pazzaz has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
rontec76_ has quit []
marr has joined #ruby
startupality has joined #ruby
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
Pazzaz has quit [Quit: Leaving]
jackjackdripper has quit [Quit: Leaving.]
ChiefAlexander has quit [Remote host closed the connection]
Pazzaz has joined #ruby
gusrub has joined #ruby
Snowy has quit [Ping timeout: 244 seconds]
nankyokusei has joined #ruby
roamingdog has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 250 seconds]
Pazzaz has quit [Remote host closed the connection]
jcao219 has joined #ruby
Pazzaz has joined #ruby
Xeago has joined #ruby
Trynemjoel2 has quit [Ping timeout: 246 seconds]
gusrub has quit [Ping timeout: 245 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
tubuliferous has quit [Ping timeout: 260 seconds]
saslam has quit [Ping timeout: 260 seconds]
davixx has joined #ruby
davix has quit [Disconnected by services]
davixx is now known as davix
davix1 has joined #ruby
elenatanasoiu has joined #ruby
dnicole has joined #ruby
Trynemjoel has joined #ruby
gusrub has joined #ruby
moei has joined #ruby
mikeiniowa has joined #ruby
brendan- has joined #ruby
chadwtaylor has joined #ruby
ace05 has quit [Remote host closed the connection]
<davix> I have a predefined list (list = {"a" => "x", "b" => "y"} etc) I have defined a Class, and in this class i have initialized two variables (to represent list name and key). now I would like to call a method from this function to act on each item in this least with .each. how can I do it? http://pastebin.com/emaZySbz
<ruby[bot]> davix: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/7f60b90f93139eb723e2639c22b416fa
ResidentBiscuit has joined #ruby
<ruby[bot]> davix: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
dnicole has quit [Ping timeout: 260 seconds]
<davix> sorry bot sir, I will comply
<manveru> don't bother :)
elenatanasoiu has quit [Ping timeout: 252 seconds]
<manveru> irccloud helpfully displays your code without me having to go there
<manveru> still annoying bot
<manveru> davix: you won't see local variables from inside your listunderfive method
<manveru> you can either pass animal_index to it, or you can define it as a constant on your class
<davix> so I need to load the list from my class first? or assign it to an object within the class?
masterasia has quit [Ping timeout: 256 seconds]
<manveru> it's not in your class yet
<manveru> so yes, it somehow has to get there
<davix> I will take care of it now, thanks for that
ace05 has joined #ruby
masterasia has joined #ruby
alexherbo2 has quit [Ping timeout: 250 seconds]
<manveru> animals = animal_index.map{|name, color| Animal.new(name, color) }.each{|animal| puts "#{animal.name} is too small" if animal.name.size < 5 }
cibs has quit [Ping timeout: 268 seconds]
<manveru> something like this is also fun
<manveru> just to learn a bit about how ruby does iteration
Pazzaz has quit [Read error: Connection reset by peer]
cibs has joined #ruby
nexocentric_ has joined #ruby
<davix> yes that's exactly what I am doing, thanks manveru
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
mrwn has joined #ruby
nexocentric__ has quit [Ping timeout: 250 seconds]
firstdayonthejob has quit [Ping timeout: 250 seconds]
lel has joined #ruby
chopin has quit [Remote host closed the connection]
chopin has joined #ruby
Rodya_ has joined #ruby
irisseries has quit [Quit: Lost terminal]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
quazimodo has joined #ruby
cschneid_ has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
SeepingN has quit [Ping timeout: 256 seconds]
chopin has quit [Ping timeout: 276 seconds]
vktec has quit [Ping timeout: 245 seconds]
wldcordeiro has quit [Ping timeout: 250 seconds]
SeepingN has joined #ruby
Rodya__ has joined #ruby
roamingdog has joined #ruby
vktec has joined #ruby
jackjackdripper has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
Rodya_ has quit [Ping timeout: 260 seconds]
chouhoul_ has joined #ruby
ebbflowgo has joined #ruby
Pupeno has quit [Remote host closed the connection]
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
abernstein has quit [Quit: abernstein]
Rodya__ has quit [Ping timeout: 260 seconds]
BriCursi1n has quit [Read error: Connection reset by peer]
chouhoulis has quit [Ping timeout: 244 seconds]
Immune has quit [Quit: ZzzZZZzzzz]
chouhoul_ has quit [Ping timeout: 276 seconds]
mhsjlw has quit [Quit: ZNC 1.6.3 - http://znc.in]
rkazak has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
railssmith has joined #ruby
riskish has joined #ruby
bongobrown has joined #ruby
Bellthoven has quit []
mim1k|wo1k has joined #ruby
anuxivm has left #ruby [#ruby]
Rodya_ has joined #ruby
mim1k|work has quit [Ping timeout: 256 seconds]
roamingdog has quit [Remote host closed the connection]
polishdub has quit [Quit: Leaving]
chadwtaylor has quit [Remote host closed the connection]
irisseries has joined #ruby
chadwtaylor has joined #ruby
roamingdog has joined #ruby
threh has joined #ruby
hutch34 has joined #ruby
davix has quit [Quit: WeeChat 1.6]
xall has quit [Ping timeout: 256 seconds]
chadwtaylor has quit [Remote host closed the connection]
cloaked1 has quit [Read error: Connection reset by peer]
ChiefAlexander has joined #ruby
dnicole has joined #ruby
cloaked1 has joined #ruby
wldcordeiro has joined #ruby
nettoweb has quit [Ping timeout: 244 seconds]
nettoweb has joined #ruby
agent_white has quit [Quit: Lost terminal]
dnicole has quit [Ping timeout: 256 seconds]
rcvalle has quit [Quit: rcvalle]
wldcordeiro has quit [Client Quit]
wldcordeiro has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
tubuliferous has joined #ruby
Bellthoven has joined #ruby
geo_ has joined #ruby
chadwtaylor has joined #ruby
nettoweb1 has joined #ruby
nettoweb has quit [Ping timeout: 256 seconds]
renderful has quit [Remote host closed the connection]
gizmore has quit [Ping timeout: 245 seconds]
xall has joined #ruby
xall has quit [Excess Flood]
gizmore has joined #ruby
purr is now known as ELLIOTTCABLE
xall has joined #ruby
nonnatus has joined #ruby
jerikl has joined #ruby
ICantCook has quit [Quit: bye]
xall has quit [Read error: Connection reset by peer]
ben______ has joined #ruby
<jerikl> Is anyone aware of a way to get the Nokogiri XML Builder to open and close an empty element in output vs. using an empty closed element? i.e. “<Location></Location>” instead of “<Location/>” (https://gist.github.com/langhorst/e4d504cdcc16cf75d93798eb3ca44bf2)
shinnya has joined #ruby
<jerikl> I believe older versions of Nokogiri would behave this way, but I’m not 100% on that.
smlocal has quit []
nettoweb1 has quit [Ping timeout: 260 seconds]
spt0 has quit [Ping timeout: 260 seconds]
Technodrome has joined #ruby
bweston92 has quit [Quit: Connection closed for inactivity]
mhb_ has quit [Ping timeout: 248 seconds]
nettoweb has joined #ruby
<al2o3-cr> jerikl: Nokogiri::XML::Builder.new { root { location { } } }.to_xml(save_with: Nokogiri::XML::Node::SaveOptions::NO_EMPTY_TAGS)