Takle has quit [Remote host closed the connection]
<toretore>
now there are 20 threads each getting ports to scan from the array
mrsolo has quit [Quit: Leaving]
nvmme has joined #ruby
mr_snowf1ake has joined #ruby
Wolland has quit [Ping timeout: 252 seconds]
<toretore>
but the implementation is not thread safe, there's a chance that two or more threads will try to access the array at the same time
jmurray has joined #ruby
luis_ has joined #ruby
testcore has quit [Quit: [BX] iT's bEttEr tO bUrN oUt tHaN tO fAdE aWaY]
luis_ is now known as kobrakao
<toretore>
if you look at the new version of the gist you'll see a mutex being used to protect the array
<gr33n7007h>
ah i'm seeing it thats what you need to pool them
GriffinHeart has quit [Ping timeout: 260 seconds]
<toretore>
yes, it's a very simple thread pool of sorts
<toretore>
the `mutex.synchronize` will pause the current thread until it can acquire the lock, and while inside the block, any other thread trying to acquire it will have to wait
<toretore>
thus only one thread will be accessing `ports` at a time
<gr33n7007h>
I get ya, it's becoming clear
<toretore>
a Queue is basically just this, an array with an internal lock
Rollabunna has joined #ruby
<toretore>
you could do `ports = Queue.new; (1..1024).each{|n| ports.push n }` then in the thread `port = ports.pop`
<toretore>
and get rid of the mutex
<gr33n7007h>
This is what i was tring to understand one sec
kavinder has quit [Remote host closed the connection]
oo_ has joined #ruby
Deele has joined #ruby
jlast has quit [Remote host closed the connection]
ponga has quit []
toastynerd has quit [Remote host closed the connection]
chihhsin has quit [Remote host closed the connection]
freespeech has quit []
lyanchih has quit [Quit: lyanchih]
lyanchih has joined #ruby
shadoi1 has joined #ruby
Rollabunna has joined #ruby
musl_ has quit [Ping timeout: 245 seconds]
nitish has joined #ruby
lw has joined #ruby
tylersmith has quit [Remote host closed the connection]
nitish has quit [Client Quit]
shadoi1 has left #ruby [#ruby]
oo_ has quit [Ping timeout: 240 seconds]
nitish has joined #ruby
kenndel has joined #ruby
uxp has quit [Remote host closed the connection]
phinfonet has quit []
GriffinHeart has joined #ruby
bmurt has quit []
Rollabunna has quit [Ping timeout: 252 seconds]
anaeem1 has joined #ruby
d34th4ck3r has quit [Quit: zzz]
fgo has joined #ruby
pwh has joined #ruby
diegoviola has joined #ruby
tanmay_ has joined #ruby
_justin has joined #ruby
jayne has quit [Read error: Connection timed out]
papercode has quit [Quit: WeeChat 0.4.3]
vpretzel has quit [Remote host closed the connection]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
musl_ has joined #ruby
fgo has quit [Remote host closed the connection]
fluve has joined #ruby
anaeem1 has quit [Ping timeout: 252 seconds]
freezey has quit []
kavinder has joined #ruby
jayne has joined #ruby
russt has joined #ruby
uxp has joined #ruby
i_s has joined #ruby
yfeldblum has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
Kricir has joined #ruby
wallerdev has joined #ruby
i_s has quit [Remote host closed the connection]
NukePuppy has quit [Ping timeout: 240 seconds]
sinkensabe has joined #ruby
SCommette has quit [Quit: SCommette]
Arkaniad has joined #ruby
jailbot has quit [Ping timeout: 240 seconds]
mikesplain has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kavinder has quit [Remote host closed the connection]
jxf has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
djbkd has quit [Remote host closed the connection]
mattmcclure has joined #ruby
jxf has joined #ruby
lukec has quit [Quit: lukec]
timgauthier has joined #ruby
anaeem1_ has joined #ruby
nateberkopec has joined #ruby
james_d_h has joined #ruby
benzrf is now known as benzrf|offline
mikepack has quit [Ping timeout: 240 seconds]
<j75>
ahoy pontiki
<pontiki>
hi j75
nateberkopec has quit [Ping timeout: 240 seconds]
nitish has quit [Quit: Bye Bye...]
djbkd has joined #ruby
nnu has joined #ruby
oo_ has joined #ruby
yetanotherdave has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 276 seconds]
yubrew has joined #ruby
vpretzel has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
chihhsin has joined #ruby
nvmme has quit [Ping timeout: 265 seconds]
Morkel has joined #ruby
razrunelord has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
vpretzel has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
maletor has joined #ruby
tectonic has quit []
pietr0 has joined #ruby
aganov has joined #ruby
kenneth has joined #ruby
pietr0 has quit [Client Quit]
timonv has quit [Ping timeout: 240 seconds]
fgo has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
Kricir has quit [Remote host closed the connection]
IceDragon has quit [Quit: Space~~~]
endash has joined #ruby
coderhs has joined #ruby
vpretzel has joined #ruby
jamto11 has joined #ruby
phoo1234567 has quit [Remote host closed the connection]
_justin has quit [Ping timeout: 252 seconds]
_justin_ has joined #ruby
Kricir has joined #ruby
sigurding has joined #ruby
pietr0 has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
vpretzel has quit [Ping timeout: 264 seconds]
mikepack has joined #ruby
yfeldblum has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iaj_ has quit [Ping timeout: 265 seconds]
r0ok has quit [Quit: r0ok]
tectonic has joined #ruby
endash has quit [Quit: endash]
gorpon has joined #ruby
amclain has quit [Quit: Leaving]
mikepack has quit [Ping timeout: 276 seconds]
d34th4ck3r has joined #ruby
The_NetZ has joined #ruby
<The_NetZ>
hey; question, how would one go about converting \xE6\xB5\xB4\xE5\xAE\xA4\xE5\x89\x8D into legible text in irb?
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tylersmith has joined #ruby
<ramblinpeck>
hi all, is there something similiar to a pre-processor for ruby for abstracting out class definitions? I'm wanting to do something like this for building up more complex state machines without repeating myself a ton, but not sure its possible. https://gist.github.com/peck/2be39004960aa2531b82
<ari-_-e>
The_NetZ: that depends on the encoding
iaj has joined #ruby
<The_NetZ>
ari-_-e: yeah, I suppose so, but I'm just looking for a generic way of doing it.
<ari-_-e>
The_NetZ: you need to know the encoding...
<ari-_-e>
how else could you possibly do it
<ari-_-e>
numbers are meaningless by themselves
<The_NetZ>
ari-_-e: I believe its japanese, so ja_JP. I know its somewhere in that area, so I just needed to figure out a way to ballpark till I get some sensible output.
<ari-_-e>
that's going to use utf-8
<ari-_-e>
The_NetZ: ja_JP is not an encoding
<ari-_-e>
that's a locale or something
<The_NetZ>
yeah, that is a locale, you're right.
timonv has joined #ruby
<DEA7TH>
Is there a way to write the lambda which spares the |x|? e.g. instead of {|x| x+1}, in Scala one can use {_+1}
tylersmith has quit [Ping timeout: 264 seconds]
michael_lee has quit [Quit: Ex-Chat]
ponga has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
james_d_h has quit [Ping timeout: 245 seconds]
<apeiros>
The_NetZ: looks like utf-8 to me
<The_NetZ>
yeah, thanks.
brunops has quit [Quit: leaving]
<apeiros>
so all you have to do is ensure a) your terminal is utf-8 capable, b) your external encoding (Encoding.default_external) is set to utf-8 and c) that string's encoding is set to utf-8
* apeiros
off for commute
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
hakunin has quit [Ping timeout: 240 seconds]
alexju has joined #ruby
toastynerd has joined #ruby
<DEA7TH>
looks like one can use procs like { &:increase_by_one }, but can I do the same thing with a method (defined with def m(args) [block] end)
<pipework>
DEA7TH: Well, that's not quite there.
<DEA7TH>
pipework: you're referring to { _ + 1 }?
<pipework>
DEA7TH: No, but you could just do {|_| _ + 1} I think
<pipework>
Or the stabby lambda syntax, if you like that.
tkuchiki has joined #ruby
gorpon has quit [Ping timeout: 260 seconds]
Alina-malina has quit [Ping timeout: 252 seconds]
ponga has quit []
bradhe has joined #ruby
RussellAllen has joined #ruby
<ari-_-e>
DEA7TH: the & syntax is part of the method call syntax
apeiros has quit [Ping timeout: 240 seconds]
The_NetZ has left #ruby ["For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
Alina-malina has joined #ruby
<ari-_-e>
what it does is invokes the #to_proc method on the given object and uses the returned value as the block
GriffinHeart has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
<ari-_-e>
ramblinpeck: so you're referring to the WORKFLOW_1_STATES and QC_STATES things?
why_away has joined #ruby
pwh has quit []
leslie2 has joined #ruby
<ari-_-e>
ramblinpeck: also you can access an objects singleton/meta/eigen/whateverthefuck class with the Object#singleton_class method
infinitone has quit [Ping timeout: 260 seconds]
<ramblinpeck>
ari-_-e: that's right, essentially just want to be able to dump the state definitions into a class/module/mixin/anything, and be able to conditionally add it to the class
<ari-_-e>
and you don't have to look things up on the metaclass explicitly...
<leslie2>
Does Ruby really has multithread ? what about GIL ?
<leslie2>
I am confused now!
nateberkopec has quit [Ping timeout: 240 seconds]
whyy has quit [Ping timeout: 276 seconds]
<ramblinpeck>
its a bit convoluted, but the only way I can figure out how to do any dynamic state machine with the workflow gem without having a new class for each conditionals
<ramblinpeck>
Yeah, the meta class thing I didn't know about, pasted over from example and didn't remove it
<ramblinpeck>
Ideally I'd like to be able to nest state machines and delegate to each when needed, but none of the state machine gems seem to support that
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ramblinpeck>
and lacking time to write my own for this project seems like the closest I can get
mrsolo has quit [Quit: This computer has gone to sleep]
<ramblinpeck>
and this works, but trying to get it a little more DRY, and manageable for when I come back to it, add additional conditionals for new states, etc
timonv has quit [Remote host closed the connection]
<cloudgeek>
instead of source code it is ruby code in my case
<katlogic>
cloudgeek: thats what tenderlove did, and it looks it works fairly ok
lyuzashi has joined #ruby
<katlogic>
problem is, this stuff is not very useful unless your ruby code is actually generated / highly regular
tanmay_ has quit [Remote host closed the connection]
<cloudgeek>
katlogic: okay thanks
<cloudgeek>
katlogic: that I can do with GCC
<cloudgeek>
thanks
<reactormonk>
really? That enterprice gem is a joke. A friend of mine was editing copy/pasting embedded XML out from some XML and replacing the XML escapes so he could edit the embedded XML
fluve has quit []
claymore has joined #ruby
<ari-_-e>
cloudgeek: ruby code isn't source code?
<cloudgeek>
reactormonk: what is your suggestion , But I look at his idea , he claim to solve one of my problem , convert ruby code into xml
Hobogrammer has quit [Quit: さようなら]
<katlogic>
reactormonk: quit yer bitching and submit a patch which properly quotes/cdata string literals :>
<reactormonk>
cloudgeek, if you want AST-editing, look somewhere else. Ruby is not your language.
jimbauds has joined #ruby
<ari-_-e>
reactormonk: he's gonna plug his code into a super AI and learn all of its secrets
<ari-_-e>
reactormonk: that's about all I can figure
<cloudgeek>
reactormonk: yes Ruby is not mine, but this a problem I want solve, I just a slave for ruby because I Love it
<ari-_-e>
and this AI only understand XML, apparently
<ari-_-e>
which tells you something...
<katlogic>
If skynet were to ever become sentient, I'm pretty sure it would be some huge XML blob of corporate Java code.
<ari-_-e>
katlogic: probably
<cloudgeek>
ari-_-e: we are not buliding skynet but It use AI solve it's own problems
GriffinHeart has quit [Remote host closed the connection]
Takle has joined #ruby
<cloudgeek>
going for dinner
<ari-_-e>
cloudgeek: I don't think the builders of skynet realized it was going to start destroying civilization
<cloudgeek>
brb
<ari-_-e>
maybe you're calling it something else, but...
yubrew has joined #ruby
aspiers_ has joined #ruby
<apeiros>
hey reactormonk! long time no see! still overseas?
<cloudgeek>
ari-_-e: no Even I don;t want that I love human civilization , not want machines to rule it
<ari-_-e>
cloudgeek: haha well that's good to hear
<katlogic>
Humanity destroyed by Ruby AST rewritten using xpath and xslt, John McCarthy would be proud. Fuck homoiconity.
<reactormonk>
apeiros, yup
<reactormonk>
apeiros, less ruby, more python/scala/nimrod atm
<ari-_-e>
wow
<katlogic>
I hope nimrod will get hyped soon.
<katlogic>
Literally most indie language today.
<katlogic>
I guess it will be always outsider, people still have to recover from the Pascal trauma.
mupkoo has joined #ruby
<reactormonk>
katlogic, we're looking for someone to port ruby's Float#to_s to nimrod because the default printf coverts 5.0 to "5"
SevenWolf has quit [Quit: SevenWolf]
<apeiros>
reactormonk: any plans on coming back? or will you stay over there?
nvmme has joined #ruby
nateberkopec has joined #ruby
<reactormonk>
apeiros, sooner or later yup, but for now I've got my visum for another while.
Takle has quit [Ping timeout: 240 seconds]
<apeiros>
nice
yubrew has quit [Ping timeout: 260 seconds]
dvabr has quit [Read error: Connection reset by peer]
<katlogic>
reactormonk: You should be really using formatFloat
end_guy has quit [Ping timeout: 272 seconds]
dvabr has joined #ruby
Burgestrand has joined #ruby
Takle has joined #ruby
ctp has joined #ruby
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
alem0lars has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
ctp has quit [Client Quit]
ctp has joined #ruby
ta has joined #ruby
shredding has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
<reactormonk>
apeiros, having fun with twilight imperium over here, a good 8h of boardgame ;-)
<reactormonk>
katlogic, something simple that just work like the ruby one would be perfect
<reactormonk>
formatFloat for when you have specific wishes
hermanmunster has quit [Remote host closed the connection]
hermanmunster has joined #ruby
akonny has quit [Quit: akonny]
r0bby has joined #ruby
robbyoconnor has quit [Ping timeout: 265 seconds]
alem0lars has joined #ruby
vpretzel has joined #ruby
vifino has joined #ruby
WishBoy has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
akonny has joined #ruby
hermanmunster has quit [Ping timeout: 240 seconds]
mikeg has quit [Ping timeout: 276 seconds]
vifino has quit [Quit: Ze Cat now leaves...]
sski has quit [Remote host closed the connection]
sski has joined #ruby
vpretzel has quit [Ping timeout: 265 seconds]
akonny has quit [Ping timeout: 252 seconds]
vifino has joined #ruby
why_away has quit [Remote host closed the connection]
<katlogic>
reactormonk: oh, you mean the trailing zeros issue
<katlogic>
yeah, that one is annoying
Takle has joined #ruby
Gooder` has joined #ruby
nvrch has joined #ruby
Takle has quit [Remote host closed the connection]
ephemerian has joined #ruby
sski has quit [Ping timeout: 260 seconds]
Takle has joined #ruby
freespeech has left #ruby [#ruby]
Gooder has quit [Ping timeout: 276 seconds]
sski has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
_justin_ has quit [Quit: _justin_]
roolo has joined #ruby
HashNuke has quit [Quit: Connection closed for inactivity]
dilated_dinosaur has joined #ruby
shvelo has joined #ruby
OffTheRails has joined #ruby
Rollabunna has quit [Ping timeout: 264 seconds]
nvmme has quit [Quit: nvmme]
<reactormonk>
katlogic, exactly.
<reactormonk>
and I'm not sure if I should go full ruby or just add yet another hack.
d34th4ck3r has quit [Quit: zzz]
timonv has joined #ruby
LexicalScope has quit [Quit: Leaving]
oo_ has quit [Remote host closed the connection]
thomasxie has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
riotjones has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claymore has quit [Ping timeout: 245 seconds]
<katlogic>
reactormonk: For the time being I'd just scan the string for missing dot and append .0 if it is not there.
toordog has joined #ruby
thomasxie has joined #ruby
klaut has quit [Remote host closed the connection]
<katlogic>
Full blown printer would be appropiate if this part of code gets rid of c_sprintf altogether? Just guessing, perhaps araq has completely different idea :)
LexicalScope has joined #ruby
phansch has quit [Quit: WeeChat 0.4.3]
oo_ has joined #ruby
Atttwww has quit [Ping timeout: 240 seconds]
claymore has joined #ruby
thomasxie has quit [Client Quit]
d34th4ck3r has joined #ruby
alexju has quit [Remote host closed the connection]
frobrob has joined #ruby
einarj has joined #ruby
whyy has joined #ruby
linuxnewb2 has joined #ruby
linuxnewb2 has quit [Changing host]
linuxnewb2 has joined #ruby
vinleod has joined #ruby
LexicalScope has quit [Ping timeout: 276 seconds]
Rainicorn has joined #ruby
Rainicorn has quit [Read error: Connection reset by peer]
linuxnewb2 has quit [Max SendQ exceeded]
linuxnewb2 has joined #ruby
LadyRainicorn has quit [Ping timeout: 245 seconds]
linuxnewb2 has quit [Max SendQ exceeded]
Rainicorn has joined #ruby
bradhe has joined #ruby
linuxnewb2 has joined #ruby
LadyRainicorn has joined #ruby
linuxnewb2 has quit [Max SendQ exceeded]
linuxnewb2 has joined #ruby
linuxnewb2 has quit [Max SendQ exceeded]
bradhe has quit [Read error: Connection reset by peer]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Slavox is now known as Slavox|AFK
agent_white has quit [Remote host closed the connection]
freggles has joined #ruby
<harryk>
shevy: I try to make all variables as floats before calculations, that is known issue for me :)
mupkoo has quit []
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
roolo has joined #ruby
doodlehaus has joined #ruby
jespada has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
Takle has joined #ruby
oo_ has joined #ruby
maximski has joined #ruby
ldnunes has joined #ruby
yfeldblum has joined #ruby
mijicd has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 240 seconds]
troulouliou_dev has joined #ruby
yubrew has joined #ruby
hakunin has joined #ruby
whyy has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
bradhe has joined #ruby
shvelo has joined #ruby
blackmesa has joined #ruby
Avahey_ has joined #ruby
havenwood has joined #ruby
oo_ has quit [Remote host closed the connection]
rdark has quit [Ping timeout: 265 seconds]
yubrew has quit [Ping timeout: 240 seconds]
doodlehaus has quit [Remote host closed the connection]
bmurt has quit []
doodlehaus has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
phoo1234567 has joined #ruby
workmad3 has joined #ruby
gaboesquivel has joined #ruby
ra4king1 has joined #ruby
agjacome has joined #ruby
mehlah has joined #ruby
evgen has joined #ruby
doodlehaus has quit [Ping timeout: 260 seconds]
ra4king has quit [Ping timeout: 240 seconds]
happytux has joined #ruby
<happytux>
hi
DaniG2k has joined #ruby
donnoc has joined #ruby
<happytux>
So there is a FileList in Rake and the command in question accepts only a single path per invocation. Currently I do php_files.each to iterate manually over the files in the FileList.
coderhs has joined #ruby
nectarys has joined #ruby
<happytux>
But is there a more elegant way? Can a task directly be applied on a FileList?
<happytux>
I don't like this manual iteration.
<shevy>
what is the best way to store threads, and reload them upon startup of the application at a later time?
alem0lars has quit [Quit: Going AFK...]
nvrch has joined #ruby
Takle has quit [Remote host closed the connection]
pzula has quit [Ping timeout: 265 seconds]
Slavox|AFK is now known as Slavox
banister has joined #ruby
mark_locklear has joined #ruby
nectarys has quit [Quit: Ex-Chat]
<workmad3>
shevy: I'm not aware of any brilliant ways to do that
<shevy>
hehe
<shevy>
brilliant ways :D
Royixc has joined #ruby
Royixc has quit [Max SendQ exceeded]
<workmad3>
shevy: which is why people tend to go more for persistent queues and short jobs, so they don't need to worry about killing the threads as they can just restart and the threads will start pulling work off the queue again
JokerDoomWork has joined #ruby
<banister>
workmad3 hey guy, what do u think of swift?
<workmad3>
banister: don't think I've ever used it
<shvelo>
Where do I find a Ruby-related job? I want to GTFO this country asap
Takle has joined #ruby
paulfm has joined #ruby
benzrf|offline is now known as benzrf
SegFaultAX has joined #ruby
vpretzel has joined #ruby
<banister>
workmad3 no, wift lang
<banister>
workmad3 swift lang
<banister>
workmad3 apples' new langauge
<workmad3>
banister: haven't looked at it yet
<banister>
workmad3 it's pretty awesome i think
sk87 has joined #ruby
<banister>
workmad3 takes a lot from ruby, and improves on it IMO
ta has quit [Remote host closed the connection]
ponga has joined #ruby
jackneill has quit [Ping timeout: 240 seconds]
mikepack has quit [Ping timeout: 240 seconds]
<banister>
workmad3 though i will miss things like executable class bodies which was a really cool idea
<banister>
workmad3 it even allows things like: [1,2,3,3].map { $0 * 2 }
pzula has joined #ruby
JokerDoomWork has quit [Ping timeout: 252 seconds]
pzula has quit [Client Quit]
paulfm has quit [Client Quit]
DroneX has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Client Quit]
<workmad3>
banister: makes me think more of a cross between C# and actionscript tbh
<banister>
workmad3 yap, it was more the closure syntax that it gets from ruby i think
vpretzel has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
<DroneX>
exit
DroneX has quit [Client Quit]
<banister>
workmad3 though the swift way of doing it is better than ruby's IMO, they dont have a weird lambda/block distinction
<benzrf>
banister: are you betraying ruby????
<havenwood>
banister: i get the feeling it borrows a ton from Ruby too
Tamae has joined #ruby
<havenwood>
Apple Ruby
<benzrf>
banister: i guess it least has sum types
ponga has quit [Ping timeout: 260 seconds]
<banister>
benzrf Yeah, it borrows heavily from haskell too
jackneill has joined #ruby
<workmad3>
banister: I bet it does inside the implementation ;)
Takle has quit [Remote host closed the connection]
<workmad3>
banister: so I bet you'll butt heads with stuff like that if you ever tried something like pry in it :P
<banister>
benzrf Maybe is built into the language
nateberkopec has joined #ruby
<banister>
workmad3 did you see the it comes with a built in repl in the ide? it's a light table style repl
ndrei has quit [Ping timeout: 264 seconds]
<benzrf>
i understand it will support recursive ADTs :O
<banister>
so i guess it's more of a live document than a repl
alem0lars has joined #ruby
<workmad3>
banister: that sounds like smalltalk
<benzrf>
but i refuse to use it on principle if its proprietary
<benzrf>
>:[
<workmad3>
banister: and calling interfaces 'protocols' is also taken directly from smalltalk, I believe
<havenwood>
benzrf: i hope for the lang's sake they open source it
<benzrf>
it has a distinctly scala flavor from everything ive seen of it o.O
<banister>
benzrf the guy who designed/built LLVM also designed swift btw
<benzrf>
neat
<workmad3>
banister: but will see how it goes
ndrei has joined #ruby
<workmad3>
banister: I don't plan on switching any time soon, and I don't use enough apple stuff to consider an apple proprietary language at the moment ;)
maximski has quit []
<banister>
workmad3 yeah, i hope the language opens up and we can start using it outside of apples ecosystem
<banister>
it has a lot of nice stuff
Takle has joined #ruby
<banister>
much prefer it to things like Go
<banister>
which is one of the most boring langauges on the planet
mobile8 has joined #ruby
<workmad3>
heh
<mobile8>
hey, need to update ruby on debian squeeze
<banister>
and it doesnt seem as zany as rust
<mobile8>
whats the best way to do this?
<workmad3>
banister: you could always spice up your life by learning malbolge...
<havenwood>
mobile8: Updating to a new apt package?
<mobile8>
havenwood: There is only one alternative in link group gem: /usr/bin/gem1.8
<mobile8>
Nothing to configure.
<havenwood>
mobile8: maybe you need to install a gem 1.9.1 alongside 1.9.2.0-2+deb6u2, i don't know - that's really old :O
malkomalko has joined #ruby
andrewhl has joined #ruby
<havenwood>
mobile8: 1.9.2 and earlier are past end-of-life by the way
yfeldblu_ has quit [Ping timeout: 240 seconds]
<havenwood>
mobile8: celluloid works great on 1.9.3, 2.0, and 2.1
<mobile8>
so should i install gem 1.9 ?
DaniG2k has quit [Quit: leaving]
<havenwood>
mobile8: modern Rubies ship with RubyGems
<havenwood>
mobile8: though they used to be separate
yubrew has quit [Ping timeout: 276 seconds]
comma8 has quit [Ping timeout: 240 seconds]
nectarys has joined #ruby
nectarys_ has joined #ruby
<mobile8>
hmm
<mobile8>
so what can i do
milkohol has quit [Ping timeout: 276 seconds]
<banister>
benzrf not enough time right now sry, at work, but i'd appreciate a summary where you just tell me what it does and then i'll try it later when i get a chance :)
<havenwood>
mobile8: update to a newer Debian, use ruby-install to install to /usr/local if you need only one Ruby, or ruby-install/chruby or RVM for switching Rubies.
nnu has quit [Ping timeout: 240 seconds]
shevy has quit [Ping timeout: 245 seconds]
Morkel has quit [Quit: Morkel]
timonv has quit [Remote host closed the connection]
<mobile8>
i just update to new debian
<mobile8>
any idea how long this takes?
<havenwood>
mobile8: totally depends, but with new debian you can get a proper Ruby apt package ;)
timonv has joined #ruby
LadyRainicorn has joined #ruby
<mobile8>
havenwood: so no risk my system crashes or something right?
<mobile8>
I mean everything will just stay the same
<happytux>
anyone?
<happytux>
So there is a FileList in Rake and the command in question accepts only a single path per invocation. Currently I do php_files.each to iterate manually over the files in the FileList.
mary5030 has joined #ruby
<happytux>
But is there a more elegant way? Can a task directly be applied on a FileList?
<happytux>
I don't like this manual iteration.
<havenwood>
mobile8: try #debian
katmandoo has joined #ruby
danshultz has joined #ruby
shredding has joined #ruby
jamto11 has joined #ruby
oo_ has joined #ruby
<AntelopeSalad>
is there a way to .scan on an array (the entire contents) instead of a string?
<mobile8>
thank
<mobile8>
thanks
flughafen has quit [Ping timeout: 255 seconds]
LekeFly has quit [Ping timeout: 240 seconds]
Ankhers has joined #ruby
thisirs has joined #ruby
lw has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
freerobby has joined #ruby
mikeg has quit [Remote host closed the connection]
<benzrf>
banister: ok fiiine
<tobiasvl>
AntelopeSalad: array.join.scan /foo/
<tobiasvl>
AntelopeSalad: depends on what you want though
<benzrf>
banister: note that usage is abit different from what i have in that repo
malkomalko has quit []
Takle has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 255 seconds]
<AntelopeSalad>
tobiasvl: yeah that works, it beats opening up a file
kevind has joined #ruby
vpretzel has joined #ruby
balazs has joined #ruby
shevy has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vpretzel_ has joined #ruby
george2|chakra is now known as george2
donnoc has quit [Ping timeout: 240 seconds]
himsin has quit [Quit: himsin]
Takle has joined #ruby
redondo has quit [Ping timeout: 264 seconds]
shvelo has joined #ruby
flughafen has joined #ruby
creativeembassy has joined #ruby
timonv has joined #ruby
kevind has quit [Client Quit]
vpretzel has quit [Ping timeout: 240 seconds]
cuqa has joined #ruby
<cuqa>
hello
<cuqa>
im trying to make an snmp query but I am failing and getting a timeout
<cuqa>
also the lib is complain about my OID which begins with an "iso.3.6.1.2......."
donnoc has joined #ruby
centrx has joined #ruby
_justin has quit [Quit: _justin]
banister has joined #ruby
<cuqa>
also I havent figured out how to set the community string :[
bmurt has joined #ruby
mehlah has joined #ruby
pabloh has joined #ruby
cpruitt has joined #ruby
cpruitt has quit [Client Quit]
ta has quit [Read error: Connection reset by peer]
runa has joined #ruby
SegFaultAX has quit [Excess Flood]
<runa>
heyas. has anyone seen a weird interaction between ActiveSupport's autoload an unicorn prefork? Sometimes, I get "unintialized constant Foo", but Foo is loaded without any problems if I 'require "foo"' ...
SegFaultAX has joined #ruby
mikesplain has joined #ruby
<pontiki>
i haven't, runa, but maybe ask over in #rubyonrails?
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<apeiros>
autoloading considered harmful
kavinder has joined #ruby
Criztian has joined #ruby
ValicekB has quit [Ping timeout: 252 seconds]
<runa>
apeiros: really? can I read something about that?
<apeiros>
I think the threading issue has actually been solved in either 2.0 or 2.1
rdark has quit [Ping timeout: 252 seconds]
jxf has joined #ruby
Rainicorn has joined #ruby
cpruitt has joined #ruby
doodlehaus has joined #ruby
ponga has quit [Ping timeout: 260 seconds]
Rainicorn has quit [Read error: Connection reset by peer]
zorak has joined #ruby
rdark has joined #ruby
Rainicorn has joined #ruby
LadyRainicorn has quit [Ping timeout: 264 seconds]
nectarys_ has quit [Quit: Ex-Chat]
nectarys has quit [Read error: Connection reset by peer]
nectarys has joined #ruby
nectarys has quit [Read error: Connection reset by peer]
nectarys_ has joined #ruby
codabrink has joined #ruby
<happytux>
Hm, can anyone read me? Test Test Test
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
tkuchiki has quit [Ping timeout: 240 seconds]
franzip has joined #ruby
<vee>
mope
garndt has joined #ruby
jprovazn has quit [Quit: Leaving]
<happytux>
ok
maximski has joined #ruby
<vee>
happytux: try asking your question vs asking the question to ask a question :P
maximski has quit [Max SendQ exceeded]
bitboxer has joined #ruby
<shevy>
happytux yeah but why do you need rake, can't you use pure ruby + method calls alone? Your earlier questions about FileList, nobody needs it, we have Dir[]
justinmcp has joined #ruby
ta has joined #ruby
<pontiki>
runa, assuming that was really to me, while you may not be using rails, you'll find a lot more people over there that have used ActiveRecord in concert with unicorn
Gooder` has quit [Remote host closed the connection]
roadt`` has joined #ruby
Gooder` has joined #ruby
<pontiki>
runa: i'm not saying you'll get an answer over there, just the likelihood seems higher
FernandoBasso has joined #ruby
bmurt has quit []
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
creativeembassy has quit [Quit: FO SHO]
<FernandoBasso>
Hi folks. I have ~/.gem/ruby/2.1.0/bin/ in my path, but I still get an error saying redcarpet could not be found.
NukePuppy has joined #ruby
roadt` has quit [Ping timeout: 240 seconds]
maximski has joined #ruby
<happytux>
shevy: OK, so I want in a Rake task to invoke a command with paths to each file in a directory.
<happytux>
shevy: So Dir[] is the right way to do it in Rake?
<FernandoBasso>
I can even run 'redcarpet' from the shell myself.
havenwood has quit []
kilk_ has quit [Quit: kilk_]
kilk_ has joined #ruby
Rainicorn has quit [Ping timeout: 264 seconds]
rdark has quit [Ping timeout: 260 seconds]
<shevy>
again you ask about rake
<shevy>
why do you even need rake
ValicekB has joined #ruby
jheg has joined #ruby
<shevy>
happytux Dir[] is the ruby way, I am sure rake may have a reason to use FileList
<vee>
in a basic install of ruby on centos6, what is the proper way for url-handling (with ssl) (with being able to post data?) - looks like there are a handful of unofficial things to install that enhance open-uri but re-googling yields the same results
jobewan has joined #ruby
<vee>
or would it be more effective to use a shell-exec within ruby to call curl and parse the return code?
enebo has joined #ruby
Lutece has joined #ruby
djcp has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
Rahul_Roy has joined #ruby
eka has joined #ruby
<happytux>
shevy: but they don't mention how to use a FileList to invoke a command for each path of each item in the FileList.
<shevy>
that shows you that even they aren't sure why FileList had to be written in the first place
<shevy>
and what do you mean with "invoke a command", what is that exactly
nateberkopec has quit [Quit: Leaving...]
vpretzel has joined #ruby
nateberkopec has joined #ruby
zB0hs has joined #ruby
yfeldblum has joined #ruby
bitboxer has left #ruby ["Bye bye!"]
dilated_dinosaur has joined #ruby
ta has quit [Read error: Connection reset by peer]
gigetoo has quit [Remote host closed the connection]
Lucky__ has joined #ruby
andrewhl_ has joined #ruby
maximski has quit []
vpretzel_ has quit [Ping timeout: 260 seconds]
<mobile8>
how can I update ruby to latest version? I already did apt-get upgrade and apt-get update
gigetoo has joined #ruby
andrewhl_ has quit [Client Quit]
<shevy>
this you have to ask debian
<shevy>
for they package up that thing for debian
_lazarevsky has joined #ruby
halt has joined #ruby
<_lazarevsky>
hey all
<apeiros>
mobile8: or just fuck apt and use rvm/rbenv/whateverothertool
<_lazarevsky>
can I have an or statement in a when in case
<_lazarevsky>
lol :D
<_lazarevsky>
so basically i have
<_lazarevsky>
when param
<shevy>
_lazarevsky only "else"
<mobile8>
apeiros: is there no way to do this with apt?
<apeiros>
mobile8: as shevy already said - apt is #debian or #ubuntu, ask there
andrewhl has quit [Ping timeout: 252 seconds]
<_lazarevsky>
case param
<pontiki>
the argument to when can be any logical expression or something that can evaluate to truthy or falsy
<apeiros>
_lazarevsky: use gist?
<_lazarevsky>
when "" or nil
<shevy>
mobile8 again, you can use it only what they gave you; if they don't gave you ruby 2.1.2 or something like that, then you can not use apt; you can try to add some third party repositories or PPAs I suppose
<apeiros>
_lazarevsky: when "", nil
<_lazarevsky>
shweet
<_lazarevsky>
thanks
renier has joined #ruby
<shevy>
cool idea to use or rather than ,
<shevy>
hehehehe
<apeiros>
`case param when "" or nil` is interpreted as `("" or nil) === param`
<halt>
Hi all, I have a ruby program ( facter from puppet labs ) and i'm having some issues with it, it's works well for one user, and does not for the other, I check the shell vars, but not sure what the ruby could mix up, I check there is only one ruby version installed, and that's all what i could find out, how can i debug this ?
Slavox is now known as Slavox|AFK
dc has joined #ruby
<apeiros>
and "" or nil is always "", so that'd just be equivalent to `when ""`
FernandoBasso has quit [Ping timeout: 260 seconds]
ehc has joined #ruby
kavinder has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
OffTheRails has quit [Ping timeout: 265 seconds]
jamto11 has joined #ruby
<shevy>
mobile8 the source can always be found :-) ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.bz2
<happytux>
Is there a Rake method with which one can read in the contents of a text file? I need it just for one parameter.
akonny has quit [Quit: akonny]
<banister>
happytux rake is ruby
<banister>
happytux FIle.read(file)
ta has joined #ruby
frosgy has quit [Ping timeout: 245 seconds]
vt102 has joined #ruby
jprovazn has joined #ruby
<AntelopeSalad>
hmm is it possible to delete an element from an array when the element itself exists in the array while inside of map?
vpretzel is now known as vpretzel|1388
Slavox|AFK is now known as Slavox
<mobile8>
shevy: sorry never did this before how can i install this?
<shevy>
happytux use plain ruby, all this rake thinking makes your brain smaller
<centrx>
AntelopeSalad, If it is, that's probably a good way to confuse yourself or invite bugs
<AntelopeSalad>
centrx: i could use reject! afterwards , i figured i could remove empty items while i'm already mapping over it
<happytux>
ok
<happytux>
shevy: ruby-related question concerning this line: node_version = File.open('.node-version').read.close
JPascal has quit []
<happytux>
shevy: I want to account for the case there is no file '.node-version'.
<happytux>
shevy: just a try catch?
<shevy>
mobile8 no real idea, I'd google. you can somehow add extra lists to apt, but this is all debian specific, I compile everything from source with help from ruby, I can not bother to have to adjust debian just so I can get any software that some random developer may change without me wishing said change
OffTheRails has joined #ruby
fella7s has quit [Ping timeout: 240 seconds]
<apeiros>
oy, happytux, that's horrible
<apeiros>
happytux: just File.read('.node-version')
<shevy>
happytux I did not give you that line; if you wish to read in a file, I would recommend File.readlines('bla'), then you have an array and can easily work on it or .join it after you modify it
<Lutece>
happytux: there is a way to check a file exists, just do that first
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<shevy>
happytux and you have to check if a file exists
<happytux>
ok
<shevy>
happytux my_file = File.readlines('bla') if File.exist? 'bla'
robertodecurnex has joined #ruby
alexju has joined #ruby
<apeiros>
Lutece, happytux: [check if a file exists first] IMO bad practice (built-in race condition). rescue the exception instead
<apeiros>
data = begin File.read(path) rescue Errno::ENOENT; "no data"; end # or whatever other default value you want…
<happytux>
apeiros: so a try-catch?
<Lutece>
But if you check the file exists you can handle that in an if statement which makes the code jump about less
<shevy>
why do you use the word try-catch
<apeiros>
happytux: yes. but begin/rescue in ruby
<shevy>
does ruby have try
<centrx>
AntelopeSalad, If you want to optimize in that fashion safely, use #each
<apeiros>
Lutece: eh, no?
ixti has joined #ruby
<happytux>
ah, begin/rescue = try/catch in ruby
<apeiros>
Lutece: also, still a race condition
<happytux>
*==
<centrx>
AntelopeSalad, But it is a premature optimization, probably miniscule. Write it in the way that makes the code clearly understandable
Takle has quit [Remote host closed the connection]
<apeiros>
happytux: yes
mattstratton has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
<shevy>
happytux you come from java right?
<apeiros>
happytux: full construct is begin/rescue/else/ensure/end
<AntelopeSalad>
centrx: yeah, that's an idea
russt_ has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
<happytux>
shevy: Java and PHP
elmira has joined #ruby
ta has quit [Remote host closed the connection]
<Lutece>
Not saying you should not catch exeptions with file handling, but i would rather my code handled a lack of file within a block rather than jumping through the entire block, having to being rescue and so on looks pretty messy when you are managing a few different files
<shevy>
you need to get into the "thinking in ruby" process
treehug88 has joined #ruby
<AntelopeSalad>
centrx: the rogue empty lines were a bug in my regex anyways , there was a hidden \n prefixing some values that matched
<AntelopeSalad>
and by hidden i mean, when i puts the output of it, it just looked like an empty element
<happytux>
shevy: yes
<AntelopeSalad>
but .class showed it as a String and it wasn't .empty? -- damn you regexes haha
vpretzel_ has joined #ruby
Takle has joined #ruby
OffTheRails has quit [Quit: Leaving]
<shevy>
Lutece for simple file checks it should be just fine using if File.exist?; I find that one may have to do quite a bit of checking in general though, such as "do we have sufficient permission to do manipulations on the filesystem?" or "does the underlying directory still exist or not, else we get getcwd errors"
michaelpjohnson has joined #ruby
elmira has left #ruby [#ruby]
redondo has joined #ruby
JokerDoomWork has quit [Ping timeout: 260 seconds]
<Lutece>
alright, I'll give you that
halt has left #ruby [#ruby]
_justin has quit [Quit: _justin]
<Lutece>
but I prefer both still
mikepack has joined #ruby
evgen has quit [Quit: Leaving.]
vpretzel_ is now known as vpretzel|1388_
<shevy>
anyone knows how to add links to images in .md markdown files? I want to add cute favicons into the rendered page
vpretzel|1388 has quit [Ping timeout: 264 seconds]
vpretzel|1388_ is now known as vpretzel|1388
<pontiki>
you can put html directly in markdown
Takle has quit [Remote host closed the connection]
thisirs has quit [Remote host closed the connection]
creativeembassy has joined #ruby
dawkirst has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
Boohbah has quit [Remote host closed the connection]
jheg has quit [Ping timeout: 260 seconds]
danshultz has joined #ruby
Boohbah has joined #ruby
dik_dak has joined #ruby
_tpavel has quit [Quit: Leaving]
james_d_h has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
jheg has joined #ruby
danshultz has joined #ruby
bal has quit [Quit: bal]
_tpavel has joined #ruby
NinoScript has quit [Read error: Connection reset by peer]
jheg_ has quit [Ping timeout: 252 seconds]
NinoScript has joined #ruby
pietr0 has quit [Quit: pietr0]
mattstratton has quit [Read error: Connection reset by peer]
Nahra has quit [Remote host closed the connection]
willb1 has quit [Ping timeout: 252 seconds]
fresham has joined #ruby
willb1 has joined #ruby
rm_ has quit [Remote host closed the connection]
dc has quit [Remote host closed the connection]
rm_ has joined #ruby
aagdbl has joined #ruby
mupkoo has joined #ruby
lethe has quit [Remote host closed the connection]
JLT has joined #ruby
<JLT>
If I have: Time.at(t) how would I convert that to a london timezone? gmtime seems to give a UTC value much like .utc
bascht has joined #ruby
<JLT>
I believe now we're in bst but there isn't a bst time.
bascht has quit [Remote host closed the connection]
<JLT>
ruby 1.9.3 too
carraroj has joined #ruby
bascht has joined #ruby
<shevy>
canton7 cool typo
geggam has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
<canton7>
did that actually typo? oops. hexchat + OSX = some funky character moving around and substitution where underscores or other random characters are involved, so it's hard to tell
Nahra has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
nectarys_ has quit [Remote host closed the connection]
<shevy>
hehe yea... has_ke?
<shevy>
has_koala? has_kekeke?
<JLT>
has_ketchup?
chubchubcharles has left #ruby [#ruby]
xeno_ has joined #ruby
chubchubcharles has joined #ruby
akonny has quit [Quit: akonny]
<fauzanqadri>
hahaha...
Kricir has joined #ruby
toastynerd has quit [Remote host closed the connection]
dumdedum has quit [Quit: foo]
<havenwood>
Is TDD dead? is live streaming at the moment
<oz>
TDD's not dead, it just smells funny.
aagdbl has quit [Quit: This computer has gone to sleep]
<arrubin>
havenwood: We have moved on to Basecamp Driven Development.
dblessing has quit [Read error: Connection reset by peer]
<havenwood>
If it smells like it's dead and quacks like a duck, it's a.. undead duck?
dblessing_ has joined #ruby
<havenwood>
an*
<linduxed>
TDD is alive and well, it's just that some people do it wrong
_tpavel has quit [Quit: Leaving]
<JLT>
Anyway, how about converting to current London timezone, which is BST (and of course sometimes UTC)? I can only get it to output a UTC time. Time.at(t).gmtime gives UTC, but what if I want it to alternate between UTC/BST based upon the timezone in London?
<havenwood>
Is TDD undead?
<pontiki>
ZDD
rm_ has joined #ruby
<havenwood>
HDD
toastynerd has joined #ruby
<havenwood>
mmm, hammocks
merceris_ has quit [Quit: Computer has gone to sleep.]
ValicekB has quit [Ping timeout: 265 seconds]
<vpretzel|1388>
JLT: If only there was a ruby library that worked with timezones.
<mobile8>
but i cannot update any higher without going from squeeze to wheezy
flak has joined #ruby
rippa has joined #ruby
<sarkis>
i don't recommend it but it might be thhe quickest way
<mobile8>
sarkis: any idea what I can do?
rm_ has quit [Ping timeout: 252 seconds]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sarkis>
you already have it installed since it looks like you installed 1.9.1
GriffinHeart has joined #ruby
deric_skibotn has joined #ruby
eka has quit [Read error: Connection reset by peer]
tvw has joined #ruby
flak has quit [Client Quit]
eka has joined #ruby
<mobile8>
sarkis: so any idea how come it gives that error?
hamakn_ has joined #ruby
Dingus has quit [Quit: Leaving]
hamakn has quit [Read error: Connection reset by peer]
jezen has joined #ruby
SegFaultAX has quit [Excess Flood]
jheg has joined #ruby
jheg_ has quit [Ping timeout: 255 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
rezzack has joined #ruby
Hanmac has joined #ruby
olivier_bK has quit [Ping timeout: 264 seconds]
bradhe has quit [Remote host closed the connection]
i_s has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
i_s has quit [Remote host closed the connection]
i_s has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
SegFaultAX has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
GriffinHeart has quit [Ping timeout: 265 seconds]
mijicd has joined #ruby
jheg_ has joined #ruby
alvaro_o has joined #ruby
mobile8 has quit [Quit: leaving]
ndrei has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
suppaduppa has joined #ruby
jheg has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
ValicekB has quit [Ping timeout: 245 seconds]
kilk_ has quit [Ping timeout: 252 seconds]
Xeago_ has quit [Remote host closed the connection]
jhass|off is now known as jhass
joonty has joined #ruby
djbkd has joined #ruby
klaas has quit [Remote host closed the connection]
postmodern has quit [Ping timeout: 252 seconds]
mrsolo has joined #ruby
timonv has joined #ruby
ponga has joined #ruby
jack has joined #ruby
jack is now known as Guest9017
kilk_ has joined #ruby
eka has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
anarang has quit [Quit: Leaving]
jheg_ has quit [Ping timeout: 252 seconds]
eka has joined #ruby
andrewjanssen has joined #ruby
rm_ has joined #ruby
andrewjanssen has quit [Client Quit]
mijicd has quit [Remote host closed the connection]
dawkirst has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
ra4king1 is now known as ra4king
shvelo has quit [Ping timeout: 240 seconds]
ponga has quit [Ping timeout: 252 seconds]
hpoydar has joined #ruby
codabrink has quit [Remote host closed the connection]
<sarkis>
lol
<sarkis>
:(
Hanmac has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
yfeldblum has joined #ruby
rm_ has quit [Ping timeout: 252 seconds]
terrell_t has joined #ruby
terrell_t has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
lethe has joined #ruby
timonv has quit [Remote host closed the connection]
dawkirst has quit [Ping timeout: 252 seconds]
eka_ has joined #ruby
lw has joined #ruby
Rollabunna has joined #ruby
bufferloss has joined #ruby
tylersmith has joined #ruby
aspiers_ has joined #ruby
terrellt has quit [Ping timeout: 264 seconds]
claymore has quit [Ping timeout: 240 seconds]
hughlander has quit [Quit: hughlander]
<jezen>
hey guys, I’m fairly new to rspec, and TDD
djbkd has quit [Remote host closed the connection]
ValicekB has joined #ruby
<jezen>
I’m wondering, if I want to test a method was called, how can I prevent that method’s implementation from being run?
nvrch has quit [Quit: nvrch]
wallerdev has quit [Quit: wallerdev]
Takle has joined #ruby
maximski has quit []
<jezen>
I have a class that opens a connection to a db when on instantiation
eka has quit [Ping timeout: 240 seconds]
<jezen>
it opens the connection with PGconn.open
claymore has joined #ruby
postmodern has joined #ruby
lethe has quit [Ping timeout: 240 seconds]
troulouliou_dev has joined #ruby
<jezen>
I want write a collaboration test that says “when I instantiate myClass, PGconn.open is called”
<balazs>
I'm seeing this in some code: creator = ENV.fetch('ACCOUNT', ENV['USER']). Why use "fetch" in one place and the dictionary ENV in another ?
<jezen>
but I’m not interested in the implementation of PGconn.open, or what it returns
Takle has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 260 seconds]
xanandu has joined #ruby
combusean has joined #ruby
<crome>
balazs: in this case its really the same as ENV['ACCOUNT'] || ENV['USER']
DEA7TH has joined #ruby
b00stfr3ak has joined #ruby
<balazs>
crome: so when is it better to use the "fetch" method ?
<crome>
if you want to provide a default, for one
<crome>
(that is not in the same hash)
eka has joined #ruby
<balazs>
doesn't || do the same ?
<crome>
or if you want fetch to fail if you dont provide an alternative value
freezey has joined #ruby
<balazs>
ok
<crome>
balazs: you can pass a block to fetch which might be what you want
<Hanmac>
fetch has a block variant
<happytux>
shevy: I solved the issue! Each directory in Rake is a task for itself, I had to make the task :prepare dependent on them and then they are satisfied.
havenwood has joined #ruby
tectonic has quit []
maestrojed has quit [Quit: Computer has gone to sleep.]
Azulinho has quit [Ping timeout: 255 seconds]
timonv_ has joined #ruby
<workmad3>
balazs: .fetch respects if the key is present but set to nil
mercerist has quit [Quit: Computer has gone to sleep.]
dideler|work has quit [Ping timeout: 255 seconds]
vpretzel|1388 is now known as vpretzel|1389
dideler|work has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
St_Marx has joined #ruby
troyready has joined #ruby
Xeago has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
NinoScript has quit [Ping timeout: 252 seconds]
nvmme has quit [Quit: nvmme]
Wolland has quit [Ping timeout: 240 seconds]
lw has joined #ruby
NinoScript has joined #ruby
newUser1234 has joined #ruby
suppaduppa has quit [Quit: Leaving...]
LnL7 has quit [Quit: Exit 1]
terrellt has joined #ruby
freezey has quit [Remote host closed the connection]
LnL has joined #ruby
TeresaP has joined #ruby
obs has quit [Quit: Saliendo]
<TeresaP>
Does anyone know what the correct channel to ask gem installation questions is?
<TeresaP>
(RVM vs RBENV)
SegFaultAX has quit [Excess Flood]
terrellt has quit [Remote host closed the connection]
terrellt has joined #ruby
nectarys has quit [Remote host closed the connection]
nectarys_ has quit [Remote host closed the connection]
brunops has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
JokerDoomWork has quit [Ping timeout: 252 seconds]
vadzimt has joined #ruby
andrewjanssen has joined #ruby
SegFaultAX has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
niharvey is now known as niharvey|brb
vadzimt has left #ruby [#ruby]
Xeago has joined #ruby
end_guy has quit [Remote host closed the connection]
end_guy has joined #ruby
bean__ has quit [Quit: bean__]
TeresaP is now known as TeresaP_
einarj has quit [Remote host closed the connection]
TeresaP_ is now known as TeresaP
<dideler|work>
TeresaP: ask and find out if anyone can help you here
ponga has joined #ruby
<TeresaP>
Alright, thanks dideler|work
ndrei has quit [Ping timeout: 260 seconds]
rm_ has joined #ruby
<TeresaP>
For some of our machines, we installed Gems using RVM but our users had problems installing RVM for various reasons, so I decided to try switching us to RBENV. However, even after setting the global and local Ruby version to 2.0.0-p247, when I go to install a Gem, it tries to use 1.8 (the default version on Mac). What am I missing?
maestrojed has joined #ruby
bascht has joined #ruby
ndrei has joined #ruby
bean__ has joined #ruby
treehug8_ has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bufferloss>
TeresaP: you probably need to set an rvm ruby to be the default
<dideler|work>
TeresaP: how did you set the ruby version with rbenv?
jonahR has joined #ruby
eka_ has quit [Read error: Connection reset by peer]
treehug8_ has quit [Client Quit]
<dideler|work>
TeresaP: and did you uninstall rvm first?
kirun has joined #ruby
Xeago_ has joined #ruby
<bufferloss>
TeresaP: the only issues I’ve had with either rvm or rbenv on OSX is libraries and such, but I haven’t actually had any of those issues since approx 10.8
treehug8_ has joined #ruby
ponga has quit [Ping timeout: 276 seconds]
eka has joined #ruby
<TeresaP>
This time, I was installing on a clean machine without RVM on it
<sarkis>
TeresaP: silly question but when you set the global do you do rbenv rehash?
mehlah has quit [Quit: Leaving...]
Nilium has quit [Ping timeout: 252 seconds]
<sarkis>
TeresaP: after doing so, post what which gem shows
<TeresaP>
I switched by doing this: rbenv local 2.0.0-p247 … rbenv global 2.0.0-p247
<sarkis>
which gem
Xeago_ has quit [Read error: Connection reset by peer]
<sarkis>
sometimes after changges, rbenv requires you to run: rbenv rehash
freezey has joined #ruby
<TeresaP>
hmm let me see if I did that
Squarepy has quit [Quit: Leaving]
<sarkis>
also run: which gem
<TeresaP>
I do not believe that I did that. I'll try it.
Wolland has joined #ruby
treehug88 has quit [Ping timeout: 260 seconds]
<sarkis>
that will show you which gem binary you are running when you run "gem install some_gem"
dawkirst has joined #ruby
bradhe has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 245 seconds]
<TeresaP>
It is still pointing to /usr/bin/gem
<sarkis>
i see
newUser1234 has quit [Remote host closed the connection]
noop has joined #ruby
Guest9017 has quit [Read error: Connection reset by peer]
hpoydar has quit [Remote host closed the connection]
<sarkis>
that little line above is what does all of the magic :)
<TeresaP>
ah, that does seem like an important bit
<TeresaP>
Thanks I'm going to try that
dawkirst has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
codabrink has joined #ruby
codabrink has quit [Client Quit]
codabrink has joined #ruby
SBoolean has quit [Remote host closed the connection]
tectonic has quit []
SBoolean has joined #ruby
timfoo has quit [Ping timeout: 260 seconds]
timfoo has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
andrewlio has quit [Ping timeout: 252 seconds]
tectonic has joined #ruby
russt_ has joined #ruby
aspires has quit []
aspires has joined #ruby
yfeldblum has joined #ruby
gregf_ has quit [Quit: leaving]
lw has quit [Ping timeout: 260 seconds]
<shevy>
dumdedum
Morkel has joined #ruby
dilated_dinosaur has quit [Ping timeout: 276 seconds]
QKO has quit [Ping timeout: 264 seconds]
hughlander has quit [Quit: hughlander]
Notte has joined #ruby
QKO has joined #ruby
lw has joined #ruby
Notte has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
bascht has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
timonv has joined #ruby
dfinly has joined #ruby
dfinly has quit [Max SendQ exceeded]
JokerDoomWork has joined #ruby
Ankhers has quit [Ping timeout: 272 seconds]
AlSquirrel has quit [Quit: This computer has gone to sleep]
vpretzel|1389 is now known as vpretzel|1392
papercode has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
obs has joined #ruby
dangerousdave has joined #ruby
kenneth has joined #ruby
claymore has quit [Ping timeout: 276 seconds]
Xeago has quit [Read error: Connection reset by peer]
datafirm_ has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
datafirm has quit [Ping timeout: 260 seconds]
freezey has quit [Read error: Connection reset by peer]
maximski has joined #ruby
freezey has joined #ruby
maximski has quit [Max SendQ exceeded]
Lutece has quit [Ping timeout: 272 seconds]
Ankhers has joined #ruby
maximski has joined #ruby
andrewlio has joined #ruby
newUser1234 has joined #ruby
adantj has quit [Remote host closed the connection]
blaines has joined #ruby
creativeembassy has quit [Quit: FO SHO]
cpruitt has quit [Quit: cpruitt]
Takle has quit [Remote host closed the connection]
phansch has quit [Quit: WeeChat 0.4.3]
alem0lars has quit [Quit: Going AFK...]
bradhe has joined #ruby
bradhe has quit [Remote host closed the connection]
creativeembassy has joined #ruby
xanandu has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
alem0lars has joined #ruby
kireevco has joined #ruby
lw has quit [Ping timeout: 265 seconds]
Kricir has quit [Remote host closed the connection]
dilated_dinosaur has joined #ruby
yacks has quit [Ping timeout: 255 seconds]
yetanotherdave has joined #ruby
codeFiend has joined #ruby
nanoyak has joined #ruby
cpruitt has joined #ruby
NinoScript has quit [Ping timeout: 265 seconds]
lw has joined #ruby
djbkd has quit [Remote host closed the connection]
adantj has joined #ruby
danshultz has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
danshultz has joined #ruby
alem0lars has quit [Client Quit]
jprovazn_afk has quit [Quit: Odcházím]
lkba has quit [Ping timeout: 255 seconds]
hughlander has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
claymore has joined #ruby
yetanotherdave has quit [Read error: Connection reset by peer]
danshult_ has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
danshultz has quit [Read error: Connection reset by peer]
noop has quit [Ping timeout: 252 seconds]
NinoScript has joined #ruby
noop has joined #ruby
yetanotherdave has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
Takle has joined #ruby
stantona_ has quit [Remote host closed the connection]
GriffinHeart has quit [Ping timeout: 265 seconds]
stantona has joined #ruby
jhulten has joined #ruby
andrewlio has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
NinoScript has quit [Read error: Connection reset by peer]
tyfighter has joined #ruby
rdark has quit [Quit: leaving]
yacks has joined #ruby
bradhe has quit [Remote host closed the connection]
NinoScript has joined #ruby
gaboesquivel has quit [Remote host closed the connection]
AlexRussia has joined #ruby
codeFiend has quit [Quit: codeFiend]
adantj has quit [Remote host closed the connection]
poguez_ has joined #ruby
lyanchih_ has quit [Ping timeout: 260 seconds]
Wolland has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
mary5030 has joined #ruby
tessi is now known as tessi_zz
Wolland has joined #ruby
learner has joined #ruby
NinoScript has quit [Ping timeout: 240 seconds]
LadyRainicorn has joined #ruby
learner1 has quit [Ping timeout: 260 seconds]
troulouliou_dev has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Quit: Leaving.]
ldnunes has joined #ruby
freerobby has joined #ruby
dangerou_ has joined #ruby
niharvey|brb is now known as Coolhand
Coolhand is now known as niharvey
Wolland has quit [Ping timeout: 264 seconds]
dangerousdave has quit [Ping timeout: 240 seconds]
terrellt has quit [Quit: Leaving...]
razrunelord has quit []
rayners has quit [Remote host closed the connection]
terrellt has joined #ruby
nanoyak has joined #ruby
SBoolean has quit [Remote host closed the connection]
SBoolean has joined #ruby
andrewlio has joined #ruby
newUser1234 has quit [Read error: Connection reset by peer]
varius has quit [Remote host closed the connection]
chrisja has joined #ruby
newUser1234 has joined #ruby
elaptics is now known as elaptics`away
ponga has joined #ruby
phantasm66 has quit [Quit: *poof*]
doev has joined #ruby
dangerou_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
pietr0 has quit [Quit: pietr0]
moritzs has joined #ruby
mrsolo has joined #ruby
pietr0 has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
lw has quit [Ping timeout: 252 seconds]
carraroj has joined #ruby
Wolland has joined #ruby
klaas has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
lw has joined #ruby
ponga has quit [Ping timeout: 240 seconds]
terrellt has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
nicolas_leonidas has joined #ruby
<nicolas_leonidas>
hey I installed rvm in centos 6.5, and now when I ssh in I get -bash: /home/nicolas/.rvm/scripts/cd: line 14: syntax error near unexpected token `('
<nicolas_leonidas>
any idea why?
<Hanmac>
nicolas_leonidas: #rvm has its own channel too
sputnik13 has joined #ruby
SCommette has quit [Quit: SCommette]
danijoo has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
alem0lars has joined #ruby
danijoo has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
mercerist has joined #ruby
mordocai has joined #ruby
segfalt has quit [Quit: Connection closed for inactivity]
mkjackson has joined #ruby
anaeem1__ has quit [Remote host closed the connection]
anaeem1 has joined #ruby
adantj has joined #ruby
<mkjackson>
hey folks, I'm getting a bundler error saying that a gem file specifies two versions of the same package... is there a way to find out which packages are conflicting?
tvw has quit []
<havenwood>
nicolas_leonidas: are you running in a restricted shell? +1 #rvm, better place to ask!
tvw has joined #ruby
anaeem1 has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
<apeiros>
mkjackson: I think newer bundler versions tell you quite overtly which ones conflict
eka has quit [Ping timeout: 252 seconds]
Rollabunna has quit [Ping timeout: 252 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
Guest76982 has quit []
Trynemjoel has quit [Quit: Trynemjoel]
newUser1234 has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
jack has joined #ruby
AlSquire has joined #ruby
jack is now known as Guest96559
stantona has quit [Remote host closed the connection]
aspires has quit []
glenfe has quit [Quit: Leaving]
mrsolo has joined #ruby
Guest96559 is now known as jackv
lele has quit [Ping timeout: 265 seconds]
aspires has joined #ruby
spider-mario has quit [Ping timeout: 276 seconds]
jackv is now known as jackvn
kasperg__ has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
runa has joined #ruby
jackvn has quit [Client Quit]
chubchubcharles has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
<runa>
heyas :) I found a strange behavior when `require(name)` is ran fully every time it's executed; if the file it loaded the first time is a .so (this doesn't happens with a .rb) https://www.ruby-forum.com/topic/4937835 is this a bug or a feature?
<mkjackson>
apeiros: it does but it doesn't tell me which files are in conflict :-/
Hanmac1 has joined #ruby
<mkjackson>
both packages seem to require a different version of rdoc
klaut has joined #ruby
djbkd has joined #ruby
sski has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
<apeiros>
eh? paste the output. I'm pretty sure it does.
kireevco has joined #ruby
leyluj has joined #ruby
<mkjackson>
You cannot specify the same gem twice with different version requirements. you specified: rdoc (>= 2.4.2) and rdoc (~> 3.6)
<havenwood>
mkjackson: so rdoc is the gem
blackmesa has joined #ruby
Asher has quit [Quit: Leaving.]
moritzs has quit [Ping timeout: 260 seconds]
<mkjackson>
I think I might be running bundle install at too high a level
paulfm has quit []
<mkjackson>
and it's catching multiple gemfiles
<havenwood>
:O
<apeiros>
I think you're talking nonsense.
Hanmac has quit [Ping timeout: 260 seconds]
<mkjackson>
nope, that was it
<mkjackson>
I've got a redmine server with multiple plugins
<mkjackson>
they have different requirements
ndrei has quit [Ping timeout: 260 seconds]
SCommette has joined #ruby
<mkjackson>
I was running from the parent directory
<mkjackson>
so it must have been checking the subs recursively and seeing conflicts
mercerist has quit [Quit: Computer has gone to sleep.]
shvelo has joined #ruby
jimbauds has quit [Ping timeout: 245 seconds]
combusean has quit [Ping timeout: 260 seconds]
mercerist has joined #ruby
Hanmac1 is now known as Hanmac
<apeiros>
either you don't know what a gemfile is or you're still talking nonsense. bundler uses one Gemfile.
keen________ has joined #ruby
adantj has quit [Ping timeout: 264 seconds]
<apeiros>
and it searches it in the current directory, going up until it finds one.
ndrei has joined #ruby
<apeiros>
but well, whatever it actually was - you solved your problem.
thisirs has joined #ruby
keen_______ has quit [Ping timeout: 264 seconds]
<mkjackson>
grr.... never mind
<mkjackson>
the packages are in conflicty
<mkjackson>
site's down now :-(
iceden has quit [Ping timeout: 240 seconds]
<apeiros>
I suggest you fix your terminology. there's Gemfile. There are gemspecs (NOT the same as a Gemfile) and there are gems
paulfm has joined #ruby
<apeiros>
there's no such thin as a "package" in ruby
<apeiros>
(unless you use apt to install gems, but that'd be outside of rubys, bundlers and rubygem's domain)
enebo has joined #ruby
aspires has quit []
troyready has quit [Ping timeout: 252 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
hedgey has joined #ruby
<hedgey>
hey
hedgey has quit [Client Quit]
<havenwood>
runa: sounds like a bug to me, not sure..
iliketurtles has joined #ruby
<mkjackson>
so a project can have multiple gemspecs?
havenwood has quit [Remote host closed the connection]
fgo has joined #ruby
aspires has joined #ruby
AndChat| has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
r0bby_ is now known as robbyoconnor
maheshm has quit [Quit: maheshm]
freerobby has quit [Quit: Leaving.]
<apeiros>
does not seem to play nice with ruby -e… not quite sure how it passes the arguments, but it somehow maims them :)
iceden has joined #ruby
skaflem has quit [Quit: Leaving]
<apeiros>
well, passing a file to execute works normally. using that.
Takle has joined #ruby
troyready has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
nnu has quit [Quit: Wqke me up before you go-go]
<apeiros>
runa: seems to happen here too, with 2.1.2
<apeiros>
what's odd - the .rb parts of the require are repeated too
<apeiros>
i.e., require 'digest/md5' starts with site_ruby/2.1.0/digest/md5.rb
<apeiros>
and that gets opened multiple times too
<apeiros>
ah… wait…
aspires has quit []
<apeiros>
those are only tries and fail with ENOENT
dc has joined #ruby
atmosx has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
Channel6 has joined #ruby
Zespre has quit [*.net *.split]
eka has joined #ruby
AlexRussia has quit [Ping timeout: 255 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
Morkel_ has joined #ruby
<apeiros>
this is weird… $ ruby -rdigest/md5 -e 'puts $".grep(/md5/)' # -> digest/md5.so
<apeiros>
but `sudo dtruss -f -t open ruby t.rb 2>&1 | grep md5.so` yields nothing
danshultz has quit [Read error: Connection reset by peer]
danshult_ has joined #ruby
<apeiros>
and all attempts at trying to load an md5.bundle fail with = -1 Err#2
Morkel has quit [Ping timeout: 255 seconds]
Morkel_ is now known as Morkel
Zespre has joined #ruby
havenwood has joined #ruby
havenwood has quit [Remote host closed the connection]
<apeiros>
runa: your problem confuses me :D
james_d_h has quit [Quit: leaving]
<apeiros>
the only successfully opened file by require 'digest/md5' is digest.rb, and digest.rb contains `require 'digest.so'` in the first line. I see no digest.so being opened, and I see no failure.
djbkd has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
dc has quit [Remote host closed the connection]
ponga has joined #ruby
<apeiros>
it seems to me that on osx, another syscall is used to open/load native extensions
sski has quit [Remote host closed the connection]
cocotton has joined #ruby
hughlander has quit [Quit: hughlander]
sski has joined #ruby
ponga has quit [Ping timeout: 252 seconds]
treehug8_ has quit []
Atttwww has joined #ruby
frogssgy is now known as frogsy
Takle has quit [Remote host closed the connection]
sski_ has quit [Remote host closed the connection]
dangerousdave has quit []
sski has joined #ruby
alem0lars has quit [Quit: alem0lars]
timonv has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
tectonic has joined #ruby
tectonic has quit [Max SendQ exceeded]
thisirs has quit [Ping timeout: 276 seconds]
<apeiros>
dln_load in dln.c is a fun read :-S
alem0lars has joined #ruby
tectonic has joined #ruby
tectonic has quit [Client Quit]
Takle has joined #ruby
gaboesquivel has joined #ruby
dawkirst has quit [Ping timeout: 240 seconds]
fgo has quit []
omosoj has joined #ruby
IceDragon has joined #ruby
stantona has joined #ruby
Hanmac1 has joined #ruby
Nahra has quit [Remote host closed the connection]
Nahra has joined #ruby
danshult_ has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
lele has joined #ruby
yetanotherdave has quit [Quit: Lost terminal]
timonv has joined #ruby
Slavox is now known as Slavox|AFK
olivier_bK has joined #ruby
Bira has quit [Remote host closed the connection]
stantona has quit [Ping timeout: 265 seconds]
vpretzel_ has joined #ruby
silkfox has joined #ruby
timonv has quit [Remote host closed the connection]
eka_ has joined #ruby
combusean has joined #ruby
eka has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
vpretzel|1392 has quit [Ping timeout: 265 seconds]
doev has quit [Ping timeout: 240 seconds]
brunops has quit [Ping timeout: 265 seconds]
doev has joined #ruby
GriffinHeart has joined #ruby
paulfm has quit []
maximski has quit []
jackneill has quit [Remote host closed the connection]
creativeembassy has quit [Quit: FO SHO]
paulfm has joined #ruby
Zenigor has quit [Remote host closed the connection]
Slavox|AFK is now known as Slavox
iliketurtles has joined #ruby
GriffinHeart has quit [Ping timeout: 240 seconds]
lmickh has joined #ruby
yetanotherdave has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
jonahR has quit [Remote host closed the connection]
iliketurtles has quit [Client Quit]
stantona has joined #ruby
joaoh82 has joined #ruby
saarinen has quit [Quit: saarinen]
aspiers_ has joined #ruby
olivier_bK has quit [Ping timeout: 265 seconds]
<runa>
apeiros: sorry, I'm back.
<apeiros>
and I gave up :(
<apeiros>
can't figure out which syscall, if any syscall at all is used to open native extensions on osx
stantona has quit [Remote host closed the connection]
einarj has joined #ruby
dawkirst has joined #ruby
stantona has joined #ruby
creativeembassy has joined #ruby
aspires has joined #ruby
shvelo has quit [Ping timeout: 264 seconds]
franzip has quit [Read error: Connection reset by peer]
ra4king has quit [Remote host closed the connection]
franzip has joined #ruby
ra4king has joined #ruby
Asher has joined #ruby
mikesplain has quit [Ping timeout: 260 seconds]
shvelo has joined #ruby
sunya7a has joined #ruby
sunya7a has quit [Client Quit]
djbkd has joined #ruby
stantona has quit [Ping timeout: 255 seconds]
sepp2k has joined #ruby
datafirm__ has joined #ruby
<runa>
apeiros: ok. but at least on linux, it looks like a bug
Channel6 has quit [Quit: Leaving]
lethe has joined #ruby
<apeiros>
from your description in the post it seems like it, yes.
<runa>
apeiros: ok. thanks ;)
<apeiros>
curious for the answers on it
<eam>
apeiros: syscall, like open, mmap, etc?
<eam>
pretty sure that's all dlopen(3) does
datafirm_ has quit [Ping timeout: 252 seconds]
<runa>
apeiros: yep, me too. because AFAIK it's the only 'nice' way of avoiding autoload but not loading everything on start
<eam>
does ruby maintain anything similar to perl's %INC hash? That is, a hash of already loaded modules?
djbkd has quit [Ping timeout: 240 seconds]
<apeiros>
eam: yes. it seems on osx, requiring a native extension loads it via `dyld_result = NSCreateObjectFileImageFromFile(file, &obj_file);` (dln.c:1423 in my ruby source, not sure which version)
vmoravec has joined #ruby
stantona has joined #ruby
<jhass>
eam: $LOADED_FEATURES or something like that
<apeiros>
it doesn't show up with dtruss
vmoravec has quit [Client Quit]
<eam>
jhass: ah, that's an array of the files loaded, but how about a map of name => file?
<apeiros>
eam, jhass: yes, $LOADED_FEATURES ( == $" in my message a bit further above)
<apeiros>
ah, no
<eam>
for example in %INC, you would have pp => /path/to/pp.rb
<jhass>
eam: what do you mean? Ruby only cares about files when it comes to loading stuff
relix has joined #ruby
djbkd has joined #ruby
<apeiros>
I think if you did require 'pp'; $:.unshift('other'); require 'pp' it'd require pp twice if it was also in other
<apeiros>
as it'd be a different file to load now
<apeiros>
not sure though, never tested.
lethe has quit [Ping timeout: 240 seconds]
danshultz has quit [Remote host closed the connection]
<jhass>
$LOADED_FEATURES contains absolute paths and I think that's what require operates on
<jhass>
so I'd assume that too
Eyes has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
Eyes has joined #ruby
<eam>
in perl, if you say use Foo::Bar, you end up with 'Foo::Bar' => '/path/to/Foo/Bar.pm'
<eam>
seems useful to track the name of the module loaded as well as which path it was found in
danshultz has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
<jhass>
yes, there's no such automatism in ruby I'm aware of
SCommette has quit [Quit: SCommette]
jonahR has joined #ruby
ringarin has joined #ruby
<jhass>
hm, I wonder how pry finds the right file for a module though
SCommette has joined #ruby
garndt has quit [Quit: Connection closed for inactivity]
<eam>
another neat trick perl has is letting you put a lambda into $:
eka_ has quit [Read error: Connection reset by peer]
mijicd has joined #ruby
<eam>
super useful for doing all kinds of special conditional loading decisions
chipotle has joined #ruby
eka has joined #ruby
<eam>
(or tracing module load order, stuff like that)
sdrew has joined #ruby
happytux has quit [Quit: ChatZilla 0.9.90.1-rdmsoft [XULRunner 22.0/20130619132145]]
tami99 has quit [Quit: tami99]
LadyRainicorn has quit [Quit: Bye]
Nahra has quit [Remote host closed the connection]
zB0hs has joined #ruby
saarinen has joined #ruby
DanishMan has joined #ruby
ra4king has quit [Remote host closed the connection]
Nahra has joined #ruby
mijicd has quit [Remote host closed the connection]
ra4king has joined #ruby
mijicd has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
coffeina has joined #ruby
eka has quit [Ping timeout: 240 seconds]
momomomomo has quit [Quit: momomomomo]
eka has joined #ruby
jamto11 has quit [Remote host closed the connection]
agjacome has quit [Quit: leaving]
jhass is now known as jhass|off
ponga has joined #ruby
Hanmac has joined #ruby
alem0lars has quit [Quit: alem0lars]
phansch_ has joined #ruby
atmosx has quit [Quit: Lost in trance]
yacks has quit [Ping timeout: 252 seconds]
eka has quit [Read error: Connection reset by peer]
eka has joined #ruby
Hanmac1 has quit [Ping timeout: 264 seconds]
Squarepy has joined #ruby
the_f0ster has joined #ruby
omosoj has quit [Quit: Leaving]
phansch has quit [Ping timeout: 240 seconds]
ponga has quit [Ping timeout: 252 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
LiohAu has quit [Quit: LiohAu]
subbyyy_ has joined #ruby
mordof_work has left #ruby [#ruby]
ldnunes has quit [Quit: Leaving]
Rollabunna has joined #ruby
aspires has quit []
mercerist has joined #ruby
DrShoggoth has quit [Ping timeout: 255 seconds]
mark_locklear has quit [Ping timeout: 276 seconds]
spider-mario has joined #ruby
dawkirst has quit [Remote host closed the connection]
doev has quit [Ping timeout: 240 seconds]
dawkirst has joined #ruby
doev has joined #ruby
jeregrine_ has joined #ruby
kireevco has quit [Quit: Leaving.]
cmhobbs has quit [Read error: Connection reset by peer]
Ankhers has quit [Ping timeout: 272 seconds]
subbyyy_ has quit [Quit: none 0.4.3]
cmhobbs has joined #ruby
jeregrine_ is now known as jeregrine
cmhobbs has quit [Read error: Connection reset by peer]
benzrf|offline is now known as benzrf
Rollabunna has quit [Ping timeout: 255 seconds]
cmhobbs has joined #ruby
cmhobbs has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Quit: baroquebobcat]
coffeina has quit [Quit: Wychodzi]
noop has quit [Ping timeout: 245 seconds]
toastynerd has quit [Remote host closed the connection]
dc has joined #ruby
momomomomo has joined #ruby
mengu has joined #ruby
thisirs has joined #ruby
jamto11 has joined #ruby
cpruitt has quit [Ping timeout: 245 seconds]
cpruitt has joined #ruby
phansch^ has joined #ruby
paulfm has quit []
deavid has quit [Ping timeout: 255 seconds]
Devanon has joined #ruby
n0n3 has quit []
cmhobbs has joined #ruby
testcore has joined #ruby
obs has quit [Remote host closed the connection]
cpruitt has quit [Read error: Connection reset by peer]
doev has quit [Ping timeout: 264 seconds]
cpruitt has joined #ruby
phansch_ has quit [Ping timeout: 260 seconds]
DrShoggoth has joined #ruby
jamto11 has quit [Ping timeout: 265 seconds]
cocotton has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
cmhobbs has quit [Ping timeout: 276 seconds]
mehlah has joined #ruby
Bira has joined #ruby
robertodecurnex has quit [Remote host closed the connection]
SBoolean has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
danshultz has joined #ruby
Bira has quit [Ping timeout: 260 seconds]
nobitanobi has joined #ruby
dblessing_ has quit [Quit: dblessing_]
baroquebobcat has joined #ruby
lw has quit [Quit: s]
thisirs has quit [Remote host closed the connection]
franzip has quit [Quit: ...]
kireevco has joined #ruby
klaut has quit [Remote host closed the connection]
akonny has quit [Quit: akonny]
NukePuppy has quit [Ping timeout: 260 seconds]
adeponte is now known as cyphacto
cyphacto is now known as cyphactor
vifino has quit [Quit: Me sais Laptop sleepy.]
carraroj has quit [Quit: Konversation terminated!]
vifino has joined #ruby
Hanmac1 has joined #ruby
vifino has quit [Client Quit]
toastynerd has quit [Remote host closed the connection]
ringarin has quit [Quit: Leaving]
andrewlio has quit [Ping timeout: 260 seconds]
deavid has joined #ruby
klaut has joined #ruby
iceden has quit [Remote host closed the connection]
agarie has quit [Remote host closed the connection]
mijicd has quit [Remote host closed the connection]
dc has quit [Remote host closed the connection]
<DEA7TH>
jroes: could it be that time_to_f and time_to_a lead to some loss of information? like milliseconds or something
CodeBunny has joined #ruby
<jroes>
afaik time.to_i leads to loss of milliseconds, but I was under the impression that to_f didn't lose anything
creativeembassy has quit [Quit: FO SHO]
mijicd has joined #ruby
kyb3r_ has joined #ruby
hughlander has joined #ruby
mijicd has quit [Client Quit]
pagioss has left #ruby ["Leaving"]
mijicd has joined #ruby
diegoviola has joined #ruby
<nobitanobi>
If I have a method that it returns a User or nil (if it can't find a user), how do I document it with Yard: # @return [User] the user who owns the access token
phansch^ has quit [Quit: WeeChat 0.4.3]
dc has joined #ruby
brandonjmckay has joined #ruby
workmad3 has joined #ruby
akonny has joined #ruby
mrsolo has joined #ruby
jinie has quit [Ping timeout: 265 seconds]
kirun has quit [Quit: Client exiting]
<apeiros>
@return [User, nil]
<eam>
a conversion from (for example) struct timeval will differ from an IEEE float representation
dilated_dinosaur has quit [Ping timeout: 265 seconds]
n0n3 has joined #ruby
<eam>
I don't know what ruby does in Time, but floats are different than most internal time structures
<jroes>
eam: is there anything I can inspect on the objects to see that?
<eam>
jroes: I guess, check to see what the heck == is comparing
<apeiros>
jroes: Time has a higher precision than the float, being a 64bit integer
n0n3 has quit [Remote host closed the connection]
<nobitanobi>
apeiros: thanks! Where did you find that documentation?
dilated_dinosaur has joined #ruby
<apeiros>
float uses too much for the exponent to be as precise
<jroes>
eam: the docs are showing me C code :\
<eam>
it probably is C yeah
jinie has joined #ruby
<nobitanobi>
I guess you already knew it :) But where can I find that documentation
<nobitanobi>
I mean, within YARD (http://yardoc.org/) - Where is the documentation on 'how to document' ?
yubrew has quit [Remote host closed the connection]
rm_ has quit [Remote host closed the connection]
<apeiros>
nobitanobi: yeah, I have to search for that every time again :)
<shevy>
nobitanobi even more importantly, how to change the YARD assumptions for documentation?
<eam>
jroes: from time.c, PACKED_STRUCT_UNALIGNED(struct time_object { wideval_t timew; /* time_t value * TIME_SCALE. possibly Rational. */
<AntelopeSalad>
is there an easy way to perform a difference on 2 arrays but instead of just subtracting them for an exact match you could use .include? instead to determine how they should be compared?
rm_ has joined #ruby
<nobitanobi>
oh boy,
<nobitanobi>
interesting
chubchubcharles has quit [Ping timeout: 240 seconds]
<eam>
I actually don't see where it defines the internal format for Time
<eam>
but it's not a float, so it won't be necessarily 1:1
<jroes>
gotcha
<AntelopeSalad>
oops bad termonology, instead of .include? , i mean more like how .include? works for a string
<jroes>
The lowest digit of #to_f and nsec is different because IEEE 754 double is not accurate enough to represent nanoseconds from the Epoch. The accurate value is returned by nsec.
<AntelopeSalad>
apeiros: does that also do partial string matches?
<apeiros>
eam: as of ruby 1.9, Time uses 64bit even on 32bit systems
rm_ has quit [Ping timeout: 276 seconds]
nateberkopec has quit [Quit: Leaving...]
endash has quit [Quit: endash]
<jroes>
I think this explains why on my local machine these tests pass
<eam>
apeiros: yeah but does gettimeofday() ?
<apeiros>
eam: I think not. afaik they wrote around it
kireevco has quit [Read error: Connection reset by peer]
<apeiros>
eam: which is why 1.8's Time differed on 32bit machines from Time on 64bit machines
<apeiros>
(because there they just thinly wrapped it)
<apeiros>
AntelopeSalad: what?
kireevco has joined #ruby
<eam>
extra precision in an intermediate value wouldn't matter if the input granularity is still 32bit
<apeiros>
eam: it mattered more for range
<eam>
from the system
<eam>
apeiros: yeah, that makes sense
<apeiros>
eam: 1970-2038 wasn't really great range
<eam>
ranges are sucky with -- yeah
nateberkopec has joined #ruby
<apeiros>
and the reason for the ugly Time vs. DateTime thingy we have now :-/
<eam>
ah, is that why
<apeiros>
yes
<apeiros>
DateTime uses Rational and was thus "unlimited"
<AntelopeSalad>
apeiros: i'm trying to compare partial string matches
<AntelopeSalad>
.include? only does an exact == match
bluOxigen has joined #ruby
<apeiros>
AntelopeSalad: then why do you talk about arrays if you want string matches?
<apeiros>
AntelopeSalad: also, examples would help a great deal explaining what you're after
<AntelopeSalad>
apeiros: because i'm searching in an array, not a string
<AntelopeSalad>
i explained this before
<eam>
everything involving time is always a goddamn mess
hakunin has quit [Remote host closed the connection]
<apeiros>
AntelopeSalad: ok. I don't care about "before".
hakunin has joined #ruby
hakunin has quit [Remote host closed the connection]
<AntelopeSalad>
"before" was about 2 minutes ago
<shevy>
hehe
<apeiros>
AntelopeSalad: that explanation was not useful.
<eam>
apeiros: the crappy thing about ranges is -- even with 64bit we can't look more than 6 months into the future
hakunin has joined #ruby
<eam>
without losing accuracy
hakunin has quit [Remote host closed the connection]
<AntelopeSalad>
why argue? if it's not possible i'll just loop through it manually in an ugly imperative'ish way :/
combusean has joined #ruby
hakunin has joined #ruby
<AntelopeSalad>
i just wanted to take a string and search for a partial match anywhere in an array of strings and get back true/false
<eam>
because ruby uses a time reference localized with respect to leap seconds
<apeiros>
AntelopeSalad: example.
hakunin has quit [Remote host closed the connection]
sdwrage has joined #ruby
kaspergr_ has joined #ruby
hakunin has joined #ruby
<apeiros>
AntelopeSalad: if you don't care to give a useful example, don't expect people to try and help you, sheesh.
<AntelopeSalad>
apeiros: input of 'o' on ['foo', 'bar', 'world'] would return true
<apeiros>
ary.join('').include?('o')
<shevy>
hehe
hakunin has quit [Read error: Connection reset by peer]
<apeiros>
ary.any? { |s| s.include?('o') }
nateberkopec has quit [Ping timeout: 240 seconds]
hakunin has joined #ruby
<apeiros>
!ary.grep(/o/).empty?
pwest has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
<AntelopeSalad>
i like the .any? solution
<AntelopeSalad>
thanks
<apeiros>
eam: what do you consider acceptable resolution?
ponga has joined #ruby
<apeiros>
I think in chronos I went with picoseconds
ponga has quit [Changing host]
ponga has joined #ruby
AlSquirrel has joined #ruby
<nobitanobi>
apeiros: do you have any project publicly available documented with Yard?
<nobitanobi>
I need examples :)
<pwest>
If I have a file that simply contains "default[:test][:a] = 'a'" and I want to load that into another ruby file, how would I do that? I thought "require" might simply load it into scope, but it's tossing errors
<apeiros>
there are probably better examples for yard documentation, though
<nobitanobi>
ok, I will research
<nobitanobi>
thanks a lot
frobrob has quit [Ping timeout: 245 seconds]
silkfox has quit [Ping timeout: 255 seconds]
panga has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
ponga has quit [Read error: No route to host]
<apeiros>
eam: ah, right, in chronos I used a 64bit int for picoseconds up to a day, and a 64bit int for days since a custom epoch (backdated gregorian 0000-01-01)
beneggett has joined #ruby
AlSquirrel has quit [Ping timeout: 240 seconds]
jezen has joined #ruby
<jezen>
is it possible to mock/stub PG::Connection.exec?
<apeiros>
jezen: sure, why not?
alexju has quit [Remote host closed the connection]
<jezen>
apeiros: Because it’s private, I think
akonny has quit [Quit: akonny]
<jezen>
I’m a bit new to rspec, and TDD in general
<apeiros>
why'd that stop you from mocking/stubbing it?
<jezen>
so there’s a good chance I’m doing it incorrectly
<apeiros>
and I doubt it's private
<eam>
apeiros: TAI is the time format that solves the leap second issue, the problem is that's not what POSIX uses
<eam>
it's a mess
AlSquire has joined #ruby
aspiers_ has quit [Ping timeout: 260 seconds]
<eam>
probably not worth trying to fix in ruby, sometimes it's better to be as broken as everyone else
freerobby has quit [Quit: Leaving.]
<apeiros>
well, I regard leap seconds, dst and timezones as a representational issue
<apeiros>
makes dealing with it much easier
<eam>
dst/timezones are display layer, but leap seconds are changes to time_t
jrhe has quit [Quit: Connection closed for inactivity]
<apeiros>
in posix maybe
<eam>
yeah
<eam>
but everything is on top of posix
<apeiros>
ah, wait…
timonv has joined #ruby
<apeiros>
damn, this stuff is already years ago… damn memory
diegoviola has quit [Quit: WeeChat 0.4.3]
peterhu has quit [Quit: leaving]
<apeiros>
no, you're right. a leap second is actually a second which passes
<jezen>
@apeiros I tried PG::Connection.stub(:exec); PG::Connection.should_receive(:exec).with("some string"); @my_object.my_method("some string")
peterhu has joined #ruby
<eam>
which is why noon/midnight is locked to the solar cycle
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jezen>
apeiros: And I get NoMethodError: private method 'exec' called for nil:NilClass
<eam>
whereas TAI can do high precision time calculations of arbitrary scale, but in 100 years "noon" won't be matched up to the solar noon
<eam>
earth bias :)
pragmatism has joined #ruby
chipotle has quit [Quit: cya]
<pragmatism>
I have a Slot with many Revisions. I want a scope on Slot that returns Slots with Revisions.last.active?
<pragmatism>
How would I do that?
<apeiros>
eam: I think I would have to look all that stuff up again. too foggy, and I'm probably too tired. I think I had a good solution to it, where you could swap out the presentation layer and you'd have either leap seconds, dst and all that jazz or just an arithmetic back/forward-dated gregorian system
<pragmatism>
oops, need #rails
<pragmatism>
jk
<pragmatism>
bye
pragmatism has left #ruby [#ruby]
bluOxigen has quit [Ping timeout: 264 seconds]
<mary5030>
hi there hope this isnt dum question can someone help understand how i can i only display the description part of this GET response
claymore has quit [Quit: night]
jespada has quit [Quit: Leaving]
<apeiros>
jezen: means you don't call exec on PG::Connection
<apeiros>
jezen: you call it on nil
<apeiros>
>> nil.exec
<eval-in_>
apeiros => private method `exec' called for nil:NilClass (NoMethodError) ... (https://eval.in/158992)
<eam>
apeiros: If you have access to the current leap second database you can calculate TAI from UTC with a lookup and go from there. I'm not sure there's a more elegant mechanism
<eam>
the problem is that the database needs biannual updates
<apeiros>
eam: yes
<apeiros>
eam: same for dst
<mary5030>
i only like to catch the description part of this response and store it in a variable
<eam>
yeah
<apeiros>
since dst isn't algorithmic
sinkensabe has quit [Remote host closed the connection]
n0n3 has joined #ruby
<apeiros>
also timezones, because they can change too :-S
<mozzarella>
guys
<apeiros>
(shout out to +0530 and similar timezones)
timonv has quit [Ping timeout: 260 seconds]
<mozzarella>
what's the best library to use ncurses in my ruby programs?
<eam>
in practice, everyone is just like leap seconds ¯\_(ツ)_/¯
sinkensabe has joined #ruby
<mozzarella>
library/gem
<eam>
unless they're doing astrophysics
<apeiros>
eam: yeah. default was without.
<apeiros>
because people would be f*ing confusing if they did subtraction and got an odd second out
testcore has quit [Quit: [BX] Went through the desert on a BitchX with no name.]
djcp has quit [Ping timeout: 264 seconds]
<eam>
and that's why I don't fly on airplanes on NYE or 6 months from NYE at midnight
<apeiros>
:D
<apeiros>
good idea
<apeiros>
there was also some issue with passing the date border
<apeiros>
where flight instruments showed the plane upside down
<jezen>
apeiros: I don’t think that’s right… I still get the same error. In my production code, I know that I’m meant to use exec on an instance of PG::Connection
<banister>
apeiros your flight instruments?
glenfe has joined #ruby
<apeiros>
jezen: your error *tells* you that you call it on nil
<apeiros>
jezen: all you have to do is read the error
<apeiros>
23:46 jezen: apeiros: And I get NoMethodError: private method 'exec' called for nil:NilClass
<apeiros>
that "called for ***nil:NilClass**" is meant like it is written. you call it on nil.
rm_ has joined #ruby
<apeiros>
banister: not mine :)
nicolas_leonidas has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0/20140314220517]]
<apeiros>
jezen: it tells you that you do NOT call it on a PG::Connection
yubrew has joined #ruby
<apeiros>
jezen: of course you SHOULD call it on one
sinkensabe has quit [Ping timeout: 264 seconds]
AlSquire has quit [Ping timeout: 265 seconds]
alevel27mage has joined #ruby
nicholas040 has joined #ruby
<apeiros>
sometimes I wonder whether I talk in riddles…
nowthatsamatt has quit [Quit: nowthatsamatt]
nateberkopec has joined #ruby
ryanleesipes has quit [Quit: Leaving]
<slash_nick>
apeiros: i give up, what's the answer
yubrew has quit [Ping timeout: 255 seconds]
<apeiros>
slash_nick: on what?
<slash_nick>
trying to figure out your riddle
<apeiros>
lol, QED…
<nobitanobi>
How do you guys document if a method (besides returning) changes the status of an object, or launches a background-job. Do you just write what it does in the description of the Yard method doc?
<apeiros>
I said I wonder whether I do talk in riddles. because I think I say something as clear as day, but people don't understand
nateberkopec has quit [Read error: No route to host]
nateberkopec has joined #ruby
<shevy>
nobitanobi I document by writing useful things into code regardless of whether yard checks it or not, which is my problem with yard - I have to conform to its syntax rules and I don't allow third party tools like that dictate how I document
<shevy>
into *comments
<slash_nick>
apeiros: yeeeah I was having fun with the concept that you do speak in riddles
x1337807x has quit [Read error: Connection reset by peer]
<nobitanobi>
shevy: okay :)
<nobitanobi>
thanks
mengu has quit []
SilverKey has joined #ruby
mocfive has quit [Remote host closed the connection]
jroes has left #ruby [#ruby]
tectonic has quit []
SegFaultAX has quit [Excess Flood]
mrsolo has quit [Quit: This computer has gone to sleep]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hughlander has joined #ruby
katmandoo has quit [Ping timeout: 264 seconds]
<banister>
nobitanobi you send that fucker through the IO monad
doodlehaus has quit [Remote host closed the connection]
<nobitanobi>
banister: whoot?
SegFaultAX has joined #ruby
doodlehaus has joined #ruby
jezen has quit []
nateberkopec has quit [Ping timeout: 240 seconds]
pwest has quit [Ping timeout: 240 seconds]
jinie has quit [Ping timeout: 265 seconds]
x1337807x has joined #ruby
<benzrf>
yo banister
<benzrf>
did u xamine the imgur album i sent you
SCommette has quit [Quit: SCommette]
Azulinho has quit [Ping timeout: 265 seconds]
p8952 has quit [Ping timeout: 265 seconds]
Azulinho has joined #ruby
bean__ has quit [Quit: bean__]
Deele has quit [Ping timeout: 260 seconds]
p8952 has joined #ruby
geggam has quit [Quit: commute]
jinie has joined #ruby
doodlehaus has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
Biohazard has quit [Ping timeout: 260 seconds]
tectonic has joined #ruby
Biohazard has joined #ruby
mrsolo has joined #ruby
testcore has joined #ruby
<banister>
benzrf yes very cool, congrats!
<benzrf>
:-)
<banister>
benzrf any feedback from the guys in #haskell ?
bradhe has quit [Remote host closed the connection]
AlSquire has quit [Ping timeout: 265 seconds]
enebo has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
hughlander has quit [Quit: hughlander]
jxf has quit [Ping timeout: 260 seconds]
nanoyak has joined #ruby
<cvitullo>
can anybody help somebody who's never used ruby before this figure out why my erb template that i'm trying to make in a capistrano script isn't working?
<centrx>
mozzarella, Maybe update your C compiler?
JokerDoomWork has quit [Read error: Connection reset by peer]
JokerDoomWork has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
<cvitullo>
I'm trying to give it an array of hashes, then use each hash to generate a configuration, but it's saying that the variable i'm iterating over is of type NilClass, but literally the line before i'm successfully iterating through it
<mozzarella>
centrx: it's up-to-date
CodeBunny has quit [Ping timeout: 240 seconds]
Rollabunna has joined #ruby
<centrx>
cvitullo, You'll have to paste some code at gist.github.com
jheg has quit [Read error: Connection reset by peer]
jaimef has quit [Excess Flood]
<cvitullo>
yeah word
<centrx>
mozzarella, Could be missing ruby-dev/the ruby header files
jheg has joined #ruby
sski has quit [Remote host closed the connection]
andrewlio has quit [Quit: Leaving.]
<centrx>
mozzarella, Generally to install native extensions you need installed a) build tools like m4, gcc, etc., and b) the ruby header/development files
sski has joined #ruby
<centrx>
mozzarella, On Debian systems that is generally: apt-get install build-essential rubyX-dev
<shevy>
ruby's wrapper is basically just a 1:1 ugly wrapper over the C functions
[42] has joined #ruby
rm_ has quit [Ping timeout: 265 seconds]
<pipework>
Ruby is PHP with OOP baked in not sprinkled on top.
<cvitullo>
/with super unfamiliar syntax :P
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has joined #ruby
<cvitullo>
colons, everywhere
<benzrf>
pipework: not even closer
<benzrf>
*close
<benzrf>
pipework: that is like
hermanmunster has quit [Remote host closed the connection]
<benzrf>
holy crap so inaccurate
saarinen has joined #ruby
hermanmunster has joined #ruby
charliesome has joined #ruby
<pipework>
benzrf: You really are as easy to bait as they say.
<shevy>
lol
<shevy>
there is an IRC nick called closer here
x1337807x has joined #ruby
ValicekB has joined #ruby
<benzrf>
>tfw
<benzrf>
pipework: was that legitimately deliberate
<benzrf>
to acquire my bovine
<shevy>
the sad thing is that pipework is dead serious
<pipework>
benzrf: Is anything ever really legitimately deliberate?
<benzrf>
*ovine
<benzrf>
pipework: lele
AlSquire has quit [Ping timeout: 276 seconds]
jottr has joined #ruby
zB0hs has joined #ruby
zB0hs has quit [Max SendQ exceeded]
djcp has joined #ruby
toastynerd has joined #ruby
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has quit [Ping timeout: 240 seconds]
centrx has quit [Ping timeout: 240 seconds]
<shevy>
sometimes benzrf uses alien language
sdrew has joined #ruby
dawkirst has quit [Remote host closed the connection]
hermanmunster has quit [Ping timeout: 260 seconds]
timgauthier has joined #ruby
<timgauthier>
hey this is a semi rails thing, but with like a image_tag type deal, anyone know how to add alt text?
arrubin has quit []
<wallerdev>
probably :alt => 'text'
<Sigma00>
yup
<timgauthier>
thats what i thought too
<shevy>
aaah the beauty of tagname becoming a key of a hash
chrisja has quit [Ping timeout: 252 seconds]
<timgauthier>
commas are important :P
dfinly has joined #ruby
dfinly has quit [Max SendQ exceeded]
saarinen has quit [Quit: saarinen]
toastynerd has quit [Remote host closed the connection]
toordog has quit [Ping timeout: 260 seconds]
vpretzel|1392 has quit [Read error: Connection reset by peer]
kireevco has quit [Quit: Leaving.]
Robbo` has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
sepp2k has quit [Ping timeout: 245 seconds]
anaeem1 has quit [Ping timeout: 265 seconds]
<Robbo`>
is ENV shared across requests? as in if an ENV variable gets edited by one request will it be changed mid request if there is another request going causing a race condition?
predator117 has joined #ruby
vpretzel|1392 has joined #ruby
bradhe has joined #ruby
<shevy>
I think ENVs are not shared by default
SCommette has joined #ruby
saarinen has joined #ruby
<Robbo`>
okay I hope so
<Robbo`>
otherwise some weird shit is going to happen lol
saarinen has quit [Client Quit]
silkfox has joined #ruby
mikecmpbll has quit [Quit: ciao.]
<cvitullo>
so what's the deal with putting : in front of variables sometimes?
<shevy>
cvitullo no, that is a symbol, not a variable