havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Can't talk? Register/identify with Nickserv first! || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quazimodo has quit [Ping timeout: 240 seconds]
Xiti has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
<EasyCo> beauby: Yah, pretty much what I was thinking. Thanks for validating my thoughts :)
ebragaparah has quit [Remote host closed the connection]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
iateadonut has quit [Quit: Leaving.]
charliesome has joined #ruby
bigmac has joined #ruby
karapetyan has joined #ruby
Liothen has quit [Quit: The Dogmatic Law of Shadowsong]
Liothen has joined #ruby
Liothen has joined #ruby
wldcordeiro has quit [Ping timeout: 244 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
petricore has quit [Ping timeout: 264 seconds]
karapetyan has quit [Ping timeout: 264 seconds]
scrlearner has joined #ruby
broconne has joined #ruby
rushed has joined #ruby
quazimodo has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
freerobby has joined #ruby
CanTonic has joined #ruby
yqt has quit [Ping timeout: 250 seconds]
asxbr has joined #ruby
bigmac has quit [Ping timeout: 240 seconds]
sanjayu has quit [Ping timeout: 240 seconds]
meatherly has joined #ruby
opensource_ninj1 has quit [Quit: opensource_ninj1]
pen has joined #ruby
benlovell has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
Azure|dc is now known as Azure
iamninja has joined #ruby
banjara has quit [Quit: Leaving.]
StevenNunez has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
marr has quit []
quazimodo has quit [Ping timeout: 272 seconds]
aaeron has joined #ruby
petricore has joined #ruby
<aaeron> I am trying to use socksproxy with post and multipart.
<aaeron> Not able to find any documentation
<aaeron> Using start functionality
jdgenes has joined #ruby
<aaeron> req = Net::HTTP.SOCKSProxy(@proxy_host,@proxy_port).start(uri.host, uri.port).post(uri.path)
<aaeron> req.set_form_data(data) unless data.empty?
<aaeron> Does that seem to be correct?
heinrich5991 has quit [Ping timeout: 244 seconds]
drewvanstone has quit [Ping timeout: 264 seconds]
willharrison has joined #ruby
rapha has quit [Ping timeout: 246 seconds]
jaredrhine has quit [Remote host closed the connection]
PaulePanter has quit [Ping timeout: 246 seconds]
jokke has quit [Ping timeout: 256 seconds]
jokke| is now known as jokke
doublemalt_ has joined #ruby
jokke1 has joined #ruby
Coraline has quit [Ping timeout: 255 seconds]
rapha has joined #ruby
heinrich5991 has joined #ruby
ledestin has joined #ruby
allcentury has joined #ruby
pragmatism has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bricker has quit [Ping timeout: 250 seconds]
PaulePanter has joined #ruby
jaredrhine has joined #ruby
stryek has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
params has quit [Ping timeout: 246 seconds]
Coraline has joined #ruby
stryek has joined #ruby
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
DoubleMalt has quit [Ping timeout: 265 seconds]
quazimodo has joined #ruby
Ropeney has joined #ruby
<aaeron> Socksproxy anyone?
bluntman has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 250 seconds]
swgillespie has joined #ruby
mleung has quit [Ping timeout: 252 seconds]
casadei has joined #ruby
<drbrain> I don't know about SOCKSProxy, but if you're setting the form data on a Post request object, use .start(…).request(your_post_object)
<aaeron> Is there an example u would be able to give?
UtkarshRay has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
casadei has quit [Ping timeout: 264 seconds]
<jordanm> I am getting an error "https://github.com/mitchellh/vagrant-spec.git (at master) is not yet checked out. Run `bundle install` first." with a rakefile that includes "require 'bundler/setup'", but I have ran bundle install successfully
<jordanm> I am using a locally configured path for bundler. Does anyone know what I am getting this error? https://gist.github.com/jmetzmeier/d6c2680701afa1d17853
microdex has joined #ruby
<drbrain> aaeron: the POST example following: http://docs.ruby-lang.org/en/2.2.0/Net/HTTP.html#class-Net::HTTP-label-Following+Redirection
tmtwd has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
hal_9000 has joined #ruby
mhenrixon has quit [Ping timeout: 265 seconds]
rezzack has quit [Quit: Leaving.]
tmtwd has joined #ruby
rezzack has joined #ruby
hal_9000__ has quit [Ping timeout: 250 seconds]
jdgenes has quit [Quit: leaving]
<jordanm> whoops, I just needed to use "bundle exec rake"
<aaeron> drbrain
Igorshp has joined #ruby
<aaeron> Looking for socks proxy
izzol_ has quit [Ping timeout: 246 seconds]
EmeraldExplorer has joined #ruby
izzol has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
bestbrents_ has joined #ruby
<drbrain> aaeron: I don't think the SOCKSProxy is documented
gustav_ has quit [Remote host closed the connection]
mhenrixon has joined #ruby
gustav_ has joined #ruby
gustav_ has quit [Remote host closed the connection]
<aaeron> Yeah. I found nothing for that
<drbrain> hrm, ruby doesn't have Net::HTTP::SOCKSProxy, is there a gem you installed?
gustav_ has joined #ruby
freerobby has joined #ruby
<microdex> is there an easy way to sort a dictionary ?
hydrozen has joined #ruby
drewvanstone has joined #ruby
<drbrain> microdex: like my_hash.sort ?
freerobby has quit [Client Quit]
<microdex> sorry I thought I was in the python room
joufflu has joined #ruby
freerobby has joined #ruby
Igorshp has quit [Ping timeout: 260 seconds]
hal_9000 has quit [Ping timeout: 240 seconds]
hal_9000_ has joined #ruby
bestbrents has quit [Ping timeout: 246 seconds]
mary5030 has joined #ruby
havenwood has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
siaw has left #ruby [#ruby]
pen has quit [Remote host closed the connection]
drewvanstone has quit [Ping timeout: 240 seconds]
gustav_ has quit [Ping timeout: 256 seconds]
michaeldeol has joined #ruby
rezzack has quit [Ping timeout: 240 seconds]
<aaeron> Yes
<aaeron> Have a gem
mattprelude has quit [Ping timeout: 265 seconds]
<aaeron> The problem is I want to use multipart with socks proxy
<aaeron> drbrain I tried start method.
<aaeron> But does not seem to work with multipart
meatherly has quit []
meatherly has joined #ruby
[k- has quit [Ping timeout: 240 seconds]
mkosaki has quit [Read error: Connection reset by peer]
<drbrain> ruboto: ?gist
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
<havenwood> ?gist aaeron
<ruboto> aaeron, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
jenrzzz has quit [Ping timeout: 240 seconds]
<drbrain> aaeron: show your code ↑
snockerton has quit [Quit: Leaving.]
xxneolithicxx has joined #ruby
rodferso1 has quit [Quit: leaving]
<aaeron> req = Net::HTTP.SOCKSProxy(@proxy_host,@proxy_port).start(uri.host, uri.port).post(uri.path)
<aaeron> req.set_form_data(data) unless data.empty?
<aaeron> drbrain
<aaeron> ruboto
<aaeron> havenwood
<havenwood> ?ruboto
<ruboto> I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
Pupeno has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<drbrain> aaeron: we can't work with that fragment, please paste a minimal reproduction of your problem into gis
<drbrain> gist
Rickmasta has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
ICantCook has quit [Quit: Leaving]
hagabaka has quit [Quit: No Ping reply in 180 seconds.]
hagabaka has joined #ruby
dopamean_ has joined #ruby
benlieb has joined #ruby
<aaeron> drbrain this is my code:
<aaeron> def http_post_with_proxy(uri, data)
<aaeron> req = Net::HTTP.SOCKSProxy(@proxy_host,@proxy_port).start(uri.host, uri.port).post(uri.path)
<aaeron> req.set_form_data(data) unless data.empty?
<aaeron> @connection.request(req)
<aaeron> end
<havenwood> ?flood aaeron
<ruboto> aaeron, Please use https://gist.github.com for more than three lines of text!
Pupeno has quit [Ping timeout: 250 seconds]
devoldmx has joined #ruby
<havenwood> ?gist_usage aaeron
<ruboto> aaeron, To properly use gist, please enable syntax highlighting, either by choosing the language manually or by entering a proper filename. If you post multiple things, separate them into multiple files. If you have a Github account, please update your gist with new information instead of posting a new one.
<aaeron> ok
<aaeron> cool
mwlang has quit [Ping timeout: 240 seconds]
<aaeron> drbrain
<aaeron> I tried to do what that post explains
devoldmx has quit [Ping timeout: 244 seconds]
<drbrain> I don't see where you create a separate POST object, then try to send it, as in the example: https://gist.github.com/drbrain/76c9833c7f88f623a70f
<drbrain> in your example, line 2 returns a response object, but you have `req =`
<drbrain> you need to create the request first
<drbrain> an line lines 1-3 of the POST example
<drbrain> an -> as in
maletor has quit [Quit: Computer has gone to sleep.]
swgillespie has joined #ruby
StevenNunez has quit [Remote host closed the connection]
Lucky__ has quit [Ping timeout: 250 seconds]
astrobunny has joined #ruby
arescorpio has joined #ruby
towski_ has quit [Remote host closed the connection]
symbol has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
ReK2 has quit [Ping timeout: 250 seconds]
<aaeron> drbrain
Travis-42 has joined #ruby
axl_ has joined #ruby
xcesariox has joined #ruby
axl_ has quit [Client Quit]
Musashi007 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
Spami has quit [Quit: This computer has gone to sleep]
tkuchiki has joined #ruby
MTGeni has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
evanjs_ has joined #ruby
<drbrain> aaeron: better, but you still can't set_form_data (line 6) after you've sent the request (line 5)
bronson has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
evanjs has quit [Ping timeout: 244 seconds]
mwlang has joined #ruby
giuseppesolinas has joined #ruby
casadei has joined #ruby
<aaeron> Oh.!
<aaeron> Let me try that.
<aaeron> I dint use the http object
reppard has joined #ruby
Marsupermammal has joined #ruby
cmisenas has joined #ruby
<Travis-42> would there be any reasonable way to have a method from a parent class, take on the scope of the classes that inherit it? as an example, https://gist.github.com/anonymous/020dc114301d9dcb4f53 ? Or am I likely thinking about this completely incorrectly?
bronson has quit [Ping timeout: 256 seconds]
moss has quit [Read error: No route to host]
cmisenas has quit [Client Quit]
nettoweb has joined #ruby
craysiii has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
moss has joined #ruby
bronson has joined #ruby
j4cknewt has joined #ruby
allcentury has quit [Ping timeout: 268 seconds]
unop has quit [Ping timeout: 240 seconds]
j4cknewt has quit [Remote host closed the connection]
willywos has joined #ruby
willywos has quit [Client Quit]
bronson has quit [Ping timeout: 240 seconds]
houhoulis has joined #ruby
freerobby has quit [Quit: Leaving.]
<mwlang> Travis-42: I commented on your gist with a solution: https://gist.github.com/anonymous/020dc114301d9dcb4f53
bluntman has joined #ruby
<mwlang> Travis-42: known as Ruby mixins: http://ruby-doc.com/docs/ProgrammingRuby/html/tut_modules.html
<Travis-42> ah mwlang, that makes sense. I see how the scope gets applied there, thank you
j4cknewt has joined #ruby
opensource_ninja has joined #ruby
solocshaw1 has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
[k- has joined #ruby
jesterfraud has joined #ruby
bigbadbear has quit [Ping timeout: 246 seconds]
mdih has joined #ruby
microdex has quit [Ping timeout: 264 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
solocshaw1 is now known as solocshaw
Technodrome has joined #ruby
gustav_ has joined #ruby
stardiviner has joined #ruby
ekain has joined #ruby
Yzguy has joined #ruby
ekain has quit [Client Quit]
evanjs has joined #ruby
gustav_ has quit [Ping timeout: 240 seconds]
Yzguy has quit [Client Quit]
Motoservo has joined #ruby
evanjs_ has quit [Ping timeout: 244 seconds]
otacon- has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
scoot has quit []
drewvanstone has joined #ruby
freerobby has quit [Client Quit]
CloCkWeRX has joined #ruby
weemsledeux has joined #ruby
tejasmanohar_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
Oka has quit [Quit: o/]
bruno- has joined #ruby
tejasmanohar has quit [Ping timeout: 265 seconds]
tejasmanohar_ is now known as tejasmanohar
paradisaeidae has joined #ruby
drewvanstone has quit [Ping timeout: 255 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
twistedpixels has joined #ruby
benlovell has joined #ruby
freerobby has joined #ruby
wildlander has quit [Quit: Saliendo]
drewvanstone has joined #ruby
xxneolithicxx has quit [Remote host closed the connection]
AccordLTN has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.3]
xxneolithicxx has joined #ruby
djbkd has quit [Remote host closed the connection]
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benlieb has quit [Quit: benlieb]
benlovell has quit [Ping timeout: 268 seconds]
qpls has joined #ruby
stardiviner has quit [Ping timeout: 252 seconds]
bluntman has quit [Ping timeout: 252 seconds]
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pwnd_nfsw has quit [Remote host closed the connection]
crdpink has quit [Quit: q term]
Yzguy has joined #ruby
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crdpink has joined #ruby
pwnd_nsfw has joined #ruby
vdamewood has quit [Ping timeout: 272 seconds]
Yzguy has quit [Client Quit]
Kallis has joined #ruby
evanjs_ has joined #ruby
drewvanstone has quit [Ping timeout: 255 seconds]
hahuang61 has joined #ruby
wookiehangover has quit [Ping timeout: 240 seconds]
evanjs has quit [Ping timeout: 244 seconds]
iateadonut has joined #ruby
ebragaparah has joined #ruby
astrobunny has quit [Remote host closed the connection]
dopie has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
benlieb has joined #ruby
Kallis has quit [Ping timeout: 260 seconds]
wookiehangover has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kallis has joined #ruby
broconne has quit [Quit: Leaving.]
Musashi007 has quit [Quit: Musashi007]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lemur is now known as baweaver
dasher00 has quit [Ping timeout: 256 seconds]
astrobunny has joined #ruby
reppard has left #ruby [#ruby]
pen has joined #ruby
drewvanstone has joined #ruby
fersur3 has quit [Remote host closed the connection]
Kallis has quit [Read error: Connection reset by peer]
shadoi has quit [Quit: Leaving.]
saddad has joined #ruby
rushed has quit [Quit: rushed]
astrobunny has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
Travis-42 has quit [Quit: Travis-42]
jenrzzz has quit [Ping timeout: 250 seconds]
UtkarshRay has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 244 seconds]
drewvanstone has quit [Ping timeout: 264 seconds]
rushed has joined #ruby
havenwood has joined #ruby
agent_meerkat has quit [Ping timeout: 246 seconds]
Yzguy has joined #ruby
darkf has joined #ruby
nym has quit [Quit: Connection closed for inactivity]
hahuang61 has quit [Quit: WeeChat 1.3]
bigmac has joined #ruby
dongerlord has joined #ruby
<dongerlord> ayy lmao
<dongerlord> Ruby is shit I like COBOL much more
gener1c_ has quit [Read error: Connection reset by peer]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dongerlord has left #ruby [#ruby]
stardiviner has joined #ruby
mwlang has quit [Quit: mwlang]
jimster has joined #ruby
rbennacer has joined #ruby
xcesariox has joined #ruby
braincrash has quit [Quit: bye bye]
astrobunny has joined #ruby
gener1c has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cheerio]
drewvanstone has joined #ruby
Pupeno has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
rbennacer has quit [Ping timeout: 244 seconds]
willywos has joined #ruby
hahuang61 has joined #ruby
KnownSyntax_ has quit [Changing host]
KnownSyntax_ has joined #ruby
braincrash has joined #ruby
KnownSyntax_ is now known as KnownSyntax
KnownSyntax has quit [Quit: Leaving]
KnownSyntax has joined #ruby
favadi has joined #ruby
banjara has joined #ruby
<baweaver> !mute dongerlord
Feyn has joined #ruby
karapetyan has joined #ruby
bluOxigen has joined #ruby
Pupeno has quit [Ping timeout: 240 seconds]
blueOxigen has quit [Ping timeout: 244 seconds]
devoldmx has joined #ruby
karapetyan has quit [Ping timeout: 268 seconds]
hal_9000__ has joined #ruby
scoot has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
hal_9000_ has quit [Ping timeout: 255 seconds]
<[k-> huehuehue dongerlord
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diegoviola is now known as Guest80502
diego1 is now known as diegoviola
willywos has quit [Quit: Textual IRC Client: www.textualapp.com]
aaeron has quit [Quit: Leaving.]
Guest80502 has quit [Ping timeout: 252 seconds]
craysiii has quit [Remote host closed the connection]
jesterfraud has joined #ruby
Blankenship has joined #ruby
devoldmx has joined #ruby
saddad has quit [Quit: WeeChat 1.4-dev]
n_blownapart has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
gix has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
robbyoconnor has quit [Ping timeout: 265 seconds]
j4cknewt has quit [Remote host closed the connection]
evanjs_ has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 260 seconds]
armyriad2 has joined #ruby
armyriad has quit [Disconnected by services]
armyriad2 is now known as armyriad
gix has joined #ruby
krz has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
tmtwd has quit [Ping timeout: 260 seconds]
ebragaparah has quit [Remote host closed the connection]
scripore has joined #ruby
yfeldblum has joined #ruby
phantummm has joined #ruby
codecop has joined #ruby
robbyoconnor has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
gustav_ has joined #ruby
bronson has joined #ruby
drewvanstone has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
phantummm has quit [Quit: WeeChat 1.3]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
gustav_ has quit [Ping timeout: 264 seconds]
bronson has quit [Ping timeout: 244 seconds]
devoldmx has quit [Remote host closed the connection]
<Sou|cutter> how does rom-rb devtools work?
<Sou|cutter> looking at a project that uses it, there's a somewhat extensive but out-of-date Gemfile.devtools
<Sou|cutter> I'm wondering if that's a generated file, or what
Igorshp has joined #ruby
<Sou|cutter> ehh nevermind, I'm thinking not
aaeron has joined #ruby
Igorshp has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
aaeron1 has joined #ruby
benlovell has joined #ruby
aaeron has quit [Ping timeout: 244 seconds]
[k- has quit [Ping timeout: 255 seconds]
Yzguy has quit [Quit: Zzz...]
RegulationD has quit [Ping timeout: 268 seconds]
[k- has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
benlovell has quit [Ping timeout: 240 seconds]
BTRE has quit [Quit: Leaving]
ndrei has joined #ruby
swgillespie has joined #ruby
scoot has quit [Remote host closed the connection]
zenguy_pc has quit [Ping timeout: 265 seconds]
swgillespie has quit [Max SendQ exceeded]
amystephen has quit [Quit: amystephen]
swgillespie has joined #ruby
drewvanstone has joined #ruby
paradisaeidae has quit [Ping timeout: 264 seconds]
scoot has joined #ruby
asxbr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
benlieb has quit [Quit: benlieb]
ndrei has quit [Ping timeout: 260 seconds]
<agent_white> Evenin'
hfp_work has quit [Ping timeout: 268 seconds]
<[k-> ?ugt
Luming has quit [Ping timeout: 255 seconds]
Luming has joined #ruby
Macaveli has joined #ruby
Macaveli has quit [Client Quit]
krz has quit [Ping timeout: 256 seconds]
Guest65 has joined #ruby
Cork has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
BTRE has joined #ruby
GeissT has joined #ruby
jt__ has joined #ruby
tmtwd has joined #ruby
hahuang61 has joined #ruby
ankov has joined #ruby
ankov has quit [Read error: Connection reset by peer]
Cork has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
ddrmanxbxfr has joined #ruby
sdothum has joined #ruby
ankov has joined #ruby
ankov has quit [Remote host closed the connection]
krz has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
sanjayu has joined #ruby
solocshaw1 has joined #ruby
paradisaeidae has joined #ruby
solocshaw has quit [Read error: Connection reset by peer]
solocshaw1 is now known as solocshaw
ankov has joined #ruby
ankov has quit [Remote host closed the connection]
ankov has joined #ruby
ankov has quit [Remote host closed the connection]
bb010g has joined #ruby
maletor has joined #ruby
<agent_white> I know I know. :P
maletor has quit [Remote host closed the connection]
bronson has joined #ruby
psy_ has quit [Ping timeout: 240 seconds]
podman has quit [Quit: Connection closed for inactivity]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 240 seconds]
j4cknewt has joined #ruby
aaeron1 has quit [Quit: Leaving.]
bronson has quit [Ping timeout: 256 seconds]
Igorshp has joined #ruby
rezzack has joined #ruby
psy_ has joined #ruby
scoot has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 268 seconds]
<baweaver> !mute flavouredfags
nahtnam has joined #ruby
davedev24 has quit [Remote host closed the connection]
Igorshp has quit [Ping timeout: 244 seconds]
davedev24 has joined #ruby
Asher has quit [Quit: Leaving.]
Rickmasta has joined #ruby
ndrei has joined #ruby
Asher has joined #ruby
howdoi has joined #ruby
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev24 has quit [Ping timeout: 240 seconds]
mwlang has joined #ruby
CanTonic has quit [Remote host closed the connection]
bluntman has joined #ruby
jenrzzz has joined #ruby
scrlearner has quit [Ping timeout: 246 seconds]
gurix has joined #ruby
jesterfraud has joined #ruby
ndrei has quit [Ping timeout: 268 seconds]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
workmad3 has joined #ruby
dhjondoh has joined #ruby
The_Phoenix has joined #ruby
tmtwd has quit [Ping timeout: 240 seconds]
gustav_ has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
jenrzzz has quit [Ping timeout: 240 seconds]
allomov has joined #ruby
lagrangi-wan has quit [Quit: F...ix you, Emacs.]
workmad3 has quit [Ping timeout: 264 seconds]
devbug has joined #ruby
gustav_ has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
waxjar has quit [Ping timeout: 246 seconds]
bf4_ has quit [Ping timeout: 246 seconds]
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 40.0.3/20150826023504]]
jesterfraud has joined #ruby
amystephen has joined #ruby
sivoais has quit [Ping timeout: 256 seconds]
ReK2 has joined #ruby
ReK2 has joined #ruby
sivoais has joined #ruby
djbkd has quit [Ping timeout: 250 seconds]
waxjar has joined #ruby
bf4 has joined #ruby
scoot has joined #ruby
rezzack has quit [Quit: Leaving.]
pontiki has quit [Ping timeout: 250 seconds]
karapetyan has quit [Ping timeout: 246 seconds]
rezzack has joined #ruby
tagrudev has joined #ruby
yfeldblum has joined #ruby
freerobby has quit [Quit: Leaving.]
scoot has quit [Ping timeout: 240 seconds]
allomov has quit [Remote host closed the connection]
casadei has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
yfeldblum has quit [Read error: Connection reset by peer]
scripore has quit [Quit: This computer has gone to sleep]
yfeldblum has joined #ruby
astrobunny has joined #ruby
sivoais has quit [Ping timeout: 264 seconds]
nolic has joined #ruby
tejasmanohar_ has joined #ruby
sivoais has joined #ruby
scoot has joined #ruby
jenrzzz has joined #ruby
michaeldeol has joined #ruby
r0x0rZ has joined #ruby
tejasmanohar has quit [Ping timeout: 246 seconds]
tejasmanohar_ is now known as tejasmanohar
meatherly has quit []
scripore has joined #ruby
drewvanstone has quit [Ping timeout: 256 seconds]
sivoais has quit [Ping timeout: 246 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moeabdol has quit [Ping timeout: 265 seconds]
sivoais has joined #ruby
rushed has quit [Quit: rushed]
TomyLobo has joined #ruby
allomov has joined #ruby
opensource_ninja has quit [Quit: opensource_ninja]
Technodrome has quit [Quit: Technodrome]
nofxx has quit [Ping timeout: 264 seconds]
SOLDIERz has joined #ruby
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
j4cknewt_ has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
j4cknewt_ has quit [Remote host closed the connection]
<apeiros> baweaver: aren't A, B C on 1 and other letters on the 0?
<baweaver> miiiight have stole this one from Tesla
<apeiros> hm, actually it seems that ABC is on 2
<baweaver> verbatim, I tend to hunt about Glassdoor for interesting problems
arescorpio has quit [Quit: Leaving.]
<baweaver> I don't have an old enough phone to know anymore
j4cknewt has quit [Ping timeout: 240 seconds]
<[k-> %w[ABC DEF GHI JKL MNO PQRS TUV WXYZ].map(&:chars)
<[k-> let's golf this one
<apeiros> baweaver: I searched google images :)
<baweaver> that too
rushed has joined #ruby
araujo_ has quit [Quit: Leaving]
RegulationD has joined #ruby
alexUaN has quit [Quit: alexUaN]
ta has quit [Remote host closed the connection]
<baweaver> very well
* baweaver looks for signs of Ox0dea
<baweaver> >>l=%w[ABC DEF GHI JKL MNO PQRS TUV WXYZ].map(&:chars);->*ns{h,*t=ns.map{|n|l[n-2]};h.product(*t).map{|v|v*''}}[2,3]
<ruboto> baweaver # => ["AD", "AE", "AF", "BD", "BE", "BF", "CD", "CE", "CF"] (https://eval.in/438734)
araujo has joined #ruby
<baweaver> 114
araujo has quit [Max SendQ exceeded]
<[k-> mind boggling
rattatmatt has joined #ruby
<baweaver> 111 now
yardenbar has joined #ruby
araujo has joined #ruby
mondayrain has joined #ruby
<apeiros> map(&:join) < map{|v|v*''}
<apeiros> 1 char
RegulationD has quit [Ping timeout: 260 seconds]
<baweaver> 104 if I nix the lambda and frontload the array
<baweaver> yea, just noticed.
<baweaver> >>l=%w[ABC DEF GHI JKL MNO PQRS TUV WXYZ].map(&:chars);h,*t=[2,3].map{|n|l[n-2]};h.product(*t).map(&:join)
<apeiros> 2 chars if you can avoid the ()
<ruboto> baweaver # => ["AD", "AE", "AF", "BD", "BE", "BF", "CD", "CE", "CF"] (https://eval.in/438735)
tejasmanohar has quit [Read error: No route to host]
aaeron has joined #ruby
allomov has quit [Remote host closed the connection]
araujo has quit [Max SendQ exceeded]
tejasmanohar has joined #ruby
<baweaver> >> l=%w[ABC DEF GHI JKL MNO PQRS TUV WXYZ].map &:chars;h,*t=[2,3].map{|n|l[n-2]};h.product(*t).map &:join
<ruboto> baweaver # => ["AD", "AE", "AF", "BD", "BE", "BF", "CD", "CE", "CF"] (https://eval.in/438736)
<baweaver> 102, trying to think of how to go lower.
zenguy_pc has joined #ruby
araujo has joined #ruby
<apeiros> I think [2,3] is not part of the code, no? that's input
<baweaver> yeah
<baweaver> was using a lambda for easier input.
<apeiros> heh
<apeiros> I do that too. like ->(x){…code…}.call "X" # then arrow up & change arg is easy
<baweaver> I think 102 is about as short as I can go
araujo has quit [Max SendQ exceeded]
<[k-> &:*?
<baweaver> trying to think if theres some shorter regexp black magic
<baweaver> but it'd be too long.
<baweaver> wouldn't work
<[k-> D:
araujo has joined #ruby
aaeron has quit [Ping timeout: 244 seconds]
<bnagy> why do you splat and unsplat t? Can you drop both those *s?
<baweaver> variable input
nhhagen has joined #ruby
araujo has quit [Max SendQ exceeded]
<baweaver> >> l=%w[ABC DEF GHI JKL MNO PQRS TUV WXYZ].map &:chars;h,*t=[2,3,2].map{|n|l[n-2]};h.product(*t).map &:join
<ruboto> baweaver # => ["ADA", "ADB", "ADC", "AEA", "AEB", "AEC", "AFA", "AFB", "AFC", "BDA", "BDB", "BDC", "BEA", "BEB", " ...check link for more (https://eval.in/438737)
rushed has quit [Quit: rushed]
<bnagy> ah
Macaveli has joined #ruby
<baweaver> has to work for whatever length
<[k-> bea! that's the start of beaver!
araujo has joined #ruby
<baweaver> where's shevy anyways?
ruurd has joined #ruby
<apeiros> now all you need is the reverse operation + a dictionary and then you can see what bad words you can spell from your name :)
devoldmx_ has joined #ruby
riotjones has joined #ruby
araujo has quit [Max SendQ exceeded]
hs366 has joined #ruby
<apeiros> >>l=%w[ABC DEF GHI JKL MNO PQRS TUV WXYZ].flat_map.with_index(2){|s,i|s.chars.map{|c|[c,i]}}.to_h;"BAWEAVER".chars.map{|c|l[c]}
<ruboto> apeiros # => [2, 2, 9, 3, 2, 8, 3, 7] (https://eval.in/438739)
araujo has joined #ruby
<baweaver> beat me to it,
devoldmx has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
wookiehangover has quit [Ping timeout: 240 seconds]
amclain has quit [Quit: Leaving]
eGGsha has joined #ruby
Xeago has joined #ruby
wookiehangover has joined #ruby
<bnagy> dammit
<bnagy> >> r=('A'..'Z').to_a;[*[3]*5,4,3,4].map{|e|r.shift e}
<ruboto> bnagy # => [["A", "B", "C"], ["D", "E", "F"], ["G", "H", "I"], ["J", "K", "L"], ["M", "N", "O"], ["P", "Q", "R" ...check link for more (https://eval.in/438742)
<bnagy> not shorter :(
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
<baweaver> >> r=[*?A..?Z];[*[3]*5,4,3,4].map{|e|r.shift e}
<ruboto> baweaver # => [["A", "B", "C"], ["D", "E", "F"], ["G", "H", "I"], ["J", "K", "L"], ["M", "N", "O"], ["P", "Q", "R" ...check link for more (https://eval.in/438743)
<bnagy> nice :)
<eam> >> r=*?A..?Z;[*[3]*5,4,3,4].map{|e|r.shift e}
<ruboto> eam # => [["A", "B", "C"], ["D", "E", "F"], ["G", "H", "I"], ["J", "K", "L"], ["M", "N", "O"], ["P", "Q", "R" ...check link for more (https://eval.in/438744)
<baweaver> ah, yeah, not necessary
gurix has quit [Quit: gurix]
yfeldblum has quit [Remote host closed the connection]
aganov has joined #ruby
<apeiros> no words for apeiros or baweaver in /usr/share/dict/words :(
yfeldblum has joined #ruby
ankr has joined #ruby
<baweaver> hm?
<baweaver> I have a mac, so I do.
<apeiros> I have a mac too, I don't. maybe I made a mistake?
<baweaver> IO.readlines('/usr/share/dict/words')
<baweaver> might be a version thing
<apeiros> I used your code + mine to get a map of all words which could be generated, then Array#&'ed it with File.read("/usr/share/dict/words").upcase.split("\n")
<baweaver> http://baweaver.com/blog/2015/09/07/aggregate-active-record/ - just used it to write that.
skade has joined #ruby
<eam> >> r=*?A..?Z;[4,3,4,*[3]*5].map{|e|r.pop e} # and use it inverted
<ruboto> eam # => [["W", "X", "Y", "Z"], ["T", "U", "V"], ["P", "Q", "R", "S"], ["M", "N", "O"], ["J", "K", "L"], ["G" ...check link for more (https://eval.in/438745)
emilkarl has joined #ruby
<bnagy> won't that cost >= 2 chars though?
towski_ has joined #ruby
devoldmx_ has quit [Remote host closed the connection]
<baweaver> >> l=%w[ABC DEF GHI JKL MNO PQRS TUV WXYZ].map &:chars;h,*t=[2,3].map{|n|l[n-2]};h.product(*t).map &:join
<ruboto> baweaver # => ["AD", "AE", "AF", "BD", "BE", "BF", "CD", "CE", "CF"] (https://eval.in/438748)
<baweaver> is the current at 102
<bnagy> >> r=*?A..?Z;l=[*[3]*5,4,3,4].map{|e|r.shift e};h,*t=[2,3].map{|n|l[n-2]};h.product(*t).map &:join # 95
<ruboto> bnagy # => ["AD", "AE", "AF", "BD", "BE", "BF", "CD", "CE", "CF"] (https://eval.in/438750)
<baweaver> oho
karapetyan has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
weemsledeux has joined #ruby
<baweaver> >> r=*?A..?Z;l=[4,3,4,*[3]*5].map{|e|r.pop e};h,*t=[2,3].map{|n|l[9-n]};h.product(*t).map &:join # 93
<ruboto> baweaver # => ["AD", "AE", "AF", "BD", "BE", "BF", "CD", "CE", "CF"] (https://eval.in/438753)
scripore has quit [Quit: This computer has gone to sleep]
<bnagy> :)
<baweaver> I can't think of any other way to hack it down.
<baweaver> curious, would you all think that question is too much for an intervie?
<baweaver> interview*
<baweaver> not including code golf.
<eam> nah
<bnagy> but the golf is the good bit
firstdayonthejob has joined #ruby
<eam> I'm surprised ruby doesn't allow .map&:join
<bnagy> then again I would only ever be interviewing hackers o_0
<apeiros> eam: because of #&
<eam> looks like it gets confused with yeah
<apeiros> with the space it assumes prefix &
<baweaver> Scared the heck out of someone with a simpler one: Given a dictionary of words, find counts by first letter.
<apeiros> the subtle ambiguities :)
<eam> I wouldn't have set the precedence of & that way
<baweaver> >> %(foo bar baz) # and.... GOLF
<ruboto> baweaver # => "foo bar baz" (https://eval.in/438754)
jenrzzz has joined #ruby
<baweaver> >> %(foo bar baz).map{|w|w[0]}.group_by(&:itself)
<ruboto> baweaver # => undefined method `map' for "foo bar baz":String (NoMethodError) ...check link for more (https://eval.in/438755)
<baweaver> >> %w(foo bar baz).map{|w|w[0]}.group_by(&:itself)
<ruboto> baweaver # => {"f"=>["f"], "b"=>["b", "b"]} (https://eval.in/438756)
<baweaver> ...
<baweaver> back to repl for a sec.
Marsupermammal has joined #ruby
TomyLobo has quit [Ping timeout: 260 seconds]
Marsupermammal has quit [Max SendQ exceeded]
<eam> ok ladies and gentlemen, it's been fun good night
scripore has joined #ruby
j4cknewt has joined #ruby
<baweaver> %w(foo bar baz).each_with_object({}){|i,o|(o[i[0]]||=0)+=1} # Why does this syntax error?
amystephen has quit [Quit: amystephen]
diegoviola has quit [Quit: WeeChat 1.3]
dionysus69 has quit [Ping timeout: 252 seconds]
drptbl has joined #ruby
ddrmanxbxfr has quit [Quit: This computer has gone to sleep]
dionysus69 has joined #ruby
<baweaver> >> %w(foo bar baz).group_by{|i|i[0]}.map{|k,v|[k,v.size]}.to_h # only one char longer
<ruboto> baweaver # => {"f"=>1, "b"=>2} (https://eval.in/438759)
<baweaver> 59
vjdhama has joined #ruby
michael_mbp has quit [Excess Flood]
devoldmx has joined #ruby
michael_mbp has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
bf4 has quit [Ping timeout: 240 seconds]
waxjar has quit [Ping timeout: 240 seconds]
drptbl has quit [Client Quit]
bf4 has joined #ruby
waxjar has joined #ruby
solars has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
skullcrasher has joined #ruby
n008f4g_ has joined #ruby
houhoulis has quit [Remote host closed the connection]
[k-_ has joined #ruby
[k- has quit [Read error: Connection reset by peer]
bronson has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
scripore has quit [Quit: This computer has gone to sleep]
emilkarl has quit [Quit: emilkarl]
iyan has joined #ruby
emilkarl has joined #ruby
YankNYC has quit [Quit: Connection closed for inactivity]
rezzack has quit [Quit: Leaving.]
xkickflip has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
pusewicz has joined #ruby
iyan has quit [Ping timeout: 240 seconds]
xgoo has joined #ruby
ta has joined #ruby
greenarrow has joined #ruby
ta has quit [Read error: Connection reset by peer]
ta has joined #ruby
xgoo is now known as iyan
scoot has quit [Remote host closed the connection]
rezzack has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
workmad3 has joined #ruby
SCHAAP137 has joined #ruby
towski_ has quit [Remote host closed the connection]
scoot has joined #ruby
n008f4g_ has quit [Ping timeout: 250 seconds]
GeissT has quit [Ping timeout: 240 seconds]
<certainty> moin
xkickflip has quit [Quit: xkickflip]
<baweaver> noim
workmad3 has quit [Ping timeout: 255 seconds]
CloCkWeRX has quit [Ping timeout: 240 seconds]
towski_ has joined #ruby
ruurd has joined #ruby
Gnomethrower has joined #ruby
Gnomethrower has joined #ruby
ndrei has joined #ruby
Xeago has joined #ruby
workmad3 has joined #ruby
towski_ has quit [Remote host closed the connection]
bayed has joined #ruby
towski_ has joined #ruby
towski_ has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
vjdhama has quit [Ping timeout: 256 seconds]
leat has quit [Remote host closed the connection]
leat has joined #ruby
gurix has joined #ruby
allomov has joined #ruby
Jackneill has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
rezzack has quit [Quit: Leaving.]
youngbaks has joined #ruby
skade has quit [Ping timeout: 264 seconds]
j4cknewt_ has joined #ruby
vjdhama has joined #ruby
aswen has joined #ruby
EmeraldExplorer has quit [Quit: Connection closed for inactivity]
<certainty> what's the question for that golf?
firstdayonthejob has quit [Ping timeout: 244 seconds]
pontiki has joined #ruby
Pupeno has joined #ruby
<certainty> >> r=*?A..?Z;l=[4,3,4,*[3]*5].map{|e|r.pop e};h,*t=[2,3].map{|n|l[9-n]};h.product(*t).map &:join # 93
<ruboto> certainty # => ["AD", "AE", "AF", "BD", "BE", "BF", "CD", "CE", "CF"] (https://eval.in/438773)
<certainty> that one i mean
ruurd has quit [Quit: ZZZzzz…]
skade has joined #ruby
banjara has quit [Quit: Leaving.]
j4cknewt has quit [Ping timeout: 240 seconds]
vjdhama has quit [Remote host closed the connection]
vjdhama has joined #ruby
gigetoo has quit [Ping timeout: 272 seconds]
tesuji has joined #ruby
pontiki has quit [Ping timeout: 250 seconds]
mondayrain has quit [Ping timeout: 246 seconds]
<certainty> bnagy: thanks
emilkarl has quit [Quit: emilkarl]
Spami has joined #ruby
<bnagy> I was just golfing one section :P
arup_r has joined #ruby
vjdhama has quit [Remote host closed the connection]
vjdhama has joined #ruby
CloCkWeRX has joined #ruby
Xeago has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
keen______ has joined #ruby
<certainty> >> i=2;j=3;l=*(?A..?Z).each_slice(3);l[i-2].flat_map{|e|([e]*3).zip(l[j-2])}.map &:join
<ruboto> certainty # => ["AD", "AE", "AF", "BD", "BE", "BF", "CD", "CE", "CF"] (https://eval.in/438774)
<certainty> dunno if it's correct
<certainty> without the params it's 76
ruurd has joined #ruby
radgeRayden has quit [Ping timeout: 244 seconds]
keen_____ has quit [Ping timeout: 264 seconds]
<certainty> anyway gotta work
last_staff has joined #ruby
Igorshp has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
scoot has quit [Remote host closed the connection]
benlovell has joined #ruby
doublemalt_ has quit [Ping timeout: 244 seconds]
vjdhama has quit [Remote host closed the connection]
vjdhama has joined #ruby
vjdhama has quit [Remote host closed the connection]
devoldmx has joined #ruby
vjdhama has joined #ruby
skullcrasher has quit [Quit: Leaving]
timonv has joined #ruby
skullcrasher has joined #ruby
skullcrasher has quit [Remote host closed the connection]
skullcrasher has joined #ruby
skullcrasher has quit [Client Quit]
tomphp has joined #ruby
Xeago has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
Macaveli_ has joined #ruby
<bnagy> you can't use each_slice(3) for sure
<adaedra> Hello
tomphp has quit [Max SendQ exceeded]
tomphp has joined #ruby
drptbl has joined #ruby
Macaveli has quit [Ping timeout: 264 seconds]
bronson has quit [Ping timeout: 255 seconds]
chipotle has quit [Quit: cheerio]
[k-_ is now known as [k-
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stardiviner has quit [Ping timeout: 272 seconds]
shoutsid has joined #ruby
Macaveli_ has quit [Read error: Connection reset by peer]
Gnomethrower is now known as memorydealers
Xeago has quit [Remote host closed the connection]
stardiviner has joined #ruby
skullcrasher has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
Macaveli has joined #ruby
diegoviola has joined #ruby
tomphp has joined #ruby
chipotle has joined #ruby
tomphp has quit [Client Quit]
codenapp_ has joined #ruby
<r0x0rZ> so guys stylistically in the community - is it always better to omit parentheses `()` for functions/methods when there are no arguments?
Xeago has joined #ruby
<[k-> yes!
<[k-> definitely yes!
<r0x0rZ> [k-: and the same goes for defining and calling, right?
scoot has joined #ruby
charliesome has joined #ruby
jokke has quit [Disconnected by services]
jokke1 is now known as jokke
<[k-> yes!
jokke- has joined #ruby
codenapper has quit [Ping timeout: 264 seconds]
rdark has joined #ruby
Burgestrand has joined #ruby
phutchins has quit [Ping timeout: 244 seconds]
tomphp has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenguy_pc has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
devbug has quit [Ping timeout: 246 seconds]
jesterfraud has quit [Quit: Textual IRC Client: www.textualapp.com]
tomphp has quit [Client Quit]
platzhirsch has joined #ruby
<bnagy> r0x0rZ: there's a fairly significant movement that prefers no parens at all except when required by the interpreter
timonv has quit [Ping timeout: 268 seconds]
<bnagy> ie def blah a, b, c and d = blah 1, 2, 3
<bnagy> hatred of blah() is more or less universal though
ruurd has quit [Quit: ZZZzzz…]
scoot has quit [Remote host closed the connection]
Voker57 has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
<agent_white> :(
beauby has quit [Ping timeout: 256 seconds]
<agent_white> I like ruby and my parens. There's like little pillows for code.
<agent_white> s/They're/There's/
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
G has quit [K-Lined]
Junaos has quit [K-Lined]
SegFaultAX has quit [K-Lined]
<karapetyan> i have a little mess with modules
Junaos has joined #ruby
<agent_white> reverse that... I need sleep.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SegFaultAX has joined #ruby
chthon has joined #ruby
ruurd has joined #ruby
tomphp has joined #ruby
vjdhama has quit [Read error: Connection reset by peer]
marr has joined #ruby
<r0x0rZ> bnagy: just coming from Python and JS. I kinda like having parentheses bc you can immediately tell it's a function call. It's just easier for me to read that's all but I will respect how to do it the ruby way and try to learn it properly.
Pupeno has quit [Quit: Leaving...]
doublemalt_ has joined #ruby
blaxter has joined #ruby
<adaedra> I don't like removing parenthesis on def at all
djbkd has joined #ruby
<r0x0rZ> another newbie question regarding gem `test-unit` . When I try to read documentation `ri Test::Unit::TestCase` I don't find anything explaining assertions. Yet my program can use `assert_equal` method.
vjdhama has joined #ruby
<r0x0rZ> is `assert_equal` method even part of `test-unit`. what am I doing wrong? I just find ruby documentation a bit diff to read
scoot has joined #ruby
zenguy_pc has joined #ruby
dmolina has joined #ruby
<karapetyan> here is example from book: https://gist.github.com/karapetyan/b9f91f8e58f46fe11959
G_ has joined #ruby
<karapetyan> why it works? :) seems @customers should be a class variable not instance. Because in this exmaple used extend and that means all method in module will be class methods. And if it class method it's don't works with certain instances of the class?
G_ is now known as G
G is now known as 32NAAFIPE
zapata has quit [Ping timeout: 240 seconds]
32NAAFIPE is now known as G
<r0x0rZ> aah. found my answer. it's in another class `Assertions` so I have to `ri Test::Unit::Assertions` :)
<tobiasvl> karapetyan: why do you think @customers should be a class variable and not an instance variable?
<r0x0rZ> karapetyan: aren't class variables declared with @@ ?
ruurd has quit [Quit: ZZZzzz…]
<r0x0rZ> karapetyan: maybe have a look at this. it's my personal note, not perfect because i'm still newbie but you can see the difference -> http://peg.gd/6p9
j4cknewt_ has quit [Remote host closed the connection]
<karapetyan> tobiasvl: cause @customers contain information about all instances of that class
amystephen has joined #ruby
<tobiasvl> r0x0rZ: @@variables are indeed class variables, but you shouldn't use them :) instead, class INSTANCE variables should be used
charliesome has joined #ruby
<tobiasvl> karapetyan: ok… but intent doesn't make functionality :) it's an instance variable
<karapetyan> tobiasvl: don't understand :)
<r0x0rZ> tobiasvl: yes I was just trying to tell him/her in case
yfeldblum has quit [Ping timeout: 240 seconds]
<tobiasvl> karapetyan: what don't you understand?
sandelius has joined #ruby
<r0x0rZ> karapetyan: take a look at that link.. you might understand it then... or just google ruby instance variables and class variables
<karapetyan> whtbut intent doesn't make functionality << this)
<karapetyan> ook
<karapetyan> thanks
<r0x0rZ> karapetyan: it's like instance methods and class methods (you use def self.mymethod for class methods for example). one has to know what instance and class methods are and why one should use them.
Xeago has quit [Remote host closed the connection]
<karapetyan> code from example works fine
<karapetyan> i understand how works instance variables. And understand how works class variables (i think so)
* certainty likes parenthesis
<karapetyan> and i just want to ask
<tobiasvl> karapetyan: oh, maybe I misunderstood you then
amystephen has quit [Ping timeout: 265 seconds]
j4cknewt has joined #ruby
<karapetyan> in example above seems better to use class variable instead instance varible. Cause @customers variables in example above don't store any tied to instance information
giuseppesolinas has joined #ruby
<tobiasvl> karapetyan: never use class variables
Xeago has joined #ruby
<karapetyan> tobiasvl: aaa ? :)
<karapetyan> why?
<tobiasvl> if you want to share information between objects in a class, use class instance variables
<tobiasvl> because class variables are very confusing and counter-intuitive
<karapetyan> class - instance varibales ?
<karapetyan> tobiasvl: thank you!
<r0x0rZ> karapetyan: class instance variable == class variable (in this context)
<tobiasvl> r0x0rZ: that's a lenient context :P
<r0x0rZ> karapetyan: it's good to use when you want to store identical information amongst your object
<tobiasvl> ~=
<r0x0rZ> tobiasvl: ok maybe that was not good example :)
<r0x0rZ> karapetyan: but that link tobiasvl sent you is a good one
yfeldblum has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
Hounddog has joined #ruby
<tobiasvl> class instance variables are instance variables on the class
<tobiasvl> since classes are instances too :)
tejasmanohar has quit [Quit: tejasmanohar]
<karapetyan> nah that to difficult for me yet
zapata has joined #ruby
<karapetyan> some kind of magic
<r0x0rZ> tobiasvl: very good explanation
<shevy> karapetyan whenever you see @foo it is an instance variable
leafybasil has quit [Remote host closed the connection]
ruurd has joined #ruby
<karapetyan> shevy: i understand
<karapetyan> but what does mean class - instance - variable? it class + instance ?
<tobiasvl> yes, because as I said, classes are instances (of the class Class)
<Burgestrand> When you think instance, you must think instance of *what*.
jgt2 has joined #ruby
einarj has joined #ruby
<tobiasvl> instance variables belong to self. in a class, self is the class. in a regular (instance) method inside the class, self is the instance. so it all depends where you instantiate the @var
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
<tobiasvl> it is a bit hard to grasp at first, but it makes sense
quiez has joined #ruby
<shevy> karapetyan these are instance variables that reside on the class level; class Foo; @bar = 'hi'; end
<shevy> Foo.instance_variables # or something like that
<certainty> >> class Foo; end; Foo.instance_of(Class)
<ruboto> certainty # => undefined method `instance_of' for Foo:Class (NoMethodError) ...check link for more (https://eval.in/438796)
<certainty> >> class Foo; end; Foo.instance_of?(Class)
<ruboto> certainty # => true (https://eval.in/438797)
<r0x0rZ> karapetyan: you can sort of access class instance variable in an instance using `self.class.foo` where foo is @@foo in base class
<karapetyan> ok! thank you so much :) i need to think and read about it now)
<karapetyan> acutally i should do it before ask))
<r0x0rZ> karapetyan: definitely. took me a while to grasp this too.
c0m0 has joined #ruby
shay- has joined #ruby
vjdhama has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
<r0x0rZ> another newbie question... what is (is there any) relationship between ri documentation and rdocs?
timonv has joined #ruby
yfeldblum has joined #ruby
<r0x0rZ> basically i don't know what rdoc is
<r0x0rZ> and it's often mentioned alongside various gems
bronson has joined #ruby
vjdhama has joined #ruby
<karapetyan> tobiasvl: thank you for so detailed explanation :) instance variables belongs to self. Seems it's easy to understand
<karapetyan> tobiasvl: here is how i understand it :) https://gist.github.com/karapetyan/b9006684a11bbfb5bc17
nfk|laptop has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
<r0x0rZ> karapetyan: i don't think you need that method `show` plus that method is actually a class method, not instance method. you can omit `self.show` method and just call peter.name directly because you have already specified accessor method using `attr_reader`
vjdhama has quit [Remote host closed the connection]
scoot has quit [Remote host closed the connection]
workmad3 has joined #ruby
rattatmatt has quit [Quit: Leaving]
bronson has quit [Ping timeout: 256 seconds]
<adaedra> r0x0rZ: rdoc is the core component in ruby managing the documentation. ri is the command that displays this documentation.
vjdhama has joined #ruby
<yorickpeterse> morning
doublemalt_ has quit [Remote host closed the connection]
<karapetyan> r0x0rZ: i was need to get access to class variable without creating an object (instance that class)
<r0x0rZ> karapetyan: i forked the gist you can have a look
<karapetyan> r0x0rZ:
<karapetyan> thx
drewvanstone has joined #ruby
<r0x0rZ> karapetyan: aah I see
<r0x0rZ> let me do another fix
DoubleMalt has joined #ruby
youngbaks has quit [Ping timeout: 240 seconds]
<karapetyan> r0x0rZ: it works now i just show to be sure that i understand correctly :)
<r0x0rZ> karapetyan: yes your original example was right
<karapetyan> thank you folks! seems i understand little bit more now.
tvw has joined #ruby
<r0x0rZ> karapetyan: I'm sorry I completely missed that class_variable ... but it's still not perfect
workmad3 has quit [Ping timeout: 256 seconds]
<karapetyan> acutally i got one more question :)
leafybasil has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<r0x0rZ> karapetyan: don't mind the indentation
krisquigley has joined #ruby
<karapetyan> r0x0rZ: but tobiasvl said that i never should use class vairables like @@
ishahnaz has joined #ruby
<r0x0rZ> @@ = class instance variable, @ = instance variable
leafybas_ has joined #ruby
<adaedra> @@ = class variable
stan has joined #ruby
mattprelude has joined #ruby
<shevy> karapetyan yeah why would you want it
<r0x0rZ> karapetyan: i think what he meant was not to use class instance variable and use instance variable instead
<shevy> as tobiasvl explained above, you can use @ for both behaviours; the only thing you don't have compared to a @@ is that these be shared along the children
drewvanstone has quit [Ping timeout: 240 seconds]
<r0x0rZ> karapetyan: if you were to add another line to that code `puts peter.class_variable` it will not work... because you can do that only on the class
astrobunny has quit [Remote host closed the connection]
leafybasil has quit [Read error: Connection reset by peer]
<karapetyan> shevy: oookk
<r0x0rZ> karapetyan: basically class instance variables are OK if you are subclassing and you want to share the same information among the children classes
<shevy> they are class variables, not class instance variables ;P
phutchins has joined #ruby
<bnagy> and they're never OK
Kendos-Kenlen has joined #ruby
<karapetyan> thanks :))) to be sure could you give me a simple task to check understanding instance / class variables )
ruurd has joined #ruby
<r0x0rZ> karapetyan: check one more example -> https://gist.github.com/comatory/1ec93c5791052e3ea5e7
<bnagy> @@class_var <- bad do not use @class_ivar and @ivar look the same, only the scope they're created in makes them different
<shevy> karapetyan don't use class variables!!!
<karapetyan> hahaha
<karapetyan> =)
<r0x0rZ> karapetyan: yes it's confusing :)
<bnagy> r0x0rZ: even more so when people explain it incorrectly
<certainty> unless you actually want @@class_var of course
<shevy> aha but then we have to ask whether they really wanted them :)
<certainty> just wanted to say that there are reasons
leafybas_ has quit []
<shevy> yeah
leafybasil has joined #ruby
<bnagy> pff, name two
<bnagy> I have never seen a use for classvars that wasn't crap design in the first place
phutchins has quit [Ping timeout: 250 seconds]
memorydealers is now known as Gnomethrower
<karapetyan> r0x0rZ: is my comments corrert?)
<bnagy> at best you can write code where they are not actively being wrong _right now_ and are merely an accident waiting to happen
lolmaus has quit [Ping timeout: 240 seconds]
benlovell has quit [Ping timeout: 264 seconds]
<r0x0rZ> karapetyan: yes that was the point. you can see that because the class variable it is the same for both instances.
timonv has quit [Read error: Connection reset by peer]
<r0x0rZ> karapetyan: BUT... you could just use instance variable and achieve the same things
benlovell has joined #ruby
<karapetyan> r0x0rZ: and actually no matter @@ or @
<karapetyan> r0x0rZ: context where created variable have matter
<r0x0rZ> karapetyan: basically using @ is better... but try doing this `john.class.class_variable = 'bye'` and you see it won't work
yfeldblu_ has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<r0x0rZ> karapetyan: this way you restrict the instances to change some information that needs to be same amongst instances
<karapetyan> r0x0rZ: !!
<karapetyan> ok
<karapetyan> thanks! wow thank you!
vjdhama has quit [Remote host closed the connection]
<r0x0rZ> you can see for yourself -> https://gist.github.com/comatory/1ec93c5791052e3ea5e7
yfeldblum has quit [Ping timeout: 256 seconds]
vjdhama has joined #ruby
<r0x0rZ> karapetyan: basically when you use `.class` on `john` instance you are calling `self.class_variable` method on the class `Customer`
djbkd has quit [Remote host closed the connection]
quazimodo has quit [Ping timeout: 260 seconds]
<r0x0rZ> so `john.class.class_variable` = `Customer.class_variable`
<karapetyan> r0x0rZ: understnad
<r0x0rZ> karapetyan: but it is just getter method.
<bnagy> :(
<bnagy> that link is so wrong on so many levels
quazimodo has joined #ruby
<bnagy> r0x0rZ: you shouldn't be trying to teach people, sorry :(
<r0x0rZ> bnagy: I know it's probably simplified
<r0x0rZ> bnagy: I'm not experienced that much but I was just explaining the way I understood it for my purposes
<karapetyan> bnagy: you know that's example from book
<bnagy> @ivars have nothing to do with initialisation, for a start
<karapetyan> and i copy-paste it here cause have some misunderstanding
<bnagy> and calling methods class_variable is just asking for trouble
skade has joined #ruby
* ljarvis spots a wild @@
<karapetyan> and this is just code that shows how it works nothing more )
ruurd has quit [Max SendQ exceeded]
apt-get has joined #ruby
<karapetyan> r0x0rZ: thank you!
<bnagy> @@ is mfw I see that in people's code
ruurd has joined #ruby
<ljarvis> hah
<bnagy> anyway, need to cook dinner.
<r0x0rZ> karapetyan: you're welcome but you should read up more on this. I'm probably not doing the best code practices and maybe bnagy is right. Just make sure to read up more on this later.
<karapetyan> r0x0rZ: yes, sure thanks. Now i understand where is instance and where is class variable and that i was need. Thanks
platzhirsch has left #ruby [#ruby]
<karapetyan> bnagy: @@ mfw ?
GreyHands has joined #ruby
<ljarvis> "my face when" i.e angry
<ljarvis> generally class variables (@@) are frowned upon, and class instances variables are often a better fit
<karapetyan> ljarvis: :)
<r0x0rZ> ljarvis: oh boy I hope I don't have dictionary mixed up :) so class vars = @@, class instance vars = @ ?
<ljarvis> they have their place, but they're often misused and way too many beginner tutorials offer them up early on without explaining the caveats
karapetyan has quit [Remote host closed the connection]
<ljarvis> r0x0rZ: yeah, class instance variable are just instance variables that belong to the class level. Since remember, your class is an instance of the Class class (heh)
<r0x0rZ> ljarvis: ok
<ljarvis> so Customer is actually an instance of Class
<r0x0rZ> ljarvis: yes I understand. it's bit similar in Python where every class is class of Object (or at least it used to be I think)
<ljarvis> https://eval.in/438837 -- not necessarily the best way to do this, it's not thread safe etc etc, but gives you an idea
<ljarvis> generally, 90% of tutorials would use a @@total instead. This is definitely a shit example because that would actually be ok here
<ljarvis> line 2 opens the singleton class for Customer so it can set the accessor on the instance of Class (Customer)
<ljarvis> singleton/meta/eigen/whatever we're calling it today
devoldmx has joined #ruby
Igorshp has quit [Remote host closed the connection]
<r0x0rZ> ljarvis: so line number 3 defines getter and setter methods for the class variable total, right?
<r0x0rZ> ljarvis: i mean lines 2-3
<r0x0rZ> ljarvis: 2-4 dammit
dravine has quit [Quit: zzz]
benlovell has quit [Ping timeout: 264 seconds]
zeroDivisible has joined #ruby
<ljarvis> r0x0rZ: for the instance variable
<ljarvis> it's not a class variable, remember
<sp_> ljarvis, hi injekt.
<ljarvis> sp_: hello :)
r0x0rZ has quit []
benlovell has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
wookiehangover has quit [Ping timeout: 240 seconds]
arup_r has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 264 seconds]
[k- has quit [Read error: Connection reset by peer]
quazimodo has quit [Ping timeout: 250 seconds]
[k- has joined #ruby
wookiehangover has joined #ruby
Igorshp has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
emilkarl has joined #ruby
bigkevmcd has quit [Ping timeout: 256 seconds]
zeroDivisible has quit [Quit: WeeChat 1.3]
Burgestrand has quit []
bigkevmcd has joined #ruby
face has joined #ruby
Burgestrand has joined #ruby
suchness has joined #ruby
benlovell has quit [Ping timeout: 260 seconds]
Ropeney has joined #ruby
<suchness> I have a class that listens to a specific change on a number of object, it then runs through a few strategies to define 'restrictions' that is then places on other object based on the state of the object it had listened to. I am struggling with a good name. Initially I was thinking RestrictionGoverner, but I don't like that much. Anyone have any ideas?
<apeiros> Policinator!
* apeiros doesn't have a clue and goes for lunch, have fun :)
Technodrome has joined #ruby
<ljarvis> RestrictionEnforcementListeningFactoryBean
vjdhama_ has joined #ruby
<suchness> Nevermind.
vjdhama has quit [Ping timeout: 255 seconds]
gregf_ has quit [Ping timeout: 244 seconds]
nolic has quit [Quit: Lost terminal]
<ljarvis> sorry :(
<ljarvis> I also don't have any ideas in case that wasnt obvious
apt-get has quit [Ping timeout: 246 seconds]
nolic has joined #ruby
gregf_ has joined #ruby
<suchness> ljarvis: It's fine. I think this might be evidence my class is doing too much, I will break it down and name the pieces.
ndrei has quit [Ping timeout: 246 seconds]
jgt2 has quit [Ping timeout: 240 seconds]
lolmaus has joined #ruby
amystephen has joined #ruby
bronson has joined #ruby
skade has quit [Ping timeout: 246 seconds]
Coldblackice has quit [Ping timeout: 264 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
Beoran has joined #ruby
gregf_ has quit [Ping timeout: 268 seconds]
skade has joined #ruby
gregf_ has joined #ruby
Beoran_ has quit [Ping timeout: 255 seconds]
bigmac has quit [Ping timeout: 256 seconds]
bronson has quit [Ping timeout: 255 seconds]
apt-get has joined #ruby
Burgestrand has quit []
bigmac has joined #ruby
jgt2 has joined #ruby
vjdhama_ has quit [Remote host closed the connection]
Igorshp has quit [Remote host closed the connection]
iyan has quit [Quit: iyan]
aswen has quit [Ping timeout: 260 seconds]
vjdhama has joined #ruby
giuseppesolinas has joined #ruby
benlovell has joined #ruby
Pupeno has joined #ruby
last_staff has quit [Ping timeout: 265 seconds]
nfk|laptop has quit [Quit: yawn]
solocshaw has joined #ruby
yfeldblu_ has quit [Ping timeout: 240 seconds]
Igorshp has joined #ruby
agent_white has quit [Remote host closed the connection]
stamina has joined #ruby
zenguy_pc has quit [Ping timeout: 264 seconds]
Timba-as has joined #ruby
benlovell has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
skade has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Remote host closed the connection]
pen has quit []
ishahnaz has quit []
ndrei has joined #ruby
ghr has joined #ruby
bigmac__ has joined #ruby
apt-get_ has joined #ruby
zenguy_pc has joined #ruby
apt-get has quit [Ping timeout: 240 seconds]
bigmac has quit [Ping timeout: 272 seconds]
rodfersou has joined #ruby
gurix has quit [Quit: gurix]
Feyn has quit [Quit: Leaving]
emilkarl has quit [Quit: emilkarl]
vjdhama has quit [Remote host closed the connection]
vjdhama has joined #ruby
vjdhama has quit [Remote host closed the connection]
startupality has joined #ruby
vjdhama has joined #ruby
allcentury has joined #ruby
emilkarl has joined #ruby
workmad3 has joined #ruby
yottanami has joined #ruby
<yottanami> Hey all
jgt2 has quit [Ping timeout: 240 seconds]
<yottanami> I am trying to send a soap wsdl request using Net::HTTP but I got error 500, I can send the XML using SoupUI and it works
benlovell has joined #ruby
platzhirsch has joined #ruby
<yottanami> I think it can be because of using wrong method how can I find out an API supports Get or Post?
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
dionysus69 has joined #ruby
quazimodo has joined #ruby
davedev24 has joined #ruby
absklb has joined #ruby
<absklb> hi
jamesaxl has joined #ruby
<absklb> i am getting error Don't know how to build task 'assets:clean' while doing that in my Canvas app
<absklb> help please
<absklb> i made changes to one of the view and restarted apache. they are not appearing .
sheperson has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
pusewicz has quit [Quit: Bye! http://www.layer22.com]
workmad3_ has joined #ruby
priklyp34r has quit [Ping timeout: 250 seconds]
ruurd has quit [Quit: ZZZzzz…]
nux443 has quit [Ping timeout: 264 seconds]
vondruch has quit [Quit: Ex-Chat]
phutchins has joined #ruby
workmad3_ has quit [Ping timeout: 246 seconds]
banister has joined #ruby
priklyp34r has joined #ruby
nux443 has joined #ruby
<diegoviola> hi
bronson has joined #ruby
beast has joined #ruby
emilkarl has quit [Quit: emilkarl]
workmad3_ has joined #ruby
absklb has left #ruby ["WeeChat 1.1.1"]
ruurd has joined #ruby
yashinbasement has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
emilkarl has joined #ruby
nfk|laptop has joined #ruby
workmad3_ has quit [Ping timeout: 240 seconds]
yottanami has quit [Quit: Leaving]
giuseppesolinas has quit [Read error: Connection reset by peer]
giuseppesolinas has joined #ruby
emilkarl has quit [Client Quit]
giuseppesolinas has quit [Client Quit]
iyan has joined #ruby
gurix has joined #ruby
davedev2_ has joined #ruby
sdothum has joined #ruby
Igorshp has quit [Remote host closed the connection]
davedev24 has quit [Ping timeout: 240 seconds]
Siyfion has joined #ruby
emilkarl has joined #ruby
jackjackdripper has joined #ruby
jackjackdripper has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
jackjackdripper has quit [Remote host closed the connection]
Xeago has joined #ruby
jackjackdripper has joined #ruby
jackjackdripper has left #ruby [#ruby]
allcentury has quit [Ping timeout: 250 seconds]
mjuszczak has joined #ruby
krz has quit [Quit: WeeChat 1.2]
mjuszczak has quit [Max SendQ exceeded]
anisha has joined #ruby
tkuchiki has quit [Remote host closed the connection]
mjuszczak has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diego2 has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
mjuszczak has quit [Client Quit]
ndrei has quit [Ping timeout: 250 seconds]
symbol has joined #ruby
diegoviola has quit [Ping timeout: 246 seconds]
einarj has quit [Ping timeout: 240 seconds]
xgoo has joined #ruby
vondruch has joined #ruby
einarj has joined #ruby
diego2 is now known as diegoviola
iyan has quit [Ping timeout: 240 seconds]
xgoo is now known as iyan
djbkd has joined #ruby
sheperson has quit [Ping timeout: 246 seconds]
ndrei has joined #ruby
nateberkopec has quit [Quit: Leaving...]
ishahnaz has joined #ruby
krisquigley has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 272 seconds]
Burgestrand has joined #ruby
emilkarl has quit [Quit: emilkarl]
ericjphillips has joined #ruby
drewvanstone has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
pontiki has joined #ruby
apt-get_ has quit [Read error: No route to host]
devoldmx has joined #ruby
apt-get has joined #ruby
drewvanstone has quit [Ping timeout: 272 seconds]
lolmaus has quit [Ping timeout: 240 seconds]
pontiki has quit [Ping timeout: 240 seconds]
lxsameer has quit [Ping timeout: 265 seconds]
Travis-42 has joined #ruby
devoldmx has quit [Ping timeout: 272 seconds]
karapetyan has joined #ruby
jgt2 has joined #ruby
unop has joined #ruby
atomical has joined #ruby
quazimodo has quit [Ping timeout: 256 seconds]
jgt2 has quit [Ping timeout: 250 seconds]
karapetyan has quit [Ping timeout: 255 seconds]
lxsameer has joined #ruby
Travis-42 has quit [Quit: Travis-42]
nsuke has joined #ruby
Travis-42 has joined #ruby
Travis-42 has quit [Client Quit]
youngbaks has joined #ruby
slackbotgz has joined #ruby
FernandoBasso has joined #ruby
vjdhama has quit [Remote host closed the connection]
ldnunes has joined #ruby
ItSANgo has quit [Ping timeout: 246 seconds]
vjdhama has joined #ruby
greenarrow has quit [Quit: 500]
Xeago has quit [Remote host closed the connection]
syath has joined #ruby
alem0lars has left #ruby ["Part."]
quazimodo has joined #ruby
Igorshp has joined #ruby
charliesome has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
sgambino has joined #ruby
abuzze has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
ishahnaz has quit []
gustav_ has joined #ruby
krisquigley has joined #ruby
drptbl has joined #ruby
aswen has joined #ruby
bronson has joined #ruby
atomical has quit [Quit: Textual IRC Client: www.textualapp.com]
sdothum has joined #ruby
godzillaenlacasa has joined #ruby
vjdhama has quit [Remote host closed the connection]
prestorium has joined #ruby
krisquigley has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 264 seconds]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vjdhama has joined #ruby
mercerist has joined #ruby
vjdhama has quit [Remote host closed the connection]
vjdhama has joined #ruby
iceyec has quit [Quit: Leaving]
IceyEC_ has joined #ruby
lolmaus has joined #ruby
frmendes has joined #ruby
atomical has joined #ruby
workmad3_ has joined #ruby
Jardayn has joined #ruby
aswen has quit [Ping timeout: 260 seconds]
codeitagile has quit [Quit: Connection closed for inactivity]
youngbaks has quit [Ping timeout: 250 seconds]
[k- has quit [Read error: Connection reset by peer]
[k-_ has joined #ruby
mdih has quit [Ping timeout: 240 seconds]
krisquigley has joined #ruby
workmad3_ has quit [Ping timeout: 240 seconds]
greenarrow has joined #ruby
ericjphillips has quit [Quit: Leaving.]
ericjphillips has joined #ruby
NeverDie has joined #ruby
NeverDie has quit [Client Quit]
vjdhama has quit [Ping timeout: 240 seconds]
evanjs has joined #ruby
zenguy_pc has quit [Ping timeout: 264 seconds]
cornerma1 has joined #ruby
jgt2 has joined #ruby
gusTester has joined #ruby
vjdhama has joined #ruby
j4cknewt has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 255 seconds]
gustav_ has quit [Remote host closed the connection]
cornerman has quit [Ping timeout: 264 seconds]
cornerma1 is now known as cornerman
slackbotgz has quit [Remote host closed the connection]
EXID123 has quit [Ping timeout: 246 seconds]
scripore has joined #ruby
dandrade has quit [Ping timeout: 246 seconds]
yottanami has joined #ruby
<yottanami> I want to send numbers to an api like this <par>002205</par> but Ruby will change the number to 1157
<yottanami> How should I fix it?
<yottanami> I can not pass string there
sameerynho has joined #ruby
sgambino_ has joined #ruby
lxsameer has quit [Ping timeout: 256 seconds]
<sonOfRa> yottanami: numbers with leading zeroes are interpreted as base8. Take the string, remove leading zeroes, then convert to a number.
sgambino_ has quit [Client Quit]
[k-_ has quit [Ping timeout: 265 seconds]
Spami has joined #ruby
asxbr has joined #ruby
asxbr has quit [Client Quit]
asxbr has joined #ruby
_el_fer_ has joined #ruby
<yottanami> sonOfRa, remove leading zeroes? but in 0033 the 00 are important for me in API
zenguy_pc has joined #ruby
<sonOfRa> Err, then just pass a string? I don't see why you can't do that? What exactly are you trying to achieve here?
<yottanami> sonOfRa, I just want to send 002205 to an API using xml Builder gem, as a number not string
moeabdol has joined #ruby
<sonOfRa> I don't get why the leading zeroes are important if you're sending a number
<sonOfRa> That doesn't make sense. 002205 is the same number as 2205
<yottanami> sonne, It should be 6 digits
<sonOfRa> That sounds like you're using a really really broken API
<apeiros> yottanami: leading zeros are not a property of a number
<apeiros> yottanami: those are representation. and representation is string.
kreantos has joined #ruby
<apeiros> "ten" is also the same number as 10. but you can't write "ten" in ruby to get 10.
<apeiros> representation vs. value.
<yottanami> sonOfRa, Painfull API
<_el_fer_> Hi guys, a newcomer here, hope there's room for one more
mdih has joined #ruby
Guest97149 has joined #ruby
<apeiros> _el_fer_: sure. hi there.
vjdhama has quit [Ping timeout: 255 seconds]
<sonOfRa> yottanami: I'd go tell the vendor to fix their bad API. This is horrible,
anisha has quit [Quit: Leaving]
Kendos-Kenlen has quit [Quit: Konversation terminated!]
<apeiros> yottanami: your XML builder almost certainly accepts a string there.
<apeiros> and that's what you should pass there.
<yottanami> apeiros, Yes Builder accept string but API reject string and I got <faultstring>Charset is not supported.</faultstring>
<apeiros> yottanami: and what lets you conclude the this error is related to how you built that number?
<kreantos> hello, I've got an AES key as a byte array from a partner (same with iv) and now i need to encrypt it. but i don't know in which format i need to bring the key and iv.
<apeiros> sounds like a pretty unrelated error to me
centrx has joined #ruby
<Burgestrand> _el_fer_: Always!
<yottanami> apeiros, I got this error when send the item like this builder.v2(:serviceId, '002205')
<Burgestrand> yottanami: what is builder?
<yottanami> but when I write builder.v2(:serviceId, 002205) I got error because thereis not 2205 and thereis 002205
subshad has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
Kendos-Kenlen has joined #ruby
<yottanami> Burgestrand, https://github.com/jimweirich/builder
_el_fer_ is now known as _el_fer
<sonOfRa> yottanami: do you have XML with a schema, or is this just random elements?
workmad3_ has joined #ruby
Yzguy has joined #ruby
<sonOfRa> That charset error sounds like you didn't define an XML charset, and it's not UTF-8 by default, but ruby is.
<_el_fer> thanks apeiros Burgestrand
<yottanami> sonOfRa, It is with schema
dhjondoh has quit [Quit: dhjondoh]
_el_fer is now known as _el_fer_
<sonOfRa> And what is the type for that numeric attribute?
<yottanami> sonOfRa, I defined by this: builder.instruct!(:xml, :encoding => "UTF-8")
sanjayu has quit [Quit: Leaving]
Xeago has quit [Remote host closed the connection]
Yzguy has quit [Client Quit]
<yottanami> sonOfRa, Type that I am sending or type in API reference
workmad3_ has quit [Ping timeout: 240 seconds]
benlovell has joined #ruby
<yottanami> sonOfRa, full error is here http://dpaste.com/1VP0E59
casadei has joined #ruby
<sonOfRa> Oh I see. The soap API you're talking to doesn't support UTF-8
sanguisdex has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
evanjs has quit [Remote host closed the connection]
Igorshp has quit [Remote host closed the connection]
sanguisdex has joined #ruby
sepp2k has joined #ruby
NeverDie has joined #ruby
yashinbasement has quit [Quit: Leaving]
kreantos has quit [Remote host closed the connection]
aaeron has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
vjdhama has joined #ruby
p0wn3d__ has joined #ruby
<yottanami> sonOfRa, What is the unknow character in the error: Charset is... (after Charser. it look like space but it is not space)
aaeron1 has joined #ruby
dhjondoh has joined #ruby
dhjondoh has quit [Client Quit]
<yottanami> maybe it is space!
frmendes has quit [Quit: Leaving]
<yottanami> Are you sure it does not suport utf? because the result is have encoding=\"utf-8\"
<sonOfRa> yottanami: <?xml version=\"1.0\" encoding=\"utf-8\" ?> those escapes don't look right
sheperson has joined #ruby
frmendes has joined #ruby
aaeron has quit [Read error: Connection reset by peer]
ldnunes has quit [Ping timeout: 240 seconds]
<yottanami> sonOfRa, escapes dont look righ? why?
aaeron1 has quit [Read error: Connection reset by peer]
pheuko has joined #ruby
<sonOfRa> because it should be <?xml version="1.0" encoding="utf-8" ?>
evanjs has joined #ruby
<sonOfRa> also, UTF-8, not utf-8. Though I'm not sure if that's important
dhjondoh has joined #ruby
ldnunes has joined #ruby
aaeron has joined #ruby
<Burgestrand> The escapes look weird because it's an inspected string.
<yottanami> sonOfRa, Yes it is inspected and is the result of Net::HTTP
<sonOfRa> Then check if the SOAP API supports UTF-8
<sonOfRa> It's SOAP. SOAP is old. It might not.
<apeiros> sonOfRa: SOAP is XML. XML originated with utf-8. non-utf-8 afaik came after.
<apeiros> and IMO it's still horrible to have non-utf xml
<sonOfRa> Well, yottanami is sending UTF-8, and the API is responding that the charset isn't supported.
broconne has joined #ruby
bronson has joined #ruby
<apeiros> I didn't say that was impossible. just that the age of SOAP is not the reason ;-)
<yottanami> sonOfRa, it is responding the charset SPACE isn't supported
<apeiros> I (sadly) have to use some SOAP APIs which use iso-8859-1 as charset.
evanjs has quit [Remote host closed the connection]
Igorshp has joined #ruby
<yottanami> I change it to builder.instruct!(:xml, :encoding => "iso-8859-1") but I got error yet
ndrei has quit [Ping timeout: 244 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
ta has quit [Remote host closed the connection]
skade has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
scripore has quit [Quit: This computer has gone to sleep]
tkuchiki has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
vondruch has quit [Ping timeout: 252 seconds]
bmurt has joined #ruby
Burgestrand has quit []
Burgestrand has joined #ruby
UtkarshRay has joined #ruby
victortyau has joined #ruby
ndrei has joined #ruby
diegoviola has joined #ruby
<darix> UTF-8 everywhere
<darix> unless you want to make yourself suffer in the long run
Hacker-Pro has joined #ruby
<Hacker-Pro> Who is here a good Programmer c++ ?
<arup_r> many.. why Hacker-Pro ?/
<Hacker-Pro> arup_r you knwo how to use unity 3d ?
<arup_r> No Man!. :(
scripore has joined #ruby
ItSANgo has joined #ruby
whippythellama has joined #ruby
bkulbida has joined #ruby
benlovell has joined #ruby
JDiPierro has joined #ruby
<_el_fer_> guys, I amm working on a rails3.2 app. I need to perform a multipart upload to s3, and for that I am trying this gem github.com/maxgillett/s3_multipart . I have followed all the needed steps described in the readme, anyway the Upload button is not even trying to hit the bucket.
terlar has joined #ruby
<_el_fer_> have you ever performed similar task? do you recommend any other tool for me?
joufflu has quit [Read error: Connection reset by peer]
terlar has quit [Client Quit]
<apeiros> ?rails _el_fer_
<ruboto> _el_fer_, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
benlovell has quit [Ping timeout: 252 seconds]
terlar has joined #ruby
Xeago has joined #ruby
<_el_fer_> Thank you apeiros and sorry!
arup_r has quit []
sami has joined #ruby
sami has quit [Client Quit]
sami has joined #ruby
<apeiros> np, just telling you where to better get help
allcentury has joined #ruby
favadi has joined #ruby
<_el_fer_> I know, I appreciate it
tkuchiki has quit [Ping timeout: 246 seconds]
favadi has quit [Max SendQ exceeded]
Xeago has quit [Remote host closed the connection]
tkuchiki has joined #ruby
tagrudev has quit [Remote host closed the connection]
casadei has quit [Remote host closed the connection]
hs366 has quit [Quit: Leaving]
jstacks has joined #ruby
andikr has joined #ruby
amar has joined #ruby
amar has left #ruby ["Leaving"]
vjdhama has quit [Read error: Connection reset by peer]
malconis has joined #ruby
_mak has joined #ruby
emilkarl has joined #ruby
bigbadbear has joined #ruby
vjdhama has joined #ruby
malconis has quit [Remote host closed the connection]
quazimodo has quit [Ping timeout: 268 seconds]
devoldmx has joined #ruby
malconis has joined #ruby
benlieb has joined #ruby
symbol has quit [Quit: WeeChat 1.1]
hinbody has joined #ruby
tcopeland has quit [Quit: Leaving.]
ruurd has quit [Quit: ZZZzzz…]
big|bad|wolf has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
devoldmx has quit [Ping timeout: 265 seconds]
diegoviola has quit [Quit: WeeChat 1.3]
drewvanstone has joined #ruby
big|bad|wolf has quit [Max SendQ exceeded]
workmad3_ has joined #ruby
banister has quit [Read error: Connection reset by peer]
[k- has joined #ruby
big|bad|wolf has joined #ruby
beauby has joined #ruby
ragingcake has joined #ruby
codecop has quit [Remote host closed the connection]
tacit7 has joined #ruby
Hacker-Pro has quit []
JDiPierro has quit [Remote host closed the connection]
kobain has joined #ruby
otacon- has joined #ruby
workmad3_ has quit [Ping timeout: 264 seconds]
ngscheur1 has joined #ruby
iceyec has joined #ruby
IceyEC_ has quit [Read error: No route to host]
tacit7 has quit [Client Quit]
herbst has joined #ruby
benlovell has joined #ruby
<herbst> how is there a ruby icon in the corner of my irc client?
<herbst> its my client and not a awesome irc feature i missed far or?
ebragaparah has joined #ruby
decoponio has joined #ruby
broconne has left #ruby [#ruby]
el_fer_ has joined #ruby
<jhass> yep, your client
iceyec has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby
weemsledeux has joined #ruby
benlovell has quit [Ping timeout: 250 seconds]
_el_fer_ has quit [Read error: Connection reset by peer]
vjdhama has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
dopamean_ has quit [Ping timeout: 265 seconds]
supergeek has joined #ruby
JDiPierro has joined #ruby
bigmac__ is now known as i8igmac
redondo has quit [Ping timeout: 250 seconds]
vjdhama has joined #ruby
keen_______ has joined #ruby
Worf has joined #ruby
wookiehangover has quit [Ping timeout: 240 seconds]
roxtrongo has joined #ruby
keen______ has quit [Ping timeout: 246 seconds]
youngbaks has joined #ruby
wookiehangover has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
Worf has left #ruby ["Konversation terminated!"]
redondo has joined #ruby
lolmaus has joined #ruby
bronson has joined #ruby
supergeek has quit [Remote host closed the connection]
tesuji has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 252 seconds]
s00pcan has joined #ruby
iceyec has joined #ruby
quazimodo has joined #ruby
voltalio has joined #ruby
Technodrome has quit [Quit: Technodrome]
sheperson has quit [Quit: sheperson]
bronson has quit [Ping timeout: 250 seconds]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
ruby-lang293 has joined #ruby
benlovell has joined #ruby
jottr has joined #ruby
ankr has quit [Quit: bye bye]
voltalio has quit [Max SendQ exceeded]
ebragapa_ has joined #ruby
ebragaparah has quit [Read error: Connection reset by peer]
Ropeney has quit [Quit: Leaving]
ruby-lang293 has quit [Client Quit]
voltalio has joined #ruby
dopie has quit [Ping timeout: 240 seconds]
nfk|laptop has quit [Quit: yawn]
tcopeland has joined #ruby
workmad3_ has joined #ruby
redondo has quit [Ping timeout: 246 seconds]
i8igmac has quit [Ping timeout: 272 seconds]
jgt2 has quit [Ping timeout: 252 seconds]
<yottanami> How should return Time.now in this format? 20150921064245
redondo has joined #ruby
<adaedra> &ri Time#strftime @yottanami
youngbaks has quit [Ping timeout: 246 seconds]
p0wn3d__ has quit [Ping timeout: 255 seconds]
dstarh has joined #ruby
ebragapa_ has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3_ has quit [Ping timeout: 264 seconds]
dionysus69 has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
zenguy_pc has quit [Ping timeout: 265 seconds]
ebragaparah has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
chouhoulis has quit [Remote host closed the connection]
<suchness> Has anyone here used state_machine to define an after_transition event that occurs for more than one state machine? For instance, if I define two state machines on a model, is anyone aware of a way to create an after any transition for both of them at once?
aganov has quit [Remote host closed the connection]
freerobby has joined #ruby
<apeiros> suchness: you're talking about AASM, yes?
<suchness> apeiros: I am not sure I am familiar with that acronym.
GreyHands has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> then I guess you're not using that gem :)
<suchness> apeiros: This is what I am referring to: https://github.com/pluginaweek/state_machine
j4cknewt has joined #ruby
iceyec has quit [Ping timeout: 246 seconds]
<apeiros> ah, the gem's name is indeed state_machine. ok.
<suchness> apeiros: Actuallyl, this one: https://github.com/state-machines/state_machines-activerecord
<suchness> But for my purposes they are pretty much the same
evanjs has joined #ruby
kobain has quit [Read error: Connection reset by peer]
casadei has joined #ruby
<suchness> The end goal is to notify an external observer that the state changed, which then informs some listeners.
skade has quit [Ping timeout: 264 seconds]
<suchness> Right now I just have this in each state machine: after_transition any => any, :do => lambda { |*args| Observer.notify(*args) }
<suchness> Which is fine, but a bit redundant.
ndrei has joined #ruby
lolmaus_ has joined #ruby
DuckZ has joined #ruby
apt-get has quit [Read error: No route to host]
j4cknewt has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
arup_r has joined #ruby
havenwood has joined #ruby
jstacks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<DuckZ> hello, is there a one-liner to print an error message and exit(1) unless status_ok ? is it good to do it like $stderr.puts "zomg err" || exit(1) unless status_ok ?
apt-get has joined #ruby
<havenwood> DuckZ: abort 'eek'
<DuckZ> havenwood: ah thanks :)
bigbadbear has quit [Ping timeout: 250 seconds]
skade has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
aswen has joined #ruby
pontiki has joined #ruby
pontiki has quit [Client Quit]
<DuckZ> so, I'm inside a Dir.chdir(some_path) { } block as hinted here http://stackoverflow.com/questions/10147913/ruby-run-shell-command-in-a-specific-directory
dopamean_ has joined #ruby
<DuckZ> inside the block I have run_cmake_ok = system("cmake", "-DCMAKE_INSTALL_PREFIX=#{install_prefix}", cmake_path)
jgt2 has joined #ruby
<DuckZ> but it looks to me it's still running cmake from the outer working dir
quazimodo has quit [Ping timeout: 264 seconds]
greenarrow has quit [Quit: 500]
jshow has joined #ruby
kies^ has joined #ruby
<DuckZ> but puts Dir.pwd inside the block shows the correct path, so is system not picking up the correct path or what?
chouhoulis has joined #ruby
<[k-> (dont do this in a library)
drewvanstone has quit [Ping timeout: 240 seconds]
greenarrow has joined #ruby
zenguy_pc has joined #ruby
<DuckZ> [k-: me?
<[k-> puts `pwd`?
<[k-> yes, don't abort in a library!
DenSchub has quit [Ping timeout: 250 seconds]
<DuckZ> [k-: that also looks correct
lolmaus_ has quit [Ping timeout: 240 seconds]
<Burgestrand> >> Dir.chdir("/usr") { system("pwd") }
<ruboto> Burgestrand # => (https://eval.in/438992)
<DuckZ> ok, it's not a library, but I can change the code if you have a better way
<Burgestrand> Was worth a try. :)
ruurd has joined #ruby
<havenwood> [k-: What do you mean about not aborting in a library?
vjdhama has quit [Ping timeout: 240 seconds]
<Burgestrand> Either way, to me the chdir will affect the following system call. Dir.chdir("/Users/dev") { system("pwd") } # => /Users/dev
<DuckZ> [k-: ah abort, I thought you said chdir { block }
<DuckZ> Burgestrand: that's also correct... so uhm :/
praveen_p has joined #ruby
Xeago has quit [Remote host closed the connection]
praveen_p has left #ruby [#ruby]
[k- has quit [Read error: Connection reset by peer]
[k- has joined #ruby
<apeiros> Dir.chdir considered evil :(
<apeiros> (in threaded envs, that is)
bigbadbear has joined #ruby
tenderlove has quit [Remote host closed the connection]
<[k-> you know, when you write a json parser and you see not-json
<[k-> don't use abort! you will kill the entire program!
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
zenguy_pc has quit [Ping timeout: 246 seconds]
<apeiros> [k-: then you raise?
<apeiros> ah, haha, yeah, why raise if you can abort. nice.
tenderlove has joined #ruby
hectortrope has quit [Remote host closed the connection]
<[k-> i'll abort your face!
<DuckZ> in my case it's just a sequence of commands
<DuckZ> small script to automate a task, no lib no fancy stuff
drewvanstone has joined #ruby
kobain has joined #ruby
<[k-> it was just a heads up
<[k-> in case you write a library in the future (or now)
dionysus69 has joined #ruby
<DuckZ> yep, good to know :)
Xeago has joined #ruby
I has joined #ruby
zenguy_pc has joined #ruby
iceyec has joined #ruby
hectortrope has joined #ruby
hectortrope has quit [Changing host]
hectortrope has joined #ruby
I is now known as Guest89899
RegulationD has joined #ruby
jimster has quit [Ping timeout: 252 seconds]
agent_meerkat has joined #ruby
ebragaparah has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
skweek has joined #ruby
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mdih has quit [Ping timeout: 244 seconds]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
aaeron has quit [Quit: Leaving.]
mary5030 has joined #ruby
Kendos-Kenlen has quit [Quit: Konversation terminated!]
ruurd has quit [Quit: ZZZzzz…]
kies^ has quit [Ping timeout: 268 seconds]
ebragaparah has joined #ruby
tkuchiki_ has joined #ruby
Xeago has joined #ruby
ruurd has joined #ruby
n008f4g_ has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
tkuchiki_ has quit [Remote host closed the connection]
lolmaus_ has joined #ruby
tkuchiki_ has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
hydrozen has joined #ruby
aswen has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
ragingcake has quit [Quit: ragingcake]
p0wn3d__ has joined #ruby
danny__ has joined #ruby
ragingcake has joined #ruby
Xeago has joined #ruby
apt-get has quit [Read error: Connection reset by peer]
apt-get has joined #ruby
<karapetyan> to be clear in what cases i actually need instance class variables?
gustav_ has joined #ruby
rbennacer has joined #ruby
<karapetyan> only when i have class methods?0
Pumukel has joined #ruby
<[k-> class instance variables*
<[k-> yes, karapetyan
<jhass> karapetyan: whenever you have the urge to use a @@class_var, use a class level instance var
<[k-> there's also just instance variable
cjbottaro has joined #ruby
Kendos-Kenlen has joined #ruby
<karapetyan> jhass: understand
ericjphillips has quit [Quit: Leaving.]
gustav_ has quit [Remote host closed the connection]
jstacks has joined #ruby
jstacks has quit [Client Quit]
godzillaenlacasa has quit [Quit: Peace Out Peeps!]
cball has quit [Ping timeout: 240 seconds]
yottanami has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
polly_wog has joined #ruby
danny__ has left #ruby [#ruby]
<[k-> class Foo; def initialize; @ivar = "hello" end; def bar; @ivar end end; Foo.new.bar
<[k-> >> class Foo; def initialize; @ivar = "hello" end; def bar; @ivar end end; Foo.new.bar
<ruboto> [k- # => "hello" (https://eval.in/439033)
ericjphillips has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ruurd has quit [Quit: ZZZzzz…]
memnon34 has joined #ruby
riotjones has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 240 seconds]
memnon34 has left #ruby [#ruby]
memnon34 has joined #ruby
emilkarl has quit [Quit: emilkarl]
rippa has joined #ruby
ericjphillips has quit [Quit: Leaving.]
leafybas_ has joined #ruby
nolic has quit [Quit: Lost terminal]
vjdhama has joined #ruby
Guest89899 has quit [Quit: This computer has gone to sleep]
skade has quit [Quit: Computer has gone to sleep.]
Xeago has joined #ruby
ericjphillips has joined #ruby
Guest89899 has joined #ruby
Guest89899 has quit [Client Quit]
shay- has quit [Remote host closed the connection]
tsujp has joined #ruby
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krz has joined #ruby
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NeverDie has joined #ruby
leafybasil has quit [Ping timeout: 264 seconds]
segfalt has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
skade has joined #ruby
segfalt has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
FernandoBasso has quit [Quit: Leaving]
gurix has quit [Quit: gurix]
lolmaus_ has quit [Ping timeout: 240 seconds]
agent_meerkat has quit [Ping timeout: 246 seconds]
Xeago has quit [Remote host closed the connection]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
UtkarshRay has quit [Ping timeout: 240 seconds]
tcopeland has quit [Quit: Leaving.]
karapetyan has joined #ruby
voltalio has joined #ruby
memnon34 has quit [Remote host closed the connection]
big|bad|wolf has quit [Ping timeout: 268 seconds]
hoov has joined #ruby
cajone has quit [Ping timeout: 255 seconds]
psy_ has quit [Ping timeout: 246 seconds]
scoot has joined #ruby
linduxed has quit [Read error: Connection reset by peer]
skade has quit [Ping timeout: 250 seconds]
blueOxigen has joined #ruby
<beauby> Is there a construct in ruby for `myArray.iterate_over_each_element_and_return_the_first_for_which_this_block_does_not_fail { |e| e.mightfail }`?
<Burgestrand> beauby: fail as in raise an error?
freerobby has quit [Quit: Leaving.]
<beauby> Burgestrand: raise an error or nil, I could do both
bluOxigen has quit [Ping timeout: 252 seconds]
Siyfion has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
einarj has quit [Remote host closed the connection]
<Burgestrand> beauby: there's Array#find, which returns the first value for which the block returns a truthy value.
<beauby> Burgestrand: mind you, I'm interested in the result of `e.mightfail`, not `e` itself (let's say `.mightfail` is long to compute)
karapetyan has quit [Remote host closed the connection]
<beauby> Sorry for not specifying that before
karapetyan has joined #ruby
skade has joined #ruby
jshow has quit [Quit: jshow]
<Burgestrand> beauby: I see.
gener1c_ has joined #ruby
<Burgestrand> beauby: you could use a lazy enumerator, I believe that would be the cleanest if you're doing it inline somewhere without exploiting an early return.
<Burgestrand> beauby: (incoming…)
<beauby> Burgestrand: That sounds like a great idea
riotjones has joined #ruby
shinnya has joined #ruby
gener1c has quit [Ping timeout: 268 seconds]
Siyfion has joined #ruby
<Burgestrand> beauby: https://repl.it/BKct
freerobby has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
<beauby> Burgestrand: Yeah that's pretty cool, thanks!
Xeago has quit [Remote host closed the connection]
cschneid_ has joined #ruby
<Burgestrand> beauby: another alternative is this: https://repl.it/BKct/1
<Burgestrand> beauby: it assumes you're inside a method that you can do an early return from, and through that you can avoid processing the following elements.
memnon34 has joined #ruby
skade has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 240 seconds]
<Burgestrand> beauby: frankly, I kind of prefer this other way of doing it since it's easier to understand what is happening. Using a lazy enumerator to avoid needless processing is a bit unconventional. :)
<beauby> Burgestrand: Oh right, that's hacky but clever
skade has joined #ruby
cjbottaro has joined #ruby
<beauby> I guess it depends, from a functional point of view, the latter seems a bit odd
nolic has joined #ruby
<Burgestrand> beauby: the first one is probably more familiar to somebody of e.g. a haskell background, but from a ruby point of view (imo) it's a bit weird.
cball has joined #ruby
<Burgestrand> not necessarily weird, but new, modern, whatever.
sdfgsdfg has joined #ruby
<Burgestrand> the second solution is "hacky", but it might also be a valid refactoring target anyway, and it's a bit easier on the implicit details part.
leafybas_ has quit [Remote host closed the connection]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Burgestrand> "hacky" as in it requires a method around it to work.
<Burgestrand> I don't consider it hacky. :)
workmad3 has joined #ruby
leafybasil has joined #ruby
workmad3_ has joined #ruby
sdfgsdfg has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
jottr has joined #ruby
dfockler has joined #ruby
cajone has joined #ruby
Rodya_ has joined #ruby
snapcase has quit [Ping timeout: 246 seconds]
snapcase has joined #ruby
Xeago has joined #ruby
devoldmx has quit [Ping timeout: 244 seconds]
<beauby> Burgestrand: Coming from C, I'm totally fine with #2 :)
aaeron has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
Technodrome has joined #ruby
workmad3_ has quit [Ping timeout: 265 seconds]
bronson has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
Burgestrand has quit []
frmendes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lsmola has quit [Ping timeout: 265 seconds]
nhhagen has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
bigbadbear has quit [Ping timeout: 264 seconds]
darkf has quit [Quit: Leaving]
allomov has quit [Remote host closed the connection]
ericjphillips has quit [Quit: Leaving.]
unop has quit [Ping timeout: 240 seconds]
allomov has joined #ruby
zdman135 has joined #ruby
karapetyan has joined #ruby
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Uranio-238 has joined #ruby
allomov has quit [Remote host closed the connection]
tcopeland has joined #ruby
ebragaparah has quit [Remote host closed the connection]
codenapp_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Chau has joined #ruby
bigbadbear has joined #ruby
ruurd has joined #ruby
newdan has joined #ruby
Uranio-238 has quit [Client Quit]
<newdan> Are there any shorthands for a.method(:b)?
Burgestrand has joined #ruby
Xeago has joined #ruby
Hounddog has quit [Remote host closed the connection]
Uranio-239 has joined #ruby
speaking1ode has joined #ruby
Burgestrand has quit [Client Quit]
The_Phoenix has joined #ruby
Soda has joined #ruby
jgt2 has quit [Ping timeout: 240 seconds]
<[k-> what do you mean?
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
<Sou|cutter> seems short to me
The_Phoenix has quit [Max SendQ exceeded]
Xeago has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
terlar has quit [Ping timeout: 240 seconds]
The_Phoenix has quit [Max SendQ exceeded]
jcromartie has joined #ruby
<[k-> >> _== ->_,*__,&___{____=__.shift;___=__.pop if (!block_given? and __.last.to_proc rescue false);_.public_send ____, *__, &___};_["Hello", :+, "1"]
<ruboto> [k- # => undefined local variable or method `_' for main:Object (NameError) ...check link for more (https://eval.in/439040)
<[k-> oops, extra equal there
The_Phoenix has joined #ruby
<[k-> but it is not shorter by any means
herbst has quit [Remote host closed the connection]
scoot has quit [Remote host closed the connection]
rcvalle has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
<Uranio-239> testing if I can write to channel
frmendes has joined #ruby
TomyLobo has joined #ruby
Igorshp has quit [Remote host closed the connection]
voltalio has joined #ruby
[Butch] has joined #ruby
lele|w has quit [Read error: Connection reset by peer]
yardenbar has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
speaking1ode has quit [Ping timeout: 264 seconds]
speaking1ode has joined #ruby
gurix has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mondayrain has joined #ruby
bigbadbear has quit [Quit: WeeChat 1.2]
<[k-> depends on what you want to write
greenarrow has quit [Quit: Textual IRC Client: www.textualapp.com]
workmad3_ has joined #ruby
Uranio-239 has quit [Quit: Page closed]
scoot has joined #ruby
<shevy> [k- what kind of atrocity!
rodfersou is now known as rodfersou|lunch
michaeldeol has joined #ruby
Soda has quit [Remote host closed the connection]
speaking1ode has quit [Ping timeout: 250 seconds]
voltalio has quit [Ping timeout: 246 seconds]
towski_ has joined #ruby
<[k-> hm, what a stupid rescue
<[k-> i should have used respond_to? instead
drptbl has quit [Ping timeout: 246 seconds]
Kendos-Kenlen has quit [Quit: Konversation terminated!]
SCHAAP137 has joined #ruby
workmad3_ has quit [Ping timeout: 255 seconds]
scoot has quit [Remote host closed the connection]
lolmaus_ has joined #ruby
benlovell has quit [Quit: leaving]
DenSchub has joined #ruby
amclain has joined #ruby
agent_meerkat has joined #ruby
<karapetyan> if i extend module and in that module exist method and in that method defined @variable is it instance variable or class instance variable?
hobodave has joined #ruby
<[k-> instance variable
hydrozen has joined #ruby
Xeago has quit [Remote host closed the connection]
Chau has quit [Quit: Leaving]
rushed has joined #ruby
voltalio has joined #ruby
tejasmanohar has joined #ruby
einarj has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
codecop has joined #ruby
voltalio has quit [Max SendQ exceeded]
terlar has joined #ruby
marchi has joined #ruby
tvw has quit [Remote host closed the connection]
marchi has quit [Client Quit]
ptierno has joined #ruby
marchi has joined #ruby
Pathfinder_ has joined #ruby
jgt2 has joined #ruby
towski_ has quit [Remote host closed the connection]
<karapetyan> [k-: seems not
last_staff has joined #ruby
IrishGringo has joined #ruby
<[k-> that *could* mean you weren't descriptive enough
skweek has quit [Remote host closed the connection]
* [k- revises extend
Xeago has joined #ruby
<shevy> karapetyan it depends on where you defined it
quiez has quit [Ping timeout: 268 seconds]
Musashi007 has joined #ruby
<[k-> extend adds it as class methods, sorry
<[k-> I was confused
<karapetyan> shevy: look at gist above please @instances ||= [] ## in this case its instance CLASS variable !?
<shevy> in your example you did not define a class instance variable
kidoz has joined #ruby
<[k-> therefore, it is a class instance variable
<karapetyan> =)
<[k-> karapetyan: the correct term is class instance variable
<karapetyan> ok.
voltalio has joined #ruby
eosinx has joined #ruby
Miron has quit [Ping timeout: 256 seconds]
<karapetyan> so all variables started at @ and defined in modules that will be extended will be a class instance variables?
jordanm has quit [Ping timeout: 240 seconds]
memnon34 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
jordanm has joined #ruby
marchi has quit [Quit: leaving]
<karapetyan> correct?)
<shevy> it depends on where you have defined these @
eosinx has left #ruby [#ruby]
rezzack has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
kith_ has joined #ruby
helpa-bot has joined #ruby
__butch__ has joined #ruby
Miron has joined #ruby
elton_ has joined #ruby
<karapetyan> shevy: hm i think no difference where exactly i define @ if i define it in module that will be extended that means all methods in this module will be a class methods. Correct? And therefore this @ variables can be a part of class definition code or part of class methods and in a both cases that will be a class instance variable?
frog0909 has joined #ruby
scripore has joined #ruby
Spami_ has joined #ruby
xgoo has joined #ruby
chihhsin_ has joined #ruby
r0bby_ has joined #ruby
kyle___ has joined #ruby
ldnunes_ has joined #ruby
ckinniburgh has joined #ruby
jgt2 has quit [Ping timeout: 240 seconds]
stamina1 has joined #ruby
leslie has joined #ruby
leslie has quit [Changing host]
leslie has joined #ruby
shortdudey123_ has joined #ruby
Guest97149 has quit [Quit: Lost terminal]
mahlon has quit [Read error: Connection reset by peer]
RandyT has quit [Ping timeout: 244 seconds]
redlegion has quit [Ping timeout: 244 seconds]
last_staff has quit [Ping timeout: 244 seconds]
cjbottaro has quit [Ping timeout: 244 seconds]
sshuff|gone has quit [Ping timeout: 244 seconds]
Matadoer has quit [Ping timeout: 244 seconds]
ptierno has quit [Ping timeout: 244 seconds]
gregf has quit [Ping timeout: 244 seconds]
sethetter has quit [Ping timeout: 244 seconds]
wlanboy has quit [Ping timeout: 244 seconds]
Takumo has quit [Ping timeout: 244 seconds]
dopamean1 has joined #ruby
jaygen_ has joined #ruby
helpa has quit [Ping timeout: 244 seconds]
RandyT_ has joined #ruby
mahlon_ has joined #ruby
oddmunds has quit [Ping timeout: 244 seconds]
certainty has quit [Ping timeout: 244 seconds]
chihhsin has quit [Read error: Connection reset by peer]
[Butch] has quit [Ping timeout: 244 seconds]
zdman135 has quit [Ping timeout: 244 seconds]
dopamean_ has quit [Ping timeout: 244 seconds]
evanjs has quit [Ping timeout: 244 seconds]
ldnunes has quit [Ping timeout: 244 seconds]
Spami has quit [Ping timeout: 244 seconds]
iyan has quit [Ping timeout: 244 seconds]
stamina has quit [Ping timeout: 244 seconds]
chthon has quit [Ping timeout: 244 seconds]
shortdudey123 has quit [Ping timeout: 244 seconds]
ekleog has quit [Ping timeout: 244 seconds]
dseitz has quit [Ping timeout: 244 seconds]
evanjs_ has joined #ruby
kith has quit [Ping timeout: 244 seconds]
bodie_ has quit [Ping timeout: 244 seconds]
Synthead has quit [Ping timeout: 244 seconds]
jaygen has quit [Ping timeout: 244 seconds]
kyle__ has quit [Ping timeout: 244 seconds]
elton has quit [Ping timeout: 244 seconds]
leslie_ has quit [Ping timeout: 244 seconds]
_ko1 has quit [Ping timeout: 244 seconds]
frog0909_ has quit [Ping timeout: 244 seconds]
axisys has quit [Ping timeout: 244 seconds]
unreal has quit [Ping timeout: 244 seconds]
nomadic has quit [Ping timeout: 244 seconds]
Papierkorb has quit [Ping timeout: 244 seconds]
bhorn1 has quit [Ping timeout: 244 seconds]
camt has quit [Ping timeout: 244 seconds]
p0wn3d__ has quit [Ping timeout: 255 seconds]
iateadonut has quit [Quit: Leaving.]
robbyoconnor has quit [Ping timeout: 244 seconds]
hays has quit [Ping timeout: 244 seconds]
LiquidInsect has quit [Ping timeout: 244 seconds]
hays has joined #ruby
LiquidInsect has joined #ruby
hays has joined #ruby
hays has quit [Changing host]
xgoo is now known as iyan
TakumoKatekari has joined #ruby
TakumoKatekari has quit [Changing host]
TakumoKatekari has joined #ruby
sethetter has joined #ruby
axisys has joined #ruby
wlanboy_ has joined #ruby
camt has joined #ruby
oddmunds1 has joined #ruby
Papierkorb has joined #ruby
<evanjs_> So I hear that ruby is slowly being replaced with golang
nomadic_ has joined #ruby
certainty has joined #ruby
sshuff|gone has joined #ruby
<adaedra> what
ptierno has joined #ruby
Synthead has joined #ruby
shortdudey123_ is now known as shortdudey123
unreal has joined #ruby
lianj has quit [Remote host closed the connection]
bazbing80 has quit [Ping timeout: 272 seconds]
lianj has joined #ruby
lianj has quit [Changing host]
lianj has joined #ruby
bricker has joined #ruby
bhorn1|away has joined #ruby
bhorn1|away is now known as bhorn1
bodie_ has joined #ruby
<[k-> no it is not
ekleog has joined #ruby
bazbing80 has joined #ruby
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
redlegion has joined #ruby
Matadoer has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
gregf has joined #ruby
Xeago has joined #ruby
<shevy> karapetyan you use extend, so you add all instance components of a module man
<shevy> karapetyan don't use extend if you don't want this functionality!
<karapetyan> shevy: ahhh
hahuang61 has joined #ruby
<jhass> evanjs_: the blogging crowd moves on since it wrote all there's to write about ruby by now. It's kinda a sign that the community matures ;)
<shevy> I think you can achieve the same via .instance_eval or .class_eval too but you probably have to do it for the whole module, so extend is simpler in this case
slackbotgz has joined #ruby
<newdan> Oh wrt my wanting a shorthand for a.method(b) I just want a slightly more elegant way of writing some_array.map &SomeClass.method(:some_method)
<newdan> But if a.method(:b) is as good as it gets then that's fine, just curious
pyoor has left #ruby [#ruby]
scoot has joined #ruby
Synthead has quit [Ping timeout: 244 seconds]
nfk has joined #ruby
<jhass> evanjs_: go and ruby have quite distinct usecases and benefits, one will never replace the other
Xeago has quit [Remote host closed the connection]
p0wn3d__ has joined #ruby
JDiPierro has quit [Remote host closed the connection]
leslie has quit [Ping timeout: 264 seconds]
<adaedra> newdan: some_array.map &:some_method
mondayrain has quit [Quit: Leaving]
<jhass> newdan: it pretty much is, I mean you can invent all sorts of crazy pseudo syntaxes with aliases, but meh
krisquigley has quit [Remote host closed the connection]
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
treehug88 has joined #ruby
leslie has joined #ruby
leslie has quit [Changing host]
leslie has joined #ruby
<jhass> I prefer to just write it out for those
karapetyan has quit [Remote host closed the connection]
krisquigley has joined #ruby
last_staff has joined #ruby
karapetyan has joined #ruby
<newdan> jhass: Sounds good :) Still new to Ruby so didn't know if there was something more idiomatic
<jhass> " {|e| (e) }" is just the same amount of characters than "&.method(:)" and much more readable
skade has joined #ruby
<newdan> That's why I wanted a shorthand :P
<newdan> But I get what you're saying
<adaedra> Better to write something standard and easy to be understood by everyone :)
hahuang61 has quit [Ping timeout: 240 seconds]
unop has joined #ruby
hahuang61 has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
DuckZ has quit [Quit: Konversation terminated!]
<[k-> i propose an extension to the current syntax then. &:method(arg)
JDiPierro has joined #ruby
jgt2 has joined #ruby
ramfjord has joined #ruby
greenbigfrog has joined #ruby
<greenbigfrog> Hi... I'm trying to do this: uri = URI.parse("https://gist.githubusercontent.com/" + configatron.githubuser + "/" + configatron.gist "/raw/")
<greenbigfrog> I think this is not how I'm supposed to do it with ruby... How do I have to do that?
<adaedra> I don't get what you're trying to do
beauby has quit [Ping timeout: 252 seconds]
<greenbigfrog> parse a dynamic url...
Miron has quit [Ping timeout: 256 seconds]
<adaedra> You may miss a + before "/raw/"
j4cknewt has joined #ruby
<greenbigfrog> ok...
<greenbigfrog> thanks
<adaedra> Also, prefer string interpolation when assembling a string: "#{a}-#{b}" instad of a + "-" + b
Miron has joined #ruby
<greenbigfrog> like this? uri = URI.parse("https://gist.githubusercontent.com/#{configatron.githubuser}/#{configatron.gist}/raw/")
<adaedra> Looks like it. Does it works?
<greenbigfrog> yep...
memnon34 has joined #ruby
<greenbigfrog> thanks
greenbigfrog has left #ruby [#ruby]
beauby has joined #ruby
Siyfion has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago has joined #ruby
FernandoBasso has joined #ruby
Synthead has joined #ruby
<bougyman> gregf: why not use join?
<bougyman> oh, he's gone.
hahuang61 has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Excess Flood]
<bougyman> I'd use configatron = OpenStruct.new(githubuser: 'bougyman', gist: 'xryd7'); uri = URI.parse(File.join("https://gist.githubusercontent.com", configatron.githubuser, configatron.gist, "/raw/")) => #<URI::HTTPS:0x000000015531a0 URL:https://gist.githubusercontent.com/boug
c0m0 has quit [Ping timeout: 246 seconds]
<bougyman> yman/xryd7/raw/>
<bougyman> and I didn't mean to paste that
<bougyman> [8] pry(main)>
djbkd has joined #ruby
ebragaparah has joined #ruby
voltalio has joined #ruby
<gregf> two gregf's enter only one remains
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dmolina has quit [Quit: Leaving.]
snockerton has joined #ruby
<hanmac> bougyman: hm also do you need the two / at the raw part?
<bougyman> no, could just be 'raw'
<bougyman> missed that one
pragmatism has joined #ruby
ragingcake has quit [Quit: ragingcake]
VeryBewitching has joined #ruby
ebragaparah has quit [Remote host closed the connection]
michael_mbp has joined #ruby
<bougyman> we require using File.join on url creation from strings now
<bougyman> too many missing (or extra) / doing it with interpolation/concatenation
ebragaparah has joined #ruby
The_Phoenix has quit [Read error: No route to host]
petricore has joined #ruby
yqt has joined #ruby
phutchins has quit [Ping timeout: 252 seconds]
maletor has joined #ruby
rdark has quit [Quit: leaving]
parduse has quit []
mondayrain has joined #ruby
ghoti has quit [Ping timeout: 246 seconds]
scripore has quit [Quit: This computer has gone to sleep]
<nolic> is it safe to use File.join for an url ? I mean the separator for file separator could not be a '/' for some weird os. right ?
ramfjord has quit [Ping timeout: 244 seconds]
timonv has joined #ruby
djbkd has quit [Ping timeout: 244 seconds]
[k- has quit [Ping timeout: 246 seconds]
Igorshp has joined #ruby
Respek has joined #ruby
[k- has joined #ruby
ebragaparah has quit [Ping timeout: 268 seconds]
lolmaus_ has quit [Read error: Connection reset by peer]
lolmaus_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
ghoti has joined #ruby
devoldmx has joined #ruby
scripore has joined #ruby
pheuko has quit [Quit: pheuko]
NeverDie has quit [Quit: http://radiux.io/]
djbkd has joined #ruby
zdman135 has joined #ruby
mondayrain has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
<zdman135> hey
<skakri> nolic: I don't think so, I'd use list with .join '/'
ta has joined #ruby
<nolic> ok
scripore has quit [Client Quit]
towski_ has joined #ruby
gusTester1 has joined #ruby
j4cknewt_ has joined #ruby
Pathfinder_ has quit [Ping timeout: 240 seconds]
devoldmx has quit [Ping timeout: 246 seconds]
gusTester has quit [Ping timeout: 240 seconds]
yeticry has quit [Read error: Connection reset by peer]
NeverDie has joined #ruby
Pathfinder_ has joined #ruby
firstdayonthejob has joined #ruby
j4cknewt has quit [Ping timeout: 240 seconds]
j4cknewt_ has quit [Read error: Connection reset by peer]
Timba-as has quit [Quit: Be back later ...]
j4cknewt has joined #ruby
ragingcake has joined #ruby
rushed has quit [Quit: rushed]
dopie has joined #ruby
ragingcake has quit [Client Quit]
ruurd has quit [Quit: ZZZzzz…]
slackbotgz has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 240 seconds]
lolmaus_ has quit [Ping timeout: 240 seconds]
yeticry has joined #ruby
aaeron has quit [Quit: Leaving.]
aswen has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
urika has quit [Quit: Leaving]
postmodern has joined #ruby
krisquigley has joined #ruby
millerti has quit [Read error: Connection reset by peer]
aaeron has joined #ruby
hobodave has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
banjara has joined #ruby
banjara1 has joined #ruby
FernandoBasso1 has joined #ruby
rushed has joined #ruby
hfp_work has joined #ruby
<Moblin> Question. If I wanted to take one array, [a,b,c] and I wanted to run it through another array [x, y, z, a, , r, t, c] and return true if any instance of a,b,c in the second only occurred in that order... what method should I use?
ptierno has quit [Quit: leaving]
beauby has quit [Ping timeout: 264 seconds]
yeticry has quit [Ping timeout: 250 seconds]
ptierno has joined #ruby
stamina1 has quit [Quit: WeeChat 1.3]
bb010g has joined #ruby
newdan has left #ruby [#ruby]
beast has quit [Quit: Leaving]
yeticry has joined #ruby
<Moblin> I'm thinking I'd have to use the enumerable select to go through the second array looking for matches... and then somehow run a check on those to determine the correct order. But I'm pretty sure I'm missing something basic and vital to make this logic play out correctly.
djbkd has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
<[k-> a subsequence!
ragingcake has joined #ruby
FernandoBasso has quit [Ping timeout: 255 seconds]
Lucky__ has joined #ruby
Kendos-Kenlen has joined #ruby
banjara has quit [Ping timeout: 240 seconds]
krisquigley has quit [Ping timeout: 244 seconds]
<Moblin> Hm
<Moblin> Looking that up presently
workmad3_ has joined #ruby
Macaveli has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
jgt2 has quit [Ping timeout: 255 seconds]
Macaveli has quit [Max SendQ exceeded]
IrishGringo has quit [Ping timeout: 240 seconds]
Macaveli has joined #ruby
Macaveli has quit [Max SendQ exceeded]
Macaveli has joined #ruby
Pathfinder_ has quit [Ping timeout: 255 seconds]
apt-get has joined #ruby
apt-get has quit [Remote host closed the connection]
hanmac has joined #ruby
workmad3_ has quit [Ping timeout: 252 seconds]
drptbl has joined #ruby
__butch__ has quit [Quit: Linkinus - http://linkinus.com]
leafybasil has quit [Ping timeout: 246 seconds]
scoot has quit [Remote host closed the connection]
[Butch] has joined #ruby
blaxter has quit [Ping timeout: 264 seconds]
rodfersou|lunch is now known as rodfersou
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 272 seconds]
Musashi007 has quit [Quit: Musashi007]
apt-get has joined #ruby
rushed has quit [Quit: rushed]
shadoi has joined #ruby
apt-get has quit [Client Quit]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ragingcake has quit [Quit: ragingcake]
last_staff has quit [Quit: last_staff]
UtkarshRay has joined #ruby
chihhsin_ has quit [Quit: leaving]
chihhsin has joined #ruby
gix has quit [Ping timeout: 252 seconds]
voltalio has joined #ruby
Pupeno_ has joined #ruby
platzhirsch has left #ruby [#ruby]
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
Pupeno has quit [Ping timeout: 265 seconds]
scoot has joined #ruby
to_json has joined #ruby
<drbrain> nolic: there's also URI.join if you have a URI instance
andikr has quit [Remote host closed the connection]
<to_json> If I have the name and version of a gem, is there any way to figure out what dependencies it will install *before* installing it?
stan has quit [Ping timeout: 252 seconds]
<to_json> preferably from within ruby, but shell works too in a pinch
atomical_ has joined #ruby
<drbrain> to_json: gem dep -r name -v version
gix has joined #ruby
yfeldblum has joined #ruby
djbkd has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<to_json> omg thang you
<to_json> *thank
<to_json> drbrain++
ReK2 has quit [Remote host closed the connection]
vF3hNGxc47h8 has joined #ruby
* pipework wonders what drbrain's next evolution looks like
<karapetyan> when Extend module does it have same method like included? when mixin module?
hfp_work has quit [Ping timeout: 246 seconds]
<karapetyan> not same... similar
atomical has quit [Ping timeout: 255 seconds]
<shadoi> Extend adds class methods
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
jcoe has joined #ruby
<karapetyan> shadoi: ah :)
Xeago has joined #ruby
sagittarian has joined #ruby
<karapetyan> tired )
scoot has quit [Remote host closed the connection]
hfp_work has joined #ruby
craysiii has joined #ruby
hahuang65 has joined #ruby
aswen has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<Moblin> I dont know how to use the subsequence, but I got it working through a select includes / followed by a #each < comparison of the remainder. Thanks
Moblin is now known as Ebok
scoot_ has joined #ruby
tejasmanohar_ has joined #ruby
<sagittarian> I'm rewriting a bunch of code in Ruby that was originally written in Python, and the code makes extensive use of Python's decorators
nateberkopec has joined #ruby
<sagittarian> can anyone point me to features/techniques in Ruby that can be used to a similar effect as decorators in Python?
hahuang65 has quit [Ping timeout: 246 seconds]
tejasmanohar has quit [Ping timeout: 240 seconds]
tejasmanohar_ is now known as tejasmanohar
ragingcake has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
<bricker> sagittarian: the closest thing I can think of is alias_method_chain from Rails, but there's nothing built-in to Ruby similar to Python's decorators unfortunately
krisquigley has joined #ruby
<bricker> even alias_method_chain isn't that close
<sagittarian> rails is fine, this is a plugin for a rails app
<sagittarian> it doesn't have to be the exact same thing, just as long as it allows me to keep approximately the same structure
Xeago has quit [Remote host closed the connection]
<sagittarian> if i have some logic that I was to add to various different methods by wrapping them, is there some kind of metaprogramming i could use to keep all that logic in a single place?
NeverDie has quit [Quit: http://radiux.io/]
yqt has quit [Ping timeout: 255 seconds]
kinduff has joined #ruby
kinduff has quit [Max SendQ exceeded]
krisquigley has quit [Ping timeout: 246 seconds]
dionysus70 has joined #ruby
NeverDie has joined #ruby
kinduff has joined #ruby
skweek has joined #ruby
yardenbar has joined #ruby
n008f4g_ has quit [Ping timeout: 246 seconds]
FernandoBasso has joined #ruby
hydrozen has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
dionysus70 is now known as dionysus69
FernandoBasso1 has quit [Ping timeout: 255 seconds]
Coldblackice has joined #ruby
kinduff has quit [Client Quit]
wildlander has joined #ruby
speaking1ode has joined #ruby
kinduff has joined #ruby
TheHodge has joined #ruby
IrishGringo has joined #ruby
tomphp has joined #ruby
havenwood has joined #ruby
IrishGringo has quit [Remote host closed the connection]
agent_meerkat has left #ruby [#ruby]
frmendes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jamesaxl|2 has joined #ruby
dfockler has quit [Remote host closed the connection]
baweaver has joined #ruby
kobain has quit [Ping timeout: 264 seconds]
jamesaxl has quit [Ping timeout: 246 seconds]
youngbaks has joined #ruby
pandaant has joined #ruby
kinduff has quit []
frmendes has joined #ruby
baweaver has quit [Remote host closed the connection]
<sagittarian> does anyone understanding this: http://yehudakatz.com/2009/07/11/python-decorators-in-ruby/ (and can give me a pointer regarding how it works)?
railz990 has joined #ruby
kinduff has joined #ruby
<railz990> Hi. What is catch and throw used for in Ruby?
<hal_9000__> railz990: catch and throw are advanced flow control
<hal_9000__> not for exceptions
<railz990> hal_9000__: Yes I know. What is it used for then?
<hal_9000__> sort of like a very limited forward-only goto
skweek has quit [Ping timeout: 240 seconds]
<railz990> Is it used often?
<hal_9000__> as a weird example, suppose you have four nested loops and want to jump out of the inner three but not the fourth
kobain has joined #ruby
<hal_9000__> not often, i think
pwnd_nfsw has joined #ruby
<railz990> hal_9000___: oh so basically it lets you choose where you want to break out to?
railz990 has quit [Client Quit]
<hal_9000__> yes, you have a block associated with the catch, and the throw jumps out of that block, as i recall
pwnd_nsfw has quit [Ping timeout: 240 seconds]
agent_meerkat has joined #ruby
cantaberry has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
scripore has joined #ruby
polly_wog has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
deeej has joined #ruby
nzst has joined #ruby
pwnd_nfsw is now known as pwnd_nsfw
dfockler has joined #ruby
baweaver has joined #ruby
EmeraldExplorer has joined #ruby
havenwood has quit [Ping timeout: 244 seconds]
lulzmachine has joined #ruby
sharkman has joined #ruby
<sharkman> im working on a project on bitbucket. should i be adding the schema.db onto bitbucket after i make migrations
<sharkman> or will the other computers generate their own schema.db after running the migrations locally
dasher00 has joined #ruby
havenwood has joined #ruby
<baweaver> params: that'd be rails
ramfjord has joined #ruby
<baweaver> dangit scrollback
dorei has joined #ruby
skade has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
jgpawletko has joined #ruby
dfockler has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
dfockler has joined #ruby
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> beaver is back \o/
hydrozen has joined #ruby
<baweaver> you do know that highlights for me now, right
skweek has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
kadoppe has quit [Ping timeout: 250 seconds]
<adaedra> nice way to make people learn to <Tab>.
dseitz has joined #ruby
gustav_ has joined #ruby
kadoppe has joined #ruby
<shevy> hah
radgeRayden has joined #ruby
r0bby_ has quit [Ping timeout: 250 seconds]
solocshaw has joined #ruby
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
NeverDie has joined #ruby
nhhagen has joined #ruby
karapetyan has quit [Remote host closed the connection]
jobewan has joined #ruby
baweaver has quit [Remote host closed the connection]
ruurd has joined #ruby
roxtrongo has quit [Remote host closed the connection]
toretore has joined #ruby
scripore has joined #ruby
priklyp34r has quit [Quit: Lost terminal]
nux443 has quit [Quit: Lost terminal]
vF3hNGxc47h8 has quit [Ping timeout: 252 seconds]
j4cknewt_ has joined #ruby
nhhagen has quit [Client Quit]
leafybasil has joined #ruby
workmad3_ has joined #ruby
j4cknewt has quit [Ping timeout: 240 seconds]
krz has quit [Quit: WeeChat 1.2]
ldnunes_ has quit [Quit: Leaving]
aibot has quit [Remote host closed the connection]
ldnunes has joined #ruby
aibot has joined #ruby
sharkman has quit [Quit: Leaving]
yardenbar has quit [Ping timeout: 250 seconds]
leafybasil has quit [Ping timeout: 240 seconds]
unop has quit [Ping timeout: 252 seconds]
Anti-Pizza has joined #ruby
workmad3_ has quit [Ping timeout: 250 seconds]
scoot_ has quit [Remote host closed the connection]
scoot has joined #ruby
scoot has quit [Remote host closed the connection]
mosez has quit [Ping timeout: 256 seconds]
mosez has joined #ruby
tsujp has quit [Read error: No route to host]
bronson has quit [Read error: Connection reset by peer]
SenpaiSilver has quit [Quit: Leaving]
bronson has joined #ruby
tsujp has joined #ruby
krz has joined #ruby
jdawgaz has joined #ruby
failshell has joined #ruby
aaeron has quit [Quit: Leaving.]
NeverDie has quit [Quit: http://radiux.io/]
aaeron has joined #ruby
kinduff has quit []
moparisthebest has joined #ruby
<sagittarian> is there some metaprogrammy way to intercept a method call on a object, even if the relevant method is defined?
<moparisthebest> Any idea how I'd go about fixing or getting around this error which is crashing a program: /usr/local/lib/ruby/2.0.0/set.rb:86: stack level too deep (SystemStackError)
iyan has quit [Quit: iyan]
<jhass> moparisthebest: show the part of the stacktrace that goes through your code and the corresponding code
<pipework> sagittarian: What'd you google?
aaeron has quit [Client Quit]
<pipework> There's Kernel#set_trace_func, but it won't be fast.
vjdhama_ has joined #ruby
<moparisthebest> jhass: that's the entire message
<sagittarian> pipework: nothing, i'm just speculating
<jhass> moparisthebest: really? so how do you produce it?
<sagittarian> i'm thinking maybe i could define something that would work kind of like alias_method or something
<pipework> sagittarian: Yeah, you might want to spend 2s googling about then.
<pipework> Just for the future.
<sagittarian> pipework: about what?
jenrzzz has joined #ruby
<sagittarian> i don't know what to google
<sagittarian> that's why i'm asking
<pipework> sagittarian: 'ruby method called hook'
podman has joined #ruby
<moparisthebest> the output to console is just:
<moparisthebest> creating posts
<moparisthebest> \/usr/local/lib/ruby/2.0.0/set.rb:86: stack level too deep (SystemStackError)
<[k-> I'm sure Ox0dea will have something on your
<pipework> Pretty much just break down your words into the most likely short phrases.
<sagittarian> pipework: excellent, thanks
<pipework> Level up your google-fu!
<[k-> s/your/this/
<pipework> It's probably the best skill to have.
NeverDie has joined #ruby
vjdhama has quit [Ping timeout: 246 seconds]
yardenbar has joined #ruby
hashrocket has joined #ruby
<jhass> moparisthebest: best hit up discourse support then
<moparisthebest> I don't really *know* ruby all that well, but I don't see anything to do with recursion at a glance, that'd be a recursion-caused-error right?
Timba-as has joined #ruby
Lucky__ has quit [Ping timeout: 264 seconds]
<jhass> most likely, yeah
sepp2k has quit [Quit: Leaving.]
circ-user-kSAP4 has joined #ruby
hoov has quit [Quit: Leaving]
<moparisthebest> but strangely the recursion appears to be in set.rb, I also don't see recursion in there...
rushed has joined #ruby
suchness has quit [Remote host closed the connection]
<jhass> you should hit up an author of that script really
speaking1ode has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
<drbrain> moparisthebest: getting a SystemStackError in set.rb doesn't mean that set.rb has recursion
<drbrain> it just happens to be the place where the stack got to deep
terlar has quit [Ping timeout: 260 seconds]
Anti-Pizza has quit [Quit: Quit]
chipotle has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<moparisthebest> drbrain: is there a way to know or print the entire stacktrace so I know where the recursion even is?
<shevy> hmm set_trace_var works with globals, I assume there is no way to have this work for an instance variable of your class?
ruurd has quit [Quit: ZZZzzz…]
<moparisthebest> or I guess maybe if I knew ruby I could spot it haha
devoldmx has joined #ruby
UtkarshRay has quit [Quit: Leaving]
yqt has joined #ruby
aaeron has joined #ruby
apt-get has joined #ruby
xet7 has joined #ruby
ruurd has joined #ruby
workmad3_ has joined #ruby
segfalt has joined #ruby
<toretore> moparisthebest: how are you running it?
<jhass> normally it would print more trace and I can't spot anything that would hide it offhand, hence my suggestion to get in contact with the maintainers
rushed has quit [Quit: rushed]
treehug8_ has joined #ruby
Anti-Pizza has joined #ruby
<jhass> trying to sift through to 700loc of ruby without even being able to reproduce the error locally just doesn't work, knowing Ruby or not doesn't matter much ;)
devoldmx has quit [Ping timeout: 268 seconds]
dionysus69 has joined #ruby
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ragingcake has quit [Quit: ragingcake]
spider-mario has joined #ruby
asxbr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NeverDie has quit [Quit: http://radiux.io/]
workmad3_ has quit [Ping timeout: 250 seconds]
speaking1ode has joined #ruby
rbennacer has quit [Remote host closed the connection]
but3k4 has joined #ruby
cschneid_ has quit [Remote host closed the connection]
asxbr has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
sdothum has quit [Ping timeout: 260 seconds]
Anti-Pizza has quit [Quit: Quit]
allomov has joined #ruby
psy_ has joined #ruby
rbennacer has joined #ruby
psy_ has quit [Max SendQ exceeded]
sdothum has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
<moparisthebest> toretore: 'ruby smf2.rb'
sepp2k has joined #ruby
<moparisthebest> jhass: yes I understand that, I am submitting a bug, but is there a way to increase the maximum stack depth some easy way?
<moparisthebest> of course depending how and why it's recursing, it may or may not help
Gnomethrower has quit [Quit: Textual IRC Client: www.textualapp.com]
jdawgaz has joined #ruby
NeverDie has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
frmendes has quit [Ping timeout: 256 seconds]
rbennacer has quit [Remote host closed the connection]
asxbr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yardenbar has quit [Ping timeout: 260 seconds]
asxbr has joined #ruby
Technodrome has quit [Quit: Technodrome]
Soda has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
djbkd has quit [Remote host closed the connection]
rushed has joined #ruby
<shevy> isn't it already infinitely recursing
pragmatism has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pragmatism has joined #ruby
nym has joined #ruby
prestorium_ has joined #ruby
<moparisthebest> shevy: I doubt it's infinitely recursing because the script works for others with (presumably) smaller forums
dhollinger has joined #ruby
<moparisthebest> anyway it wouldn't hurt to up the stack depth and run it again just to see
ebragaparah has joined #ruby
to_json has quit [Ping timeout: 246 seconds]
roxtrongo has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
codecop has quit [Quit: Išeinu]
to_json has joined #ruby
prestorium has quit [Ping timeout: 268 seconds]
scoot has joined #ruby
krz has quit [Quit: WeeChat 1.2]
segfalt has quit [Quit: segfalt]
Respek has quit [Read error: Connection reset by peer]
evanjs_ has quit [Remote host closed the connection]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ebragaparah has quit [Ping timeout: 264 seconds]
segfalt has joined #ruby
voltalio has joined #ruby
nami has joined #ruby
MeMoc has joined #ruby
roxtrong_ has joined #ruby
frmendes has joined #ruby
pandaant has quit [Remote host closed the connection]
gurix has quit [Quit: gurix]
jottr has joined #ruby
segfalt has quit [Client Quit]
voltalio has quit [Ping timeout: 240 seconds]
roxtrongo has quit [Ping timeout: 246 seconds]
treehug8_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
frmendes has quit [Ping timeout: 256 seconds]
apt-get has quit [Ping timeout: 244 seconds]
apt-get has joined #ruby
ckinniburgh has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
omerh has joined #ruby
djbkd has joined #ruby
Igorshp has quit [Remote host closed the connection]
but3k4 has quit [Ping timeout: 246 seconds]
karapetyan has quit [Ping timeout: 240 seconds]
mhib has joined #ruby
skweek has joined #ruby
phutchins has joined #ruby
Nirgali43 has joined #ruby
tomphp has joined #ruby
Nirgali42 has quit [Quit: leaving]
Xeago has joined #ruby
sp4rrow has joined #ruby
prefixed has joined #ruby
treehug8_ has joined #ruby
<prefixed> what is "respond_to"
slayerjain has joined #ruby
<apeiros> &ri Object#respond_to?
Nirgali43 is now known as Nirgali42
<apeiros> prefixed: ^
<apeiros> note that the "?" is part of the name. "respond_to" != "respond_to?"
j2k_ has quit [Quit: kthxbai]
<prefixed> what does "responds" mean
<prefixed> also, why doesn't the api state something similar to: respond_to? is a Ruby method for detecting whether the class has a particular method on it.
scoot has quit [Remote host closed the connection]
hydrozen has joined #ruby
<prefixed> i mean, i guess it's more confusing to say "responds." if you want to confuse users, that's probably the correct choice
gplex has joined #ruby
scoot has joined #ruby
FernandoBasso has quit [Quit: Leaving]
ebragaparah has joined #ruby
nullFxn has joined #ruby
<gplex> Hi. Can someone please explain what symbols are in the simplest way possible?
<prefixed> although, you could also say "Returns true if obj does some stuff to the given method. That's really confusing and vague to boot!
krisquigley has joined #ruby
ebragaparah has quit [Remote host closed the connection]
voltalio has joined #ruby
frmendes has joined #ruby
<apeiros> prefixed: "the class has a method" is not the same as "an object responds to a method call"
<shevy> prefixed whether your object can respond to a given method or whether it can not. x = 'cat'; x.respond_to? :size
white_magic has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
<apeiros> and "to respond" means "you can call that method without getting a NoMethod error"
deg_ has joined #ruby
<shevy> prefixed you won't run out of time ever if you try to find imperfect documentation in ruby ;)
Pumukel has quit [Ping timeout: 246 seconds]
centrx has joined #ruby
shellie_ has quit [Quit: Lost terminal]
nullFxn has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
rezzack has quit [Quit: Leaving.]
failshel_ has joined #ruby
lemur has joined #ruby
rezzack has joined #ruby
scoot has quit [Ping timeout: 264 seconds]
lemur is now known as baweaver_
baweaver has quit [Disconnected by services]
baweaver_ is now known as baweaver
krisquigley has quit [Ping timeout: 260 seconds]
marianogg9 has joined #ruby
deg__ has quit [Ping timeout: 265 seconds]
marianogg9 has left #ruby [#ruby]
failshell has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
hahuang61 has joined #ruby
jottr_ has joined #ruby
<baweaver> !mute sharkman
speaking1ode has quit [Ping timeout: 265 seconds]
<prefixed> hey. what does it mean if a method's last line is a variable?
<baweaver> it has a variable in the last line
<dfockler> It's implicit return
<prefixed> that's annoying!
<baweaver> >> def foo; a = 1 end; foo
<ruboto> baweaver # => 1 (https://eval.in/439137)
<baweaver> you really are not going to like ruby then.
<prefixed> you know, i think i find ruby to be the second most annoying language out there these days
<prefixed> bash = #1
<baweaver> then why are you on a ruby channel?
<prefixed> because i have no choice but to write ruby
<dfockler> haha
jottr has quit [Ping timeout: 240 seconds]
<Sou|cutter> If you write a lot of ruby, it becomes hard to understand why other languages don't have implicit returns
apt-get has quit [Read error: No route to host]
<baweaver> most functional languages don't/
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dstarh has joined #ruby
<baweaver> ruby just happens to borrow that concept as well.
ngscheurich has joined #ruby
apt-get has joined #ruby
grotewold has joined #ruby
apt-get has quit [Read error: Connection reset by peer]
omerh has quit [Remote host closed the connection]
yardenbar has joined #ruby
grotewold has quit [Client Quit]
bruno- has joined #ruby
<prefixed> also, all of those code isn't commented
<shevy> prefixed some people are lazy
<gplex> Where can I find the simplest explanation of Ruby symbols?
frmendes has quit [Ping timeout: 256 seconds]
<baweaver> gplex: here
<shevy> a ruby symbol is like an immutable string with the same object_id
hinbody_ has joined #ruby
nullFxn has joined #ruby
noethics has joined #ruby
<baweaver> they're just a name tag
<baweaver> combine those two and that's most of what you'll find elsewhere.
to_json has quit [Quit: Leaving.]
<baweaver> prefixed: that's not the fault of the language.
<baweaver> that's the fault of the devs
ngscheur1 has quit [Ping timeout: 264 seconds]
<dfockler> gplex: they are useful for hash keys or options sent to a method
hinbody has quit [Ping timeout: 272 seconds]
<dfockler> among other things
asxbr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
<baweaver> ohai banister
NeverDie has quit [Quit: http://radiux.io/]
to_json has joined #ruby
gplex_ has joined #ruby
<prefixed> what gets assigned to "mynode" in this method? https://gist.github.com/anonymous/57bce254fe36d3729c37
sp4rrow has joined #ruby
<banister> baweaver sup
<gplex_> So a ruby symbol is basically just a string but there is only one of each symbol in memory?
<apeiros> prefixed: nothing
SenpaiSilver has joined #ruby
<baweaver> they finally opened up the blog for us to start writing on at work
<apeiros> prefixed: only = assigns in ruby.
<baweaver> gplex_ yep
<prefixed> apeiros so why is it even there then?
based_pdev_ has joined #ruby
<apeiros> prefixed: probably because it's needed?
based_pdev_ has quit [Max SendQ exceeded]
gplex has quit [Ping timeout: 246 seconds]
banister has quit [Read error: Connection reset by peer]
<apeiros> prefixed: why do you even ask?
segfalt has joined #ruby
based_pdev_ has joined #ruby
gplex_ has quit [Client Quit]
<prefixed> i don't understand what it's there for or where it comes from
<baweaver> reduce and inject both are used for returning a new value
speaking1ode has joined #ruby
<apeiros> where it comes from: it's a method.
<baweaver> very rarely for mutating.
<apeiros> what it's there for: well, figure out what the code does.
bruno- has quit [Ping timeout: 250 seconds]
fmcgeough has joined #ruby
<prefixed> it isn't passed into the method
segfalt has quit [Client Quit]
<prefixed> how does it get there?
<apeiros> methods don't need to be passed in
<baweaver> >> a = 1; [(1..3).reduce(a, :+), a]
<apeiros> that's the point of OO
<ruboto> baweaver # => [7, 1] (https://eval.in/439142)
dfockler has quit [Remote host closed the connection]
<apeiros> you can access other parts of your object by means of being in the context of that object
ebragaparah has joined #ruby
<baweaver> prefixed: what language did you come from?
NeverDie has joined #ruby
<prefixed> apeiros oh. right, it is a method. a terribly named method
<baweaver> you really are a pleasant one, aren't you?
`based_pdev` has quit [Ping timeout: 265 seconds]
<prefixed> today i am
v4n has joined #ruby
* apeiros was just going to say…
Xeago has joined #ruby
<apeiros> prefixed: your permanent nagging doesn't really make people want to help you
<prefixed> that's ok
Xeago has quit [Remote host closed the connection]
segfalt has joined #ruby
<shevy> this is awful code
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<prefixed> ?
Lucky__ has joined #ruby
but3k4 has joined #ruby
jamesaxl|2 has quit [Remote host closed the connection]
\j2k has joined #ruby
tejasmanohar has quit [Quit: tejasmanohar]
ruurd has quit [Quit: ZZZzzz…]
bruno- has joined #ruby
hinbody has joined #ruby
devoldmx has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
but3k4 has quit [Ping timeout: 240 seconds]
hinbody_ has quit [Ping timeout: 250 seconds]
prestorium_ is now known as prestorium
baweaver has quit [Remote host closed the connection]
asxbr has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
karapetyan has joined #ruby
gurix has joined #ruby
but3k4 has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
chouhoulis has quit []
allomov has quit [Remote host closed the connection]
tejasmanohar has joined #ruby
frmendes has joined #ruby
ruurd has joined #ruby
deeej has quit [Ping timeout: 246 seconds]
freerobby has quit [Quit: Leaving.]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
treehug8_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
freerobby has joined #ruby
grubernaut has left #ruby [#ruby]
workmad3_ has joined #ruby
youngbaks has quit [Ping timeout: 250 seconds]
syath has quit [Quit: WeeChat 1.2]
k3asd` has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
paulcsmith has joined #ruby
pulgolino has quit [Remote host closed the connection]
rolfb has joined #ruby
danman has joined #ruby
workmad3_ has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
jamesaxl has joined #ruby
gurix has quit [Quit: gurix]
NeverDie has quit [Quit: http://radiux.io/]
jgt2 has joined #ruby
NeverDie has joined #ruby
<prefixed> why did the creator of ruby decide to create several different constrol structures? why is unless necessary? why is somevar = something if something.nil? necessary?
<apeiros> prefixed: we can't answer questions which concern opinions of other people. you'll have to ask matz himself.
asxbr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 240 seconds]
mhib has quit [Ping timeout: 246 seconds]
<prefixed> is he not in here?
gurix has joined #ruby
<apeiros> no
gurix has quit [Client Quit]
AlxAltea has quit [Ping timeout: 240 seconds]
<prefixed> that's annoying. today is a very annoying day
hahuang61 has quit [Ping timeout: 260 seconds]
scripore has quit [Quit: This computer has gone to sleep]
<centrx> prefixed, Different control structures make the language more expressive
<hal_9000__> prefixed: only goto is “necessary” - all else is fanciness ;)
alakran has quit [Quit: WeeChat 0.4.2]
tomphp has joined #ruby
hfp_work has quit [Ping timeout: 264 seconds]
Alayde has quit [Quit: WeeChat 1.1.1]
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hfp_work has joined #ruby
scripore has joined #ruby
Alayde has joined #ruby
AlexAltea has joined #ruby
<baweaver> most of it's carry over from Perl.
xcesariox has joined #ruby
<prefixed> sure. i guess that makes sense
rolfb has quit [Quit: Linkinus - http://linkinus.com]
scripore has quit [Client Quit]
havenwood has quit [Ping timeout: 240 seconds]
<prefixed> although, it kinda makes me laugh that matz decided to add easy-mode for people who don't understand negation
failshel_ has quit [Remote host closed the connection]
<phreakocious> what's easy-mode?
<prefixed> unless
<prefixed> not_if
<prefixed> etc
<phreakocious> I think unless reads better in some situations
<phreakocious> especially when used at the end of a statement
<prefixed> it does
<prefixed> it certainly makes life easier so long as you know it exists
pragmatism has quit [Ping timeout: 246 seconds]
<phreakocious> been using ruby for almost 3 years after 10+ of perl has forced me to learn a lot of those rubyisms but the code looks better for it
jxv has joined #ruby
<prefixed> yeah., inever used perl
<prefixed> from what i've seen, i'm glad i've never had to
Oka has joined #ruby
<phreakocious> heh, it's good for what it was made for, but it got mega bloated and then totally lost its direction
n_blownapart has joined #ruby
rbennacer has joined #ruby
Soda has quit [Remote host closed the connection]
chris6131 has quit [Ping timeout: 264 seconds]
<apeiros> prefixed: "people who don't understand negation" is not the reason.
<prefixed> apeiros ok. what's the reason
scripore has joined #ruby
<shevy> use what you prefer
<prefixed> to add extra control structures
sagittarian has quit [Ping timeout: 240 seconds]
<apeiros> prefixed: code is for people to read. and as centrx said, those structures make for an expressive and pleasant to read language.
<prefixed> perhaps metz liked the word "unless"
Vile` has quit [Ping timeout: 265 seconds]
scripore has quit [Client Quit]
<prefixed> could you link me to some well-written ruby?
arup_r has quit [Ping timeout: 250 seconds]
vondruch has joined #ruby
<shevy> you don't know ruby
skade has joined #ruby
<apeiros> I'm a pedant. I don't like any code :)
<prefixed> yeah. you're right. i don't know ruby
<baweaver> apeiros: ah, so I'm not the only one
<eam> prefixed: if you want to be minimal, all you need is a single operator: NAND
<prefixed> the code i'm reading right now doesn't seem to be very well written
<prefixed> lots of methods that call other methods that call other methods, etc, etc
lulzmachine has quit [Quit: Connection closed for inactivity]
<shevy> yeah that is sad
<eam> You can have a language with a single operator. You won't get readable code though.
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<prefixed> what is expressive ruby
<shevy> you let your ideas be the code
chris6131 has joined #ruby
scoot has joined #ruby
rbennacer has quit [Ping timeout: 272 seconds]
<prefixed> what code did you say was horrible
<pipework> prefixed: When intent is both conveyed and perceived easily with code.
<shevy> please don't show more horrible code
<prefixed> oh. you're referring to the last gist?
<pipework> We get enough of that from shevy.
vondruch has quit [Client Quit]
<prefixed> yes. that's what i'm dealing with today
noethics has quit [Quit: Leaving]
<shevy> pipework my ideas are very clear to me :)
<prefixed> s that expressive ruby?
dfockler has joined #ruby
<shevy> old code often tends to be less clear
dfockler has quit [Remote host closed the connection]
<prefixed> how about 20 year old code
<craysiii> cinch vs ruby-irc?
vondruch has joined #ruby
dfockler has joined #ruby
<shevy> you won't find a lot of 20 year old ruby code. you may find 20 years old C code
<jhass> craysiii: soon™ the new butler
<jhass> so cinch :P
da3mian has joined #ruby
<craysiii> butler?? lol
frmendes has quit [Ping timeout: 256 seconds]
<prefixed> shevy lots of 20 year old c code
voltalio has joined #ruby
hahuang61 has joined #ruby
Vile` has joined #ruby
<shevy> C is the immortal programming language
hashrocket has quit [Quit: Connection closed for inactivity]
Xeago has joined #ruby
jamesaxl has quit [Remote host closed the connection]
jgt2 has quit [Ping timeout: 250 seconds]
<prefixed> is there a one-liner to print an entire hash?
fmcgeough has quit [Quit: fmcgeough]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
vondruch has quit [Client Quit]
casadei has quit [Remote host closed the connection]
<shevy> you mean code in a single line? the line could be very long
vondruch has joined #ruby
<baweaver> >> p {a: 1, b: 2} # yes
<ruboto> baweaver # => /tmp/execpad-12ad9726cc37/source-12ad9726cc37:2: syntax error, unexpected ':', expecting '}' ...check link for more (https://eval.in/439166)
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> odd
<apeiros> parens or no {}
CloCkWeRX has left #ruby [#ruby]
<apeiros> otherwise it's treated as a block
<baweaver> ah, block
<baweaver> derp
Xeago has quit [Ping timeout: 240 seconds]
gusTester1 has quit [Quit: Leaving.]
shinnya has quit [Ping timeout: 260 seconds]
j4cknewt_ has quit [Remote host closed the connection]
gusTester has joined #ruby
hahuang61 has quit [Ping timeout: 246 seconds]
Timba-as has quit [Quit: Be back later ...]
jdawgaz has joined #ruby
nzst has quit [Ping timeout: 240 seconds]
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bmurt has quit []
allomov has joined #ruby
baweaver has quit [Remote host closed the connection]
dhollinger has quit [Ping timeout: 240 seconds]
banjara1 has quit [Read error: Connection reset by peer]
i_node has joined #ruby
<i_node> Does anyone here use Nokogiri?
banjara has joined #ruby
<\j2k> I have
<\j2k> Nokogiri + Mechanize
<i_node> What is Nokogiri::HTML ?
<jhass> ?anyone
<ruboto> Just ask your question, if anyone has or can, they will respond.
<jhass> Nokogiri's interface for parsing HTML
<i_node> Is it a module, a class, what is it?
<i_node> How does Nokogiri::HTML(open("somefile")) work?
<centrx> oh it's just a method with the name "HTML"
dhollinger has joined #ruby
<i_node> Methods are allowed to be named like that?
<centrx> yes, though I would say it's bad practice
last_staff has joined #ruby
baweaver has joined #ruby
<i_node> Wait I'm confused, how can it be a method if it's all caps?
`based_pdev` has joined #ruby
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SimplySeth has joined #ruby
<tobiasvl> how can it not
segfalt has quit [Quit: segfalt]
<tobiasvl> what would stop it
<craysiii> if i use the shoes gem do i have to worry about logic blocking the UI?
sepp2k has quit [Read error: Connection reset by peer]
<i_node> So an all-caps method is legal ruby?
baweaver has quit [Remote host closed the connection]
Musashi007 has joined #ruby
<toretore> i_node: yes
<SimplySeth> does anyone know of any examples of using optparse in a function ? I tried, but I just get boolean responses from the function.
<shevy> oh my old nemesis... optparse
TheHodge has quit [Quit: Connection closed for inactivity]
segfalt has joined #ruby
based_pdev_ has quit [Ping timeout: 240 seconds]
<jhass> i_node: you can even use certain invisible unicode characters http://www.rubyinside.com/the-split-is-not-enough-whitespace-shenigans-for-rubyists-5980.html
<i_node> Where's Nokogiri::HTML in the Nokogiri code?
p0wn3d__ has quit [Ping timeout: 246 seconds]
leafybasil has joined #ruby
vjdhama_ has quit [Remote host closed the connection]
<centrx> yes, right in that directory
havenwood has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
el_fer_ has quit [Quit: Leaving]
but3k4 has joined #ruby
n008f4g_ has quit [Ping timeout: 240 seconds]
<i_node> jhass: So HTML is a singleton method of the module Nokogiri?
but3k4 has quit [Client Quit]
<SimplySeth> I only get boolean responses not the actual values http://dpaste.com/24HF3ZH
<jhass> it's a method on the singleton class of the module Nokogiri, yes
tkuchiki has joined #ruby
<i_node> jhass: Why do we do Nokogiri::HTML? Why not Nokogiri.HTML?
hydrozen has joined #ruby
<jhass> i_node: for the lulz, the latter works equally well
baweaver has joined #ruby
<i_node> jhass: Maybe because it's a constant? I don't know.
<jhass> there's no deeper reason to doing all these beyond "it looks kinda neat, don't you think, huh?" really
<toretore> it's just because "it looks like a constant lookup, therefore we'll use ::"
pragmatism has joined #ruby
mary5030 has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
swgillespie has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
chris6131 has quit [Ping timeout: 250 seconds]
<i_node> Is it worth using Nokogiri? Or can I just do everything without it if I know Regular Expressions?
Pupeno_ has quit [Quit: Leaving...]
<toretore> lol
tsujp has quit [Read error: Connection reset by peer]
<toretore> no
<phreakocious> i_node: never regex html :)
<toretore> no no no
da3mian is now known as frmendes
aldodelgado has joined #ruby
<phreakocious> it's almost a troll question
w1ite_mag1c has joined #ruby
tsujp has joined #ruby
<i_node> regexing html's fun tho :)
<havenwood> i_node: See the top answer. Be sure to read the whole thing: http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags
<phreakocious> I know, I've done it
hod0r has joined #ruby
<i_node> havenwood: I actually skimmed over that a few days ago. The author didn't seem really happy.
<havenwood> i_node: You can't parse HTML with regex.
hectortrope has quit [Read error: Connection reset by peer]
<havenwood> i_node: No. No. No!
sp4rrow has joined #ruby
nzst has joined #ruby
<yorickpeterse> nothing wrong with regexing HTML
ldnunes has quit [Quit: Leaving]
KensoDev has joined #ruby
<havenwood> >> 'HTML' =~ /HTML/
<ruboto> havenwood # => 0 (https://eval.in/439188)
<havenwood> \o/
<craysiii> jhass do you know how to use a password with cinch? I can't find any reference to it in the documentation.
<craysiii> oh wait im blind nevermind sorry.
<jhass> server password or nickserv?
white_magic has quit [Ping timeout: 240 seconds]
<i_node> Alright so does anyone know of any good tutorials for Nokogiri?
<craysiii> nickserv, but i believe i found it
<i_node> or should I just read the code?
chris6131 has joined #ruby
<havenwood> i_node: Another option is Oga: https://github.com/YorickPeterse/oga#readme
<havenwood> i_node: Especially if you can't get Nokogiri installed. :P
decoponio has quit [Quit: Leaving...]
<i_node> havenwood: Are there any major differences or is it pretty much the same as Nokogiri?
<yorickpeterse> The API is different
<havenwood> i_node: There are differences. Better to ask yorickpeterse.
<jhass> craysiii: do saslauth
karapetyan has quit [Remote host closed the connection]
prestorium has quit [Quit: Leaving]
segfalt has quit [Quit: segfalt]
<craysiii> ruby-sasl?
<craysiii> i don't know if i can, i'm using cinch to connect to the twitch irc interface
i_node has left #ruby [#ruby]
hectortrope has joined #ruby
<jhass> craysiii: ah, nvm then
<craysiii> thanks though
memnon34 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atmosx_laptop has joined #ruby
atmosx_laptop has left #ruby [#ruby]
atmosx_laptop has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
<SimplySeth> welp .. thanks ... g'night
Jackneill has quit [Ping timeout: 268 seconds]
SimplySeth has quit []
<shevy> oh twitch
<shevy> a video-broadcasting IRC bot!
speaking1ode has quit [Ping timeout: 250 seconds]
slayerja_ has joined #ruby
<craysiii> haha
<craysiii> my friend requested a chat client where the newest messages are on top instead of on bottom
slayerjain has quit [Ping timeout: 250 seconds]
TheHodge has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<craysiii> jhass is it okay if i pm you regarding cinch
jgpawletko has quit [Quit: jgpawletko]
<jhass> I see no reason to take it private, cinch is popular, others can chime in
<jhass> there's also a #cinch or #cinchrb iirc
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<craysiii> oh, thanks!
<craysiii> https://github.com/cinchrb/cinch/blob/master/examples/basic/msg.rb#L10 how can i find out the different arguments you can pass to the block for the various callbacks?
ebragaparah has quit [Remote host closed the connection]
<craysiii> i can't seem to find it in the docs.
startupality has quit [Ping timeout: 250 seconds]
<jhass> craysiii: it's the message followed by your capture groups
j4cknewt has joined #ruby
Pathfinder_ has joined #ruby
<jhass> so in that example who is the first capture group, (.+?), text is the second, (.+)
scoot has quit []
FernandoBasso has joined #ruby
j4cknewt has quit [Remote host closed the connection]
<craysiii> that makes too much sense
<jhass> for other events
<craysiii> oh i like these docs way more
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
j4cknewt has joined #ruby
w1ite_mag1c has quit [Ping timeout: 264 seconds]
weaksauce has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bigkevmcd has quit [Ping timeout: 256 seconds]
hinbody has quit [Quit: leaving]
<craysiii> so if the first object is a message, why would i need to grab the text with regex? can i not simply get the info from the msg object itself? or is this just simplifying that for me
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aldodelgado has quit [Quit: aldodelgado]
<adaedra> Because cinch do call your method only for matching messages then
<adaedra> It's a filtering
<jhass> you're not limited to one handler per event in case that wasn't obvious
Kallis has joined #ruby
tejasmanohar_ has joined #ruby
rezzack1 has joined #ruby
chipotle_ has joined #ruby
poguez_ has joined #ruby
<jhass> but you don't have to pass a regex and then get all messages
jcoe has quit [Quit: Textual IRC Client: www.textualapp.com]
tejasmanohar has quit [Read error: Connection reset by peer]
jdawgaz has quit [Read error: Connection reset by peer]
rezzack has quit [Read error: Connection reset by peer]
tejasmanohar_ is now known as tejasmanohar
gix has quit [Ping timeout: 244 seconds]
hays has quit [Read error: Connection reset by peer]
hfp_work has quit [Ping timeout: 244 seconds]
bhorn1 has quit [Ping timeout: 244 seconds]
hays has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
chipotle has quit [Ping timeout: 244 seconds]
bhorn1|away has joined #ruby
memnon34 has joined #ruby
hfp__work has joined #ruby
bhorn1|away is now known as bhorn1
camt has quit [Remote host closed the connection]
hfp__work is now known as hfp_work
camt has joined #ruby
Kallis has quit [Remote host closed the connection]
blueOxigen has quit [Ping timeout: 264 seconds]
lhz has quit [Ping timeout: 244 seconds]
casadei has joined #ruby
opensource_ninja has joined #ruby
gix has joined #ruby
pragmatism has quit [Ping timeout: 240 seconds]
last_staff has quit [Quit: last_staff]
last_staff has joined #ruby
ebragaparah has joined #ruby
<craysiii> hm im using that code from the example to create a basic echo script, i can see the messages coming in on my terminal but its not replying to the channel
r0bby_ has joined #ruby
<phreakocious> craysiii: you can use the .reply method to send something back to the channel it was received on
ebragaparah has quit [Remote host closed the connection]
hahuang61 has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<phreakocious> (half-assedly working on a cinch bot myself)
<`derpy> Cinch bots?
<craysiii> oops
ebragaparah has joined #ruby
<adaedra> did you try it?
<craysiii> put my credentials in there -.-
<craysiii> yes i did, didn't work
<craysiii> i also tried who.reply
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
<adaedra> .+? is weird
paulcsmith has joined #ruby
memnon34 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> Also, change your credentials, and delete the gist.
casadei has quit [Ping timeout: 250 seconds]
<phreakocious> +1 to that :)
<craysiii> yea i was on it already haha, dope over here -.-
nzst has quit [Ping timeout: 250 seconds]
Xeago has joined #ruby
<adaedra> That happens to everyone.
<adaedra> Better be some development credentials than company's production ones, right?
<craysiii> hah yes :)
<craysiii> so the difference between :channel and :message is that :message catches private messages to users as well?
ebragaparah has quit [Remote host closed the connection]
<darix> adaedra: there were tons of e.g. AWS credentials on github which you could find with the code search
<phreakocious> craysiii: I believe so, yeah
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgpawletko has joined #ruby
k3asd` has quit [Ping timeout: 256 seconds]
<`derpy> darix: among other things, yes.
<`derpy> oops, wrong window
gusTester has left #ruby [#ruby]
sp4rrow has joined #ruby
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
Xeago has quit [Ping timeout: 240 seconds]
Musashi007 has quit [Quit: Musashi007]
tsujp has quit [Quit: tsujp is snoozing]
doddok has quit [Quit: Leaving]
allcentury has joined #ruby
victortyau has quit [Quit: Leaving]
zdman135 has quit [Remote host closed the connection]
workmad3_ has joined #ruby
banister has joined #ruby
CrazyEddy has quit [Ping timeout: 252 seconds]
radgeRayden has quit [Ping timeout: 246 seconds]
baweaver has quit [Remote host closed the connection]
marr has quit [Ping timeout: 250 seconds]
s00pcan has quit [Ping timeout: 268 seconds]
einarj has quit [Remote host closed the connection]
s00pcan has joined #ruby
ebragaparah has joined #ruby
armyriad has quit [Ping timeout: 268 seconds]
dopamean1 has quit [Ping timeout: 240 seconds]
prefixed has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
armyriad has joined #ruby
workmad3_ has quit [Ping timeout: 265 seconds]
noethics has joined #ruby
skade has quit [Ping timeout: 250 seconds]
dhollinger has quit [Quit: Leaving]
skweek has quit [Quit: Leaving]
jottr_ has quit [Ping timeout: 244 seconds]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dhollinger has joined #ruby
jottr_ has joined #ruby
duggiefresh has joined #ruby
weemsledeux has joined #ruby
dhollinger has quit [Remote host closed the connection]
jottr_ has quit [Client Quit]
havenwood has quit [Ping timeout: 255 seconds]
gurix has joined #ruby
ebragaparah has quit [Remote host closed the connection]
tkuchiki has joined #ruby
failshell has joined #ruby
jenrzzz has joined #ruby
shinnya has joined #ruby
tubuliferous has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi007 has joined #ruby
freerobby has joined #ruby
chris6131 has quit [Ping timeout: 260 seconds]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
nolic has quit [Ping timeout: 265 seconds]
last_staff has quit [Quit: last_staff]
devoldmx has joined #ruby
to_json has quit [Quit: Leaving.]
last_staff has joined #ruby
failshell has quit [Ping timeout: 246 seconds]
nux443 has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
<craysiii> does shoes gem not work at all?
SCHAAP137 has quit [Quit: Leaving]
riotjone_ has joined #ruby
baweaver has joined #ruby
Voker57 has quit [Remote host closed the connection]
slayerjain has joined #ruby
havenwood has joined #ruby
<craysiii> would wxRuby be recommended?
devoldmx has quit [Ping timeout: 264 seconds]
phutchins has quit [Ping timeout: 240 seconds]
<shevy> hanmac here maintains rxw bindings
riotjones has quit [Ping timeout: 260 seconds]
<shevy> apparently it is rwx not rxw
icarus has joined #ruby
yfeldblum has joined #ruby
<hanmac> craysiii: wxRuby is dead since years
failshell has joined #ruby
memnon34 has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
slayerja_ has quit [Ping timeout: 268 seconds]
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sp4rrow has joined #ruby
<craysiii> i guess it would be smart to install the proper libraries on my os before trying to bundle huh lol
<Ebok> What's the difference between #count and #length? Is there like a correct / politically correct time to use one over the other when they do, do the same thing?
freerobby has quit [Quit: Leaving.]
sp4rrow has quit [Client Quit]
<adaedra> iirc they're aliases
<adaedra> &ri Array#count
<adaedra> Ah no
djbkd has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
tubuliferous has quit [Quit: ZNC - http://znc.in]
<adaedra> #count can take a parameter or a block, not length
mary5030 has joined #ruby
slayerja_ has joined #ruby
dmolina has joined #ruby
last_staff has quit [Quit: last_staff]
Puffball has joined #ruby
<Ebok> I see.
wldcordeiro has joined #ruby
slayerjain has quit [Ping timeout: 252 seconds]
gurix has quit [Quit: gurix]
<craysiii> https://gist.github.com/craysiii/68da1fb1dbc2224de435 i get this, and i can't find the log file
sp4rrow has joined #ruby
jgt2 has joined #ruby
<hanmac> Ebok:
<hanmac> >> [1,2,3].cycle.length
<ruboto> hanmac # => undefined method `length' for #<Enumerator: [1, 2, 3]:cycle> (NoMethodError) ...check link for more (https://eval.in/439191)
michael_mbp has joined #ruby
<hanmac> >> [1,2,3].cycle.size
<ruboto> hanmac # => Infinity (https://eval.in/439192)
praveen_p has joined #ruby
<hanmac> >> [1,2,3].cycle.count
<ruboto> hanmac # => (https://eval.in/439193)
mary5030 has quit [Ping timeout: 240 seconds]
<hanmac> Ebok: if i remember correctly "length" is outdated
<phreakocious> craysiii: what OS are you on?
iamninja has quit [Ping timeout: 250 seconds]
praveen_p has left #ruby [#ruby]
<craysiii> ubuntu 15.04 x64
<phreakocious> it looks like you don't have compilers and headers installed
ngscheurich has quit [Ping timeout: 240 seconds]
<adaedra> craysiii: as it says, you need to install development packages.
armyriad has quit [Ping timeout: 244 seconds]
<phreakocious> do sudo apt-get build-essential
<phreakocious> :)
phutchins has joined #ruby
<craysiii> will do it now :)
tejasmanohar has quit [Quit: tejasmanohar]
<adaedra> and I think it may need wx development headers, too.
<phreakocious> yeah something like libwx-devel
failshell has quit [Ping timeout: 264 seconds]
workmad3_ has joined #ruby
armyriad has joined #ruby
bruno- has joined #ruby
stamina has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
BTRE has quit [Quit: Leaving]
baweaver has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
opensource_ninja has quit [Ping timeout: 268 seconds]
bkulbida has quit [Ping timeout: 240 seconds]
<craysiii> installed build-essential, libwxgtk-3.0, and libwxgtk-30-dev, anything else i need?
djbkd has joined #ruby
<craysiii> still not working
workmad3_ has quit [Ping timeout: 250 seconds]
atmosx_laptop has quit [Quit: Lost in trance]
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
michael_mbp has joined #ruby
startupality has joined #ruby
casadei has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
opensource_ninja has joined #ruby
CloCkWeRX has joined #ruby
<adaedra> what's the error?
polishdub has quit [Quit: Leaving]
djbkd has quit [Remote host closed the connection]
r0bby_ has quit [Quit: Konversation terminated!]
r0bby_ has joined #ruby
r0bby_ has quit [Client Quit]
memnon34 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> And what about the file named at the end?
wldcordeiro has quit [Ping timeout: 240 seconds]
<craysiii> oh
djbkd has joined #ruby
<adaedra> Well, this and the mkmf.log, which should be in the folder given by the trace
whippythellama has quit [Quit: WeeChat 1.3]
<craysiii> the gem_make.out is the error that i posted in the gist, im posting mkmf.log now
baweaver has joined #ruby
<adaedra> you need ruby development headers.
barhum2013 has quit [Ping timeout: 264 seconds]
<adaedra> ruby-dev or something.
wryfi has left #ruby [#ruby]
<phreakocious> craysiii: there's a wx(blahblah)-headers too
<adaedra> Also, gdk and gtk+ dev packages.
hal_9000_ has joined #ruby
<phreakocious> each time you see this line checking for wx/preferences.h... *** extconf.rb failed ***
<phreakocious> you are missing some other -dev package or some headers related to what it's looking for
hal_9000__ has quit [Ping timeout: 240 seconds]
<phreakocious> (or some variant of that line)
<adaedra> read the logs, all of them, they have all the information you want.
<phreakocious> and that :D ... always that. :)
slayerja_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> Seriously, some people want to go too fast. Take time to read. Read the README, read the documentation, read the console output, read the log files.
<phreakocious> yep
dfockler has quit [Remote host closed the connection]
mdih has joined #ruby
Musashi007 has quit [Quit: Musashi007]
baweaver has quit [Remote host closed the connection]
<craysiii> https://github.com/Hanmac/rwx/blob/master/README.rdoc the readme was sort of barren, but i get your point :P
<phreakocious> it takes a lot of looking at broken shit to know right where to look in large stack trace really quickly :)
jgpawletko has quit [Quit: jgpawletko]
Xeago has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
<phreakocious> version 0.0.1.1-dev is promising ;)
<adaedra> craysiii: well, at least reading that entirely was not too long.
<craysiii> haha
barhum2013 has joined #ruby
<craysiii> the coffee is making me antsy, need to calm down
<shevy> pantsy?
<craysiii> it's been building for a minute now, no error so far after installing the media and webview
marr has joined #ruby
<craysiii> oh yay a new error
bkulbida has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
allcentury has quit [Ping timeout: 240 seconds]
<phreakocious> native library stuff is best left to the masochists
polly_wog has joined #ruby
<phreakocious> there is no hand holding :)
<craysiii> right
<craysiii> ive gotten used to everything being handed to me by bundler
<craysiii> lol
<phreakocious> sometimes you get lucky and there is an OS package for the gem you want
havenwood has quit [Ping timeout: 268 seconds]
<phreakocious> and all the dependencies are magically resolved
r0bby_ has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
wildlander has quit [Quit: Saliendo]
failshell has joined #ruby
r0bby_ has quit [Client Quit]
rezzack1 has quit [Quit: Leaving.]
r0bby_ has joined #ruby
nux443 has quit [Quit: leaving]
bkulbida has quit [Ping timeout: 255 seconds]
CloCkWeRX has quit [Ping timeout: 265 seconds]
<adaedra> that only works if you're using system ruby though.
RegulationD has quit [Remote host closed the connection]
Musashi007 has joined #ruby
roxtrongo has joined #ruby
firstdayonthejob has quit [Ping timeout: 260 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has quit [Client Quit]
roxtrong_ has joined #ruby
<craysiii> hm i can't seem to find gdk library in apt
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Timba-as has joined #ruby
shadoi has quit [Quit: Leaving.]
roxtrongo has quit [Ping timeout: 246 seconds]
failshell has quit [Remote host closed the connection]
DarthGandalf has quit [Ping timeout: 246 seconds]
failshell has joined #ruby
scripore has joined #ruby
DarthGandalf has joined #ruby
gustav_ has quit [Remote host closed the connection]
ebragaparah has joined #ruby
dfockler has joined #ruby
devoldmx has joined #ruby
sysx1000 has joined #ruby
dfockler has quit [Remote host closed the connection]
weemsledeux has joined #ruby
<craysiii> it worked finally!!! thanks everyone
<sysx1000> noob question. when I create hash or specify keyword arguments, sometimes I see param: value, sometimes :param => value, which way is correct?
<adaedra> both.
dopamean_ has joined #ruby
<phreakocious> craysiii: congrats
<adaedra> `param: value` is syntaxic sugar.
`tim` has joined #ruby
<craysiii> so would i use rwx the same as wxruby? can i justuse the wxruby docs?
tkuchiki has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
startupality has quit [Quit: startupality]
tkuchiki has quit [Remote host closed the connection]
frmendes has quit [Quit: Textual IRC Client: www.textualapp.com]
<agent_meerkat> exit
<agent_meerkat> exit
agent_meerkat has quit [Quit: leaving]
scripore has quit [Quit: This computer has gone to sleep]
roxtrong_ has quit [Remote host closed the connection]
moeabdol has quit [Quit: WeeChat 1.3]
SenpaiSilver has quit [Quit: Leaving]
SenpaiSilver has joined #ruby
bruno- has quit [Quit: Lost terminal]
scripore has joined #ruby
bruno- has joined #ruby
iateadonut has joined #ruby
SenpaiSilver has quit [Client Quit]
SenpaiSilver has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
<craysiii> man i really wish shoes would work >.< seemed so much simpler lol
frege has joined #ruby
moeabdol has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
karapetyan has joined #ruby
charliesome has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
rodfersou has quit [Quit: leaving]
jobewan has quit [Quit: Leaving]
chipotle_ is now known as chipotle
karapetyan has quit [Ping timeout: 246 seconds]
ebragaparah has quit [Remote host closed the connection]
Ropeney has joined #ruby
yitsushi has joined #ruby
spider-mario has quit [Remote host closed the connection]
saddad has joined #ruby
segfalt has joined #ruby
j4cknewt has quit [Remote host closed the connection]
duggiefresh has quit [Remote host closed the connection]
lhz has joined #ruby
LoganG has quit [Quit: robots are cool]
<craysiii> instead of all this im just going to write the bot as a daemon and have it send requests to a rails api sigh
Igorshp has joined #ruby
jenrzzz has joined #ruby
circ-user-kSAP4 has quit [Remote host closed the connection]
nettoweb has joined #ruby
lagrangi-wan has joined #ruby
rcvalle has quit [Quit: rcvalle]
dfockler has joined #ruby
NeverDie has joined #ruby
LoganG has joined #ruby
NeverDie has quit [Client Quit]
nzst has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
ReK2 has joined #ruby
atomical has joined #ruby
workmad3_ has joined #ruby
bkulbida has joined #ruby
Jardayn has quit [Quit: Leaving]
SenpaiSilver has quit [Quit: Leaving]
SenpaiSilver has joined #ruby
dmolina has quit [Quit: Leaving.]
baweaver has joined #ruby
nzst has quit [Ping timeout: 250 seconds]
bourbon has left #ruby [#ruby]
Xeago has joined #ruby
davedev24 has joined #ruby
bestbrents__ has joined #ruby
jayne_ has joined #ruby
towski__ has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
wookiehangover has quit [Ping timeout: 240 seconds]
amitchellbullard has quit [Ping timeout: 240 seconds]
bryancp has quit [Ping timeout: 240 seconds]
culturelabs has quit [Ping timeout: 240 seconds]
akahn has quit [Ping timeout: 240 seconds]
scripore has quit [Quit: This computer has gone to sleep]
twodayslate has quit [Ping timeout: 240 seconds]
machty has quit [Ping timeout: 240 seconds]
ArchRogem has quit [Ping timeout: 240 seconds]
apipkin has quit [Ping timeout: 240 seconds]
prosodyC has quit [Ping timeout: 240 seconds]
catbusters has quit [Ping timeout: 240 seconds]
dfockler has quit []
solocshaw has joined #ruby
craysiii has quit [Ping timeout: 240 seconds]
bf4 has quit [Ping timeout: 240 seconds]
spastorino has quit [Ping timeout: 240 seconds]
zrl has quit [Ping timeout: 240 seconds]
LoganG_ has joined #ruby
waxjar has quit [Ping timeout: 240 seconds]
znz_jp has quit [Ping timeout: 240 seconds]
arian0n has quit [Ping timeout: 240 seconds]
cstrahan has quit [Ping timeout: 240 seconds]
Kamilion has quit [Ping timeout: 240 seconds]
workmad3_ has quit [Ping timeout: 256 seconds]
towski_ has quit [Ping timeout: 240 seconds]
jmhmccr has quit [Ping timeout: 240 seconds]
adambeynon has quit [Ping timeout: 240 seconds]
tw1sted has quit [Ping timeout: 240 seconds]
JoL1hAHN has quit [Ping timeout: 240 seconds]
voxxit has quit [Ping timeout: 240 seconds]
blackjid has quit [Ping timeout: 240 seconds]
LoganG has quit [Ping timeout: 240 seconds]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
jordanm has quit [Ping timeout: 240 seconds]
cball has quit [Ping timeout: 240 seconds]
davedev2_ has quit [Ping timeout: 240 seconds]
crdpink has quit [Ping timeout: 240 seconds]
twistedpixels has quit [Ping timeout: 240 seconds]
bestbrents_ has quit [Ping timeout: 240 seconds]
frankS2 has quit [Ping timeout: 240 seconds]
vcoinminer has quit [Ping timeout: 240 seconds]
petems has quit [Ping timeout: 240 seconds]
PhilK has quit [Ping timeout: 240 seconds]
asi_ has quit [Ping timeout: 240 seconds]
segmond has quit [Ping timeout: 240 seconds]
linc01n_ has quit [Ping timeout: 240 seconds]
LoganG_ is now known as LoganG
baweaver has quit [Ping timeout: 250 seconds]
crdpink has joined #ruby
jordanm has joined #ruby
failshell has quit [Remote host closed the connection]
luckyruby has joined #ruby
asi_ has joined #ruby
tw1sted has joined #ruby
bryancp has joined #ruby
catbusters has joined #ruby
linc01n has joined #ruby
ArchRogem has joined #ruby
cstrahan has joined #ruby
apipkin has joined #ruby
adambeynon has joined #ruby
vcoinminer has joined #ruby
Xeago has quit [Ping timeout: 256 seconds]
bf4 has joined #ruby
waxjar has joined #ruby
JoL1hAHN has joined #ruby
wookiehangover has joined #ruby
cball has joined #ruby
jgt2 has quit [Ping timeout: 268 seconds]
blackjid has joined #ruby
CloCkWeRX has joined #ruby
twistedpixels has joined #ruby
jayne has quit [Read error: Connection reset by peer]