<matti>
benlieb: Either bad C code or gcc/$CC is strict/broken.
bradhe has quit [Remote host closed the connection]
<matti>
benlieb: What platform?
g0bl1n has quit [Ping timeout: 252 seconds]
apeiros has quit [Remote host closed the connection]
<benlieb>
mac 10.8.5
mgberlin has quit [Ping timeout: 246 seconds]
mgberlin_ is now known as mgberlin
apeiros has joined #ruby
<benlieb>
I think it might be a ruby version issue. Installing RedCloth 4.0.2 fails
apeiros has quit [Read error: Connection reset by peer]
<benlieb>
but 4.2.9 succeeds
vlad_starkov has quit [Read error: Connection reset by peer]
Thanatermesis has quit [Ping timeout: 256 seconds]
<benlieb>
I'm porting an old rails app (2.1.1) to rails 4.0.2, and I want to use all of the old gems where possible without upgrading initially, just to minimize problems.
wald0 has quit [Ping timeout: 265 seconds]
<matti>
benlieb: That would rather indicate that RC 4.2.9 is fixed.
mansi has joined #ruby
blackratdog has joined #ruby
<benlieb>
matti: several versions of RedCloth failed to install.
mneorr has quit [Remote host closed the connection]
<benlieb>
I'm using ruby 2.0.0, so maybe they weren't ready for that...
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Liothen has quit [Quit: System of a down……]
wald0 has joined #ruby
mneorr has joined #ruby
<matti>
Ah.
<matti>
Sorry.
<matti>
I see what they've done.
<matti>
benlieb: It is API differnce.
g0bl1n has joined #ruby
<matti>
benlieb: It can be easily fixed.
blackratdog has quit [Client Quit]
<matti>
benlieb: Do you want a patch?
simoz3 has quit [Ping timeout: 246 seconds]
<benlieb>
matti: do I need one?
michaeldeol has joined #ruby
<matti>
For 2.x yes.
<matti>
With 4.0.2
<matti>
That uses older things.
sawtooth has joined #ruby
<matti>
Unless newer version works for you ;]
batchitcray has quit [Ping timeout: 245 seconds]
mikeg has quit [Remote host closed the connection]
<benlieb>
Do you think the RC 4.2.9 won't work where 4.0.1 did?
<benlieb>
I don't really know.
<benlieb>
I guess I'll see.
Duckily has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
<matti>
;]
whysosad has quit [Ping timeout: 250 seconds]
KmartSqrl has joined #ruby
mneorr has quit [Ping timeout: 245 seconds]
nobitanobi has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
kevind has quit [Quit: kevind]
simoz3 has joined #ruby
jamesaanderson has joined #ruby
cameronbarton has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
michaeldeol has quit [Ping timeout: 272 seconds]
jamesaanderson has joined #ruby
wald0 has quit [Ping timeout: 260 seconds]
baroquebobcat has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
okinomo has joined #ruby
wald0 has joined #ruby
mikepack has joined #ruby
sailias has joined #ruby
jojo5 has joined #ruby
dhruvasagar has joined #ruby
<jojo5>
Hey, is there anyone here?
<matti>
Ye
goleldar has quit [Remote host closed the connection]
duggiefresh has joined #ruby
klaut has quit [Remote host closed the connection]
<jojo5>
Hey, so, I am currently in the process of self teaching myself ruby programming. Already made a gem and a small program on my own. However, I was curious if anyone had any advice on self learning.
goleldar has joined #ruby
<jojo5>
Anyone done it and got good enough to even get a job?
h0rrorvacui has quit [Quit: Leaving]
<pushp0p>
jojo5: yes
<pushp0p>
sort of easy to get a job with rails
wald0 has quit [Read error: Connection reset by peer]
drumusician has quit [Ping timeout: 252 seconds]
<matti>
I think majority of self-taught people are in the industry
<pushp0p>
learn some computer science while you're at it
<jojo5>
pushp0p: I am eventually going into that, learning rails.
allaire has quit []
<pushp0p>
it's not that hard to get a job if you really, really try hard
<jojo5>
Are people cool with helping on here too if I have questions on a project I'm working on too. If I got stuck on part of a program for example?
djdarkbeat has joined #ruby
p4d4w4n has quit [Quit: This computer has gone to sleep]
Thanatermesis has joined #ruby
mlpinit_ has quit [Remote host closed the connection]
<jojo5>
Guess not ;).
goleldar has quit [Ping timeout: 260 seconds]
wald0 has joined #ruby
aroop has quit [Ping timeout: 240 seconds]
wc- has quit [Quit: wc-]
rootshift has joined #ruby
juarlex has quit []
jgrevich has joined #ruby
peregrine81 has quit []
<jojo5>
Anyhow, anyone have ideas of where to go if I needed help?
sevenseacat has joined #ruby
<jojo5>
AKA, I don't have teachers or a college professor to go to for help if I get lost for example.
marr has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Remote host closed the connection]
anomaly_ has quit [Read error: Connection reset by peer]
jojo5 has quit [Quit: Page closed]
VTLob has quit [Quit: VTLob]
<benlieb>
jojo5: this is a fine place for help when you need it.
<endash>
hrm what does `,=` mean
<benlieb>
but since people are busy, they expect you to have googled it first
<benlieb>
or maybe searched stack overflow
anomaly_ has joined #ruby
Thanatermesis has quit [Ping timeout: 252 seconds]
wald0 has quit [Ping timeout: 252 seconds]
<benlieb>
and after that, ask a SPECIFIC question. No need to ask if you can ask a question
<benlieb>
and don't piss anyone off :) which is surprisingly easy for some folks around these parts :)
mgberlin has quit [Quit: mgberlin]
wald0 has joined #ruby
goleldar has joined #ruby
<benlieb>
also hang out in RubyOnRails, people give plenty of help
<endash>
ah it's equiv to = blah.first
chrisja has quit [Quit: leaving]
spyderman4g63 has quit []
<benlieb>
jojo5 left the chatroom. before waiting for a response. Already PISSED ME OFF>
KmartSqrl has quit []
<endash>
haha
robustus has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
robustus|Off has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<bricker>
I guess if all you have to work with is numbers, the way they do it makes most sense
ewnd9 has joined #ruby
DropsOfSerenity has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pel_daniel has left #ruby [#ruby]
psyl0n has quit [Remote host closed the connection]
osvico has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
heidi has quit [Quit: Leaving.]
hellome has quit [Remote host closed the connection]
<benlieb>
bricker: I agree that's weird
<benlieb>
seems like an array would be better
batchitcray has joined #ruby
hellome has joined #ruby
xcv has quit [Remote host closed the connection]
tjbiddle has quit [Ping timeout: 272 seconds]
<bricker>
benlieb: how would that look? (if you had it your way)
ffranz has joined #ruby
Bira has joined #ruby
<benlieb>
bricker: never need to use this, but it seems like the only info they are giving you with the number method is the number of required args, and if the method has a variable number of args.
reach has quit [Read error: Connection reset by peer]
<benlieb>
so why not [3,true]
mojjojo has quit [Quit: mojjojo]
akonny has quit [Quit: akonny]
djdarkbeat has quit [Quit: djdarkbeat]
mercwithamouth has joined #ruby
<benlieb>
but I'm sure there's a good reason :)
Konst2 has joined #ruby
Konst has quit [Ping timeout: 245 seconds]
<benlieb>
I don't write programming languages, I just use them :)
thirdeye has joined #ruby
r0bby_ has quit [Ping timeout: 245 seconds]
lewix has joined #ruby
r0bby_ has joined #ruby
fedesilva has joined #ruby
wald0 has quit [Ping timeout: 272 seconds]
hellome has quit [Read error: Connection reset by peer]
hellome has joined #ruby
DeProdigy has quit [Ping timeout: 260 seconds]
blackmes1 has quit [Ping timeout: 240 seconds]
wald0 has joined #ruby
timonv has joined #ruby
mdpatrick has joined #ruby
Jdubs has quit [Remote host closed the connection]
kobain has quit [Remote host closed the connection]
danman has joined #ruby
tkuchiki has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
bogeyd6 has joined #ruby
mikepack has quit [Remote host closed the connection]
wald0 has quit [Ping timeout: 265 seconds]
peregrine81 has joined #ruby
jrhorn424 is now known as zz_jrhorn424
fedesilva has quit [Remote host closed the connection]
CpuID has quit [Quit: This computer has gone to sleep]
tylersmith has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby
rootshift has quit [Quit: rootshift]
nobitanobi has joined #ruby
mneorr has joined #ruby
duggiefresh has quit [Remote host closed the connection]
xcv has joined #ruby
tylersmith has quit [Remote host closed the connection]
nobitanobi is now known as asdasdsad
asdasdsad is now known as nobitanobi
maletor has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby
ewnd9 has quit [Ping timeout: 272 seconds]
mercwithamouth has quit [Ping timeout: 250 seconds]
doodlehaus has joined #ruby
fedesilva has joined #ruby
fgo has joined #ruby
fijimunkii has joined #ruby
fandikurnia01 has joined #ruby
fedesilva has quit [Remote host closed the connection]
snath has quit [Ping timeout: 240 seconds]
Voodoofish430 has quit [Quit: Leaving.]
wc- has joined #ruby
gazarsgo has joined #ruby
gdoteof has joined #ruby
ephemerian has quit [Quit: Leaving.]
fedesilva has joined #ruby
<gdoteof>
anyone use compass? i am not super familiar with ruby; and am not sure how the paths work. http://compass-recipes.moox.fr/#quickstart <-- im following this 'guide' and everytime time i try and do an @import in my sass i get a missing file
fedesilva has quit [Remote host closed the connection]
gazarsgo has left #ruby [#ruby]
<gdoteof>
i have confimed that the 'recipes' i am attempting to use are in /var/lib/gems/1.9.1/gems/compass-recipes-0.3.0/stylesheets/recipes/
<gdoteof>
but it appears they aren't actually looking there
fedesilva has joined #ruby
jonahR has joined #ruby
fedesilva has quit [Remote host closed the connection]
zeade has quit [Quit: Leaving.]
nanoyak has quit [Quit: Computer has gone to sleep.]
bigoldrock has quit [Ping timeout: 272 seconds]
lmickh has quit [Quit: lmickh]
michaeldeol has joined #ruby
nhunzaker has joined #ruby
volty has quit [Quit: Konversation terminated!]
falood has joined #ruby
benlieb has quit [Quit: benlieb]
Zesty has joined #ruby
jonahR has quit [Quit: jonahR]
benlieb has joined #ruby
DropsOfSerenity has joined #ruby
hakunin has joined #ruby
coca_rails has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
Markvilla has joined #ruby
ambushsabre has quit [Remote host closed the connection]
maletor has joined #ruby
KS has joined #ruby
L8D has joined #ruby
mercwithamouth has joined #ruby
frankperez87 has joined #ruby
s2013 has joined #ruby
skiddex2 has joined #ruby
<frankperez87>
Hi everyone. How can i have 1 thing looping non stop, while having another part of the script still respond to user input or other actions. The idea is to have a piece of information that can change each second get updated while at the same time being able to interact with the program. This is a terminal program btw.
<jojo9>
But, long of the short, if I want to do something like this "john" and change it to "ohnj", I would have to find a way to manually do that myself?
existensil has quit [Quit: leaving]
<jojo9>
I figure there may be a useful thing in ruby docs that did this, but maybe not.
mary5030 has quit [Remote host closed the connection]
fedesilva has quit [Remote host closed the connection]
s2013 has quit [Ping timeout: 250 seconds]
<frankperez87>
Looks like I can use threads to run multiple things concurrently. Is there a way in ruby for cli applications to only have the data replace a line of text. What im doing is looping through the results of my memory usage, and writing it to the screen. I want it to just overwrite the 1 line of results instead of returning a new line each time.
preller has quit [Ping timeout: 272 seconds]
Emmanuel_Chanel has quit [Ping timeout: 250 seconds]
osvico has quit [Ping timeout: 246 seconds]
Konst2 has quit [Ping timeout: 246 seconds]
psyl0n has quit [Ping timeout: 265 seconds]
simoz3 has quit [Ping timeout: 272 seconds]
Emmanuel_Chanel has joined #ruby
benlieb has quit [Quit: benlieb]
xcv has quit [Remote host closed the connection]
<Jamo>
jojo9: afaik, you need to make it yourself
CpuID has quit [Quit: This computer has gone to sleep]
<jojo9>
Jamo: I found a way you can do it. You use gsub.
xcv has joined #ruby
pu22l3r has joined #ruby
<Jamo>
ok. great
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
h0rrorvacui has joined #ruby
gdoteof has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
reach has joined #ruby
mosscollum has joined #ruby
<jojo9>
Jamo: I found this in stack, but I don't understand what it is doing, can you help explain?: mystring.gsub(/^([a-z]+)-(\w+)/, '\2(\1)')
ambushsabre has joined #ruby
<Jamo>
intresting solution, it basically uses regular expressions to switch places
norm has quit [Ping timeout: 245 seconds]
<jojo9>
Yeah, I really don't understand regular expressions very well :/.
freggles has quit [Remote host closed the connection]
<Jamo>
umm
<jojo9>
I think that is the problem.
<jojo9>
Although, I tried it in irb, and I don't think it works.
xcv has quit [Ping timeout: 260 seconds]
<Jamo>
oh now I understand
<Jamo>
that regex turns string like "hello-world" to "world(hello)"
RTG` has quit [Read error: Connection reset by peer]
RTG` has joined #ruby
<jojo9>
Oh, I think I have a better, easier solution
<Jamo>
^([a-z]+) looks for string containing only letters a-z
<jojo9>
Jamo: I meant, do you know a good website that explains regular expressions?
<jojo9>
That is why I avoided it in my solution :P.
<jojo9>
I need to work through that tutorial though.
<jojo9>
It looks really helpful.
<jojo9>
Its completely foreign to me right now.
<jojo9>
It gets used to many times and is evidently really useful too, so I need to learn it too though it seems.
DeProdigy has quit [Ping timeout: 246 seconds]
gja has joined #ruby
_bart has joined #ruby
Jdubs has quit [Remote host closed the connection]
danshultz has joined #ruby
varfoo has joined #ruby
batchitcray has quit [Ping timeout: 250 seconds]
mordocai_ has quit [Quit: Page closed]
mneorr has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
timonv has joined #ruby
jkhwan has quit [Remote host closed the connection]
Megtastique has quit []
io_syl has quit []
carif has quit [Quit: Ex-Chat]
havenwood has quit [Remote host closed the connection]
cjsarette has joined #ruby
havenwood has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
g0bl1n has quit [Ping timeout: 260 seconds]
timonv has quit [Ping timeout: 252 seconds]
frozzenfire has joined #ruby
nettoweb has joined #ruby
osvico has joined #ruby
KS has quit [Quit: leaving]
mercwithamouth has quit [Ping timeout: 265 seconds]
<frozzenfire>
Hello everyone, I am having a lot of difficulties here installing RVM on my mac. Could someone help please? I am learning how to code in Ruby on Rails and I'm stuck at the setup itself... http://hastebin.com/coyetatobe.vhdl
fijimunkii has quit [Ping timeout: 246 seconds]
fgo has joined #ruby
jkhwan has joined #ruby
jkhwan has quit [Client Quit]
taion809 has quit [Quit: No Ping reply in 180 seconds.]
jojo9 has quit [Quit: Page closed]
reach has quit [Remote host closed the connection]
taion809 has joined #ruby
<bnagy>
both #rvm and #rubyonrails have dedicated channels
frozzenfire has left #ruby [#ruby]
dodosan has joined #ruby
jkhwan has joined #ruby
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
<sevenseacat>
so he went straight to #rubyonrails and then they sent him straight to #rvm
reach has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
nettoweb has quit [Quit: nettoweb]
<bnagy>
\o/
fgo has quit [Ping timeout: 246 seconds]
Bira has quit []
araujo has quit [Quit: Leaving]
marcgg has joined #ruby
<platzhirsch>
It's not possible to get the name of a local variable as a string, isn't it?
vlad_starkov has joined #ruby
dodosan has quit [Remote host closed the connection]
<RubyPanther>
platzhirsch: don't do a nasty eval, do send( var )
Konst has quit [Ping timeout: 245 seconds]
gja has quit [Quit: This computer has gone to sleep]
Andrevan has joined #ruby
simoz3 has quit [Ping timeout: 252 seconds]
blueOxigen has quit [Ping timeout: 245 seconds]
<platzhirsch>
uhh, better
<platzhirsch>
ah no, I need it for the local variable
<platzhirsch>
send only works on methods
bluOxigen has joined #ruby
coldmethod has quit [Ping timeout: 240 seconds]
saarinen has quit [Quit: saarinen]
digital-ghost has quit [Remote host closed the connection]
d45h has joined #ruby
<RubyPanther>
so why don't you have an accessor? add one
preller has quit [Ping timeout: 246 seconds]
<platzhirsch>
RubyPanther: I want to turn method arguments into a hash where the key is the method argument name and the value the actual argument value
sensen has joined #ruby
<RubyPanther>
you're killing kittens, you're going to destroy the internet
okinomo has joined #ruby
<platzhirsch>
I don't care, to hell with them
<RubyPanther>
platzhirsch: Right, so there is no reason to need locals
jonr22 has quit [Remote host closed the connection]
simoz4 has quit [Ping timeout: 250 seconds]
jonr22 has joined #ruby
<rjhunter>
surely there is a happier way to achieve what you're doing
_bart has quit [Remote host closed the connection]
<platzhirsch>
well I am simply wrapping that whole call into a method so it does not clutter up my view file
d45h has quit [Ping timeout: 250 seconds]
coldmethod has joined #ruby
jonr22_ has joined #ruby
<platzhirsch>
cause render partial: 'shared/dropdown_menu', locals: { changer: @repositories, entities: @repository.snapshots, display: @metric } starts to get too long
jonr22 has quit [Read error: Connection reset by peer]
<platzhirsch>
although... it's a lot more readable, ah stone the crows then it takes two..three lines, who cares
mercwithamouth has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
preller has joined #ruby
michaeldeol has joined #ruby
coca_rails has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
robbyoconnor has joined #ruby
caveat- has quit [Ping timeout: 245 seconds]
jonr22_ has quit [Remote host closed the connection]
mootpointer has joined #ruby
batchitcray has joined #ruby
jonr22 has joined #ruby
skulker has quit [Remote host closed the connection]
lmickh has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
caveat- has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
michaeldeol has quit [Ping timeout: 250 seconds]
lewix has quit [Remote host closed the connection]
Jetchisel has quit [Ping timeout: 260 seconds]
ttlnowz has joined #ruby
bnjamin has joined #ruby
zeade has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.4.1]
fgo has joined #ruby
jonr22 has quit [Ping timeout: 252 seconds]
hadees has quit [Quit: hadees]
jonathanwallace has joined #ruby
browndawg has joined #ruby
maletor has joined #ruby
fijimunkii has joined #ruby
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
maletor has quit [Client Quit]
radic has quit [Disconnected by services]
radic_ has joined #ruby
bigoldrock1 has joined #ruby
<platzhirsch>
so I guess it's friends don't let friends use eval?
jonahR has joined #ruby
Konst has joined #ruby
jonathanwallace has quit [Ping timeout: 260 seconds]
<RubyPanther>
and "#send means never having to say eval STRING"
kayloos has joined #ruby
danshultz has quit [Ping timeout: 245 seconds]
DeProdigy has joined #ruby
kcombs has quit [Ping timeout: 246 seconds]
<platzhirsch>
RubyPanther: well of course, who would use eval if you use send, but it was not applicable in this case
<platzhirsch>
if you can use send*
lmickh has quit [Quit: lmickh]
thirdeye has quit [Remote host closed the connection]
peregrine81 has quit []
Spami has quit [Quit: This computer has gone to sleep]
thirdeye has joined #ruby
juarlex has quit [Remote host closed the connection]
gianlucadv has joined #ruby
coca_rails has quit [Read error: Connection reset by peer]
k00000 has joined #ruby
bigoldrock1 has quit [Ping timeout: 245 seconds]
lyanchih has quit [Quit: lyanchih]
DeProdigy has quit [Ping timeout: 250 seconds]
pu22l3r has joined #ruby
k00000 is now known as mt_thor
<RubyPanther>
platzhirsch: my point was, send covers the use cases where you would otherwise need eval. In this case you're right, you don't need either.
<platzhirsch>
=P
<platzhirsch>
RubyPanther: do you have any legitimate use cases for eval
thirdeye has quit [Ping timeout: 252 seconds]
hiyosi_ has quit [Read error: Operation timed out]
sailias has quit [Ping timeout: 260 seconds]
braincrash has quit [Quit: bye bye]
Jetchisel has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<RubyPanther>
platzhirsch: some sort of interpreter front end where the data is actually code that isn't stored somewhere
<platzhirsch>
yeah, thought so
<RubyPanther>
we can do all of our metaprogramming tricks without it
anomaly_ has quit [Read error: Connection reset by peer]
noop has joined #ruby
dukz has quit [Remote host closed the connection]
anomaly_ has joined #ruby
ppppaul has joined #ruby
hiyosi_ has quit [Ping timeout: 260 seconds]
michaeldeol has left #ruby [#ruby]
dev__ has quit [Ping timeout: 250 seconds]
dukz has joined #ruby
LexicalScope has joined #ruby
preller has quit [Ping timeout: 252 seconds]
kevinykchan has joined #ruby
charliesome has joined #ruby
bnjamin has joined #ruby
tagrudev has joined #ruby
kevinykchan has quit [Client Quit]
preller has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
kevinykchan has joined #ruby
Mon_Ouie has joined #ruby
nomenkun has joined #ruby
ehc has quit [Quit: ehc]
wc- has quit [Quit: wc-]
dhruvasagar has quit [Read error: Connection reset by peer]
nomenkun has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
bricker`LA has joined #ruby
simoz7 has quit [Ping timeout: 252 seconds]
skulker has joined #ruby
viuo has joined #ruby
viuo has quit [Client Quit]
scruple has joined #ruby
Xeago has quit [Remote host closed the connection]
freerobby has joined #ruby
<platzhirsch>
Any shorter way to get the array out of another array where all other elements are different than [:a, [], 5].select { |i| i.is_a?(Array) }.first
coldmethod has quit [Remote host closed the connection]
Konst has quit [Ping timeout: 245 seconds]
browndawg has quit [Quit: Leaving.]
existensil has joined #ruby
skulker has quit [Ping timeout: 246 seconds]
bnjamin_ has joined #ruby
bnjamin has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
freerobby has quit [Ping timeout: 245 seconds]
<Mon_Ouie>
I don't know what yo mean by "where all other elements are different", but select { … }.first is like Enumerable#find
jonr22 has joined #ruby
tylershipe has quit [Read error: Connection reset by peer]
tylershipe has joined #ruby
<existensil>
just discovered there are 4 different built-in databases in the ruby stdlib. 3 of them are different implementations of DBM. weird.
dhruvasagar has quit [Read error: Connection reset by peer]
scruple has quit [Quit: leaving]
Mon_Ouie has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
dukz has quit [Remote host closed the connection]
Konst has joined #ruby
batchitcray has quit [Quit: Lost terminal]
jezen has joined #ruby
parduse is now known as Guest31008
Guest31008 has quit [Killed (calvino.freenode.net (Nickname regained by services))]
parduse has joined #ruby
timonv has quit [Remote host closed the connection]
Arzaga has joined #ruby
mootpointer has joined #ruby
scruple has joined #ruby
pranny has quit [Read error: Connection reset by peer]
Nogbit has joined #ruby
tylershipe has quit [Read error: Connection reset by peer]
scruple has quit [Client Quit]
tylershipe has joined #ruby
aagdbl1 has joined #ruby
okinomo has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
Gonzih has joined #ruby
saarinen has joined #ruby
jprovazn has joined #ruby
saarinen has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
thesheff17 has quit [Ping timeout: 246 seconds]
larissa has quit [Quit: Leaving]
dukz has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dukz has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
d45h has joined #ruby
dukz has joined #ruby
aagdbl1 has quit [Quit: Leaving.]
akonny has joined #ruby
Lewix_ has joined #ruby
Underbyte has quit [Read error: Connection reset by peer]
hiyosi_ has joined #ruby
Underbyte has joined #ruby
<pipecloud>
existensil: I'm a fan of SDBM.
mootpointer has quit [Quit: ENOCAFFEINE.]
w1xz has joined #ruby
browndawg has joined #ruby
jaredrhine has quit [Read error: Operation timed out]
amacgregor has joined #ruby
amritanshu_RnD has joined #ruby
<pipecloud>
existensil: I know DBM, GDBM, and SDBM. What's the other?
hiyosi_ has quit [Ping timeout: 246 seconds]
amacgregor__ has quit [Ping timeout: 246 seconds]
mburns has quit [Ping timeout: 272 seconds]
zz_N00D is now known as CripperZ
platzhirsch has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Quit: leaving]
dhruvasagar has joined #ruby
CripperZ is now known as N00D
charliesome has joined #ruby
io_syl has quit []
aagdbl1 has joined #ruby
aagdbl has quit [Disconnected by services]
aagdbl1 is now known as aagdbl
iliketur_ has joined #ruby
_5kg has quit [Ping timeout: 246 seconds]
_5kg has joined #ruby
djdb has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
shevy has quit [Ping timeout: 245 seconds]
amundj has joined #ruby
w4pm has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
akonny has quit [Quit: akonny]
LexicalScope has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
tylershipe has quit [Read error: Connection reset by peer]
tylershipe has joined #ruby
aryaching has quit []
yugui is now known as yugui_zzz
flubba has quit [Remote host closed the connection]
dhruvasagar has quit [Client Quit]
dhruvasagar has joined #ruby
flubba has joined #ruby
w4pm has quit [Ping timeout: 272 seconds]
jaredrhine has joined #ruby
mburns has joined #ruby
skulker has joined #ruby
coca_rails has joined #ruby
preller has quit [Ping timeout: 272 seconds]
flubba has quit [Ping timeout: 250 seconds]
dh64 has joined #ruby
buzzybron has joined #ruby
<buzzybron>
how should i name my classes? in camel case or in seperated with underscore?
yfeldblum has quit [Read error: Connection reset by peer]
<buzzybron>
say This_Is_A_Class or ThisIsAClass ?
buzzybron has left #ruby [#ruby]
buzzybron has joined #ruby
dagobah has joined #ruby
yfeldblum has joined #ruby
andikr has joined #ruby
<sevenseacat>
latter
<kostine>
buzzybron: camel case
dhruvasagar has quit [Quit: leaving]
<kostine>
file name would be this_is_a_class.rb
jezen has quit [Remote host closed the connection]
skulker has quit [Ping timeout: 245 seconds]
pwestlund_away is now known as pwestlund
coca_rails has quit [Ping timeout: 245 seconds]
<buzzybron>
no underscores?
shevy has joined #ruby
<buzzybron>
so class name is using camel case and then file name small case with underscore
<buzzybron>
is that right?
Arzaga has quit [Remote host closed the connection]
<lewix>
yes
preller has joined #ruby
dhruvasagar has joined #ruby
vlad_starkov has joined #ruby
freerobby has joined #ruby
<buzzybron>
arigato!
gja has joined #ruby
blo has quit [Ping timeout: 240 seconds]
amacgregor_ has joined #ruby
Xeago has joined #ruby
amacgregor_ has quit [Read error: Connection reset by peer]
preller has quit [Ping timeout: 260 seconds]
amacgregor_ has joined #ruby
freerobby has quit [Ping timeout: 272 seconds]
amacgregor has quit [Read error: Connection reset by peer]
<bricker`LA>
I have an array of objects, and the objects have their `eql?` and `==` method defined so that if they have the same ID and same class then they're considered equal. How do I get `uniq` to honor this? Documentation says "It compares values using their hash and eql? methods for efficiency.", so I guess I'm missing something regarding the "hash" bit
blo has joined #ruby
noname001__ has joined #ruby
lsmola has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
preller has joined #ruby
phipes has quit [Remote host closed the connection]
<lewix>
bricker`LA: you can still use uniq with a block
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
phansch_ has joined #ruby
<lewix>
bricker`LA: #hash Compute a hash-code for this hash. Two hashes with the same content will have the same hash code - from the doc so now we know why it's working
Monie has joined #ruby
alup has joined #ruby
hiyosi_ has quit [Ping timeout: 246 seconds]
phansch has quit [Ping timeout: 246 seconds]
shime has joined #ruby
cseader has quit [Ping timeout: 250 seconds]
ephemerian has joined #ruby
weems has joined #ruby
h0rrorvacui has quit [Ping timeout: 245 seconds]
camilasan has joined #ruby
whysosad has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
SeySayux has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 246 seconds]
dfranciosi has joined #ruby
skulker has joined #ruby
SeySayux has joined #ruby
zoee has joined #ruby
mootpointer has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phansch_ is now known as phansch
skulker has quit [Ping timeout: 252 seconds]
carraroj has quit [Ping timeout: 250 seconds]
coca_rails has joined #ruby
rootshift has joined #ruby
seoNinjaWarrior has quit [Ping timeout: 264 seconds]
camilasan has quit []
jonr22 has joined #ruby
mootpointer has quit [Quit: ENOCAFFEINE.]
joaoh82 has quit [Remote host closed the connection]
nvrch has joined #ruby
michael_lee has quit [Quit: Ex-Chat]
obs has joined #ruby
ace_striker has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
olivier_bK has joined #ruby
Inoperable has left #ruby ["rectified"]
jonr22 has quit [Ping timeout: 272 seconds]
Markvilla has joined #ruby
anomaly_ has quit [Read error: Connection reset by peer]
Inoperable has joined #ruby
freerobby has joined #ruby
anomaly_ has joined #ruby
wiiikiii has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
freerobby1 has joined #ruby
carraroj has joined #ruby
_Andres has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
marr has joined #ruby
msuszczy has joined #ruby
Markvilla has quit [Read error: Connection reset by peer]
drumusician has joined #ruby
SirCmpwn has joined #ruby
wiiikiii has quit [Remote host closed the connection]
funburn has joined #ruby
<SirCmpwn>
I don't know much about ruby, but I'm trying to deploy a rails app on arch linux
<SirCmpwn>
I installed the rails gem, but I can't figure out where the 'cap' command comes from
<SirCmpwn>
as far as I can tell, it's used for deployment, right?
<lewix>
apeiros: I thought that 1_000_000 meant something, that's why I asked
<apeiros>
lewix: yes, it means one million
<lewix>
apeiros: what about the '_'
shime has joined #ruby
<apeiros>
you can write 100 as 1_0_0. ruby ignores single underscores in integers.
<lewix>
ah
<lewix>
good to know
<lewix>
thanks
<apeiros>
indeed. makes large integers much easier to read
hiyosi_ has joined #ruby
<robertjpayne>
apeiros: thanks missed the & when passing it to map
skulker has joined #ruby
lyanchih has quit [Read error: Operation timed out]
akonny has joined #ruby
p4d4w4n has quit [Quit: This computer has gone to sleep]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
hiyosi_ has quit [Ping timeout: 260 seconds]
<lewix>
apeiros: also, i believe that Array.new(N) {} creates an array with N elements in it, pass the index of each element to the block then populate the array with the return values of the block
skulker has quit [Ping timeout: 250 seconds]
icedp has quit [Quit: _]
kitak has quit [Remote host closed the connection]
gianlucadv has joined #ruby
sensen_ has quit [Quit: leaving]
ahawkins_ has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
ahawkins has quit [Read error: Operation timed out]
jonr22 has joined #ruby
Konst has joined #ruby
mojjojo has joined #ruby
zarul has quit [Ping timeout: 248 seconds]
carraroj has joined #ruby
zarul has joined #ruby
zarul has quit [Changing host]
zarul has joined #ruby
nari has quit [Ping timeout: 245 seconds]
blackmes1 has quit [Ping timeout: 240 seconds]
h_kon has joined #ruby
jonr22 has quit [Ping timeout: 246 seconds]
klaut has quit [Remote host closed the connection]
zoee has quit [Quit: This computer has gone to sleep]
mengu has joined #ruby
<GreatSUN>
lewix: you believe or you know?
<GreatSUN>
:D
gja has joined #ruby
<lewix>
GreatSUN: I was being polite
<lewix>
smh
icedp has joined #ruby
<GreatSUN>
lewix: you think someone can learn something if you are polite?
amacgregor has quit [Ping timeout: 246 seconds]
BizarreCake has quit [Read error: Connection reset by peer]
<shevy>
GreatSUN he just doesnt wanna get kick-banned!!!
<GreatSUN>
shevy: whooohooo :D
<lewix>
shevy: like I care
colonolGron has joined #ruby
<lewix>
=)
bluenemo has joined #ruby
cbetta is now known as cbetta_afk
<shevy>
I actually did not know that 1_0_0 is valid
<lewix>
is it so hard to believe that polite people still exist out there
<GreatSUN>
lewix: you care else you just say luser :D
<shevy>
the pickaxe only mentioned things like 100_000 for "better to read" :(
<shevy>
easier to read, rather
<shevy>
lewix yeah
p4d4w4n has joined #ruby
<workmad3>
lewix: fuck yeah... :P
<shevy>
:)
<lewix>
shevy: yea it could come in handy
<GreatSUN>
lewix: to be polite is not always nice
<shevy>
we'd need like a mix of "learn to program", and the pickaxe book, all online... being the official ruby documentation!
<lewix>
GreatSUN: rub me the wrong way, and maybe you'll see my other face
<GreatSUN>
lewix: sometimes you just need to tell the truth instead of being polite, cause elsewise people stuck with the shit they are in
okinomo has joined #ruby
* shevy
rubs lewix's little toe counter-clockwise
<shevy>
hey GreatSUN
Fire-Dragon-DoL has joined #ruby
<GreatSUN>
lewix: no, thanks, my wife would show me a finger before :D
<shevy>
be impolite now if you dare to :D
<shevy>
omg... manhandled by his wife...
<GreatSUN>
shevy: that "learn to program" sounds good
<GreatSUN>
shevy: maybe I can offer some content
<shevy>
it was nice, but it's like... 10 years old now
<shevy>
we have like ruby 2.1 now
<shevy>
not me cuz I am still on 1.9.x but everyone else has it now
<GreatSUN>
<-- is too old :-(
<shevy>
GreatSUN yeah, something a bit like a wiki... collaborative editing
<GreatSUN>
shevy: I have to work with 1.8.7, too
vlad_starkov has quit [Read error: Connection reset by peer]
<shevy>
1.8.x was awesome
<GreatSUN>
I'd like to work with 2.1, but there is no offer...
<shevy>
what do you mean, an offer?
joaoh82 has quit [Remote host closed the connection]
<GreatSUN>
shevy: I am just a programmer who has to program stuff with the environment others give him to work with
<GreatSUN>
they don't ask me what would be best
freerobby has joined #ruby
<shevy>
ah I see
joaoh82_ has joined #ruby
<GreatSUN>
LUNCH
<GreatSUN>
bbl
mojjojo has quit [Quit: mojjojo]
h_kon has quit [Remote host closed the connection]
ahawkins_ has quit [Read error: Connection reset by peer]
predator117 has quit [Ping timeout: 246 seconds]
okinomo has quit [Ping timeout: 246 seconds]
lkba has joined #ruby
freerobby has quit [Read error: Operation timed out]
liamkeily has joined #ruby
camilasan has quit [Remote host closed the connection]
atm1 has joined #ruby
p4d4w4n has quit [Quit: This computer has gone to sleep]
camilasan has joined #ruby
olivier_bK has joined #ruby
bnjamin_ has quit [Remote host closed the connection]
liamkeily has quit [Ping timeout: 246 seconds]
aagdbl has quit [Quit: Leaving.]
eka has joined #ruby
dEPy has quit [Quit: Computer has gone to sleep.]
dross is now known as rbot
dEPy has joined #ruby
rbot is now known as dross
kraljev2 has quit [Ping timeout: 246 seconds]
mojjojo has joined #ruby
joaoh82_ has quit [Remote host closed the connection]
otero has joined #ruby
banister has joined #ruby
carraroj has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
ixti has joined #ruby
depesz has joined #ruby
dEPy has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
Speed has joined #ruby
<depesz>
hi. how can I split given String into an array, when I want each two characters of original string to become element of array. So "depesz" would become ["de", "pe", "sz"] ?
g0bl1n has joined #ruby
ace_striker has quit [Ping timeout: 272 seconds]
<joshu>
I just installed the latest stable ruby 2.0.0p353 and it came with gem 2.0.14. Is it best practice to update the gem system using gem update --system?
<shevy>
but I do this mostly because I also keep local backups of gems, so I can install ruby stuff when I am offline too
joaoh82 has joined #ruby
<matti>
depesz: Do you even read documentation or use Google? ;]
sayan has quit [Ping timeout: 250 seconds]
lukasz_k has left #ruby [#ruby]
<shevy>
doesn't gem update --system actually updates all gems?
<depesz>
matti: a lot. i tried split, unpack and match.
<matti>
;s
<depesz>
matti: "scan" somehow didn't caught my attention
nari has joined #ruby
ppppaul has quit [Read error: Connection reset by peer]
<joshu>
shevy ah ok. but essentially the ruby version and the gem version are treated as two separate "systems" and keeping them both updated with a stable release is advised?
<joshu>
shevy no idea
<shevy>
yeah they can be different
<joshu>
i thought it just updated the "gem"
kraljev2 has joined #ruby
olivier_bK has quit [Read error: Operation timed out]
<shevy>
dunno myself
<shevy>
all I do with gems is "gem install bla.gem" :D
<kraljev2>
is ist possible to have uninitialized variable in ruby?
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
vlad_sta_ has joined #ruby
_bart has quit []
<shevy>
cool
<shevy>
kraljev2, you see, the ruby parser is a huge cheater
aagdbl has joined #ruby
<shevy>
it's one of the scariest things matz ever created
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
heftig has joined #ruby
skulker has quit [Ping timeout: 245 seconds]
AlSquirrel has joined #ruby
vlad_starkov has quit [Ping timeout: 265 seconds]
fgo has joined #ruby
mrnugget has joined #ruby
<shevy>
there are probably some dead people scattered in its source code
hiyosi_ has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
gja has joined #ruby
SHyx0rmZ has joined #ruby
hiyosi_ has quit [Ping timeout: 246 seconds]
<shevy>
guys, got a quick question
<shevy>
with private, inside a class, I make all subsequent method definitions private
<shevy>
is there something like public too?
<shevy>
like, so that I could add one line of private, the next 10 methods are private, but the very last method in a class would not be private
<jlebrech>
i've got this recursive function that uses nokogiri to check the parents of elements, is there a built in function i should know for doing an ancestor search?
<eval-in_>
workmad3 => private method `foo' called for #<Foo:0x40d7cf40> (NoMethodError) ... (https://eval.in/79104)
mojjojo has quit [Quit: mojjojo]
jonathanwallace has joined #ruby
<workmad3>
shevy: same as with private, and protected, public can either be used on its own to set all subsequent methods to public visibility, or with a set of symbol params to mark just those methods as public
dzan has quit [Ping timeout: 260 seconds]
<shevy>
ok
ewnd9 has joined #ruby
p4d4w4n has joined #ruby
DouweM has joined #ruby
<shevy>
hmm
<shevy>
def foo
<shevy>
end; public :foo
<shevy>
vs
<shevy>
public
<shevy>
def foo # and end on next line
<shevy>
hmmmmm
mklappstuhl has joined #ruby
<workmad3>
shevy: I believe in 2.1 you can even do 'public def foo; end'
<shevy>
whoa
<workmad3>
as 'def' got change to return the name of the newly defined method :)
jarto has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<workmad3>
*changed
<shevy>
aha
<shevy>
def returns something now?
<DouweM>
yup, :method_name
<shevy>
can we then do things like
<workmad3>
in 2.1 MRI anyway
<shevy>
name = def foo; end
<DouweM>
yup
<workmad3>
not sure how rubinius or jruby are handling the change there...
<shevy>
who uses these anyway
<shevy>
:P
<workmad3>
as rubinius always returned something from 'def'... but it's not :method_name :)
flame_ has joined #ruby
<shevy>
why was it changed though?
<workmad3>
because someone suggested that it might make sense? :)
<shevy>
hmm
<shevy>
Hanmac was it you?
<DouweM>
workmad3: what did Rubinius return?
<workmad3>
DouweM: I think it was a rubinius compiled method object
<workmad3>
not certain on that front though... would need to google to check :)
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<DouweM>
yup, Rubinius::CompiledMethod
colonolGron has quit [Quit: leaving]
kostine has joined #ruby
kostine has quit [Client Quit]
ua has joined #ruby
<kraljev2>
is switch to rubinuis seamless
lukasz_k has joined #ruby
<kraljev2>
or do i have to change the code, and to what extent?
skattyadz has left #ruby [#ruby]
<DouweM>
kraljev2: it's supposed to be seamless, but there are some incompatibilities like the Ruby 2.1 `def` return value thing described above
ahegyi has joined #ruby
<Hanmac>
shevy hm no i wasnt but i recomented too
<shevy>
hehehe
splstn has quit [Remote host closed the connection]
vlad_sta_ has quit [Read error: Connection reset by peer]
mklappstuhl has quit [Remote host closed the connection]
stormbytes has quit [Client Quit]
stormbytes has joined #ruby
freerobby has joined #ruby
sayan has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Feuerbach has joined #ruby
falood has quit [Remote host closed the connection]
rootshift has quit [Quit: rootshift]
<Feuerbach>
Is there a simple way to ensure that a splice a[x..y] is empty whenever x>y, even if y is negative? Or do I have to write an if statement for that case?
gja has quit [Quit: This computer has gone to sleep]
vlad_starkov has joined #ruby
freerobby has quit [Ping timeout: 260 seconds]
anderson has quit [Ping timeout: 240 seconds]
toss has joined #ruby
binaryplease has quit [Read error: No route to host]
mikecmpbll has joined #ruby
<toss>
can I migrate ruby on rails website to wordpress?
zoee has joined #ruby
jonr22 has joined #ruby
gja has joined #ruby
mklappstuhl has joined #ruby
mojjojo has joined #ruby
fgo has quit [Remote host closed the connection]
<DouweM>
toss: Rails and Wordpress are not comparable at all, so that's a very weird question
robbyoconnor has quit [Ping timeout: 245 seconds]
gja has quit [Client Quit]
phansch^ has quit [Quit: Leaving]
lewix has quit [Remote host closed the connection]
fgo has joined #ruby
robbyoconnor has joined #ruby
jonahR has quit [Quit: jonahR]
anderson has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
osvico has joined #ruby
yfeldblum has joined #ruby
A124 has quit [Read error: Connection reset by peer]
<Hanmac>
Feuerbach: arnt you looking for a[x,y] or similar?
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
Mon_Ouie has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
klaut has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 246 seconds]
<Feuerbach>
Hanmac: doesn't look like it. e.g. ((1..10).to_a)[2,1] gives me [3]
bnjamin has joined #ruby
gja has quit [Client Quit]
yfeldblum has quit [Ping timeout: 246 seconds]
flame_ has quit [Quit: Computer has gone to sleep.]
<Feuerbach>
oh, the second number is the number of elements
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has joined #ruby
<Feuerbach>
yeah, I could use that. Something like a[x,y-x+1], I suppose
<Feuerbach>
thanks Hanmac
jonr22 has quit [Ping timeout: 245 seconds]
frankperez87 has joined #ruby
obs has quit [Remote host closed the connection]
zeeraw has joined #ruby
fragmachine has joined #ruby
_Andres has joined #ruby
sevenseacat has joined #ruby
gja has joined #ruby
fragmachine has quit [Client Quit]
<frankperez87>
What would be the best way to return output from a command and pass in a variable as one of the arguments. The command is run o the linux box first. for instance output = `ps -ef | head -#{number}`
bogeyd6 has quit [Read error: Connection reset by peer]
bnjamin has quit [Ping timeout: 272 seconds]
ghatak has joined #ruby
joaoh82 has quit [Remote host closed the connection]
<ghatak>
Hi, I want to make some changes to a JSON file, it has nested data structures, I want to be able to change some keys and save it back, while maitain indentation, can someone point me in right direction?
fedesilva has joined #ruby
sergicles has joined #ruby
<DouweM>
ghatak: you want to maintain the same indentation used before, or just some indentation? and why do you care about indentation anyway?
zoee has quit [Quit: This computer has gone to sleep]
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klaut has joined #ruby
Vaibhav_Rajput has quit [Quit: Leaving]
skaflem has quit [Ping timeout: 272 seconds]
Mon_Ouie has quit [Ping timeout: 272 seconds]
joaoh82 has joined #ruby
anomaly_ has quit [Remote host closed the connection]
zeeraw has joined #ruby
fedesilva has quit [Remote host closed the connection]
gregoriokusowski has quit [Read error: Connection reset by peer]
anomaly_ has joined #ruby
jamesaanderson has joined #ruby
zoee has joined #ruby
postmodern has quit [Quit: Leaving]
alpha123 has quit [Ping timeout: 272 seconds]
coca_rails has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
havenwood has quit [Remote host closed the connection]
siwica has quit [Ping timeout: 272 seconds]
alpha123 has joined #ruby
Lachezar has joined #ruby
dfranciosi has quit [Remote host closed the connection]
yalue has joined #ruby
g0bl1n has quit [Ping timeout: 272 seconds]
malkomalko has joined #ruby
<Lachezar>
Hey all… N00B here, having basic problems: ".gemrc" has "gemhome:/home/user/development/ruby/gems", "gem install rhc", byt then "~/develipment/ruby/gems/bin/rhc" yields "Could not find rhc (>= 0) amongst [] (Gem::LoadError)"
<Lachezar>
gem list shows a bunch of gems are there
iajrz has joined #ruby
<iajrz>
DouweM: are you here?
<DouweM>
iajrz: sure am
klaut has quit [Ping timeout: 265 seconds]
coca_rails has quit [Ping timeout: 245 seconds]
<iajrz>
DouweM: your site project at github has no license. Can I use my fork for my personal homepage + GPL my version?
drumusician has quit [Ping timeout: 260 seconds]
<Lachezar>
Do I need to set up additional environment?
bnjamin has joined #ruby
gregoriokusowski has joined #ruby
freerobby has joined #ruby
<iajrz>
> still haven't worked on the fork~
<DouweM>
iajrz: I don't want anyone to use my version verbatim, but if I judge your fork sufficiently different, I don't have a problem with it.
skattyadz has joined #ruby
gja has joined #ruby
Hanmac1 has joined #ruby
<iajrz>
DouweM: Fair enough :) I'll let you know when I think I'm good enough to go... thanks
ewnd9 has quit [Ping timeout: 250 seconds]
ffranz has joined #ruby
<DouweM>
iajrz: you can PM me anytime
freerobby has quit [Ping timeout: 246 seconds]
<iajrz>
thanks again :D
atno has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 265 seconds]
gja has quit [Client Quit]
gja has joined #ruby
skattyadz has quit [Ping timeout: 245 seconds]
skattyadz has joined #ruby
taion809 has quit [Disconnected by services]
taion809 has joined #ruby
* Lachezar
had to explicitly add GEM_HOME environment variable :-/
taion809 has quit [Disconnected by services]
taion809 has joined #ruby
shime has quit [Ping timeout: 250 seconds]
stetho has joined #ruby
agjacome has joined #ruby
atno has joined #ruby
Jdubs_ has quit [Remote host closed the connection]
ewnd9 has joined #ruby
skattyadz has left #ruby [#ruby]
justsee has quit [Ping timeout: 252 seconds]
falood has joined #ruby
weems has quit [Read error: Connection reset by peer]
rootshift has quit [Quit: rootshift]
lyanchih has joined #ruby
fijimunkii has quit [Ping timeout: 246 seconds]
dfranciosi has joined #ruby
whysobad has joined #ruby
krawchyk has joined #ruby
coca_rails has joined #ruby
whysomad has quit [Ping timeout: 250 seconds]
frankperez87 has quit [Quit: Leaving.]
Guest16500 has quit [Changing host]
Guest16500 has joined #ruby
Guest16500 is now known as digifiv5e
mmitchell has joined #ruby
mark_locklear has joined #ruby
OdNairy has quit [Remote host closed the connection]
Lachezar has quit [Quit: Back to coding.]
OdNairy has joined #ruby
falood has quit [Remote host closed the connection]
kobain has joined #ruby
_Andres has quit [Ping timeout: 250 seconds]
nomenkun has joined #ruby
tkuchiki has quit [Remote host closed the connection]
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
osvico has quit [Ping timeout: 246 seconds]
amoli has quit []
jerius has joined #ruby
nettoweb has quit [Quit: nettoweb]
jerius has quit [Client Quit]
mklappst_ has joined #ruby
wiiikiii has quit [Remote host closed the connection]
Duckily has quit [Quit: Duckily]
jkamenik has joined #ruby
intuxicated has quit [Ping timeout: 250 seconds]
blackmes1 has joined #ruby
cbetta_afk is now known as cbetta
mklappstuhl has quit [Ping timeout: 250 seconds]
rootshift has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
xcthulhu has joined #ruby
slacko has joined #ruby
slacko has quit []
<toss>
DouweM so yo usay I can't do this?
<toss>
can I migrate ruby on rails website to wordpress?
<toss>
I mean I know they are not compatible
<toss>
:)
<toss>
but can it be done?
intuxicated has joined #ruby
echevemaster has quit [Ping timeout: 250 seconds]
<kraljev2>
you have to do a manual rewrite
<kraljev2>
and that's going to cost
<kraljev2>
you'll be better off buying ruby hosting
larissa has joined #ruby
atno has quit [Remote host closed the connection]
atno has joined #ruby
<shevy>
toss unlikely. isn't wordpress written in php?
xcv has quit [Remote host closed the connection]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<canton7>
you can create a wordpress website which does the same things as a rails website. but you're creating it from scratch
zeeraw has joined #ruby
<atno>
not if you use a framework to build it
<workmad3>
and depending on the rails app, it could be a really hefty amount of work to recreate it in wordpress
johnnyfuchs has joined #ruby
havenwood has joined #ruby
mary5030 has joined #ruby
clamstar has joined #ruby
hogeo has joined #ruby
cbetta is now known as cbetta_afk
Hanmac has joined #ruby
w4pm has joined #ruby
breakingthings has joined #ruby
nowthatsamatt has joined #ruby
<DouweM>
toss: if we're talking a Rails blog rather than an entire Rails website, moving those posts over to WordPress shouldn't be too hard, but if this is an entire custom Rails site, recreating it using WordPress is gonna mean rewriting it from scratch
nisstyre has joined #ruby
Hanmac1 has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
matheuscaceres has quit [Quit: matheuscaceres]
tylershipe has quit [Remote host closed the connection]
tylershipe has joined #ruby
zipper has quit [Ping timeout: 246 seconds]
mlpinit has joined #ruby
hogeo has quit [Ping timeout: 260 seconds]
ndngvr has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
LadyRainicorn has joined #ruby
ws2k3 has quit [Ping timeout: 272 seconds]
Tritania has quit [Ping timeout: 272 seconds]
coca_rails has quit [Ping timeout: 245 seconds]
geekbri has joined #ruby
w4pm has quit [Ping timeout: 272 seconds]
ndngvr` has quit [Read error: Connection reset by peer]
ws2k3 has joined #ruby
<kraljev2>
he could keep the database
<kraljev2>
the problem is only the application code
shime has joined #ruby
mengu has quit [Remote host closed the connection]
mlpinit has quit [Remote host closed the connection]
Tritania has joined #ruby
havenwood has quit [Ping timeout: 250 seconds]
ikawnoclast has joined #ruby
mlpinit has joined #ruby
jonr22 has joined #ruby
jezen_ has quit [Remote host closed the connection]
zoee has quit [Quit: This computer has gone to sleep]
jezen has joined #ruby
freerobby has joined #ruby
akonny has joined #ruby
Thanatermesis has joined #ruby
tonni has quit [Remote host closed the connection]
larissa has quit [Quit: Leaving]
jonr22 has quit [Ping timeout: 252 seconds]
mlpinit_ has joined #ruby
tonni has joined #ruby
RaCx has joined #ruby
jezen has quit [Client Quit]
hamakn has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
fijimunkii has joined #ruby
joaoh82 has quit [Remote host closed the connection]
hamakn has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
hamakn has joined #ruby
intuxicated has quit [Ping timeout: 260 seconds]
tonni_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
tonni has quit [Read error: Connection reset by peer]
akonny has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
<shevy>
gazarsgo ruby is very fast
hogeo has joined #ruby
Megtastique has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
gianlucadv has quit [Ping timeout: 260 seconds]
<gazarsgo>
i would like to help make it faster, do you know where i can find module Kernel def require ?
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
<shevy>
gazarsgo have you extracted the ruby tarball archive ?
joaoh82 has joined #ruby
hamakn has quit [Remote host closed the connection]
<gazarsgo>
i just cloned the ruby repo because github search isn't so great
<gazarsgo>
i was hoping someone would be like 'aha, i know the problem you're having, and it's because of X, fixed in pull request Y that lands in next release"
<shevy>
ok so you have a repo available
<shevy>
in the official documentation you can see things like this:
mklappst_ has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
<shevy>
hmm...
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<shevy>
kraljev2 it was to allowy ruby -rubygems
<shevy>
on the commandline
jlast has joined #ruby
<shevy>
they could make it ruby -rrubygems
<kraljev2>
doesn't matter, this problem should be solved on the arg parsing level
BizarreCake has joined #ruby
garndt has joined #ruby
<gazarsgo>
there is a lot of ruby code written to avoid writing c code :(
<LadyRainicorn>
You don't have to require rubygems anymore, so who cares?
<canton7>
they don't want to make a general solution - you shouldn't be able to do both '-rrubyisawesome' and '-rubyisawesome' for a random package 'rubyisawesome'. It's just an exception provided by rubygems for rubygems
joaoh82 has quit [Remote host closed the connection]
<gazarsgo>
LadyRainicorn: do you know why rubygems is moving into core but it still has a monkeypatch on require ?
zoee has quit [Quit: Leaving]
<LadyRainicorn>
It's not a monkeypatch, it's a separate library.
<LadyRainicorn>
And probably backwards compatibility.
<shevy>
gazarsgo it's now automatically required since 1.9.x
<canton7>
yeah it's not modifying the core at all. they've just created a library 'ubygems'. I would publish a library called 'ubyisawesome' which requires 'rubyisawesome'
<canton7>
ah I see that
aspires_ has joined #ruby
<canton7>
that was from before rubygems was properly integrated iirc?
iamjarvo has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
<shevy>
last commit 2 months ago
jedimind has joined #ruby
<shevy>
is core_ext/ a standard name for modifications of core things?
<gazarsgo>
seems to be
<DouweM>
it is
<shevy>
damn
<shevy>
I always went for core/ :(
ValicekB has quit [Ping timeout: 252 seconds]
baordog_ has joined #ruby
araujo has quit [Read error: Connection reset by peer]
araujo has joined #ruby
<workmad3>
shevy: it's just common naming convention, nothing special about it
<shevy>
hey I am a good ruby citizen
<shevy>
I'll go with the flow
jalcine has joined #ruby
<DouweM>
workmad3: common naming conventions are what keeps us sane, though
<DouweM>
all programming conventions are, really
interactionjaxsn has joined #ruby
<workmad3>
DouweM: you're sane? lucky you :P
<kraljev2>
convensions like 2 spaces for indentation
<kraljev2>
is that Matz's bullshit?
anomaly_ has joined #ruby
<DouweM>
workmad3: :P
<shevy>
kraljev2 no
<DouweM>
kraljev2: 2 spaces ftw
<kraljev2>
whose then
<shevy>
kraljev2 what do you suggest
<kraljev2>
2 spaces is too little
<DouweM>
kraljev2: but I have no idea where it originated
<kraljev2>
i suggest 3 or 4
otero has joined #ruby
<DouweM>
kraljev2: how so
<shevy>
3
<shevy>
are you crazy
larssmit has quit [Read error: Connection reset by peer]
<shevy>
why not 66
<kraljev2>
or just tabs, so we don't have to argue about how many spaces :)
nomenkun has joined #ruby
<kraljev2>
exactly, shevy
Ox6abe has joined #ruby
<kraljev2>
good argument for tabs
<kraljev2>
:)
<shevy>
tabs are better than 3
<shevy>
4 spaces is better than tab
<shevy>
2 spaces is better than 4 spaces
<DouweM>
using tabs breaks down when you want to align stuff rather than indent
<shevy>
yeah
<DouweM>
because people may configure their tab widths differently
<kraljev2>
and tell me
<kraljev2>
how many times have you aligned something in ruby
<shevy>
all the time
<DouweM>
really, we should use tabs for indentation, spaces for alignment, but I've never seen an editor smart enough to do that
<kraljev2>
tabs for indentation, spaces for alignment
<shevy>
I adorn my comments with ascii
<DouweM>
yeah, I align all the time
xrosex has joined #ruby
<canton7>
{ \n :foo => 'bar \n :bar => 'baz' \n } for example
<shevy>
my comments are prettier than ruby code
<xrosex>
Does anyone know if ruby shoes gui supports text movement with the mouse ?
<kraljev2>
We laugh at MS for having \r\n for line break, right? ? :D
<shevy>
no, I have only pity for MS
<DouweM>
canton7: that could be seen as indentation, though
<shevy>
google killed them :(
geggam has joined #ruby
<shevy>
they even brought back that start button
<canton7>
DouweM, I should have picked an example with different-length keys. I'm thinking of aligning the '=>'s
<gazarsgo>
so who works on rubygems and 'properly integrating' it ?
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<DouweM>
canton7: ah, my mistake. yeah, def. same goes for regular var assignment
pranny1 has quit [Quit: Leaving.]
<shevy>
gazarsgo drbrain on #rubygems
<gazarsgo>
thanks
<canton7>
DouweM, more my complete lack of clarity :P
enebo has joined #ruby
lfox has joined #ruby
lukasz_k has left #ruby ["WeeChat 0.4.0"]
<workmad3>
kraljev2: mixed tabs and spaces make matz sad :(
<shevy>
hahaha :D
<DouweM>
inconsistent mixing makes everyone sad
lyanchih has joined #ruby
Hanmac1 has joined #ruby
<shevy>
and when matz is sad
<kraljev2>
they are not mixed
<shevy>
his english will get worse
<kraljev2>
a space never touches a tab!!!!
<DouweM>
shevy: lol
lmickh has quit [Quit: lmickh]
pu22l3r has joined #ruby
<kraljev2>
therefore they are not mixed
<shevy>
kraljev2 you never use spaces when you use tabs?
<kraljev2>
I do, for alignment
<workmad3>
kraljev2: ok... so how do you keep things consistent if you're aligning a 2-line parameter list?
<shevy>
do you align comments as well? :>
kostine has joined #ruby
<kraljev2>
i usually tab comments so they are in line with the code they represent
agjacome has quit [Ping timeout: 252 seconds]
<shevy>
I used to do that too
<kraljev2>
they are not at the begining of the line
Hanmac has quit [Ping timeout: 246 seconds]
<workmad3>
not that it really matters tbh... the whole reason there's always arguments about tabs v spaces is because it's a bike-shed argument that has no correct answer
<DouweM>
bike shedding ftw
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kraljev2>
what is more correct - \r\n or just \n for line break?
<canton7>
there will be a correct answer when editors support "tabs for indentation, spaces for alignment" :P
sambao21 has joined #ruby
<workmad3>
kraljev2: that depends... am I supporting electronic typewriters?
<DouweM>
kraljev2: why the hell do we need a carriage return on a computer?
hiyosi_ has quit [Quit: WeeChat 0.4.1]
<kraljev2>
why do we need two spaces to represent one action/ entity
sayan has joined #ruby
<canton7>
DouweM, just \r is useful for re-writing the current line ;)
<kraljev2>
I'd like we dropped this convetion
<kraljev2>
no language has anything stupid like this
<kraljev2>
let everybody write as they wish
<kraljev2>
and let colaborating groups decide for their own
nomenkun has quit [Remote host closed the connection]
cyclamen has quit [Remote host closed the connection]
tylersmith has joined #ruby
<pontiki>
protocols are what makes communication possible
Anarch has left #ruby [#ruby]
<pontiki>
especially with machines which are blindingly stupid
mary5030 has quit [Remote host closed the connection]
<shevy>
kraljev2 well there are often ways which are inferior to other ways
mary5030 has joined #ruby
<gazarsgo>
that's because 2 spaces is correct :)
po10 has joined #ruby
binaryplease has joined #ruby
kiri has quit [Quit: Leaving]
Ox6abe has quit [Remote host closed the connection]
po10 has quit [Max SendQ exceeded]
<shevy>
kraljev2 take python for instance
<shevy>
kraljev2 in python you must indent
po10 has joined #ruby
joaoh82 has joined #ruby
xrosex has quit [Read error: Connection reset by peer]
shawnjgoff has joined #ruby
po10 has quit [Max SendQ exceeded]
xcv has joined #ruby
po10 has joined #ruby
<DouweM>
kraljev2: you say "let colaborating groups decide for their own", which is exactly what happens. it just happens to be so that the entire Ruby open-source community is one large collaborating group
mengu has quit [Remote host closed the connection]
<shawnjgoff>
I'm in a session with pry; in another terminal I installed a gem. When I require the gem, it can't find it. Is there a way to load this gem without restarting my runtime?
jprovazn_ has quit [Quit: Leaving]
akonny has quit [Quit: akonny]
snath has quit [Ping timeout: 252 seconds]
Sawbones has quit []
moss has joined #ruby
moss has quit [Client Quit]
acrussell has joined #ruby
<shevy>
shawnjgoff hmm I think in theory there should be to have it reload everything
mojjojo has quit [Quit: mojjojo]
nowthatsamatt has joined #ruby
sepp2k has quit [Quit: Leaving.]
mosscollum has joined #ruby
jonahR has joined #ruby
<shevy>
perhaps it works by adding to $LOAD_PATH
<shawnjgoff>
Okay, thanks.
<mrfoto>
shawnjgoff: reload!
<mrfoto>
is the command
<shawnjgoff>
Thanks, mr_red1
<shawnjgoff>
oops... mrfoto
xcthulhu has joined #ruby
FL1SK has quit [Remote host closed the connection]
klaut has joined #ruby
FL1SK has joined #ruby
larssmit has joined #ruby
ahegyi has quit [Ping timeout: 246 seconds]
tagrudev has quit [Remote host closed the connection]
larssmit has quit [Client Quit]
avril14th_ has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
ww26 has joined #ruby
hogeo has joined #ruby
joaoh82 has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
carraroj has quit [Ping timeout: 252 seconds]
preller has quit [Read error: Operation timed out]
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
kevind has joined #ruby
jamesaanderson has joined #ruby
anomaly_ has quit [Ping timeout: 256 seconds]
xcthulhu has quit [Client Quit]
robbyoconnor has quit [Ping timeout: 245 seconds]
jamesaanderson has quit [Client Quit]
jonathanwallace has quit [Ping timeout: 246 seconds]
hogeo has quit [Remote host closed the connection]
gtsiftsis has quit [Quit: Leaving]
mojjojo has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
akonny has joined #ruby
spike|spiegel has quit [Ping timeout: 260 seconds]
jerius has quit [Ping timeout: 272 seconds]
zipper has joined #ruby
tylersmith has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
dhruvasagar has quit [Ping timeout: 272 seconds]
havv has quit [Quit: Page closed]
jerius has joined #ruby
krawchyk has quit [Ping timeout: 245 seconds]
preller has joined #ruby
akonny has quit [Read error: Connection reset by peer]
xcthulhu has joined #ruby
xcthulhu has quit [Client Quit]
bean__ has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
drag00n has joined #ruby
lmickh has joined #ruby
plagueweezle is now known as sickweezle
sayan has quit [Ping timeout: 272 seconds]
jonr22 has joined #ruby
b00stfr3ak has joined #ruby
end_guy has quit [Remote host closed the connection]
zipper has quit [Quit: Lost terminal]
wc- has joined #ruby
klaut has joined #ruby
DeProdigy has joined #ruby
tylersmith has joined #ruby
pwestlund is now known as pwestlund_away
klaut has quit [Remote host closed the connection]
w4pm has joined #ruby
Ox6abe has joined #ruby
jonr22 has quit [Ping timeout: 252 seconds]
Monie has joined #ruby
Hanmac has joined #ruby
coca_rails has joined #ruby
coldmethod has joined #ruby
jonathanwallace has joined #ruby
xcthulhu has joined #ruby
shime has quit [Ping timeout: 252 seconds]
<gazarsgo>
shevy: you mentioned it would be trivial ? :)
Hanmac1 has quit [Ping timeout: 272 seconds]
coldmethod has quit [Remote host closed the connection]
JohnBat26 has quit [Ping timeout: 245 seconds]
coldmethod has joined #ruby
pixelgremlins_ba has joined #ruby
LexicalScope` has joined #ruby
nari has quit [Ping timeout: 246 seconds]
bluenemo has quit [Remote host closed the connection]
w4pm has quit [Read error: Operation timed out]
pixelgremlins has quit [Read error: Connection reset by peer]
LexicalScope has quit [Read error: Connection reset by peer]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jlebrech>
if i move my spec file to spec/ folder I can't load the ruby file i'm testing with require '../myfile' how come?
hamakn has quit [Ping timeout: 250 seconds]
binaryplease has quit [Ping timeout: 250 seconds]
thirdeye has joined #ruby
fedesilva has quit [Ping timeout: 272 seconds]
johnnyfuchs has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
Underbyte has joined #ruby
Underbyte has joined #ruby
Underbyte has quit [Changing host]
LexicalScope` has quit [Ping timeout: 252 seconds]
<b00stfr3ak>
try require_relative and see if that fixes it
<gazarsgo>
shevy: yeah well i'm stuck :(
<gazarsgo>
i'm inside the rubygems monkey patch trying to see every path that comes through
joaoh82 has joined #ruby
<gazarsgo>
but it calls out ot the C code in a lot of places
wald0 has joined #ruby
tylersmith has quit [Ping timeout: 245 seconds]
<wald0>
I have a problem in my debian trying to install Pry
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<wald0>
it shows me an error about RDoc
<jlebrech>
b00stfr3ak: ooh thanks :)
<avril14th_>
wald0: --no-rdoc ?
nari has joined #ruby
<avril14th_>
:)
<wald0>
but i dont see any reported issue on the github project, this is strange because seems like a but that should affect to thousands ppl
p4d4w4n has quit [Read error: Connection reset by peer]
digital-ghost has joined #ruby
puppeh has joined #ruby
JohnBat26 has joined #ruby
<puppeh>
when i'm inside 2 blocks
<puppeh>
(ie. a block is nested in another) how can I break out of the 2 blocks when I'm on the inner block?
<mrfoto>
puppeh: raise an exception and catch it outside the second block?
<pontiki>
rethink your design
<mrfoto>
and what pontiki said :P
SteveBenner9 has joined #ruby
Criztian has joined #ruby
sec^nd has joined #ruby
jonahR has quit [Quit: jonahR]
<Hanmac1>
puppeh: use throw catch
<puppeh>
I see
<puppeh>
thx
Hanmac1 is now known as Hanmac
<wald0>
avril14th_: seems like still showing the same error
mojjojo has quit [Ping timeout: 245 seconds]
sumark has quit [Remote host closed the connection]
<avril14th_>
tried --no-ri --no-rdoc ? what's the error?
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
MrZYX|off is now known as MrZYX
arietis has joined #ruby
sumark has joined #ruby
<banister>
puppeh: throw/catch
tylersmith has joined #ruby
bean__ has joined #ruby
RaCx_ has joined #ruby
AlSquirrel has quit [Read error: Connection reset by peer]
RaCx has quit [Ping timeout: 246 seconds]
RaCx_ is now known as RaCx
AlSquire has joined #ruby
aganov has quit [Read error: Connection reset by peer]
anomaly_ has joined #ruby
fgo has quit [Remote host closed the connection]
cameronbarton has joined #ruby
fgo has joined #ruby
matheuscaceres has quit [Quit: matheuscaceres]
ckinni has joined #ruby
gf3 has joined #ruby
craigp has joined #ruby
Bira has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
lsoa has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
obs has quit [Remote host closed the connection]
<shevy>
I found a great quote from "The C programming language"
<shevy>
"The indentation emphasizes the logical structure of the program."
<mrfoto>
Nearly everybody is convinced that every style but their own is ugly and unreadable. Leave out the "but their own" and they're probably right...
<mrfoto>
-- Jerry Coffin (on indentation)
RaCx has joined #ruby
<shevy>
Jerry in the coffin
<zzak>
wald0: whats the error?
kostine has quit [Quit: kostine]
<zzak>
wald0: also what version of ruby & rubygems?
<zzak>
and did you install via package manager?
jlebrech has quit [Quit: Konversation terminated!]
kostine has joined #ruby
xcthulhu has quit [Quit: xcthulhu]
AlSquirrel has joined #ruby
phansch has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
sguselnikov has joined #ruby
lyanchih has quit [Quit: lyanchih]
senj has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
arietis has quit [Read error: Connection reset by peer]
iaj has quit [Read error: Operation timed out]
randomnick_ has quit [Read error: Operation timed out]
rippa has joined #ruby
rumours has quit [Read error: Operation timed out]
chiel has quit [Read error: Operation timed out]
thomasvs has quit [Read error: Operation timed out]
spinx^_ has joined #ruby
rumours has joined #ruby
Criztian_ has joined #ruby
Schmidt has quit [Read error: Operation timed out]
thomasvs has joined #ruby
thomasvs has quit [Changing host]
thomasvs has joined #ruby
rossssssssss has joined #ruby
Schmidt has joined #ruby
xcthulhu has joined #ruby
DeProdigy has joined #ruby
cantonic_ has joined #ruby
whysomad has joined #ruby
iaj has joined #ruby
MattStratton has joined #ruby
SteveBenner09 has joined #ruby
RaCx has quit [Ping timeout: 250 seconds]
Baluse has joined #ruby
<Baluse>
hello
Criztian_ has quit [Excess Flood]
RaCx has joined #ruby
<platzhirsch>
okay, back to the grind
<Baluse>
is there a way in ruby to know if client got the response ?
jkamenik1 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Criztian_ has joined #ruby
<lectrick>
Baluse: Can you be more specific?
testslav1 has joined #ruby
thomasvs has quit [*.net *.split]
rumours has quit [*.net *.split]
spinx^_ has quit [*.net *.split]
AlSquire has quit [*.net *.split]
Criztian has quit [*.net *.split]
SteveBenner9 has quit [*.net *.split]
CaptainJet has quit [*.net *.split]
parduse has quit [*.net *.split]
geggam has quit [*.net *.split]
lfox has quit [*.net *.split]
djdarkbeat has quit [*.net *.split]
TorpedoSkyline has quit [*.net *.split]
Rollabunna has quit [*.net *.split]
tonni_ has quit [*.net *.split]
jchristi has quit [*.net *.split]
jkamenik has quit [*.net *.split]
whysobad has quit [*.net *.split]
bnjamin has quit [*.net *.split]
SHyx0rmZ has quit [*.net *.split]
Fire-Dragon-DoL has quit [*.net *.split]
lkba has quit [*.net *.split]
Nilium has quit [*.net *.split]
bricker`LA has quit [*.net *.split]
shevy has quit [*.net *.split]
reach has quit [*.net *.split]
hakunin has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
ninegrid has quit [*.net *.split]
xk_id has quit [*.net *.split]
thedonvaughn has quit [*.net *.split]
testslave has quit [*.net *.split]
rotor has quit [*.net *.split]
poguez has quit [*.net *.split]
Gnubie__ has quit [*.net *.split]
kaichanvong has quit [*.net *.split]
siefca has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
lancepantz has quit [*.net *.split]
weeb1e_ has quit [*.net *.split]
wmoxam has quit [*.net *.split]
gazoombo has quit [*.net *.split]
dekz has quit [*.net *.split]
tr4656_ has quit [*.net *.split]
spinx^ has quit [*.net *.split]
Guest27653 has quit [*.net *.split]
yellow5 has quit [*.net *.split]
MonsieurApple has quit [*.net *.split]
philtr has quit [*.net *.split]
rblackwe has quit [*.net *.split]
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
chiel has joined #ruby
TorpedoSkyline_ has joined #ruby
weems has joined #ruby
Hanmac has joined #ruby
weems has quit [Changing host]
weems has joined #ruby
randomnick_ has joined #ruby
hakunin has joined #ruby
tr4656 has joined #ruby
kaichanvong has joined #ruby
xcthulhu has quit [Client Quit]
CaptainJet has joined #ruby
parduse has joined #ruby
sambao21 has joined #ruby
<Baluse>
client makes a call to /api/get_pending then server returns the response. But how can I be sure that it arrived ?
philtr has joined #ruby
dangerousdave has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<Baluse>
and no read timeout etc ,or connection was cut during response ?
rblackwe has joined #ruby
Rollabunna has joined #ruby
thomasvs has joined #ruby
jchristi has joined #ruby
lfox has joined #ruby
geggam has joined #ruby
djdarkbeat has joined #ruby
tonni_ has joined #ruby
lkba has joined #ruby
SHyx0rmZ has joined #ruby
reach has joined #ruby
thedonvaughn has joined #ruby
xk_id has joined #ruby
Emmanuel_Chanel has joined #ruby
Nilium has joined #ruby
Fire-Dragon-DoL has joined #ruby
bricker`LA has joined #ruby
shevy has joined #ruby
poguez has joined #ruby
wmoxam has joined #ruby
dekz has joined #ruby
ninegrid has joined #ruby
Guest27653 has joined #ruby
lancepantz has joined #ruby
siefca has joined #ruby
gazoombo has joined #ruby
<popl>
Baluse: What do you mean by call?
Gnubie_ has joined #ruby
rotor has joined #ruby
MonsieurApple has joined #ruby
weeb1e has joined #ruby
MonsieurApple has quit [Changing host]
MonsieurApple has joined #ruby
rblackwe has quit [Max SendQ exceeded]
noname001__ has quit [Ping timeout: 245 seconds]
<Baluse>
web service
vlad_starkov has joined #ruby
<Baluse>
a http request
spinx^ has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
user258467 has quit [Quit: Quitte]
rumours has joined #ruby
tylershipe has quit [Remote host closed the connection]
JohnBat26 has quit [Ping timeout: 245 seconds]
tylershipe has joined #ruby
alup has quit [Quit: Leaving]
bnjamin has joined #ruby
robonerd has quit [Ping timeout: 260 seconds]
Azure has joined #ruby
nvrch has quit [Quit: nvrch]
<jhn>
Baluse: http uses tcp, tcp guarantees the delivery.
jibi has joined #ruby
rblackwe has joined #ruby
Hamled has joined #ruby
tvl has joined #ruby
Rennex_ has joined #ruby
flori_ has joined #ruby
yellow5 has joined #ruby
bnagy_ has joined #ruby
jinxD_ has joined #ruby
tommylom1ykins has joined #ruby
haukur has joined #ruby
jinxD has quit [Write error: Broken pipe]
bricker`1A has joined #ruby
bnagy has quit [Write error: Broken pipe]
Hamled|Erp has quit [Write error: Broken pipe]
flori has quit [Write error: Broken pipe]
jpun has quit [Write error: Broken pipe]
xguinness] has quit [Write error: Broken pipe]
G has quit [Write error: Broken pipe]
w1xz has joined #ruby
Eiam has quit [Ping timeout: 338 seconds]
yo61 has quit [Ping timeout: 338 seconds]
tommyvyo has quit [Ping timeout: 338 seconds]
R33C3_ has quit [Ping timeout: 338 seconds]
ce_afk is now known as cescalante
dawkirst has quit [Ping timeout: 338 seconds]
stkowski has joined #ruby
nomadic has quit [Ping timeout: 338 seconds]
wykydtron has quit [Ping timeout: 338 seconds]
pagios has quit [Ping timeout: 338 seconds]
bluehavana_ has quit [Ping timeout: 338 seconds]
kapowaz_ has quit [Ping timeout: 338 seconds]
TheShaun has quit [Ping timeout: 338 seconds]
SegFaultAX has quit [Ping timeout: 338 seconds]
aetaric has quit [Ping timeout: 338 seconds]
daveedo has quit [Ping timeout: 338 seconds]
tommylommykins has quit [Write error: Broken pipe]
tobiasvl has quit [Write error: Broken pipe]
Rennex has quit [Write error: Broken pipe]
aetaric_ has joined #ruby
tvl is now known as tobiasvl
tommyvyo has joined #ruby
Deele has joined #ruby
yo61 has joined #ruby
R33C3_ has joined #ruby
bluehavana_ has joined #ruby
ghatak has quit [Ping timeout: 246 seconds]
Rollabun_ has joined #ruby
nomadic_ has joined #ruby
kapowaz_ has joined #ruby
TheShaun_ has joined #ruby
aetaric_ is now known as aetaric
wmoxam_ has joined #ruby
TheShaun_ is now known as TheShaun
tylershipe has quit [Ping timeout: 245 seconds]
fgo has quit [Remote host closed the connection]
camilasan has quit []
dhruvasagar has joined #ruby
xk_id_ has joined #ruby
brandon has joined #ruby
wmoxam_ has quit [Client Quit]
thedonva1ghn has joined #ruby
wmoxam_ has joined #ruby
andikr has quit [Read error: Connection reset by peer]
ninegrid_ has joined #ruby
brandon is now known as Guest61817
wmoxam has quit [Disconnected by services]
msuszczy has quit [Quit: leaving]
wmoxam_ has quit [Client Quit]
wmoxam has joined #ruby
iamjarvo has joined #ruby
<sec^nd>
I thought ruby could only extend one class, isn't class TheClass < FirstClass; extend SecondClass; end allowing multiple inheritance?
Davedo has joined #ruby
SegFaultAX has joined #ruby
cameronbarton has quit [Quit: cameronbarton]
Nilium has quit [Disconnected by services]
dawkirst_ has joined #ruby
Nilium_ has joined #ruby
wykydtron has joined #ruby
G has joined #ruby
jpun has joined #ruby
cantonic_ has joined #ruby
tylersmith has quit [Remote host closed the connection]
shime has joined #ruby
geggam_ has joined #ruby
<sec^nd>
extend does class methods and include does instance methods
MissionCritical has joined #ruby
lancepantz_ has joined #ruby
intuxicated has joined #ruby
rumours has quit [*.net *.split]
MonsieurApple has quit [*.net *.split]
Rollabunna has quit [*.net *.split]
jchristi has quit [*.net *.split]
thomasvs has quit [*.net *.split]
thedonvaughn has quit [*.net *.split]
lfox has quit [*.net *.split]
djdarkbeat has quit [*.net *.split]
geggam has quit [*.net *.split]
tonni_ has quit [*.net *.split]
Fire-Dragon-DoL has quit [*.net *.split]
lkba has quit [*.net *.split]
SHyx0rmZ has quit [*.net *.split]
shevy has quit [*.net *.split]
bricker`LA has quit [*.net *.split]
ninegrid has quit [*.net *.split]
xk_id has quit [*.net *.split]
reach has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
poguez has quit [*.net *.split]
siefca has quit [*.net *.split]
dekz has quit [*.net *.split]
lancepantz has quit [*.net *.split]
gazoombo has quit [*.net *.split]
Guest27653 has quit [*.net *.split]
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
lancepantz_ is now known as lancepantz
lkba has joined #ruby
juarlex has quit [Remote host closed the connection]
rootshift has quit [Quit: rootshift]
Tamal has joined #ruby
thelamest has quit [Ping timeout: 252 seconds]
mlpinit_ has quit [Remote host closed the connection]
bricker`1A is now known as bricker`LA
joaoh82 has quit [Remote host closed the connection]
Olipro has quit [Ping timeout: 246 seconds]
mikepack has joined #ruby
yalue has quit [Quit: Leaving]
<platzhirsch>
I will never learn the UNIX console statement for seek and replace, I have to write it somewhere in front of me...
Olipro has joined #ruby
<popl>
huh?
wallerdev has joined #ruby
rumours has joined #ruby
xguinness] has joined #ruby
poguez has joined #ruby
MonsieurApple has joined #ruby
Fire-Dragon-DoL has joined #ruby
thomasvs has joined #ruby
siefca has joined #ruby
djdarkbeat has joined #ruby
gazoombo has joined #ruby
pagioss has joined #ruby
dekz has joined #ruby
davy_ has joined #ruby
end_guy has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iamjarvo_ has joined #ruby
braoru has quit [Remote host closed the connection]
senj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Nogbit has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
Ox6abe has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 272 seconds]
joaoh82 has joined #ruby
cameronbarton has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<Hanmac1>
werdnativ: as far as i know you still should not use it in new code
preller has quit [Ping timeout: 250 seconds]
jnoob22_ has quit [Client Quit]
iliketur_ has quit [Quit: zzzzz…..]
jnoob22_ has joined #ruby
<werdnativ>
Thanks, just wondering since it's a pretty basic piece, and no word on it since 2.0 or upcoming 2.1…
<banister>
werdnativ i hate autoload
<banister>
more than i hate hell and all montagues
<banister>
it's also trivial to implement yourself if you need to
dhruvasagar has quit [Ping timeout: 245 seconds]
po10 has quit [Quit: /]
<werdnativ>
yeah, const_missing...
atno has joined #ruby
phansch has joined #ruby
jkhwan has joined #ruby
phipes has joined #ruby
Advocation has joined #ruby
jkhwan has quit [Remote host closed the connection]
coca_rails has quit [Ping timeout: 245 seconds]
BizarreCake has quit [Read error: Connection reset by peer]
elux has quit [Quit: Leaving...]
atno__ has quit [Ping timeout: 260 seconds]
<banister>
werdnativ u r const_missing
SHyx0rmZ has joined #ruby
<werdnativ>
I am?
jkhwan has joined #ruby
xcthulhu has joined #ruby
ckinni has joined #ruby
workmad3 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
krazee has quit [Remote host closed the connection]
juarlex has joined #ruby
Liquid-- has joined #ruby
iliketur_ has joined #ruby
vlad_starkov has joined #ruby
fgo has joined #ruby
sambao21 has joined #ruby
MrZYX is now known as MrZYX|off
Naoe-Kanno has joined #ruby
<joshu>
is it a best practice to update RubyGems or to use the version that is bundled with each Ruby version?
<shevy>
always update joshu
<shevy>
werdnativ matz does not like autoload and will deprecate, then remove it
phipes has quit []
<joshu>
shevy ok I'm researching this to better understand what people do. Is there a mechanism for keeping it RubyGems up to date automatically or do you just run gem update --system when you remember to?
Bira has quit [Remote host closed the connection]
tylersmi_ has joined #ruby
SHyx0rmZ has quit [Ping timeout: 252 seconds]
<shevy>
nono
vlad_sta_ has quit [Ping timeout: 260 seconds]
<shevy>
I myself never use gem update --system so I can not tell you whether to use it or not
juarlex has quit [Ping timeout: 248 seconds]
tylersmith has quit [Read error: Connection reset by peer]
phipes has joined #ruby
devdazed has joined #ruby
fijimunk1i has quit [Ping timeout: 246 seconds]
siwica has quit [Ping timeout: 260 seconds]
Eiam has joined #ruby
mickthenick has joined #ruby
Bira has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
anomaly_ has joined #ruby
siwica has joined #ruby
mengu has joined #ruby
OdNairy has quit [Ping timeout: 246 seconds]
robonerd has joined #ruby
DeProdigy has joined #ruby
preller has joined #ruby
tylersmi_ has quit [Read error: Connection reset by peer]
shime has quit [Ping timeout: 250 seconds]
tylersmith has joined #ruby
<shevy>
I think you can just do "gem update" or something
<shevy>
but I don't do that either, I always download a tarball, and save it in my local backups
barratt has joined #ruby
kaiza has quit [Read error: Connection reset by peer]
mib_mib has joined #ruby
kaiza has joined #ruby
<joshu>
shevy and you do this whenever there is a new ruby gems version?
<mib_mib>
hi - i want to wrap every line of code with a before method and after method - how would one go about that?
Ox6abe has joined #ruby
<mib_mib>
is there any notion of lines? or would i have to do it to specific objects
workmad3 has quit [Ping timeout: 248 seconds]
<shevy>
joshu well, no... I do it when I don't feel lazy :)
<shevy>
most of the time I am lazy
Rollabun_ has quit [Ping timeout: 246 seconds]
<shevy>
but I updated perhaps 4 weeks ago or something
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<shevy>
my current gem version is 2.1.7
<shevy>
no idea if that is the latest
choobie has joined #ruby
<DouweM>
mib_mib: what are you trying to accomplish?
<joshu>
hehe ok how would one be informed of new updates to ruby gems..silly question but do you subscribe to a github repo or?
DeProdigy has quit [Ping timeout: 264 seconds]
<DouweM>
joshu: run `bundle outdated` every so often
Ox6abe_ has joined #ruby
<joshu>
shevy yeah 2.1.7 is latest...mine is 2.0.14 as bundled with * ruby-2.0.0-p353
Xeago has quit [Remote host closed the connection]
OdNairy has joined #ruby
Solnse has joined #ruby
<joshu>
DouweM isn't that just for the gems themselves and not the RubyGem system?
brianpWins has joined #ruby
Ox6abe has quit [Ping timeout: 240 seconds]
<shevy>
joshu not sure... I have some kind of build tools
<workweezle>
Perhaps a silly question, but is a given version range of 'gem' (command) coupled with a certain version range of ruby?
<shevy>
then I sometimes do "url rubygems", this gets copied to my xorg buffer, then I paste this directly into a firefox tab and see if there are new versions
Liquid-- has quit [Quit: Computer has gone to sleep.]
<shevy>
which I find too tedious
fijimunkii has joined #ruby
<shevy>
so I dont update that often
<shevy>
:P
gazarsgo has quit [Quit: gazarsgo]
Ox6abe_ has quit [Ping timeout: 260 seconds]
Hanmac1 has quit [Ping timeout: 240 seconds]
<joshu>
shevy hehe...some of these things could probably be more obvious and require less user intervention
geekbri has quit []
roolo has joined #ruby
gazarsgo has joined #ruby
<shevy>
I think there are specific in-gem ways to do that
<DouweM>
joshu: ah, you're right about `bundle outdated`. I misinterpreted your question
<joshu>
DouweM no worries
rossssssssss has quit [Remote host closed the connection]
davy_ has quit [Ping timeout: 265 seconds]
nateberkopec has joined #ruby
bricker has quit [Ping timeout: 272 seconds]
mikepack has quit [Remote host closed the connection]
<shevy>
joschi, kill DouweM
<shevy>
:>
<DouweM>
:|
<shevy>
damn
pushpak has joined #ruby
<shevy>
I failed at tab completion
bricker has joined #ruby
<shevy>
joshu, kill both joschi and DouweM to make up for my mistake please
<DouweM>
that's not the biggest issue I have with that message
<shevy>
lol
elux has joined #ruby
phipes has quit [Remote host closed the connection]
<shevy>
ok, let's make love, not war
drag00n has quit [Ping timeout: 246 seconds]
Hanmac has joined #ruby
<wald0>
which kind of "love" ?
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
<joshu>
hehe
duggiefresh has joined #ruby
<DouweM>
the kind of love I feel for the food I'm about to make. See ya later :P
mib_mib has quit [Quit: Page closed]
anomaly_ has quit [Ping timeout: 252 seconds]
<shevy>
wald0 well... hipster love
<wald0>
ah, that sounds good! :)
mengu has quit [Remote host closed the connection]
<MrZYX>
I just use pry and my terminal for debugging ruby
<DouweM>
MrZYX: that looks great
<DouweM>
but yeah, I'm comfortable just using pry
tylershipe has joined #ruby
phantummm has quit [Quit: phantummm]
banister has joined #ruby
ValicekB has quit [Ping timeout: 250 seconds]
<shime>
MrZYX: that's more than enough
flame_ has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
Stevo123 has quit [Quit: Stevo123]
<DouweM>
Has anyone gotten SublimeCodeIntel to work for Ruby?
robbyoconnor has joined #ruby
<DouweM>
It's supposed to be supported, but I had a lot of trouble getting it running when I last tried, and eventually just gave up
preller has quit [Read error: Operation timed out]
Solnse has quit [Remote host closed the connection]
bitcycle has joined #ruby
Criztian_ has quit [Remote host closed the connection]
<bitcycle>
Hey all. I have to write functional tests, and writing them in ruby makes the most sense for our shop. I'm wondering what library is most commonly used to write tests in ruby?
alvaro_o has joined #ruby
goleldar has joined #ruby
<joshu>
bitcycle hi rspec or minitest
coca_rails has joined #ruby
<shevy>
sec^nd dunno I still use bluefish 1.0.8
<bitcycle>
joshu: I was thinking of using rspec, but what is the tradeoff? Are ther other more hip frameworks that do things that rspec can't or won't do?
<shevy>
an IDE seems not necessary that much in ruby
<invsblduck>
platzhirsch: sorry if my question was poor, i thought yours was worse ;p
<shevy>
lol
DeProdigy has quit [Ping timeout: 245 seconds]
<benzrf>
shevy: a parser is an object with a #parse method that takes a string or something with read/tell/seek
mary5030 has quit [Remote host closed the connection]
RoryHughes has joined #ruby
<platzhirsch>
invsblduck: oh there actually a duck in your name
<benzrf>
shevy: then the method returns some kind of meaningful representation
<platzhirsch>
I haven't noticed, was just babbling around
<benzrf>
shevy: you combine simple parsers to make complicated parsers
<shevy>
cool
<invsblduck>
platzhirsch: oh i thought you hated me lol
<shevy>
I did not notice either
<platzhirsch>
no ^^
mary5030 has joined #ruby
<shevy>
I only looked at /home/duck
<invsblduck>
haha
kaldrenon has joined #ruby
<shevy>
benzrf yeah you have some super simple parser that can be combined for the weirdest parser ever
colonolGron has quit [Quit: leaving]
<benzrf>
shevy: so if 'list' parses a lisp list string into a ruby list, 'sym' turns a lisp symbol into a string, and 'num' turns a number string into a Fixnum, then 'list | sym | num' returns a parser that will try to parse each of those in order and return the first that succeeds
<benzrf>
shevy: so it can parse any of those things
Mage_Dude has joined #ruby
<benzrf>
shevy: there are a few operators, like |, that you can use on parsers to combine them
maroloccio has quit [Quit: WeeChat 0.4.1]
<benzrf>
shevy: you can also use the 'parser' method to turn a block into a parser
terrellt has quit [Quit: Do fish get thirsty?]
<platzhirsch>
invsblduck: so I had a poor question? :'(
gverri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf>
shevy: within a block passed to #parser, prepending a parser value with ~ will run it on the current input
<invsblduck>
shevy: MrZYX: so if you have a script in ~/.gem/ruby/1.9.3/bin, it may not be easy to determine which gem generated it. Without inspecting each installed gem.
Matriks has joined #ruby
<benzrf>
shevy: so something like 'parser {~string("wat"); ~string("oh")}' creates a parser that will parse the string "watoh" and return "oh"
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf>
shevy: and that's the whole thing
<MrZYX>
invsblduck: once you got a require related to it there's gem which
<benzrf>
rsec.rb is actually only 217 lines
mary5030 has quit [Ping timeout: 240 seconds]
<benzrf>
i wrote it over the last 2-3 hours
blaskovicz has joined #ruby
<invsblduck>
MrZYX: ah right-
<invsblduck>
MrZYX: that gem's not actually installed, hence my confusion :)
<invsblduck>
MrZYX: that answers my question though
<Mage_Dude>
Is there a way to set ENV['force'] = yes when launching a 'bundle exec rake' type command from a command prompt? (Not familiar with Ruby at all)
<MrZYX>
Mage_Dude: great thing is: you don't need to, just standard unix environment stuff: force=yes bundle exec rake
<invsblduck>
15:11:40 platzhirsch | invsblduck: How can you own a gem? The gem belongs to the world <-- Then i thought you shot me and said quack no more, so I accused you of a poor question :P Sry.
<platzhirsch>
xDD
jchristi has quit [Ping timeout: 260 seconds]
s2013 has quit [Ping timeout: 248 seconds]
colluphid has joined #ruby
charliesome has joined #ruby
<invsblduck>
platzhirsch: i was asking which *gem* owns a file on disk, so, "how can you own a gem? it belongs to the world" seemed like not such a good response at the point in which you killed me. ;-)
DeProdigy has joined #ruby
<colluphid>
what is the hash sign called when you use it like this: puts "#{NETINFO[:gate]}"
<platzhirsch>
Indeed, I find the question interesting :P
<MrZYX>
colluphid: not sure it has a name, the concept is called string interpolation
<benzrf>
dang ruby's exc is slooooow
<platzhirsch>
invsblduck: well, don't mind me. I am just the #ruby clown
terrellt has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
davy_ has joined #ruby
<invsblduck>
colluphid: i don't think dave thomas gives it a fancy name in the pickaxe book
<invsblduck>
thx guys bbl
_Andres has joined #ruby
kevind has quit [Quit: kevind]
Rennex_ is now known as Rennex
DeProdigy has quit [Ping timeout: 252 seconds]
kirun has quit [Quit: Client exiting]
Myk267 has quit [Quit: Myk267]
<colluphid>
MrZYX: thx, found what I was looking for with string interpolation
FL1SK has quit [Remote host closed the connection]
FL1SK has joined #ruby
N00D is now known as zz_N00D
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xiti has quit [Ping timeout: 246 seconds]
terrellt has quit [Ping timeout: 265 seconds]
nwertman_ has quit [Read error: Connection reset by peer]
jerius has quit [Ping timeout: 272 seconds]
<Mage_Dude>
MrZYX: Cool, I like easy. :)
nadirvardar has joined #ruby
`MArceLL` has quit []
Parker0 has quit [Ping timeout: 272 seconds]
shawnjgoff has quit [Ping timeout: 246 seconds]
kpshek has quit []
bnagy_ is now known as bnagy
KaaK has joined #ruby
s2013 has joined #ruby
jlast has quit [Remote host closed the connection]
bean has quit [Changing host]
bean has joined #ruby
davy_ has quit [Remote host closed the connection]
reach has joined #ruby
jkhwan has joined #ruby
nwertman has joined #ruby
aspires_ has joined #ruby
Xeago has quit [Remote host closed the connection]
tylersmi_ has quit [Ping timeout: 240 seconds]
FL1SK has quit [Remote host closed the connection]
FL1SK has joined #ruby
kaldrenon has quit [Remote host closed the connection]
kaldrenon has joined #ruby
mgberlin has quit [Quit: mgberlin]
benlieb has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
flubba has quit [Remote host closed the connection]
cbetta is now known as cbetta_afk
Gues_____ has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
freggles has joined #ruby
djdarkbeat has quit [Quit: djdarkbeat]
funburn has quit [Quit: funburn]
kaldrenon has quit [Ping timeout: 252 seconds]
jamesaanderson has joined #ruby
pel_daniel has joined #ruby
jle` has quit [Ping timeout: 246 seconds]
shedd has joined #ruby
shedd has quit [Remote host closed the connection]
<MrZYX>
lethjakman: global variable. Also forget they exist now
<benzrf>
lethjakman: global var
<benzrf>
DON'T USE THEM
preller has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
<platzhirsch>
imo the only doc tool that should be used :P
edwards151 has quit []
jkhwan has joined #ruby
jamesaanderson has joined #ruby
reach has quit []
pel_daniel has left #ruby [#ruby]
shawnjgoff has joined #ruby
tbrock has joined #ruby
ce_afk is now known as cescalante
kevind has joined #ruby
_Andres has joined #ruby
Gues_____ is now known as Parker0
sambao21 has quit [Quit: Computer has gone to sleep.]
kevind has quit [Client Quit]
<lethjakman>
why's that?
<benzrf>
lethjakman: global vars are eeeevil
<lethjakman>
I've never used them, saw them on SO though
<benzrf>
they make it hard to encapsulate code
<lethjakman>
well when used wrong I would agree with that.
<lethjakman>
but for config?
<MrZYX>
config is CONSTANT
<benzrf>
use a dict or something and pass it around
jamesaanderson has quit [Client Quit]
<benzrf>
or keep it in a visible place
<benzrf>
do *not* use a global var!
<benzrf>
btw ruby's namespace & require system is really getting on my nerves
<benzrf>
likemike:
<benzrf>
*like
<lethjakman>
MrZYX: what do you mean it's constant? like it's frozen?
<benzrf>
super majorly
<platzhirsch>
So, global variables are for the vitrine, or a zoo
stkowski has quit [Ping timeout: 260 seconds]
<MrZYX>
lethjakman: I mean it rarely changes during program execution, thus use constants for it. If it does change use an object assigned to a constant
<shevy>
benzrf it's a simplistic system with all the pros and cons about when using a simplistic system
<benzrf>
shevy: python's is just as simple and it's awesome
<benzrf>
in fact python's is _simpler)
<benzrf>
*simpler
w4pm has joined #ruby
_Andres has quit [Ping timeout: 264 seconds]
jamesaanderson has joined #ruby
<platzhirsch>
Yeah, but Python is also stone age
<benzrf>
u wot
jamesaanderson has quit [Max SendQ exceeded]
RoryHughes has quit []
ghatak has joined #ruby
RoryHughes has joined #ruby
shawnjgoff has quit [Quit: Leaving]
<platzhirsch>
That meme looks British
volty has joined #ruby
<benzrf>
in what way is py stone age
<lethjakman>
but...whitespace.
<benzrf>
hahaha
<benzrf>
whitespace is the shit
<benzrf>
seriously its so great
<platzhirsch>
The syntax gives me the creep and I always get mad when programming Python
<benzrf>
why mad?
jamesaanderson has joined #ruby
FL1SK has quit [Remote host closed the connection]
<benlieb>
what does the -> do here: scope :published, -> { where(published: true) }