douglarek_ has quit [Remote host closed the connection]
froy has quit [Quit: kablam!]
jpfuentes2 has joined #ruby
froy has joined #ruby
eAlchemist has joined #ruby
tjbiddle has joined #ruby
mrsolo has quit [Quit: Leaving]
Zolo has joined #ruby
Zolo has quit [Read error: Connection reset by peer]
hbpoison has quit [Ping timeout: 245 seconds]
Zolo has joined #ruby
Zolo has quit [Read error: Connection reset by peer]
Stilo has joined #ruby
Tricon has quit [Quit: Leaving...]
eAlchemist has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
lethjakman has quit [Ping timeout: 260 seconds]
jclarke has joined #ruby
chrishough has joined #ruby
chrishough has quit [Client Quit]
hbpoison has joined #ruby
d34th4ck3r has quit [Ping timeout: 252 seconds]
Zolo_ has joined #ruby
Zolo_ has quit [Read error: Connection reset by peer]
pepper_chico has quit [Quit: Computer has gone to sleep.]
pitzips has quit [Ping timeout: 256 seconds]
justsee has quit [Ping timeout: 245 seconds]
banjara has quit [Quit: Leaving.]
Zolo has joined #ruby
Zolo has quit [Read error: Connection reset by peer]
Zolo has joined #ruby
Zolo has quit [Read error: Connection reset by peer]
elux has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
ctrinh has quit [Quit: ctrinh]
SilverKey has joined #ruby
stkowski has quit [Quit: stkowski]
dawkirst has joined #ruby
L4mppu has quit [Quit: Leaving]
Zolo has joined #ruby
Zolo has quit [Read error: Connection reset by peer]
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
Zolo has joined #ruby
Zolo has quit [Read error: Connection reset by peer]
randomor has quit [Remote host closed the connection]
Zolo has joined #ruby
Zolo has quit [Read error: Connection reset by peer]
Zolo has joined #ruby
Zolo has quit [Remote host closed the connection]
Zolo has joined #ruby
c0rn has quit [Ping timeout: 252 seconds]
Tricon has joined #ruby
fugetsu has joined #ruby
jbueza has quit [Quit: Leaving.]
Zolo has quit [Ping timeout: 252 seconds]
maletor has joined #ruby
tjbiddle_ has joined #ruby
hbpoison has quit [Ping timeout: 245 seconds]
maletor has quit [Max SendQ exceeded]
tjbiddle_ has quit [Client Quit]
tommyvyo has quit [Quit:]
maletor has joined #ruby
subbyyy has joined #ruby
julian-delphiki has joined #ruby
hbpoison has joined #ruby
Assurbanipal has quit [Remote host closed the connection]
tommyvyo has joined #ruby
tjbiddle has quit [Ping timeout: 245 seconds]
bean has quit [Ping timeout: 246 seconds]
beneggett has quit [Quit: Computer has gone to sleep.]
hbpoison has quit [Ping timeout: 252 seconds]
beneggett has joined #ruby
elux has quit [Quit: Leaving...]
tommyvyo has quit [Quit:]
hbpoison has joined #ruby
lancepantz_ has quit [Remote host closed the connection]
HecAtic has quit [Quit: HecAtic]
lancepantz_ has joined #ruby
lancepantz_ is now known as lancepantz
mahmoudimus has joined #ruby
the_jeebster has quit [Quit: Leaving.]
mahmoudimus has quit [Client Quit]
mmitchell has joined #ruby
tspike has quit [Quit: leaving]
bricker`work is now known as bricker`away
v0yager has quit [Remote host closed the connection]
aajjbb has quit [Remote host closed the connection]
predator217 has joined #ruby
mmitchell has quit [Remote host closed the connection]
FullTiltProspect has joined #ruby
FullTiltProspect has quit [Client Quit]
WhereIsMySpoon has joined #ruby
KellyLSB is now known as KellyLSB_missing
h4mz1d has joined #ruby
ndboost has joined #ruby
ndboost has quit [Remote host closed the connection]
predator117 has quit [Ping timeout: 260 seconds]
WhereIsMySpoon has quit [Read error: Connection reset by peer]
malnek has joined #ruby
Myconix has joined #ruby
WhereIsMySpoon has joined #ruby
nfisher has joined #ruby
NiteRain has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
fugetsu has quit [Quit: WeeChat 0.4.0]
banisterfiend has joined #ruby
twoism_ has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 264 seconds]
FullTiltProspect has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
FullTiltProspect has quit [Client Quit]
WhereIsMySpoon has quit [Changing host]
WhereIsMySpoon has joined #ruby
Marverick has joined #ruby
FullTiltProspect has joined #ruby
Marverick has left #ruby [#ruby]
hbpoison has joined #ruby
Mattix has joined #ruby
icole has joined #ruby
generalissimo has quit [Remote host closed the connection]
Voodoofish430 has quit [Quit: Leaving.]
s00pcan has quit [Quit: leaving]
s00pcan has joined #ruby
<malnek>
where would you guys start when it comes to dipping toes on gui? Google gives a lot of choices, but makes it hard to choose. Is shoes fully compatible with ruby?
eka has quit [Quit: Computer has gone to sleep.]
<nga4>
rubyfx is pretty vanilla
FullTiltProspect has quit [Quit: FullTiltProspect]
<shevy>
with load I can load file, again and again
<shevy>
with require, the same file that was loaded, can not be loaded again
<shevy>
why is that distinction so?
banister_ has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
bradhe has quit [Ping timeout: 264 seconds]
oxez has joined #ruby
s00pcan has quit [Quit: Lost terminal]
s00pcan_ has quit [Quit: Lost terminal]
hasimo-t has joined #ruby
<ryanf>
shevy: that is the purpose of require
hbpoison has quit [Ping timeout: 264 seconds]
s00pcan has joined #ruby
<shevy>
hmm
hbpoison has joined #ruby
hogeo has joined #ruby
<X-Jester>
shevy: i'll give you my humble opinion
s00pcan has quit [Client Quit]
s00pcan has joined #ruby
cableray has joined #ruby
<X-Jester>
shevy: 1. if you write five classes, all of which require, say, the 'json' gem, you only need that library included once. it's good practice to ensure that any one of your five classes can load correctly, so it's a good idea that each one of them require json, but it's a waste to load the json gem five times. require ensures it's only loaded once.
vickaita has quit [Ping timeout: 264 seconds]
<X-Jester>
shevy: we did the same thing with preprocessor macros in C and C++
<shevy>
ok let me try to digest that information first, my brain is already a bit in offline modus at this time
<shevy>
aha ok
<shevy>
so this is because constant loading and loading of files would be a waste of resources?
rocket has joined #ruby
rocket_ has joined #ruby
nigelb has joined #ruby
<X-Jester>
right - it's wasteful (and may even somehow produce weird errors or behaviors) to re-define the same classes, modules, or constants <n> number of times
<bnagy>
ok, your indenting pains me, but what's not working?
<notdone>
help a bit?
<dopie>
nothing it works :0
<bnagy>
flawless victory. My work here is done.
<dopie>
im going to have a question in abit when it comes to DRY techniques
<bnagy>
notdone: I don't know what a madeleine is, but I'm guessing a sanity check failed
jimeh has joined #ruby
* bnagy
taps his nose wisely
akashj87 has quit [Ping timeout: 245 seconds]
<notdone>
bnagy: yes,
<notdone>
thing is I'm new to ruby
hemanth has joined #ruby
<dopie>
notdone: welcome to the boat dont grab a paddle use your hand!
subbyyy has quit [Ping timeout: 256 seconds]
<notdone>
it says
<notdone>
block (2 levels) in file_check': Sanity check failed for file IO (RuntimeError)
drale2k has joined #ruby
picca3 has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
<bnagy>
yeah, but without seeing that code it would just be guessing to try and work out what's wrong
jacky- is now known as jacky
jacky has quit [Changing host]
jacky has joined #ruby
Takehiro has joined #ruby
<bnagy>
basically, in that function ( file_check ) there will be something like raise "Sanity check failed....
havenwood has joined #ruby
ryanf has quit [Ping timeout: 256 seconds]
<bnagy>
so it will be like unless @widget_frobbed; raise "blah"
<bnagy>
need to see the code to see what their sanity check conditions are
dhruvasagar has joined #ruby
<dopie>
bnagy: ok here goes here is the code http://pastie.org/6571272#20 basically blam and woot are defined but they basically do the samething except blam takes -10 hp and woot takes -25 hp.... all the text and what not are the same.... is there DRY way of doing this?
shock_one has quit [Remote host closed the connection]
icole has quit [Remote host closed the connection]
icole has joined #ruby
Morkel has quit [Quit: Morkel]
<oposomme>
hi, I would like to know what is the method return the biggest integer greater than or equal to the float given, in brief the oposite of .floor ?
<bnagy>
.ceil?
dawkirst has joined #ruby
<oposomme>
.ceil does the same thing
<oposomme>
than .foor
<dopie>
Is there anyway for me not to repeat the text?
<bnagy>
dopie: you can just apply_damage 25, 'blammed'
Mon_Ouie has joined #ruby
<MrZYX>
and @health -= amount is perfectly fine
<bnagy>
actually if you run with the linter ( ruby -wc ) it will tell you about a lot of mistakes like that
artofraw has joined #ruby
<dopie>
Ok here is a question why am i setting only @name and @health to global?? how come blam and woot can pass the information down???
<MrZYX>
@health and @name are the state of the object, amount is a message, you need it to do something and that's it (that's at least the way I think about it)
havenwood has quit [Read error: Connection reset by peer]
<dopie>
got it
<dopie>
ok ..
<bnagy>
@ivars aren't global, btw, they're a "property" (barf) of the item they're defined in
samphippen has joined #ruby
<bnagy>
like those would not be visible to code running "outside" those Player instances
<dopie>
so the player class is only set to know @name and @health
<bnagy>
basically a method ( def xyz ) is a thing that the object can do
<bnagy>
and @ivar is a property that the object has
jgrevich has quit [Remote host closed the connection]
<bnagy>
usually @ivars are to do with how you implement stuff, whereas methods make up your "API"
<dopie>
K im using the pragmatic studios tuts which are awesome
<dopie>
so im just trying to hammer these things in...
<dopie>
before i got Ultra Music Festival down here in Miami
<bnagy>
so @ivars are your business, methods are the actions other objects can ask your object to perform
<MrZYX>
hm I prefer messages over actions, since methods have return values. You ask an object something, that can be an action or you just want to know something about it.
<bnagy>
yeah but 'messages' is a pretty loaded term
<bnagy>
cause it leads into a programming approach / pattern ( actor )
<bnagy>
having said that, we still use send as a way to generically dispatch to methods, so the terminology is just all over the place :)
<MrZYX>
:)
luckyruby has quit [Remote host closed the connection]
<dopie>
why are hexadecimals appearing after i call the player name
anderse has joined #ruby
<bnagy>
that's surprisingly complicated to explain
io_syl has quit [Quit: Computer has gone to sleep.]
<bnagy>
basically, that hex number is related to the internal representation of the player object itself.
<bnagy>
you tried to output ( puts ) something that isn't actually a String
kofno has joined #ruby
<bnagy>
so ruby has to work out how to make it into one
drale2k has quit [Read error: Connection reset by peer]
sepp2k has quit [Remote host closed the connection]
erry_ is now known as erry
joebew has joined #ruby
<dopie>
ok, how do i make them from going away
<dopie>
i think in 2.0 the hex's go away
<bnagy>
don't do puts player1, output something else, or don't output it at all
<dopie>
well i called .say_hello on player1 which was where the to_s was
<MrZYX>
to_s should return the string, not already print it out
ananthakumaran has quit [Ping timeout: 245 seconds]
kendhia has joined #ruby
Amnesthesia has joined #ruby
dawkirst has quit [Ping timeout: 246 seconds]
jaygen has joined #ruby
ananthakumaran has joined #ruby
statarb3 has joined #ruby
<apeiros_>
dopie: in your to_s, don't puts
<apeiros_>
to_s should *return* a string, not print one
kofno has quit [Remote host closed the connection]
jaygen_ has quit [Read error: Operation timed out]
ephemerian has joined #ruby
kendhia has quit [Ping timeout: 245 seconds]
nfisher has joined #ruby
akhet has quit [Remote host closed the connection]
maxmanders has joined #ruby
zavier has joined #ruby
vlad_starkov has joined #ruby
sandGorgon has quit [Ping timeout: 245 seconds]
<dopie>
apeiros_: tjhank you!!! worked awesome
bashdy has joined #ruby
dawkirst has joined #ruby
nfisher has quit [Ping timeout: 256 seconds]
hbpoison has quit [Ping timeout: 256 seconds]
<epta>
How can I define infix operator in ruby?
sonda has joined #ruby
<apeiros_>
class Foo; def +(other); …; end; end
eka has joined #ruby
<apeiros_>
epta: infix operators are just methods in ruby. with a bit of syntax sugar on the calling site.
sepp2k has joined #ruby
bonhoeffer has joined #ruby
markisonfire has quit [Quit: markisonfire]
<epta>
Is there a way to use f(a,b) like a `f` b?
<apeiros_>
?
<apeiros_>
don't know what you mean by that
<epta>
Is there a way to call f(a,b) like a `f` b?
workmad3 has quit [Ping timeout: 252 seconds]
krainboltgreene has joined #ruby
kendhia has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.4.0]
joebew has left #ruby [#ruby]
<apeiros_>
eh?
<apeiros_>
what sense would that make?
<apeiros_>
`` is Kernel#`, so no, you can't
pyrac has quit [Quit: pyrac]
anderse has quit [Quit: anderse]
<MrZYX>
I think he thinks + is defined as def +(a,b) and he wants that syntax sugar for abitrary methods
<epta>
Forget it
<apeiros_>
epta: if you don't explain your question better, then that's exactly what I'll do
m_3 has quit [Ping timeout: 240 seconds]
notdone has quit [Quit: Page closed]
m_3 has joined #ruby
aep has left #ruby ["WeeChat 0.4.0"]
mulinux has joined #ruby
veer has joined #ruby
mengu__ has joined #ruby
Amnesthesia has quit [Remote host closed the connection]
Amnesthesia has joined #ruby
Amnesthesia has quit [Remote host closed the connection]
veer has quit [Ping timeout: 245 seconds]
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
timonv has joined #ruby
veer has joined #ruby
m3pow has quit [Ping timeout: 252 seconds]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
elaptics`away is now known as elaptics
swingha has joined #ruby
veer has quit [Ping timeout: 245 seconds]
veer has joined #ruby
kristofers has joined #ruby
sandGorgon has joined #ruby
nyuszika7h has joined #ruby
drale2k has joined #ruby
d34th4ck3r has joined #ruby
TheFuzzball has joined #ruby
gommo has joined #ruby
veer has quit [Ping timeout: 245 seconds]
sayan has quit [Read error: Connection reset by peer]
drale2k has quit [Ping timeout: 248 seconds]
pac1 has joined #ruby
marr has joined #ruby
Banistergalaxy has joined #ruby
adambeynon has joined #ruby
jonahR has quit [Quit: jonahR]
roflmaus has joined #ruby
roflmaus has quit [Client Quit]
xardas has joined #ruby
gommo has quit [Remote host closed the connection]
krainboltgreene has quit [Quit: Computer has gone to sleep.]
sfoobar has quit [Ping timeout: 240 seconds]
yashshah__ has quit [Read error: Connection reset by peer]
nfisher has joined #ruby
yashshah__ has joined #ruby
includex has joined #ruby
miso1337 has quit [Quit: afk]
hbpoison has joined #ruby
<sepp2k>
epta: If you want to use f infix, define it as a method on a's class and you can write a.f b
nfisher has quit [Ping timeout: 245 seconds]
<sepp2k>
As apeiros_ said, using `` makes no sense as `` already has a meaning in Ruby.
samphippen has quit [Quit: Computer has gone to sleep.]
emergion has quit [Read error: Connection reset by peer]
turgu has quit [Remote host closed the connection]
ddd has joined #ruby
kendhia has quit [Quit: Ex-Chat]
akashj87 has quit [Ping timeout: 264 seconds]
<s00pcan>
one time I was playing a game and windows decided to restart because 4am is time for updates. I can't understand how the same default is used for window server
cilquirm has joined #ruby
akemrir has quit [Quit: WeeChat 0.4.0]
jimeh has quit [Quit: Computer has gone to sleep.]
emergion has joined #ruby
emergion has quit [Client Quit]
d34th4ck3r has quit [Ping timeout: 252 seconds]
karthikselva has joined #ruby
karthikselva has left #ruby [#ruby]
emergion has joined #ruby
emergion has quit [Client Quit]
dawkirst has quit [Ping timeout: 260 seconds]
emergion has joined #ruby
emergion has quit [Read error: Connection reset by peer]
v0n has joined #ruby
andrew12 has quit [Ping timeout: 258 seconds]
mattb has quit [Ping timeout: 272 seconds]
cyberflux has left #ruby [#ruby]
emergion has joined #ruby
emergion has quit [Client Quit]
shirokuro11 has joined #ruby
hoelzro|away is now known as hoelzro
shirokuro11 has quit [Remote host closed the connection]
emergion has joined #ruby
emergion has quit [Read error: Connection reset by peer]
dawkirst has joined #ruby
Goles has quit [Quit: Computer has gone to sleep.]
tubbo has left #ruby [#ruby]
sambao21 has quit [Quit: Computer has gone to sleep.]
tonini has joined #ruby
ChristianS has joined #ruby
cilquirm has quit [Quit: cilquirm]
maxmanders has joined #ruby
astrostl has joined #ruby
Goles has joined #ruby
jsaak has joined #ruby
sayan has quit [Read error: Connection reset by peer]
tomzx_mac has joined #ruby
hoelzro is now known as hoelzro|away
carraroj has joined #ruby
joofsh has joined #ruby
emergion has joined #ruby
emergion has quit [Client Quit]
Stilo has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
bluOxigen has joined #ruby
tonini has quit [Remote host closed the connection]
emergion has joined #ruby
emergion has quit [Client Quit]
nfk has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
hbpoison has joined #ruby
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
jsaak has quit [Ping timeout: 276 seconds]
carraroj has quit [Quit: Konversation terminated!]
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
hbpoison has quit [Read error: Connection reset by peer]
andrew12 has joined #ruby
andrew12 has quit [Changing host]
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
sambao21 has joined #ruby
andrew12 has joined #ruby
andrew12 has quit [Changing host]
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
vlad_starkov has joined #ruby
browndawg has joined #ruby
hbpoison has joined #ruby
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
uris has joined #ruby
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
andrew12 has joined #ruby
andrew12 has joined #ruby
andrew12 has quit [Changing host]
andrew12 has quit [Excess Flood]
drumsrgr1 has joined #ruby
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
pyrac has quit [Quit: pyrac]
drale2k has joined #ruby
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
hbpoison has quit [Ping timeout: 256 seconds]
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
andrew12 has joined #ruby
andrew12 has quit [Excess Flood]
kraljev2 has joined #ruby
<kraljev2>
>> Date.new(2012, 10, -10)
drumsrgr1 has quit [Ping timeout: 255 seconds]
<eval-in>
kraljev2 => /tmp/execpad-f29f3a3abbb2/source-f29f3a3abbb2:2:in `initialize': wrong number of arguments (3 for 0) (ArgumentError) ... (http://eval.in/12840)
<nyuszika7h>
I'm looking for a way to send a file line by line through a socket after parsing it, but also replying to a specific message that the other end might send as soon as possible. how could I do that?
Vektur has joined #ruby
<kraljev2>
I don't want to use date
hbpoison has joined #ruby
<kraljev2>
mrZYX that advances 10 days!
<kraljev2>
not 10 months
nfisher has joined #ruby
<atmosx>
that's why I said build a method, to avoid conflicts of 31 vs 30 days and so on.
samphippen has quit [Quit: Computer has gone to sleep.]
<kraljev2>
and leap years...
<atmosx>
but if you're too lazy, I'm double lazy you are.
<atmosx>
yeah whatever.
wargasm has joined #ruby
<atmosx>
the concept if the same.
<kraljev2>
it is not, months have different number of days
shirokuro11 has quit [Remote host closed the connection]
<kraljev2>
and Februars too, depending on the year
Eldariof-ru has quit [Remote host closed the connection]
<JamesLever>
Hanmac, I have to admit, that I have a strict policy only to use established gems and libraries
<Hanmac>
James, its like wxRuby ... but the difference is that my stuff is still developed :P
LouisRoR has quit [Ping timeout: 264 seconds]
beiter has quit [Quit: beiter]
demas has joined #ruby
<JamesLever>
Or did I just get it wrong? As the stars and forks distracted me
moos3 has quit [Client Quit]
atmosx has quit [Quit: And so the story goes…]
kraljev2 has left #ruby [#ruby]
bradhe has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
veer has joined #ruby
dawkirst has joined #ruby
<Hanmac>
https://www.ohloh.net/p/rubywx << this is a statistic from my project: "Up +38 (1900%) from previous 12 months" ... wxRuby itself is dead "Down -3 (100%) from previous 12 months "
AndChat| has joined #ruby
axhlf has joined #ruby
becom33 has joined #ruby
goganchic1 has joined #ruby
<becom33>
how can I set a default value to ask() method ?
demas has quit [Remote host closed the connection]
<Morrolan>
You wrote code which takes "an estimated 3 years of effort" in a mere month? Impressive, Hanmac. :D
goganchic has quit [Read error: Operation timed out]
<aspiers>
yeah, ohloh's estimates suck
demas has joined #ruby
Banistergalaxy has quit [Ping timeout: 252 seconds]
<Hanmac>
Morrolan: hm not so, the project is near a year old but i dont have much time ...
<Hanmac>
but you can see, i am better than wxRuby ... even when they use an generator :D
carlyle has joined #ruby
<Morrolan>
Hanmac - Oh, Februrary 2012, not 2013, apologies. :)
Stilo has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
butblack has joined #ruby
<Hanmac>
its shameful when one alone can write more and better code than an entire team with code generators :Ü
zipace has joined #ruby
<becom33>
how can I set a default value to ask() method ?
dawkirst has quit [Read error: Operation timed out]
<Hanmac>
becom33 why didnt you try to google before you ask?
jdunck has quit [Quit: Computer has gone to sleep.]
<becom33>
I did
agjacome has joined #ruby
<MrZYX>
becom33: how would you expect it to work?
bricker`LA has quit [Ping timeout: 256 seconds]
sambao21 has joined #ruby
jacktrick has joined #ruby
s1n4 has quit [Quit: leaving]
<becom33>
just the ask("Are you ok ? [Y/n]") YES or yes or y or Y as the default value
<sepp2k>
becom33: What ask method? Highline?
goganchic1 has left #ruby [#ruby]
irmbrady has joined #ruby
nari has quit [Ping timeout: 245 seconds]
<becom33>
sepp2k, I think yes . but I saw this on a anther code while ago . but I dint have to require anything to use ask() method . I thought maybe its inbuild in ruby
<sepp2k>
It's not.
chrisramon has joined #ruby
<becom33>
but I didn't have to require any gem to use ask() method
<zipace>
hi, i'm wondering if anyone here who has been working with mruby (miniruby) knows whether it has Kernel#load and/or Kernel#require? both seem to be missing, making it kind of difficult to load modules (or anything, really). there is https://github.com/mattn/mruby-require, but it seems outdated, as it doesn't compile
yashshah__ has quit [Read error: Connection reset by peer]
<becom33>
hmm :/ Im using thor fm
yashshah__ has joined #ruby
Zolo has joined #ruby
demas has left #ruby [#ruby]
demas has joined #ruby
v0n has quit [Ping timeout: 264 seconds]
<sepp2k>
becom33: Thor defines an ask method. Anyway I don't think there is a way to set a default.
<sepp2k>
Just check whether the string is empty and set it to "y" if so.
<sepp2k>
Or write your own method ask_with_default that wraps ask and does that.
<MrZYX>
ask("foo")[/.+/m] || "y"
<becom33>
:/ maybe I need to create a common method any thor task(method) can use
jgrevich has joined #ruby
astrostl has quit []
<becom33>
sepp2k, btw any idea how can I write a common method any class can use ?
hbpoison has joined #ruby
<sepp2k>
becom33: define it in Kernel
demas_ has joined #ruby
<sepp2k>
Or define it in a module that you include where you need it.
<becom33>
sepp2k, could u explain me how ? I googled couldnt fine it
<sepp2k>
Which is less hacky.
demas has quit [Remote host closed the connection]
<sepp2k>
becom33: module MyModule; def my_method(bla) bla end end and then include MyModule where you need it.
<becom33>
aww u mean like that
<becom33>
okey :)
JohnBat26 has joined #ruby
<sepp2k>
s/MyModule/Kernel/ if you don't want the include.
jimeh has joined #ruby
<zipace>
anyone have an idea about mruby?
<sepp2k>
You can also module_function it if you want to be able to call it as MyModule.my_method without including it anywher.
includex has joined #ruby
<sepp2k>
+e
dawkirst has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
aeontech has quit [Quit: aeontech]
rkj has quit [Quit: WeeChat 0.3.8]
danneu1 has joined #ruby
AndChat- has joined #ruby
sandGorgon has joined #ruby
karthikselva has joined #ruby
tommyvyo has quit [Quit:]
lkba has quit [Ping timeout: 240 seconds]
danneu has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby
rkj has joined #ruby
rdk has joined #ruby
s00pcan has quit [Quit: leaving]
s00pcan has joined #ruby
m8 has quit [Read error: Connection reset by peer]
yankeefan04 has joined #ruby
colonolGron has joined #ruby
kirun_ has joined #ruby
kirun_ has quit [Remote host closed the connection]
subbyyy has quit [Ping timeout: 245 seconds]
m8 has joined #ruby
senayar has quit [Read error: Operation timed out]
marcdel has joined #ruby
whowantstolivef1 has joined #ruby
karthikselva has quit [Ping timeout: 245 seconds]
ananthakumaran has joined #ruby
motto has joined #ruby
ananthakumaran1 has quit [Read error: Connection reset by peer]
sfoobar has joined #ruby
kirun has quit [Ping timeout: 248 seconds]
nateberkopec has joined #ruby
rdk1 has joined #ruby
rdk has quit [Read error: Connection reset by peer]
pyrac has quit [Quit: pyrac]
otherj has joined #ruby
tish has joined #ruby
nateberkopec has quit [Client Quit]
m8 has quit [Ping timeout: 252 seconds]
nfisher has joined #ruby
veer has quit [Ping timeout: 245 seconds]
dawkirst has quit [Ping timeout: 276 seconds]
coder_neo has quit [Ping timeout: 260 seconds]
blklane has joined #ruby
Eldariof-ru has joined #ruby
yankeefan04 has quit [Ping timeout: 245 seconds]
demas_ has quit [Quit: demas_]
subbyyy has joined #ruby
nfisher has quit [Ping timeout: 245 seconds]
apoch632 has joined #ruby
eldariof has quit [Ping timeout: 245 seconds]
ryanf has joined #ruby
butblack has left #ruby [#ruby]
wmoxam has joined #ruby
ukd1_ has joined #ruby
s00pcan has quit [Quit: leaving]
s00pcan has joined #ruby
sfoobar has left #ruby [#ruby]
carlyle has quit [Remote host closed the connection]
cheese1756 has quit [Changing host]
cheese1756 has joined #ruby
ukd1 has quit [Ping timeout: 245 seconds]
ryanf has quit [Ping timeout: 240 seconds]
<shevy>
question
<shevy>
project name is called foo
<shevy>
module Foo
ryanf has joined #ruby
<shevy>
inside Foo, I want to keep a version constant
blklane has left #ruby [#ruby]
<shevy>
should I call it: VERSION or Version?
<shevy>
Foo::VERSION
<shevy>
Foo::Version
dawkirst has joined #ruby
<Hanmac>
VERSION is okay
girija has quit [Ping timeout: 256 seconds]
<Hanmac>
Version looks more like a version class
jrajav has quit [Quit: I tend to be neutral about apples]
sambao21 has quit [Quit: Computer has gone to sleep.]
jacktrick has quit [Quit: Leaving]
sambao21 has joined #ruby
d34th4ck3r has joined #ruby
colonolGron has quit [Quit: leaving]
Eldariof-ru has quit [Ping timeout: 252 seconds]
hashmal has quit [Quit: Computer has gone to sleep.]
ryanf has quit [Ping timeout: 255 seconds]
TheFuzzball has quit [Ping timeout: 245 seconds]
butblack has joined #ruby
yankeefan04 has joined #ruby
Takehiro has quit [Remote host closed the connection]
BRMatt has joined #ruby
chrishough has joined #ruby
bwlang has joined #ruby
ryanf has joined #ruby
mityaz has joined #ruby
pyrac has joined #ruby
bluOxigen has quit [Ping timeout: 276 seconds]
IceDragon has joined #ruby
subbyyy has joined #ruby
LiquidInsect has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
otherj has quit []
adkron has quit [Ping timeout: 260 seconds]
wmoxam has quit [Ping timeout: 245 seconds]
includex has quit [Read error: Connection reset by peer]
bricker`LA has joined #ruby
Harlin has joined #ruby
dawkirst has quit [Ping timeout: 260 seconds]
yankeefan04 has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
io_syl has joined #ruby
bluOxigen has joined #ruby
mkillebrew has quit [Read error: Operation timed out]
senayar has joined #ruby
Opettaja has quit [Quit: WeeChat 0.4.0]
<Harlin>
created a json obj: some_asc_array.to_json ... now I'd like to take this json object and bring it back to an associative array... dump.to_a does't seem to work here
joofsh has joined #ruby
<IceDragon>
JSON.load(dump)
<Harlin>
ack... of course... thanks IceDragon
<IceDragon>
np
Opettaja has joined #ruby
agjacome has quit [Quit: leaving]
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
oposomme has quit [Quit: Leaving...]
Nisstyre-laptop has joined #ruby
bluOxigen has joined #ruby
sonda has quit [Remote host closed the connection]
vickaita has quit [Ping timeout: 264 seconds]
blueOxigen has quit [Ping timeout: 245 seconds]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
dawkirst has joined #ruby
Myconix has joined #ruby
subbyyy has quit [Ping timeout: 264 seconds]
BRMatt has quit [Ping timeout: 264 seconds]
mercy____ has joined #ruby
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
ukd1_ has quit [Remote host closed the connection]
ukd1 has joined #ruby
gyre008 has joined #ruby
pepper_chico has joined #ruby
yankeefan04 has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
gyre008 has quit [Remote host closed the connection]
pkrnj has joined #ruby
gyre007 has joined #ruby
whitedawg has quit [Quit: Leaving.]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
butblack has left #ruby [#ruby]
ukd1 has quit [Ping timeout: 260 seconds]
astrostl has joined #ruby
nfisher has joined #ruby
joofsh has quit [Read error: Connection reset by peer]
rdk1 has left #ruby [#ruby]
postmodern has quit [Quit: Leaving]
joofsh has joined #ruby
tish has quit [Quit: Leaving.]
sambao21 has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Remote host closed the connection]
markisonfire has joined #ruby
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
nfisher has quit [Ping timeout: 240 seconds]
pepper_chico has joined #ruby
marr has quit [Ping timeout: 252 seconds]
rippa has quit [Ping timeout: 240 seconds]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
Giorgio has joined #ruby
Giorgio has quit [Remote host closed the connection]
banister_ is now known as banisterfiend
vickaita has joined #ruby
pepper_chico has quit [Quit: Computer has gone to sleep.]
chrishough has quit [Quit: chrishough]
sambao21 has joined #ruby
pcarrier has quit [Ping timeout: 256 seconds]
vickaita has quit [Ping timeout: 256 seconds]
d34th4ck3r has quit [Read error: Connection reset by peer]
subbyyy has joined #ruby
pcarrier has joined #ruby
cantonic has quit [Quit: cantonic]
oposomme has joined #ruby
dhruvasagar has joined #ruby
WilfredTheGreat has quit [Quit: Lost terminal]
joofsh has quit [Remote host closed the connection]
<apeiros_>
MrZYX: hash.detect {|key, value| value.include? search }.first # this completely defeats the purpose of having a hash in the first place
wargasm has quit [Ping timeout: 240 seconds]
dEPy has quit []
chipotle_ has joined #ruby
nomenkun has quit [Ping timeout: 245 seconds]
vickaita has joined #ruby
bradhe has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
estan has joined #ruby
wargasm has joined #ruby
whowantstolivef1 has quit [Ping timeout: 264 seconds]
dawkirst has joined #ruby
<estan>
hi folks. i accidently did a "bundle install" on a freebsd server of mine and entered my password, which resulted in bundler installing a bunch of gems system wide, which was not my intention :/ is there a way to distinguish gems installed by bundler and those that weren't (in my case they come from FreeBSD ports).
<estan>
because i'd like to remove them.
<MrZYX>
hm
<estan>
i'm also afraid that the bundler-installed gems may have overwritten gems installed through FreeBSD ports. but i'll have to deal with that later.
codecop has quit [Read error: Connection reset by peer]
casheew has quit [Read error: Connection reset by peer]
kornnflake_zzz is now known as kornnflake
casheew has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
TheFuzzball has joined #ruby
hashmal has quit [Quit: Computer has gone to sleep.]
tjbiddle has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
vickaita has quit [Ping timeout: 245 seconds]
tjbiddle_ has joined #ruby
Opettaja has joined #ruby
sambao21 has joined #ruby
casheew has quit [Read error: Connection reset by peer]
nfisher has quit [Ping timeout: 245 seconds]
<malnek>
I'm having a small problem getting Qt to work on windows. Ive installed it through "gem install qtbindings" which it claimed was a success. yet i can not make it run, just get a error saying that the module was not found. Ive done a google search and tried a solution that got rated highly on stackoverflow, but i can not make it work. Could anyone have a quick peek at this and point me in (hopefully)
bradhe has quit [Remote host closed the connection]
casheew has joined #ruby
tjbiddle has quit [Ping timeout: 276 seconds]
tjbiddle_ is now known as tjbiddle
pepper_chico has joined #ruby
slapt has joined #ruby
DrShoggoth has quit [Quit: Leaving]
<slapt>
anybody have some direction on a good static site generator for documenting an API? Less blogging, more documents... jekyll/octopress could work, but aren't tuned toward what I want by default
mpfundstein has quit [Remote host closed the connection]
<slapt>
(a Javascript API - my REST API is documented with apipie, but it's a pain to extend with custom docs)
<apeiros_>
nanoc is another site generator I've heard of
astrostl has quit []
<Paradox>
nanoc is ok
<Paradox>
but kind of shitty
jlkjl has joined #ruby
Voting has quit [Ping timeout: 260 seconds]
<Paradox>
nanoc and jekyll's biggest problems are that you have to use some shitty template engine just to run one that isnt shitty
<Paradox>
in jekylls case, its liquid
<Xeago>
slapt: look at karmi.github.com/tire/
<Xeago>
if you like that
<Xeago>
forgot what it was called
<Paradox>
one of my favorite tricks is using sinatra and a gem, cant remember which, that saves the pages you generate as HTML
<Xeago>
I really like that way of documenting an API
<Xeago>
you can focus reading the code
Davey_ has quit [Quit: Computer has gone to sleep.]
ukd1 has quit [Ping timeout: 245 seconds]
<Xeago>
and skim the documentation when unsure
hbpoison has quit [Ping timeout: 255 seconds]
nomenkun has joined #ruby
ukd1 has joined #ruby
gtc has quit [Quit: kill -9 gtc]
tommyvyo has joined #ruby
malnek2 has joined #ruby
dallasm has quit [Remote host closed the connection]
<slapt>
so the nicest _looking_ of this goes to nanoc - if http://developer.github.com/ is actually written with it. I'm working through tire and sinatra static and rocco options right now. Rocco / docco pointed me to https://github.com/visionmedia/dox for JS
<Spooner>
Paradox, Jekyll only requires you to use liquid if you want to host it live on Github. Both Jekyll and nanoc are more than happy with HAML/Slim/markdown and all the other standard stuff.
<Paradox>
Spooner, ah, cool then
<slapt>
Paradox: got that one running for our internal dev team's app documentation. Going to try out nanoc as the first option, appreciate the help guys
<Paradox>
i like the sinatra workflow because its simple and flexible
<Spooner>
slapt, There is a #nanoc if you get into trouble. I have a nanoc site on github (with markdown and Slim).
LouisRoR has joined #ruby
skattyadz has quit [Quit: skattyadz]
sambao21 has quit [Quit: Computer has gone to sleep.]
<slapt>
Spooner: awesome, that's probably the stack I'll set up
<Paradox>
Spooner, ooh slim
<Paradox>
i love slim
Nisstyre-laptop has joined #ruby
<Paradox>
i learned HAML
<slapt>
and, btw, Hi, I'm slapt, I've been a developer for a long time, looking forward to spending some more time with you folks. Any crazies in this community I shouldn't listen to?
<Paradox>
and was happy but slightly dissatisfied i had to write % everywhere
nomenkun has quit [Ping timeout: 246 seconds]
<Paradox>
slapt, nah, from what i've seen #ruby is pretty damn friendlly
<Paradox>
#rubyonrails and #ruby-lang can be a little more…sperglordy?
<Spooner>
Yeah, it makes more sense to default to tags, since you should mainly be doing layout anyway.
<Paradox>
i mean, seriously
<Paradox>
for HTML4 HAML made sense
<Paradox>
where everything was divs
<Paradox>
but HTML5
<Spooner>
slapt, Don't follow any links that banisterfiend gives you :D
<Paradox>
%html %head %title
<Paradox>
versus html head title
<Paradox>
thats much better
Dreamer3 has quit [Quit: Computer has gone to sleep.]
<slapt>
Spooner: heh, exactly what I needed to know
<Paradox>
nah
<Paradox>
banister is a great guy
<Paradox>
pry is one of the best tool i've ever used
<Spooner>
I didn't cast aspersions on his developing skills!
casheew has quit [Read error: Connection reset by peer]