<whitequark>
there was a faster yaml than psych for 1.9
<whitequark>
what's the gem name?
cschwartz has joined #ruby-lang
<whitequark>
or maybe not
nitti has joined #ruby-lang
mistym has quit [Remote host closed the connection]
nitti has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
<yorickpeterse>
Morning
qwerxy has quit [Quit: offski]
kitallis has joined #ruby-lang
cyri_ has joined #ruby-lang
agarcia has joined #ruby-lang
dhruvasagar has joined #ruby-lang
agarcia has quit [Client Quit]
agarcia has joined #ruby-lang
havenn has joined #ruby-lang
havenn has quit [Ping timeout: 252 seconds]
cyri_ has quit [Quit: cyri_]
kalleth has joined #ruby-lang
d3vic3 has joined #ruby-lang
<apeiros_>
moin yorickpeterse
<gnufied>
morning
Madis has joined #ruby-lang
frozon has joined #ruby-lang
<frozon>
Hello, got an issue with a CSV which ends with a semicolon, when trying to do CSV.open(file_path, 'r:iso-8859-15', {col_sep: ';', headers: true, header_converters: :symbol}) it end up with undefined encode for nil:NilClass. Is there a way to discard last column if nil?
<vbatts>
andrewvos: your question is a little confusing. are you asking the order of declaration, when using "private", or inheritence of private methods?
<andrewvos>
vbatts: Given a file with this content: "private; def blablabla; end;" and another file requires that, what is the relevance of the private keyword?
R_Macy has joined #ruby-lang
<vbatts>
then it would be private
<vbatts>
but clean it up, and put it in a module or class
<vbatts>
the subsequent file _could_ call "public :blablabla"
sush24 has quit [Quit: This computer has gone to sleep]
<andrewvos>
Yeah I get that
<andrewvos>
I was just wondering about the scope
hakunin has joined #ruby-lang
cschwartz has quit [Ping timeout: 252 seconds]
znake is now known as znake|away
<vbatts>
andrewvos: best to programatically elimate the uncertainty :-)
pkrnj has quit [Quit: Computer has gone to sleep.]
<matti>
zzak: Can you assign this one bug to me (or any you want me to work on).
apeiros_ has joined #ruby-lang
pkrnj has joined #ruby-lang
krohrbaugh has joined #ruby-lang
qpingu has joined #ruby-lang
leopard_me has joined #ruby-lang
rippa has quit [Ping timeout: 245 seconds]
bluepojo has joined #ruby-lang
rippa has joined #ruby-lang
leopard_me has quit [Quit: Computer has gone to sleep.]
<zzak>
which?
tubbo has joined #ruby-lang
<tubbo>
where does Ruby store its gem binstubs?
<tubbo>
i have ruby installed to /usr/local..
Nisstyre has joined #ruby-lang
robbyoconnor has joined #ruby-lang
cschwartz has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
<yxhuvud>
first question is - how did you install ruby?
<manveru>
if it's in /usr/local, probably by apt-get
<vbatts>
nope
GorbiE has joined #ruby-lang
<manveru>
magic?
<GorbiE>
hiii,
<GorbiE>
anyone here already used mechanize? would like send my code to try find something i'm missing somewhere please.
<manveru>
GorbiE: that's what pastebins are for
<manveru>
try gist.github.com if you have no other preference
havenn has quit [Remote host closed the connection]
krohrbaugh has quit [Quit: Leaving.]
datanoise has joined #ruby-lang
havenn has joined #ruby-lang
krohrbaugh has joined #ruby-lang
qwerxy has quit [Quit: offski]
kain has quit [Ping timeout: 255 seconds]
mpatel has joined #ruby-lang
kain has joined #ruby-lang
datanoise has quit [Ping timeout: 252 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
rippa has quit [Ping timeout: 256 seconds]
ryanlecompte has joined #ruby-lang
znake has joined #ruby-lang
qwerxy has joined #ruby-lang
datanoise has joined #ruby-lang
enebo has quit [Ping timeout: 246 seconds]
<amerine>
test
headius has quit [Ping timeout: 264 seconds]
headius_ has joined #ruby-lang
cschwartz has quit [Ping timeout: 240 seconds]
alerticus has quit []
datanoise has quit [Ping timeout: 260 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
headius_ is now known as headius
<vbatts>
manveru: apt will install to /usr, as it is standard for packagers to install to. /usr/local is for "user" installed files. typically, if you run ./configure && make && make install, it will land in /usr/local
Bwild has quit [Ping timeout: 240 seconds]
carloslo_ has quit [Remote host closed the connection]
elfenars has joined #ruby-lang
gearaholic has joined #ruby-lang
<mistym>
Huh. Can't quite figure out this bug.
<mistym>
The #each iterator is behaving differently in two classes that are inheriting from the same class.
<mistym>
#each is meant to iterate through all of the raw audio samples in the song being played by the library, which is done by repeatedly yielding their #next_sample method.
<Kainore>
what is the biggest Diffrence in Ruby and ruby on rails while programming ?+
_sillymarketing has joined #ruby-lang
<lianj>
ruby is the programming language, ruby on rails is a web programming framework using ruby
<Kainore>
ah okay
_sillymarketing has left #ruby-lang [#ruby-lang]
sillymarkets has joined #ruby-lang
rekky has quit [Quit: rekky]
sailias has quit [Quit: Leaving.]
sillymarkets has left #ruby-lang [#ruby-lang]
workmad3 has joined #ruby-lang
_sillymarkets has joined #ruby-lang
<_sillymarkets>
Has anyone installed Ruby 1.9+ on SPARC-Solaris2.9 ?
<_sillymarkets>
or even Ruby 1.8.7 ... I'm unable to find the .pkg file for 1.8.7, only found 1.8.6
<_sillymarkets>
blast, no body :(
sailias has joined #ruby-lang
sailias has quit [Client Quit]
agile has quit [Read error: No route to host]
<injekt>
_sillymarkets: you might find it's more common that people use a ruby environment managing tool
charlesstrahan has joined #ruby-lang
charlesstrahan has quit [Client Quit]
charlesstrahan has joined #ruby-lang
<_sillymarkets>
I tried RVM. Its not running properly in Solaris.... Actually, whats happening is RVM fails when trying to unzip the tarball file it downloads. Says there is no "tar: -z unknown"
<elfenars>
yeah but that does not sound like a ruby problem
<elfenars>
more like you have a problem with tar
<manveru>
a tar without -z?
<elfenars>
uhm
<workmad3>
solaris
<elfenars>
try
<workmad3>
bleh
<elfenars>
tar zxfv
<workmad3>
^^ that looks familiar
charlesstrahan has quit [Client Quit]
<workmad3>
it's BSD tar isn't it?
<elfenars>
idk about installing ruby on those machines (should be pretty standard)...
<manveru>
you can always pipe through gzip if it doesn't know the flag at all
<elfenars>
yup
cstrahan has joined #ruby-lang
<_sillymarkets>
okay, let me try this out again
<oddmunds>
i got ruby running on solaris last year
<zzak>
it may work, but you're basically on your own as there are no maintainers for that platform in ruby-core
elfenars has quit [Quit: elfenars]
yalue has quit [Read error: Connection reset by peer]
<_sillymarkets>
that sucks :( ... you guys dont want to support Solaris anymore?
<drbrain>
_sillymarkets: want is the wrong word
<drbrain>
_sillymarkets: nobody has the time to support it
<drbrain>
_sillymarkets: this person could be you
nitti has quit [Remote host closed the connection]
<manveru>
any reason to still run solaris?
<_sillymarkets>
give me about 10,000 hours of catching up before I can do that
<manveru>
you might be shaving a yak too many :)
<workmad3>
solaris
* workmad3
twitches
<workmad3>
as I've heard said - solaris is a fantastic distro
<workmad3>
as long as someone else is maintaining it
slyphon has quit [Ping timeout: 245 seconds]
<mistym>
Sorry to repost, but: https://github.com/ffi/ffi/issues/233 Anyone have any insights on this? May not be FFI-related. Tearing my hair out here.
datanoise has joined #ruby-lang
Aria has joined #ruby-lang
lcdhoffman has quit [Ping timeout: 240 seconds]
<mistym>
A method is behaving differently based on whether it's being used in an #each enumerable, or used on its own.
lcdhoffman has joined #ruby-lang
<zzak>
drbrain: /salute
<drbrain>
zzak: hey!
<zzak>
feeling better?
<drbrain>
zzak: meh
<zzak>
forget about it
<drbrain>
I don't have any DM in my system, so that's an improvement
datanoise has quit [Ping timeout: 252 seconds]
<zzak>
yeh, i hate when my inbox is full of direct messages
<drbrain>
I mean, dextromethorphan, the stuff in cough syrup
<mistym>
drbrain: Getting over a cold?
<drbrain>
mistym: I think allergies developed into a sinus infection
Aria has quit [Ping timeout: 260 seconds]
<zzak>
sounds like just about everyone here in newengland right now
<mistym>
drbrain: Sorry to hear that :( That's pretty nasty. Hope you're on the mend.
<zzak>
ditto
<drbrain>
I'm getting there
phlipper_ has quit [Quit: Leaving...]
nitti has joined #ruby-lang
benanne has quit [Quit: kbai]
emptyflask has quit [Remote host closed the connection]
cyri_ has quit [Quit: cyri_]
UberNerdGirl_ has joined #ruby-lang
qwerxy has quit [Quit: offski]
<Kainore>
Is there any one who knows of a way to implement a plugin interface for ruby and maybe have a link to share
qwerxy has joined #ruby-lang
intellitech has joined #ruby-lang
<mistym>
Hm. I've got a DSL method which does something with a class defined in itself. I have to put it after the very bottom of the module to make sure the class in question is evalled first. Which looks kinda ugly naturally. How can I do that better?
<apeiros_>
but no need to install. download and unpack.
<Kainore>
Thanks will look at it
blacktulip has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
<mistym>
Ahhh. That's what that weird bug is! Glad to have that tracked down.
<mistym>
Probably a bug... there's a weird side effect in the C library that resets the song data struct when you check the song length.
nitti has quit [Remote host closed the connection]
Hakon has joined #ruby-lang
<drbrain>
mistym: ouch
<mistym>
drbrain: Yeah. No wonder it took me awhile to figure out.
<mistym>
So my calls to figure out if the song was finished was resetting the song every time it generated a sample. Weird!
anachronistic has quit [Quit: anachronistic]
gsav_ has joined #ruby-lang
gsav_ has quit [Read error: Operation timed out]
gsav has quit [Ping timeout: 245 seconds]
<_sillymarkets>
okay, I got permission to install any flavor of Linux over this Solaris box, and uninstall Solaris
<_sillymarkets>
All, I want to do is be able to script and run Ruby (future-proof) as well. What OS would you rec?
Sundown has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
Sundown has left #ruby-lang [#ruby-lang]
apeiros has joined #ruby-lang
apeiros_ has quit [Ping timeout: 245 seconds]
<drbrain>
_sillymarkets: I hear lots of people use ubuntu
<_sillymarkets>
Hm, yeah I was thinking between Ubuntu and Fedora
thinkdevcode has quit [Remote host closed the connection]
<tdy>
will you be using rvm
Kingy has joined #ruby-lang
<_sillymarkets>
yeah
<ddd>
will work with any of them. rvm has enough internal logic to determine the distribution and populate the rvm requirements
tenderlove has quit [Remote host closed the connection]
elfenars has joined #ruby-lang
R_Macy has quit []
Serial_Killer_C has quit [Remote host closed the connection]
kurko_ has quit [Quit: Computer has gone to sleep.]
<tdy>
ruby won't really play any part in the decision since you're using rvm
bluepojo1 has joined #ruby-lang
<ddd>
tdy++
<_sillymarkets>
it just failed miserably on Solaris (post ruby-1.8.6). Wanted to ensure the other two distros wouldnt see the same thing in the future
<drbrain>
_sillymarkets: unlikely, unless Linux drops below 1% market share
bluepojo has quit [Ping timeout: 276 seconds]
davidbalbert is now known as davidbalber|away
tenderlove has joined #ruby-lang
elfenars has quit [*.net *.split]
rwilcox has quit [*.net *.split]
ttilley has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
dstywho has quit [*.net *.split]
sepp2k1 has quit [*.net *.split]
shtirlic has quit [*.net *.split]
mistym has quit [*.net *.split]
wallerdev has quit [*.net *.split]
francisfish has quit [*.net *.split]
sandbags1138 has quit [*.net *.split]
comboy has quit [*.net *.split]
RandyInLA has quit [*.net *.split]
faces has quit [*.net *.split]
anildigital_work has quit [*.net *.split]
CoverSlide|TPFR has quit [*.net *.split]
thorncp has quit [*.net *.split]
davidbalber|away has quit [*.net *.split]
sphera has quit [*.net *.split]
ddv has quit [*.net *.split]
Spaceghost|cloud has quit [*.net *.split]
steez has quit [*.net *.split]
spectra has quit [*.net *.split]
neurodamage has quit [*.net *.split]
mephux has quit [*.net *.split]
eam has quit [*.net *.split]
m3nd3s has joined #ruby-lang
<yorickpeterse>
For those interested, here's an early alpha version of the linter that I've been working on for the past few months: https://github.com/YorickPeterse/rlint
shtirlic has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
havenn has quit [Remote host closed the connection]
slyphon has quit [Ping timeout: 245 seconds]
<ddd>
wow, went to install it and forgot all about the damned —pre param hehe
<yorickpeterse>
I'm more annoyed about the name "rlint" being squatted but there's not much that I can do about it
<ddd>
can't you put in a req with qrush to have it removed if its dead?
<yorickpeterse>
Well, the owner apparently is thinking of using it again according to a recent blogpost of November
<ddd>
ah
<zzak>
what about lintr?
elfenars has joined #ruby-lang
sepp2k1 has joined #ruby-lang
dstywho has joined #ruby-lang
ttilley has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
sandbags1138 has joined #ruby-lang
wallerdev has joined #ruby-lang
sphera has joined #ruby-lang
comboy has joined #ruby-lang
francisfish has joined #ruby-lang
RandyInLA has joined #ruby-lang
faces has joined #ruby-lang
anildigital_work has joined #ruby-lang
thorncp has joined #ruby-lang
CoverSlide|TPFR has joined #ruby-lang
ddv has joined #ruby-lang
steez has joined #ruby-lang
Spaceghost|cloud has joined #ruby-lang
spectra has joined #ruby-lang
davidbalber|away has joined #ruby-lang
mephux has joined #ruby-lang
neurodamage has joined #ruby-lang
eam has joined #ruby-lang
<yorickpeterse>
Somebody in #pry already suggested that and I think it's a shit name
<erikh>
what does it do that roodi/reek/flog don't?
<yorickpeterse>
I'd rather stick with something that makes sense
<drbrain>
what about dryer_screen?
<yorickpeterse>
erikh: those detect style issues and what not
<yorickpeterse>
This detects flaws in your logic such as undefined/unused variables, invalid method calls, etc
<erikh>
drbrain: hah
<zzak>
..."early alpha version of the linter that I've been working on..." but lintr is a bad name?
<yorickpeterse>
This isn't Tumblr :)
<erikh>
what happens when your code doesn't parse?
<erikh>
trololololol
<yorickpeterse>
erikh: for now it shows a Ruby exception
<zzak>
linter is available too
<drbrain>
pipe_cleaner
<yorickpeterse>
There's still quite a bit of work to do but I need some people to start throwing random bits of code at it
<zzak>
im just here to name stuff
<erikh>
I'm curious how this would work with a chef recipe
<erikh>
which has a lot of implicit stuff in it.
<yorickpeterse>
Right now it doesn't handle things such as attr_*, define_method and such at all
<yorickpeterse>
Simply haven't had the time for that yet
ilyam has quit [Remote host closed the connection]
ilyam has joined #ruby-lang
miah has quit [Remote host closed the connection]
miah has joined #ruby-lang
ilyam_ has joined #ruby-lang
ilyam_ has quit [Client Quit]
<erikh>
drbrain: thanks
sailias has joined #ruby-lang
sj26 has joined #ruby-lang
elfenars has quit [Quit: kthxbai]
<zenspider>
too many parens.
<zenspider>
I prefer a mix
ilyam has quit [Ping timeout: 246 seconds]
<zenspider>
push setup/teardown to VagrantTestcase
<zenspider>
no need for silly class methods
<zenspider>
instance variables will do fine. as will constants
lcdhoffman has joined #ruby-lang
pkrnj has quit [Quit: Computer has gone to sleep.]
qwerxy has quit [Quit: offski]
<zenspider>
why can't they make a VPN setup worth using? I swear they're all written by assholes or imbiciles. maybe this falls into the same rule as "hardware vendors should never write software--apple excluded"