thibauts has quit [Read error: Operation timed out]
Xeago has quit [Remote host closed the connection]
predator217 has joined #ruby
diego1 has joined #ruby
pedda has joined #ruby
<pedda>
hi all
jcarouth has quit [Read error: Operation timed out]
djbkd has quit [Quit: Leaving]
rupee has quit [Quit: Leaving]
diego1 is now known as diegoviola
vlad_starkov has quit [Ping timeout: 256 seconds]
<pedda>
can someone help me with some ruby setup issue on mac os x 10.8.x ?
thibauts has joined #ruby
momomomomo has quit [Quit: momomomomo]
jcarouth has joined #ruby
epta has joined #ruby
predator117 has quit [Ping timeout: 252 seconds]
wyhaines has quit [Remote host closed the connection]
<sebastianb>
pedda: ask a question, maybe someone will answer
<pedda>
okay
<pedda>
i'm trying to setup a vagrant VM which scripts are based on ruby.. that'S why i need to handle updating the ruby version of my computer (which was by default 1.8.3)
rafacv has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Remote host closed the connection]
demet8 has quit [Quit: demet8]
RichardBaker has quit [Quit: RichardBaker]
<sebastianb>
pedda: you can install version you want with rbenv/rvm/ruby-build
<pedda>
i used some curl command found on ruby-lang.org/downloads
<pedda>
which installed rvm
<pedda>
ports (macports) iirc
<pedda>
i did also have homebrew packet manager installed
reset has quit [Quit: Leaving...]
<pedda>
which some seem to have a conflict nox
<sebastianb>
with rvm you can type 'rvm list known'
<pedda>
now
<sebastianb>
and choose a ruby version you want
<pedda>
the main point for me is now:
jbpros has quit [Quit: jbpros]
<pedda>
the component i need to upgrade/downgrade now is called chef-client
<pedda>
ususally i can enter chef-client in my termial and i should see some related output
<pedda>
but instead i get some ruby error
<popl>
will you get to your question?
<popl>
:)
<pedda>
sorry..
<popl>
there's a pastebin URL in the topic. you can paste your error message there.
<pedda>
i want to check the currently installed client version
nettoweb_ has quit [Ping timeout: 256 seconds]
Guga_ has quit [Quit: ~]
Guga_ has joined #ruby
JumpMast3r has joined #ruby
demet8 has joined #ruby
<sebastianb>
I've never used chef before, but did your read the first line of the error message?
<pedda>
yes i did
<popl>
the first line is just a warning
<pedda>
i was trying to downgrade chef when this started
<popl>
so this is a chef issue ultimately
DanKnox is now known as DanKnox_away
ciziar has quit [Quit: Computer has gone to sleep.]
reset has joined #ruby
<pedda>
is there a way to flush all gems
<popl>
what do you mean?
adamnbowen has quit [Quit: Computer has gone to sleep.]
<pedda>
like i messed up the setup of one and i want to revert it?
<pedda>
uninstall/reinstall
Myk267 has left #ruby [#ruby]
<pedda>
rvm is for managing ruby versions right?
arya_ has quit [Ping timeout: 248 seconds]
arya_ has joined #ruby
mbotros has quit [Ping timeout: 264 seconds]
ereslibre has quit [Ping timeout: 245 seconds]
<pedda>
sorry for being that novice
<popl>
My understanding is that rvm is not the best tool for the job.
<pedda>
gem is a package management option for ruby packages if i got it right
<popl>
I've seen that it is difficult for novices to get working correctly.
<pedda>
okay
futilegames has quit [Quit: futilegames]
<pedda>
how about resetting the whole thing?
nettoweb has joined #ruby
<havenwood>
pedda: To remove RVM entirely and start over: rvm implode
jonathanwallace has joined #ruby
ereslibre has joined #ruby
ereslibre has joined #ruby
ereslibre has quit [Changing host]
saarinen has joined #ruby
<pedda>
this will revert the command from ruby-lang.org/downloads?
<pedda>
the curl command for os x
<havenwood>
pedda: The RVM install script?
<havenwood>
pedda: Yup.
<pedda>
ah okay
rafacv has quit [Read error: Connection reset by peer]
aalmenar_ has joined #ruby
aalmenar has quit [Ping timeout: 245 seconds]
<pedda>
my ruby version should match the native delivered with os x right?
<havenwood>
pedda: RVM works well for installing and managing Rubies. Another option is to install Rubies with ruby-install and manage them with chruby.
LennyLinux has quit [Remote host closed the connection]
northelks has joined #ruby
twoism has quit [Remote host closed the connection]
zets has joined #ruby
danCe- has quit [Ping timeout: 256 seconds]
danCe- has joined #ruby
Asher1 has joined #ruby
fess has quit [Ping timeout: 256 seconds]
iamjarvo has joined #ruby
ttt has joined #ruby
Asher has quit [Ping timeout: 264 seconds]
reset has quit [Quit: Leaving...]
ttt has quit [Read error: Connection reset by peer]
ravster has joined #ruby
ttt has joined #ruby
Asher1 has quit [Ping timeout: 276 seconds]
diegoviola has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
`brendan has joined #ruby
kasper has joined #ruby
queston has joined #ruby
wsterling has quit [Remote host closed the connection]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
wallerdev has joined #ruby
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swordsmanz has quit [Ping timeout: 264 seconds]
adamnbowen has quit [Quit: Computer has gone to sleep.]
gildo has joined #ruby
lewis is now known as lewix
kasper has quit [Ping timeout: 276 seconds]
queston has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Ping timeout: 256 seconds]
unstable has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
<unstable>
I want to use nokogiri to scrape parts of a website. How can I scrape a website that I need to use tor/authentication to login to first?
arya_ has joined #ruby
machuga|away is now known as machuga
<unstable>
I can do things with wget, like load the cookies, and wrap wget in 'torify'. Though wget is difficult to add logic to, eg 'do x/y on this linked list'
Kricir has joined #ruby
kadoo has joined #ruby
demet8 has quit [Quit: demet8]
demet8 has joined #ruby
queston has joined #ruby
wo66le has joined #ruby
nbouscal has joined #ruby
<iamjarvo>
Enumerable#partition should always keep order right? [1,2,3,4,5,6,].parition{ |x| x.even? }.flatten
<iamjarvo>
should return [2,4,6,1,3,4]. sorry i tried hitting shift + enter
LetsNukeUSA has quit [Quit: Til rivido Idisti!]
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dgibson9 has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
mbotros has joined #ruby
kidkt has quit [Quit: Ex-Chat]
kadoo has joined #ruby
<popl>
iamjarvo: isn't [...] an Array?
<iamjarvo>
popl: yea, so its ordered
<iamjarvo>
so its should always keep order
<popl>
I don't see anything in the documentation guaranteeing that
<popl>
although the examples do show a particular order
cj3kim has quit [Remote host closed the connection]
kadoo has joined #ruby
nettoweb has joined #ruby
lindenle has quit [Quit: This computer has gone to sleep]
RobW_ has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 248 seconds]
DonRichie has joined #ruby
harrymoreno has quit [Quit: harrymoreno]
<pontiki_>
unstable: exec *replaces* your running process with the exec'd command
<pontiki_>
so there's nothing to come back to
dmiller has joined #ruby
harrymoreno has joined #ruby
<Kelet>
Looks like spawn or system is the way to do it if you really wanna do it that way
lyanchih has joined #ruby
yaboo has joined #ruby
<pontiki_>
or backtick
<Kelet>
or %x[] I suppose :)
<pontiki_>
%x is backtick, i think?
<Kelet>
no clue
haxrbyte_ has quit [Read error: Connection reset by peer]
<pontiki_>
but with fancy boundaries
vlad_starkov has quit [Ping timeout: 248 seconds]
_seanc_ has joined #ruby
cj3kim has joined #ruby
mars__ has joined #ruby
ner0x has quit [Quit: Leaving]
nomenkun has joined #ruby
Mars` has joined #ruby
dmiller has quit [Ping timeout: 268 seconds]
yacks has quit [Ping timeout: 246 seconds]
jlast has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
ssvo has joined #ruby
<unstable>
Kelet: Thanks, that seems to have fixed the problem.
RobW_ has quit [Quit: RobW_]
cjsarette has quit [Ping timeout: 245 seconds]
<unstable>
pontiki_: o I see, so if I use it, it should be the last instruction in my method?
<joelteon>
or ``
<joelteon>
oh, we covered that
cj3kim has joined #ruby
pranny has joined #ruby
dhruvasagar has joined #ruby
rippa has joined #ruby
yukonbob has joined #ruby
Mendon has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
queston has quit [Remote host closed the connection]
yukonbob has quit [Quit: quitter]
dkeefe75_ has quit [Quit: Leaving]
havenwood has joined #ruby
dgibson9 has quit [Quit: Lost terminal]
<pontiki_>
unstable: it's the very last command your script will run
<pontiki_>
so, yes, if that's what you want
havenn_ has joined #ruby
havenn_ has quit [Remote host closed the connection]
_Andres has joined #ruby
* pontiki_
falls off
havenn_ has joined #ruby
* popl
helps pontiki_ back up
<popl>
now we sing international song of friendship
<popl>
:P
harrymoreno has quit [Quit: harrymoreno]
havenwood has quit [Ping timeout: 252 seconds]
<unstable>
If I have an each iterator.. with say 20 items. I'm using debugger to find a problem.. how can I skip 1 of the 20 iterations? I'm using nokogiri, so when I type 'next', it shows me some nokogiri stuff.. I have to keep typing next.
jlast has quit [Ping timeout: 240 seconds]
locriani has joined #ruby
havenn_ is now known as havenwood
nettoweb has quit [Read error: Connection reset by peer]
reset has joined #ruby
Domon has joined #ruby
codecop has joined #ruby
philcrissman_ has joined #ruby
AlHafoudh has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
x1337807x has joined #ruby
axeman_ has joined #ruby
twoism has quit [Remote host closed the connection]
serp` has joined #ruby
mmitchell has joined #ruby
d4rkstalk3r has joined #ruby
anom127001 has joined #ruby
<anom127001>
any programming mentors out there
benlieb has quit [Quit: benlieb]
BizarreCake has joined #ruby
mmitchell has quit [Ping timeout: 256 seconds]
dmiller has joined #ruby
tjbiddle has joined #ruby
yacks has joined #ruby
anom127001 has quit [Quit: leaving]
adamnbowen has quit [Quit: Computer has gone to sleep.]
cjsarette has joined #ruby
brennanMKE has joined #ruby
n_blownapart has quit [Remote host closed the connection]
ct_ has joined #ruby
ct_ has quit [Client Quit]
dmiller has quit [Ping timeout: 256 seconds]
vit has joined #ruby
harrymoreno has joined #ruby
codezombie has joined #ruby
_seanc_ has quit [Quit: _seanc_]
lurch_ has joined #ruby
<lewix>
=)
generalissimo has joined #ruby
tagrudev has joined #ruby
generalissimo has quit [Remote host closed the connection]
drfreeze has quit [Read error: Operation timed out]
MrSamuel has joined #ruby
cjsarette has quit [Ping timeout: 256 seconds]
tjbiddle has quit [Quit: tjbiddle]
brennanMKE has quit [Ping timeout: 256 seconds]
devdazed has quit [Ping timeout: 264 seconds]
cj3kim has quit [Remote host closed the connection]
queston has joined #ruby
Davai__ has quit [Quit: Ex-Chat]
devdazed has joined #ruby
jlast has joined #ruby
ananthakumaran has joined #ruby
mmozuras has joined #ruby
stkowski has quit [Quit: stkowski]
macmartine has joined #ruby
GeissT_ has joined #ruby
serp` has quit [Quit: serp`]
cjsarette has joined #ruby
jimg has joined #ruby
GeissT has quit [Ping timeout: 256 seconds]
havenwood has quit [Remote host closed the connection]
queston has quit [Ping timeout: 246 seconds]
DonRichie has quit [Quit: Verlassend]
i_s has quit [Read error: Connection reset by peer]
krainboltgreene has quit [Read error: Connection reset by peer]
i_s has joined #ruby
jimg has quit [Ping timeout: 252 seconds]
<unstable>
http://pastie.org/8102315 ... I am trying to get access to 'Concentrates', 99 and 'website.org...'
krainboltgreene has joined #ruby
<unstable>
Does anyone know what the methods are to access this Nokogiri object and get the specified data from them?
drfreeze has joined #ruby
locriani_ has joined #ruby
Spaceghost|work has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
_reset has joined #ruby
adamnbowen has joined #ruby
locriani_ has quit [Client Quit]
locriani_ has joined #ruby
_bart_ has joined #ruby
mahmoudimus has joined #ruby
vlad_starkov has joined #ruby
<macmartine>
unstable: as the docs say, you can do it by searching nodes by css, xpath or both
Hobogrammer_ has quit [Read error: Connection reset by peer]
locriani has quit [Remote host closed the connection]
pipework has quit [Read error: Connection reset by peer]
reset has quit [Read error: Connection reset by peer]
_bart has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 276 seconds]
locriani_ is now known as locriani
Tarential has quit [Excess Flood]
Tarential has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jimg has joined #ruby
jeremy_c has quit [Ping timeout: 256 seconds]
micah` has quit [Ping timeout: 256 seconds]
macmartine has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Ping timeout: 240 seconds]
micah` has joined #ruby
braoru has joined #ruby
corehook_ has joined #ruby
bionoid has joined #ruby
Shirakawasuna has joined #ruby
Shirakawasuna has joined #ruby
bionoid has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
julweber has joined #ruby
vlad_starkov has joined #ruby
krz has joined #ruby
jbpros has joined #ruby
RomainT has joined #ruby
<sami>
I've been trying to install gems. They seem to be installed without any errors but are unusable. Do i have to set where ruby should look? At the moment they are placed in /usr/local/lib/ruby/gems/2.0.0/gems/
jimg has quit [Remote host closed the connection]
jprovazn has joined #ruby
jlast has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
jbpros has quit [Client Quit]
tkuchiki has joined #ruby
ferr has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
jimg_ has quit [Remote host closed the connection]
timonv_ has quit [Read error: Connection reset by peer]
codesoda has joined #ruby
timonv has joined #ruby
Guest43462 has quit [Changing host]
Guest43462 has joined #ruby
Guest43462 is now known as Niichan
jibi has joined #ruby
dodosan has joined #ruby
haxrbyte has joined #ruby
ybart has joined #ruby
sk87 has joined #ruby
<jokke>
hi, is it possible to write a standalone rspec test script that is executable?
lkba has quit [Ping timeout: 252 seconds]
<jokke>
i want to write a script that automates some sql tests.
<jokke>
and i like the rspec syntax and output
mklappstuhl has quit [Remote host closed the connection]
jlast has joined #ruby
ephemerian has joined #ruby
iamjbecker has quit [Remote host closed the connection]
Rylai has quit [Quit: *.net *.split]
<MrZYX>
MiniTest::Spec offers a similar DSL and ships with ruby these days, maybe you want to look into that
jimg has joined #ruby
Niichan has quit [Ping timeout: 246 seconds]
haxrbyte_ has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
Rylai has joined #ruby
pipework has quit [Ping timeout: 256 seconds]
haxrbyte_ has joined #ruby
pipework has joined #ruby
ghr has joined #ruby
noname001 has joined #ruby
haxrbyte has quit [Ping timeout: 248 seconds]
tvw has joined #ruby
Shirakawasuna has quit [Ping timeout: 276 seconds]
maxmanders has joined #ruby
jbpros has joined #ruby
jimg has quit [Ping timeout: 256 seconds]
dmiller has joined #ruby
scrollback has quit [Remote host closed the connection]
ferdev has quit [Quit: ferdev]
scrollback has joined #ruby
<jokke>
oh ok cool
<jokke>
thanks
Niichan has joined #ruby
alpaca_taichou has joined #ruby
elaptics`away is now known as elaptics
ghr has quit [Quit: Computer has gone to sleep.]
jds_ has joined #ruby
Kar- has joined #ruby
jlast has quit [Ping timeout: 246 seconds]
jeremy_c has joined #ruby
ghr has joined #ruby
LetsNukeUSA has joined #ruby
dmiller has quit [Ping timeout: 252 seconds]
alpaca_taichou has quit [Remote host closed the connection]
cj3kim has joined #ruby
jds_ has quit [Ping timeout: 276 seconds]
mengu has joined #ruby
aqil has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
Davey has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
camilasan has joined #ruby
chichou has quit [Remote host closed the connection]
r0bby has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
<jokke>
anyone know how to execute .sql files in sequel?
jonahR has quit [Quit: jonahR]
yourmysin has joined #ruby
TIJ has joined #ruby
ffio_ has joined #ruby
Domon has quit [Remote host closed the connection]
ffio has quit [Ping timeout: 256 seconds]
timonv has quit [Remote host closed the connection]
forced_request has quit [Ping timeout: 252 seconds]
Domon has joined #ruby
browndawg has quit [Ping timeout: 252 seconds]
jimg has joined #ruby
razi has joined #ruby
pranny has quit [Quit: Leaving.]
arya_ has quit [Ping timeout: 248 seconds]
codesoda has quit [Remote host closed the connection]
ejnahc_ has quit [Remote host closed the connection]
jbpros has quit [Quit: jbpros]
Dragos has joined #ruby
mikewintermute has joined #ruby
allanix has left #ruby [#ruby]
tatsuya_o has joined #ruby
Niichan has quit [Quit: Damned network cable squirrels]
aaronmcadam has joined #ruby
javiferrer has joined #ruby
arya_ has joined #ruby
marcgg has joined #ruby
whowantstolivefo has joined #ruby
emergion has joined #ruby
jlast has joined #ruby
d4rkstalk3r has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
whowantstolivefo has quit [Client Quit]
troessner has quit [Ping timeout: 248 seconds]
whowantstolivefo has joined #ruby
zai has joined #ruby
jbpros has joined #ruby
dodosan has quit [Remote host closed the connection]
byprdct has joined #ruby
marcgg_ has quit [Ping timeout: 256 seconds]
alpaca_taichou has joined #ruby
ferdev has joined #ruby
h8R has joined #ruby
jbpros has quit [Client Quit]
gstamp has quit [Quit: Computer has gone to sleep.]
ejnahc has joined #ruby
eka has joined #ruby
ejnahc has quit [Max SendQ exceeded]
binaryplease has joined #ruby
mogsy has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
gyre007 has joined #ruby
D4T has joined #ruby
charliesome has joined #ruby
aqil has quit [Ping timeout: 248 seconds]
ejnahc has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
Niichan has joined #ruby
ericmathison has quit [Ping timeout: 260 seconds]
jlast has quit [Ping timeout: 252 seconds]
Niichan is now known as Guest66476
crazymykl has quit [Ping timeout: 256 seconds]
reset has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
sk87 has joined #ruby
Al__ has joined #ruby
<D4T>
Hi all, I'm struggling with a regex for this string. I just want to match the name of the company from it: " name = \"Great Plumbing Services Ltd\", "
<D4T>
any got any pointers?
Macaveli has joined #ruby
Macaveli has left #ruby [#ruby]
Macaveli has joined #ruby
<popl>
is there actually a newline in it or is that an artifact of you pasting it?
rickruby has quit [Remote host closed the connection]
rickruby has joined #ruby
alpaca_taichou has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
ntus1017 has quit [Remote host closed the connection]
<jokke>
any ideas how to test that something does _not_ raise an exception?
LetsNukeUSA has quit [Ping timeout: 240 seconds]
gasbakid has quit [Ping timeout: 252 seconds]
mklappstuhl has joined #ruby
b0oh has quit [Quit: Leaving.]
jlast has quit [Ping timeout: 276 seconds]
gasbakid has joined #ruby
Jackneill has quit [Remote host closed the connection]
RomainT has left #ruby [#ruby]
locriani has joined #ruby
yebyen has quit [Ping timeout: 256 seconds]
Peej has quit [Ping timeout: 248 seconds]
Peej has joined #ruby
ij has joined #ruby
LetsNukeUSA has joined #ruby
dwirc has quit [Ping timeout: 264 seconds]
KhalilC has joined #ruby
<D4T>
MrZYX: whats the ", 1" do?
crazymykl has joined #ruby
postmodern has quit [Ping timeout: 252 seconds]
dwirc has joined #ruby
<ij>
I've got a function that maps an object to an enriched object, by adding some attributes to it. Currently it operates on a set of objects, by taking array that it maps over. But wouldn't it be "more correct" to make it _only_ enrich an object and then call set.map(&method(:enrich_obj)), if i need to do that for all?
MrZYX is now known as MrZYX|off
locriani has quit [Ping timeout: 240 seconds]
zigomir has quit [Quit: zigomir]
girija has joined #ruby
fermion has joined #ruby
postmodern has joined #ruby
dwirc has quit [Remote host closed the connection]
LennyLinux has joined #ruby
dwirc has joined #ruby
yshh has quit [Remote host closed the connection]
sayan has quit [Quit: Leaving]
ybart has quit [Quit: ybart]
LennyLinux is now known as Virunga
arietis has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
<arietis>
hi
<arietis>
what's the point to require 'rubygems'?
<ij>
Sveiks ārieti.
<D4T>
MrZYX: whats the ", 1" do?
<D4T>
oops
yebyen has joined #ruby
<ij>
arietis, Defines "gem" method to get specific versions of gems.
yebyen is now known as Guest34729
<ij>
It also redefines require to find gems installed by rubygems.
dwirc has quit [Remote host closed the connection]
codesoda has joined #ruby
Jeep has joined #ruby
Peej has quit [Disconnected by services]
dwirc has joined #ruby
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
ntus1017 has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
jlast has joined #ruby
sayan has joined #ruby
lyanchih has quit [Quit: lyanchih]
sayan has quit [Remote host closed the connection]
<arietis>
for god's sake
jimg has quit [Remote host closed the connection]
<arietis>
trying to make local bundle with nokogiri
<arietis>
but it says wrong libxml2 version
lurch_ has quit [Quit: lurch_]
<arietis>
oh, works now after i installed gem manually
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
hogeo_ has quit [Remote host closed the connection]
camilasan has joined #ruby
obs has joined #ruby
hogeo has joined #ruby
hogeo_ has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
hogeo_ has quit [Remote host closed the connection]
hogeo has joined #ruby
LucidDreamZzZ has quit [Remote host closed the connection]
osvico has quit []
dwirc has joined #ruby
LucidDreamZzZ has joined #ruby
niceguyjames has joined #ruby
hogeo has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
vinnyOcean has joined #ruby
ij has quit [Quit: WeeChat 0.3.9.2]
poseid has joined #ruby
mklappstuhl has joined #ruby
dwirc has quit [Ping timeout: 252 seconds]
lkba has joined #ruby
camilasan has quit [Remote host closed the connection]
epta has quit [Ping timeout: 252 seconds]
poseid has quit [Quit: poseid]
sailias has quit [Ping timeout: 240 seconds]
obs has quit [Quit: Konversation terminated!]
wmoxam has joined #ruby
dwirc has joined #ruby
justsee has joined #ruby
ldnunes has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
KevinSjoberg has joined #ruby
pedda has joined #ruby
<pedda>
hi there
Guest11910 has quit [Ping timeout: 248 seconds]
Squarepy has joined #ruby
dwirc has quit [Ping timeout: 268 seconds]
lemonsparrow has quit [Ping timeout: 250 seconds]
gildo has joined #ruby
ntus1017 has quit [Remote host closed the connection]
jlast has joined #ruby
sk87 has joined #ruby
ybart has quit [Quit: ybart]
dwirc has joined #ruby
mark_locklear has joined #ruby
devoldmx3 has joined #ruby
cj3kim has joined #ruby
wmoxam has quit [Ping timeout: 252 seconds]
Zeeraw has joined #ruby
and has joined #ruby
sambao21 has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
Ortuna has left #ruby ["IRC Leave"]
epta has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
cj3kim has quit [Read error: Connection reset by peer]
wsterling has quit [Remote host closed the connection]
devoldmx3 has quit [Read error: Connection reset by peer]
Spooner has joined #ruby
devoldmx has joined #ruby
Fire-Dragon-DoL has joined #ruby
jlast has quit [Ping timeout: 256 seconds]
graydot has quit [Quit: graydot]
Guest11910 has joined #ruby
Squarepy_ has joined #ruby
Squarepy has quit [Read error: Connection reset by peer]
ur5 has quit [Quit: WeeChat 0.3.6]
jbpros has joined #ruby
Guest34729 is now known as yebyen
devoldmx has quit [Ping timeout: 248 seconds]
hogeo has joined #ruby
devoldmx has joined #ruby
<and>
Hi, can anyone help me get through a ssl problem. I have setup ssl on an apache server, but I still get certificate verify failed error. It seems like I've read every piece of information out there and I just can't solve this issue. I'm pretty new to ruby so maybe I just missed some detail, if anyone could help in anyway I would greatly appreciate it.
stunthamster has quit [Quit: Leaving...]
splittingred has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
Squarepy_ is now known as Squarepy
aaronmcadam has quit [Quit: Leaving...]
MrZYX|off is now known as MrZYX
r0bgleeson has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 248 seconds]
nomenkun has joined #ruby
r0bgleeson has joined #ruby
codesoda has quit [Remote host closed the connection]
splittingred has quit [Client Quit]
jorge has joined #ruby
jbpros has quit [Quit: jbpros]
crazymykl has joined #ruby
DaniG2k has quit [Quit: Leaving.]
Dekade has joined #ruby
<Dragos>
HELLO
bitkiller has joined #ruby
<Dragos>
can somebody help me out with an example or something that explains how to call a method from a super class in its child?
<r0bgleeson>
you cant call a child method from the superclass
<r0bgleeson>
you can call a parent method from a subclass
<Dragos>
yes but how, if i want to overwrite it ?
<Zeeraw>
And if you mean you want to call the superclass methods, they should all already be available in the child unless you've overridden them.
<and>
No one?
<Dragos>
please let me give an example
<Dragos>
class Fo
<Dragos>
def add
<Dragos>
end
<Dragos>
end
<r0bgleeson>
>> class Parent; def foo; "hi"; end; end; class Child < Parent; def foo; super; end; end Child.new.foo
<Dragos>
yes i've understood this but class Foo; def add; code_here;end; end; class Boo<Foo; def add; here_goes_the_call_to_super_class; more_code; end; end;
<Dragos>
it does'n seem to work
<r0bgleeson>
it should work
<r0bgleeson>
just call super and add the extra code below it
cj3kim has joined #ruby
anay has quit [Remote host closed the connection]
<Dragos>
well my question is with what should I replace "here goes the call to super_class method add"
<r0bgleeson>
if you need return value of parent method, its foo = super; foo.do_something
sailias has joined #ruby
stunthamster has joined #ruby
noname001 has quit [Remote host closed the connection]
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
<r0bgleeson>
you should replace it with 'super'
<r0bgleeson>
thats how you call the parent method
carloslopes has joined #ruby
ayaz has quit [Ping timeout: 246 seconds]
<Dragos>
so in my case wold be class Boo<Foo ; def add ; Foo.add; "Hi"; end; end;
<Dragos>
?
queston has quit [Remote host closed the connection]
<r0bgleeson>
no
<r0bgleeson>
why are you ignoring what i say?
<r0bgleeson>
first of all Foo is an instance method
<r0bgleeson>
sorry, 'add' is an instance method
<r0bgleeson>
you cant call it like that
<r0bgleeson>
you use super
<Dragos>
so in my case wold be class Boo<Foo ; def add ; super.add; "Hi"; end; end;
<Dragos>
would that be correct?
<r0bgleeson>
nope.
<r0bgleeson>
super.add as far as syntax goes is correct
<r0bgleeson>
but it calls add on the return value of the parent method
<r0bgleeson>
so its not what you want
breakingthings has joined #ruby
fixl has quit [Remote host closed the connection]
anonymuse has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
<r0bgleeson>
'super' is equivalent to calling 'add' on the parent class
<r0bgleeson>
thats all you need
LucidDreamZzZ has quit [Remote host closed the connection]
LucidDreamZzZ has joined #ruby
asteve has joined #ruby
pipework has quit [Remote host closed the connection]
<r0bgleeson>
'super' is the method call to the parent class, you don't need to call anything on it for it to execute the parent method
jlast has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
<Dragos>
well let me explain better basically what I am trying to do is create an class Repository that has some methods like add remove , then i want to create another class Repository_in_file that uses exactly the same methods but adds something to them for example it does what Repository add method does but it also writes to file
KevinSjoberg has joined #ruby
<r0bgleeson>
ive given you all the information i can
codecop has quit [Remote host closed the connection]
<Dragos>
ok, thanks a lot for your time
maxmanders has joined #ruby
<r0bgleeson>
sure
angusiguess has joined #ruby
mmitchell has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
sailias has quit [Quit: Leaving.]
noname001 has joined #ruby
jerius has joined #ruby
camilasan has joined #ruby
v0n has joined #ruby
devoldmx has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
bamdad has joined #ruby
Dragos has left #ruby ["Leaving"]
axl_ has quit [Quit: axl_]
kindjal has joined #ruby
ur5 has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
ur5 has left #ruby ["WeeChat 0.3.6"]
sambao21 has joined #ruby
kasper has quit [Remote host closed the connection]
Snaggle has joined #ruby
kasper has joined #ruby
blackmesa has joined #ruby
kpshek has joined #ruby
relix has joined #ruby
fuzzyhorns has joined #ruby
ferr has quit [Remote host closed the connection]
atyz has joined #ruby
wmoxam has joined #ruby
b0oh has joined #ruby
Davey has joined #ruby
jorge has quit [Remote host closed the connection]
matchaw_ has quit [Ping timeout: 264 seconds]
gildo has quit [Remote host closed the connection]
matchaw has joined #ruby
cmarques has joined #ruby
thoolihan has joined #ruby
sailias has joined #ruby
davetherat has quit [Remote host closed the connection]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davetherat has joined #ruby
fredjean has quit [Quit: Computer has gone to sleep.]
machuga|away is now known as machuga
cj3kim has joined #ruby
jetblack has quit [Ping timeout: 246 seconds]
brennanMKE has quit [Remote host closed the connection]
julweber has quit [Remote host closed the connection]
axl_ has joined #ruby
anay has joined #ruby
failshell has joined #ruby
<Snaggle>
Hi. Is there a way to run unittests on a not-yet installed ruby gem with ruby 1.9 or 2.0? So "download gem .. gem test foo.gem .. gem install foo.gem " ? gem check -t got removed after 1.8
philcrissman_ has quit [Remote host closed the connection]
D4T has joined #ruby
johnmilton has joined #ruby
zoon has quit [Quit: leaving]
<zets>
2.0.0 isn't that hugely different from 1.9.3, so updating really isn't too painful
s__dana has joined #ruby
maxmanders has joined #ruby
hogeo has quit [Ping timeout: 246 seconds]
D4T has quit [Client Quit]
ananthakumaran has quit [Quit: Leaving.]
maxmanders has quit [Client Quit]
niceguyjames has quit [Quit: Computer has gone to sleep.]
Guest11910 has quit [Ping timeout: 256 seconds]
niceguyjames has joined #ruby
cofin has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Remote host closed the connection]
codesoda has joined #ruby
wmoxam_ has joined #ruby
jerius_ has joined #ruby
enebo has joined #ruby
cj3kim has joined #ruby
asteve has joined #ruby
wargasm has joined #ruby
geggam has quit [Quit: Leaving]
DaniG2k has quit [Quit: Leaving.]
wmoxam has quit [Quit: leaving]
cofin has joined #ruby
wmoxam_ has quit [Client Quit]
wmoxam has joined #ruby
mupkoo has quit [Remote host closed the connection]
ColKurtz has joined #ruby
DaniG2k has joined #ruby
jerius has quit [Ping timeout: 252 seconds]
jbpros has quit [Quit: jbpros]
sambao21 has joined #ruby
theRoUS has joined #ruby
theRoUS has joined #ruby
codesoda has quit [Ping timeout: 245 seconds]
v1n has joined #ruby
interactionjaxsn has joined #ruby
mnms_ has quit [Ping timeout: 248 seconds]
cj3kim has quit [Ping timeout: 252 seconds]
v0n has quit [Read error: Operation timed out]
ttt has quit [Remote host closed the connection]
and has quit [Quit: Leaving]
statarb3 has quit [Quit: Leaving]
boblu has quit [Quit: Leaving]
marcgg_ has joined #ruby
viszu has joined #ruby
enebo has quit [Quit: enebo]
generalissimo has joined #ruby
adamnbowen has joined #ruby
camilasan has quit [Remote host closed the connection]
baordog has joined #ruby
pipework has quit [Read error: Connection reset by peer]
brasten has joined #ruby
JMcAfreak has joined #ruby
dkannan has joined #ruby
therealnoop has quit [Ping timeout: 252 seconds]
marcgg has quit [Ping timeout: 264 seconds]
jibi has quit [Quit: .]
stunthamster has joined #ruby
dkannan has quit [Client Quit]
queston has joined #ruby
dkannan has joined #ruby
burlyscudd has quit [Quit: Leaving.]
jibi has joined #ruby
samuel02 has quit [Remote host closed the connection]
camilasan has joined #ruby
samuel02 has joined #ruby
mnms has joined #ruby
julweber has quit [Remote host closed the connection]
jefflyne has joined #ruby
blaxter has quit [Read error: Operation timed out]
banghouse2 is now known as banghouse
miclen has joined #ruby
Zai00 has joined #ruby
jbpros has joined #ruby
Jalada has quit [Ping timeout: 248 seconds]
lyanchih has quit [Quit: lyanchih]
bmurt has joined #ruby
D4T has joined #ruby
lindenle has joined #ruby
<dwirc>
with activerecord migrations, does the class name in the migration have any bearing on the class name used in the app? That is, do I need to be concerned with class names in the migration file from the standpoint of functionality (ignoring long-term maintenance considerations)
wallerdev has joined #ruby
hydrozen has joined #ruby
eka has joined #ruby
<bmurt>
good morning, im having issues compiling ruby 1.9.3 p194 w/ readline support during the initial ruby configure, make & make install on ubuntu 12.04 x64. i install both libreadline-gplv2-dev & libncurses5-dev via apt-get prior to running the configure, but i end up having to go into the ruby dir/ext/readline and run ruby extconf, etc.
ravster has joined #ruby
<bmurt>
am i missing a package or is there an option i can include on my ./configure to point to where readline is?
DrCode has quit [Remote host closed the connection]
D4T has quit [Client Quit]
jlast has joined #ruby
BillCriswell has joined #ruby
verto has joined #ruby
tagrudev has quit [Remote host closed the connection]
Snaggle has left #ruby [#ruby]
Astral_ has joined #ruby
mary5030 has joined #ruby
braoru has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 256 seconds]
locriani has joined #ruby
Jalada has joined #ruby
mary5030_ has joined #ruby
DrCode has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
pipework has joined #ruby
alex__c2022 has joined #ruby
mbotros has joined #ruby
ffranz has joined #ruby
marcgg has joined #ruby
Uranio has joined #ruby
rhys_ has joined #ruby
v1n has quit [Read error: Operation timed out]
sambao21 has joined #ruby
Astralum has quit [Ping timeout: 252 seconds]
freeayu3 has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 240 seconds]
Es0teric has joined #ruby
locriani has quit [Ping timeout: 268 seconds]
trepidaciousMBR has joined #ruby
pentameter has joined #ruby
marcgg_ has quit [Ping timeout: 252 seconds]
b0oh has quit [Quit: Leaving.]
<trepidaciousMBR>
Just (re)starting looking at Ruby, I'm on 1.9.1, having trouble finding docs for digest MD5 stuff, any suggestions?
<_br_>
bmurt: The lib is not installed in the /usr/lib /lib paths?
weldan_ has joined #ruby
blaxter has joined #ruby
b0oh has joined #ruby
ntus1017 has joined #ruby
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
RobW_ has joined #ruby
D4T has joined #ruby
dmiller has joined #ruby
weldan has quit [Ping timeout: 245 seconds]
<trepidaciousMBR>
I had a look on http://ruby-doc.org/ for 1.9.3, but it doesn't seem to think the MD5 stuff exists
jlast has quit [Read error: Connection reset by peer]
<trepidaciousMBR>
I'm just trying to work out how to get the digest as binary data rather than hex encoded
emergion has quit [Quit: Computer has gone to sleep.]
v0n has joined #ruby
ner0x has joined #ruby
<_br_>
bmurt: you installed readline manually into /usr/local? Or was that via apt-get ?
<bmurt>
via apt-get
anay has quit [Remote host closed the connection]
<MrZYX>
trepidaciousMBR: just #digest
<trepidaciousMBR>
MrZYX: Thanks :)
<_br_>
bmurt: Well, seems to be a #ubuntu issue then. Ruby installer takes the stuff from the standard paths which should include readline libs/headers etc.
<bmurt>
the odd thing is if i go into /usr/local/ruby1.9.3-p194 then into ext/readline
<bmurt>
and run the install, it works
<_br_>
bmurt: Ok, it might also be a ruby patchlevel issue. Did you try other rubies? 2.0?
locriani has quit [Remote host closed the connection]
pinage404 has joined #ruby
<bmurt>
i did not simply because this is the version our app runs currently & staying consistent
Kruppe has joined #ruby
<bmurt>
im wondering if its the libreadline package, 12.04 is kinda retarded and has numerous versions available
<_br_>
bmurt: Did you try installing the stuff via rvm or rbenv? That might allow you to define the locations via --some-argument-rtfm ?
<Mon_Ouie>
Yeah, I think I'd use that approach too
jprovazn has quit [Quit: Leaving]
<norm>
MrZYX: not "gem install", updating an existing gem
robscomputer has joined #ruby
DaniG2k has quit [Quit: Leaving.]
AlHafoudh has quit [Quit: Computer has gone to sleep.]
DaniG2k has joined #ruby
<roryhughes>
Great and i just found that there is a file on Unix systems located in /usr/share/dict/words
<roryhughes>
contains ALL the words
obs has quit [Quit: Konversation terminated!]
fredjean has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
ciziar has joined #ruby
whowantstolivefo has quit [Quit: who wants to live forever ?]
jerius has joined #ruby
D4T has joined #ruby
lindenle has quit [Quit: This computer has gone to sleep]
adamnbowen has quit [Ping timeout: 256 seconds]
rdark has quit [Ping timeout: 256 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
awarner has joined #ruby
burlyscudd has joined #ruby
jerius_ has quit [Ping timeout: 256 seconds]
nbouscal has joined #ruby
<MrZYX>
norm: as said, works over here
rdark has joined #ruby
<norm>
MrZYX: looks like i've got another gem that specifies sequel >= 3.28.0
popl has joined #ruby
<norm>
chasing them down now
rippa has joined #ruby
DestinyAwaits has joined #ruby
DestinyAwaits has joined #ruby
DestinyAwaits has quit [Changing host]
<MrZYX>
at least bundler should handle that
<_br_>
roryhughes: /p\w+/.gen -> randexp gem
generalissimo has quit [Remote host closed the connection]
<roryhughes>
yup, thats what i was just trying
<roryhughes>
Thanks, you guys are v. helpful
<_br_>
it needs to be "real" words ?
<roryhughes>
well, yes
<roryhughes>
i have a dict file
froy has joined #ruby
kpshek has quit []
geggam has joined #ruby
ybart has quit [Quit: ybart]
zigomir has quit [Quit: zigomir]
lyanchih has joined #ruby
kasper has quit [Remote host closed the connection]
kevinykchan has joined #ruby
pentameter has quit [Quit: Leaving]
julweber has joined #ruby
banghouse is now known as InEssA
InEssA is now known as banghouse
sambao21 has quit [Quit: Computer has gone to sleep.]
nomenkun has quit [Remote host closed the connection]
<lectrick>
Does anyone know of someone who provides a secure hosted IRC server service?
cj3kim has joined #ruby
ntus1017 has quit [Remote host closed the connection]
kevinykchan has quit [Read error: Connection reset by peer]
arya__ has joined #ruby
<_br_>
lectrick: What do you mean by "secure hosted" ?
kpshek has joined #ruby
Judge has quit [Remote host closed the connection]
<lectrick>
I mean that I can use any IRC software to connect to it, I need to authenticate to it somehow, it operates over SSL, and chat logs are only accessible to authenticated persons.
ZuzzleBuzzer has quit [Quit: ZuzzleBuzzer]
<lectrick>
_br_ ^
samuel02 has quit [Ping timeout: 246 seconds]
kreisys has quit [Quit: Computer has gone to sleep.]
tatsuya_o has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 246 seconds]
arya_ has quit [Ping timeout: 248 seconds]
<_br_>
lectrick: Run your own IRC service on a vps ?
<GeekOnCoffee>
Run your own IRC service on a server in your home
RichardBaker has joined #ruby
<GeekOnCoffee>
only way you're going to guarantee that the logs are only available to the people you want
<GeekOnCoffee>
if it's logging, somebody at the VPS operator could get access to it
alpaca_taichou has quit [Remote host closed the connection]
<_br_>
well sure, if you are extremely paranoid that is the way to go. Nothing wrong with throwing that onto a small r-pi
Squarepy has quit [Remote host closed the connection]
sambao21 has joined #ruby
abstrusenick has joined #ruby
enebo has joined #ruby
ttt_ has joined #ruby
jprovazn has joined #ruby
ssvo has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
pen has joined #ruby
ntus1017 has joined #ruby
ckrailo has joined #ruby
cr3 has joined #ruby
<cr3>
how does Ruby behave when I chain blocks iterating over iteams: [1,2,3].each { |x| do_something }.each { |y| do_something_else }...
<_br_>
roryhughes: Btw. you can use randexp standard dicts, or you can easily provide your own... words = Randexp::Dictionary.load_dictionary.delete_if { |i| i[0] != "h" } ; p words[ rand( words.length - 1 ) ]
maxmanders has joined #ruby
gildo has joined #ruby
chrishough has joined #ruby
kaichanvong has joined #ruby
<_br_>
cr3: What do you mean by "behave" ?
haxrbyte has joined #ruby
<roryhughes>
That looks good but I've got this Randexp::Dictionary.words.grep(Regexp.new("^#{letter}")).sample
D4T has quit [Quit: Computer has gone to sleep.]
<_br_>
yeah better
fmcgeough has quit [Read error: Connection reset by peer]
ferdev has quit [Quit: ferdev]
ttt_ has quit [Ping timeout: 256 seconds]
<cr3>
_br_: I think I just answered my question by trying it out: [1,2,3].each { |x| puts "x: #{x}" }.each { |y| puts "y: #{y}" }
generalissimo has joined #ruby
<_br_>
cr3: you puzzle me
freestyl3r has joined #ruby
<cr3>
_br_: I was wondering whether to expect x: 1, y: 1... or x:1, x: 2...
<_br_>
I see
ssvo has quit [Ping timeout: 252 seconds]
DaniG2k has left #ruby [#ruby]
<MrZYX>
never saw a need for that, iirc #each has no defined return value, so I wouldn't rely on that
momomomomo has joined #ruby
<freestyl3r>
Hello. I come from a C background and i need help refactoring the following script i wrote http://collabedit.com/td835
<cr3>
_br_: if you happen to have an explanation of how Ruby behaves internally to explain this behavior, I'd be really interested
wolcanus has quit [Remote host closed the connection]
<freestyl3r>
It checks if a file with tokens exists and if not, instructs the user to go to a webpage, allow access to my app and enter the PIN from the site back to the program so i can exchange it with an access_token
<freestyl3r>
Then i upload the picture (taken with 'scrot' utility) to the users album, put the direct link on clipboard, and show a system notification
<freestyl3r>
If the access_token is expired (lasts only 60 mins) i use the refresh token i got from the first auth step to get a new one. I update the file i keep for later uses
dodosan has joined #ruby
samuel02 has joined #ruby
mahmoudimus has joined #ruby
<freestyl3r>
i feel i should be using a class. i just don't know what's the best way to deal with instance variables, initialize method etc
deception has joined #ruby
acrussell has joined #ruby
jonahR has joined #ruby
acrussell has left #ruby [#ruby]
alex__c2022 has quit [Quit: alex__c2022]
<MrZYX>
cr3: foo { bar }.baz and block = proc { bar }; foo(&block).baz are equivalent calls, you chain to the return value, not the block
tvw has quit []
<MrZYX>
freestyl3r: find your objects, at least you got an AccessToken with a @lifetime, you got a RefreshToken and an Uploader
<MrZYX>
your globals are actually constants
fredjean has quit [Quit: Computer has gone to sleep.]
gildo has quit [Ping timeout: 246 seconds]
ssvo has joined #ruby
dodosan has quit [Read error: Connection reset by peer]
aganov has quit [Remote host closed the connection]
thetristan has joined #ruby
kadoo has joined #ruby
i_s has joined #ruby
nomenkun has quit [Remote host closed the connection]
dkannan has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
fredjean has joined #ruby
i_s has quit [Read error: Connection reset by peer]
burlyscudd has quit [Quit: Leaving.]
r0bby has quit [Read error: Connection reset by peer]
Solnse has joined #ruby
r0bby has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Shirakawasuna has joined #ruby
axeman- has quit [Remote host closed the connection]
<_br_>
Actually it says in the first pastie "Can't handle 1.9.x yet"
tjbiddle_ has joined #ruby
nomenkun has joined #ruby
<xeviox>
yes, I'm on 2.0.0
<Ziarkaen>
Can anyone do better than Time.now.strftime('%U').to_i % 4 and Date.today.friday?
<xeviox>
so there is no ruby-debug for 2.0.0 yet?
<xeviox>
Ziarkaen: the problem is, that you have to specify the 4th week from when.. imho
<_br_>
xeviox: no that is for linecache gem
<Ziarkaen>
xeviox, I'm not concerned about the shift, just the 4-weekly frequency
hydrozen has quit [Remote host closed the connection]
<xeviox>
_br_: ok, but linecache is pulled from ruby-debug so it will fail on 2.0.0 if linecache is not present..
tjbiddle has quit [Ping timeout: 246 seconds]
tjbiddle_ is now known as tjbiddle
brennanMKE has joined #ruby
<xeviox>
Ziarkaen: sure, but how to recognize if it is the 4th week ?
hydrozen has joined #ruby
<Ziarkaen>
I'm also concerned that Date.today.cweek != Time.now.strftime('%U').to_i ... :/
mikepack has quit [Remote host closed the connection]
niceguyjames has quit [Quit: Computer has gone to sleep.]
mikepack has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
<xeviox>
Ziarkaen: maybe you could define some startdate, then subtract that from the current date and check if the number of weeks is dividable by 4 without rest
<_br_>
xeviox: Try gem byebug instead. Its the standard debugger for 2.0
<terrellt>
xeviox: Look at debugger - should have support for ruby 2
<xeviox>
_br_: ok thanks
<Solnse>
anybody know of a browser plugin that would allow me to step through and identify javascript calls on a webpage? I'm trying to identify a final call, bypassing the previous ones and just pass the required info to the final post.
chrishough has joined #ruby
Ortuna has quit [Ping timeout: 256 seconds]
<Ziarkaen>
xeviox, I think week_num % 4 == 0 is a simpler expression.
havenwood has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<xeviox>
Ziarkaen: yes ^^
zmike123 has joined #ruby
angusiguess has quit [Ping timeout: 276 seconds]
Ortuna has joined #ruby
julweber has quit [Remote host closed the connection]
<xeviox>
hmm, just want to try eclipse with the DLTK and ruby plugin. It allows 3 debuggers "ruby-debug -> not installable, ActiveState -> RoR?, Native Ruby Debugger -> crashes with an error", seems like I'm out of luck :(
dagobah has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
cha1tanya has joined #ruby
anay has joined #ruby
angusiguess has joined #ruby
maxmanders has joined #ruby
Guest66476 is now known as Niichan
Niichan has quit [Changing host]
Niichan has joined #ruby
dhruvasagar has joined #ruby
krz has quit [Quit: krz]
macmartine has joined #ruby
maxmanders has quit [Client Quit]
mikecmpbll has joined #ruby
<trepidaciousMBR>
If s is a String of arbitrary bytes, are both s.length and s.size the number of bytes?
thetristan_ has joined #ruby
krisfremen has quit [Ping timeout: 256 seconds]
thetristan has quit [Ping timeout: 252 seconds]
thetristan_ is now known as thetristan
<trepidaciousMBR>
ohh, bytesize I guess?
RichardBaker has joined #ruby
twoism has joined #ruby
nomenkun has quit [Remote host closed the connection]
krisfremen has joined #ruby
niceguyjames has joined #ruby
razi has quit [Quit: Leaving.]
burlyscudd has joined #ruby
niceguyjames has quit [Client Quit]
<trepidaciousMBR>
Ok going back a stage, I am using https://github.com/codekitchen/ruby-protocol-buffers to encode something to protobuf format, which gives me a String, I assume it is just the encoded bytes in protocol buffer format, and I need to work out how many bytes are in it...
nomenkun has joined #ruby
sayan has joined #ruby
LucidDreamZzZz has joined #ruby
Devo has joined #ruby
Niichan has quit [Remote host closed the connection]
Rylai has quit [Remote host closed the connection]
erry is now known as errylien
niceguyjames has joined #ruby
brennanMKE has joined #ruby
girija has joined #ruby
jonathanwallace has joined #ruby
thetristan has quit [Ping timeout: 252 seconds]
thetristan has joined #ruby
LucidDreamZzZ has quit [Ping timeout: 240 seconds]
anay has quit [Remote host closed the connection]
krainboltgreene has quit [Ping timeout: 246 seconds]
jonahR has quit [Quit: jonahR]
sambao21 has joined #ruby
fschuindt has joined #ruby
KhalilC has quit [Ping timeout: 256 seconds]
banjara has joined #ruby
timonv has quit [Remote host closed the connection]
zai has quit [Quit: Leaving]
ravster has joined #ruby
geggam has joined #ruby
maxmanders has joined #ruby
KhalilC has joined #ruby
graydot has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
jonahR has joined #ruby
anay has joined #ruby
elea-m has joined #ruby
lurch_ has quit [Quit: lurch_]
girija has left #ruby ["Ex-Chat"]
jonahR has quit [Client Quit]
YaNakilon has quit [Ping timeout: 246 seconds]
elea-m has left #ruby [#ruby]
YaNakilon has joined #ruby
andikr has quit [Remote host closed the connection]
<aMoniker>
Is that setting config.vm.network to be a tuple?
<MrZYX>
that's calling the vm method on the object in config, and the network method with the symbol :private_network and the hash {ip: "127.0.0.1"} as parameters, on the return value
cj3kim has quit [Read error: Connection reset by peer]
mcknucklehead is now known as mcpierce
<Morrolan>
config.vm().network(:private_network, { ip: '127.0.0.1' }) if you were to add brackets.
jonathanwallace has quit [Ping timeout: 248 seconds]
<aMoniker>
Morrolan, MrZYX: Ah, that makes more sense - thank you.
chrishough has quit [Quit: chrishough]
browndawg has joined #ruby
adeponte has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
<Morrolan>
:)
stkowski has joined #ruby
<YaNakilon>
pontiki_ 404 (
colonolGron has quit [Ping timeout: 264 seconds]
interactionjaxsn has joined #ruby
atyz has quit [Quit: Leaving...]
<pontiki_>
just so
danslo has quit [Quit: danslo]
<aMoniker>
Morrolan: So I take it objects (or dicts, or similar structures) aren't accessed with.a.dot.syntax?
<aMoniker>
or... function calls are implicit when that happens?
dhruvasagar has quit [Ping timeout: 256 seconds]
danslo has joined #ruby
<MrZYX>
no, rubies default hash doesn't support that syntax, that are always methods calls
dmiller has quit [Ping timeout: 248 seconds]
mars__ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<aMoniker>
ah, cool
<MrZYX>
but then ruby allows you to define methods for most operators on your objects
<MrZYX>
so you can totally build a custom hash class that shows that behaviour
<aMoniker>
ah, interesting
LucidDreamZzZz has quit [Quit: Leaving]
interactionjaxsn has quit [Ping timeout: 256 seconds]
jbpros has joined #ruby
colonolGron has joined #ruby
thoolihan has joined #ruby
saarinen has joined #ruby
cj3kim has joined #ruby
kirun has joined #ruby
browndawg has quit [Ping timeout: 246 seconds]
blaxter has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
kasper has quit [Ping timeout: 240 seconds]
<cr3>
how can I try to require a gem and, if it doesn't exist, install it automatically? I know this is probably not recommended but I have a special case
<MrZYX>
rescue LoadError
caveat- has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby
<cr3>
MrZYX: and then %x{gem install ...} or is there a ruby call for this?
tcgden1 has quit [Quit: Leaving]
<MrZYX>
there's probably something to call in Rubygems
<MrZYX>
that won't update the load path of the running script though
caveat- has joined #ruby
<cr3>
MrZYX: yeah, I've seen some code do: Gem.clear_paths
mikepack has quit [Remote host closed the connection]
iamjbecker has quit [Remote host closed the connection]
peta_ has quit [Read error: Operation timed out]
rdark has quit [Quit: leaving]
bamdad has joined #ruby
iamjbecker has joined #ruby
jbpros has quit [Ping timeout: 264 seconds]
iamjbecker has quit [Remote host closed the connection]
c0rn has quit [Quit: Computer has gone to sleep.]
devoldmx has quit [Ping timeout: 256 seconds]
iamjbecker has joined #ruby
jenhsun has joined #ruby
devoldmx has joined #ruby
b0oh has quit [Quit: Leaving.]
Krajsnick has quit [Remote host closed the connection]
PhatBaja has joined #ruby
jenhsun has quit [Remote host closed the connection]
CaptainJet has joined #ruby
obs has quit [Quit: Konversation terminated!]
danslo has quit [Quit: danslo]
mikepack has joined #ruby
sambao21 has joined #ruby
cofin has joined #ruby
brasten has quit [Read error: Connection reset by peer]
sambao21 has quit [Client Quit]
brasten has joined #ruby
fomatin has joined #ruby
nbouscal has joined #ruby
maxmanders has joined #ruby
interactionjaxsn has joined #ruby
b0oh has joined #ruby
Appineer has joined #ruby
b0oh has left #ruby [#ruby]
bamdad has quit [Quit: bamdad]
harrymoreno_ has joined #ruby
<metallisto>
re
dodosan has quit [Remote host closed the connection]
jeffreylevesque has quit [Remote host closed the connection]
dodosan has joined #ruby
sambao21 has joined #ruby
harrymoreno has quit [Ping timeout: 276 seconds]
harrymoreno_ is now known as harrymoreno
futilegames has quit [Quit: futilegames]
freezey has quit [Remote host closed the connection]
theRoUS has joined #ruby
theRoUS has joined #ruby
ravster has left #ruby [#ruby]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adeponte has joined #ruby
mbotros has quit [Ping timeout: 252 seconds]
doritostains has joined #ruby
burlyscudd has quit [Quit: Leaving.]
robscomputer has joined #ruby
jerius_ has joined #ruby
Jackneill has joined #ruby
Jackneill has joined #ruby
jerius has quit [Read error: Operation timed out]
cj3kim has quit [Read error: Connection reset by peer]
DanKnox is now known as DanKnox_away
cj3kim has joined #ruby
elux has joined #ruby
rickruby has joined #ruby
icole has joined #ruby
bamdad has joined #ruby
robscomputer_ has quit [Ping timeout: 246 seconds]
RobW_ has joined #ruby
MrThePlague has quit [Ping timeout: 268 seconds]
cha1tanya has quit [Quit: Leaving]
cj3kim has quit [Read error: Connection reset by peer]
dodosan has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
Guga_ has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
leonidlm has joined #ruby
cj3kim has joined #ruby
axeman- has joined #ruby
Nisstyre-laptop has joined #ruby
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
icole has quit [Remote host closed the connection]
ner0x has joined #ruby
bamdad has quit [Quit: bamdad]
Guga_ has quit [Remote host closed the connection]
Guga_ has joined #ruby
mbotros has joined #ruby
timonv has joined #ruby
dmiller has joined #ruby
ZuzzleBuzzer has joined #ruby
miskander has joined #ruby
aramus_ has joined #ruby
agjacome has joined #ruby
<aramus_>
Hello, is there a way to use ruby variables when running a bash script using backticks?
RobW_ has quit [Ping timeout: 252 seconds]
<havenwood>
aramus_: interpolate with #{}
<aramus_>
Thanks!
sambao21 has joined #ruby
DanKnox_away is now known as DanKnox
<matled>
I hope you know about the security implications of passing arbitrary strings to sh -c (what runs for you)
yekta has joined #ruby
iamjbecker has quit [Remote host closed the connection]
dodosan has joined #ruby
RobW_ has joined #ruby
dward has joined #ruby
iamjbecker has joined #ruby
<pontiki_>
nothing like tainted data
ananthakumaran has quit [Quit: Leaving.]
dmiller has quit [Ping timeout: 248 seconds]
<havenwood>
anyone actually use #taint?
ixti has joined #ruby
aramus_ has left #ruby [#ruby]
<pontiki_>
actually, i never have
ananthakumaran has joined #ruby
Xeago has quit [Remote host closed the connection]
dodosan has quit [Remote host closed the connection]
jesse__ has joined #ruby
dodosan has joined #ruby
Ziarkaen` has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
AlHafoudh has joined #ruby
browndawg has joined #ruby
theRoUS has quit [Ping timeout: 256 seconds]
ananthakumaran has quit [Client Quit]
Ziarkaen has quit [Ping timeout: 256 seconds]
ntus1017 has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
JZTech101 has joined #ruby
krnflake has quit [Ping timeout: 256 seconds]
Nisstyre-laptop is now known as Nisstyre
jesse__ has quit [Client Quit]
rickruby has quit [Remote host closed the connection]
jerius has joined #ruby
mbotros has quit [Ping timeout: 256 seconds]
jerius_ has quit [Ping timeout: 256 seconds]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
relix has joined #ruby
mityaz has quit [Quit: See ya!]
pentameter has joined #ruby
romockee has joined #ruby
futilegames has joined #ruby
marr has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
<colonolGron>
i installed todo-txt via "gem install todo-txt" and want to load it with "require 'todo-txt'" in my ruby script. but i get an error "cannot load such file". how can i solve this?
DanKnox is now known as DanKnox_away
Ortuna has quit [Quit: Computer has gone to sleep.]
<ner0x>
How can I capture the number at the end of a string such as string_(1) ?
<ner0x>
And increment it.
Yvemath has joined #ruby
jonathanwallace has joined #ruby
<slash_nick>
ner0x: string.split("_")[-1] + 1
<MrZYX>
colonolGron: what ruby version?
<slash_nick>
oh, is it in the (), sorry
zeromodulus has quit [Remote host closed the connection]
RORgasm has quit [Read error: Connection reset by peer]
adeponte has quit [Remote host closed the connection]
workmad3 has joined #ruby
DanKnox_away is now known as DanKnox
<colonolGron>
mhh i am experimenting with "gli" (reading the book "building awesome cmdline apps in ruby") and now i realize gli uses something called "bundler"
browndawg has quit [Ping timeout: 252 seconds]
<MrZYX>
ah, then you need to add it to your Gemfile
<MrZYX>
and run bundle install
denver has quit [Read error: Connection reset by peer]
<BrianJ>
I need to loop through a bunch of directories and find config.xmls and then do token replaces on them.. how would i do this? Currently i have: http://pastie.org/8104300
thoolihan has joined #ruby
theRoUS has quit [Ping timeout: 248 seconds]
c0rn has joined #ruby
Appineer has left #ruby [#ruby]
DanKnox is now known as DanKnox_away
<colonolGron>
thanks MrZYX
<slash_nick>
MrZYX: that is both uggly and cool
axl_ has joined #ruby
<MrZYX>
BrianJ: Not sure why you do ::File.join (the ::) and there's a File.write but looks sane to me otherwise
<slash_nick>
i like it
<slash_nick>
didn't know gsub took a block like that... very cool
rh1n0 has joined #ruby
<MrZYX>
iirc it also yields the MatchData to it
<slash_nick>
it does :)
<BrianJ>
using the join because I'm using an variable for c:\tomcat and i wanted to make it easier for you guys to follow
<BrianJ>
whats wrong with the file.write?
<MrZYX>
there's File.write, capital F, like File.read, I prefer that for single writes
<MrZYX>
and I'm not sure why you do ::File.join instead of File.join
<talntid>
we can put you on in island in the middle of the lake :)
<talntid>
or get a floaty thing and put it in a swimming pool
tatsuya_o has joined #ruby
<DylanJ>
there's also the whole problem of getting a visa
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<pontiki_>
BrianJ: my first question is does that '**' thing work on windows
<talntid>
this is America - that seems unnecessary now.
<talntid>
;)
browndawg has quit [Ping timeout: 256 seconds]
<BrianJ>
pontiki: Isn't ruby doing the work there? Shouldnt it be figuring it out for windows?
<pontiki_>
dunno
_Andres has joined #ruby
<pontiki_>
it's odd tho
<pontiki_>
see what you get with Dir[File.join(... your join string)]
<pontiki_>
should be an array of all the matches
RichardBaker has joined #ruby
RobW_ has quit [Quit: RobW_]
Uranio has quit [Quit: while you reading this, a kitty dies]
ryannielson has left #ruby [#ruby]
Uranio has joined #ruby
thoolihan has quit [Quit: thoolihan]
rh1n0 has quit [Quit: -- I'm out --]
RichardBaker has quit [Client Quit]
x1337807x has joined #ruby
cads has joined #ruby
RichardBaker has joined #ruby
<_bart_>
Hi there
chrisja has quit [Quit: leaving]
<_bart_>
where do I find docs about rb_define_module_function?
krawchyk has quit [Remote host closed the connection]
MrThePlague has joined #ruby
MrThePlague has quit [Changing host]
MrThePlague has joined #ruby
zmike123 has quit [Ping timeout: 256 seconds]
ukd1 has joined #ruby
ravster has quit [Ping timeout: 276 seconds]
ddm has joined #ruby
sethetter has joined #ruby
<sethetter>
Say I have two systems (lab and production) that I need ruby installed on. The production system has no compilers. Is it viable to precompile on the lab server and carry the binary over to production?
tonini has quit [Ping timeout: 248 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
Kricir has joined #ruby
<MrZYX>
I'd look into building a custom package
rippa has quit [Ping timeout: 248 seconds]
alex__c2022_ has joined #ruby
rfizzle has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
alex__c2022 has quit [Ping timeout: 276 seconds]
alex__c2022_ is now known as alex__c2022
ravster has joined #ruby
browndawg has joined #ruby
kil0byte has quit [Ping timeout: 246 seconds]
thoolihan has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cj3kim has quit [Remote host closed the connection]
harrymoreno has joined #ruby
Squarepy has quit [Quit: Leaving]
DanKnox_away is now known as DanKnox
brasten has quit [Read error: Connection reset by peer]
<hoelzro>
_bart_: have a look at README.EXT in the source
<hoelzro>
that's the documentation on the C API
<_bart_>
hoelzro: thanks
_bart_ is now known as _bart
saintcajetan has quit [Read error: Connection reset by peer]
kofno has quit [Remote host closed the connection]
icole has quit [Remote host closed the connection]
elux has quit [Quit: Leaving...]
Solnse has quit [Ping timeout: 252 seconds]
brasten has joined #ruby
romockee has joined #ruby
havenwood has quit [Remote host closed the connection]
wolcanus has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
wolcanus has joined #ruby
thoolihan has joined #ruby
swills has joined #ruby
<swills>
what happens when you pass a directory name to require?
fermion has joined #ruby
CaptainJet has quit []
Zeeraw has joined #ruby
DrCode has quit [Remote host closed the connection]
slash_lunch is now known as slash_nick
forrest has joined #ruby
sambao21 has joined #ruby
DrCode has joined #ruby
<swills>
i'm trying to setup this short url servive, https://github.com/j-wilkins/short/blob/master/bin/short but getting an error on line 13, require 'shortener/server', shortener/server is a directory in LOAD_PATH, yet it returns cannot load such file. ideas?
vlad_starkov has quit [Ping timeout: 276 seconds]
<swills>
s/servive/service/
c0rn has quit [Ping timeout: 256 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
CaptainJet has joined #ruby
superscott[8] has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
milardovich has joined #ruby
milardovich has quit [Max SendQ exceeded]
milardovich has joined #ruby
machuga is now known as machuga|away
brbcoding has quit []
DrCode has quit [Remote host closed the connection]
tonini has joined #ruby
ravster has joined #ruby
harrymoreno has quit [Ping timeout: 248 seconds]
milardovich has quit [Max SendQ exceeded]
harrymoreno has joined #ruby
DaltonUS has joined #ruby
Squarepy has joined #ruby
fschuindt has joined #ruby
eldariof has quit [Ping timeout: 252 seconds]
fermion has quit [Quit: Computer has gone to sleep.]
cjsarette has joined #ruby
Solnse has joined #ruby
mneorr has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kirun has quit [Quit: Client exiting]
DrCode has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
<Spooner>
swills, You can only require .rb files. In that cases, there should be shortener.rb and shortener/server.rb in the same directory.
tanathos has quit [Ping timeout: 240 seconds]
<Spooner>
swills, What exactly is going wrong?
r4nd0m1 has quit []
brasten has quit [Quit: brasten]
<Spooner>
You are right. There isn't a shortener/server.rb - it is a directory. The code is wrong!
brasten has joined #ruby
ZuzzleBuzzer has joined #ruby
kindjal has joined #ruby
iamjbeck_ has joined #ruby
airwolf33 has joined #ruby
<swills>
Spooner: k, thanks. Was trying to figure out where the Shortener::Server class was supposed to come from, but can't find it
<swills>
ah, i need to setup config.ru to create it
<swills>
ugh
pkrnj has joined #ruby
<swills>
still doesn't fix the require tho
iamjbecker has quit [Ping timeout: 248 seconds]
milardovich has joined #ruby
blackmesa has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
kindjal has quit [Ping timeout: 264 seconds]
P1RATEZ has joined #ruby
rgarver has joined #ruby
ephemerian has joined #ruby
ZuzzleBuzzer has quit [Quit: ZuzzleBuzzer]
kindjal has joined #ruby
futilegames has quit [Quit: futilegames]
cjsarette has quit [Ping timeout: 264 seconds]
mark_locklear has quit [Read error: Connection reset by peer]
brasten has quit [Read error: Connection reset by peer]
aqil has quit [Remote host closed the connection]
Yvemath has quit [Ping timeout: 264 seconds]
<_bart>
RARRAY_LEN results in: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
<_bart>
On a multidimensional Ruby array in a VALUE
brasten has joined #ruby
jds_ has joined #ruby
tanathos has joined #ruby
<_bart>
Any ideas on how to prevent that?
x1337807x has joined #ruby
chxane has joined #ruby
deallocate has joined #ruby
harrymoreno has quit [Quit: harrymoreno]
juarlex has quit [Quit: juarlex]
burlyscudd has quit [Quit: Leaving.]
jds_ has quit [Ping timeout: 248 seconds]
pentameter has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
dodosan has joined #ruby
ciziar has quit [Quit: Computer has gone to sleep.]
elaptics`away is now known as elaptics
fschuindt has quit [Quit: Computer has gone to sleep.]
Kricir has joined #ruby
colonolGron has quit [Quit: Lost terminal]
tjbiddle_ has joined #ruby
mikepack has quit [Remote host closed the connection]
<prsn>
hi! I am looking at some rakefiles that have lines of the form 'task :foo => :environment do'. This is different from the docs, which call for 'task :foo => [:prereq] do'. In particular, :environment doesn't seem to be the name of a task defined anywhere.
<prsn>
(and it's not in brackets)
<prsn>
is this a standard idiom? what does it mean?
mary5030_ has quit [Ping timeout: 248 seconds]
dsabanin has quit [Quit: Leaving...]
nomenkun has quit [Ping timeout: 256 seconds]
dachi has joined #ruby
<terrellt>
prsn: It requires the Rails environment. The environment task is defined within rails.
emergion has quit [Quit: Computer has gone to sleep.]
<prsn>
thanks! should all rake tasks in a rails project use that form?
<terrellt>
prsn: Only if you need access to the Rails stuff (models, etc.)
dsabanin has joined #ruby
dannymcc has joined #ruby
<dachi>
hello people. I am new to Ruby and your wonderful community. I have a very basic question. If any of you know PHP $array[] = '1'; $array[] = '2'; will result in 1 => '1', 2 => '2'. I am trying to achieve same with Ruby's Hashes. But Can't. feature_blocks[] = {line: line, lineno: lineno} this won't work. How can I change feature_block[] to have an index effect, please?
<dachi>
I meant PHP will result in 0 => '1', 1 => 2
queston has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
Asher has quit [Ping timeout: 248 seconds]
tjbiddle has quit [Quit: tjbiddle]
arya__ has quit [Ping timeout: 248 seconds]
generalissimo has quit [Remote host closed the connection]
<terrellt>
dachi: There isn't an "associative array" in Ruby - there's a separation between "arrays" and "hashes". Are you looking for an array of things that you can do [:line] on?
tomzx_mac has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
danbeck has quit [Quit: danbeck]
<dachi>
terrellt: oh, I see. I don't think that I need this. I am iterating through text file and gathering some pieces of text from it into Hashes with :line as of whole line text and :lineno with line number, but I needed to store them with indexes like 0,1,2,3 to access them later. Can I use custom counter variable to set an index like feature_blocks[count] = .... ? thanks!
Soliah has quit [Read error: Operation timed out]
<terrellt>
dachi: You're probably looking for something like array = []; array << {line: line, lineno: lineno};
<terrellt>
<< appends an item to the end of an array.
<terrellt>
So now you have an array of hashes, array[0] becomes the first element.
jimg has joined #ruby
dannymcc has quit [Quit: Quit]
<dachi>
terrelt: thanks a lot! I'll do that. thanks again for helping and have a great day!
chrishough has quit [Quit: chrishough]
enebo has quit [Quit: enebo]
pentameter has joined #ruby
anonymuse has quit [Remote host closed the connection]
<dachi>
terrellt: it works. tnx!!
Zai00 has quit [Quit: Zai00]
dsabanin has quit [Quit: Leaving...]
jonathanwallace has joined #ruby
emergion has joined #ruby
LucidDreamZzZ has quit [Remote host closed the connection]
dpatel has joined #ruby
LucidDreamZzZ has joined #ruby
Yvemath has joined #ruby
dpatel has quit [Client Quit]
matthalliday has joined #ruby
dpatel has joined #ruby
geggam has quit [Remote host closed the connection]
arya_ has joined #ruby
ebouchut has quit [Ping timeout: 246 seconds]
lusory_ has quit [Ping timeout: 240 seconds]
jetblack has joined #ruby
jonathanwallace has quit [Ping timeout: 268 seconds]
Devo has quit [Quit: Devo]
orion has joined #ruby
peret has quit [Ping timeout: 256 seconds]
<orion>
Hi. Has anyone created a diagram showing the relationship between Ruby, Rack, Passenger, and something like Sinatra?
<orion>
How do all the pieces fit together?
splittingred has quit [Quit: splittingred]
NsOmNiAc has quit [Ping timeout: 248 seconds]
NsOmNiAc has joined #ruby
jimg has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
jimg has joined #ruby
gstamp has joined #ruby
Devo has joined #ruby
mneorr has quit [Remote host closed the connection]
<terrellt>
Passenger->Rack->Sinatra and then back up.
matthalliday has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
matthalliday has joined #ruby
takezawa has quit [Remote host closed the connection]
takezawa has joined #ruby
Voodoofish430 has joined #ruby
Inside has joined #ruby
nomenkun has joined #ruby
sambao21 has joined #ruby
codesoda has joined #ruby
Es0teric has joined #ruby
djbkd has quit [Remote host closed the connection]
Kricir has joined #ruby
CaptainJet_ has joined #ruby
CaptainJet has quit [Disconnected by services]
dsabanin has joined #ruby
Kruppe has quit [Ping timeout: 268 seconds]
dsabanin has quit [Client Quit]
emergion has joined #ruby
matthalliday has left #ruby [#ruby]
matthalliday has joined #ruby
<DylanJ>
^
tedwards_ is now known as Todd
ebouchut has joined #ruby
mrsolo has quit [Quit: Leaving]
<orion>
Thank you terrellt.
vlad_starkov has joined #ruby
takezawa has quit [Ping timeout: 268 seconds]
osvico has joined #ruby
nomenkun has quit [Ping timeout: 246 seconds]
<orion>
FreeBSD provides gems within the ports distribution system. What are the advantages/disadvantages to using the OS distribution system for gems as opposed to the "gem" tool?
arya_ has quit [Ping timeout: 252 seconds]
Virunga has quit [Remote host closed the connection]
havenwood has joined #ruby
pedda has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
arya_ has joined #ruby
dachi has quit [Ping timeout: 250 seconds]
Devo has quit [Quit: Devo]
marcgg has quit [Read error: No route to host]
lindenle has quit [Quit: This computer has gone to sleep]
marcgg has joined #ruby
rhys_ has quit [Quit: Leaving]
Adawerk has quit [Read error: Operation timed out]
c0rn has joined #ruby
c0rn has quit [Client Quit]
vlad_starkov has quit [Ping timeout: 248 seconds]
Cyrus has joined #ruby
Dekade has joined #ruby
sailias has quit [Ping timeout: 256 seconds]
arya__ has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
arya_ has quit [Ping timeout: 268 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
cofin has joined #ruby
EPIK has joined #ruby
jds_ has joined #ruby
Kricir has quit [Remote host closed the connection]
fredjean has joined #ruby
Todd has quit [Ping timeout: 252 seconds]
RobW_ has quit [Quit: RobW_]
RobW_ has joined #ruby
wmoxam has joined #ruby
ebobby has joined #ruby
jds_ has quit [Ping timeout: 252 seconds]
fomatin has quit [Quit: Computer has gone to sleep.]
Todd has joined #ruby
predator217 has joined #ruby
havenwood has quit [Remote host closed the connection]
hydrozen has joined #ruby
RobW_ has quit [Quit: RobW_]
justsee has quit [Ping timeout: 264 seconds]
shadoi has quit [Quit: Leaving.]
shadoi has joined #ruby
Asher has joined #ruby
fredjean has quit [Quit: Computer has gone to sleep.]
emergion has joined #ruby
io_syl has quit [Ping timeout: 264 seconds]
predator117 has quit [Ping timeout: 256 seconds]
io_syl has joined #ruby
<ravster>
hey, whats the difference between .each and .each_pair for Hashes? I'm looking at the rubydocs, and I don't see any difference apart from the name of the function. The examples seem to be alike.
<_bart>
Guess it can still be optimised quite a lot, but still quite happy!
ssvo has quit [Ping timeout: 248 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
Patchou has quit [Ping timeout: 246 seconds]
Yvemath has quit [Quit: finally sleeping]
havenwood has joined #ruby
devoldmx has quit [Remote host closed the connection]
ffranz has quit [Quit: Leaving]
<ravster>
terrellt: huh, nice
freestyl3r has joined #ruby
<ravster>
could anyone point me to a resource where they explain how to run a thread-safe accumulator? I'd like to do some heavy lifting, and use all the cores at my disposal.
Todd has quit [Ping timeout: 246 seconds]
nbouscal has quit [Ping timeout: 240 seconds]
<ravster>
oh, nvm. just found out I can have a thread return a value.
<ravster>
sweet.
<freestyl3r>
Hi. lets say i want to distribute a ruby script that has my API keys in it. how can i hide those from users?
matthalliday has quit [Quit: matthalliday]
queston has joined #ruby
jibi has quit [Quit: .]
emergion has joined #ruby
Guedes0 has quit [Ping timeout: 276 seconds]
<Eiam>
freestyl3r: don't distribute them in a script