hakunin has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Tearan has quit [Quit: Sleepy Badger....]
shadoi has joined #ruby
skcin7 has quit [Excess Flood]
Alpha64 has joined #ruby
Alpha64 has left #ruby [#ruby]
skcin7 has joined #ruby
mercwithamouth has quit [Ping timeout: 268 seconds]
slainer68 has quit [Ping timeout: 240 seconds]
macmartine has joined #ruby
deo has quit [Read error: Connection reset by peer]
deo has joined #ruby
DrShoggoth has quit [Quit: Leaving]
deo has quit [Read error: Connection reset by peer]
nappy has joined #ruby
aldodelgado has joined #ruby
nappy has quit [Read error: Connection reset by peer]
deo__ has joined #ruby
deo__ has quit [Read error: Connection reset by peer]
deo has joined #ruby
cableray has quit [Quit: cableray]
paolooo has joined #ruby
Juul has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
shadoi has quit [Quit: Leaving.]
koshii has quit [Ping timeout: 255 seconds]
zomgbie has joined #ruby
tpe11etier has joined #ruby
codefyre has joined #ruby
Slivka has quit [Remote host closed the connection]
wargasm has quit [Read error: Connection reset by peer]
iamjarvo has quit [Quit: Computer has gone to sleep.]
zomgbie has quit [Ping timeout: 268 seconds]
mmitchell has quit [Ping timeout: 244 seconds]
aldodelgado has quit [Quit: aldodelgado]
<roadt`>
hi,i found there are two method to convert obj to arary, one is 'to_a' , the otheris 'to_ary', what's difference between them?
tpe11etier has quit [Ping timeout: 244 seconds]
kiyoura has quit [Quit: Leaving]
Pip has joined #ruby
<hemanth>
roadt`, to_ary is used for implicit conversions, while to_a is used for explict conversions.
straind` has joined #ruby
straind has quit [Read error: Connection reset by peer]
<Mon_Ouie>
roadt`: Also notice that, in general, the long conversion name means the object can be treated like an object of the other class, while a short one means it can just be converted to one
burgestrand has joined #ruby
alem0lars has joined #ruby
<Mon_Ouie>
(that distinction is more common with strings: to_str and to_s)
<roadt`>
hemanth: 'implicit' means used by interpreter. 'explicit' means used by library or other ruby code. am i right understanding on this?
caleb_io has quit [Quit: caleb_io]
<Mon_Ouie>
No, implicit means treating an array (or an object) as if it were multiple values
<roadt`>
Mon_Ouie: i guess it is convention but not mandantory.
<Mon_Ouie>
e.g. each { |x, y| … } will implicitly convert an array if you yield one
mercwithamouth has joined #ruby
<Mon_Ouie>
roadt`: Well, for strings, the distinction can be seen in stdlib. If you define #to str, you are allowed to do "some string" + your_object — not if you just have #to_s
RudyValencia has quit [Quit: Hacked By Chinese!]
<Mon_Ouie>
An example of explicit conversion would be using the splat operator
paolooo has quit [Quit: Page closed]
<roadt`>
Mon_Ouie: ah.. i see..
<roadt`>
but just to_a can't make splat operator on my object work. right?
<Mon_Ouie>
Sure it can. o = Object.new; def o.to_a; [1, 2, 3]; end; puts(*o)
<roadt`>
Mon_Ouie: interpreter or graceful library only looks 'to_ary' for language level stuff.
joeycarmello has joined #ruby
therod has joined #ruby
<roadt`>
Mon_Ouie: splat operator is quite internal feature from what i seen.
psycho_one has joined #ruby
nitti has joined #ruby
sent-hil has joined #ruby
<roadt`>
Mon_Ouie: is any principle/boundary between implict feature and explicit feature.. 'treat it as object' and 'i convert it to object' looks have the same effect in a method call. the only difference to me is interpreter define some cases where it will do such conventions..
<roadt`>
Mon_Ouie: sorry for poor english.
davidcelis has joined #ruby
gridaphobe has quit [Read error: Connection reset by peer]
straind` has quit [Read error: Connection reset by peer]
<roadt`>
Mon_Ouie: can i find a list of those places 'implicit conversion occurrs'?
joeycarmello has quit [Ping timeout: 244 seconds]
therod has quit [Ping timeout: 256 seconds]
<yaymukund>
'Beta.const_defined?(:User)` versus `defined?(Beta::User)`-- should I prefer one over the other?
nitti has quit [Ping timeout: 244 seconds]
<Mon_Ouie>
When you use the splat operator, you add something to your code that explicitly means it will be treated as an array (the "*" operator). When you just do "a, b = foo" as opposed to "a, b = *foo", there is no such indicator
Juul has joined #ruby
<roadt`>
Mon_Ouie: ah, yes.
zeromodulus has joined #ruby
<roadt`>
Mon_Ouie: cool, i got it.
<roadt`>
Mon_Ouie: thanks for help.
chendo has quit [Ping timeout: 260 seconds]
bakedb_ has joined #ruby
a_a_g has joined #ruby
SCommette has joined #ruby
chendo_ has joined #ruby
chendo_ has quit [Changing host]
chendo_ has joined #ruby
justinmcp has joined #ruby
tagrudev has joined #ruby
yxhuvud has joined #ruby
yoklov has quit [Quit: computer sleeping]
tchebb has quit [Ping timeout: 260 seconds]
k610 has joined #ruby
arubin has quit [Quit: Computer has gone to sleep.]
straind has joined #ruby
* roadt`
is checking source code for all usage of try_convert, to_ary blabla, seems qutie a bit of effort.
k610 has quit [Ping timeout: 252 seconds]
k610 has joined #ruby
psycho_one has quit [Remote host closed the connection]
<yaymukund>
basically, how do I use a variable from outside Class.new do ; end, inside of the Class.new block?
<a_a_g>
when my name is being used, my_name means local (to the def) my_name of self.my_name
straind has quit [Ping timeout: 252 seconds]
k610 has quit [Ping timeout: 245 seconds]
SCommette has quit [Quit: SCommette]
macmartine has quit [Quit: Computer has gone to sleep.]
k610 has joined #ruby
<a_a_g>
set a class instance variable and a getter to retrieve it
<yaymukund>
ah
<yaymukund>
that works
<a_a_g>
def is very misleading in ruby :(
chumpy has joined #ruby
<TTilus>
in what sense?
<a_a_g>
the body of the def is actually the block passed to define_method
<a_a_g>
so lexical scoping doesnt apply as in this case
leoncamel has joined #ruby
k610 has quit [Ping timeout: 265 seconds]
<TTilus>
depends on your background and how do you learn ruby i think
k610 has joined #ruby
<TTilus>
that was one of the first things i learned when starting w ruby
<Mon_Ouie>
You could also just use define_method to define a method that's also a closure
NimeshNeema has joined #ruby
<TTilus>
a_a_g: uhm, thinking this more closely, blocks are closured, defs are not, so how can you say "body of the def is actually the block passed to define_method"?
ryanf has joined #ruby
<TTilus>
lexical scoping _applies_ to closures and blocks are closures
<a_a_g>
the way i see it, defs are actually instance_eval { send(:define_method,… } inside the class body
<yaymukund>
a_a_g: got it, and updated the gist with my solution. might fudge with this a bit more yet
<yaymukund>
a_a_g: ty
<TTilus>
a_a_g: ah, now i see what you mean
k610 has quit [Ping timeout: 255 seconds]
xpen_ has quit [Remote host closed the connection]
k610 has joined #ruby
xpen has joined #ruby
zomgbie has joined #ruby
straind has joined #ruby
k610 has quit [Ping timeout: 255 seconds]
wallerdev has quit [Quit: wallerdev]
k610 has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
codefyre has quit [Ping timeout: 244 seconds]
zomgbie has quit [Ping timeout: 255 seconds]
xpen_ has joined #ruby
lurch_ has joined #ruby
k610 has quit [Ping timeout: 252 seconds]
awestroke has joined #ruby
k610 has joined #ruby
xpen has quit [Ping timeout: 245 seconds]
Mon_Ouie has quit [Ping timeout: 268 seconds]
crocket has quit [Ping timeout: 260 seconds]
mercwithamouth has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
mmitchell has joined #ruby
RudyValencia has joined #ruby
k610 has quit [Ping timeout: 244 seconds]
kil0byte has quit [Remote host closed the connection]
thinkdevcode has quit [Remote host closed the connection]
k610 has joined #ruby
drago757 has joined #ruby
tchebb has joined #ruby
deo has quit [Read error: Connection reset by peer]
chussenot has joined #ruby
crocket has joined #ruby
crocket has quit [Changing host]
crocket has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
reset has joined #ruby
mmitchell has quit [Ping timeout: 244 seconds]
mneorr has joined #ruby
k610 has quit [Ping timeout: 244 seconds]
k610 has joined #ruby
sent-hil has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
SCommette has joined #ruby
elsifaka has joined #ruby
mneorr has quit [Remote host closed the connection]
therod has joined #ruby
xpen_ is now known as xpen
nitti has joined #ruby
crocket has quit [Ping timeout: 260 seconds]
k610 has quit [Ping timeout: 255 seconds]
k610 has joined #ruby
juarlex_ has joined #ruby
juarlex has quit [Read error: Connection reset by peer]
kaushik__ has joined #ruby
Ivo has quit [Quit: WeeChat 0.3.9]
therod has quit [Ping timeout: 244 seconds]
nitti has quit [Ping timeout: 244 seconds]
anderse has joined #ruby
Vinz_ is now known as Vinz_`
k610 has quit [Ping timeout: 260 seconds]
heisenmink has joined #ruby
k610 has joined #ruby
pskosinski has joined #ruby
awestroke has quit [Ping timeout: 248 seconds]
IrishGringo has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121010144125]]
k610 has quit [Ping timeout: 244 seconds]
FDj has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
k610 has joined #ruby
dr_bob has joined #ruby
xpen has quit [Remote host closed the connection]
aganov has joined #ruby
artnez has quit [Quit: artnez]
xpen has joined #ruby
hron84 has joined #ruby
monokrome has joined #ruby
deadSnowman has quit [Quit: WeeChat 0.3.2]
<monokrome>
Hey. Does anyone here know how I can get the gem install path?
<monokrome>
I need to write a script that uses chef solo on two operating systems and am wondering what command will get the path to installed gem package binaries
quest88 has joined #ruby
k610 has quit [Ping timeout: 260 seconds]
<dr_bob>
monokrome: gem environment
tonini has joined #ruby
<monokrome>
thanks
<monokrome>
:)
<monokrome>
Cool
<monokrome>
gem environment gemdir :D
k610 has joined #ruby
krz has joined #ruby
mneorr has joined #ruby
maletor has joined #ruby
Faris has joined #ruby
answer_42 has joined #ruby
dylanjha has joined #ruby
artnez has joined #ruby
Morkel has joined #ruby
justinmcp has quit [Remote host closed the connection]
PapaSierra has joined #ruby
k610 has quit [Ping timeout: 246 seconds]
xpen_ has joined #ruby
margle has joined #ruby
dylanjha has quit [Client Quit]
justinmcp has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
xpen has quit [Ping timeout: 244 seconds]
Elhu has joined #ruby
mockra has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
WhereIsMySpoon has quit [Read error: Operation timed out]
iaj has quit [Read error: Operation timed out]
iaj has joined #ruby
LucidDreamZzZ has quit [Ping timeout: 276 seconds]
xpen_ has quit [Remote host closed the connection]
maesbn has joined #ruby
ZubKonst has joined #ruby
WhereIsMySpoon has joined #ruby
rellin has quit [Ping timeout: 248 seconds]
richo has joined #ruby
richo has joined #ruby
richo has quit [Changing host]
mockra has quit [Ping timeout: 260 seconds]
<richo>
does ruby wrap sigprocmask(2) anywhere? I Can't find any references to it in the source but I could be missing something
Virunga has quit [Remote host closed the connection]
Virunga has joined #ruby
vigoo has quit []
linoj has joined #ruby
Cultofmetatron has joined #ruby
a_a_g1 is now known as a_a_g
aquaranto has joined #ruby
Uranio has joined #ruby
banisterfiend has joined #ruby
anderse has quit [Read error: Connection reset by peer]
anderse has joined #ruby
ablankfield has quit [Ping timeout: 252 seconds]
kil0byte has joined #ruby
emergion has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
flype has joined #ruby
charliesome has joined #ruby
justinmcp has joined #ruby
justinmcp has quit [Remote host closed the connection]
angusmorrison has quit [Read error: Connection reset by peer]
cantonic_ has joined #ruby
jcaudle has joined #ruby
skcin7 has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
chussenot_ has joined #ruby
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
robotmay_ has joined #ruby
Morkel has quit [Quit: Morkel]
ffranz has joined #ruby
chussenot has quit [Ping timeout: 244 seconds]
chussenot_ is now known as chussenot
bbttxu has quit [Quit: bbttxu]
robotmay has quit [Ping timeout: 240 seconds]
<shevy>
hmm
invisime has joined #ruby
<banisterfiend>
shevy: Hello.
<shevy>
when I have a gem
<shevy>
rather
Ivo has quit [Ping timeout: 245 seconds]
<shevy>
when I build a gem on my own, and I need to distribute some yaml files, I should just put them within the project-dir-name/ directory, in some standalone directory, like yml/ ?
<shevy>
actually
LouisGB has joined #ruby
<shevy>
ideally, I'd release those yaml files bundled together in a separate project... but I dont know if that is possible
GoGoGarrett has joined #ruby
<invisime>
shevy: what's in them?
<shevy>
invisime just data, instructions how to compile different programs (2314 different programs, as such 2314 different yaml files)
LouisGB has quit [Client Quit]
hbpoison has quit [Read error: Connection reset by peer]
<invisime>
shevy: I'd put them in a root-level directory with a name that indicates their function. e.g. $GEM_ROOT/compilation_instructions
Slivka has joined #ruby
a_a_g has quit [Quit: Leaving.]
drago757 has quit [Quit: drago757]
RJ3000_ has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
LouisGB has joined #ruby
preller has quit [Ping timeout: 252 seconds]
RJ3000_ has joined #ruby
nitti has joined #ruby
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
akemEikko has quit [Ping timeout: 260 seconds]
Cultofmetatron has joined #ruby
mercwithamouth has joined #ruby
nitti has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby
jeffreybaird has joined #ruby
akem has quit [Ping timeout: 252 seconds]
ThaDick has joined #ruby
preller has joined #ruby
geekbri has joined #ruby
cdzombak has joined #ruby
neku has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
akem has joined #ruby
mmealling has quit [Quit: Leaving.]
akem has quit [Max SendQ exceeded]
robotmay has joined #ruby
linoj has quit [Ping timeout: 244 seconds]
linoj has joined #ruby
robotmay_ has quit [Ping timeout: 246 seconds]
akem has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
pskosinski has quit [Quit: Whatever]
sailias has joined #ruby
daniel_- has joined #ruby
therod has joined #ruby
angusmorrison has joined #ruby
answer_42 has quit [Ping timeout: 276 seconds]
robertotauille has joined #ruby
bbttxu has joined #ruby
answer_42 has joined #ruby
whaley has quit [Remote host closed the connection]
axl_ has joined #ruby
ThaDick has quit [Quit: zzzZZZ ...]
guyvdb_ has quit [Remote host closed the connection]
moshee has quit [Ping timeout: 256 seconds]
dmerrick has joined #ruby
moshee has joined #ruby
robotmay has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
zomgbie has quit [Ping timeout: 260 seconds]
stnly has quit [Ping timeout: 245 seconds]
marcoshack has joined #ruby
pothibo has quit [Quit: pothibo]
emergion has quit [Quit: Computer has gone to sleep.]
therod has quit [Ping timeout: 244 seconds]
marcoshack has quit [Client Quit]
robotmay has joined #ruby
stnly has joined #ruby
RJ3000_ has quit [Remote host closed the connection]
LouisGB has quit []
jonathanwallace has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
k610 has joined #ruby
bgy has quit [Ping timeout: 256 seconds]
<sonne>
is there any reason why gems are installed under lib/ruby/1.9.1 even though ruby is version 1.9.3?
<Hanmac>
sonne API version
<sonne>
aha!
<Hanmac>
1.9.1 and 1.9.3 have the same API
<sonne>
so should i expect no api changes to occour until 2.0?
<Hanmac>
yeah
<sonne>
cheers :)
k611 has quit [Ping timeout: 244 seconds]
irleif has joined #ruby
jonathanwallace has quit [Ping timeout: 245 seconds]
<shevy>
wat
<shevy>
ruby 2.0 will have 1.9.1 API?
<Hanmac>
shevy i dont say that
LouisGB has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
robotmay_ has joined #ruby
carlyle has joined #ruby
Uranio has quit [Quit: WeeChat 0.3.8]
rippa has joined #ruby
richo has quit [Quit: laterz, norbs.]
robotmay has quit [Ping timeout: 240 seconds]
joast has joined #ruby
darthdeus has quit [Quit: Leaving...]
xpen has joined #ruby
robotmay_ has quit [Read error: Connection reset by peer]
robotmay has joined #ruby
kpshek has joined #ruby
v0n has joined #ruby
stopbit has joined #ruby
Agis__ has joined #ruby
tpe11etier has joined #ruby
<Agis__>
http://pastie.org/5119021 Is it possible to redefine greet on B in such a way that C still uses the original definition without modifying C?
paolooo has joined #ruby
<Mon_Ouie>
Just add a def self.greet in B
<Agis__>
then C will also use B::greet
atmosx has joined #ruby
a_a_g has joined #ruby
LouisGB has quit []
awestroke has quit [Remote host closed the connection]
<Mon_Ouie>
What do you mean when you say a class will use a method?
chussenot has joined #ruby
Ivo has joined #ruby
<Xeago>
Agis__: rethink your inheritance model
Ivo is now known as Guest311
<Xeago>
if c is not a b (according to the method behaviour) it should be an a
<Xeago>
and hence inherit from that
guyvdb_ has joined #ruby
<Agis__>
I know it's strange, I just wanted to know if there actually is a way to do something like this
<atmosx>
hello
<Xeago>
atmosx: hey :)
<atmosx>
Xeago: how's life :_)
Guest311 is now known as Ivoz
Ivoz has quit [Changing host]
Ivoz has joined #ruby
mikepack has joined #ruby
<Xeago>
excruciatingly painful
guyvdb_ has quit [Remote host closed the connection]
LouisGB has joined #ruby
<Xeago>
got my thumb in the fridge handle 3 weeks ago
chrishunt has quit [Quit: Leaving...]
<Xeago>
pain faded a bit at the 4-6th day
<Xeago>
but it is unbearable to type with most of my right hand >.<
<atmosx>
omg
<atmosx>
that's bad :-/
<Hanmac>
shevy i heard that OSZE watchers are not allowed in Texas while voting :P
<Xeago>
gonna get it checked up if it still hurts over the weekend
arietis has quit [Quit: Computer has gone to sleep.]
<atmosx>
r u a student Xeago ?
<Xeago>
yes, doing my graduation internship in stockholm, study in holland
[Neurotic] has quit [Remote host closed the connection]
<atmosx>
Xeago: yeah, cool.
chussenot has quit [Quit: chussenot]
LouisGB has joined #ruby
<Xeago>
why do you wonder?
<Xeago>
there's blog.xeago.nl/posts/me :)
<shevy>
Hanmac, well fascism does not want to be monitored
k0nichiwa has quit [Ping timeout: 240 seconds]
<atmosx>
Xeago: r you using some engine to power the blog or just gt pages?
<Xeago>
jekyll
<Xeago>
migrating it soon to heroky though, need some ruby stuff to run for more shiny graduation papers
<atmosx>
Xeago: My quality control in documentation is low. I have to get in the habit of checking for typos, verifying sources. I have a habit of making long uncontrolled sentences so I have to check for sentence structure and for fluent paragraphs. <--- true for me also :-P
bigmcq77 has joined #ruby
<Xeago>
totally start a blog
<Xeago>
but post atleast once a month
<shevy>
atmosx how do you document your projects in general?
awestroke has quit [Remote host closed the connection]
<Xeago>
for the last 2 weeks, i've only been typing with 1 hand
greenail has quit [Quit: Leaving]
<shevy>
Xeago stop surfing for pr0n man!
<Xeago>
don't need a hand to surf for pron
<shevy>
or type with the nose, that's at least funny
dmiller has quit [Ping timeout: 246 seconds]
bigmcq77 has quit [Client Quit]
<Xeago>
i type with my nose on my phone lol..
<shevy>
lol
<Xeago>
can't type with my right hand on it anymore
<shevy>
ewwww
<Xeago>
160840 Xeago: got my thumb in the fridge handle 3 weeks ago
<shevy>
broken?
<Xeago>
don;t know
<Xeago>
didn't get it checked
<shevy>
ah
<Xeago>
it is excruciating
<shevy>
comforts man
<shevy>
time to drink more beer
<Xeago>
it's friday afterall :)
bapa has quit [Read error: Operation timed out]
<atmosx>
shevy: my 'projects' are so small that doesn't need documentation at all. They are mostly scripts.
<Xeago>
I'm having my second keyboard have letters mapped to words
<Xeago>
for quicker typing
<shevy>
atmosx well then you dont need much documentation, but even a small class needs at least one sentence explaining what it does, no?
samphippen has joined #ruby
<atmosx>
shevy: but, even writting comments is boring. Imagine writing rdoc documentation, although rdoc makes the task easy
<shevy>
I hate rdoc
<Xeago>
atmosx: tomdoc
Ruler_Of_Heaven_ is now known as pipopopo
<shevy>
but documentation is important
tvw has quit [Ping timeout: 244 seconds]
<atmosx>
shevy: rdoc, reads the comments and creates some sort of documentation.
<shevy>
rdoc interferes with the way I write code
<Xeago>
shevy: if I open source something github.com/xeago/prefixer is my minimum
<shevy>
yeah, I dont like it, it wants me to adjust to its way
<shevy>
prefixer?
<shevy>
I'd wish gem would support github installation
<shevy>
gem install prefixer --from github
<atmosx>
shevy: hmmm well it just tried to make your life easier. I think there's a mode who doesn't read nothign except function name,s doesn't create doc's otu of comments
<shevy>
:)
<Xeago>
code to get into twitch.tv internshi[
carlyle has quit [Remote host closed the connection]
<atmosx>
shevy: why, are you documenting your codes?
<shevy>
atmosx, well yeah. but in my own way. but more importantly, I try to provide useful tutorials to my larger projects
<atmosx>
Xeago: letters mapped to words?
<Xeago>
yes
<Xeago>
y maps to yes :)
ttt has quit [Remote host closed the connection]
<shevy>
I usually document code in a very terse way, sometimes longer when the method is important. I document the intent and reason about it briefly, not long
<Xeago>
I have a multi keyboard setup just so you know
<shevy>
atmosx what annoyed me in rdoc, it cares about things like "# =========== #"
chussenot has joined #ruby
tagrudev has quit [Quit: no mom not this cable]
dekroning has quit [Ping timeout: 240 seconds]
elsifaka has quit [Ping timeout: 248 seconds]
<atmosx>
shevy: and why do you put things lke that in your code? :-P
<shevy>
mtfk private restricts what you can do in code
ZubKonst_ has joined #ruby
<shevy>
it's a way to enforce a uniform access
xpen has quit [Remote host closed the connection]
jdtornow has left #ruby [#ruby]
<shevy>
and what you can do with methods on an object
<shevy>
it's like a tag "internal use mostly please"
xpen has joined #ruby
<shevy>
hmmm
<shevy>
is end() a method too?
<mtfk>
yes I just want to set cookie in my controller (rails) but when I pass in controller something like that set_cookie(self) I've got error message that self.cookies is a private method
<shevy>
that would be kinda neat...
<shevy>
def foo
<shevy>
end :private
<shevy>
making foo() a private method hehe
<mtfk>
but if I will do that direct in controller it work
davidcelis has quit [Quit: K-Lined.]
rippa has quit [Ping timeout: 255 seconds]
klip has joined #ruby
<mtfk>
so I do not understand why when I will pass whole object to some other method (from different class ) I can't use that anymore
<Xeago>
because the code that sets cookie is supposed to be in the controller
ZubKonst has quit [Ping timeout: 244 seconds]
hbpoison has joined #ruby
<Xeago>
scratch that
sepp2k has quit [Read error: Connection reset by peer]
<mtfk>
I just have some plugin which connect to CAS server which should set cookie and I wanted to do that in my plugin not in main controller where I use that
gyre008 has joined #ruby
ltsstar has joined #ruby
<gyre008>
ruby masters is there any way how to print the strings including the quotes or double quotes if there are any ?? like … string1='quote', string2="doubleqoute" and if I print string2 I won't just print double quote but "doubleqoute"...
dhruvasagar has quit [Ping timeout: 260 seconds]
<mtfk>
gyre008: use \ before it
<gyre008>
i had a bunch of stuff which is going to ERB template and would like to avoid too many Ifs...
<mtfk>
to escape it
<mtfk>
like '\"doublequote\"'
<gyre008>
Im afraid I can't do that…because those parameters are used in other functions…I guess its not possible….
kaushik__ has joined #ruby
<gyre008>
and then the parameter passed to that method would contain " in passed value
<gyre008>
:)
<mtfk>
if they have it it should be no problem to display them
<mtfk>
just print them
CaptainKnots has joined #ruby
maletor has joined #ruby
omg765 has quit [Quit: Computer has gone to sleep.]
chimkan has joined #ruby
<Xeago>
gyre008: what is the reason for you to need them print it?
<Xeago>
can't you print the following: "'#{string}'"
drbawb has quit [Quit: WeeChat 0.3.9]
demian`_ has joined #ruby
<gyre008>
Xeago, nah..it's more complicated…thanks for the help mtfk Xeago
gyre008 has left #ruby ["Leaving"]
quest88 has joined #ruby
shadow_fox has joined #ruby
shadow_fox has left #ruby [#ruby]
demian`__ has quit [Ping timeout: 246 seconds]
CaptainKnots has quit [Quit: bazinga!]
CaptainKnots has joined #ruby
HeyHugo has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
LucidDreamZzZ has quit [Remote host closed the connection]
vectorshelve has quit [Quit: Page closed]
HeyHugo has left #ruby [#ruby]
LucidDreamZzZ has joined #ruby
carloslopes has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
BSaboia has joined #ruby
arturaz has quit [Ping timeout: 240 seconds]
anachronistic has joined #ruby
baroquebobcat has joined #ruby
omg765 has joined #ruby
Xeago has quit [Remote host closed the connection]
mikepack has joined #ruby
Xeago has joined #ruby
elsifaka has quit [Ping timeout: 245 seconds]
und3f has quit [Quit: Leaving.]
alexparker has quit [Quit: alexparker]
philcrissman has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
xpen_ has joined #ruby
Xeago has joined #ruby
carloslopes has quit [Ping timeout: 252 seconds]
chrishunt has joined #ruby
freeayu has quit [Remote host closed the connection]
answer_42 has quit [Remote host closed the connection]
Edijus has joined #ruby
<Edijus>
Hello. Hmm, how do I put it... I am student in business informatics and I need think of system to write. I did 'automated software regression testing system'. Now, I need something else, but I have no ideas. Any help?
elsifaka has joined #ruby
answer_42 has joined #ruby
xpen has quit [Ping timeout: 245 seconds]
treyryan has joined #ruby
larissa has quit [Quit: Leaving]
aganov has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 264 seconds]
robotmay has quit [Remote host closed the connection]
yoklov has joined #ruby
MrSamuel has joined #ruby
h4mz1d has joined #ruby
hoelzro is now known as hoelzro|away
tolbkni has quit [Quit: Ex-Chat]
zomgbie has joined #ruby
nignaztic has joined #ruby
areil has joined #ruby
hbpoison has joined #ruby
nazty has quit [Ping timeout: 256 seconds]
BSaboia__ has joined #ruby
DrShoggoth has joined #ruby
xpen has joined #ruby
BSaboia__ has quit [Client Quit]
khakimov has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
zomgbie has quit [Ping timeout: 240 seconds]
therod has quit [Quit: Leaving...]
alvaro_o has joined #ruby
Virunga has joined #ruby
ttt has joined #ruby
xpen_ has quit [Ping timeout: 264 seconds]
cakehero has joined #ruby
solidoodlesuppor has joined #ruby
paolooo has joined #ruby
samphippen has joined #ruby
wchun has quit [Quit: Leaving]
_alejandro has joined #ruby
ttt has quit [Ping timeout: 245 seconds]
Uranio has joined #ruby
dr_bob has quit [Quit: Leaving.]
noxoc has quit [Ping timeout: 245 seconds]
xpen has quit [Remote host closed the connection]
<shevy>
I am gonna ask quiz to you guys
xpen has joined #ruby
<shevy>
- Is it possible to decrease $SAFE
shtirlic has quit [Remote host closed the connection]
davidcelis has joined #ruby
vonsar has joined #ruby
<shevy>
Edijus your thinking does not seem to be very clear right now
<shevy>
first you need to focus on what you want or need
<shevy>
if you just need to do something useful in informatics, and want to use ruby, there are a million things to do!
<shevy>
just write lots of gems that solve something :)
<shevy>
you could hookup an IRC bot to your automated regression testing system and connect it to #ruby :P
<Edijus>
shevy: Yeah, and I do not know that 'something'.
<shevy>
how is that possible!
<shevy>
I have thousand things that I wanna do
<shevy>
RubyOS for instance!
<shevy>
or learn C... just so to improve the awful ruby bindings to C libraries
<shevy>
the ruby GUI bindings are really awful
klip has quit [Ping timeout: 265 seconds]
<shevy>
I think it must be because ruby is too complex
<Jonah11_>
how can i clean up this erb so that the repeated receiver object and identical parameters aren't repeated: http://pastie.org/5119377
rellin has joined #ruby
quest88 has quit [Quit: quest88]
angusmorrison has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 244 seconds]
baphled has quit [Quit: Lost terminal]
rabidpraxis has joined #ruby
a_a_g has joined #ruby
a_a_g has quit [Client Quit]
a_a_g has joined #ruby
chrishunt has quit [Read error: Connection reset by peer]
a_a_g has quit [Client Quit]
chrishunt has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
h4mz1d has quit [Ping timeout: 245 seconds]
zomgbie has joined #ruby
hbpoison has joined #ruby
Chryson has quit [Quit: Leaving]
demian`__ has joined #ruby
chrishunt has quit [Client Quit]
xpen has quit [Ping timeout: 252 seconds]
bradleyprice has joined #ruby
demian`_ has quit [Ping timeout: 246 seconds]
ThaDick has quit [Quit: zzzZZZ ...]
sertaconay has joined #ruby
MrSamuel has quit [Read error: Connection reset by peer]
MrSamuel has joined #ruby
elsifaka has quit [Quit: Veloma e!]
maletor has joined #ruby
<Uranio>
if exist JRuby, I guest that cuold be a ruby for cellphones
klip has joined #ruby
wallerdev has joined #ruby
linoj has quit [Quit: linoj]
k0nichiwa has joined #ruby
darthdeus has quit [Quit: Leaving...]
mikepack_ has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
prezioso has joined #ruby
yoklov has quit [Quit: computer sleeping]
Edijus has left #ruby [#ruby]
tchebb has joined #ruby
havenn has joined #ruby
Serial_Killer_C has quit [Remote host closed the connection]
darthdeus has joined #ruby
dnstbr has joined #ruby
linoj has joined #ruby
demian`__ has quit [Quit: demian`__]
h4mz1d has joined #ruby
Serial_Killer_C has joined #ruby
filipe has quit [Read error: Connection reset by peer]
Bosma has quit [Quit: leaving]
nitti has quit [Remote host closed the connection]
fermion has joined #ruby
apeiros_ has joined #ruby
nitti has joined #ruby
k0nichiwa has quit [Ping timeout: 240 seconds]
irleif has joined #ruby
yaymukund has quit [Ping timeout: 246 seconds]
PragCypher has joined #ruby
crodas has quit [Quit: Disconnecting from stoned server.]
samphippen has joined #ruby
crodas has joined #ruby
eldariof has quit []
Tombar has joined #ruby
crodas has quit [Max SendQ exceeded]
k0nichiwa has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
crodas has joined #ruby
angusmorrison has joined #ruby
d2dchat has joined #ruby
tomsthumb has joined #ruby
ryanlecompte has joined #ruby
linoj has quit [Remote host closed the connection]
<NemesisD>
havenn: i don't think that would be deterministic because of hash ordering
<havenn>
NemesisD: I think in 1.9+ it should be? Not sure.
Servidorv has joined #ruby
maletor has quit [Ping timeout: 255 seconds]
<linnea>
uuuh there is case in ruby
<Servidorv>
hey guys how are you
<Servidorv>
good afternoon
<NemesisD>
havenn: unfortunately i have to support 1.8
<Mon_Ouie>
It uses insertion order, but you may be creating equal hashes with different insertion orders in your program
paolooo has quit [Quit: Page closed]
<havenn>
servidorv: g'morning
anderse has quit [Quit: anderse]
<Servidorv>
oh is 2.04pm here in argentina :)
juarlex has joined #ruby
<Mon_Ouie>
If your keys have #<=>, you can sort them and iterate over the sorted keys
lecreme has joined #ruby
sent-hil has joined #ruby
chumpy_ has quit [Remote host closed the connection]
Tombar has joined #ruby
<Servidorv>
hey guys i have a method that does a .map on an array, now what i need to do is a if 'photo' == post['type'] then add 'image' => post['link']
<billy_ran_away>
linnea: I just put in a word that comes to mind but isn't a good fit and look for the synonyms.
<linnea>
i have now used a lot f, s and so on..
<GeekOnCoffee>
if you're trying to come up with variable names or object names you're probably doing it wrong
Araxia has quit [Read error: Connection reset by peer]
<GeekOnCoffee>
you either A) don't know your use case well enough or B) aren't writing your code so that it's easy to read
Araxia has joined #ruby
<linnea>
that might be
<linnea>
I started learning coding maybe month ago
lecreme has joined #ruby
gokul has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
rakl has joined #ruby
QKO has quit [Read error: Connection reset by peer]
cakehero has joined #ruby
QKO has joined #ruby
philcrissman has joined #ruby
hbpoison has joined #ruby
<Mon_Ouie>
Or you're just not thinking of that simple word that describes exactly what you're doing. As counter untuitive as it is, coming up with simple and clear names is not that easy.
<armycream>
.
instinkt has joined #ruby
lushious is now known as HarryPotterz
alem0lars has quit [Ping timeout: 248 seconds]
axl_ has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
stensonb has left #ruby [#ruby]
chumpy_ has joined #ruby
skcin7 has joined #ruby
vonsar has quit [Quit: This computer has gone to sleep]
codefyre has quit [Quit: Leaving]
Slivka has quit [Remote host closed the connection]
robotmay has quit [Remote host closed the connection]
havenn_ has quit [Remote host closed the connection]
gridaphobe has joined #ruby
philcrissman has quit [Remote host closed the connection]
nga4 has joined #ruby
glyytchy has joined #ruby
bricker has joined #ruby
c0rn_ has joined #ruby
alem0lars has joined #ruby
Tuxist has joined #ruby
asher^ has left #ruby [#ruby]
h4mz1d has joined #ruby
nyrb has quit [Ping timeout: 252 seconds]
jeffreybaird has quit [Quit: jeffreybaird]
noxoc has joined #ruby
Mon_Ouie has quit [Ping timeout: 244 seconds]
bwlang has joined #ruby
linoj has quit [Quit: linoj]
Solnse has joined #ruby
instinkt has quit [Ping timeout: 246 seconds]
chussenot has quit [Quit: chussenot]
cakehero has quit [Quit: Computer has gone to sleep.]
cableray has joined #ruby
rakl has quit [Quit: sleeping]
daniel_- has joined #ruby
omry has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
<alexparker>
hey anyone here?
carlyle has quit [Remote host closed the connection]
instinkt has joined #ruby
rakl has joined #ruby
knite has joined #ruby
skcin7 has quit [Quit: Computer has gone to sleep.]
emanon_ has quit [Quit: Leaving.]
sertaconay_ has joined #ruby
carloslopes has quit [Remote host closed the connection]
<shevy>
hi alexparker
sertaconay has quit [Ping timeout: 245 seconds]
<armycream>
hi alex
<shevy>
linnea it depends
<shevy>
linnea my favourite name is _
SPYGAME has joined #ruby
HabeasPorpoise has joined #ruby
<shevy>
_ = ''
<shevy>
_ << 'Hello World'
<armycream>
hi shevy
carloslopes has joined #ruby
<shevy>
hi armybutter
<linnea>
shevy: is that good coding? :P
alem0lars has quit [Quit: quit]
kirun has joined #ruby
<shevy>
linnea I am not sure, who defines what is good and what is bad? But I can tell you the rationale for when I use _
<shevy>
I use _ when I feel that it is a throwaway variable anyway
<shevy>
linnea, I sometimes do that when I need to assemble a string that I have to output to the user
nyrb has joined #ruby
davorb has quit [Ping timeout: 256 seconds]
<shevy>
linnea if you need to reuse a variable name, like an instance variable, then I usually call it like the class name
axl_ has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
cakehero has quit [Client Quit]
chimkan has quit [Quit: chimkan]
amacgregor_osx has quit [Ping timeout: 244 seconds]
shevy2 has joined #ruby
ThaDick has joined #ruby
codecaster has joined #ruby
<codecaster>
Hi all
<codecaster>
Anybody knows how chainable criteria objects, like in mongoid or ActiveRecord work?
<davidcelis>
shevy: you realize that naming things is one of two hard problems in software right
<codecaster>
do they use method missing?
<codecaster>
or Enumerable + each or what?
<davidcelis>
codecaster: i'm pretty sure, in the case of activerecord, a Relation object builds up a set of query criterion as you chain methods together. once an enumerable method is called, the query is executed and you can iterate
Servidorv has quit [Quit: If your not living on the edge, you're taking up too much space]
alexparker has quit [Quit: alexparker]
<codecaster>
so it just chains and returns stuff and fires the query on calls to each()
<codecaster>
right?
fflush has joined #ruby
<codecaster>
well, in case it's using Enumerable
<codecaster>
otherwise I would have to implement all Enumerable methods
shevy has quit [Ping timeout: 260 seconds]
<davidcelis>
calls to any Enumerable methods
<davidcelis>
ActiveRecord::Relation includes Enumerable
<codecaster>
I see
<codecaster>
thanks
amacgregor_osx has joined #ruby
davorb has joined #ruby
jrajav has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
Araxia has joined #ruby
HarryPotterz is now known as drdiv
drdiv is now known as lushious
shadoi has joined #ruby
Axsuul has joined #ruby
thinkdevcode has quit [Remote host closed the connection]
__zfn__ has joined #ruby
invisime has quit [Ping timeout: 246 seconds]
fantazo has joined #ruby
Xeago has quit [Remote host closed the connection]
<apeiros_>
what's the current code then? or still the same as pasted?
<billy_ran_away>
apeiros_: I feel like adding singleton methods to a Hash is kind of cheap...
tekknolagi has joined #ruby
<apeiros_>
well, you'd better use a module and extend IMO
<billy_ran_away>
apeiros_: Still the same, I've been calling around looking for a generator in prep for Hurricane Sandy...
<billy_ran_away>
apeiros_: Everyone is out though.
<tekknolagi>
Hi. For some reason, my installatin of Phusion Passenger won't see my gems. I installed Phusion Passenger, ruby, and rubygems with rvm. I only have one ruby installed, 1.9.3.
<tekknolagi>
My gem list shows the gem (data_mapper) in my list, but in the application it comes up with "not found."
<Servidorv>
can anyone tell me what does this method do??
Tref has quit [Quit: Tref]
wrapids has joined #ruby
<apeiros_>
your code says you added 'picture', not 'pictures'
wrapids has left #ruby [#ruby]
<Servidorv>
sorry picture
<apeiros_>
seems it calculates the average for all fields except the ones in that array
<apeiros_>
for anything else, you pasted *far* too little information.
dhruvasagar has quit [Ping timeout: 272 seconds]
<Servidorv>
oh ok, but the problem is that after i added 'picture' it will return 0,0
elaptics is now known as elaptics`away
akem has quit [Ping timeout: 240 seconds]
levity_island has joined #ruby
twopoint718 has quit [Ping timeout: 276 seconds]
<apeiros_>
you mean 0.0?
<apeiros_>
(0,0 are two values, two zeros, 0.0 is one value)
<Servidorv>
na it justs returns impressions => [0,0]
<apeiros_>
I very much doubt that
<apeiros_>
average = hash.each.inject({}) # <-- average will be a hash
artOfWar has quit [Remote host closed the connection]
<Servidorv>
{impressions => [10]}
<apeiros_>
look, if you want help, provide *all necessary information*
<Servidorv>
ok thanks
<apeiros_>
and *don't be sloppy* in the infos you give
pothibo has quit [Quit: pothibo]
<Servidorv>
ok
<Servidorv>
then
<apeiros_>
{impressions => [10]} # sloppy again, what's impressions supposed to be? it's NOT the same as {"impressions" => [10]}
<Servidorv>
this method is used for calculatin the averages, i have an array with all the posts from facebook page, but i needit to add picture on it so i can show the picture of each post, now the problem is that when i added 'picture' now it wont calculate nothing it returns 0
pskosinski has quit [Read error: Connection reset by peer]
pk1001100011 has joined #ruby
horofox has quit [Quit: horofox]
skcin7 has joined #ruby
sambio has joined #ruby
pk1001100011 is now known as pskosinski
deadalus has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
artOfWar has joined #ruby
helichopter has joined #ruby
ThaDick has quit [Quit: zzzZZZ ...]
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
atmosx has joined #ruby
emanon_ has joined #ruby
<emanon_>
exit
emanon_ has quit [Client Quit]
aquaranto has quit [Remote host closed the connection]
nitti has quit [Ping timeout: 252 seconds]
reset has joined #ruby
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
chrishunt has joined #ruby
m4rz has joined #ruby
<m4rz>
hi
<m4rz>
I've installed some gems with rake install I try to remove all
<m4rz>
how I can?
Jonah11_ has left #ruby ["Leaving"]
<atmosx>
m4rz: you want to remove all gems or only the gems that 'rake installed' ?
<m4rz>
./usr/local/Cellar/ruby/1.9.3-p286/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find rake (>= 0) amongst [bundler-1.2.1] (Gem::LoadError)
CaptainKnots has quit [Quit: bazinga!]
FlyingFoX has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
krisbulman has quit [Quit: krisbulman]
<blazes816>
add rake to your Gemfile and do "bundle install", or do "gem install rake"
love_color_text has quit [Remote host closed the connection]
answer_42 has quit [Ping timeout: 276 seconds]
Araxia has quit [Read error: Connection reset by peer]
wargasm has joined #ruby
nitti has joined #ruby
tpe11etier has quit [Read error: Connection reset by peer]
<m4rz>
my bundle install says "Your bundle is complete"
<m4rz>
but not it's complete
sambio has quit [Ping timeout: 260 seconds]
jrist-afk is now known as jrist
ThaDick has joined #ruby
kuzushi has quit [Ping timeout: 252 seconds]
Araxia has joined #ruby
Takehiro has joined #ruby
koshii has joined #ruby
<m4rz>
how I can remove all gems installed from this?
skcin7 has quit [Quit: Computer has gone to sleep.]
bemson has quit [Quit: bemson]
amacgregor_osx_ has joined #ruby
nitti_ has joined #ruby
amacgregor_osx has quit [Read error: Operation timed out]
bemson has joined #ruby
ddd has quit [Remote host closed the connection]
Dolphinius has joined #ruby
nitti has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
ddd has joined #ruby
<shevy2>
ewww bundle ;P
joast has joined #ruby
robertotauille has quit [Quit: Leaving...]
shevy2 is now known as shevy
<shevy>
if bundler would not be installed, I'd say do "gem list" then remove the gems you don't need. but as bundle is annoying as hell, perhaps it tries to hide gems from you
nitti_ has quit [Remote host closed the connection]
Juul has joined #ruby
yazdmich has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
Takehiro has quit [Ping timeout: 245 seconds]
<m4rz>
bundle install show gems, but I want to remote those gems
<shevy>
remote?
<m4rz>
gem list only show bundle rake
akem has quit [Quit: Forget progress by proxy. Land on your own moon.]
<yazdmich>
I was told by most people who have looked at Turing that it most resembles Java or Ruby, this is an incomplete Turing program to parse text and replace certain strings. could i please get some help with fixing it? http://pastebin.com/weTM3Akr
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
davidcelis has joined #ruby
nitti_ has joined #ruby
<apeiros_>
yazdmich: that's not ruby. not valid ruby at least.
Tombar has quit [Remote host closed the connection]
<yazdmich>
it's Turing
<shevy>
yazdmich switch to ruby, it's better
elementz has quit [Quit: leaving]
<yazdmich>
which i have been told looks like ruby/functions similar
<shevy>
nah ruby is more beautiful
<apeiros_>
yazdmich: ah, misunderstood you then. but in that case - wrong channel
<shevy>
junkfound1 := index (line1, "Junk Food")
<yazdmich>
its the language my highschool intoductory programming course uses
Tombar has joined #ruby
a_a_g has quit [Quit: Leaving.]
<shevy>
I had to use Pascal in school :)
<m4rz>
any idea shevy?
<yazdmich>
Turing is pascal-like
headius has quit [Quit: headius]
<shevy>
m4rz no idea about bundler. All I know is that I won't use it. if it is just a .gem file, and you verified via "gem list" that this gem is found, remove it via "gem remove name_here"
<yazdmich>
most like Java in function and syntax, but nobody in #java even attempts to help
<m4rz>
I've about 20 gems..
<m4rz>
manual remove?
<shevy>
oh
<shevy>
"gem uninstall name-1.0.gem"
<shevy>
that's how to uninstall "properly"
<shevy>
well remove the gems you dont need
<m4rz>
gem uninstall says gem isn't installed
<shevy>
I guess you can omit .gem
<shevy>
what is the name of the gem.
<shevy>
what does gem list show.
<m4rz>
only rake and bundler
<shevy>
eh?
jipiboily has joined #ruby
yazdmich has left #ruby [#ruby]
<shevy>
you installed two gems only?
jonathanwallace has quit [Ping timeout: 252 seconds]
<m4rz>
bundle install show about 20 gems installed
Neomex has joined #ruby
<m4rz>
"your bundle is complete"
<m4rz>
but gem list
<m4rz>
only show 2
<shevy>
as said, no idea what bundle is doing. it's a piece of crap anyway
<m4rz>
rake and bundle
<shevy>
there is #bundler here on freenode
nanderoo has quit [Quit: Leaving.]
<m4rz>
ok thanks
cakehero has quit [Quit: Computer has gone to sleep.]
jipiboily has left #ruby [#ruby]
dangerousdave has quit [Quit: Leaving...]
<shevy>
bundler probably uses some secret directory to store its gems :)
<shevy>
like ~/.bundler/where/no/user/will/ever/look
tpe11etier has joined #ruby
jonathanwallace has joined #ruby
zigomir has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
davidcelis has quit [Quit: K-Lined.]
billy_ran_away has quit []
Cultofmetatron has quit [Remote host closed the connection]
davidcelis has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
cakehero has joined #ruby
sepp2k has joined #ruby
Ryhnn has quit [Ping timeout: 244 seconds]
<ddd>
there is too
Araxia has quit [Read error: Connection reset by peer]
<ddd>
hehe you were being facetious
<ddd>
nm
Araxia has joined #ruby
CaptainJet has joined #ruby
spinagon has joined #ruby
keyvan has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
Tuxi has joined #ruby
Tuxi has quit [Read error: Connection reset by peer]
rippa has quit [Read error: Connection reset by peer]
jrajav has quit []
mercwithamouth has quit [Ping timeout: 268 seconds]
keyvan has quit [Remote host closed the connection]
<shevy>
it really annoys me when I dont know where a program stores its stuff
yshh has quit [Remote host closed the connection]
cakehero has quit [Quit: Computer has gone to sleep.]
dnstbr has quit [Quit: Computer has gone to sleep.]
pskosinski has quit [Ping timeout: 272 seconds]
knite_ has joined #ruby
knite has quit [Ping timeout: 245 seconds]
knite_ is now known as knite
<shevy>
I used to use gobolinux, there never was any question where something resides. every program was installed into /Programs/Name/Version
jenrzzz has quit [Ping timeout: 260 seconds]
<shevy>
in the traditional linux distribution, you would not know that unless you'd query the package manager
<shevy>
to which program does pfbtopfa belong... or peekfd ... or zoomsh
Taranis has joined #ruby
nitti_ has quit [Ping timeout: 245 seconds]
love_color_text has joined #ruby
ablankfield has joined #ruby
love_color_text has quit [Remote host closed the connection]
Tuxist has quit [Ping timeout: 264 seconds]
Taranis has left #ruby [#ruby]
carlyle has joined #ruby
nitti_ has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
ThaDick has quit [Quit: I'm outta here!]
<ddd>
bundle store only in $HOME/.bundler or in a .bundler directory in the project, or if you goofed in a directory you named. like bundle update twitter (thinking that it would update just the twitter gem, which it doesn't, it creates a dir for updated gems to be stored in)
<ddd>
people confuse that last command with *gem's* update command which *does* take a gem name to update
nitti__ has joined #ruby
<shevy>
:) there you go m4rz!
nitti__ has quit [Remote host closed the connection]
<shevy>
m4rz btw is your nick like "März" ? or the beer? Märzen Beer?
<knite>
silly newbie question - how can I do a one line conditional without an else? e.g., foo ? 't' : 'f' works as a ternary operator, but I can't for the life of me find the ruby equivalent of if foo then 't'.
kaushik__ has quit [Ping timeout: 240 seconds]
krawchyk has quit [Remote host closed the connection]
davidcelis has quit [Read error: Connection reset by peer]
<shevy>
knite but that should it be, ruby has the ternary operator too
<knite>
shevy: aren't curly braces equivalent to a do-end block?
<shevy>
knite it depends, you must be careful
<atmosx>
I think I'm gonna grab some gyros
<shevy>
ruby hashes use {} too you know? ruby needs to understand what you need
<shevy>
atmosx yum :)
<knite>
I can do my_array.sort_by do |e| stuff end or my_arrawy.sort_by {|e| stuff }
<knite>
ah, good point.
<knite>
silly parsers.
<atmosx>
shevy: yeap :-P
<apeiros_>
knite: yes, that's passing a block to a method. the {} or do/end is actually an object
<shevy>
knite, yes but you must remember how the ruby parser tries to "think"
<apeiros_>
errr, an *argument*, not object, sry
<Mon_Ouie>
knite: That's only when you're passing a block to a method. Also notice they have different precedence.
<shevy>
you have a hash {}, a block {} and {} as replacement for do/end
<apeiros_>
if/unless are not methods. so you can't pass them arguments.
<billy_ran_away>
Nevermind… I just realized why that would never work that I want it to....
<shevy>
hmm though you could always use ... Hash.new instead of {} hehe
<atmosx>
I like Hash.new better
<shevy>
perhaps you can even avoid {} altogether in ruby
<atmosx>
it seems more 'classy'
<knite>
thanks for explanation, guys! this is a pretty friendly room.
<shevy>
atmosx but {} is so much shorter
<shevy>
atmosx, what is good greek food actually? I only know... feta, with a bit of olives ... but that was about it, especially no warm dishes I know
<atmosx>
shevy: exactly, that's what everybody uses
<knite>
shevy: gyros and souvlaki.
<blazes816>
goat
<shevy>
lol
<knite>
and saganaki for the novelty - it's cheese that they light on fire right in front of you.
<blazes816>
and debt
<knite>
the mini fireball lasts a few seconds.
<atmosx>
shevy: the national food, is called 'sarmadakia' hard to explain, search it online
<shevy>
ok
<shevy>
cooool
<shevy>
saganaki even sounds japanese
slainer68 has quit [Remote host closed the connection]
<shevy>
need to remember that lighting on fire thing
<atmosx>
shevy: pretty tasty, then there are many different ones, like "mousaka"
<atmosx>
etc. Depending on the area you're in. I think Greek couisine is bested by French and Italian only, although is not as famous as the Japanese. Turkish food is good also, they use too much oil but the food is tasty if coocked properly.
<atmosx>
hehehe
Tombar has quit [Remote host closed the connection]
devdazed has quit [Quit: Bye]
<codecaster>
mousaka is quite nice
<shevy>
hmm italian cuisine is nice... dont know about french... dont like turkish food that much either
ablankfield has quit [Ping timeout: 264 seconds]
RubyRails has joined #ruby
<RubyRails>
with net/HTTP, is there a way to fire an http request without waiting for a response (like to trigger a web hook?)
anachronistic has quit [Quit: anachronistic]
<atmosx>
shevy: turkish food is not just kebab etc. it's a lot more than that. But you'd have to go to Turkey to really taste it
justinmcp has joined #ruby
<apeiros_>
RubyRails: and how do you know the web hook was really triggered if you don't wait for the response?
treyryan has quit [Quit: treyryan]
<apeiros_>
you can use threads to do it in parallel, i.e., without pausing your main application.
<RubyRails>
@apeiros_ No biggie if it doesn't, but it's critical that the app itself not delay at all after firing it off
<RubyRails>
just put in in a Thread.new block?
<atmosx>
anyone ever worked with google's api gem?
<apeiros_>
mostly just that, yes.
<shevy>
atmosx, yeah, we have lots of doner kebab and adener kebab here... I am kinda tired of seeing that again and again
<blazes816>
RubyRails: perhaps looking into SideKiq or Resque
<apeiros_>
if you access shared resources, then there's some additional precautions to take, if you want to know about exceptions in the thread, there's some stuff to do too
<atmosx>
shevy: yeah that's not what I had in mind. Greek gyros is more tasty anyway, although they are similar.. I'm talking about coocked proper turkish food. Ever been to Turkey?
Araxia has quit [Read error: No route to host]
Araxia has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
Araxia_ has joined #ruby
<shevy>
atmosx yes, twice, west coast. we had food in the hotel though, not sure how much it was typical of cuisine in turkiye... I always ate either rice, or some caramel pudding
skcin7 has joined #ruby
ebobby has joined #ruby
<shevy>
atmosx I've been in kreta 8 years ago, don't remember eating anything special however :)
ngoldman has joined #ruby
rmillerx has joined #ruby
Juul has quit [Ping timeout: 260 seconds]
g-ram has quit [Quit: Computer has gone to sleep.]
RubyRails has left #ruby [#ruby]
rakl has quit [Quit: sleeping]
awarner has joined #ruby
pskosinski has joined #ruby
<atmosx>
shevy: r u pedantic with food? I mean you taste new staff or just stick to what you know? :-)
<shevy>
atmosx I tend to usually stick to what I know. but I taste new things too
<shevy>
I got more and more limited in what I can try though
g-ram has joined #ruby
g-ram has quit [Client Quit]
<atmosx>
I see
<blazes816>
shevy are you lactose intolerant?
<atmosx>
I need to write this SQLite3 handler class and I'm so bored beecause I've written a similar one a couple of weeks ago
<blazes816>
subclass that bitch and take a break
<shevy>
blazes816 hmm thankfully not
<blazes816>
that's good
<atmosx>
blazes816: not sure if it's possible, but for sure large chunks of code are already there
Araxia_ has quit [Read error: Connection reset by peer]
_alejandro has quit [Remote host closed the connection]
Araxia has joined #ruby
_alejandro has joined #ruby
nicoulaj has quit [Read error: Connection reset by peer]
nicoulaj has joined #ruby
icooba has joined #ruby
Takehiro has joined #ruby
akem has quit [Ping timeout: 248 seconds]
rakl has joined #ruby
_alejandro has quit [Ping timeout: 244 seconds]
Blacksignals has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
jcaudle has quit [Quit: jcaudle]
dhruvasagar has quit [Ping timeout: 248 seconds]
Synthead has quit [Quit: p33 ba115]
sailias has quit [Quit: Leaving.]
carloslopes has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
Ripp__ has joined #ruby
slainer68 has joined #ruby
<mr-rich>
quick question: can I incriment a var by doing var++?
asobrasil has left #ruby [#ruby]
<burgestrand>
mr-rich: no
<mr-rich>
burgestrand: var += 1?
<burgestrand>
mr-rich: yes
<mr-rich>
burgestrand: ty
<burgestrand>
mr-rich: yw
Tombar has joined #ruby
skcin7 has quit [Quit: Computer has gone to sleep.]
Beoran_ has quit [Read error: Operation timed out]
krisbulman has joined #ruby
Ripp__ has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
codecaster has left #ruby [#ruby]
skcin7 has joined #ruby
Araxia_ has joined #ruby
chussenot has joined #ruby
Araxia has quit [Ping timeout: 240 seconds]
krz has quit [Quit: krz]
Araxia_ is now known as Araxia
chussenot has quit [Client Quit]
carlyle has quit [Remote host closed the connection]
Slivka has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 245 seconds]
crunk has quit [Quit: crunk]
Slivka has joined #ruby
Experium has joined #ruby
<Experium>
Hey dude are you looking for a free working game designer who wants pay if the game succeeds and I only want a fair share of money okay which I can garentee it will more then ever suceed I have 59 basic game ideas and 1 60 page game idea book and able to start a new idea up for any genre and make the game spectacular I mean it if you give me a chance. you need to sign a contract tho before I hand over any game ideas
Araxia has quit [Read error: No route to host]
Araxia has joined #ruby
pu22l3r has quit [Ping timeout: 255 seconds]
pu22l3r has joined #ruby
armenb has joined #ruby
BadProphet has quit [Ping timeout: 265 seconds]
<apeiros_>
elliottcable: isn't it just the args after the code?