bkparso has quit [Read error: Connection reset by peer]
braincrash has quit [Quit: bye bye]
s2013 has joined #ruby
soba has joined #ruby
pu22l3r has joined #ruby
michaeldeol has quit [Ping timeout: 264 seconds]
hiyosi_ has quit [Ping timeout: 250 seconds]
freerobby has quit [Ping timeout: 240 seconds]
nhhagen has joined #ruby
braincrash has joined #ruby
sayan has joined #ruby
tylersmi_ has quit [Ping timeout: 264 seconds]
peregrine81 has joined #ruby
tylersmith has joined #ruby
robbyoconnor has joined #ruby
drag00n has quit [Ping timeout: 240 seconds]
piratepete has quit [Quit: piratepete]
sergicles has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
ckinni has joined #ruby
radic has joined #ruby
mneorr has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
piratepete has joined #ruby
IceDragon has quit [Quit: Space~~~]
soba has quit [Ping timeout: 272 seconds]
skulker has joined #ruby
petey has joined #ruby
jkhwan_ has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 272 seconds]
jkhwan has joined #ruby
<zastern>
Silly question - how do you test projects as you work on them, once you convert it to a gem? E.g. the require statements I'm making sort of depend on the spec.require_path at this point - but that's not in effect while I'm just working on things.
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
<zastern>
I guess I could write a script that builds the gem, installs it, and then executes what I want?
petey has quit [Read error: Connection reset by peer]
petey has joined #ruby
r0bby_ has joined #ruby
dukz has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 252 seconds]
simoz has quit [Ping timeout: 241 seconds]
gianlucadv has joined #ruby
charliesome has joined #ruby
stonevil has quit [Remote host closed the connection]
bnjamin has joined #ruby
Megtastique has quit []
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saarinen has quit [Quit: saarinen]
mary5030_ has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
hamakn has quit [Remote host closed the connection]
jkhwan has quit [Ping timeout: 272 seconds]
piratepete has quit [Quit: piratepete]
hamakn has joined #ruby
nadaprafaze has joined #ruby
Virtualize has quit [Quit: Leaving...]
dopie has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
jamesaanderson has joined #ruby
<zastern>
I can set the load_path explicitly like I did before I built it as a gem, but that seems redundant?
phipes has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 272 seconds]
RaCx has joined #ruby
Virtualize has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
marcgg has joined #ruby
peregrine81 has quit []
phipes has joined #ruby
peregrine81 has joined #ruby
skulker has quit [Remote host closed the connection]
nadaprafaze has quit [Quit: Page closed]
hiyosi_ has joined #ruby
cflat has joined #ruby
stonevil has joined #ruby
aryaching_ has joined #ruby
N00D is now known as zz_N00D
vpretzel_ has joined #ruby
yfeldblum has joined #ruby
zz_N00D is now known as CripperZ
hiyosi_ has quit [Ping timeout: 264 seconds]
aryaching has quit [Ping timeout: 264 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baroquebobcat has quit [Quit: baroquebobcat]
vpretzel has quit [Ping timeout: 250 seconds]
jamesaanderson has joined #ruby
kitak_ has quit [Read error: Connection reset by peer]
CripperZ is now known as zz_CripperZ
kitak has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phipes has quit [Remote host closed the connection]
mikepack has joined #ruby
gianlucadv has quit [Ping timeout: 260 seconds]
lewix has joined #ruby
L8D has quit [Ping timeout: 246 seconds]
joshwines_ has quit [Ping timeout: 246 seconds]
sambao21 has joined #ruby
funburn has joined #ruby
zz_CripperZ is now known as CripperZ
Duckily has quit [Quit: Duckily]
mikepack has quit [Ping timeout: 240 seconds]
CripperZ is now known as zz_CripperZ
mgberlin has quit [Quit: mgberlin]
Duckily has joined #ruby
mgberlin has joined #ruby
phipes has joined #ruby
kcombs has joined #ruby
yfeldblum has quit [Remote host closed the connection]
joshwines_ has joined #ruby
bnjamin has quit [Ping timeout: 246 seconds]
nico103 has quit [Read error: Connection reset by peer]
bkparso has joined #ruby
bkparso has quit [Client Quit]
bkparso has joined #ruby
Alina-malina has quit [Ping timeout: 246 seconds]
Alina-malina has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
RaCx has quit [Ping timeout: 272 seconds]
bkparso has quit [Client Quit]
hogeo has joined #ruby
petey has quit [Remote host closed the connection]
okinomo has quit [Ping timeout: 264 seconds]
phipes has quit [Remote host closed the connection]
RaCx has joined #ruby
petey has joined #ruby
zz_jrhorn424 is now known as jrhorn424
Jdubs has quit [Remote host closed the connection]
phipes has joined #ruby
<rjhunter>
zastern: bundler, with a gemfile entry like `gem 'foo', path: '.'`, might be of interest to you
stonevil has quit [Remote host closed the connection]
michaeldeol has joined #ruby
freerobby has joined #ruby
petey has quit [Ping timeout: 264 seconds]
stonevil has joined #ruby
jamesaanderson has joined #ruby
atno has quit [Ping timeout: 245 seconds]
michaeldeol has quit [Ping timeout: 240 seconds]
freerobby has quit [Ping timeout: 272 seconds]
hogeo has quit [Remote host closed the connection]
nhhagen has joined #ruby
plotter has quit [Ping timeout: 245 seconds]
browndawg has joined #ruby
nhhagen_ has joined #ruby
lyanchih has joined #ruby
Virtualize has quit [Quit: Leaving...]
dhruvasagar has joined #ruby
hogeo has joined #ruby
dukz has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
mneorr has joined #ruby
<zastern>
rjhunter: figured that out. thanks!
nhhagen_ has quit [Ping timeout: 252 seconds]
cflat has quit [Ping timeout: 252 seconds]
blaskovicz has quit [Quit: Leaving.]
blaskovicz has joined #ruby
reset has quit [Ping timeout: 252 seconds]
Baluse has quit []
mneorr has quit [Ping timeout: 246 seconds]
stonevil has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 250 seconds]
blaskovicz has quit [Ping timeout: 246 seconds]
phansch has joined #ruby
davy_ has quit [Remote host closed the connection]
bradhe has joined #ruby
weems has quit [Read error: Connection reset by peer]
zastern has quit [Read error: Connection reset by peer]
aagdbl has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
zastern has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dhruvasagar has joined #ruby
zmansiv has quit [Ping timeout: 260 seconds]
RaCx has quit [Ping timeout: 240 seconds]
flubba has joined #ruby
soba has joined #ruby
aagdbl has quit [Quit: Leaving.]
ixti has quit [Ping timeout: 265 seconds]
dukz has quit [Remote host closed the connection]
RaCx has joined #ruby
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robert_ has joined #ruby
sayan has joined #ruby
hiyosi_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
s2013 has quit [Ping timeout: 240 seconds]
sayan has quit [Remote host closed the connection]
browndawg has left #ruby [#ruby]
flubba has quit [Remote host closed the connection]
zmansiv has joined #ruby
flubba has joined #ruby
r0bby_ has joined #ruby
r0bby_ has quit [Changing host]
r0bby_ has joined #ruby
tonni_ has quit [Remote host closed the connection]
hiyosi_ has quit [Ping timeout: 252 seconds]
tonni has joined #ruby
dhruvasagar has quit [Quit: leaving]
dhruvasagar has joined #ruby
cflat has joined #ruby
pu22l3r has quit [Remote host closed the connection]
jchristi has quit [Ping timeout: 260 seconds]
flubba has quit [Ping timeout: 272 seconds]
<miah>
Gemfile has 'gemspec' which does the equivilent of 'gem foo path .'
<miah>
it pulls deets from your gemspec, which you should hopefully have =)
fandikurnia01 has quit [Ping timeout: 240 seconds]
tonni has quit [Ping timeout: 246 seconds]
<ddd>
thoiught gemspec was for pulling in everything you gem would normally need on deployment, and Gemfile (in this regard) was for anything you wanted specifically for development and testing which normally shouldn't go into the gemspec.
timonv has joined #ruby
cflat has quit [Ping timeout: 240 seconds]
<ddd>
this is what i've been told, and how i personally use it as a result. guess i'm checking thats the sane and Right Way (Tm)
<jrobeson>
gemspec is if you wanna actually install it as a gem
<jrobeson>
otherwise stick with Gemfile if you're just deploying your app that nobody else uses.
aagdbl has joined #ruby
<jrobeson>
also gemspecs cant ever include git repositories to fetch packages from
<ddd>
right, but if you *are* deploying it as a gem, the Gemfile would be used like i said right?
zmansiv has quit [Ping timeout: 240 seconds]
<ddd>
was just doing a sanity check was all :)
tonni has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
bnjamin has joined #ruby
<jrobeson>
ddd, gemspecs have options for development dependencies
ewnd9 has joined #ruby
<jrobeson>
so if you got a gemspec you'd probably only use the Gemfile for git related development dependencies
JohnBat26 has joined #ruby
<ddd>
ah
<jrobeson>
oh.. and including the gemspec :)
flubba has joined #ruby
<ddd>
hehe figured ;)
cflat has joined #ruby
tonni has quit [Ping timeout: 260 seconds]
Mon_Ouie has quit [Ping timeout: 264 seconds]
gregoriokusowski has quit [Quit: gregoriokusowski]
phipes has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
RaCx has joined #ruby
zmansiv has joined #ruby
ewnd9 has quit [Read error: Connection reset by peer]
ewnd9 has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
michaeldeol has joined #ruby
fandikurnia01 has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
awkwords has quit [Quit: Leaving.]
corehook has joined #ruby
freerobby has quit [Ping timeout: 250 seconds]
michaeldeol has quit [Ping timeout: 240 seconds]
luckyruby has joined #ruby
mootpointer has joined #ruby
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
nhhagen has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
mgberlin has quit [Quit: mgberlin]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
simoz has joined #ruby
Jdubs has joined #ruby
jlast has joined #ruby
mneorr has joined #ruby
krz has joined #ruby
yfeldblum has joined #ruby
nhhagen has quit [Ping timeout: 260 seconds]
ua has joined #ruby
bradhe has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 264 seconds]
tylersmi_ has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
awkwords has joined #ruby
sayan has joined #ruby
tylersmi_ has quit [Remote host closed the connection]
bnjamin has quit [Ping timeout: 260 seconds]
coldie has quit [Ping timeout: 264 seconds]
zmansiv has quit [Ping timeout: 260 seconds]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
RaCx has quit [Ping timeout: 250 seconds]
sergicles has quit [Quit: sergicles]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
RaCx has joined #ruby
dukz has joined #ruby
funburn has quit [Quit: funburn]
Tentra has quit [Remote host closed the connection]
<cantonic>
hey there. is there way to not require a file in another one but add its content to it during execution?
tagrudev has joined #ruby
ner0x has quit [Quit: Leaving]
zmansiv has joined #ruby
<rjhunter>
cantonic: `load`
hiyosi_ has joined #ruby
<cantonic>
thank you rjhunter. will try that
<rjhunter>
cantonic: in fact, `require` is just a fancy wrapper around `load` that does things like path lookups and skipping already-loaded features
<rjhunter>
actually i may have misinterpreted that filename
noop has joined #ruby
<rjhunter>
it looks like those are shared examples for guard-rspec inspectors
<cantonic>
yeah
phipes has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
<cantonic>
rjhunter: well, i could try using the master branch... maybe it helps
peregrine81 has quit []
hamakn has joined #ruby
kiri has joined #ruby
<rjhunter>
you can always be explicit in your guardfile, of course -- guard :rspec { watch(%r{^spec/shared_examples/awesome_spec.rb$}) {'spec/features/awesome_feature_spec.rb'}
<cantonic>
but this is not the problem. The problem is, that the failing shared_example is in awesome.rb and therefore guard tries to run this file instead of the spec file which is including it
Es0teric has joined #ruby
roolo has joined #ruby
bradhe has joined #ruby
_bart has joined #ruby
<rjhunter>
hmm. have you tried the #guard channel?
RaCx has quit [Ping timeout: 246 seconds]
w4pm has quit [Ping timeout: 240 seconds]
<cantonic>
yep. no answer :)
mansi has joined #ruby
<cantonic>
after upgrading guard-rspec it seems like it stopped trying to run that awesome_feature.rb
robert_ has joined #ruby
solars has joined #ruby
<cantonic>
that's good, but it would have been cool if guard would run the spec file and the failed example instead.
dukz has quit [Remote host closed the connection]
dukz has joined #ruby
RaCx has joined #ruby
aapzak has quit [Read error: Connection reset by peer]
marcgg_ has joined #ruby
ewnd9 has quit [Read error: Connection reset by peer]
marcgg_ has quit [Read error: Connection reset by peer]
mansi has quit [Ping timeout: 240 seconds]
krz has quit [Quit: WeeChat 0.4.2]
marcgg_ has joined #ruby
phipes has quit [Remote host closed the connection]
ewnd9 has joined #ruby
freerobby has joined #ruby
Ch4rAss has joined #ruby
chymera has quit [Quit: Leaving]
<rjhunter>
might be worth posting to a delayed medium like the mailing list or the github issue tracker
krz has joined #ruby
iliketur_ has joined #ruby
mootpointer has quit [Ping timeout: 240 seconds]
aapzak has joined #ruby
marcgg has quit [Ping timeout: 272 seconds]
braoru has joined #ruby
timonv has joined #ruby
kcombs has quit [Ping timeout: 272 seconds]
nateberkopec has quit [Quit: Leaving...]
freerobby has quit [Ping timeout: 241 seconds]
iliketur_ has quit [Ping timeout: 240 seconds]
corehook has quit [Quit: Leaving.]
Arzaga has joined #ruby
jhn has joined #ruby
nhhagen has joined #ruby
Arzaga has quit [Client Quit]
Dwarf has quit [Ping timeout: 240 seconds]
awkwords has quit [Quit: Leaving.]
michael_lee has quit [Ping timeout: 260 seconds]
Azure has quit [Quit: My MBP went to sleep.]
anomaly_ has joined #ruby
rezzack has quit [Quit: Leaving.]
sophomorical has quit [Ping timeout: 240 seconds]
Dwarf has joined #ruby
sophomorical has joined #ruby
iliketur_ has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
nhhagen has quit [Ping timeout: 260 seconds]
mengu has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
carraroj has joined #ruby
klaut has joined #ruby
solars has left #ruby ["WeeChat 0.4.1"]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
bnjamin has joined #ruby
troyready has joined #ruby
charliesome has joined #ruby
brunoro has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.2]
charliesome has quit [Client Quit]
maletor has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Remote host closed the connection]
wallerdev has joined #ruby
juarlex has quit [Remote host closed the connection]
skaflem has joined #ruby
michael_lee has joined #ruby
RaCx has quit [Ping timeout: 264 seconds]
ewnd9 has quit [Read error: Connection reset by peer]
ewnd9_ has joined #ruby
simoz has quit [Ping timeout: 264 seconds]
RaCx has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
mootpointer has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_bart has quit [Remote host closed the connection]
closures999 has joined #ruby
ewnd9_ has quit [Read error: Connection reset by peer]
ewnd9_ has joined #ruby
brunoro has quit [Quit: WeeChat 0.3.8]
closures999 has quit [Client Quit]
tylersmith has joined #ruby
ewnd9_ has quit [Max SendQ exceeded]
hiyosi_ has joined #ruby
ewnd9_ has joined #ruby
okinomo has joined #ruby
Ch4rAss has quit [Quit: "Connection reset by beer"]
jprovazn has joined #ruby
zoee has joined #ruby
_HolyCow has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
mootpointer has quit [Ping timeout: 264 seconds]
Hanmac has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
tylersmith has quit [Ping timeout: 264 seconds]
hiyosi_ has quit [Ping timeout: 272 seconds]
canton7-mac has joined #ruby
Arzaga has joined #ruby
dagobah has joined #ruby
_HolyCow1 has quit [Ping timeout: 252 seconds]
jlast has quit [Remote host closed the connection]
Jdubs has quit [Remote host closed the connection]
zoee has quit [Client Quit]
jlast has joined #ruby
troyready has quit [Ping timeout: 264 seconds]
bluOxigen has joined #ruby
canton7-mac has quit [Ping timeout: 246 seconds]
Hanmac has joined #ruby
amritanshu_RnD has joined #ruby
primenum has quit [Ping timeout: 260 seconds]
mr`spock has quit [Quit: Leaving]
zoee has joined #ruby
anomaly_ has quit [Read error: Connection reset by peer]
bradhe has quit [Remote host closed the connection]
avalarion has quit [Ping timeout: 260 seconds]
jlast has quit [Ping timeout: 264 seconds]
CpuID2 has quit [Ping timeout: 250 seconds]
ewnd9_ has quit [Read error: Connection reset by peer]
brtdv has joined #ruby
mootpointer has joined #ruby
avalarion has joined #ruby
preller has quit [Ping timeout: 272 seconds]
roolo has quit [Quit: Leaving...]
w4pm has joined #ruby
atno has joined #ruby
bnjamin has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Ping timeout: 252 seconds]
parduse has quit [Ping timeout: 245 seconds]
parduse has joined #ruby
ewnd9 has joined #ruby
ewnd9 has quit [Read error: Connection reset by peer]
trolling has quit [Ping timeout: 245 seconds]
gwb3 has quit [Ping timeout: 245 seconds]
_bart has joined #ruby
hakunin has quit [Ping timeout: 245 seconds]
xpirator has quit [Ping timeout: 245 seconds]
kiri has quit [Quit: Leaving]
end_guy has quit [Ping timeout: 240 seconds]
gwb3 has joined #ruby
Xeago has joined #ruby
trolling has joined #ruby
end_guy has joined #ruby
preller has joined #ruby
Xeago has quit [Remote host closed the connection]
xpirator has joined #ruby
RaCx has quit [Ping timeout: 240 seconds]
dseitz has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ahawkins has joined #ruby
w4pm has quit [Ping timeout: 252 seconds]
tonni has joined #ruby
Xeago has joined #ruby
mansi has joined #ruby
tonni has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
tonni has joined #ruby
RaCx has joined #ruby
robertjpayne has joined #ruby
kiri has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
aganov has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
freerobby has joined #ruby
andikr has joined #ruby
mansi has quit [Ping timeout: 250 seconds]
dhruvasagar has joined #ruby
Tentra has joined #ruby
ewnd9 has joined #ruby
h_kon has joined #ruby
nettoweb has joined #ruby
krz has quit [Ping timeout: 264 seconds]
Arzaga has quit [Quit: Computer has gone to sleep.]
jbpros has joined #ruby
freerobby has quit [Ping timeout: 260 seconds]
ewnd9 has quit [Read error: Connection reset by peer]
TMM has quit [Ping timeout: 264 seconds]
ixti has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
intuxicated has joined #ruby
zz_CripperZ is now known as CripperZ
zombiebit has joined #ruby
shime has joined #ruby
CpuID has joined #ruby
CripperZ is now known as N00D
dhruvasagar has joined #ruby
_bart has quit [Remote host closed the connection]
f0ster has quit [Ping timeout: 240 seconds]
pranny has joined #ruby
cflat has quit [Ping timeout: 240 seconds]
<shevy>
test
nhhagen has joined #ruby
<pranny>
shevy: test.success?
<shevy>
yeah!
larissa has quit [Quit: Leaving]
dhruvasagar has quit [Read error: Connection reset by peer]
cseader has quit [Ping timeout: 241 seconds]
Macaveli has joined #ruby
claymore has joined #ruby
dhruvasagar has joined #ruby
akonny has joined #ruby
nhhagen has quit [Ping timeout: 246 seconds]
mercwithamouth has quit [Ping timeout: 272 seconds]
dhruvasagar has quit [Client Quit]
Jdubs has joined #ruby
dhruvasagar has joined #ruby
ahawkins_ has joined #ruby
dukz has quit [Remote host closed the connection]
ahawkins has quit [Disconnected by services]
ahawkins_ is now known as ahawkins
noname001__ has joined #ruby
troessner has joined #ruby
Lewix_ has joined #ruby
vt102 has quit [Ping timeout: 252 seconds]
Yan__ has joined #ruby
DouweM has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
marz_skilex has joined #ruby
threesome has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
luckyruby has quit [Remote host closed the connection]
mootpointer has quit [Quit: ENOCAFFEINE.]
timonv has quit [Remote host closed the connection]
atno has quit [Remote host closed the connection]
atno has joined #ruby
echevemaster has quit [Quit: Leaving]
ewnd9 has joined #ruby
dhruvasagar has joined #ruby
relix has joined #ruby
c0rn has joined #ruby
ewnd9 has quit [Max SendQ exceeded]
RaCx has quit [Ping timeout: 250 seconds]
krz has joined #ruby
ewnd9 has joined #ruby
RaCx has joined #ruby
mklappstuhl has joined #ruby
Yan__ has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
Yan__ has joined #ruby
TMM has joined #ruby
coldmethod has quit [Remote host closed the connection]
TMM has quit [Client Quit]
TMM has joined #ruby
TMM has quit [Client Quit]
CpuID has quit [Quit: This computer has gone to sleep]
c0rn has quit []
TMM has joined #ruby
aryaching_ has quit [Ping timeout: 250 seconds]
_bart has joined #ruby
krz has quit [Quit: WeeChat 0.4.2]
hiyosi_ has joined #ruby
alup has joined #ruby
Heskie has joined #ruby
ewnd9 has quit [Read error: Connection reset by peer]
zoee has quit [Quit: Leaving]
d45h has quit [Ping timeout: 260 seconds]
Heskie has quit [Client Quit]
workmad3 has joined #ruby
zoee has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
Guest68968 has joined #ruby
ewnd9_ has joined #ruby
nvrch has joined #ruby
klip has joined #ruby
xcv has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
ewnd9_ has quit [Read error: Connection reset by peer]
Hanmac1 has joined #ruby
Guest68968 has quit [Client Quit]
ewnd9_ has joined #ruby
dhruvasagar has joined #ruby
* avril14th_
plops
Hanmac has quit [Ping timeout: 240 seconds]
hiyosi_ has quit [Ping timeout: 264 seconds]
Floydzy has joined #ruby
Xeago has quit [Remote host closed the connection]
dukz has joined #ruby
nvrch has quit [Client Quit]
ewnd9_ has quit [Read error: Connection reset by peer]
jlast has joined #ruby
ewnd9_ has joined #ruby
mikepack has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nvrch has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
mengu has quit [Remote host closed the connection]
Floydzy has left #ruby [#ruby]
dukz has quit [Remote host closed the connection]
mengu has joined #ruby
mikepack has quit [Ping timeout: 253 seconds]
h0rrorvacui has quit [Quit: Leaving]
flubba has quit [Remote host closed the connection]
Aryasam has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
kevinykchan has joined #ruby
flubba has joined #ruby
bnjamin has joined #ruby
gverri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
dukz has joined #ruby
nisstyre has quit [Quit: Leaving]
predator117 has quit [Ping timeout: 250 seconds]
nari has quit [Quit: Ex-Chat]
preller has quit [Ping timeout: 260 seconds]
maroloccio has joined #ruby
psyl0n has joined #ruby
flubba has quit [Ping timeout: 260 seconds]
niceguyjames has joined #ruby
crazymykl has joined #ruby
krzkrz has joined #ruby
roolo has joined #ruby
dukz has quit [Remote host closed the connection]
mikemac has quit [Ping timeout: 260 seconds]
RaCx has quit [Ping timeout: 272 seconds]
mikecmpbll has joined #ruby
dukz has joined #ruby
krzkrz has quit [Client Quit]
ewnd9_ has quit [Read error: Connection reset by peer]
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
RaCx has joined #ruby
obs has joined #ruby
charliesome has joined #ruby
Aryasam has quit [Ping timeout: 264 seconds]
canton7-mac has joined #ruby
timonv has joined #ruby
dukz has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
Xeago has joined #ruby
ewnd9 has joined #ruby
d45h has joined #ruby
jhaals has joined #ruby
maasha has joined #ruby
SHyx0rmZ has joined #ruby
LiohAu has joined #ruby
jhaals_ has joined #ruby
bluenemo has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
SHyx0rmZ has quit [Client Quit]
kostine has quit [Quit: kostine]
freerobby has quit [Ping timeout: 264 seconds]
noop has quit [Ping timeout: 272 seconds]
Hanmac has joined #ruby
jhaals has quit [Ping timeout: 250 seconds]
ppppaul has joined #ruby
ppppaul has quit [Max SendQ exceeded]
psyl0n has quit [Remote host closed the connection]
<jokke>
in the docs of rest_client they always pass file as File.new("")
h_kon has joined #ruby
xcv has quit [Read error: Connection reset by peer]
<jokke>
*"some_path"
RaCx has quit [Ping timeout: 260 seconds]
Heskie has quit []
<jokke>
i think they close the file automatically
<jokke>
and i try to close it again
okinomo has quit [Ping timeout: 272 seconds]
ldnunes has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hogeo has quit [Remote host closed the connection]
<jokke>
naah
<jokke>
that wasn't it
hogeo has joined #ruby
mikecmpbll has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
<jokke>
but it's weird: i can run two commands in succession: event_start and picture_save
mansi has joined #ruby
<jokke>
after that it's like it would have exited the loop
RaCx has joined #ruby
vlad_starkov has joined #ruby
dhruvasagar has joined #ruby
<apeiros>
jokke: then verify where it is and what it gets
<apeiros>
log what lines you process
<apeiros>
log when the loop is exited
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
<jokke>
yeah
<apeiros>
if you have threads, rescue exceptions in the toplevel block (threads just die when an exception is unhandled)
Fire-Dragon-DoL has joined #ruby
<jokke>
oh ok
<jokke>
good to know
Rollabunna has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
mansi has quit [Ping timeout: 272 seconds]
amacgregor_ has joined #ruby
Rollabunna has quit [Remote host closed the connection]
<jokke>
ugh....
Rollabunna has joined #ruby
<jokke>
found the error
<jokke>
undefined method `delete!' for File:Class
mengu has joined #ruby
Duckily has quit [Quit: Duckily]
sandelius has joined #ruby
<shevy>
hah!
<jokke>
yeah...
amacgregor has quit [Ping timeout: 246 seconds]
<shevy>
you nooooob!!!!
<jokke>
i thought there were two kinds of deletes
Jetchisel has quit [Ping timeout: 260 seconds]
freerobby has quit [Ping timeout: 260 seconds]
<shevy>
the ones where you delete
<shevy>
and the ones you think you were deleting
<jokke>
haha
<jokke>
yeah
Duckily has joined #ruby
LiohAu has quit [Ping timeout: 272 seconds]
rootshift has joined #ruby
michael_lee has joined #ruby
timonv has joined #ruby
mojjojo has quit [Quit: mojjojo]
LiohAu has joined #ruby
sergicles has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
eka has joined #ruby
joaoh82 has joined #ruby
brtdv has quit []
nhhagen has joined #ruby
dEPy has quit [Quit: Computer has gone to sleep.]
mrfoto has quit [Read error: Connection reset by peer]
Jetchisel has joined #ruby
tkuchiki has quit [Remote host closed the connection]
ace_striker has quit [Ping timeout: 272 seconds]
sayan has joined #ruby
mojjojo has joined #ruby
dkamioka has joined #ruby
nhhagen has quit [Ping timeout: 264 seconds]
tonni has quit [Remote host closed the connection]
Speed has quit [Ping timeout: 260 seconds]
tonni has joined #ruby
fgo has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
hogeo has quit [Remote host closed the connection]
fgo has quit [Client Quit]
tonni has quit [Read error: Connection reset by peer]
dkamioka has quit [Ping timeout: 240 seconds]
hogeo has joined #ruby
matheuscaceres has joined #ruby
Heskie has joined #ruby
rootshift has quit [Quit: rootshift]
ss_ has joined #ruby
rootshift has joined #ruby
Hanmac1 has joined #ruby
joaoh82 has quit [Remote host closed the connection]
michaeldeol has joined #ruby
hogeo_ has joined #ruby
joaoh82 has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
Hanmac has quit [Ping timeout: 240 seconds]
Jdubs_ has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
juarlex has joined #ruby
dhruvasagar has joined #ruby
RaCx has quit [Ping timeout: 264 seconds]
phansch has quit [Remote host closed the connection]
RaCx has joined #ruby
sparq has joined #ruby
sparq has quit [Read error: Connection reset by peer]
shime has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Ping timeout: 260 seconds]
sparq has joined #ruby
falood has joined #ruby
ss_ has quit [Ping timeout: 272 seconds]
juarlex has quit [Ping timeout: 241 seconds]
brtdv has joined #ruby
sawtooth_ has quit [Ping timeout: 241 seconds]
sparq has quit [Read error: Connection reset by peer]
himsin has quit [Quit: himsin]
Clooth has joined #ruby
hogeo_ has quit [Remote host closed the connection]
hogeo has joined #ruby
dhruvasagar has quit [Quit: leaving]
ewnd9 has joined #ruby
dhruvasagar has joined #ruby
tonni has joined #ruby
carraroj has quit [Ping timeout: 240 seconds]
xcv_ has quit [Remote host closed the connection]
xcv has joined #ruby
dEPy has joined #ruby
LiohAu has quit [Ping timeout: 272 seconds]
hogeo_ has joined #ruby
ixti has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
sayan has quit [Ping timeout: 250 seconds]
anomaly_ has joined #ruby
xcv has quit [Ping timeout: 264 seconds]
gja has quit [Quit: This computer has gone to sleep]
shime has joined #ruby
zevs04 has joined #ruby
anomaly_ has quit [Read error: Connection reset by peer]
anomaly_ has joined #ruby
freggles has joined #ruby
<zevs04>
Hi! How to know the name alias_method which was called?)
tonni has quit [Remote host closed the connection]
mrfoto has joined #ruby
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
<zevs04>
alias_method :first, :method
<zevs04>
alias_method :second, :method
p4d4w4n has joined #ruby
jlast has joined #ruby
okinomo has joined #ruby
<zevs04>
how can i find out which alias is called?) first or second
dEPy has quit [Quit: Computer has gone to sleep.]
xcv has joined #ruby
allanm_ has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dEPy_ has joined #ruby
ss_ has joined #ruby
dhruvasagar has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
tonni has joined #ruby
_bart has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
jezen has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
amacgregor has joined #ruby
amacgregor has quit [Read error: Connection reset by peer]
stormbytes has joined #ruby
amacgregor has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
amacgregor_ has quit [Ping timeout: 246 seconds]
w4pm has joined #ruby
monsieurp has joined #ruby
Rollabunna has quit [Remote host closed the connection]
dukz has quit [Remote host closed the connection]
dukz has joined #ruby
mojjojo has quit [Quit: mojjojo]
Zai00 has quit [Quit: Zai00]
RaCx has quit [Ping timeout: 240 seconds]
joshu_ has quit [Quit: Bye.]
mercwithamouth has joined #ruby
Thanatermesis has quit [Read error: Connection reset by peer]
robertjpayne has left #ruby [#ruby]
w4pm has quit [Ping timeout: 272 seconds]
mansi has joined #ruby
akonny has quit [Read error: Connection reset by peer]
RaCx has joined #ruby
akonny has joined #ruby
<monsieurp>
hi there, I've got a problem whilst comparing two values from an array: http://pastebin.com/ED16P3Cr. Ruby outputs this: bubbleSort.rb:7:in `bubbleSort': undefined method `<' for nil:NilClass (NoMethodError)
mojjojo has joined #ruby
sanjayu has joined #ruby
<monsieurp>
undefined method '<'? do I have to import a module or something?
sanjayu has left #ruby [#ruby]
<apeiros>
monsieurp: `undefined method `<' for nil:NilClass`
<apeiros>
means it called < on *nil*
<monsieurp>
hm
<apeiros>
which in turn means one of your values is nil
freerobby has joined #ruby
<apeiros>
I don't think for … in works as you think it does.
camilasa_ has quit [Remote host closed the connection]
camilasan has joined #ruby
<apeiros>
it does not give you an index. it gives you the actual element.
mansi has quit [Ping timeout: 260 seconds]
<monsieurp>
that's exactly what I need
<Xeago>
monsieurp: that is also a very non rubyists way to write bubblesort
kristian_ has quit [Remote host closed the connection]
krzkrz has joined #ruby
sailias has quit [Ping timeout: 264 seconds]
krzkrz has quit [Client Quit]
zoee has joined #ruby
AlexF has left #ruby [#ruby]
joaoh82 has quit [Remote host closed the connection]
phansch has joined #ruby
camilasan has joined #ruby
pu22l3r has joined #ruby
Clooth_ has quit [Read error: Connection reset by peer]
jerius has joined #ruby
Clooth has joined #ruby
tylershipe has quit [Ping timeout: 250 seconds]
_bart has quit [Remote host closed the connection]
krzkrz has joined #ruby
mklappstuhl has joined #ruby
krzkrz has quit [Client Quit]
jezen has quit []
jprovazn has joined #ruby
krzkrz has joined #ruby
tylershi_ has quit [Remote host closed the connection]
nhhagen has joined #ruby
tylershipe has joined #ruby
Xiti` has joined #ruby
jerius has quit []
preller has quit [Ping timeout: 260 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jchristi has joined #ruby
Salsa has joined #ruby
fijimunkii has quit [Ping timeout: 264 seconds]
gja has joined #ruby
Xiti has quit [Ping timeout: 240 seconds]
gja has quit [Client Quit]
krzkrz has quit [Quit: WeeChat 0.4.2]
h_kon has quit [Remote host closed the connection]
nhhagen has quit [Ping timeout: 260 seconds]
anomaly_ has joined #ruby
ace_striker has joined #ruby
krz has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
rweng has joined #ruby
hogeo has joined #ruby
burlyscudd has quit [Quit: Leaving.]
preller has joined #ruby
jbpros has quit [Quit: jbpros]
Salsa has quit [Quit: Salsa]
bean__ has joined #ruby
fijimunkii has joined #ruby
Megtastique has joined #ruby
N00D is now known as zz_N00D
<rweng>
hi guys. I'd like to load the same rails app twice (in a new namespace) for a migration project. However, require hinders me there. I tried to work around it with eval, but I am not really successful. Has anyone done something like this before? What I'd ideally like to do is compare Redmine1::Issue.all with Redmine2::Issue.all
Speed has joined #ruby
awkwords has left #ruby [#ruby]
DropsOfSerenity has joined #ruby
yfeldblum has joined #ruby
charliesome has joined #ruby
hogeo has quit [Ping timeout: 250 seconds]
shime has quit [Ping timeout: 260 seconds]
dukz has quit [Remote host closed the connection]
clamstar has joined #ruby
atno has quit [Remote host closed the connection]
dukz has joined #ruby
jerius has joined #ruby
michaeldeol has joined #ruby
tylershi_ has joined #ruby
mansi has quit [Remote host closed the connection]
boboc has quit [Read error: Connection reset by peer]
_maes_ has joined #ruby
boboc has joined #ruby
jbpros has joined #ruby
kcombs has joined #ruby
falood has joined #ruby
xcv has quit [Remote host closed the connection]
sambao21 has joined #ruby
xcv has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
matheuscaceres has joined #ruby
Hanmac has joined #ruby
L8D has joined #ruby
nettoweb has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
burlyscudd has joined #ruby
tylershi_ has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
tylershipe has joined #ruby
Hanmac1 has quit [Ping timeout: 246 seconds]
Xeago_ has quit [Remote host closed the connection]
xcv has quit [Ping timeout: 240 seconds]
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
<rweng>
tried s.th. like this http://pastie.org/8547352, which loads the files but the setup with AR is not correct
ewnd9 has quit [Ping timeout: 250 seconds]
dEPy has joined #ruby
L8D has quit [Ping timeout: 240 seconds]
atno has joined #ruby
doodlehaus has joined #ruby
<rweng>
since I'm bound to 1.8.7, I think multi-threading is no option. Right now, I'll follow switching back and forth between AR-Connections. However, loading the app in a separate namespace would still be my favorite option. So if anyone has ideas, ...
bean__ has joined #ruby
krz has quit [Ping timeout: 260 seconds]
lmickh has joined #ruby
<Hanmac>
rweng: we do not support 1.8.7 anymore and AR is in #rubyonrails
Monie has joined #ruby
g0bl1n has joined #ruby
anomaly_ has quit [Ping timeout: 256 seconds]
<rweng>
Hanmac: I know it's not supported anymore, but it's in use in the corporate environment I'm in right now and it doesn't mean that things are not doable in it. I'll push them to migrate to 2.0.0 after they got rid on one of their redmines
duggiefresh has joined #ruby
<Hanmac>
you dont understand, there are many things not doable in 1.8.7 ;P
marz_skilex has joined #ruby
snath has quit [Ping timeout: 272 seconds]
s2013 has joined #ruby
hogeo has joined #ruby
clamstar has joined #ruby
vlad_starkov has joined #ruby
g0bl1n has quit [Client Quit]
m8 has joined #ruby
enebo has joined #ruby
g0bl1n has joined #ruby
tylershipe has quit [Read error: Connection reset by peer]
tylershipe has joined #ruby
peregrine81 has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<rweng>
grrr ;)
m8 has quit [Max SendQ exceeded]
dukz has quit [Remote host closed the connection]
m8 has joined #ruby
Hanmac1 has joined #ruby
<shevy>
like
<workmad3>
rweng: it's worth really pointing out that 1.8.7 is beyond just 'not supported'. It's officially end-of-life... it's dead, kaput, and people using it are kinda on their own ;)
<shevy>
rweng unfortunately I dont think you can easily reshuffle namespaces :(
<shevy>
I'd wish we could get a way to reassign namespaces during require or load times
<workmad3>
well, you can alias a namespace... but you can't stop the original from existing easily
hogeo has quit [Ping timeout: 272 seconds]
Hanmac has quit [Ping timeout: 252 seconds]
<shevy>
:(
ffranz has quit [Ping timeout: 272 seconds]
DropsOfSerenity has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
burlyscudd has quit [Quit: Leaving.]
wherebot has joined #ruby
<rweng>
alright, seems like I got to go with switching AR-Connections. Fair enough though, it's only for this migration, doesn't need to be the most beautiful solution ever. Thanks guys :)
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tylershipe has quit [Read error: Connection reset by peer]
tylershipe has joined #ruby
wherebot has quit [Remote host closed the connection]
petey has joined #ruby
jedimind has joined #ruby
wherebot has joined #ruby
sbos99 has joined #ruby
jiriki has joined #ruby
momomomomo has joined #ruby
falood has quit [Remote host closed the connection]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
OdNairy has joined #ruby
jiriki has left #ruby [#ruby]
burlyscudd has joined #ruby
Fraeon has quit [Remote host closed the connection]
momomomomo has quit [Client Quit]
tylershi_ has joined #ruby
tylershi_ has quit [Remote host closed the connection]
kpshek has joined #ruby
wherebot has quit [Remote host closed the connection]
tylershipe has quit [Read error: Connection reset by peer]
troessner has joined #ruby
tylershipe has joined #ruby
ffranz has joined #ruby
troessner has quit [Max SendQ exceeded]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rrichardsr3 has joined #ruby
rrichardsr3 has quit [Client Quit]
freerobby has joined #ruby
s2013 has quit [Remote host closed the connection]
Virtualize has quit [Read error: Connection reset by peer]
<makkura>
Hey guys, I'm looking for a good ruby starter book for ruby 2. I've got a friend who's a sysadmin but hasn't programmed since COBOL and is looking at ruby. I'm just finding it hard to find ruby 2 books though I suppose 1.9 would cover most of it and not be incorrect.
nobitanobi has quit [Read error: Connection reset by peer]
<BlakeRG>
apeiros: does not matter a whole lot, just a curiosity :)
jchristi has quit [Client Quit]
jchristi has joined #ruby
bean_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<BlakeRG>
apeiros: looks like .blank? . present? will be useful
<BlakeRG>
wish i knew/thought of using this long ago
momomomomo has quit [Quit: momomomomo]
Thanatermesis has quit [Ping timeout: 252 seconds]
petey has joined #ruby
<zaychenok>
\quit
xcthulhu has joined #ruby
zaychenok has quit [Quit: leaving]
fomatin has quit [Ping timeout: 246 seconds]
benwoody has joined #ruby
wc- has joined #ruby
OdNairy has quit []
s2013 has quit [Ping timeout: 246 seconds]
<wc->
hi all, what does this mean if a function's declaration ends in an '='? like def year_month= str
jedimind has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<wc->
im trying ot google for it but i dont really know what to search for
klaut has quit [Remote host closed the connection]
anderson has quit [Quit: Leaving]
freerobby has quit [Ping timeout: 264 seconds]
burlyscudd has quit [Quit: Leaving.]
<xcthulhu>
Hello! I am working on a RAILS app that has a PSQL database that is being written to be JAVA. Our JAVA app does not reliably post timestamps correctly, or at all sometimes, so I need to make sure that when my migrations make created_at and updated_at timestamps in a table that they are (1) not null (2) default to 'NOW()' and (3) have a timezone
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<xcthulhu>
Does anybody have any idea how to do this in the activerecord DSL?
dev__ has quit [Ping timeout: 252 seconds]
jedimind has joined #ruby
krz has quit [Quit: WeeChat 0.4.2]
flubba has joined #ruby
senj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xcv has quit [Remote host closed the connection]
dev__ has joined #ruby
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
dukz has quit [Remote host closed the connection]
xcv has joined #ruby
Bira has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
olivier_bK has quit [Ping timeout: 252 seconds]
Virtualize has joined #ruby
dukz has joined #ruby
xcthulhu has quit [Quit: xcthulhu]
mark_locklear has quit [Quit: Leaving]
lmickh has joined #ruby
Thanatermesis has joined #ruby
Thanatermesis has quit [Changing host]
Thanatermesis has joined #ruby
krzkrz has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
dukz has quit [Ping timeout: 246 seconds]
zeeraw has joined #ruby
w1xz has joined #ruby
xcv_ has joined #ruby
tjbiddle has joined #ruby
Virtualize has quit [Ping timeout: 264 seconds]
rezzack has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<jrhe>
wc: it means its a setter function. It gets called when you do year_month = 'some value'
<interactionjaxsn>
wc-: it's a setter. Obj.year_month = string_input
brianpWins has joined #ruby
Freijo has joined #ruby
Freijo has quit [Client Quit]
<jrhe>
wc: at least thats what I think you are describing
<wc->
ya just found that, thank you. so i can consider it syntactic sugar like ? or !
mary5030 has joined #ruby
<jrhe>
wc: yes
zeeraw has quit [Client Quit]
<jrhe>
wc: Although its slightly special as you dont have to call it with year_month=, you can call it with year_month =
amoli has joined #ruby
nanoyak has joined #ruby
dev__ has quit [Ping timeout: 252 seconds]
krzkrz has left #ruby [#ruby]
xcv has quit [Ping timeout: 246 seconds]
nhhagen has joined #ruby
jrhorn424 is now known as zz_jrhorn424
platzhirsch has joined #ruby
cameronbarton has joined #ruby
saarinen has joined #ruby
joaoh82 has quit [Remote host closed the connection]
s2013 has joined #ruby
<benzrf|testing>
how the hell is callcc implemented
heidi has joined #ruby
benzrf|testing is now known as benzrf
OdNairy has joined #ruby
<platzhirsch>
callcc?
claymore has joined #ruby
<benzrf>
>> require 'continuation'; n = callcc {|cont| foo = 3; cont.call(foo)}; puts n
gja has quit [Quit: This computer has gone to sleep]
<YOURBESTFRIEND>
you can't have more than 15 arguments in a ruby function? really?
diegoviola has joined #ruby
codeFiend has joined #ruby
<xibalba>
use a splat perhaps?
shadoi1 has joined #ruby
nwertman has joined #ruby
xk_id has quit [Ping timeout: 246 seconds]
<miah>
wtf would you ever write a method that took more than 15 methods. goes beyond all recommended programming practices.
shadoi has quit [Read error: Connection reset by peer]
<miah>
s/15 methods/15 arguments
hogeo has joined #ruby
Atrophius has quit [Read error: Connection reset by peer]
iliketur_ has quit [Quit: zzzzz…..]
billy_ran_away has joined #ruby
xk_id has joined #ruby
reset has joined #ruby
petey has quit [Remote host closed the connection]
iliketur_ has joined #ruby
billy_ran_away has left #ruby [#ruby]
sayan has quit [Ping timeout: 272 seconds]
<banister>
miah rails methods are like that
petey has joined #ruby
hogeo has quit [Ping timeout: 250 seconds]
<miah>
glad i dont use rails
bradhe has joined #ruby
<miah>
of course, im in a similar boat as i use chef
<apeiros>
YOURBESTFRIEND: what nonsense?
<banister>
miah what if the args aren't positional?
mephux has quit [Ping timeout: 252 seconds]
ambushsabre has joined #ruby
<apeiros>
YOURBESTFRIEND: ruby supports more than 15 arguments
<miah>
still chaos. keep them limited to 2-3
<apeiros>
but as miah already said - it's rather bad to have such a method
<banister>
apeiros in the C API though ruby only supports about 17 args iirc
<platzhirsch>
jeez, 15 arguments? That's hell of an anti-christ method
<banister>
it has a huge switch with function pointers of different arity
<banister>
and it only goes up to 17 iirc
<apeiros>
banister: hm, no? with argc + argv you can have as many as you want
burlyscudd has quit [Quit: Leaving.]
<apeiros>
scanargs maybe doesn't support it
<YOURBESTFRIEND>
yeah, with the C API
Megro has joined #ruby
timonv has joined #ruby
<banister>
apeiros i mean of the form: VALUE func(VALUE, VALUE, VALUE, VALUE, *)
<banister>
you can only have 17 VALUEs iirc
xcthulhu has joined #ruby
joaoh82 has joined #ruby
<YOURBESTFRIEND>
it's 15 I think
thumpba has quit [Remote host closed the connection]
avril14th_ has quit [Read error: Connection reset by peer]
RaCx has quit [Quit: Computer has gone to sleep.]
petey has quit [Ping timeout: 250 seconds]
<miah>
quoteth, uncle bob: "The ideal number of arguments for a function is zero (niladic). Next comes one (monadic), followed closely by two (dyadic). Three arguments (triadic) should be avoided where possible. More than three (polyadic) requires very special justification -- and then shouldn't be used anyway."
mklappstuhl has quit [Remote host closed the connection]
<miah>
also <3 his videos
dangerousdave has joined #ruby
jchristi1 has joined #ruby
havenwood has joined #ruby
failshell has joined #ruby
<platzhirsch>
well 16 arguments work
<platzhirsch>
have I missed something?
jbpros has quit [Quit: jbpros]
mark_locklear has joined #ruby
joaoh82 has quit [Ping timeout: 240 seconds]
bigoldrock has quit [Ping timeout: 260 seconds]
jchristi has quit [Ping timeout: 252 seconds]
<miah>
it works, but dont do that please.
nobitanobi has joined #ruby
<miah>
future programmers dealing with your code thank you in advance
cyanboy has joined #ruby
cyanboy has left #ruby [#ruby]
freerobby has joined #ruby
<platzhirsch>
yeah, I will go straight to some open source repositories and issue some pull request to refactor their inferior methods to methods with at least 20 arguments
p4d4w4n has quit [Quit: This computer has gone to sleep]
ffranz has quit [Quit: Leaving]
bigoldrock has joined #ruby
adssdadas has quit [Ping timeout: 272 seconds]
<miah>
please do
robert___ has joined #ruby
<platzhirsch>
no, that's disgusting
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<miah>
_
<miah>
;)
N00D is now known as zz_N00D
<platzhirsch>
YOURBESTFRIEND: so you were trolling or what? :P
sayan has joined #ruby
obiwahn has quit [Quit: obiwahn]
bradhe has quit [Remote host closed the connection]
ffranz has joined #ruby
robert_ has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby
freerobby has quit [Ping timeout: 251 seconds]
<YOURBESTFRIEND>
platzhirsch: what?
<YOURBESTFRIEND>
with the C API, man
jlast has joined #ruby
bricker has quit [Read error: Operation timed out]
<platzhirsch>
oh
<YOURBESTFRIEND>
taken from weechat's scripting guide: "Due to a limitation of Ruby (15 arguments max by function), the function Weechat.config_new_option receives the callbacks in an array of 6 strings (3 callbacks + 3 data strings), so a call to this function looks like: "
<miah>
age old wisdom; the documentation is out of date as soon as you publish it.
RaCx has quit [Quit: Computer has gone to sleep.]
dkamioka has quit [Remote host closed the connection]
skaflem has quit [Quit: Leaving]
<Hanmac>
you can split the args scan, like you scan the first 15 args first and a rest arg, and then scan the rest arg with the next 15 args ... i maked it before in one of my bindings
RaCx has joined #ruby
<shevy>
YOURBESTFRIEND, look: ArgumentError: wrong number of arguments (34 for 26)
mbff_ has joined #ruby
dkamioka has joined #ruby
mojjojo has quit [Quit: mojjojo]
<YOURBESTFRIEND>
might have been a restriction of ruby 0.32
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<YOURBESTFRIEND>
( ≖‿≖)
<shevy>
so how can it be true that it accepts only 15 arguments when it just tells me 34 args for 26 set
<shevy>
cool
<Hanmac>
YOURBESTFRIEND: but imo does an function with that many parameters does not make any sense? (they should be option parameters)
<YOURBESTFRIEND>
are you using the C API?
<shevy>
I'd wish I could have used ruby 0.32
<YOURBESTFRIEND>
or is it pure ruby?
<shevy>
pure ruby
mercwithamouth has joined #ruby
<YOURBESTFRIEND>
we're talking about the C API there I think
<shevy>
hmm
agjacome has quit [Ping timeout: 250 seconds]
carraroj has joined #ruby
mojjojo has joined #ruby
<YOURBESTFRIEND>
it is/was impossible to create functions with more than 15 arguments
<shevy>
ok but why does this work in ruby... isn't ruby written in C?
<benzrf>
shevy: ruby isnt
<benzrf>
MRI is
<benzrf>
and/or YARV
<benzrf>
;p
<YOURBESTFRIEND>
you can define functions in C that you will call in ruby, and those functions you couldn't use more than 15 arguments
<YOURBESTFRIEND>
that's how I understand it
nhhagen has quit [Ping timeout: 240 seconds]
<havenwood>
YOURBESTFRIEND: I get a system stack error if I pass more than 131,036 arguments, so not 15 but yeah not limitless. :P
burlyscudd has quit [Quit: Leaving.]
decoponio has quit [Quit: Leaving...]
dkamioka has quit [Ping timeout: 240 seconds]
rjhunter has joined #ruby
<shevy>
benzrf for me only MRI exists, the rest are big cheaters and posers
tannerburson has quit [Read error: Connection reset by peer]
<Hanmac>
YOURBESTFRIEND: you can split the args scan, like you scan the first 15 args first and a rest arg, and then scan the rest arg with the next 15 args ... i maked it before in one of my bindings (but i didnt found it yet)
mikepack has quit [Remote host closed the connection]
anderson has joined #ruby
p4d4w4n has joined #ruby
tannerburson has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
p0wn3d has quit [Remote host closed the connection]
A124 has quit [Read error: Connection reset by peer]
arubin has joined #ruby
michaeldeol has joined #ruby
hiyosi_ has quit [Ping timeout: 264 seconds]
eldariof has joined #ruby
mbff has joined #ruby
mbff is now known as Guest76249
alvaro_o has joined #ruby
marz_skilex has joined #ruby
Bira has quit [Remote host closed the connection]
Tentra has joined #ruby
jibi has joined #ruby
burlyscudd has joined #ruby
bean_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
allaire has joined #ruby
geggam has joined #ruby
madhatter has quit [Ping timeout: 245 seconds]
momomomomo has joined #ruby
raddazong has joined #ruby
preller has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Ping timeout: 252 seconds]
codeFiend has quit [Quit: codeFiend]
r0bby_ has joined #ruby
benlieb has joined #ruby
Bira has joined #ruby
vlad_starkov has joined #ruby
eldariof has quit []
vlad_starkov has quit [Read error: Connection reset by peer]
benzrf has left #ruby [#ruby]
fsck3r has quit [Quit: Connection closed for inactivity]
vlad_starkov has joined #ruby
PapaSierra has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<PapaSierra>
i'm trying to uninstall a gem on mac osx. namely vagrant. but my local gems list is empty. i'm not sure how to do this.
canton7-mac has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
obs has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
relix has joined #ruby
freerobby has joined #ruby
Jdubs has joined #ruby
<miah>
hash -r
<miah>
or if you're rvm. i think there is a special hash command
<havenwood>
PapaSierra: Vagrant ships as a downloadable binary these days. You may have the non-gem version installed?
<miah>
rvm rehash?
<miah>
rbenv has similar.
<havenwood>
miah: I think you're thinking rbenv?
<miah>
ya. i chruby so no idea. =)
nhhagen has joined #ruby
petey_ has quit [Remote host closed the connection]
vpretzel has quit [Quit: Adios!]
nhhagen has quit [Remote host closed the connection]
<PapaSierra>
havenwood: no, i installed vagrant using the gem instructions last year. now i'm trying to remove it so i can add it the new version using the installer. but it's a ghost in the machine, i can't uninstall it
<PapaSierra>
but i *can* use it!
<miah>
PapaSierra: 'which vagrant'
petey has joined #ruby
matheuscaceres has quit [Quit: matheuscaceres]
Es0teric has joined #ruby
mklappstuhl has joined #ruby
<miah>
that should point you in the right direction.
<PapaSierra>
miah: /usr/bin/vagrant
Bira has quit [Remote host closed the connection]
<miah>
is that a symlink?
canton7-mac has quit [Ping timeout: 240 seconds]
<miah>
or is it a wrapper script, look inside it.
vlad_starkov has joined #ruby
anomaly_ has quit [Ping timeout: 256 seconds]
hogeo has joined #ruby
<havenwood>
PapaSierra: If `ls -la /usr/bin/vagrant` is a simlink to /Applications/Vagrant/bin/vagrant
<PapaSierra>
havenwood: so that means it is NOT a gem after all? it's an installed application?
niftylettuce has joined #ruby
<miah>
seems like it =)
CaptainJet has joined #ruby
kobain has joined #ruby
A124 has joined #ruby
petey has quit [Ping timeout: 246 seconds]
bogeyd6 has joined #ruby
bradhe has joined #ruby
<PapaSierra>
that's super strange! but cool, it works, i just installed the new installer over it and it's working! just need to migrate my old configuration file now :S
<miah>
coolbeans
hogeo has quit [Ping timeout: 250 seconds]
<PapaSierra>
ty v m miah + havenwood
<miah>
your welcomes.
hadees has quit [Quit: hadees]
maroloccio has quit [Ping timeout: 260 seconds]
mikeg has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
joaoh82 has joined #ruby
Bira has joined #ruby
jprovazn has quit [Quit: Odcházím]
maletor has quit [Quit: Computer has gone to sleep.]
p4d4w4n has quit [Quit: This computer has gone to sleep]
jonathanwallace has quit [Quit: WeeChat 0.4.1]
spider-mario has quit [Ping timeout: 252 seconds]
preller has quit [Ping timeout: 260 seconds]
raphaelivan has joined #ruby
rootshift has joined #ruby
bricker has quit [Ping timeout: 246 seconds]
p4d4w4n has joined #ruby
bricker has joined #ruby
lewix has joined #ruby
zz_jrhorn424 is now known as jrhorn424
rubyracer has quit [Quit: Konversation terminated!]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CaptainKnots has joined #ruby
p4d4w4n has quit [Client Quit]
joaoh82 has quit [Ping timeout: 250 seconds]
momomomomo has quit [Quit: momomomomo]
mikeg has joined #ruby
rubyracer has joined #ruby
momomomomo has joined #ruby
w1xz has quit [Quit: ZZZzzz…]
anbreviev is now known as andredieb
olivier_bK has joined #ruby
benwoody has quit [Quit: benwoody]
spider-mario has joined #ruby
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
dkamioka has joined #ruby
jbpros has quit [Quit: jbpros]
joshu has joined #ruby
shime has joined #ruby
mojjojo has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
vlad_starkov has joined #ruby
obs has quit [Remote host closed the connection]
includex has joined #ruby
bigoldrock has quit [Ping timeout: 252 seconds]
Zai00 has joined #ruby
nwertman has joined #ruby
<shevy>
hmm what alternative exists
<shevy>
for when you want to store state in a module
<shevy>
I could use a global variable but that is not module-specific
burlyscudd has quit [Quit: Leaving.]
<miah>
state in a module? not a class?
makerops has joined #ruby
<makerops>
hi
<miah>
you should stick to local variables only in modules. you can pass in a instance variable as a parameter to a method provided by a module that is included in your class though.
preller has quit [Ping timeout: 264 seconds]
<makerops>
i'm in the process of developing a ruby script that subscribes to a topic on an AMQP channel
jhchabran has joined #ruby
<makerops>
i need a way to change the config, of that subscription, while not missing any messages passing over the wire
bigoldrock has joined #ruby
<shevy>
miah hmm
seoNinjaWarrior has joined #ruby
<makerops>
how would you guys reccomend doing that? I was thinking of having the agent subscribe to 2 topics, one for config, and one for content
davy_ has quit [Remote host closed the connection]
iliketur_ has quit [Quit: zzzzz…..]
<makerops>
and then using a queue/thread to perform coms between them
skiddex has joined #ruby
petey has joined #ruby
jlast has quit [Remote host closed the connection]
jerius has quit [Read error: Operation timed out]
benweint has quit [Quit: Computer has gone to sleep.]
mlpinit_ has quit [Remote host closed the connection]
iliketur_ has joined #ruby
mlpinit has joined #ruby
anomaly_ has joined #ruby
iliketur_ has quit [Client Quit]
mengu has joined #ruby
nwertman has quit [Ping timeout: 250 seconds]
mikepack has joined #ruby
Nogbit has joined #ruby
preller has joined #ruby
mikeg has quit [Remote host closed the connection]
benweint has joined #ruby
lolmaus has joined #ruby
bcap-me-indexer has quit [Ping timeout: 264 seconds]
petey has quit [Remote host closed the connection]
jlast has joined #ruby
petey has joined #ruby
mlpinit has quit [Remote host closed the connection]
benwoody has joined #ruby
Bira has quit [Remote host closed the connection]
<lolmaus>
I've got an array of objects. I know that there's only one element that matches a certain criteria. Is there a shorter way to select it than `arr.select { |el| el.property = 'foo' }.first` ?
petey has quit [Remote host closed the connection]
<skiddex>
can i talk here?
<slash_nick>
better not, skiddex
<slash_nick>
you better not :)
makerops has quit [Quit: Leaving]
<skiddex>
ok i guess the rpi is working
mikepack has quit [Ping timeout: 240 seconds]
skulker has joined #ruby
<skiddex>
this is through rpi via kali linux starting on windows7 box with rdp --- whew
mneorr has quit [Remote host closed the connection]
lewix has quit [Remote host closed the connection]
rootshift has quit [Quit: rootshift]
<Hanmac>
lolmaus: use find and ==
jerius has joined #ruby
includex has quit [Read error: Connection reset by peer]
bean_ has joined #ruby
djdarkbeat has joined #ruby
danshultz has quit [Remote host closed the connection]
<lolmaus>
Hanmac, find is awesome! I failed to find one for Array. Now i understand it's defined for Enumerable. Thank you. ^_^
danshultz has joined #ruby
Jdubs has quit [Remote host closed the connection]
raphaelivan has quit [Quit: Leaving.]
<Hanmac>
lolmaus: and remember to use "==" for comare not "=" or you will fuckup your entire data
havenwood has quit [Remote host closed the connection]
aspires_ has quit []
<apeiros>
lolmaus: "I've got an array of objects" - arrays are always arrays of objects ;-) (except empty arrays)
danshultz has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
danshultz has joined #ruby
cgore has joined #ruby
rjhunter has joined #ruby
<slash_nick>
apeiros: []'s 0th element is nil... does that mean it's still an array of objects?
<apeiros>
slash_nick: a) that's not necessarily true and b) nil is an object, so yes
<joshu>
apeiros hey yeah I recall you mentioning that setup. I am just curious about hearing any opinions on isolate. I'm moving to chruby and ruby-install instead of rbenv and ruby-build as havenwood suggested to me some time ago
iamjarvo has quit [Quit: Connection closed for inactivity]
<apeiros>
slash_nick: your reading capabilities fail you
<apeiros>
21:26 apeiros: lolmaus: "I've got an array of objects" - arrays are always arrays of objects ;-) ***(except empty arrays)***
<apeiros>
emphasis added.
hiyosi_ has quit [Ping timeout: 252 seconds]
|jemc| has joined #ruby
havenwood has joined #ruby
<slash_nick>
nah, i'm okay... was referring to my followup question where i asked if an empty array's 0th element being nil meant it was still an array of objects. digress.
mikepack has joined #ruby
<Hanmac>
empty arrays are full of nothing ;P
Bira has joined #ruby
xcv_ has quit [Remote host closed the connection]
<lolmaus>
apeiros, by "objects" i obviously meant custom objects as opposed to the ones provided by Ruby core.
<apeiros>
lolmaus: that's a rather pointless distinction
funburn has joined #ruby
<apeiros>
also I doubt anybody would understand it as meaning that ;-)
kpshek has quit []
<momomomomo>
apeiros: what do you "mean"
michaeldeol has quit [Ping timeout: 260 seconds]
hiyosi_ has joined #ruby
mikepack has quit [Ping timeout: 250 seconds]
<slash_nick>
momomomomo: depends on what you mean, "mean"
<momomomomo>
:p
terrellt_ has joined #ruby
BraddPitt has joined #ruby
maletor has joined #ruby
Hanmac1 has joined #ruby
dweeb_ has quit [Quit: Computer has gone to sleep.]
<apeiros>
momomomomo: I doubt that anybody understands "I have an object" as "I have an object which is not from any of the core classes".
<lolmaus>
apeiros, if it were a number or a string, i could just use a literal instead of retrieving it from an array.
_Andres has joined #ruby
<momomomomo>
apeiros: I was just being silly
<apeiros>
lolmaus: eh, that makes no sense
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
kpshek has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
<lolmaus>
apeiros, if you had an object which is one of the core classes then you would say "I have a string" instead of "object". :/
mikepack has joined #ruby
<apeiros>
lolmaus: yes. I have an array of strings makes some sense.
hiyosi_ has quit [Ping timeout: 240 seconds]
colonolGron has joined #ruby
terrellt_ is now known as terrellt
<lolmaus>
apeiros, that's why when you hear "array of objects" you know that they are likely to be not of core classes.
g0bl1n has quit [Read error: Operation timed out]
<apeiros>
no
agjacome has joined #ruby
|jemc| has left #ruby ["WeeChat 0.4.1"]
<lolmaus>
That's common sense.
<apeiros>
that's uncommon nonsense
<lolmaus>
As opposed to formal logic.
<momomomomo>
lolmaus: 'array of objects' means an array of anything in ruby
<momomomomo>
'array of Object' means array of Objects
<ddd>
it could be an array of objects representing a Tub of Lard
<apeiros>
"I have an array" and "I have an array of objects" are pretty much equivalent in ruby. you could call the latter a pleonasm.
gazarsgo has joined #ruby
<ddd>
all that means is what momomomomo said. An array of objects doesn't mean Object, it means whatever was stuck in there, pretty much because almost everything in ruby is an object of some type
<gazarsgo>
is there an easy way to disable GC in MRI :)
Jdubs has joined #ruby
randomnick_ has joined #ruby
<apeiros>
gazarsgo: GC.stop
<apeiros>
iirc
<lolmaus>
momomomomo, why would anyone call strings objects in a question in IRC?
<apeiros>
ri GC for more
mikepack has quit [Client Quit]
<momomomomo>
gazarsgo: beware!
<gazarsgo>
i tried setting RUBY_GC_MALLOC_LIMIT really high … hmm i'll try GC.stop, thanks
<ddd>
apeiros, damn, TIL. never heard the word pleonasm before
<apeiros>
lolmaus: the reverse is not true
<momomomomo>
ddd: that's some world class thesauriusing
<apeiros>
lolmaus: every string is an object, not every object is a string
<ddd>
heheh
jerius has quit [Ping timeout: 240 seconds]
hogeo has joined #ruby
<apeiros>
lolmaus: so if it helps to inform about the type (and not the non-type) of the object, of course you'd reveal that
<lolmaus>
apeiros, "I've got an object of objects and i would like to run a method on an object to retrieve an object, how do i do that?"
jonathanwallace has joined #ruby
<apeiros>
lolmaus: yes, that's utterly stupid
mikepack has joined #ruby
davy_ has joined #ruby
mansi has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
<ddd>
like if you have an array of string or even Goat models, but all you care about is the array itself, you'd say I have an array of objects. Trying to access Nth position. how do I do that?
<apeiros>
what about "the reverse does not apply" do you not understand?
<ddd>
s/position/element/
PapaSierra has left #ruby [#ruby]
mansi has joined #ruby
mansi has quit [Read error: Connection reset by peer]
dkamioka has quit [Remote host closed the connection]
mansi has joined #ruby
jerius has joined #ruby
dkamioka has joined #ruby
<lolmaus>
apeiros, my point is that no one would want to conceal the class of the core-class object in an IRC question. Just like you never hear people saying e. g. "today i've eaten a fruit".
popl has joined #ruby
popl has joined #ruby
hogeo has quit [Ping timeout: 250 seconds]
<apeiros>
lolmaus: dude, you make no sense
<apeiros>
accept that "an array of objects" means nada to anybody but you
<apeiros>
it's just "an array"
<ddd>
he's just arguing to argue. there is no valid point that i can see in what he's said so far
<apeiros>
if you can further specify the type of objects you have in your array, and it is useful for the question, by all means to it
<speakingcode-wor>
what does yield return in general?
<apeiros>
*do it
<apeiros>
but adding "of objects" does not provide any useful information and nobody but you interprets it the way you are arguing.
w4pm has quit [Ping timeout: 252 seconds]
<apeiros>
speakingcode-wor: the value returned by the block
<apeiros>
speakingcode-wor: which is either the last statement or the value passed to `next`
kpshek has quit [Ping timeout: 264 seconds]
<speakingcode-wor>
thanks
mikeg has joined #ruby
<speakingcode-wor>
apeiros: is it possible to accept/pass more than one block to a function?
<speakingcode-wor>
(don't really have a need or use case, just wondering)
bartj3 has quit [Ping timeout: 246 seconds]
joaoh82 has joined #ruby
MattStratton has joined #ruby
Megro has quit [Remote host closed the connection]
hellome has joined #ruby
mojjojo has quit [Quit: mojjojo]
<xibalba>
anyone know of a library to convert IP address to integers and vice versa?
<xibalba>
3232235550 <~~ want to conver this to ipv4
tvw has joined #ruby
bnjamin has joined #ruby
<lolmaus>
apeiros, simply the fact that "array of objects" is stated explicitly lets you know that the objects are not of class known to any rubyist because otherwise a person would almost certainly say e. g. "array of strings". :P
skulker has quit [Remote host closed the connection]
DrShoggoth has quit [Read error: Connection reset by peer]
atno has quit [Remote host closed the connection]
<momomomomo>
lolmaus: wrong
skiddex has quit [Quit: Leaving.]
mlpinit has joined #ruby
atno has joined #ruby
<momomomomo>
lolmaus: You're assuming that other people will make assumptions
mansi has quit [Remote host closed the connection]
<momomomomo>
that's a nested assumption - and you know what they say about first-level assumptions, right?
agjacome has quit [Quit: leaving]
<speakingcode-wor>
i assume that's a safe assumption to make
<momomomomo>
speakingcode-wor: nope. If i say I have an array of objects
bradhe has joined #ruby
<momomomomo>
I might mean that some objects are strings, and some are fixnum
<speakingcode-wor>
momomomomo: no no, i mean i assume it's safe to assume that other people will make assumptions ;-p
<momomomomo>
but to keep it plain, i'll say objects
DrShoggoth has joined #ruby
joaoh82 has quit [Ping timeout: 240 seconds]
<momomomomo>
-_-
<apeiros>
lolmaus: seriously, no. nobody will think that.
xcthulhu has joined #ruby
<momomomomo>
apeiros: this is a genius-level troll
<apeiros>
additionally it would be *wrong*
mlpinit has quit [Read error: Connection reset by peer]
<apeiros>
indeed
benweint has joined #ruby
<speakingcode-wor>
yeah when i see 'array of objects' i don't assume anything other than an array, populated with objects
DrShoggoth has quit [Max SendQ exceeded]
<apeiros>
xibalba: IPAddr from stdlib maybe?
mlpinit has joined #ruby
<speakingcode-wor>
objects could be anything, they may be homogenous or maybe not, who knows
<apeiros>
speakingcode-wor: no, you can't pass more than one block
<apeiros>
speakingcode-wor: but you can pass procs/lambdas as regular arguments
mansi_ has joined #ruby
<xibalba>
apeiros, tried that but it wouldn't let me initialize w/the int32 format of the IP
<apeiros>
speakingcode-wor: and with stabby lambda, it's relatively short to write
benwoody has quit [Quit: benwoody]
<apeiros>
xibalba: look for class methods. a well written class should IMO only accept a single normalized form on .new
freerobby has quit [Quit: Leaving.]
DrShoggoth has joined #ruby
<speakingcode-wor>
apeiros: ah ok. figured there must be some [similar] way of passing multiple 'units of code' that can be handled as objects and executed later
w4pm has joined #ruby
<apeiros>
speakingcode-wor: e.g. foo(->(x,y) { … }, ->(a,b) { … }) # two lambdas for the method foo
bartj3 has joined #ruby
simoz has joined #ruby
jkhwan has quit [Remote host closed the connection]
sergicles has quit [Quit: sergicles]
<speakingcode-wor>
apeiros: am i deceiving myself? it appears that when taking a block, the method that accepts does not need to exlicitly list &block as its last parameter - is that true? perhaps only in certain cases?
jkhwan has joined #ruby
mojjojo has joined #ruby
<apeiros>
speakingcode-wor: no, that's correct
<lolmaus>
Would you say "i've got my hands in gloves" or "i've got my body parts in gloves"?
<apeiros>
&block is not required to be listed
flubba has quit [Ping timeout: 240 seconds]
<apeiros>
you can invoke a block via the `yield` keyword
<apeiros>
and test for its presence using `block_given?`
<apeiros>
lolmaus: your comparison does not work.
<speakingcode-wor>
apeiros: is it required if, for instance, i want to pass it along to yet another function?
Bira has quit [Ping timeout: 240 seconds]
flubba has joined #ruby
mansi_ has quit [Read error: Connection reset by peer]
tvw has quit []
<apeiros>
lolmaus: core class instances are objects. period.
bradhe has quit [Ping timeout: 272 seconds]
<speakingcode-wor>
so function a accepts a block, and somewhere in its body passes it along to b which accepts a block, and so forth?
<apeiros>
trying to relabel an explicit mentioning of "of objects" as "of non-ruby-core-class-instances" is *stupid*
mansi has joined #ruby
<lolmaus>
apeiros, fingers are parts of your body too, but you don't call them body parts. When you talk about fingers, you say fingers. When you talk about strings, you say strings.
<apeiros>
lolmaus: again, your comparison does not work.
vlad_sta_ has joined #ruby
<lolmaus>
apeiros, OK Sheldon :P
<speakingcode-wor>
lolmaus: right, but when you're talking about body parts you say body parts, not legs, or "body parts of the upper body" or whatever
zipper has quit [Quit: leaving]
<speakingcode-wor>
when speaking in general you use the most generalized terms
<apeiros>
lolmaus: dude, go ahead, use it. it's your loss as people will NOT understand it the way you mean.
<apeiros>
it's stupid, but if you insist on doing stupid things, then fine.
Hanmac has joined #ruby
Advocation has quit [Quit: Advocation]
<apeiros>
"I have a forrest of trees" and I say "of trees" because I mean non-standard trees.
<lolmaus>
apeiros, i didn't have trouble with people not understanding my question.
<apeiros>
better comparison of what you did
<apeiros>
because why would I meantion "of trees"
<apeiros>
if I actually meant "trees"
roolo has joined #ruby
bradhe has joined #ruby
<apeiros>
that'd be so silly of me… so by you assuming I'm not silly you can infer I didn't actually mean what I said but something completely different.
jkhwan has quit [Ping timeout: 272 seconds]
<apeiros>
lolmaus: people didn't have trouble because the type information was absolutely uninvolved in your actual problem.
Markvilla has quit [Quit: Computer has gone to sleep.]
<apeiros>
they could simply ignore that part
Hanmac1 has quit [Ping timeout: 260 seconds]
funburn has quit [Quit: funburn]
mansi has quit [Remote host closed the connection]
bnjamin has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 250 seconds]
flame_ has joined #ruby
nobitanobi has joined #ruby
<apeiros>
speakingcode-wor: &blocks makes passing on easier. but you can do it without too. f.ex.:
xcthulhu has quit [Quit: xcthulhu]
mansi has joined #ruby
<apeiros>
def my_each; @foo.each do |*args| yield(*args) end; end
bnjamin has joined #ruby
cescalante is now known as ce_afk
<apeiros>
that's equivalent to: def my_each(&block); @foo.each(&block); end
<apeiros>
the latter is afaik faster and less GC intense.
freerobby has joined #ruby
xcthulhu has joined #ruby
jkhwan has joined #ruby
<apeiros>
if you don't pass the block on or store it, then yield is faster and less GC intense because a block is not actually an object, and &block forces ruby to create an object from the block.
<xibalba>
i want to do the reverse of IpAddr.to_i()
roolo has quit [Ping timeout: 250 seconds]
<speakingcode-wor>
apeiros: ah. neat. i need more metaprogramming knowledge. another q... if i have: def whatever; yield Something.new; end i want to modify whatever to return the instance of Something initialized in that yield line... can that be done, or do i need to do...
<Hanmac>
apeiros: if you want to protect the @foo array, think also about the returnvalue of my_each
m8 has joined #ruby
<speakingcode-wor>
def whatever; s = Something.new; yield s; return s; end
<lolmaus>
apeiros, there are thousands of different species of plants in a forest. If most forests consisted only of a single specie and there were only a dozen of common species, then people would tend to say "forest of oaks" and "forest of trees" would sound unusual. Did you walk your animal today?
motto has quit [Ping timeout: 264 seconds]
mlpinit_ has joined #ruby
geekbri has quit []
<xibalba>
apeiros, thanks i see that works. though i'm looking up Array.pack right now to understand why N* was appended
joshu has quit [Quit: Bye.]
mlpinit_ has quit [Read error: Connection reset by peer]
xcthulhu has quit [Client Quit]
<apeiros>
lolmaus: dude, keep doing stupid things. everybody who said something about this agreed with me and disagreed with you. so if you want to miscommunicate, have fun. I'm out of this "discussion"
<xibalba>
ah-ha! i see apeiros
jibi has quit [Quit: leaving]
<xibalba>
telling it to convert all the string to 32bit integer
<apeiros>
xibalba: because pack("N") converts your integer into a binary packed string
mlpinit_ has joined #ruby
<apeiros>
and new_ntoh expects a binary packed string
failshell has quit []
<xibalba>
ok cool and it seems netflow returns the int32 representation of the IP back to me
mlpinit_ has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
<Hanmac>
apeiros: why not IPAddr.new(3232235521,Socket::AF_INET) ?
mansi has quit [Remote host closed the connection]
<speakingcode-wor>
(its only 3 as of now)
<xibalba>
interesting, the line puts "flowset.records[0] is #{flowset.records[0].class}"
<xibalba>
produced flowset.records[0] is BinData::Struct
<xibalba>
i dont think i've seen Structs yet
<xibalba>
not in Ruby anyways
<shevy>
speakingcode-wor this does not seem to make sense to me
Xiti` is now known as Xiti
mansi has joined #ruby
mansi has quit [Read error: Connection reset by peer]
xcthulhu has quit [Quit: xcthulhu]
cameronbarton has quit [Quit: cameronbarton]
benlieb has quit [Quit: benlieb]
<shevy>
with yield you access the content of the block given to the very method, in this case .build
<Hanmac>
speakingcode-wor: look at Object#tap
cory_ has joined #ruby
mansi has joined #ruby
<speakingcode-wor>
shevy: yes. i'm creating a new house, passing it to the block (whch looks like { |house| ... })... and then i want to return back that house object afterwards
mary5030 has quit [Remote host closed the connection]
hellome has quit [Remote host closed the connection]
carraroj has quit [Quit: Konversation terminated!]
<speakingcode-wor>
ah nice
hellome has joined #ruby
hogeo has quit [Ping timeout: 272 seconds]
LostMonk- has quit [Ping timeout: 264 seconds]
<xibalba>
so given this code, #{flowset.records[0][:srcaddr]}, what is the best way for me to retrieve many but-not-all elements from flowset.records[0] ?
<speakingcode-wor>
so any thoughts on when it's appropriate to write a DSL, vs classes/modules?
Alina-malina has quit [Read error: Connection reset by peer]
joshu has joined #ruby
kcombs_ has joined #ruby
<arubin>
At what point do classes/modules become a DSL?
allsystemsarego has quit [Quit: Leaving]
bigoldrock3 has joined #ruby
Alina-malina has joined #ruby
danshultz has quit [Ping timeout: 260 seconds]
thumpba has quit [Ping timeout: 260 seconds]
jonathanwallace has quit [Ping timeout: 246 seconds]
bigoldrock has quit [Ping timeout: 260 seconds]
Underbyte has quit [Ping timeout: 260 seconds]
marcgg has quit [Ping timeout: 260 seconds]
kcombs has quit [Ping timeout: 260 seconds]
tylersmith has joined #ruby
nomenkun has joined #ruby
Duckily has joined #ruby
assurbanipal has joined #ruby
<speakingcode-wor>
i guess i shold specify by DSL i mean of the likeness of... CarFactory.build do |car|; car.wheels :performance; car.body_type :truck; .... end
hiyosi_ has joined #ruby
danshult_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
danshultz has joined #ruby
seoNinjaWarrior has joined #ruby
hellome has quit [Remote host closed the connection]
peregrine81 has quit []
<miah>
dsls are great when you want people who dont know how to code to be confused when they start to learn
stormbytes has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jrhorn424 is now known as zz_jrhorn424
Advocation has quit [Quit: Advocation]
mojjojo has quit [Quit: mojjojo]
Fire-Dragon-DoL has left #ruby [#ruby]
vlad_starkov has quit [Remote host closed the connection]
mojjojo has joined #ruby
m8 has quit [Quit: Sto andando via]
vlad_starkov has joined #ruby
danshultz has quit [Ping timeout: 272 seconds]
<shevy>
miah well said
CpuID has joined #ruby
<shevy>
arubin when using them feels like a specific, easy to use sublanguage of its own
DeProdig1 has quit [Ping timeout: 240 seconds]
<shevy>
one of the coolest DSLs I have seen was the one used in Zak McKracken
coca_rails has quit [Remote host closed the connection]
tvw has joined #ruby
DeProdigy has joined #ruby
assurbanipal has quit [Remote host closed the connection]
jedimind has quit [Quit: heading home, back later]
kobain has quit [Remote host closed the connection]
clamstar has quit [Quit: Computer has gone to sleep.]
coca_rails has joined #ruby
anomaly_ has joined #ruby
xcv has joined #ruby
sepp2k1 has joined #ruby
drag00n has quit [Ping timeout: 240 seconds]
<shevy>
my gemrc is small
<shevy>
:verbose: true
sepp2k has quit [Ping timeout: 250 seconds]
<platzhirsch>
pry-docs and pry-moredocs are awesome-sauce
<joshu>
shevy ok
anomaly_ has quit [Remote host closed the connection]
anomaly_ has joined #ruby
bean_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vlad_sta_ has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
<miah>
i dont even gemrc
matheuscaceres has quit [Quit: matheuscaceres]
mojjojo_ has joined #ruby
vlad_st__ has joined #ruby
mojjojo has quit [Ping timeout: 252 seconds]
mojjojo_ is now known as mojjojo
Hanmac1 has joined #ruby
<lectrick>
Anyone know of a way to "evolve" Ruby code iteratively via random mutations against a "fitness criteria", or a gem that can help play around with that?
vlad_starkov has quit [Ping timeout: 260 seconds]
vlad_sta_ has quit [Ping timeout: 246 seconds]
Hanmac has quit [Ping timeout: 250 seconds]
elux has quit [Quit: Bye!]
ffranz has quit [Quit: Leaving]
otero has quit [Ping timeout: 260 seconds]
rjhunter has joined #ruby
bean_ has joined #ruby
nobitanobi has joined #ruby
breakingthings has quit []
volty has joined #ruby
<lectrick>
Evolutionary algorithm basically
phipes has joined #ruby
mlpinit has quit [Remote host closed the connection]
makerops has quit [Remote host closed the connection]
zipper has joined #ruby
kcombs_ has quit [Remote host closed the connection]
rjhunter has quit [Ping timeout: 246 seconds]
zipper has quit [Client Quit]
mikepack_ has joined #ruby
<cout>
lectrick: I thought someone did a talk at rubyconf a few years ago on GAs