<Eiam>
have a server use the keys and just give your script users the results?
Soliah has joined #ruby
queston has quit [Ping timeout: 264 seconds]
emergion has quit [Ping timeout: 260 seconds]
troker has joined #ruby
<havenwood>
freestyl3r: What is the script for? Can you assume internet connection? Does its size matter?
krainboltgreene has joined #ruby
<troker>
Hey all, total ruby newb trying to install the airstream ruby gem, but Im getting this error message? Any thoughts? Running gem update --system returns ""Latest Version Already Installed" but it clearly failed. http://pastebin.com/QtsAUNFQ
queston has joined #ruby
<Eiam>
troker: what version of ruby do you have?
<troker>
1.9
justsee has joined #ruby
justsee has joined #ruby
orion has left #ruby [#ruby]
<freestyl3r>
havenwood: just an imgur uploader. have a user register his own application to fill in the client id & secret seems like a lot of work
wmoxam has joined #ruby
Todd has joined #ruby
rfizzle has quit [Ping timeout: 268 seconds]
`p has quit [Ping timeout: 246 seconds]
RobW_ has joined #ruby
<troker>
I think I found a fix but I need to add it to my… gemfile?
<troker>
where is that?
fryguy- is now known as fryguy
burlyscudd has quit [Quit: Leaving.]
<fryguy>
troker: Gemfile would be in the root of your project if you are using Bundler
<troker>
mhm.. Im just trying to update it
freakazoid0223 has quit [Read error: Operation timed out]
nomenkun has joined #ruby
<fryguy>
troker: what version do you have installed
<troker>
fryguy 1.9
<fryguy>
troker: of airstream
jimg has joined #ruby
<troker>
gem install airstream ?
milardovich has joined #ruby
<fryguy>
troker: gem list airstream
<troker>
*** LOCAL GEMS *** and then noting
<troker>
*nothing
<fryguy>
ok, so gem install airstream and then output that
<fryguy>
so, the error is on like line 3 and tells you what to do. install that library
vlad_starkov has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
nomenkun has quit [Ping timeout: 256 seconds]
marr has quit [Ping timeout: 256 seconds]
wmoxam has quit [Ping timeout: 256 seconds]
takezawa has quit [Remote host closed the connection]
<troker>
fryguy I'm running FreeBSD, I couldn't find any results for that
<pontiki_>
freestyl3r: the way i do it is have a config file that is not part of my repo, and a sample-config file that is, but only contains the things the user of the script needs to install
takezawa has joined #ruby
<popl>
What's FreeBSD got to do with this?
<pontiki_>
not install -- write into the config file i mean
<pontiki_>
credentials, names, local stuff, etc
<fryguy>
troker: on my system it's in the avahi package
vigintas has quit [Ping timeout: 256 seconds]
<fryguy>
troker: i'd guess it's either avahi or avahi-libdns on freebsd
dkeefe75 has joined #ruby
mahmoudimus has joined #ruby
<fryguy>
i'm way too lazy to install both to verify that for you
jimg has quit [Ping timeout: 240 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Ping timeout: 256 seconds]
<troker>
fryguy I have those installed and no dice, I guess Ill just keep looking for this libraryy
queston has quit [Remote host closed the connection]
Kruppe has quit [Remote host closed the connection]
Mendon has quit [Ping timeout: 256 seconds]
ryotarai has quit [Ping timeout: 256 seconds]
danCe- has quit [Ping timeout: 240 seconds]
Kruppe has joined #ruby
vadelius has quit [Ping timeout: 256 seconds]
willrax has quit [Ping timeout: 256 seconds]
Astral_ has joined #ruby
takezawa_ has joined #ruby
Niamkik has joined #ruby
forced_request has joined #ruby
[0x1a] has quit [Ping timeout: 256 seconds]
Jb___ has quit [Ping timeout: 256 seconds]
shtirlic has quit [Ping timeout: 256 seconds]
takezaw__ has quit [Read error: Connection reset by peer]
MetaCosm_ has joined #ruby
takezawa has quit [*.net *.split]
tomzx_mac_ has quit [*.net *.split]
tkuchiki has quit [*.net *.split]
huoxito has quit [*.net *.split]
Cyrus has quit [*.net *.split]
Ortuna has quit [*.net *.split]
axeman- has quit [*.net *.split]
doritostains has quit [*.net *.split]
agjacome has quit [*.net *.split]
JumpMast3r has quit [*.net *.split]
gildo has quit [*.net *.split]
mnms has quit [*.net *.split]
mmitchell has quit [*.net *.split]
Beoran__ has quit [*.net *.split]
lkba has quit [*.net *.split]
ejnahc has quit [*.net *.split]
Tarential has quit [*.net *.split]
joast has quit [*.net *.split]
msuszczy has quit [*.net *.split]
strax has quit [*.net *.split]
bobbyz has quit [*.net *.split]
sgkim126l has quit [*.net *.split]
ndngvr has quit [*.net *.split]
Akuma has quit [*.net *.split]
KarlHungus has quit [*.net *.split]
_s14_ has quit [*.net *.split]
Raboo has quit [*.net *.split]
onewheelskyward has quit [*.net *.split]
Kelet has quit [*.net *.split]
three18ti has quit [*.net *.split]
firebury_ has quit [*.net *.split]
chee has quit [*.net *.split]
WanderingGlitch has quit [*.net *.split]
preller has quit [*.net *.split]
rotor has quit [*.net *.split]
blz37 has quit [*.net *.split]
fbernier has quit [*.net *.split]
kiela has quit [*.net *.split]
MetaCosm has quit [*.net *.split]
emptynine has quit [*.net *.split]
heidar has quit [*.net *.split]
davidboy has quit [*.net *.split]
eval-in has quit [*.net *.split]
naquad has quit [*.net *.split]
drizz_ has quit [*.net *.split]
cespare has quit [*.net *.split]
wuest has quit [*.net *.split]
yellow5 has quit [*.net *.split]
rotor` is now known as rotor
three18t- is now known as three18ti
yellow5_ is now known as yellow5
Raboo_ is now known as Raboo
vereteran has joined #ruby
Niamkik_ has quit [Ping timeout: 256 seconds]
xefi_ has quit [Ping timeout: 256 seconds]
<RobW_>
is there a way to write an assignment that sets the var to a hash if the var is unset, and merges with the var (which is a hash) if the var is set?
slightair has joined #ruby
axeman- has joined #ruby
JumpMast3r has joined #ruby
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
Jb___ has joined #ruby
eka has quit [Ping timeout: 256 seconds]
calmyournerves has quit [Ping timeout: 256 seconds]
dayepa has quit [Quit: dayepa]
bobbyz has joined #ruby
nomenkun has joined #ruby
kofno has joined #ruby
ryotarai has joined #ruby
chee has joined #ruby
willrax has joined #ruby
calmyournerves has joined #ruby
tehKitten has quit [Ping timeout: 256 seconds]
dayepa has joined #ruby
<RobW_>
I'm setting the var to an empty hash now and then doing merges in an each, just wondering if there's a cleaner way.
takezawa has joined #ruby
vadelius has joined #ruby
onewheelskyward has joined #ruby
ejnahc has joined #ruby
mogsy has quit [Ping timeout: 256 seconds]
kx has quit [Ping timeout: 256 seconds]
xefi_ has joined #ruby
eka has joined #ruby
<ravster>
I'm trying to set up a thread pool to build up a single array. What is the best way to go about that?
lyanchih has quit [Ping timeout: 240 seconds]
tehKitten has joined #ruby
fbernier has joined #ruby
yourmysin has quit [Ping timeout: 256 seconds]
sixteneighty has quit [Ping timeout: 256 seconds]
msch has quit [Ping timeout: 256 seconds]
Gate has quit [Ping timeout: 256 seconds]
ssvo has quit [Ping timeout: 248 seconds]
tomzx_mac has joined #ruby
mogsy has joined #ruby
shtirlic has joined #ruby
Astral__ has quit [Ping timeout: 256 seconds]
pkrnj has joined #ruby
sixteneighty has joined #ruby
takezawa has quit [Read error: Connection reset by peer]
Gate has joined #ruby
Gate has quit [Changing host]
Gate has joined #ruby
takezawa has joined #ruby
takezawa_ has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
<pontiki_>
RobW_: not quite getting what you're after
kx has joined #ruby
takezawa has quit [Read error: Connection reset by peer]
92AAASRLC has quit [Ping timeout: 256 seconds]
nomenkun has quit [Ping timeout: 256 seconds]
<pontiki_>
is it unless var1.nil? ; var1.merge(var2) ; else var1 = var2 ; end
marcgg_ has joined #ruby
oz has quit [Ping timeout: 256 seconds]
erichmenge has quit [Ping timeout: 256 seconds]
<pontiki_>
?
msch has joined #ruby
huoxito has joined #ruby
asteve has joined #ruby
<pontiki_>
only doing that in some sort of single operation way?
cespare has joined #ruby
arya_ has joined #ruby
marcgg has quit [Ping timeout: 256 seconds]
Tarential has joined #ruby
erichmenge has joined #ruby
Akuma has joined #ruby
emptynine has joined #ruby
oz has joined #ruby
xefi_ has quit [Ping timeout: 256 seconds]
fbernier has quit [Ping timeout: 256 seconds]
classix has quit [Ping timeout: 256 seconds]
Nanuq has quit [Ping timeout: 245 seconds]
blz37 has joined #ruby
ericwood has quit [Ping timeout: 256 seconds]
fcoury has quit [Ping timeout: 256 seconds]
xefi_ has joined #ruby
hogeo has joined #ruby
phite has joined #ruby
classix has joined #ruby
fcoury has joined #ruby
davidboy has joined #ruby
fbernier has joined #ruby
ericwood has joined #ruby
<RobW_>
pontiki_: Yeah, exactly.
Nahra has quit [Ping timeout: 256 seconds]
<RobW_>
sorry, stepped away for a second.
<pontiki_>
nw :)
Nahra has joined #ruby
Nahra has quit [Changing host]
Nahra has joined #ruby
<pontiki_>
there is probably some elegant way to do that
Hanmac has joined #ruby
robert__ is now known as robert_
Solnse has quit [Remote host closed the connection]
robbyoconnor has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 264 seconds]
<RobW_>
I have an empty var an want to assign regex result each key: val
robbyoconnor has joined #ruby
[0x1a] has joined #ruby
<pontiki_>
do you know it's always empty?
tommyvyo has joined #ruby
marcgg_ has quit [Ping timeout: 276 seconds]
<RobW_>
So the first time through the var is empty.
nari has quit [Ping timeout: 256 seconds]
<RobW_>
Yep, always.
<pontiki_>
cause i'm wondering if you want a map/reduce thing?
superscott[8] has quit [Quit: superscott[8]]
marcgg has joined #ruby
<RobW_>
I'll take a look.
<RobW_>
I figured there would be a fancy ruby way.
Hanmac2 has quit [Ping timeout: 256 seconds]
gildo has joined #ruby
<pontiki_>
there's *always* a fancy ruby way :))
jimg has quit [Remote host closed the connection]
<pontiki_>
just blythely, something like this:
blitz has joined #ruby
ssvo has joined #ruby
<pontiki_>
oh wait
<pontiki_>
might something even easier
burlyscudd has joined #ruby
<pontiki_>
if you can arrange your regexp results to be something like [[key1, val1],[key2, val2], ...]
oz has quit [Ping timeout: 256 seconds]
Nisstyre has quit [Quit: Leaving]
joast has joined #ruby
dallasm_ has joined #ruby
<pontiki_>
you can create a hash out of that merely by Hash[[key1, val1],[key2, val2] ... ]
sailias has joined #ruby
<RobW_>
Yeah, I think I need to just look a little closer at what I'm working with.
<RobW_>
Thanks for the suggestions.
<pontiki_>
nod
<pontiki_>
good luck!
sevenseacat has joined #ruby
GeissT has joined #ruby
gf3 has quit [Ping timeout: 256 seconds]
oz has joined #ruby
kofno has quit [Remote host closed the connection]
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
rupee has quit [Quit: Leaving]
ayonix has quit [Read error: Connection reset by peer]
<RobW_>
Now all my variable assignments look exactly the same :' )
<popl>
oh that's ugly
reset has joined #ruby
<popl>
are you trying to parse HTML with regexp?
i_s has joined #ruby
DanKnox is now known as DanKnox_away
ssvo has quit [Ping timeout: 276 seconds]
wmoxam has joined #ruby
cj3kim has joined #ruby
harrymoreno has quit [Ping timeout: 264 seconds]
rgarver has joined #ruby
harrymoreno has joined #ruby
jimg has joined #ruby
niklasb has quit [Ping timeout: 276 seconds]
burlyscudd has quit [Quit: Leaving.]
<pontiki_>
parsing the entire HTML DOM is ugly, but it can be handy to extract just certain things
LucidDreamZzZ has quit [Remote host closed the connection]
LucidDreamZzZ has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
<RobW_>
Parsing small bits of text for a liquid plugin.
<RobW_>
It's not going to get any prettier, unless there's a nicer regex.
nbouscal has quit [Ping timeout: 248 seconds]
tkuchiki has joined #ruby
Domon has joined #ruby
<RobW_>
No need to nokogiri "alt="some value" title="some value" data-my-attr
devyn_ has quit [Changing host]
devyn_ has joined #ruby
devyn_ is now known as devyn
Deele has quit [Ping timeout: 240 seconds]
nomenkun has joined #ruby
kofno has joined #ruby
LucidDreamZzZz has joined #ruby
larissa has joined #ruby
splittingred has joined #ruby
JimmyNeutron has joined #ruby
LucidDreamZzZ has quit [Remote host closed the connection]
nari has joined #ruby
i_s has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
<pontiki_>
noop
<pontiki_>
s'what i'm sayin'
nomenkun has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
* popl
shrugs
<popl>
it looks a lot cleaner than that horrible regexp :)
<pontiki_>
that's just cos you don't know regexp
<popl>
What a silly assumption.
<pontiki_>
RobW_: one thing to consider there might be white space between the = and "
pen has quit [Remote host closed the connection]
<pontiki_>
you've got it covered for preceeding the =
<RobW_>
pontiki_: I don't believe that's valid.
<RobW_>
valid html I mean
<pontiki_>
what alt = "blah" ?
RonScagz has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
<pontiki_>
also, do you really expect to only deal with code that completely validates?
dallasm_ has quit []
ckrailo has quit [Quit: Computer has gone to sleep.]
Astralum has joined #ruby
<RobW_>
pontiki_: Pretty sure that's not valid html.
Astral_ has quit [Ping timeout: 264 seconds]
jimg has quit [Remote host closed the connection]
<RobW_>
As in a browser won't see the alt, so it's more than non-spec, it's actually broken.
twoism has quit [Remote host closed the connection]
BombStrike has quit [Ping timeout: 256 seconds]
<RobW_>
Luckily this is for a liquid plugin, so the people using it are mostly developers. And the point of malformed html not passing is so the plugin can alert them to their error :)
arya_ has joined #ruby
<RobW_>
You're right though, if it weren't a pretty specific situation I would be more worried.
<pontiki_>
given you know where things are coming from and that you can be certain that it's not coming in from some random web site written by the boss's grandson
nothnks has joined #ruby
dkeefe75 has quit [Quit: WeeChat 0.4.0]
harrymoreno has quit [Ping timeout: 264 seconds]
Kelet_ is now known as Kelet
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
harrymoreno has joined #ruby
ffranz has quit [Quit: Leaving]
robustus has quit [Ping timeout: 248 seconds]
RobW_ has quit [Ping timeout: 246 seconds]
lyanchih has quit [Ping timeout: 246 seconds]
pipework has joined #ruby
emptymag00 has quit [Ping timeout: 260 seconds]
pipework has quit [Remote host closed the connection]
queston has quit [Remote host closed the connection]
chrishough has joined #ruby
havenwood has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has joined #ruby
djbkd has quit [Remote host closed the connection]
CaptainJet_ has quit []
CaptainJet has joined #ruby
arya__ has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Ping timeout: 252 seconds]
joshwines has quit [Ping timeout: 264 seconds]
emptymag00 has joined #ruby
<Kelet>
Hi. I have a 'Polygon' class which is essentially just a container for an array of Points, which is just a class that contains x, y variables and includes the Comparable mixin. I want Polygon.sort to return a new Polygon and Polygon.sort! to modify the polygon. I seem to be doing fairly well with this code: http://hastebin.com/dagimebafe.rb but was wondering if anyone had other suggestions.
dsabanin has quit [Quit: Leaving...]
<CaptainJet>
Assuming you want to be using the same points as the original polygon, you'll probably want to be using self.dup._sort for the Polygon#sort method
demet8 has quit [Quit: demet8]
iamjarvo has quit [Quit: Leaving.]
queston has joined #ruby
_seanc_ has joined #ruby
RobW_ has joined #ruby
joshwines has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
ixti has quit [Quit: WeeChat 0.4.1]
<Kelet>
CaptainJet, Hmm well currently it works fine functionally for me, as the constructor takes the new points, but if I add anything more to the class that would not be preserved so I could see the merits.
<Kelet>
Of doing it that way
<Kelet>
thanks
arya__ has quit [Ping timeout: 246 seconds]
ukd1 has quit [Remote host closed the connection]
dsabanin has joined #ruby
<buzzybron>
what are the available methods for postgres result set? currently i am using get value, is there a more column name specific method to do so?
swordsmanz has quit [Ping timeout: 252 seconds]
dsabanin has quit [Client Quit]
shammancer has joined #ruby
ryancw has quit [Remote host closed the connection]
Guga_ has quit [Quit: ~]
JimmyNeutron has quit [Quit: Leaving]
yekta has joined #ruby
ebobby has quit [Quit: Lost terminal]
gildo has quit [Ping timeout: 256 seconds]
arya_ has joined #ruby
yekta has quit [Client Quit]
Kelet has left #ruby ["Leaving"]
iamjarvo has joined #ruby
wsterling has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
burlyscudd has joined #ruby
splittingred has quit [Quit: splittingred]
zenergi has joined #ruby
QKO has quit [Read error: No route to host]
QKO has joined #ruby
dmiller has quit [Remote host closed the connection]
ssvo has joined #ruby
radic_ has joined #ruby
RichardBaker has joined #ruby
RichardBaker has quit [Client Quit]
harrymoreno_ has joined #ruby
yekta has joined #ruby
RichardBaker has joined #ruby
ttt has joined #ruby
harrymoreno has quit [Ping timeout: 276 seconds]
harrymoreno_ is now known as harrymoreno
radic__ has quit [Ping timeout: 256 seconds]
yekta has quit [Client Quit]
kx has quit [Ping timeout: 264 seconds]
cjsarette has quit [Ping timeout: 264 seconds]
jonathanwallace has joined #ruby
burlyscudd has quit [Ping timeout: 256 seconds]
adkron has joined #ruby
arya_ has quit [Ping timeout: 252 seconds]
cjsarette has joined #ruby
bitkiller has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Ping timeout: 252 seconds]
io_syl has joined #ruby
grillermo has joined #ruby
malcolmva has quit [Ping timeout: 252 seconds]
dsabanin has joined #ruby
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
arya_ has joined #ruby
kofno has quit [Remote host closed the connection]
x1337807x has joined #ruby
DanKnox_away is now known as DanKnox
momomomomo has joined #ruby
malcolmva has joined #ruby
lyanchih has joined #ruby
reset has quit [Quit: Leaving...]
cj3kim has quit [Remote host closed the connection]
mmitchel_ has quit [Remote host closed the connection]
chrishough has quit [Quit: chrishough]
ssvo has quit [Ping timeout: 256 seconds]
banghouse has quit [Remote host closed the connection]
crazymykl has quit [Ping timeout: 256 seconds]
harrymoreno has quit [Ping timeout: 256 seconds]
lyanchih has quit [Ping timeout: 252 seconds]
pkrnj has joined #ruby
forced_request has quit [Read error: Connection reset by peer]
harrymoreno has joined #ruby
strax has joined #ruby
nomenkun has joined #ruby
axeman- has quit [Ping timeout: 240 seconds]
axeman- has joined #ruby
jefflyne has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
jefflyne has joined #ruby
nomenkun has quit [Ping timeout: 256 seconds]
reset has joined #ruby
dsabanin has quit [Remote host closed the connection]
dsabanin has joined #ruby
dkeefe75 has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
jbueza has quit [Quit: Leaving.]
browndawg has joined #ruby
mmitchell has joined #ruby
cha1tanya has joined #ruby
cha1tanya has joined #ruby
jimg has joined #ruby
crazymykl has joined #ruby
cjsarette has quit [Ping timeout: 245 seconds]
dsabanin has quit [Ping timeout: 240 seconds]
reset has quit [Ping timeout: 256 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
browndawg has quit [Ping timeout: 246 seconds]
mahmoudimus has joined #ruby
sayan has joined #ruby
stkowski has quit [Quit: stkowski]
oddraisin has quit [Quit: leaving]
rezzack has quit [Quit: Leaving.]
Todd has quit [Ping timeout: 240 seconds]
zenergi has quit [Quit: zenergi]
sayan has quit [Ping timeout: 246 seconds]
n_blownapart has joined #ruby
n_blownapart has quit [Remote host closed the connection]
havenwood has joined #ruby
sambao21 has joined #ruby
ner0x has quit [Quit: Leaving]
machuga|away is now known as machuga
browndawg has joined #ruby
Kruppe has quit [Remote host closed the connection]
nomenkun has joined #ruby
RobW_ has quit [Quit: RobW_]
wmoxam has quit [Ping timeout: 240 seconds]
Hobogrammer has joined #ruby
ravster has left #ruby [#ruby]
nomenkun has quit [Ping timeout: 246 seconds]
wsterling has joined #ruby
Hobogrammer_ has quit [Ping timeout: 252 seconds]
burlyscudd has joined #ruby
oddraisin has joined #ruby
jonathanwallace has quit [Ping timeout: 256 seconds]
axeman- has quit [Remote host closed the connection]
queston has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
wsterling has quit [Ping timeout: 256 seconds]
burlyscudd has quit [Ping timeout: 256 seconds]
cha1tanya has quit [Ping timeout: 256 seconds]
queston has joined #ruby
yacks has quit [Ping timeout: 256 seconds]
jimg has quit [Remote host closed the connection]
AndChat| has quit [Ping timeout: 252 seconds]
eldariof has joined #ruby
jimg has joined #ruby
krislappy is now known as krisfremen
cj3kim has joined #ruby
banghouse has joined #ruby
banghouse is now known as Guest48768
jimg has quit [Remote host closed the connection]
crazymykl has quit [Remote host closed the connection]
crazymykl has joined #ruby
codesoda has quit [Remote host closed the connection]
codesoda has joined #ruby
ssvo has joined #ruby
arya__ has joined #ruby
Guest48768 is now known as banghouse
r3m has joined #ruby
gnutz has joined #ruby
<r3m>
Hi, I would like to know if there is a famous IRC framework
lyanchih has joined #ruby
havenwood has quit [Remote host closed the connection]
jimg has joined #ruby
matthalliday has joined #ruby
arya_ has quit [Ping timeout: 256 seconds]
dmiller has joined #ruby
cha1tanya has joined #ruby
retired has joined #ruby
tonini has joined #ruby
lyanchih has quit [Ping timeout: 256 seconds]
havenwood has joined #ruby
jonathanwallace has quit [Read error: Operation timed out]
havenwood has quit [Remote host closed the connection]
matthalliday has quit [Quit: matthalliday]
Mendon has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Aristata has joined #ruby
gnutz has quit [Quit: Konversation terminated!]
RobW_ has joined #ruby
lkba has joined #ruby
<Aristata>
When I am calling rake jobs:work for resque, how to I assign queue1 and queue2 only through the QUEUE env variable?
nomenkun has joined #ruby
mmitchell has quit [Ping timeout: 252 seconds]
Hobogrammer_ has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
axeman- has joined #ruby
nomenkun has quit [Ping timeout: 240 seconds]
kiela_ has quit [Ping timeout: 240 seconds]
kiela has joined #ruby
queston has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
krainboltgreene has joined #ruby
charliesome has joined #ruby
futilegames has quit [Ping timeout: 256 seconds]
tonini has quit [Ping timeout: 248 seconds]
comrade_ has joined #ruby
sk87 has joined #ruby
Heero_ has quit [Ping timeout: 264 seconds]
BrianJ has quit [Quit: Computer has gone to sleep.]
comrade_ has quit [Read error: Connection reset by peer]
nari has quit [Ping timeout: 245 seconds]
TIJ has joined #ruby
pyrac has quit [Quit: pyrac]
vinnyOcean has joined #ruby
ezkl has joined #ruby
elaptics is now known as elaptics`away
adambeynon has joined #ruby
jbanier has joined #ruby
tonini has joined #ruby
Guest74521 has quit [Ping timeout: 248 seconds]
Kricir has joined #ruby
pyrac has joined #ruby
emergion has joined #ruby
viszu has quit [Quit: Leaving.]
ArnaudR has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
viszu has joined #ruby
viszu has quit [Client Quit]
<ArnaudR>
Hi everybody! Any idea why my db/schema.rb is added the '# encoding: US-ASCII' line when running migrations?
Kricir has quit [Ping timeout: 276 seconds]
jbanier has left #ruby [#ruby]
BeLucid has joined #ruby
arya_ has joined #ruby
tatsuya_o has joined #ruby
statarb3 is now known as Proshot-laptop
tatsuya_o has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
DaniG2k has quit [Read error: Connection reset by peer]
tatsuya_o has joined #ruby
DaniG2k1 has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
dkannan has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 248 seconds]
ybart has quit [Quit: ybart]
codesoda has joined #ruby
KevinSjoberg has joined #ruby
burlyscudd has quit [Ping timeout: 246 seconds]
KhalilC has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
Elhu has joined #ruby
b0oh has quit [Quit: Leaving.]
Asher has quit [Quit: Leaving.]
arya_ has joined #ruby
b0oh has joined #ruby
<e-dard>
Hi, question — instance method takes a hash and does stuff to the values. Mutate the hash or return a new hash or return the mutated hash? Answers on a postcard...
Asher has joined #ruby
freeayu has quit [Ping timeout: 252 seconds]
Meatant has quit [Quit: the man across the street gives you an awekward stare, and you know shits just going to get weirder]
LetsNukeUSA has quit [Remote host closed the connection]
TIJ has quit [Ping timeout: 256 seconds]
LetsNukeUSA has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
arya_ has quit [Ping timeout: 248 seconds]
arya_ has joined #ruby
tkuchiki has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
Spooner has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
tatsuya__ has joined #ruby
Guga_ has joined #ruby
mathnode has joined #ruby
yshh has quit [Remote host closed the connection]
emanon_ has joined #ruby
arya_ has joined #ruby
<mathnode>
How can I make this function return the newly modified string without using '!' after the gsub method?
<bnagy>
mathnode: also strSwap is no a ruby method name
<bnagy>
*not - it would be str_swap or something
<mathnode>
bnagy, oh ok
<mathnode>
hmm ok I will take a look at inject
KevinSjoberg has joined #ruby
krainbol_ has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
nari has joined #ruby
krainboltgreene has quit [Read error: Operation timed out]
sk87 has joined #ruby
diogenesofsinope has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
poga has quit [Remote host closed the connection]
<mathnode>
bnagy, my goodness, that's great thanks very much. inject!
<bnagy>
I don't normally use it because it's often a harder-to-understand way of doing something easy
<bnagy>
but in this case I think you'd need to create a .dup and then repeatedly assign to that, which is ugly
pyrac has quit [Quit: pyrac]
<mathnode>
bnagy, I find it easier in ruby to use the more functional and folding features, that it is to try and write straight-up nested loops, like I would have in C.
<bnagy>
idiomatic ruby has almost no loops
<bnagy>
well no for loops
Zeeraw has joined #ruby
ybart has joined #ruby
<mathnode>
bnagy, not a loop, just a hacking find and replace for a bunch of place holders in a config file.
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
browndawg has quit [Quit: Leaving.]
TIJ has joined #ruby
jefflyne has joined #ruby
camilasan has quit [Remote host closed the connection]
threesome has quit [Ping timeout: 256 seconds]
browndawg has joined #ruby
pwnfactory has joined #ruby
futilegames has joined #ruby
sevenseacat has joined #ruby
ptman has joined #ruby
arya_ has quit [Read error: Connection reset by peer]
arya_ has joined #ruby
RonScagz has joined #ruby
<ptman>
is there function-like composability in eruby? can someone point me to documentation or example?
<ptman>
maybe the ability to include another template?
Domon has quit [Remote host closed the connection]
Xeago has joined #ruby
KevinSjoberg has joined #ruby
RonScagz has quit [Client Quit]
pyrac has joined #ruby
Zeeraw has quit [Quit: Computer has gone to sleep.]
camilasan has joined #ruby
ybart has quit [Quit: ybart]
threesome has joined #ruby
arya_ has quit [Read error: Connection reset by peer]
arya_ has joined #ruby
freeayu has joined #ruby
tatsuya__ has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
razi has joined #ruby
Meatant has joined #ruby
julweber has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Guga_ has quit [Quit: ~]
whowantstolivefo has joined #ruby
teclator has quit [Quit: Lost terminal]
Shrink has quit [Remote host closed the connection]
burlyscudd has joined #ruby
julweber has joined #ruby
elaptics`away is now known as elaptics
threesome has quit [Read error: Connection reset by peer]
pyrac has quit [Quit: pyrac]
yshh has joined #ruby
fermion has joined #ruby
threesome has joined #ruby
kasper has joined #ruby
wsterling has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 248 seconds]
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
arya_ has joined #ruby
tacos1de_ has quit [Ping timeout: 240 seconds]
buzzybron has quit [Quit: Leaving.]
tacos1de has joined #ruby
diogenesofsinope has joined #ruby
KevinSjoberg has joined #ruby
Zeeraw has joined #ruby
kofno has joined #ruby
queston has joined #ruby
burlyscudd has quit [Ping timeout: 256 seconds]
<ddv>
how can you call a method dynamically and pass a block to it?
jimg has joined #ruby
wsterling has quit [Remote host closed the connection]
Meatant has quit [Quit: the man across the street slowly and purposefuly blinks 3 times, then everything is dark. more wierdness sets in as you hear an increasingly louder low-pitched hum, while noticing a warm breeze strengthening, mingling and providing new dimensions of wier]
<gakos>
following up, if gsub occurs within an iterator, match objects are not getting garbage collected and T_STRING object count blows up
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
krainboltgreene has quit [Ping timeout: 252 seconds]
iamjarvo has joined #ruby
burlyscudd has joined #ruby
tkuchiki has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
niklasb has joined #ruby
niceguyjames has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
Kudos has quit [Excess Flood]
Kruppe has joined #ruby
atno has quit [Remote host closed the connection]
diogenesofsinope has joined #ruby
gildo has joined #ruby
pen has joined #ruby
diogenesofsinope has quit [Client Quit]
krz has quit [Quit: krz]
seich has joined #ruby
burlyscudd has quit [Read error: Connection reset by peer]
anay has quit [Remote host closed the connection]
matthewrobbins has joined #ruby
ybart has quit [Quit: ybart]
anay has joined #ruby
tomzx_mac has joined #ruby
blackmesa has joined #ruby
pen has quit [Remote host closed the connection]
Squarepy has joined #ruby
anay has quit [Ping timeout: 245 seconds]
mark_locklear has joined #ruby
chrisja has joined #ruby
TIJ has quit [Ping timeout: 276 seconds]
profil has joined #ruby
jimg has quit [Remote host closed the connection]
<profil>
Hey, I have a line like this "foo.each do |kind, command|" how do I create that foo with kind and command? should it be like this "foo = [["email", "admin"], ["phone", "user"]]"?
nezumi has quit [Ping timeout: 264 seconds]
TIJ has joined #ruby
<Kelet>
profil, That looks fine if the logic matches your intentions. i.e., on first loop kind="email" and command="admin"
<Kelet>
(Maybe use single quotes as you're not doing any string interpolation *shrug*)
rfizzle has joined #ruby
maxmanders has joined #ruby
pipopopo has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
<profil>
Kelet: yeah okay, but that's kinda ugly, isnt there a more elegant way?
Kudos has joined #ruby
Kudos has quit [Changing host]
Kudos has joined #ruby
carloslopes has joined #ruby
<Xeago>
profil: are your values tuples do you have a hash (dictionary)
iamjarvo has quit [Quit: Leaving.]
pkh has quit [Quit: Leaving]
viszu has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
iamjarvo has joined #ruby
splittingred has joined #ruby
Fire-Dragon-DoL has joined #ruby
KevinSjoberg has joined #ruby
sarkis has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
obs has quit [Quit: Konversation terminated!]
ybart has joined #ruby
RobW_ has joined #ruby
graydot has quit [Quit: graydot]
kasper has quit [Remote host closed the connection]
danslo has joined #ruby
angusiguess has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
Elhu has joined #ruby
atyz has joined #ruby
romockee has joined #ruby
kasper has joined #ruby
ldnunes has joined #ruby
troker has joined #ruby
Shrink has left #ruby ["tata"]
iamjarvo has quit [Quit: Leaving.]
JZTech101 has joined #ruby
codesoda has quit [Remote host closed the connection]
anay has joined #ruby
io_syl has joined #ruby
pen has joined #ruby
seich has quit [Read error: Operation timed out]
maze has joined #ruby
<maze>
good afternoon
<maze>
can somebody tell me how to fetch the page content when rescuing a OpenURI::HTTPError ?
maxmanders has joined #ruby
freeayu has quit [Remote host closed the connection]
breakingthings has joined #ruby
jimg has joined #ruby
mmitchell has joined #ruby
queston has quit [Remote host closed the connection]
colonolGron has joined #ruby
sambao21 has joined #ruby
niceguyjames has quit [Remote host closed the connection]
niceguyjames has joined #ruby
Zeeraw has quit [Quit: Computer has gone to sleep.]
wesside_ has quit [Quit: Computer has gone to sleep.]
kofno has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 248 seconds]
kofno has joined #ruby
arya_ has joined #ruby
LetsNukeUSA has quit [Ping timeout: 240 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
pranny1 has quit [Quit: Leaving.]
Bry8Star{T2 has joined #ruby
ferdev has joined #ruby
jimg has quit [Ping timeout: 246 seconds]
sevenseacat has quit [Quit: Leaving.]
hogeo has quit [Remote host closed the connection]
Bry8Star{T2_ has quit [Ping timeout: 240 seconds]
ryannielson has joined #ruby
kasper has quit [Remote host closed the connection]
hogeo has joined #ruby
RubNoob has joined #ruby
jerius has joined #ruby
AlbireoX has joined #ruby
ttt has quit [Remote host closed the connection]
<RubNoob>
can someone point me at a link on how to set minimum spacing in an ERB template string? (i.e. I would like to build something like a crontab and ensure each field has at least 5 char spots)
angusiguess has quit [Ping timeout: 246 seconds]
dmiller has quit [Remote host closed the connection]
dmiller has joined #ruby
fuzzyhorns has joined #ruby
ravster has joined #ruby
ravster has quit [Client Quit]
nomenkun has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 246 seconds]
cha1tanya has quit [Ping timeout: 246 seconds]
pyrac_ has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
pyrac has quit [Ping timeout: 246 seconds]
pyrac_ is now known as pyrac
codecop has quit [Quit: Išeinu]
johnmilton has joined #ruby
axeman- has quit [Remote host closed the connection]
io_syl has quit [Remote host closed the connection]
elux has joined #ruby
tomzx_mac has quit [Ping timeout: 245 seconds]
arya_ has joined #ruby
b0oh has quit [Quit: Leaving.]
LetsNukeUSA has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby
interactionjaxsn has joined #ruby
pipopopo has joined #ruby
arya__ has joined #ruby
Squarepy has quit [Quit: Leaving]
anay has quit [Remote host closed the connection]
nignaztic has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
smt has quit [Quit: Konversation terminated!]
wsterling has joined #ruby
b0oh has joined #ruby
b0oh has left #ruby [#ruby]
dmiller has quit [Remote host closed the connection]
nazty has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
Nisstyre has quit [Ping timeout: 256 seconds]
queston has joined #ruby
braoru has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
wsterling has quit [Ping timeout: 248 seconds]
jefflyne has joined #ruby
jefflyne has quit [Max SendQ exceeded]
goganchic has joined #ruby
jefflyne has joined #ruby
jefflyne has quit [Max SendQ exceeded]
braoru has joined #ruby
jefflyne has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
sk87 has joined #ruby
afd__ has quit [Read error: Connection reset by peer]
jimg has joined #ruby
asteve has joined #ruby
queston has quit [Ping timeout: 256 seconds]
asteve has quit [Client Quit]
<Dwarf>
Good afternoon
angusiguess has joined #ruby
<Dwarf>
I remember there was a way to define an array like "test_array = %q(one two three)" or something like that?
mengu has joined #ruby
failshell has joined #ruby
iamjarvo has joined #ruby
<Mon_Ouie>
%w(one two three)
<_br_>
Dwarf: %w
<Dwarf>
I see
<_br_>
ah, 2 seconds to late.
<Dwarf>
What would I look for in the documentation, what is it called?
matchaw_ has quit [Remote host closed the connection]
matchaw has quit [Ping timeout: 248 seconds]
LennyLinux has joined #ruby
<pedda>
if i want to clone a repo from within a ruby file, i can specify the repositorym the path to clone to, the reference, but how do i define what the (directory-)name of the cloned repo is?
kasper has joined #ruby
enebo has joined #ruby
zommi has quit [Remote host closed the connection]
acrussell has joined #ruby
pyrac has quit [Ping timeout: 256 seconds]
pyrac has joined #ruby
alpaca_taichou has joined #ruby
devoldmx has joined #ruby
sailias has quit [Read error: Operation timed out]
<hoelzro>
pedda: I assume you mean git?
<pedda>
yes
<hoelzro>
you can specify the name of the new working directory as an optional second argument to the git clone command
<MrZYX>
or `git clone "#{repo_url}" "#{dest_dir}"` or %X[git clone "#{repo_url}" "
<MrZYX>
#{dest_dir"}]
<pedda>
looks like there are several ways to do so
<hoelzro>
why use ``?
wolcanus has joined #ruby
<hoelzro>
that grabs the output
<hoelzro>
which you don't need
Astralum has quit [Ping timeout: 256 seconds]
elaptics`away is now known as elaptics
<hoelzro>
also, there's no reason to run it in a shell subprocess
matchaw has joined #ruby
<pedda>
it is.. due to vagrant (ruby based provisioning of virtual machines)
<MrZYX>
hoelzro: then tell him about Process.wait too
vlad_starkov has quit [Remote host closed the connection]
zenergi has joined #ruby
<hoelzro>
MrZYX: what about it?
zenergi has left #ruby [#ruby]
<pedda>
my question is ruby syntax related, but rather a vagrant topic
Kricir has quit [Ping timeout: 256 seconds]
<hoelzro>
oh, I didn't realize spawn put the process in the bg
<hoelzro>
my bad
futilegames has joined #ruby
<pedda>
so what happens in my snippet is called a shell subprocess?
sarkis has joined #ruby
brum has joined #ruby
Nisstyre has joined #ruby
brum is now known as ryancw
<pedda>
if one knows what to google for .. thx :)
pyrac has quit [Ping timeout: 260 seconds]
<pedda>
found my solution
* hoelzro
waits for paste to load
bitkiller has joined #ruby
ntus1017 has joined #ruby
JZTech101 has quit [Read error: Connection reset by peer]
profil has left #ruby [#ruby]
threesome has joined #ruby
persand has quit [Quit: persand]
DaniG2k has joined #ruby
<pontiki_>
pedda, that code you pasted looks like vagrant's dsl
<pedda>
this might be.. i am new to both .. ruby and vagrant :)
<pedda>
i have found a solution for my problem already :)
Maior has joined #ruby
dkannan has quit [Quit: dkannan]
tommyvyo has joined #ruby
JZTech101 has joined #ruby
aedorn has joined #ruby
<aedorn>
bonjour!
machuga|away is now known as machuga
philcrissman_ has joined #ruby
fridim_ has quit [Read error: Connection reset by peer]
JZTech101 has quit [Max SendQ exceeded]
<Maior>
I'm led to believe I can deploy a ruby app by doing "bundle install --deployment", packaging up the dir, and running it with "bundle exec server.rb"; instead I find myself getting http://pastebin.com/yZpiDkUi as though it were semi-ignoring my bundled gems
<MrZYX>
you're searching for bundle package
zmike123 has left #ruby ["~"]
<MrZYX>
and then on the server you can do bundle install --deployment
<iamjarvo>
if you have used a not so known method to refactor code can you please post the method with the before and after? for example i recently used partition
<_br_>
Mon_Ouie: Outdated yes, but he was asking what it is called.
<Maior>
MrZYX: so I don't `bundle install --deployment` pre-packaging; it's instead a post-install step?
<Maior>
MrZYX: doesn't that mean I'm fetching packages again?
<MrZYX>
not if you use bundle package
maze has left #ruby [#ruby]
<MrZYX>
it does require a compiler and dev packages on the server though
zmike123 has joined #ruby
<Maior>
MrZYX: doing those on the server has made no differenc
<Maior>
+e
rippa has joined #ruby
freerobby has quit [Quit: Leaving.]
BillCriswell has joined #ruby
diogenesofsinope has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zmike123 is now known as fntzr
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
philcrissman_ has quit [Remote host closed the connection]
diogenesofsinope has joined #ruby
cha1tanya has joined #ruby
dmiller has joined #ruby
diogenesofsinope has quit [Client Quit]
diogenesofsinope has joined #ruby
JZTech101 has joined #ruby
bamdad has joined #ruby
alpaca_taichou has quit [Remote host closed the connection]
DestinyAwaits has quit [Ping timeout: 276 seconds]
bamdad has quit [Client Quit]
razi has quit [Quit: Leaving.]
razi has joined #ruby
alex__c2022 has joined #ruby
ciziar has joined #ruby
GeissT has quit [Quit: MillBroChat AdIRC User]
dmiller has quit [Read error: Operation timed out]
sk87 has joined #ruby
<Maior>
(also, why can't I just `bundle install` and package that as a single blob?)
kevinykc_ has quit [Quit: Computer has gone to sleep.]
seich has joined #ruby
<aedorn>
Nothing really stopping you from doing that. Just need to make sure your local environment and architecture is roughly the same as what you're putting it on. Especially since you have some C extensions (like EventMachine)
brennanMKE has joined #ruby
tagrudev has quit [Remote host closed the connection]
<Maior>
aedorn: ok, good good, that's what I thought I was doing
danbeck has joined #ruby
<Maior>
but these errors are surprising, and persist even after i `bundle install --deployment` and `bundle package` on the server
<Maior>
waxjar: yep, read and am following that
<Maior>
waxjar: that's how I arrived at the point I'm at
ttt has joined #ruby
aramus_ has joined #ruby
<waxjar>
i dont think you should pass the --deployment flag if you used bundle package
browndawg has left #ruby [#ruby]
<aramus_>
Hi, is there a better way to call other ruby programs from within a ruby program aside from "system 'ruby program.rb"
rismoney has quit [Remote host closed the connection]
rismoney has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
RobW_ has quit [Quit: RobW_]
pootler_ has joined #ruby
Zeeraw has joined #ruby
<aedorn>
You don't want to run "bundle package" on the server, though. You run "bundle package" on your local machine, then package it, copy it, unpackage, and run "bundle install --local" or "bundle install --local --deployment" if you want to conform to your Gemfile.lock file.
pranny has joined #ruby
pranny has quit [Client Quit]
<Maior>
aedorn: waxjar: sure, I didn't expect success, but figured I should try them to see if they effected any change
ananthakumaran has quit [Quit: Leaving.]
TIJ has quit [Read error: Connection reset by peer]
comrade_ has joined #ruby
comrade_ has quit [Client Quit]
kreisys has quit [Quit: Computer has gone to sleep.]
comrade_ has joined #ruby
failshell has left #ruby [#ruby]
Jefus has joined #ruby
ttt has quit [Ping timeout: 256 seconds]
comrade_ has quit [Read error: Connection reset by peer]
comrade__ has joined #ruby
mary5030 has joined #ruby
pootler has quit [Ping timeout: 264 seconds]
comrade__ has quit [Read error: Connection reset by peer]
colonolGron has quit [Ping timeout: 264 seconds]
comrade__ has joined #ruby
comrade__ has quit [Client Quit]
comrade__ has joined #ruby
joshwines has quit [Ping timeout: 240 seconds]
braoru has quit [Quit: Leaving]
comrade__ has quit [Client Quit]
comrade__ has joined #ruby
iamjarvo has quit [Ping timeout: 246 seconds]
comrade__ has quit [Read error: Connection reset by peer]
comrade__ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
comrade__ has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
comrade__ has joined #ruby
comrade__ has quit [Read error: Connection reset by peer]
darkstar| has joined #ruby
joshwines has joined #ruby
sambao21 has joined #ruby
epta has quit [Ping timeout: 240 seconds]
vigintas_ has joined #ruby
alemos has joined #ruby
<Maior>
ah
vigintas has quit [Ping timeout: 264 seconds]
<alemos>
sorry for the n00b question. But can I pass the value from a div or a span from a view to a controller?
bamdad has joined #ruby
<MrZYX>
alemos: #rubyonrails
kasper has quit [Remote host closed the connection]
haxrbyt__ has quit [Remote host closed the connection]
<alemos>
ah. sorry MrZYX
bamdad has quit [Client Quit]
haxrbyte has joined #ruby
<Maior>
aedorn / waxjar: native extension woe it seems, cheers; if I rm the packaged vendor/bundle, and then `bundle install`, all works fine; if I also add a dependency on `ruby-eventmachine` I get some progress; now trying to find a Debian package with `ruby_http_parser`
pipework has joined #ruby
sk87 has joined #ruby
zodiak has quit [Remote host closed the connection]
wallerdev has joined #ruby
threesome has quit [Ping timeout: 276 seconds]
RichardBaker has quit [Quit: RichardBaker]
threesome has joined #ruby
generalissimo has joined #ruby
freerobby has joined #ruby
samuel02 has joined #ruby
sk87 has quit [Client Quit]
momomomomo has joined #ruby
machuga is now known as machuga|away
kobain has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
realDAB has joined #ruby
<aedorn>
cool, glad you got some progress at least
nowthatsamatt has joined #ruby
nowthatsamatt has left #ruby [#ruby]
s2013 has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
thecommongeek has quit [Remote host closed the connection]
<HodorBaggins>
Hello, I just installed ruby2 and rails4 on a remote centos6/apache2 server. I genereted a generic welcome/index but when browse to mysite.com it still just serves up public/index.html. How do I get it to show my view? Do I need an htaccess?
banghouse2 has joined #ruby
viszu has quit [Ping timeout: 260 seconds]
<Xeago>
HodorBaggins: are you using passenger?
<HodorBaggins>
no, is that what I need?
<Xeago>
apache doesn't know how to run ruby
<Xeago>
it doesn't know how to run php either, the application server knows
banghouse2 is now known as banghouse
RobW_ has joined #ruby
<HodorBaggins>
Xeago: How do I tell the apache how to run ruby?
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
jgood has joined #ruby
RichardBaker has joined #ruby
<Xeago>
mod_ruby, passenger
<Xeago>
or use another setup
vlad_starkov has joined #ruby
<Xeago>
do some googling, hosting rails on apache
vadelius has quit [Changing host]
vadelius has joined #ruby
<HodorBaggins>
Xeago: Thank you. I missed this piece of it. Most tutorials just talk about local development.
sayan has quit [Ping timeout: 256 seconds]
queston has joined #ruby
ShapeShifter499 has joined #ruby
samuel02 has quit [Ping timeout: 246 seconds]
mklappstuhl has joined #ruby
jimg has joined #ruby
sambao21 has joined #ruby
bobbyz has quit [Ping timeout: 252 seconds]
zigomir has quit [Quit: zigomir]
zodiak has joined #ruby
alemos has quit [Quit: Leaving.]
wolcanus has quit [Remote host closed the connection]
ravster has joined #ruby
vlad_starkov has quit [Ping timeout: 276 seconds]
queston has quit [Ping timeout: 264 seconds]
ybart has quit [Quit: ybart]
HodorBaggins has quit [Quit: Page closed]
maxmanders has joined #ruby
<Maior>
does anyone recommend any reading about ruby native extensions + packaging?
<hoelzro>
Maior: README.EXT, and other extensions others have written
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<hoelzro>
I don't think there's a good text on the subject
<hoelzro>
which is a shame
<hoelzro>
Hanmac has written a number of good extensions
burlyscudd has quit [Quit: Leaving.]
jimg has quit [Ping timeout: 276 seconds]
<Maior>
hoelzro: I'm not looking to write them, I'm looking to package apps with gem dependencies that use them
<hoelzro>
oh, I see
mahmoudimus has joined #ruby
<Maior>
I'm trying to avoid having to `bundle install` as a package postinst
Appineer has joined #ruby
RichardBaker has quit [Ping timeout: 264 seconds]
banjara has joined #ruby
bobbyz has joined #ruby
splittingred_ has joined #ruby
aganov has quit [Quit: aganov]
jeffreylevesque has joined #ruby
splittingred has quit [Ping timeout: 245 seconds]
splittingred_ is now known as splittingred
huoxito has quit [Quit: Leaving]
julweber has quit [Remote host closed the connection]
queston has joined #ruby
jprovazn has quit [Quit: Leaving]
ckrailo has joined #ruby
sarkis has quit [Quit: leaving]
wolcanus has joined #ruby
geggam has joined #ruby
Mon_Ouie has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
viszu has joined #ruby
threesome has joined #ruby
queston has quit [Remote host closed the connection]
Xeago_ has joined #ruby
chrishough has joined #ruby
aramus_ has left #ruby [#ruby]
danbeck has quit [Quit: danbeck]
danbeck has joined #ruby
Adawerk has quit [Quit: Leaving]
mengu has quit [Quit: Leaving]
Kricir has quit [Ping timeout: 246 seconds]
JumpMast3r has quit [Quit: JumpMast3r]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
haxrbyte has quit [Read error: Connection reset by peer]
maxmanders has quit [Quit: Computer has gone to sleep.]
Anit89 has joined #ruby
Anit89 has left #ruby [#ruby]
MrThePlague has joined #ruby
maxmanders has joined #ruby
bitkiller has quit [Quit: Life]
wsterling has joined #ruby
dysth has joined #ruby
alup has quit [Quit: Leaving]
baordog has joined #ruby
<Aristata>
How do I add god to services in unix?
dysth has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
dysth has joined #ruby
LennyLinux has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
pyrac has joined #ruby
<e-dard>
micah`: ah allocate looks *exactly* like what I'm looking for.,
JZTech101 has quit [Ping timeout: 276 seconds]
<e-dard>
pontiki_: yup. micah` seems to have hit the nail on the head :)
realDAB has quit [Quit: realDAB]
twoism has joined #ruby
danslo has joined #ruby
workmad3 has joined #ruby
darkstar| has quit [Remote host closed the connection]
swordsmanz has joined #ruby
bamdad has quit [Quit: bamdad]
bamdad has joined #ruby
<pontiki_>
i have a basic question about the efficacy of such testing
burlyscudd has joined #ruby
Petru_ has joined #ruby
generalissimo has quit [Remote host closed the connection]
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
<pontiki_>
what is that actually buying you?
wsterling has joined #ruby
atmosx has quit [Ping timeout: 240 seconds]
<pontiki_>
seems like you are now testing the ruby infrastructure rather than your own
<e-dard>
pontiki_: the class does some validation and so on in initialize. I'm testing an instance method that does not rely on the object's state
blaxter has quit [Read error: Operation timed out]
<e-dard>
I don't need to test the initialize validation for those tests, so it seems redundant to construct a valid object
<pontiki_>
in that case, i'd agree
<MrZYX>
but then if the method doesn't interact if the objects state, should it really be part of that class?
<e-dard>
(if I had it my way the method would be a static function, but my team don't like those...)
<pontiki_>
i guess i was responding more the author's point that all unit testing should be this way be default
ryannielson has quit [Quit: ryannielson]
<e-dard>
MrZYX: I agree.
petru has quit [Ping timeout: 276 seconds]
Fire-Dragon-DoL has left #ruby [#ruby]
KarlHung1s is now known as KarlHungus
jonahR has quit [Ping timeout: 256 seconds]
<e-dard>
MrZYX: we are starting to use concerns quite a bit now (well really just including modules) I guess that's where this kind of method should be living
senayar has quit [Remote host closed the connection]
<e-dard>
On a tangential note, I've been writing Ruby full-time for 2 months now and I'm really beginning to enjoy it :)
mmitchell has joined #ruby
<e-dard>
But not Rails. I. Really. Don't. Like. Rails.
bamdad has quit [Quit: bamdad]
wsterling has quit [Ping timeout: 256 seconds]
tkuchiki has quit [Remote host closed the connection]
<pontiki_>
what is it you don't like, iydmma?
<pontiki_>
caveat: i like rails, but i don't like it all the time
enebo has joined #ruby
wolcanus has joined #ruby
pi3r has quit [Quit: Leaving]
Fire-Dragon-DoL has joined #ruby
Fire-Dragon-DoL has quit [Max SendQ exceeded]
jerius has quit [Ping timeout: 246 seconds]
Kricir has quit [Read error: Connection reset by peer]
Fire-Dragon-DoL has joined #ruby
Kricir has joined #ruby
moted has quit [Quit: moted]
popl has joined #ruby
fuzzyhorns has joined #ruby
freerobby has quit [Quit: Leaving.]
pootler has joined #ruby
e-dard has left #ruby [#ruby]
e-dard has joined #ruby
delinquentme has joined #ruby
zeade has joined #ruby
havenwood has joined #ruby
LennyLinux has joined #ruby
moted has joined #ruby
<e-dard>
pontiki_: (1) way too much magic for me; (2) it's so slow; (3) with AR I don't like/get the whole "let's slap an id in every table"
moted has quit [Client Quit]
mklappstuhl has joined #ruby
adambeynon has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
maxmanders has quit [Quit: Computer has gone to sleep.]
<pontiki_>
nod. all legit, i think
razi has joined #ruby
graydot has quit [Quit: graydot]
<e-dard>
Still. I'm getting used to it.
<pontiki_>
the magic is double edged
Kricir_ has joined #ruby
<e-dard>
(prior to this I was a Python / Flask guy)
<pontiki_>
devs come to rely on it to exclusion of thinking about what is happening
moted has joined #ruby
ffio has joined #ruby
razi has quit [Client Quit]
<pontiki_>
and that sometimes leads to bad design decisions, especially w.r.t. db design
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
browndawg has quit [Ping timeout: 246 seconds]
<e-dard>
There have been a couple of wtf moments for me with my team — where they felt it was perfectly reasonable and didn't get why I was going wtf :D
<pontiki_>
OTOH, it makes standing up a full web app pretty easy
babaji has quit [Ping timeout: 256 seconds]
<pontiki_>
oh, hehe
<pontiki_>
i was working on a project recently where we started measure the wtf-rate
<e-dard>
For example there are many places in our app where methods are created on the fly based on collections of variables/db values
<pontiki_>
but yes, there are some things which would be idiomatically different
Kricir has quit [Ping timeout: 256 seconds]
<pontiki_>
metaprogramming
<e-dard>
sure. Just too much of it ;)
<pontiki_>
nod
<pontiki_>
happens
atmosx has joined #ruby
<pontiki_>
it can be an elegant solution to some things
<e-dard>
there are also cases where classes must implement some method for them to work (because super class calls the method) but there are no simple things like def foo; raise NotImplementedError; end in the super class.
futilegames has quit [Quit: futilegames]
atmosx has quit [Client Quit]
machuga|away is now known as machuga
<e-dard>
things I would consider good practise, but not "the Rails way" haha
<pontiki_>
isn't that part of concerns?
<pontiki_>
or was this something self-developed?
<pontiki_>
oh, don't say that
<e-dard>
Well I would think these things should be in concerns now yes
<pontiki_>
your team may very well have "house rules" for what "the Rails way" is
<Mon_Ouie>
The most common way to indicate that is just to have the class documnted
<Mon_Ouie>
Just to think about it, consider the case where the method is implemented using method missing
<pontiki_>
i was the only person who ever wrote documentation, let alone comments, in their code at the place i just left
mark_locklear has quit [Ping timeout: 245 seconds]
<e-dard>
The problem for me with that approach is — you're now restricting your hiring basically to "Rails engineers"
<pontiki_>
i think one has to deconstruct what one means by documentation
momomomomo has quit [Quit: momomomomo]
<pontiki_>
that is so
<pontiki_>
and that isn't a problem for DHH
<e-dard>
For me documentation means any competent engineer can read your code and get a feel for what's going on, even if they don't fully grasp it immediately
<pontiki_>
there are two aspects of it for me
<pontiki_>
one it the sort of stuff you'd see in an rdoc
<pontiki_>
explaining how to use my code
rsahae_ has joined #ruby
<pontiki_>
the second is the stuff inside that says why i'm choosing to implement something a certain way, and what other approaches may have been tried, and so on -- as communication to the future maintainer (which might even be me)
<pontiki_>
and my third is the snippets of doggerel i write when i want to entertain myself
fmcgeough has quit [Read error: Connection reset by peer]
<pontiki_>
the second crops up a lot when i've picked up someone else's code that's largely undecipherable
fmcgeough has joined #ruby
haxrbyte has quit [Remote host closed the connection]
<pontiki_>
but as for writing external tomes of documentation, as DHH is saying, i find that largely useless as well
obs has quit [Quit: Konversation terminated!]
<terrellt>
I go back and forth.
tommyvyo has quit [Quit:]
<pontiki_>
i think one must, terrellt
<popl>
terrellt: your hair?
<terrellt>
I like the documentation that gets generated by something like YARD, and it's not too onerous.
<pontiki_>
i think one must respond to the current state of things
<terrellt>
But it's extra development time when I decide to change implementation.
<pontiki_>
terrellt: as in change the interface?
<pontiki_>
i.e., the contract?
girija has joined #ruby
mityaz has quit [Quit: See ya!]
Seus has joined #ruby
carloslopes has joined #ruby
<terrellt>
Indeed.
mklappstuhl has quit [Remote host closed the connection]
Nisstyre has quit [Quit: Leaving]
rsahae_ has quit [Client Quit]
<pontiki_>
at issue, though, is how to communicate what the contract is, isn't it?
anay has quit [Remote host closed the connection]
mneorr has joined #ruby
trepidaciousMBR has quit [Quit: trepidaciousMBR]
<terrellt>
The problem being I verify the contract in my unit tests.
noop has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
zeade has quit [Quit: Leaving.]
Spami has joined #ruby
zeade has joined #ruby
robscomputer has joined #ruby
cj3kim has joined #ruby
browndawg has joined #ruby
<pwnfactory>
gst
timonv has joined #ruby
therealnoop has quit [Ping timeout: 276 seconds]
ferdev has quit [Ping timeout: 260 seconds]
vigintas_ has quit [Read error: Connection reset by peer]
<pontiki_>
is that communicating it to the person who wants to use your module?
tommyvyo has quit [Client Quit]
anay has joined #ruby
alex__c2022 has joined #ruby
kadoo has joined #ruby
burlyscudd has quit [Quit: Leaving.]
rsahae_ has joined #ruby
JZTech101 has joined #ruby
<terrellt>
Again, I'm torn. I definitely understand the sentiment behind that post, but I also realize method-level comments can help...I think, at least.
dhruvasagar has joined #ruby
freerobby has joined #ruby
ferdev has joined #ruby
rickruby has joined #ruby
<terrellt>
When I follow "comment all the things" I find myself doing things like # @return [Array<User>] Users with some condition\n def with_condition
altivec has joined #ruby
<terrellt>
Sure feels like I just repeated myself there.
rupee has joined #ruby
<pontiki_>
you have
<pontiki_>
and that's the wrong level of commenting
Kricir_ has quit [Remote host closed the connection]
tommyvyo has joined #ruby
eldariof has joined #ruby
<pontiki_>
the point i guess i'm trying to make is that there isn't one and only one way to document code
timonv has quit [Remote host closed the connection]
<havenwood>
I don't think i care for comments. The code says what the code does. The tests say what the code does. Enough!
<havenwood>
Unless there is something worth discussing.
DanKnox_away is now known as DanKnox
<pontiki_>
havenwood: i think that's just too extremist and fundamentalist a position
<pontiki_>
ok, with that caveat
<terrellt>
havenwood: As was said earlier, method_missing hurts that.
<terrellt>
Dynamic anything, really.
<havenwood>
pontiki_: Larger block comments that actually have a discussion about something hard to understand or expected are nice, I think.
<havenwood>
terrellt: Good point.
seich has quit [Ping timeout: 245 seconds]
browndawg has quit [Ping timeout: 276 seconds]
<Mon_Ouie>
Hm? What I said about method missing was that def foo; raise NotImplementedError; end would prevent method_missing from being triggered when foo gets called
<pwnfactory>
I always like finding comments about _why_ something is the way it is
<terrellt>
I'm considering taking the plunge on a gem to add table columns to my documentation too.
<Mon_Ouie>
(Well, I should have said it explicitly, true)
<pontiki_>
we had a case where earlier devs created this really awesomely cool DSL for doing seed data, but then when it came around to understanding what was happening, it turned out to be a rather complicated mess
jonahR has joined #ruby
saarinen has joined #ruby
camilasan has quit [Remote host closed the connection]
<pontiki_>
terrellt: there is one already
<terrellt>
pontiki_: I know, I meant take the plunge on using it.
<Mon_Ouie>
pwnfactory: Don't forget to check your SCM commits for that
<pontiki_>
oh i see, sorry
<pwnfactory>
Mon_Ouie: excellent point! git-blame
<Mon_Ouie>
Indeed
<e-dard>
havenwood: I understand that point for sure. For me though, documentation is not just about "adding value", it's about making things easier for other devs.
<pontiki_>
i guess i'm unclear why that sort of thing is being objected to (the raise NotImplementedError)
<e-dard>
If you can convey something in documentation in half the time or less it takes to read and understand the code, then it's perhaps a good thing, no?
<pontiki_>
can be, e-dard
<pwnfactory>
Mon_Quie: although when something is initially committed into the repo, the commit message probably won't include the 'why'
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
kevinykchan has joined #ruby
mrsolo has joined #ruby
<pontiki_>
but then you have the entropy question of maintaining explanation and implementataion when implementation changes
ciziar has quit [Ping timeout: 256 seconds]
generalissimo has joined #ruby
banjara has quit [Quit: Leaving.]
<pontiki_>
but keeping the info there, and updating it, does communicate history to the future maintainer
pyrac has quit [Quit: pyrac]
spider-mario has joined #ruby
<Mon_Ouie>
True, note that having that kind of comments is perfectly fine in my opinion (it just can cause repetitions with commit messages, which is why they're often not directly in the code)
<pontiki_>
in other projects, i've seen things go back and forth
<e-dard>
Yeah. I guess this is perhaps one of the reasons "documentation testing" became popular
<pontiki_>
one dev implements something one way
PhatBaja has joined #ruby
<pontiki_>
later anotehr dev changes it
<pontiki_>
then even later, another dev changes it back
emmanuelux has joined #ruby
s2013_ has joined #ruby
<pontiki_>
or another case where a module was implemented a certain way because of the way some outside condition made a constraint on how it was done
<pontiki_>
but this outside constraint wasn't documented
c0rn has joined #ruby
<pwnfactory>
the worst are outdated comments... which can be really confusing
Kricir has joined #ruby
<pontiki_>
i think those are the worst
_Andres has joined #ruby
<popl>
are you presuming comments that do not describe what the code is doing are outdated? if so I agree with you.
s2013 has quit [Ping timeout: 245 seconds]
<popl>
or in like C++ code: counter++; // adds one to counter
eniolopes has joined #ruby
diogenesofsinope has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tommyvyo has quit [Quit:]
eniolopes has left #ruby [#ruby]
elaptics`away is now known as elaptics
<pwnfactory>
the first case, when the code has been updated but not the comment
rdark has quit [Quit: leaving]
diogenesofsinope has joined #ruby
tonini has joined #ruby
KevinSjoberg has joined #ruby
pwnfactory has quit [Quit: Leaving]
dkannan has quit [Quit: dkannan]
pen has quit [Ping timeout: 256 seconds]
jibi has joined #ruby
dkannan has joined #ruby
chrishough has quit [Quit: chrishough]
jerius has joined #ruby
dkannan has quit [Client Quit]
LennyLinux has quit [Remote host closed the connection]
goganchic has joined #ruby
goganchic has quit [Remote host closed the connection]
havenwood has quit [Read error: Connection reset by peer]
matthalliday has joined #ruby
havenn_ has joined #ruby
LennyLinux has joined #ruby
pen has joined #ruby
banjara has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
alex__c2022 has quit [Quit: alex__c2022]
boblu has joined #ruby
atno has quit [Remote host closed the connection]
Mars` has joined #ruby
jerius has quit [Client Quit]
jorge__ has joined #ruby
<_br_>
Anyone here know guard-livereload & sinatra well? I was hanging around in #guard but that # is rather dead. Wondering which it won't recompile my slim templates properly when running despite reacting on save events. It works fine with e.g. sass but not with views.
anay has quit [Remote host closed the connection]
x1337807x has joined #ruby
ciziar has joined #ruby
LennyLinux has quit [Ping timeout: 260 seconds]
<MarcWeber>
Is there yet another alternative for rake /drake ?
jerius has joined #ruby
<_br_>
MarcWeber: Whats wrong with Rake?
Kricir has quit [Remote host closed the connection]
<MarcWeber>
What's wrong with drake? Don't know. I don't get why its taking more than a sec to start as simple build.
<MarcWeber>
Keeps reinvoking the same target over and over again.
alex__c2022 has quit [Client Quit]
jorge__ has quit [Read error: Connection reset by peer]
<_br_>
Well these build system tools are a dime a dozen. Its a very difficult problem otherwise we wouldn't have e.g. Make, Autotools, Scons, ant, rake, and ten thousand other variations
alex__c2022 has joined #ruby
havenn_ has quit [Read error: Connection reset by peer]
realDAB has joined #ruby
Appineer has left #ruby [#ruby]
<MarcWeber>
_br_: No: its simple. I want "fail early" and "continue on failure with branches who didn't fail"
JZTech101 has quit [Ping timeout: 260 seconds]
jlast has quit [Ping timeout: 245 seconds]
marcdel has joined #ruby
<MarcWeber>
And I want a drake -j 4 to start earlier than within 1-2 secs if there are about 240 files only
<MarcWeber>
It does not using -j 4, but then it fails much later..
<MarcWeber>
Thus starting more than 4 - 8 builds if you have 4 cores doesn't make sense.
jlast has joined #ruby
<_br_>
I think it depends what you want to accomplish and what you are comfortable with. e.g. CMake has rather good performance, but a retarded syntax, while Autotools are so much more feature complete and mature but rely on a insanity of languages e.g. m4 and others. Rake is basically just an attempt to make a fancier make and suffers from plenty of issues. It should be possible to twist the standard tools to do what you want with some patch
JZTech101 has joined #ruby
<_br_>
Out of the box, I'm not aware of it.
<MarcWeber>
_br_: I'm talking about basic properties, not about fancy custom code.
<MarcWeber>
Well - rake ships with ruby, and yet it has such flaws. That's frightening to me.
jorge__ has joined #ruby
harrymoreno has joined #ruby
sayan has joined #ruby
jimg has joined #ruby
<_br_>
Instead of complaining why don't you send pull-requests?
girija has quit [Ping timeout: 256 seconds]
Schuyler has quit [Ping timeout: 245 seconds]
mark_locklear has joined #ruby
ciziar has quit [Quit: Computer has gone to sleep.]
<MarcWeber>
_br_: Because I'm running out of money and power -l because I've been trying to do for 2 weeks for various projects.
matthalliday has joined #ruby
poseid has joined #ruby
noop has quit [Read error: Operation timed out]
_seanc_ has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
dannymcc has joined #ruby
<_br_>
Switch build system to something which does exactly what you want. There are plenty of choices. Just because Ruby ships with Rake doesn't mean its perfect and required to work on what you want. If you insist on rake, either go ask nicely the core devs of that tool or patch it to what you want.
jimg has quit [Ping timeout: 248 seconds]
dannymcc has quit [Client Quit]
<MarcWeber>
_br_: That's what I did: asking nicely for alternatives before starting my own rake / drake like utility.
jorge__ has quit [Ping timeout: 276 seconds]
krainboltgreene has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
nari has quit [Ping timeout: 256 seconds]
machuga is now known as machuga|away
ferdev has quit [Quit: ferdev]
pootler has quit [Ping timeout: 256 seconds]
adeponte has joined #ruby
rsahae_ has quit [Quit: rsahae_]
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brennanMKE has quit [Read error: Connection reset by peer]
adeponte has quit [Remote host closed the connection]
kevinykchan has quit [Read error: Connection reset by peer]
headius has quit [Quit: headius]
<ravster>
hey all. I have an array of hashes, with the some hashes having a common pair. How would I go about collecting all those hashes into one hash?
Schuyler has joined #ruby
timonv has joined #ruby
kadoo has joined #ruby
girija has joined #ruby
kadoo has quit [Max SendQ exceeded]
cj3kim has quit [Read error: Connection reset by peer]
<ravster>
is there a built-in function that does something similar to that? Or do I just roll my own?
cj3kim has joined #ruby
kevinykchan has joined #ruby
kadoo has joined #ruby
kadoo has quit [Max SendQ exceeded]
robscomputer_ has joined #ruby
kadoo has joined #ruby
kadoo has quit [Max SendQ exceeded]
yacks has quit [Quit: Leaving]
robscomputer_ has quit [Read error: Connection reset by peer]
robscomputer has quit [Read error: Connection reset by peer]
alvaro_o has quit [Read error: Connection reset by peer]
gks has joined #ruby
browndawg has joined #ruby
ferdev has joined #ruby
jsonperl has joined #ruby
<Uranio>
pmros: sinatra without gags
<jsonperl>
If i install from source, having already installed ruby
PhatBaja has quit [Quit: Leaving.]
<jsonperl>
will it do the right thing?
<Uranio>
pmros: try camping
PhatBaja has joined #ruby
brianpWins has joined #ruby
danslo has quit [Read error: Connection reset by peer]
osvico has joined #ruby
danslo has joined #ruby
devoldmx has quit [Ping timeout: 276 seconds]
devoldmx has joined #ruby
tonhe has joined #ruby
<jsonperl>
anyone: can i run make and make install on a newer ruby and assume it will upgrade?
marcdel has joined #ruby
<tonhe>
can someone point me in the right direction, playing with Dasher, found an SNMP script, but when I run it using ruby on the CLI it fails, complaining about "inbound.rb:18:in `<main>': uninitialized constant SCHEDULER (NameError)"
<tonhe>
I assume this is a module I'm missing, but I've used gem to install about everything I can google :)
verto has joined #ruby
aqil has joined #ruby
rsahae has quit [Quit: rsahae]
wsterling has joined #ruby
<tylersmith>
why are the first elements for Date::MONTHNAMES and Date::ABBR_MONTHNAMES nil?
<tylersmith>
the docs say it's that way, but not why
denver has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
jlast has quit [Remote host closed the connection]
milardovich has joined #ruby
<waxjar>
so you can do Date::MONTHNAMES[1] and get january, i suspect
<tylersmith>
hmm
Guga_ has joined #ruby
robscomputer has quit [Read error: Connection reset by peer]
burlyscudd has quit [Quit: Leaving.]
robscomputer has joined #ruby
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
Jekon^^ has joined #ruby
danslo has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
danslo has joined #ruby
Elhu has joined #ruby
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
bamdad has joined #ruby
sepp2k has joined #ruby
jlast has joined #ruby
brianpWins has joined #ruby
Elhu has quit [Client Quit]
realDAB has quit [Quit: realDAB]
elux has joined #ruby
tonhe has left #ruby ["% Network not in table"]
eightbitraptor has quit [Ping timeout: 260 seconds]
Uranio has quit [Quit: while you reading this, a kitty dies]
elaptics is now known as elaptics`away
PhatBaja has joined #ruby
brianpWins has quit [Quit: brianpWins]
ForSpareParts has quit [Ping timeout: 245 seconds]
maxmanders has joined #ruby
johnjohnson has quit [Quit: johnjohnson]
JZTech101 has quit [Client Quit]
Fire-Dragon-DoL has left #ruby [#ruby]
JZTech101 has joined #ruby
LennyLinux has joined #ruby
burlyscudd has quit [Quit: Leaving.]
anderson has quit [Ping timeout: 240 seconds]
kofno has quit [Remote host closed the connection]
jds_ has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
kofno has joined #ruby
kofno has quit [Remote host closed the connection]
girija has quit [Ping timeout: 245 seconds]
alvaro_o has joined #ruby
alvaro_o has quit [Max SendQ exceeded]
txdv_ has joined #ruby
alvaro_o has joined #ruby
txdv has quit [Read error: Connection reset by peer]
bamdad has quit [Quit: bamdad]
viszu has quit [Quit: Leaving.]
wsterling has joined #ruby
BillCriswell has quit [Remote host closed the connection]
bamdad has joined #ruby
ForSpareParts has joined #ruby
jimg has joined #ruby
alvaro_o has quit [Client Quit]
Petru_ has quit [Ping timeout: 276 seconds]
Jackneill has quit [Remote host closed the connection]
viszu has joined #ruby
poseid_ has quit [Quit: poseid_]
Nanuq has joined #ruby
kreisys has quit [Quit: Computer has gone to sleep.]
pencilcheck has joined #ruby
timonv has quit [Remote host closed the connection]
s0ber_ has joined #ruby
CaptainJet_ has joined #ruby
CaptainJet has quit [Disconnected by services]
chriskk has joined #ruby
jimg has quit [Ping timeout: 264 seconds]
pen has quit [Ping timeout: 245 seconds]
robbyoconnor has quit [Ping timeout: 276 seconds]
anderson has joined #ruby
s0ber has quit [Ping timeout: 264 seconds]
viszu has quit [Quit: Leaving.]
s0ber_ is now known as s0ber
nomenkun has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
poseid_ has joined #ruby
nomenkun has joined #ruby
huoxito has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
burlyscudd has joined #ruby
seich- has joined #ruby
cortexman1 has joined #ruby
s2013_ has quit [Quit: Leaving]
<cortexman1>
cmake detect_ruby is unable to detect ruby 1.9.3. it thinks it is 1.9.1. presumably because there is a 1.9.1 directory inside 1.9.3. what's up with that anyway?
staafl has quit [Ping timeout: 256 seconds]
huoxito_ has joined #ruby
spider-mario has quit [Remote host closed the connection]
geggam has quit [Remote host closed the connection]
Kabaka has quit [Excess Flood]
<unstable>
unable to convert "\xF5" from ASCII-8BIT to UTF-8
Wandering_Glitch has quit [Changing host]
Wandering_Glitch has joined #ruby
<unstable>
I am getting a ton of these lines printed out when I gem install stuff.
ferr has joined #ruby
Wandering_Glitch is now known as WanderingGlitch
forced_request has joined #ruby
ForSpareParts has quit [Ping timeout: 246 seconds]
<unstable>
It happens when there is documentation being parsed by something I think.
DrCode has quit [Ping timeout: 240 seconds]
LetsNukeUSA has quit [Ping timeout: 240 seconds]
eaWPq4nU has quit [Ping timeout: 240 seconds]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
tacos1de has quit [Ping timeout: 240 seconds]
Drone[02] has joined #ruby
marcdel has joined #ruby
Astralum has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
c0rn has joined #ruby
colonolGron has joined #ruby
harrymoreno has quit [Ping timeout: 248 seconds]
<colonolGron>
hi
RobW_ has quit [Quit: RobW_]
huoxito_ has quit [Quit: Leaving]
maxmanders has quit [Ping timeout: 264 seconds]
acrussell has quit [Quit: Leaving.]
robbyoconnor has quit [*.net *.split]
pencilcheck has quit [*.net *.split]
txdv_ has quit [*.net *.split]
s00pcan has quit [*.net *.split]
jsonperl has quit [*.net *.split]
cads has quit [*.net *.split]
awarner has quit [*.net *.split]
nefilim has quit [*.net *.split]
yekta has quit [*.net *.split]
Ortuna has quit [*.net *.split]
moted has quit [*.net *.split]
Solnse has quit [*.net *.split]
nbouscal has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
epitron has quit [*.net *.split]
monomyth has quit [*.net *.split]
blackmesa has quit [*.net *.split]
jolleyjoe has quit [*.net *.split]
end_guy has quit [*.net *.split]
Kricir_ has quit [Remote host closed the connection]
ferr has quit [Read error: Connection reset by peer]
adman65 has joined #ruby
harrymoreno has joined #ruby
ner0x has quit [Quit: Leaving]
osvico has quit []
PhatBaja has quit [Quit: Leaving.]
s00pcan has joined #ruby
PhatBaja has joined #ruby
wsterling has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
moted has joined #ruby
Solnse has joined #ruby
nefilim has joined #ruby
awarner has joined #ruby
txdv_ has joined #ruby
pencilcheck has joined #ruby
epitron has joined #ruby
jolleyjoe has joined #ruby
nbouscal has joined #ruby
jsonperl has joined #ruby
monomyth has joined #ruby
yekta has joined #ruby
cads has joined #ruby
ahawkins has quit [Ping timeout: 256 seconds]
seich- has quit [Excess Flood]
joshwines has quit [Excess Flood]
sayan has quit [Ping timeout: 254 seconds]
Ortuna has joined #ruby
seich has joined #ruby
Emmanuel_Chanel has joined #ruby
wsterling has joined #ruby
ferr has joined #ruby
joshwines has joined #ruby
<MrZYX>
cortexman1: 1.9.1 is the ABI version of the 1.9 branch
<MrZYX>
so Ruby version 1.9.3 has the ABI version 1.9.1
reset has joined #ruby
momomomomo has quit [Quit: momomomomo]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cortexman1>
MrZYX: thanks
Devo has quit [Quit: Devo]
carloslopes has quit [Remote host closed the connection]
cads has quit [Max SendQ exceeded]
robbyoconnor has quit [Max SendQ exceeded]
freerobby has quit [Quit: Leaving.]
gyre007 has quit [Remote host closed the connection]
cads has joined #ruby
robbyoconnor has joined #ruby
lethjakman has joined #ruby
chxane has quit [Quit: Leaving]
locriani has quit [Remote host closed the connection]
<lethjakman>
hey, is there an easy way to send a GET request with a bunch of ajax on the end through ruby?
locriani has joined #ruby
jsonperl has left #ruby [#ruby]
vigintas has joined #ruby
poseid_ has quit [Quit: poseid_]
LennyLin_ has joined #ruby
mityaz has quit [Quit: See ya!]
chxane has joined #ruby
sailias has quit [Ping timeout: 256 seconds]
saarinen has joined #ruby
jds_ has joined #ruby
LennyLinux has quit [Ping timeout: 246 seconds]
<interactionjaxsn>
i need to scrape a web page and interact with js events like mouse over
popl has joined #ruby
tvw has joined #ruby
saarinen has quit [Client Quit]
marcdel has joined #ruby
end_guy has joined #ruby
DrCode has joined #ruby
BrenoPerucchi has joined #ruby
Neomex has joined #ruby
poseid_ has joined #ruby
wpaulson has joined #ruby
Neomex has quit [Client Quit]
saarinen has joined #ruby
freerobby has joined #ruby
Ripp__ has joined #ruby
tonini has joined #ruby
<BrenoPerucchi>
How I could override this method LINKwithout class_eval ? WillPaginate::ActionView::LinkRenderer.class_eval do
sondr3 has joined #ruby
wsterling has quit [Remote host closed the connection]
pipework has quit [Remote host closed the connection]
Bry8Star{T2 has joined #ruby
nomenkun has quit [Remote host closed the connection]
razi has quit [Quit: Leaving.]
tonini has quit [Ping timeout: 248 seconds]
ged has quit [Read error: Connection reset by peer]
Spooner has joined #ruby
futilegames has quit [Quit: futilegames]
txdv has joined #ruby
ged has joined #ruby
txdv_ has quit [Ping timeout: 264 seconds]
Bry8Star{T2 has quit [Excess Flood]
Guedes0 has joined #ruby
Guedes0 has quit [Client Quit]
LetsNukeUSA has joined #ruby
orion has joined #ruby
willb1 has quit [Ping timeout: 252 seconds]
Zeeraw has quit [Quit: Computer has gone to sleep.]
Fire-Dragon-DoL has joined #ruby
Kricir has joined #ruby
kirun has quit [Quit: Client exiting]
willb1 has joined #ruby
Guedes0 has joined #ruby
jds_ has quit [Remote host closed the connection]
ntus1017 has quit [Remote host closed the connection]
<orion>
Hi. I am coding a website in Ruby, and one feature I need to have is the ability to archive specific news articles given their URL. I was thinking of using pdfkit to save a snapshot of the article locally, but there are a massive number of dependencies for pdfkit. Are there other good options for archiving such data?
realDAB has joined #ruby
thoolihan has quit [Quit: thoolihan]
cmarques has quit [Ping timeout: 246 seconds]
Bry8Star{T2 has joined #ruby
jds_ has joined #ruby
maxmanders has joined #ruby
maskact has joined #ruby
CaptainJet_ has quit []
ForSpareParts has joined #ruby
blackmesa has joined #ruby
atyz has quit [Quit: Leaving...]
maskact has quit [Client Quit]
cmarques has joined #ruby
jblack has quit [Quit: Lost terminal]
mduvall has joined #ruby
<Xeago_>
orion: why use pdfkit?
CaptainJet has joined #ruby
machuga|away is now known as machuga
mikewintermute has joined #ruby
<Xeago_>
I assume the resource links to is a pdf file, just save it to some storage
aqil has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
Kricir has quit [Ping timeout: 276 seconds]
wsterling has joined #ruby
<orion>
Xeago_: No.
<orion>
The user is providing me with a URL to some arbitrary HTML content.
<orion>
Such as a news article.
<ferr>
gemrc because it doesn't contain valid YAML hash how to solve this?
<orion>
I am thinking that pdfkit is the best gem available to do the job, but I am not sure.
<waxjar>
you want a visual of it?
sondr3 is now known as away_sondr3
<Xeago_>
orion: why not save it as the original source?
jimg has joined #ruby
devoldmx has quit [Ping timeout: 248 seconds]
<Xeago_>
save everything the article links to with a depth of 1, and rewrite links
<Xeago_>
wget has this functionality for example
jblack has joined #ruby
tacos1de has joined #ruby
BrenoPerucchi has quit [Remote host closed the connection]
devoldmx has joined #ruby
johnmilton has quit [Remote host closed the connection]
v0n has quit [Quit: WeeChat 0.4.1]
jimg has quit [Ping timeout: 256 seconds]
v0n has joined #ruby
fuzzyhorns has quit [Remote host closed the connection]
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
maxmanders has quit [Ping timeout: 245 seconds]
rsahae_ has joined #ruby
burlyscudd has joined #ruby
grbsn has left #ruby [#ruby]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<orion>
Xeago_: I suppose I could do that. Not sure how well it would scale. How would you store the data? Would you just store it as static content in my application's public/ directory?
Ortuna has quit [Quit: Computer has gone to sleep.]
MrThePlague has quit [Remote host closed the connection]
mmitchell has quit [Ping timeout: 256 seconds]
nomenkun has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
vigintas has quit [Ping timeout: 245 seconds]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
c0rn has quit [Quit: Computer has gone to sleep.]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
tommyvyo has quit [Quit:]
emmanuelux has quit [Remote host closed the connection]
Ortuna has quit [Quit: Computer has gone to sleep.]
<zastern>
Anybody familiar with rack::profiler? I can't figure out what the numbers in the graphs actually mean. E.g. here's a chunk of a graph with mode => :walltime
havenwood has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
lethjakman has quit [Ping timeout: 246 seconds]
splittingred has quit [Quit: splittingred]
predator117 has joined #ruby
havenwood has joined #ruby
SilverKey has quit [Quit: Cheerio!]
Niamkik_ has joined #ruby
davetherat has quit [Read error: Operation timed out]
Niamkik has quit [Ping timeout: 246 seconds]
Desert_eagle has quit [Ping timeout: 246 seconds]
Alina-malina has quit [Ping timeout: 264 seconds]
jmimi has quit [Quit: Leaving.]
ahuman has quit [Quit: No Ping reply in 180 seconds.]
ahuman has joined #ruby
bigoldrock has quit [Ping timeout: 246 seconds]
Alina-malina has joined #ruby
freerobby has quit [Quit: Leaving.]
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
jarin has joined #ruby
wolcanus has joined #ruby
Desert_eagle has joined #ruby
inimit has joined #ruby
rsahae has quit [Quit: rsahae]
JZTech101 has joined #ruby
lightguard_jp has joined #ruby
inimit has quit [Client Quit]
inimit has joined #ruby
<lightguard_jp>
Is there an easy way to invoke bundler from within a currently running ruby instance? I want to run it and have it install gems, then I figure I'll have to modify the load path after that
twoism has quit [Remote host closed the connection]
codesoda has quit [Remote host closed the connection]
Jedi_SCT1 has quit [Quit: See ya]
Kricir has joined #ruby
codesoda has joined #ruby
wolcanus has quit [Ping timeout: 245 seconds]
<fryguy>
lightguard_jp: seems like a weird way to do things, why not just run bundler before you get a running instance
Jedi_SCT1 has joined #ruby
wmoxam has joined #ruby
brennanMKE has joined #ruby
Somelauw has joined #ruby
rsahae_ has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
<Somelauw>
Anyone familiar with sup, a ruby mail client?
<lightguard_jp>
fryguy: I'm not doing conventional things :)
havenwood has joined #ruby
<fryguy>
Somelauw: just ask the question you really want to ask
<lightguard_jp>
fryguy: I'm building an online editor for a static site generation tool, like Jekyll. Need to be able to do a preview, which would involve running the generation.
saarinen has quit [Quit: saarinen]
<fryguy>
lightguard_jp: ok.. and the contents of the preview is going to edit your Gemfile?
<lightguard_jp>
fryguy: The site that is built may require gems that aren't being used by my site builder app
<Somelauw>
fryguy: Question might not really belong in this channel, but I get this error when trying to run that application https://pastee.org/9zb42 and maybe there is an easy fix by downloading some ruby module or something.
havenwood has quit [Read error: Connection reset by peer]
<fryguy>
Somelauw: looks like your configuration file isn't correct. follow the dudes instructions and submit a bug report
pkh has joined #ruby
iamjarvo has quit [Quit: Leaving.]
emergion has joined #ruby
<fryguy>
lightguard_jp: so spawn a separate instance to build, get the static content, and then display that. there's no need to conflate it into a single runtime