apeiros changed the topic of #ruby-lang to: Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste code on https://gist.github.com
hahuang65 has quit [Ping timeout: 276 seconds]
alestuber has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby-lang
alestuber has joined #ruby-lang
alestuber has quit [Remote host closed the connection]
datanoise has joined #ruby-lang
skyrocker has quit [Read error: Connection reset by peer]
rbowlby has quit [Remote host closed the connection]
ur5us has joined #ruby-lang
BanzaiJoe has quit [Read error: Connection reset by peer]
rbowlby has joined #ruby-lang
zendrix has quit [Remote host closed the connection]
Musashi007 has joined #ruby-lang
Musashi007 has quit [Client Quit]
Musashi007 has joined #ruby-lang
mcclurmc has quit [Ping timeout: 256 seconds]
bungoman has joined #ruby-lang
ybathia has quit [Quit: ybathia]
bungoman has quit [Ping timeout: 256 seconds]
haraoka has joined #ruby-lang
stardiviner has joined #ruby-lang
arBmind1 has quit [Quit: Leaving.]
j4cknewt has quit [Remote host closed the connection]
ruby-lang834 has quit [Quit: Page closed]
charliesome has joined #ruby-lang
revath has joined #ruby-lang
michaeldeol has quit [Ping timeout: 264 seconds]
oh_hai_mark has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
matp has quit [Remote host closed the connection]
revath has quit [Ping timeout: 272 seconds]
caseypatrickdris has joined #ruby-lang
brownbathrobe has joined #ruby-lang
* zenspider blinks
<zenspider> flavorjones: whoah
revath has joined #ruby-lang
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby-lang
houhoulis has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
gix has quit [Ping timeout: 264 seconds]
fujimura has joined #ruby-lang
Musashi007 has joined #ruby-lang
gix has joined #ruby-lang
fujimura has quit [Ping timeout: 256 seconds]
matp has joined #ruby-lang
dorei has quit []
symm- has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
symm- has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
shinnya has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duderonomy has quit [Ping timeout: 256 seconds]
Jon-Xie has joined #ruby-lang
Jon-Xie has quit [Remote host closed the connection]
Jon-Xie has joined #ruby-lang
caseypatrickdris has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
brownbathrobe has quit [Remote host closed the connection]
cryptarium has joined #ruby-lang
Musashi007 has joined #ruby-lang
revath has quit [Ping timeout: 272 seconds]
ur5us has quit [Ping timeout: 245 seconds]
joaomdmoura has joined #ruby-lang
simi has quit [Ping timeout: 272 seconds]
Musashi007 has quit [Quit: Musashi007]
hahuang65 has joined #ruby-lang
ledestin has joined #ruby-lang
fujimura has joined #ruby-lang
amclain has joined #ruby-lang
JakFrist has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
datanoise has quit [Ping timeout: 272 seconds]
j4cknewt has quit [Ping timeout: 256 seconds]
bahar has quit [Quit: ZNC - http://znc.in]
stardiviner has quit [Ping timeout: 246 seconds]
amystephen has quit [Quit: amystephen]
woodruffw has quit [Quit: And then he took off.]
woodruffw has joined #ruby-lang
tibig has quit [Ping timeout: 264 seconds]
duderonomy has joined #ruby-lang
stardiviner has joined #ruby-lang
shazaum has quit [Ping timeout: 252 seconds]
rbowlby has quit [Remote host closed the connection]
ur5us has joined #ruby-lang
allomov has joined #ruby-lang
danni_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jamo has quit [Remote host closed the connection]
nikkyjr has joined #ruby-lang
allomov has quit [Ping timeout: 246 seconds]
symm- has quit [Ping timeout: 256 seconds]
Ox0dea has joined #ruby-lang
<Ox0dea> Did this patch make it impossible to access FrozenCore in any useful way?
haraoka has quit [Ping timeout: 272 seconds]
rbowlby has joined #ruby-lang
datanoise has joined #ruby-lang
djbkd has joined #ruby-lang
charliesome has quit [Quit: zzz]
aaeron has quit [Quit: aaeron]
gix has quit [Ping timeout: 256 seconds]
datanoise has quit [Ping timeout: 258 seconds]
djbkd has quit [Ping timeout: 255 seconds]
ubernil has joined #ruby-lang
gix has joined #ruby-lang
<womble> Does there exist a gem which just has rspec matchers for CSS selectors in a document, without requiring me to buy into the entire capybara worldview?
<womble> I would have expected so, but I'll be jiggered if I can find one that doesn't date from RSpec 1.x days.
kfpratt has quit [Remote host closed the connection]
revath has joined #ruby-lang
hahuang65 has quit [Ping timeout: 252 seconds]
Jon-Xie has quit [Read error: Connection reset by peer]
charliesome has joined #ruby-lang
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby-lang
Jon-Xie has joined #ruby-lang
<Ox0dea> charliesome: Did you ever look into accessing FrozenCore in 2.1+?
<charliesome> Ox0dea: nah haven't had a chance
<Ox0dea> charliesome: That its superclass is essentially NULL makes things quite troublesome.
<Ox0dea> It's still "accessible" via the ObjectSpace._id2ref trick, but that's about the end of the line as best I can tell.
revath has quit [Ping timeout: 255 seconds]
dellavg_ has joined #ruby-lang
b_hoffman has joined #ruby-lang
Jon-Xie has quit [Remote host closed the connection]
kfpratt has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
datanoise has joined #ruby-lang
Miphix has joined #ruby-lang
datanoise has quit [Ping timeout: 256 seconds]
jwaldrip has joined #ruby-lang
harly has joined #ruby-lang
deg has joined #ruby-lang
deg_ has quit [Ping timeout: 264 seconds]
Musashi007 has joined #ruby-lang
mikecmpbll has quit [Quit: ciao.]
hahuang65 has joined #ruby-lang
hahuang65 has quit [Ping timeout: 265 seconds]
rippa has joined #ruby-lang
dellavg_ has quit [Ping timeout: 264 seconds]
zotherstupidguy has joined #ruby-lang
charliesome has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby-lang
anaiden has left #ruby-lang [#ruby-lang]
cornerma1 has joined #ruby-lang
Ropeney has quit [Quit: Leaving...]
Ox0dea has quit [Quit: WeeChat 1.2-rc1]
kfpratt has quit [Remote host closed the connection]
cornerman has quit [Ping timeout: 272 seconds]
cornerma1 is now known as cornerman
Ropeney has joined #ruby-lang
Jon-Xie has joined #ruby-lang
Ropeney has quit [Client Quit]
brownbathrobe has joined #ruby-lang
Ropeney has joined #ruby-lang
revath has joined #ruby-lang
revath1 has joined #ruby-lang
houhoulis has quit [Remote host closed the connection]
revath has quit [Ping timeout: 256 seconds]
chinmay_dd has joined #ruby-lang
|jemc| has quit [Ping timeout: 244 seconds]
joaomdmoura has quit [Remote host closed the connection]
joaomdmoura has joined #ruby-lang
ubernil has quit [Ping timeout: 264 seconds]
joaomdmoura has quit [Ping timeout: 255 seconds]
postmodern has quit [Quit: Leaving]
postmodern has joined #ruby-lang
amclain has quit [Quit: Leaving]
jwaldrip has quit [Quit: Be back later ...]
ubernil has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 240 seconds]
ubernil has quit [Read error: Connection reset by peer]
stan has joined #ruby-lang
rbowlby has quit [Remote host closed the connection]
skade has joined #ruby-lang
fusillicode has joined #ruby-lang
datanoise has joined #ruby-lang
ubernil has joined #ruby-lang
tomaz_b has joined #ruby-lang
datanoise has quit [Ping timeout: 255 seconds]
ubernil has quit [Ping timeout: 258 seconds]
rbowlby has joined #ruby-lang
ubernil has joined #ruby-lang
brownbathrobe has quit [Remote host closed the connection]
datanoise has joined #ruby-lang
VinnyBoy has quit [Read error: Connection reset by peer]
tsujp has joined #ruby-lang
niemcu has joined #ruby-lang
gix has quit [Ping timeout: 258 seconds]
allomov has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
Jon-Xie has quit [Read error: Connection reset by peer]
Jon-Xie has joined #ruby-lang
datanoise has quit [Ping timeout: 256 seconds]
ruby-lang074 has joined #ruby-lang
<ruby-lang074> hi, completely new to ruby (actually looked at ruby script for the first time yesterday...), need help with flock and filehandles (suspect it might be a linux problem, though). I get: `flock': Function not implemented ; my script has the line: fh.flock(File::LOCK_SH)
<ledestin> ruby-lang074 Windows?
<Ropeney> ledestin: he said ' linux problem,' so i'd assume linux
<ruby-lang074> linux cluster, no sudo :(
<ruby-lang074> believe the cluster runs Centos
<ruby-lang074> oops, not centos: Red Hat 4.1.2-52
<ruby-lang074> ruby 1.9.3p550 (2014-10-27 revision 48165) [x86_64-linux]
Voker57 has quit [Remote host closed the connection]
<ledestin> ruby-lang074 docs might explain that
charliesome has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby-lang
chinmay_dd has quit [Remote host closed the connection]
chinmay_dd has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
Forgetful_Lion has joined #ruby-lang
allomov has quit [Remote host closed the connection]
marr has joined #ruby-lang
rbowlby_ has joined #ruby-lang
rbowlby has quit [Ping timeout: 272 seconds]
rbowlby_ has quit [Remote host closed the connection]
rbowlby has joined #ruby-lang
rbowlby has quit [Ping timeout: 256 seconds]
<ruby-lang074> will check
<ruby-lang074> thnx
k3asd` has joined #ruby-lang
ur5us has joined #ruby-lang
Jon-Xie_ has joined #ruby-lang
Jon-Xie has quit [Read error: Connection reset by peer]
chinmay_dd has quit [Remote host closed the connection]
<ljarvis> moin
wprice has quit [Quit: wprice]
chinmay_dd has joined #ruby-lang
datanoise has joined #ruby-lang
dhjondoh has joined #ruby-lang
joaomdmoura has joined #ruby-lang
chinmay_dd has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 245 seconds]
joaomdmoura has quit [Ping timeout: 256 seconds]
allomov has joined #ruby-lang
chinmay_dd has joined #ruby-lang
charliesome has quit [Quit: zzz]
symm- has joined #ruby-lang
mikecmpbll has joined #ruby-lang
kstuart has joined #ruby-lang
jas02 has joined #ruby-lang
simi has joined #ruby-lang
j4cknewt has joined #ruby-lang
cryptarium has quit [Write error: Connection reset by peer]
brownbathrobe has joined #ruby-lang
oh_hai_mark has joined #ruby-lang
charliesome has joined #ruby-lang
j4cknewt has quit [Ping timeout: 272 seconds]
brownbathrobe has quit [Ping timeout: 256 seconds]
kr3ssh has joined #ruby-lang
matp has quit [Quit: Bye!]
oh_hai_mark has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: zzz]
ur5us has quit [Remote host closed the connection]
kr3ssh has quit [Ping timeout: 256 seconds]
chinmay_dd has quit [Remote host closed the connection]
Jon-Xie_ has quit [Read error: Connection reset by peer]
chinmay_dd has joined #ruby-lang
Jon-Xie has joined #ruby-lang
Jon-Xie has quit [Client Quit]
workmad3 has joined #ruby-lang
chinmay_dd has quit [Remote host closed the connection]
chinmay_dd has joined #ruby-lang
chinmay_dd has quit [Remote host closed the connection]
chinmay_dd has joined #ruby-lang
chinmay_dd has quit [Remote host closed the connection]
chinmay_dd has joined #ruby-lang
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ledestin has joined #ruby-lang
Guest24 is now known as lele
stamina has joined #ruby-lang
ubernil has quit [Ping timeout: 240 seconds]
iamninja has quit [Read error: Connection reset by peer]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ubernil has joined #ruby-lang
toretore has joined #ruby-lang
djbkd has joined #ruby-lang
datanoise has joined #ruby-lang
djbkd has quit [Ping timeout: 272 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
datanoise has quit [Ping timeout: 258 seconds]
sango_ has joined #ruby-lang
<sango_> hi all
yalue has quit [Ping timeout: 256 seconds]
<sango_> I am trying to use ruby to start a command and pass commands to the shell created by the command
<sango_> this is what i did
<sango_> but it doesnt work
<sango_> it blocks with no response
<toretore> that's because you're trying to read before there is anything to read
ryez has joined #ruby-lang
arBmind has joined #ruby-lang
iamninja has joined #ruby-lang
j4cknewt has joined #ruby-lang
<sango_> thanks i will modify
<toretore> let me guess, you're coming from node or a similarly event-based environment?
<sango_> I am coming from chef (opscode)
<toretore> hm
<toretore> ok, first of all, explain the overall goal you want to achieve
<toretore> which is not "execute a command and read its output"
<sango_> I am actually trying to start a shell based app (not irb, just using irb as a test case)
stamina has quit [Quit: WeeChat 1.1.1]
<sango_> I am not really interested in reading the output, I actually want to send some command to the shell
intinig has joined #ruby-lang
stamina has joined #ruby-lang
ubernil has quit [Ping timeout: 264 seconds]
<sango_> I am trying to use chef to install fuse-esb.. so I want to start the service and send commands to the shell create by the command
<sango_> the same way executing irb starts a shell
<sango_> and I want to be able to send commands to the irb shell
yalue has joined #ruby-lang
ubernil has joined #ruby-lang
skyrocker has joined #ruby-lang
<canton7> make sure you know the difference between sending an application stdin, and simulating the keyboard
<sango_> hmmm
<sango_> which does IO.popen solves?
<sango_> which do I need?
chinmay_dd has quit [Remote host closed the connection]
<canton7> I don't know. which one do you need?
<canton7> are you actually trying to open irb? or something else?
ryez has quit [Ping timeout: 246 seconds]
<sango_> toretore: thanks, I tried that, it started the service, but after send command to the stdin, the command never got to it
<sango_> canton7: I am trying to open something else
<canton7> sango_, what is that other thing?
<sango_> fuseesb
<canton7> (it may behave differently to irb in this regard, so it's important to know
<sango_> jboss fuse esb
<sango_> so I tried to start it as #{fuse-home}/gin/fuse
<sango_> I saw it started
<sango_> but the command I sent to its shell never got to it
<canton7> saltsa, according to http://wei-meilin.blogspot.co.uk/2015/05/jboss-fuse-automating-your-environment.html, you can just pass it commands as arguments
<sango_> oh my!
<sango_> thanks, I will try that
niemcu has quit [Ping timeout: 244 seconds]
aJanuary has joined #ruby-lang
<aJanuary> I'm trying to escape certain characters in a string by prefixing them with a backslash. I've tried str.gsub(/([_*-+^~])/, '\\1') with various numbers of backslashes in the second argument, but I can't get it to work.
<darix> aJanuary: you need at least 3 slashesw
<darix> >> "foobar".gsub /([aoieu])/, '\\\1'
<eval-in> darix => "f\\1\\1b\\1r" (https://eval.in/357419)
<darix> >> "foobar".gsub /([aoieu])/, "\\\1"
<eval-in> darix => "f\\\u0001\\\u0001b\\\u0001r" (https://eval.in/357420)
<aJanuary> See, that ends up with a literal \1 for some reason
<darix> there
<darix> although that is also not what we want
<darix> >> "'foobar'".gsub /(')/, "\\\1"
<eval-in> darix => "\\\u0001foobar\\\u0001" (https://eval.in/357421)
<darix> >> "'foobar'".gsub /(')/, "\\1"
<eval-in> darix => "'foobar'" (https://eval.in/357422)
<darix> >> "'foobar'".gsub /(')/, "\\\\1"
<eval-in> darix => "\\1foobar\\1" (https://eval.in/357425)
<darix> >> "'foobar'".gsub /(')/, "\\\1"
<eval-in> darix => "\\\u0001foobar\\\u0001" (https://eval.in/357430)
<darix> >> "'foobar'".gsub /(')/, "\1"
<eval-in> darix => "\u0001foobar\u0001" (https://eval.in/357434)
<canton7> sango_, a very good solution to "I've got a really hard problem" is "find an easier probelm" ;)
<darix> >> "'foobar'".gsub /(')/, '\1'
<eval-in> darix => "'foobar'" (https://eval.in/357452)
<darix> >> "'foobar'".gsub /(')/, '\\\1'
<eval-in> darix => "\\1foobar\\1" (https://eval.in/357456)
<darix> >> "'foobar'".gsub /(')/, '\\1'
<eval-in> darix => "'foobar'" (https://eval.in/357459)
<canton7> darix, please don't spam the channel
<canton7> darix, open up irb, or go directly to eval.in
<darix> canton7: that totally destroys the collaborative effort to solve the problem ;)
<canton7> it's not collaborative - it's just you ;)
<aJanuary> >> "foobar".gsub(/([aeiou])/, "\\\\\\1"
<eval-in> aJanuary => /tmp/execpad-03c7942bcf14/source-03c7942bcf14:3: syntax error, unexpected keyword_rescue, expecting ')' ... (https://eval.in/357464)
<aJanuary> >> "foobar".gsub(/([aeiou])/, "\\\\\\1")
<eval-in> aJanuary => "f\\o\\ob\\ar" (https://eval.in/357466)
<darix> "'foobar'".gsub /(')/, '\\\\\1'
<aJanuary> Of course, you need 6 backslashes in double quotes, obvious
<darix> that's actually enough
datanoise has joined #ruby-lang
simi has quit [Ping timeout: 258 seconds]
tkuchiki has quit [Ping timeout: 245 seconds]
datanoise has quit [Ping timeout: 272 seconds]
chinmay_dd has joined #ruby-lang
chinmay_dd has quit [Remote host closed the connection]
chinmay_dd has joined #ruby-lang
ldnunes has joined #ruby-lang
revath1 has quit [Ping timeout: 258 seconds]
postmodern has quit [Quit: Leaving]
simi has joined #ruby-lang
Excelsior2015 has joined #ruby-lang
Jamo has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
niemcu has joined #ruby-lang
joaomdmoura has joined #ruby-lang
skade has joined #ruby-lang
chinmay_dd has quit [Remote host closed the connection]
joaomdmoura has quit [Ping timeout: 272 seconds]
sango_ has quit [Ping timeout: 246 seconds]
skade has quit [Quit: Computer has gone to sleep.]
bruno- has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
[k- has joined #ruby-lang
ddfreyne has joined #ruby-lang
stamina has quit [Ping timeout: 272 seconds]
nofxx has quit [Ping timeout: 272 seconds]
chinmay_dd has joined #ruby-lang
banister has joined #ruby-lang
datanoise has joined #ruby-lang
ggerman has quit [Ping timeout: 272 seconds]
banister has quit [Ping timeout: 256 seconds]
Ox0dea has joined #ruby-lang
<Ox0dea> Does anybody know what might be going on here?
datanoise has quit [Ping timeout: 264 seconds]
chinmay__ has joined #ruby-lang
dzejrou has joined #ruby-lang
<Ox0dea> I realize I'm mucking about where I ought not, but curiosity's got the better of me.
dzejrou has quit [Remote host closed the connection]
dzejrou_ has joined #ruby-lang
chinmay_dd has quit [Ping timeout: 245 seconds]
dzejrou_ has quit [Read error: Connection reset by peer]
gregf_ has left #ruby-lang [#ruby-lang]
dzejrou has joined #ruby-lang
gregf_ has joined #ruby-lang
k3asd` has quit [Ping timeout: 264 seconds]
aJanuary has quit [Quit: Page closed]
fujimura has quit [Remote host closed the connection]
sgambino has joined #ruby-lang
alestuber has joined #ruby-lang
caseypatrickdris has joined #ruby-lang
banister has joined #ruby-lang
<Ox0dea> banister: Any ideas?
<Ox0dea> I suspect it won't be considered a bug that FrozenCore's instance methods can't be properly aliased.
<banister> Ox0dea i haven't messed with frozen core before
shazaum has joined #ruby-lang
niemcu has quit [Ping timeout: 265 seconds]
<Ox0dea> banister: I hadn't expected that, to be honest.
<banister> is this a new nickname for you? I dont recognize you :)
<Ox0dea> I've been here before, if that's the gist of your question. :)
Guest20_ has joined #ruby-lang
matp has joined #ruby-lang
revath has joined #ruby-lang
sankaber has joined #ruby-lang
<Ox0dea> banister: I just figured you'd've found yourself pretty far into Ruby during the course of writing Pry, but FrozenCore is about as deep as the hole goes, I guess.
chinmay__ has quit [Ping timeout: 256 seconds]
<Ox0dea> Does CFP here signify "continuation function pointer"?
<banister> Ox0dea i've written deeper things than pry :)
<banister> Ox0dea http://github.com/banister/binding_of_caller and http://github.com/banister/free for a couple of weird projects i did a while ago
<banister> Ox0dea current frame pointer
Ropeney has joined #ruby-lang
wprice has joined #ruby-lang
alestuber has quit [Ping timeout: 252 seconds]
alestuber has joined #ruby-lang
chinmay_dd has joined #ruby-lang
djbkd has joined #ruby-lang
allomov has quit [Remote host closed the connection]
allomov has joined #ruby-lang
ArchRogem has joined #ruby-lang
djbkd has quit [Ping timeout: 258 seconds]
charliesome has joined #ruby-lang
<Ox0dea> charliesome: I got close. https://eval.in/357629
<Ox0dea> But core#define_method does its thing inside the REWIND_CFP macro, which puts me a ways out of my depth.
<Ox0dea> Also, the exit handler to instance trick doesn't work anymore. :/
alestuber has quit [Remote host closed the connection]
<darix> Ox0dea: ... just curious ... why?
pyo_ has joined #ruby-lang
wprice has quit [Quit: wprice]
<Ox0dea> darix: "Because it's there."
revath has quit [Quit: Leaving.]
dzejrou has quit [Read error: Connection reset by peer]
revath has joined #ruby-lang
alestuber has joined #ruby-lang
<Ox0dea> darix: I had something vaguely resembling a use case when I wanted to capture and potentially reorder exit handlers for testing, but now it's just a matter of seeing the thing done.
vondruch has quit [Quit: Ex-Chat]
victortyau has joined #ruby-lang
workmad3 has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
fclausen has quit [Ping timeout: 272 seconds]
ggerman has joined #ruby-lang
imperator has joined #ruby-lang
Musashi007 has joined #ruby-lang
airdisa has joined #ruby-lang
ggerman_ has joined #ruby-lang
k3asd` has joined #ruby-lang
ggerman has quit [Ping timeout: 276 seconds]
ggerman_ has quit [Ping timeout: 265 seconds]
djellemah__ has joined #ruby-lang
ggerman has joined #ruby-lang
pyo_ has quit []
pyoio has joined #ruby-lang
kfpratt has joined #ruby-lang
djellemah has quit [Ping timeout: 240 seconds]
niemcu has joined #ruby-lang
ggerman has quit [Ping timeout: 240 seconds]
ggerman has joined #ruby-lang
bungoman has joined #ruby-lang
chinmay_dd has quit []
bungoman has quit [Remote host closed the connection]
revath has quit [Ping timeout: 272 seconds]
bungoman has joined #ruby-lang
ggerman has quit [Ping timeout: 252 seconds]
pyoio has quit []
ggerman has joined #ruby-lang
joaomdmoura has joined #ruby-lang
dzejrou has joined #ruby-lang
dhjondoh has quit [Quit: dhjondoh]
malconis has joined #ruby-lang
enebo has joined #ruby-lang
kfpratt has quit [Remote host closed the connection]
fclausen has joined #ruby-lang
pyoio has joined #ruby-lang
elia has joined #ruby-lang
bruno- has joined #ruby-lang
ggerman has quit [Ping timeout: 264 seconds]
bruno- is now known as Guest98109
ggerman has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
dzejrou has quit [Read error: Connection reset by peer]
pyoio has quit [Client Quit]
tkuchiki has joined #ruby-lang
pyo_ has joined #ruby-lang
charliesome has quit [Quit: zzz]
caseypatrickdris has quit [Remote host closed the connection]
pyo_ has quit [Max SendQ exceeded]
pyo_ has joined #ruby-lang
malconis has quit [Remote host closed the connection]
ggerman has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby-lang
malconis has joined #ruby-lang
ggerman has joined #ruby-lang
pyo_ has quit [Max SendQ exceeded]
ggerman has quit [Ping timeout: 264 seconds]
ggerman has joined #ruby-lang
revath has joined #ruby-lang
ggerman has quit [Ping timeout: 265 seconds]
ggerman has joined #ruby-lang
imperator2 has joined #ruby-lang
alestuber has quit [Ping timeout: 240 seconds]
ggerman has quit [Ping timeout: 244 seconds]
alestuber has joined #ruby-lang
ggerman has joined #ruby-lang
wprice has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tomaz_b has quit [Ping timeout: 256 seconds]
alestuber has quit [Remote host closed the connection]
ggerman has quit [Ping timeout: 256 seconds]
ggerman has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
ogpastaling has joined #ruby-lang
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby-lang
ggerman has quit [Ping timeout: 245 seconds]
jas02_ has joined #ruby-lang
jwaldrip has joined #ruby-lang
dorei has joined #ruby-lang
ggerman has joined #ruby-lang
jas02 has quit [Ping timeout: 264 seconds]
jas02_ is now known as jas02
alestuber has joined #ruby-lang
datanoise has joined #ruby-lang
stan has quit [Quit: Leaving]
j4cknewt has joined #ruby-lang
stan has joined #ruby-lang
skade has joined #ruby-lang
ggerman has quit [Ping timeout: 272 seconds]
ggerman has joined #ruby-lang
datanoise has quit [Ping timeout: 246 seconds]
dzejrou has joined #ruby-lang
ubernil has quit [Ping timeout: 256 seconds]
caseypatrickdris has joined #ruby-lang
ggerman has quit [Ping timeout: 264 seconds]
ggerman has joined #ruby-lang
stamina has joined #ruby-lang
zotherstupidguy has left #ruby-lang [#ruby-lang]
ggerman has quit [Ping timeout: 264 seconds]
ggerman has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
ggerman has quit [Ping timeout: 264 seconds]
ggerman has joined #ruby-lang
gambl0re has joined #ruby-lang
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ropeney has joined #ruby-lang
Ropeney has quit [Remote host closed the connection]
ggerman has quit [Ping timeout: 245 seconds]
ggerman has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
Guest20_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby-lang
whippythellama has joined #ruby-lang
ggerman has quit [Ping timeout: 255 seconds]
ggerman has joined #ruby-lang
go|dfish has quit [Ping timeout: 264 seconds]
jas02 has quit [Ping timeout: 252 seconds]
momomomomo has quit [Ping timeout: 256 seconds]
momomomomo_ has joined #ruby-lang
ggerman has quit [Ping timeout: 256 seconds]
ggerman has joined #ruby-lang
ggerman has quit [Ping timeout: 240 seconds]
dhjondoh has joined #ruby-lang
ggerman has joined #ruby-lang
canesugar88 has joined #ruby-lang
canesugar88 has quit [Client Quit]
mcclurmc has joined #ruby-lang
shinnya has joined #ruby-lang
ggerman has quit [Ping timeout: 252 seconds]
bungoman has quit [Remote host closed the connection]
ggerman has joined #ruby-lang
chinmay_dd has joined #ruby-lang
ggerman has quit [Ping timeout: 256 seconds]
ggerman has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
revath has quit [Ping timeout: 246 seconds]
ggerman has quit [Ping timeout: 276 seconds]
ggerman has joined #ruby-lang
ubernil has joined #ruby-lang
ggerman has quit [Ping timeout: 250 seconds]
gambl0re has quit [Ping timeout: 272 seconds]
ggerman has joined #ruby-lang
datanoise has joined #ruby-lang
slawrence00 has joined #ruby-lang
Guest20_ has joined #ruby-lang
alestuber has quit [Remote host closed the connection]
joaomdmoura has quit [Remote host closed the connection]
go|dfish has joined #ruby-lang
ggerman has quit [Ping timeout: 272 seconds]
ggerman has joined #ruby-lang
airdisa has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 255 seconds]
ItSANgo has quit [Read error: Connection reset by peer]
ItSANg___ has joined #ruby-lang
ItSANg___ has quit [Read error: Connection reset by peer]
chinmay_dd has quit [Remote host closed the connection]
ItSANgo__ has joined #ruby-lang
chinmay_dd has joined #ruby-lang
ggerman has quit [Ping timeout: 255 seconds]
sarkyniin has joined #ruby-lang
ggerman has joined #ruby-lang
joaomdmoura has joined #ruby-lang
datanoise has joined #ruby-lang
brownbathrobe has joined #ruby-lang
dhjondoh has quit [Quit: dhjondoh]
noobrubyguy has joined #ruby-lang
<noobrubyguy> Hello guys... I have set of rails projects (Different API) ...How do i automate integration testing? can anyone help me with the important things to follow
k3asd` has quit [Ping timeout: 256 seconds]
<noobrubyguy> is there any ruby test frameworks which i can use?
ggerman has quit [Ping timeout: 264 seconds]
ggerman has joined #ruby-lang
<noobrubyguy> How does this work? does anyone replies?
VinnyBoy has joined #ruby-lang
gamename has joined #ruby-lang
tkuchiki has quit [Ping timeout: 276 seconds]
kr3ssh has joined #ruby-lang
chinmay_dd has quit [Remote host closed the connection]
kfpratt has joined #ruby-lang
joaomdmoura has quit [Remote host closed the connection]
chinmay_dd has joined #ruby-lang
ggerman has quit [Ping timeout: 240 seconds]
<noobrubyguy> anyone deR?
<noobrubyguy> does this chat work
<noobrubyguy> ???
<noobrubyguy> ???
<noobrubyguy> ????
<VinnyBoy> it does
ggerman has joined #ruby-lang
<noobrubyguy> ok
<noobrubyguy> But no one replies?
<bougyman> VinnyBoy replied.
<noobrubyguy> I have set of rails projects (Different API) ...How do i automate integration testing? can anyone help me with the important things to follow
<bougyman> Your question is very vague
<bougyman> what exactly are you trying to do?
<noobrubyguy> Just hit a web service by creating a request
bungoman has joined #ruby-lang
<noobrubyguy> and get the response and validate
<noobrubyguy> is there any test frameworks people use.? there is PySys in python...what about ruby?
<bougyman> lots
<bougyman> cucumber or even just rack-test could do this
airdisa has joined #ruby-lang
JakFrist_ has joined #ruby-lang
ggerman has quit [Ping timeout: 250 seconds]
ggerman has joined #ruby-lang
jwaldrip_ has joined #ruby-lang
<noobrubyguy> Thanks mate
<noobrubyguy> Rack Test looks good
<noobrubyguy> new to ruby, so don't know anything...
rcvalle has joined #ruby-lang
michael_imac is now known as michael_mbp
ggerman has quit [Ping timeout: 256 seconds]
jwaldrip has quit [Ping timeout: 265 seconds]
harly has quit [Quit: Leaving]
ggerman has joined #ruby-lang
gambl0re has joined #ruby-lang
ggerman has quit [Ping timeout: 276 seconds]
ggerman has joined #ruby-lang
JakFrist_ has quit [Remote host closed the connection]
noobrubyguy has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
ggerman has quit [Ping timeout: 264 seconds]
ggerman has joined #ruby-lang
__butch__ has joined #ruby-lang
ggerman has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby-lang
ggerman has joined #ruby-lang
momomomomo_ has quit [Quit: momomomomo_]
ggerman has quit [Ping timeout: 256 seconds]
ggerman has joined #ruby-lang
zendrix has joined #ruby-lang
ggerman has quit [Ping timeout: 245 seconds]
scottschecter has quit [Quit: Leaving]
allomov has quit [Remote host closed the connection]
ggerman has joined #ruby-lang
jds has joined #ruby-lang
BanzaiJoe has joined #ruby-lang
<BanzaiJoe> good day
shinnya has quit [Ping timeout: 264 seconds]
victortyau has quit [Quit: Leaving]
ggerman has quit [Ping timeout: 265 seconds]
ggerman has joined #ruby-lang
alestuber has joined #ruby-lang
ogpastaling has quit [Remote host closed the connection]
jamo___ has joined #ruby-lang
jamo___ has quit [Client Quit]
ggerman has quit [Ping timeout: 264 seconds]
niemcu has quit [Ping timeout: 272 seconds]
ggerman has joined #ruby-lang
alestuber has quit [Ping timeout: 272 seconds]
simi has quit [Ping timeout: 255 seconds]
harisamin_ has joined #ruby-lang
<harisamin_> :smile:
<harisamin_> :)
bb010g has quit [Quit: Connection closed for inactivity]
dagda1 has joined #ruby-lang
ggerman has quit [Ping timeout: 256 seconds]
ggerman has joined #ruby-lang
stan has quit [Ping timeout: 265 seconds]
revath has joined #ruby-lang
momomomomo has joined #ruby-lang
iamninja has quit [Ping timeout: 264 seconds]
ggerman has quit [Ping timeout: 252 seconds]
ggerman has joined #ruby-lang
apt-get_ has joined #ruby-lang
fusillicode has quit [Ping timeout: 272 seconds]
woodruffw has quit [Quit: And then he took off.]
ggerman has quit [Ping timeout: 252 seconds]
sarkyniin has quit [Ping timeout: 265 seconds]
ggerman has joined #ruby-lang
mikecmpbll has quit [Ping timeout: 258 seconds]
airdisa has quit []
joaomdmoura has joined #ruby-lang
zendrix has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
zendrix has joined #ruby-lang
AlxAltea has joined #ruby-lang
AlexAltea has quit [Ping timeout: 256 seconds]
ogpastaling has joined #ruby-lang
ggerman has quit [Ping timeout: 276 seconds]
ggerman_ has joined #ruby-lang
stamina has quit [Ping timeout: 252 seconds]
|jemc| has joined #ruby-lang
ggerman_ has quit [Ping timeout: 250 seconds]
momomomomo has quit [Ping timeout: 250 seconds]
ggerman has joined #ruby-lang
konr has joined #ruby-lang
ggerman has quit [Ping timeout: 256 seconds]
elia has quit [Quit: Computer has gone to sleep.]
ggerman has joined #ruby-lang
Guest20_ has quit [Quit: Textual IRC Client: www.textualapp.com]
bzb has joined #ruby-lang
bzb has quit [Read error: Connection reset by peer]
ggerman has quit [Ping timeout: 256 seconds]
JEG2 has joined #ruby-lang
ggerman has joined #ruby-lang
bungoman has quit [Remote host closed the connection]
mahlon_ has quit [Ping timeout: 246 seconds]
mahlon_ has joined #ruby-lang
ggerman has quit [Ping timeout: 256 seconds]
ggerman has joined #ruby-lang
zendrix has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
Guest98109 has quit [Ping timeout: 276 seconds]
momomomomo has joined #ruby-lang
ggerman has quit [Ping timeout: 244 seconds]
zendrix has joined #ruby-lang
ggerman has joined #ruby-lang
wallerdev has quit [Client Quit]
linc01n has quit [Ping timeout: 265 seconds]
jwaldrip_ has quit [Quit: Lingo: www.lingoirc.com]
wallerdev has joined #ruby-lang
mikecmpbll has joined #ruby-lang
intinig has quit [Remote host closed the connection]
intinig has joined #ruby-lang
ggerman has quit [Ping timeout: 272 seconds]
alestuber has joined #ruby-lang
ggerman has joined #ruby-lang
intinig has quit [Ping timeout: 252 seconds]
dzejrou has quit [Ping timeout: 256 seconds]
momomomomo_ has joined #ruby-lang
alestuber has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 244 seconds]
momomomomo_ is now known as momomomomo
faces has quit [Ping timeout: 272 seconds]
tibig has joined #ruby-lang
ggerman has quit [Ping timeout: 250 seconds]
skade has joined #ruby-lang
rbowlby has joined #ruby-lang
ggerman has joined #ruby-lang
harisamin_ has quit [Quit: harisamin_]
alestuber has joined #ruby-lang
alestuber has quit [Remote host closed the connection]
fusillicode has joined #ruby-lang
allomov has joined #ruby-lang
Neutrino9 has joined #ruby-lang
allomov has quit [Remote host closed the connection]
bruno- has joined #ruby-lang
<BanzaiJoe> I have a design question...
ggerman has quit [Ping timeout: 244 seconds]
Neutrino9 has left #ruby-lang [#ruby-lang]
<BanzaiJoe> I have an item that has 1000 units, the item is never destroyed just attached to different locations in varying amounts
<wallerdev> sweet
ggerman has joined #ruby-lang
<BanzaiJoe> for example, 100 units at position a, 700 at b, and 200 at c. a, b, and c are objects
<BanzaiJoe> I'm thinking about a simple hash and updating it. Am I over/under thinking this?
<yxhuvud> hard to say.
alestuber has joined #ruby-lang
[k- has quit [Quit: Lingo: www.lingoirc.com]
<BanzaiJoe> hmm... the more items I end up with the more I'm thinking there needs to be an abstraction
ggerman has quit [Ping timeout: 258 seconds]
ggerman has joined #ruby-lang
<BanzaiJoe> position objects, inventory arrays, transfer methods
skade has quit [Quit: Computer has gone to sleep.]
alestuber has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
ggerman has quit [Ping timeout: 255 seconds]
ggerman has joined #ruby-lang
alestuber has joined #ruby-lang
ggerman has quit [Ping timeout: 252 seconds]
ggerman has joined #ruby-lang
hackeron has quit [Ping timeout: 245 seconds]
hackeron has joined #ruby-lang
bungoman has joined #ruby-lang
<Ox0dea> BanzaiJoe: You can use your "positions" as hash keys.
ggerman has quit [Ping timeout: 276 seconds]
<BanzaiJoe> I've been thinking about it and the more I think about it, yes
ggerman has joined #ruby-lang
dellavg_ has joined #ruby-lang
<BanzaiJoe> I'm a n00b and I was thinking that the positions needed to be passed but it truth, they are nothing more than labels
AlxAltea has quit [Ping timeout: 252 seconds]
<BanzaiJoe> the more I go down this rabbit hole it's like seeing how movies are made, and I can't undo what I see :)
momomomomo_ has joined #ruby-lang
zendrix has quit [Remote host closed the connection]
<BanzaiJoe> Travelling my little spaceship across the galaxy and spending fuel was really nothing more than subtracting fuel and changing a label position
momomomomo has quit [Ping timeout: 255 seconds]
momomomomo_ is now known as momomomomo
ggerman has quit [Ping timeout: 246 seconds]
drbrain has quit [Ping timeout: 265 seconds]
ggerman has joined #ruby-lang
zendrix has joined #ruby-lang
drbrain has joined #ruby-lang
ggerman has quit [Ping timeout: 264 seconds]
jgpawletko has joined #ruby-lang
joaomdmoura has quit [Remote host closed the connection]
aaeron has joined #ruby-lang
ggerman has joined #ruby-lang
<BanzaiJoe> does it matter if the position is explicit? What I really mean... is it bad practice to use the index on the array as the position and use the index as the labeled position. Example...
lele is now known as Guest24
hahuang65 has joined #ruby-lang
<BanzaiJoe> item = [0, 100,200,100,500,0,100,0] and then label by inex sun = 0, 1 = mercury, 2 = venus, 3 = earth, so item has 100 on Mercury because it's at index 1
<VinnyBoy> well
<VinnyBoy> are you gonna use them labels?
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby-lang
ggerman has quit [Ping timeout: 255 seconds]
<BanzaiJoe> the ordinitality doesn't change in my program, but I'm really asking if this is a good practice
<VinnyBoy> im not a professional programmer so i wouldnt know
<VinnyBoy> i would, however, put a comment near your array
ggerman has joined #ruby-lang
<BanzaiJoe> that I'm a n00b? ;)
<BanzaiJoe> hashtag - not sure if this is a good idea, but fire in the hole! note: using ordinatlity of index as labels for position
<VinnyBoy> no, something like "array = [sun, mercury, venus, earth, etc
marr has quit [Ping timeout: 246 seconds]
<Ox0dea> No, something like {Sun: 0, Mercury: 100, ...}.
<imperator2> VinnyBoy, not a professional programmer? may we ask what you do then?
<imperator2> just curious what brought you here
<VinnyBoy> im a market clerk
<BanzaiJoe> Ox0dea, if the ordinitality doesn't change, is it bad practice to use the index to as the key for the label ?
<Ox0dea> BanzaiJoe: Are you familiar with the phrase "magic number"?
<BanzaiJoe> not particularly
<VinnyBoy> however, i studied in computer science, and i want to do something with that
<Ox0dea> BanzaiJoe: It's good practice to avoid them, but you're suggesting using nine of them rapid-fire!
<apt-get_> Hey
<apt-get_> I have this regex: /^(!|@)shuffle (\d*)/i
<apt-get_> how can I make it so, for example, "!shuffle something" will not match at all?
<apt-get_> currently, even if the second group doesn't match, it'll match the first group
<BanzaiJoe> Ox0dea, thanks I get the gist. The implicitness obscures the next person reading the code. Will avoid
ggerman has quit [Ping timeout: 256 seconds]
alestuber has quit [Remote host closed the connection]
<Ox0dea> BanzaiJoe: Yes, that's exactly right.
<imperator2> apt-get_, rubular.com is your friend :)
ggerman has joined #ruby-lang
<BanzaiJoe> and I thought I was being so slick, haha. Maybe too slick, good first project lesson.
<Ox0dea> BanzaiJoe: Properly "clever" code always feels good; if you have misgivings, you've either been too clever or not enough.
<apt-get_> imperator2: I already use it
<apt-get_> but it doesn't have any info on what I want to do
<Ox0dea> apt-get_: To be clear, you *do* want to capture both of those groups, right?
ggerman has quit [Read error: Connection reset by peer]
<apt-get_> Ox0dea: yeah
<apt-get_> but I don't want the regex to match at all if only one group is captured
<imperator2> apt-get_, if i understand you correctly, i think you want ^([^!]|@)shuffle (\d*)
<imperator2> oic
djellemah__ has quit [Ping timeout: 256 seconds]
<imperator2> then you want \d+ i think
<apt-get_> oh right
<apt-get_> thanks
harisamin has joined #ruby-lang
ggerman has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
cornerma1 has joined #ruby-lang
ggerman has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 272 seconds]
ubernil has quit [Ping timeout: 256 seconds]
ggerman has joined #ruby-lang
zendrix has quit [Remote host closed the connection]
<BanzaiJoe> so I google "Ruby create a hash from an array" for my previous problem. I feel like I opened a giant can of worms that I'm just going to close and remind myself to look into later. I'd probably spend hours pouring over each vs map vs collect vs each_with_object and not get any code written. Maybe lunch instead...
cornerman has quit [Ping timeout: 256 seconds]
cornerma1 is now known as cornerman
joaomdmoura has joined #ruby-lang
stamina has joined #ruby-lang
ggerman has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby-lang
alestuber has joined #ruby-lang
ggerman has joined #ruby-lang
<Ox0dea> >> Hash.new[1, 2, 3, 4]
<eval-in> Ox0dea => wrong number of arguments (4 for 1) (ArgumentError) ... (https://eval.in/358498)
<Ox0dea> >> Hash[1, 2, 3, 4]
<eval-in> Ox0dea => {1=>2, 3=>4} (https://eval.in/358499)
<Ox0dea> >> foo = [1, 2, 3, 4]; Hash[*foo]
<eval-in> Ox0dea => {1=>2, 3=>4} (https://eval.in/358500)
<Ox0dea> BanzaiJoe: It's not so hard.
g0bl1n has joined #ruby-lang
g0bl1n has joined #ruby-lang
<banister> BanzaiJoe you can use `to_h`
<banister> >> [1, 2, 3, 4].to_h
<eval-in> banister => wrong element type Fixnum at 0 (expected array) (TypeError) ... (https://eval.in/358501)
<banister> wat
<banister> ok
ggerman has quit [Remote host closed the connection]
<banister> >> [1, 2, 3, 4].each_pair.to_h
<eval-in> banister => undefined method `each_pair' for [1, 2, 3, 4]:Array (NoMethodError) ... (https://eval.in/358502)
<banister> >> [1, 2, 3, 4].each_slice(2).to_h
<eval-in> banister => {1=>2, 3=>4} (https://eval.in/358503)
<banister> phew
<BanzaiJoe> >> positions[Sun, Mercury, Venus, Earth]
<eval-in> BanzaiJoe => undefined local variable or method `positions' for main:Object (NameError) ... (https://eval.in/358504)
<Ox0dea> BanzaiJoe: That's not how any of this works.
<BanzaiJoe> then given type X, quantity Y0 through Y4 , create type [Sun: Y0, Mercury: Y1, Venus: Y2, Earth: Y3]
<BanzaiJoe> type being the label for the item_type hash
shinnya has joined #ruby-lang
<Ox0dea> BanzaiJoe: The bodies only have Y coordinates?
<BanzaiJoe> errr.... let me try again, in an ideal world, I'd have something like this...
g0bl1n has quit [Ping timeout: 246 seconds]
<BanzaiJoe> for a given item_type a hash of type 's' would be s = [Sun: 100, Mercury:0, Venus: 200, Earth:500] than rinse repeat for different item_types and different quantities where the first part of the tuple would always be the sun and planets
<Ox0dea> That's not a hash, and Ruby doesn't really have tuples, per se.
<BanzaiJoe> key -> value, I get that
slumos has left #ruby-lang [#ruby-lang]
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> BanzaiJoe: That's good, but you'll want to call things by their proper names to avoid confusion.
<BanzaiJoe> agreed, that's why I'm in here to get schooled
<Ox0dea> BanzaiJoe: To be clear, your galaxy is essentially a number line rather than a grid, yes?
<pipework> Ox0dea: It has sets, which are ordered in ruby, but they're not quite tuples all the same.
<BanzaiJoe> Ox0dea, I have a pipe dream of 3D later on but for now, yes a number line
<Ox0dea> A grid is 2D. :P
<Ox0dea> BanzaiJoe: What does the Sun having a value of 100 signify?
<BanzaiJoe> that item_typewhatever as 100 units at that location
<Ox0dea> Ah, and each body has many distinct items of varying quantity?
<BanzaiJoe> has*
<BanzaiJoe> correct
rippa has joined #ruby-lang
<Ox0dea> s = {Sun: {thingy: 100, bobble: 200}, Mercury: {shazzle: 50, snizzle: 250}, ...}
<pipework> Ox0dea: What stops a grid from being 3 dimensional?
baweaver has quit [Remote host closed the connection]
<pipework> Or n-dimensional?
<Ox0dea> pipework: It does seem I misspoke.
<pipework> Egh, shit happens. :)
<BanzaiJoe> so if I keep the nest organized, I can query by nest...
<Ox0dea> BanzaiJoe: Enumerable is very powerful; you can query by all sorts of things.
<BanzaiJoe> right, I'm grokking out load and catching up on your suggestion
<BanzaiJoe> I'm hoping that adding and subtracting from nested fields like this is more of mental leap than a coding issue
<imperator> deeply nested hashes as structs...ick territory
<Ox0dea> BanzaiJoe: How's your grasp on classes?
tsujp has quit [Quit: tsujp is outta here]
baweaver has joined #ruby-lang
<BanzaiJoe> like a drunken sailor to a bottle, at times great, but mostly loose
<Ox0dea> It may be out of your comfort zone, but factoring out the notion of "an item and its quantity" into a class (which could be as simple as a Struct, as imperator suggests) and storing arrays of these would be the best approach.
hachiya has quit [Ping timeout: 252 seconds]
<Ox0dea> Bundle = Struct.new(:item, :quantity); s = {Sun: [Bundle.new(:foo, 50), Bundle.new(:bar, 100)], ...}
r0bby_ has joined #ruby-lang
<Ox0dea> Then, for example, s[:Sun].map(&:quantity).reduce(:+) would tell you the total number of items on the Sun.
<BanzaiJoe> that's actually where I started from but not structs, pretty much only heard the word "structs"
robbyoconnor has quit [Ping timeout: 256 seconds]
<BanzaiJoe> I can read s[:Sun].map(&:quantity).reduce(:+) and intuitively read it coming from a data background but from a coding background, way, way beyond me
zendrix has joined #ruby-lang
datanoise has quit [Ping timeout: 264 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
<BanzaiJoe> thanks, gives me something to hack at
<Ox0dea> Enumerable#map_reduce seems like the kind of thing Ruby should have...
<pipework> Why?
<pipework> There's not much use in mri.
<Ox0dea> It's just pleasantly succinct.
<pipework> So you'd pass two procs/lambas in?
<Ox0dea> Or a symbol and a block.
<Ox0dea> Or, of course, two symbols.
<pipework> Seems silly unnecessary sugar.
<Ox0dea> You're right.
<pipework> Not always.
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> But I'm still cross nobody took interest in "foo"[/(bar)(baz)/, 1, 2].
<pipework> Ox0dea: Oh how would that work?
<Ox0dea> My path is on the issue tracker.
<Ox0dea> *patch
<pipework> link?
<Ox0dea> To be fair, it's written for "foo"[/(bar)(baz)/], [1, 2]], but I would've gone for the former with sufficient incentive.
<Ox0dea> Not sure how I forgot the issue number.
<pipework> Oh, I see.
<Ox0dea> Silly unnecessary sugar, to be sure.
iamninja has joined #ruby-lang
<pipework> Whale, so is [] on String. :D
r0bby_ has quit [Quit: Konversation terminated!]
bungoman has quit [Remote host closed the connection]
zendrix has quit [Remote host closed the connection]
zendrix has joined #ruby-lang
Miphix has quit [Quit: Leaving]
caseypatrickdris has quit [Remote host closed the connection]
marr has joined #ruby-lang
zendrix has quit [Ping timeout: 264 seconds]
bungoman has joined #ruby-lang
setanta_ has joined #ruby-lang
dagda1 has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
Excelsior2015 has quit [Ping timeout: 250 seconds]
ur5us has joined #ruby-lang
kadoppe has quit [Ping timeout: 244 seconds]
kadoppe has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
bungoman has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
alestuber has quit [Remote host closed the connection]
harisamin has quit [Quit: harisamin]
melter has quit [Quit: Client exiting]
momomomomo has joined #ruby-lang
chinmay_dd has quit []
djbkd has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
bungoman has joined #ruby-lang
<BanzaiJoe> Ox0dea: yea... Struct is what I need but it's too far above me for now. I'll attempt it on the rewrite.
<Ox0dea> BanzaiJoe: Thing = Struct.new(:foo, :bar) is essentially equivalent to: class Thing; attr_accessor :foo, :bar; end.
<Ox0dea> And attr_accessor :foo is equivalent to: def foo; @foo; end; def foo=bar; @foo=bar; end.
<Ox0dea> All in good time, I suppose.
pkrnj has joined #ruby-lang
<BanzaiJoe> All in good time
<Ox0dea> BanzaiJoe: Still, classes are the heart of object-oriented design, and Ruby is arguably the most object-oriented language of them all, so you'll want to familiarize yourself with these concepts sooner rather than not.
alestuber has joined #ruby-lang
datanoise has joined #ruby-lang
ggerman has joined #ruby-lang
<Ox0dea> BanzaiJoe: From where all are you learning Ruby, if you don't mind my asking?
<BanzaiJoe> Linux Academy, Ruby docs, trial and error
<BanzaiJoe> of course, listening to podcasts and google if you can call that "learning Ruby"
<BanzaiJoe> My background is network/sysadmin and powershell scripting
allomov has joined #ruby-lang
zendrix has joined #ruby-lang
Senjai has quit [Ping timeout: 265 seconds]
alestuber has quit [Ping timeout: 272 seconds]
AlexAltea has joined #ruby-lang
<imperator> just learning powershell myself :)
momomomomo_ has joined #ruby-lang
momomomomo has quit [Ping timeout: 265 seconds]
momomomomo_ is now known as momomomomo
caseypatrickdris has joined #ruby-lang
<darix> at my friends place they banned the exchange gui tools and only allow powershell scripts for admin tasks now
alestuber has joined #ruby-lang
revath has quit [Ping timeout: 258 seconds]
<BanzaiJoe> You can version control or QA a script, not so much for clicky-clicky
Senjai has joined #ruby-lang
Senjai has quit [Changing host]
Senjai has joined #ruby-lang
<bougyman> so I got simplecov working again (need update to 0.10)
<bougyman> but something is still doing this crazy math:
<bougyman> 2110 tests, 5453 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
<bougyman> 1.89573% passed
<bougyman> anyone know exactly what lib gives that output?
<bougyman> test::unit in an old rails.
n0ct has joined #ruby-lang
postmodern has joined #ruby-lang
Excelsior2015 has joined #ruby-lang
<bougyman> imperator: nope, that's the problem I already fixed :)
<imperator> hah, nm
<bougyman> I had been getting that. as I said, simplecov is all good now.
<bougyman> now it's just that pesky percentage.
<bougyman> it doesn't really affect anything
<bougyman> just looks weird.
<bougyman> this is rails 2.3.2 running on ruby 2.2.2
<bougyman> it's got a lot of glue holding it together.
<bougyman> 40,000 lines of rails code that we got sick of running on 1.9.3
<darix> so that's where all my glue went!
<bougyman> on the good side: test suite went from 31 minutes to 4 minutes, 26 seconds.
<n0ct> Hey guys hows it going?
<darix> bougyman: next stop porting to 4.2?:p
<bougyman> darix: nope, we're making roda apps and routing out from under rails in middleware :)
<bougyman> :)
<bougyman> it's taken almost 2 years, but we finally have a path away from The Beast (rails)
zendrix has quit [Remote host closed the connection]
tomaz_b has joined #ruby-lang
zendrix has joined #ruby-lang
allomov has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
<n0ct> Hey guys, anyone available to help with a simple script?
<darix> n0ct: anyone just left before you joined. but when you ask specific questions, others might be able to help you.
<n0ct> @darix Thanks
rippa has joined #ruby-lang
<imperator> n0ct, go ahead and paste a gist
enebo has joined #ruby-lang
<n0ct> basically im trying to get this infohash to magnet link converter to work
elia has joined #ruby-lang
<yorickpeterse> n0ct: what exactly isn't working?
<n0ct> I am a little confused on running it
<n0ct> i put it in IRB and cant get it to "magnetize
ur5us has joined #ruby-lang
<n0ct> I pasted the script into irb, hit enter and then entered magnetize(paste infohash)
airdisa has joined #ruby-lang
<yorickpeterse> Did you quote the value?
baweaver has joined #ruby-lang
chouhoul_ has joined #ruby-lang
pkrnj has quit [Quit: Computer has gone to sleep.]
DCameronMauch has joined #ruby-lang
<n0ct> @yorickpeterse That worked thanks a ton.
<n0ct> I thought i tried that a few times.
chouhoulis has quit [Ping timeout: 272 seconds]
<n0ct> Thanks everyone for the help. Much appreciated.
baweaver has quit [Remote host closed the connection]
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joaomdmoura has quit [Remote host closed the connection]
joaomdmoura has joined #ruby-lang
bertocode has joined #ruby-lang
wallerdev has joined #ruby-lang
matp_ has joined #ruby-lang
ybathia has joined #ruby-lang
<yorickpeterse> np
matp has quit [Ping timeout: 264 seconds]
DCameronMauch has quit [Quit: Leaving...]
<Ox0dea> yorickpeterse: Would you mind taking a look?
zendrix has quit [Remote host closed the connection]
zendrix has joined #ruby-lang
DCameronMauch has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
stamina has quit [Quit: WeeChat 1.1.1]
stamina has joined #ruby-lang
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has joined #ruby-lang
zendrix has quit [Remote host closed the connection]
zendrix has joined #ruby-lang
ogpastaling has quit [Remote host closed the connection]
DCameronMauch has quit [Quit: Leaving...]
niemcu has joined #ruby-lang
dagda1 has joined #ruby-lang
alestuber has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
ybathia has quit [Quit: ybathia]
joaomdmoura has quit [Remote host closed the connection]
skade has joined #ruby-lang
nedp has joined #ruby-lang
datanoise has quit [Ping timeout: 258 seconds]
shazaum has quit [Quit: Leaving]
ybathia has joined #ruby-lang
alestuber has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
datanoise has joined #ruby-lang
momomomomo has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
apt-get__ has joined #ruby-lang
duderonomy has joined #ruby-lang
apt-get_ has quit [Ping timeout: 256 seconds]
grixis has joined #ruby-lang
<grixis> could someone explain this?
<grixis> When /^I tap "([^"]*)"(?: and wait ((?:\d+(?:\.\d+)?)\s*s(?:ecs?|econds?)))?$/ do |name, time|
<grixis> screenable = hint(:type => 'screen') do |hint|
<grixis> hint.gameobject.name == name and hint.on_screen?
<grixis> end
<grixis> should 'not', screenable, be_nil
<grixis> screenable.tap :wait => (time || touch.default_tap_delay).to_f
<grixis> end
alestuber has quit [Read error: Connection reset by peer]
apt-get__ has quit [Remote host closed the connection]
konr has quit [Quit: Connection closed for inactivity]
Musashi007 has joined #ruby-lang
dellavg_ has quit [Ping timeout: 264 seconds]
<Ox0dea> grixis: Have you copied that code verbatim?
dzejrou has joined #ruby-lang
gamename has quit [Read error: Connection reset by peer]
DCameronMauch has joined #ruby-lang
<Ox0dea> grixis: Are you at all familiar with Cucumber?
<grixis> i know of it and used it once; never coded for
baweaver has quit [Remote host closed the connection]
<Ox0dea> Well, it's a brand of testing wherein you tell the "story" of what should happen when.
<Ox0dea> Is it the regular expressions that're throwing you, or?
momomomomo has quit [Quit: momomomomo]
stamina has quit [Read error: Connection reset by peer]
<grixis> lines 9-13
whippythellama has quit [Quit: whippythellama]
k3asd` has joined #ruby-lang
<grixis> where did hint(:type => 'screen') come from?
<Ox0dea> grixis: Yeah, I'm not sure about that one.
<grixis> Do you know where I can go to find out?
<Ox0dea> #hint delegates to #unity, which... doesn't do a whole lot.
alestuber has joined #ruby-lang
j4cknewt has quit [Ping timeout: 252 seconds]
imperator has quit [Quit: Leaving]
<grixis> Ya, I wish there were comments
<Ox0dea> grixis: I'm reasonably certain this project is incomplete.
<grixis> What makes you say that?
DCameronMauch has quit [Quit: Leaving...]
<Ox0dea> grixis: #hint is essentially not implemented?
<grixis> I ran the sample and it does stuff, hint game obj = Options and screenable = {"screen"=>{"y"=>482.8, "height"=>100, "width"=>350, "x"=>209}}
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<grixis> How does def_delegator work?
imperator2 has quit [Quit: Valete!]
workmad3 has joined #ruby-lang
Musashi007 has quit [Read error: Connection reset by peer]
<apeiros> grixis: take a look at the source?
Musashi007 has joined #ruby-lang
<Ox0dea> grixis: The official documentation for Forwardable starts with a pretty insightful example.
Excelsior2015_ has joined #ruby-lang
dzejrou has quit [Ping timeout: 252 seconds]
ggerman has quit [Quit: Lost terminal]
Excelsior2015 has quit [Ping timeout: 250 seconds]
Excelsior2015_ has quit [Ping timeout: 272 seconds]
pkrnj has joined #ruby-lang
nedp has quit [Remote host closed the connection]
ggerman_ has joined #ruby-lang
<grixis> Got it, thank you!
baweaver has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
rbowlby has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
rbowlby_ has joined #ruby-lang
zendrix has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
elia has joined #ruby-lang
momomomomo has quit [Client Quit]
airdisa has quit []
riotjones has joined #ruby-lang
centrx has joined #ruby-lang
enebo has quit [Quit: enebo]
kr3ssh has quit [Ping timeout: 246 seconds]
riotjone_ has quit [Ping timeout: 252 seconds]
tomaz_b has quit [Ping timeout: 276 seconds]
n0ct has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
setanta_ has quit [Quit: Leaving]
fclausen has quit [Ping timeout: 272 seconds]
allomov has joined #ruby-lang
allomov has quit [Remote host closed the connection]
bungoman_ has joined #ruby-lang
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 255 seconds]
ggerman_ has quit [Quit: #rubilit]
ggerman has joined #ruby-lang
bungoman has quit [Ping timeout: 272 seconds]
__butch__ has quit [Quit: Leaving.]
bungoman_ has quit [Ping timeout: 244 seconds]
caseypatrickdris has quit [Read error: Connection reset by peer]
caseypatrickdris has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
workmad3 has quit [Ping timeout: 276 seconds]
hahuang65 has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby-lang
hahuang65 has joined #ruby-lang
grixis has quit [Quit: grixis]
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #ruby-lang
zendrix has joined #ruby-lang
skade has quit [Ping timeout: 245 seconds]
zendrix has quit [Ping timeout: 244 seconds]
momomomomo has joined #ruby-lang
brownbathrobe has quit [Remote host closed the connection]
momomomomo has quit [Client Quit]
djbkd has quit [Read error: Connection reset by peer]
alestuber has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
momomomomo has joined #ruby-lang
k3asd` has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby-lang
zendrix has joined #ruby-lang
brownbathrobe has joined #ruby-lang
airdisa has joined #ruby-lang
airdisa has quit [Remote host closed the connection]
airdisa has joined #ruby-lang
iamninja has quit [Read error: Connection reset by peer]
Ropeney has joined #ruby-lang
iamninja has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
skade has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
pkrnj has quit [Quit: Computer has gone to sleep.]
skade has quit [Ping timeout: 264 seconds]
dorei has quit []
baweaver has quit [Remote host closed the connection]
fujimura has joined #ruby-lang
pkrnj has joined #ruby-lang
fujimura has quit [Ping timeout: 272 seconds]
pkrnj has quit [Client Quit]
alestuber has joined #ruby-lang
baweaver has joined #ruby-lang
niemcu has quit [Ping timeout: 256 seconds]
bertocode has quit [Quit: Nettalk6 - www.ntalk.de]
Musashi007 has joined #ruby-lang
batend has joined #ruby-lang
alestuber has quit [Ping timeout: 245 seconds]
premera has joined #ruby-lang
djbkd has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
zendrix has quit [Ping timeout: 256 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang