hotovson has quit [Read error: Connection reset by peer]
<smw_>
hi all, does this code do what I think it does? date = ENV['from'] ? Date.parse(ENV['from']) : Date.today ---> if from is in the env, parse it and assign it to date, else assign today to date
marsam has quit [Quit: Saliendo]
<smw_>
I am new to ruby
Spami has quit [Quit: This computer has gone to sleep]
fyolnish has quit [Remote host closed the connection]
PetePorty has quit [Remote host closed the connection]
PetePorty has joined #ruby
PetePorty has quit [Changing host]
PetePorty has joined #ruby
dukedave has quit [Read error: Connection reset by peer]
naztyone has joined #ruby
jekotia has quit [Quit: ChatZilla 0.9.89-rdmsoft [XULRunner 1.9.0.17/2009122204]]
slainer68 has joined #ruby
<danneu>
smw_: if ENV was a string like "hahafromlol", then ENV['from'] would evaluate to 'from'
Slivka has joined #ruby
<danneu>
smw_: but usually ENV is a hash and so ENV['from'] is getting the value of the 'from' key {'from' => 42}
TomRone_ has quit [Read error: Connection reset by peer]
<smw_>
I assumed that much. My question was the ? and : syntax
<danneu>
oh duh
rismoney1 has joined #ruby
<gbchaosmaster>
It's the ternary operator from a lot of languages. condition ? if_true : if_false
<smw_>
how is ENV['from'] a condition? What would make it true or false?
<smw_>
I guess true is something is in 'from'?
<danneu>
smw_: itll return true unless it's nil
<smw_>
ok, so a nil in ENV would still return false
<smw_>
but a 0 would not
<gbchaosmaster>
Right.
<danneu>
right
<gbchaosmaster>
Well-
<smw_>
and not there == nil
rafaelfranca has joined #ruby
<danneu>
smw_: you might want to ENV.has_key?('from')
<gbchaosmaster>
nil is *implicit* false, everything else is evaluated as a truthy value.
<rismoney1>
is there an easy way to throw a boolean, if a dupe key is used in yaml? Trying to rspec YAML
<danneu>
else {'from' => nil}['from'] and {}['from'] both return 'nil'
<smw_>
danneu, I want to understand the code I saw :-)
gabrielrotbart has quit [Read error: Connection reset by peer]
slainer68 has quit [Ping timeout: 260 seconds]
rafaelfranca has left #ruby [#ruby]
<gbchaosmaster>
smw_: The ternary (?:) syntax, that is?
<danneu>
smw_: well, these are all necessary idiosyncrasies that you need to understand
<shevy>
smw_ ENV is a bit special anyway
gabrielrotbart has joined #ruby
<shevy>
but yeah, a hash in ruby
<shevy>
hash.has_key? :cat
<smw_>
gbchaosmaster, danneu, yeah, I think I got the ternary down, and now understand the conditions
<shevy>
"does this hash have the key cat (where cat is a symbol)"
<smw_>
shevy, would :cat work differently than "cat"?
CrazyHorse18 has quit [Ping timeout: 250 seconds]
<smw_>
hash["cat"] == hash[:cat]?
<gbchaosmaster>
smw_: No, they are different IIRC.
<danneu>
smw_: yeah {'cat' => 1, :cat => 2}
<smw_>
got it
stillEPIK has quit []
<smw_>
so many rules :-)
<smw_>
can I convert "cat" to :cat?
<danneu>
"cat".to_sym
<smw_>
nice
EPIK has joined #ruby
<danneu>
:cat.to_s => 'cat'
<smw_>
thanks for your help guys. I learned a lot :-)
thone has quit [Read error: Connection reset by peer]
<danneu>
smw_: in Rails, it uses a smarter hash called HashWithIndifferentAccess (hash subclass) that lets you do {a: 1}[:a] and {a: 1}['a']
<danneu>
those both eval to 1
thone has joined #ruby
byennen has quit [Remote host closed the connection]
<gbchaosmaster>
smw_: No problem. For more, this is an excellent resource if you haven't looked into it already: http://ruby-doc.org/core-1.9.3/
<danneu>
important thing to remember since Rails obfuscates ruby hashes like that
<shevy>
smw_ remember, symbols are quite boring
Virunga has joined #ruby
Virunga has quit [Remote host closed the connection]
<the_jeebster>
is each_with_index available on the csv class?
jtran has joined #ruby
<gbchaosmaster>
smw_: Is the official documentation, it details every core class pretty well.
<the_jeebster>
I've got a csv file and I need to skip a line, I figured I'd check on the index similar to the file class
<smw_>
gbchaosmaster, thanks
<jtran>
hey all, anyone familiar with a gem called 'user_interaction'? I did a gem search for it but nothing comes up yet rake always fails with this error:
<jtran>
I'm running ruby 1.8.7 and ruby gems 1.8.10
Rym has joined #ruby
avelldiroll has quit [Quit: WeeChat 0.3.8]
swarley has joined #ruby
<hsbt>
What is the version number for rake?
<jtran>
rake 0.8.7
<jtran>
is that the prob?
mahmoudimus has quit [Quit: Computer has gone to sleep.]
bigmcq77 has quit [Quit: Computer has gone to sleep.]
banisterfiend has quit [Ping timeout: 256 seconds]
<danneu>
smw_: yeah, i recommend just rolling through the docs every once in a while to learn methods you didn't know exist. for instance, Enumerable is great. hashes, arrays, and other classes inherit from it.
<rismoney1>
gbchaosmaster - yea, not really sure what to do w/ them.
<rismoney1>
lol
R3dy has quit [Ping timeout: 255 seconds]
<hsbt>
jtran: I think another rubygems plugins or some gems use Gem::UserInteraction. did you use them? One of solutions is `gem update --system`, but it's happened another problem(example for old rails)
gridaphobe has quit [Ping timeout: 256 seconds]
<jtran>
hsbt: no i didn't
<jtran>
i did gem update --system as well it upgraded to 1.8.24 still same prob
CrazyHorse18 has joined #ruby
CrazyHorse18 has left #ruby [#ruby]
<danneu>
am i missing something? how would a gem called 'user_interaction' be related to the Gem::UserInteraction module of RubyGems?
<shevy>
hehe
arya has quit [Ping timeout: 244 seconds]
<danneu>
oh, i see
danshultz has quit [Remote host closed the connection]
<jtran>
danneu: i think it's the chef gem that call sit
morozovm has joined #ruby
morozovm has quit [Client Quit]
morozovm has joined #ruby
olrrai has joined #ruby
superSlumbo has joined #ruby
olrrai has quit [Client Quit]
jimeh has quit [Quit: Computer has gone to sleep.]
postmodern has joined #ruby
<superSlumbo>
I'm trying to revert back to 1.8.7 in RVM and when I install its giving me the following error message
<ddd>
the patch logfile will tell you what the specific issue is
swarley has quit [Read error: Connection reset by peer]
arya has joined #ruby
morozovm has quit [Client Quit]
brianpWins has quit [Ping timeout: 260 seconds]
<ddd>
also if you want to just get it done and over with, you can nuke the existing 1.8.7 with rvm uninstall 1.8.7 && rm -rf $rvm_path/src/ruby-1.8.7-p371 && rvm install 1.8.7
mercwithamouth has quit [Ping timeout: 260 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
SCommette has joined #ruby
mikepack has quit [Remote host closed the connection]
tvw has quit [Remote host closed the connection]
<ddd>
the rm -rf line removes the extracted 1.8.7-p371 source that may or may not be already patched (probably is from your comment, and the patch is blowing up) without deleting any other sources OR the source archive file.
<superSlumbo>
ddd: i don't really have any need for 1.9.3 could i just uninstall that
<ddd>
sure
<ddd>
not connected to your issue though
<superSlumbo>
how would i do that (sorry if thats a stupid question I'm a noob)
swarley has joined #ruby
<superSlumbo>
ddd: but don't macs ship with 1.8.7
<ddd>
A) i would suggest you read the docs on https://rvm.io to get up to speed. rvm list will show installed versions then just rvm uninstall <ruby_version>
<danneu>
superSlumbo: rvm use system
mercwithamouth has joined #ruby
nwertman has quit [Ping timeout: 265 seconds]
<superSlumbo>
"# No rvm rubies installed yet."
<ddd>
B) If you want the ruby version from the system then run rvm use system. if you want to set that as a default then you can either rvm alias delete default && rvm use system —default or jus run the rvm use system —default
<superSlumbo>
ddd: which is weird bc when i ruby -v it says i have 1.9.3
<ddd>
err double dashes not single
<ddd>
type in: which ruby
<ddd>
what path does it show?
<superSlumbo>
"/usr/local/bin/ruby"
<ddd>
thats not RVM
<ddd>
you probably installed ruby via homebrew or macports then
<ddd>
RVM installs into $HOME/.rvm or /usr/local/rvm
<superSlumbo>
ddd: yeh i don't necessarily need to use rvm
<ddd>
ok, but you're asking about RVM ways :)
benlieb has joined #ruby
<superSlumbo>
ddd: haha ok sorry for the naiveté I'm suuuper new to this
<ddd>
np :)
<ddd>
it just reads a bit weird to me. sorry if i sound like i've a rude tone. not intended
fyolnish has joined #ruby
joeycarmello has quit [Remote host closed the connection]
<danneu>
i typically benchmark my code across rubinius, 2.0.0pre, 1.9.3, and jruby. but i added macruby to the mix and it's almost always the fastest for single thread computation
<superSlumbo>
no i didn't pick up any
SCommette has quit [Quit: SCommette]
<ddd>
that being said, RVM (should you decide to use it) has its own channel that is actively monitored. Its #rvm and I would definitely suggest that you read each part of the https://rvm.io site docs to get a better grasp on how to use RVM.
tehlulz has quit [Read error: Connection reset by peer]
<superSlumbo>
ddd: i think i need to use the one on my system, and maybe accidentally steered myself in the wrong way with rvm
<ddd>
RVM is a fairly large peice of software. its definitely NOT minimalistic.
<ddd>
thats fine. either ruby will work unless you're looking to use newer versions of most common frameworks, especially Rails.
<the_jeebster>
is redis mass insert different from the ruby redis library pipeline method?
<superSlumbo>
ddd: I'm just trying to access some problem sets that are in gems and when i include them in rvm it gives me errors bc I'm running 193
<ddd>
meaning that 1.8.7 is coming up on End Of Life (EOL) soon, and Rails 4 will no longer work with Ruby 1.8 so you know
tehlulz has joined #ruby
davidcelis has quit [Quit: K-Lined.]
jaap- has joined #ruby
<ddd>
i mean you do still have some time, it just would behoove you to look into migrating to 1.9.3
<superSlumbo>
ddd: oh i don't need to access rails
<ddd>
ok, that was just an example :)
Michael_ has quit [Remote host closed the connection]
TomRone has joined #ruby
<ddd>
there's new syntax, the spped of ruby itself have been drastically improved due to YARV etc
<ddd>
s/spped/speed/
mahmoudimus has joined #ruby
<superSlumbo>
ddd: is there a terminal command to like revert back to my old system copy of r 187
<ddd>
and Ruby 2.0 is just about to come out, so you're using whats now considered an ancient ruby version with 1.8 series. still usable, just will limit you going forward into the future is all
Michael_ has joined #ruby
<ddd>
you would have to figure out what installed that ruby version in /usr/local/bin which i surmise to be either homebrew or macports
<ddd>
for homebrew you would … gimme a sec to check something
<superSlumbo>
ddd: yeh I'm in a cs105 class and my prof is having us using that deprecated vets fer some reason
<superSlumbo>
ddd: alright thanks again for helping me
seanstickle has quit [Quit: seanstickle]
<ddd>
for homebrew do a: brew list and find the name of the ruby package that was installed. its' most likely just 'ruby', so you would brew uninstall ruby
R3dy has joined #ruby
havenn has joined #ruby
jaap- has quit [Ping timeout: 264 seconds]
<ddd>
once thats done then you should close your terminal session and start a fresh one. then run: which ruby which should point at /usr/bin/ruby which should return 'ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]' under Mountain Lion when you run: /usr/bin/ruby --version
<superSlumbo>
ok its unistalling
<ddd>
I don't remember what the Lion version is
tehlulz has quit [Quit: tehlulz]
maddog__ has quit [Ping timeout: 246 seconds]
mahmoudimus has quit [Ping timeout: 252 seconds]
maddog_ has joined #ruby
TomRone has quit [Ping timeout: 246 seconds]
<superSlumbo>
ddd: when i do "usr/bin/ruby --version" it says no such file or directory
carlyle has quit [Remote host closed the connection]
SCommette has joined #ruby
<havenn>
superSlumbo: If you can find Mountain Lion's Ruby.framework then you can reinstall system Ruby, but I don't know where to get it since do DVD anymore. >.>
<superSlumbo>
havenn: oh i have just plain ol lion
bjeanes has joined #ruby
<havenn>
superSlumbo: If you can find the Lion 'Ruby.framework' file then right-click on it and 'Install to Default Location'. Should work if you can find the file!
<havenn>
^ If you want to use Pacifist to extract the 'Ruby.framework' from DVD/Thumb-drive.
<havenn>
superSlumbo: I could upload my 'Ruby.framework'. It is Mountain Lion not Lion, but may work
jekotia has joined #ruby
<havenn>
Probably better to find a Lion one!
<superSlumbo>
lemme try to download this thing first but thanks
<ddd>
hrmm yeah I also just checked in brew and its not carrying a newer version of 1.8.7 for you
<ddd>
you can however install rvm, and then rvm install 1.8.7 and then rvm use 1.8.7 —default
<ddd>
double dash. (damn this client constantly shortening that on me)
<havenn>
or ruby-build and use chruby, rbfu, rbenv or ry to manage ruby versions
<ddd>
that will make 1.8.7-p371 your default. whenver you start a new shell session or call: rvm use default it will switch you to that
<ddd>
yes, yes. on'y reason i'm saying rvm is because it was what he mentioned originally
<havenn>
ddd: :P
<ddd>
don't worry, i'm not saying RVM is the only game in town
danshultz has quit [Ping timeout: 260 seconds]
<ddd>
and i *was* one of the devs, so yes, I'm partial. sue me :)
<havenn>
rvm2 looks pretty cool, though I haven't figured out how to actually install it >.>
<ddd>
I have had zero involvement with rvm2
<superSlumbo>
ddd: havenn ok so i downloaded ruby from that site and then tried rib and its working again
<havenn>
ddd: I love the work mpapis is doing with wycats, I look forward to Tokaido and static linked precompiled Ruby for OS X.
bricker has quit [Ping timeout: 265 seconds]
<havenn>
superSlumbo: Nice. :)
<superSlumbo>
but when i run it gives me the error error loading "/Users/stefan/.gem/ruby/1.8/gems/rubygems-test-0.4.3/lib/rubygems_plugin.rb": undefined method `post_build' for Gem:Module (NoMethodError)
freeayu has joined #ruby
<superSlumbo>
but it still gives me the ">>"
gabrielrotbart has quit [Remote host closed the connection]
<superSlumbo>
OH OH! even with the error I CAN STILL RUN MY THING!
<superSlumbo>
thanks guys!
<ddd>
what I do NOT want to see is a static zsh core, using SM to implement RVM's functions. There are too many devil-in-the-details differences between zsh and bash when you get down and dirty deep. Thats why I originally left the project because that was the goal. I'm against it and didn't want to work on furthering that direction for RVM. However, since then, I'm told its taking a different avenue, so we'll see.
_nitti has joined #ruby
<ddd>
right now I'm sticking with rvm1 until i see where rvm2 goes
PetePorty has quit [Remote host closed the connection]
nwertman has joined #ruby
r4um_ has quit [Ping timeout: 255 seconds]
love_color_text has quit [Remote host closed the connection]
<havenn>
ddd: Do you use zsh, bash or other?
<ddd>
bash
<ddd>
bash4
dorei has joined #ruby
superSlumbo has left #ruby [#ruby]
r4um has joined #ruby
<ddd>
i can work in zsh, I much prefer bash, its more likely to be found on systems than zsh is, it can be made to act exactly as sh does (sh-compat mode) to include POSIX standard compliance (—posix)
byennen has joined #ruby
vasile has joined #ruby
<ddd>
so i find several reasons to use bash over zsh even though zsh does extend the reach of shells quite a lot.
machty has quit [Quit: machty]
stkowski has quit [Quit: stkowski]
skattyadz has quit [Quit: skattyadz]
jaap- has joined #ruby
<the_jeebster>
can I create a temporary csv file both with Tempfile and CSV classes?
tomsthumb has quit [Quit: Leaving.]
_nitti has quit [Ping timeout: 260 seconds]
<havenn>
ddd: I use zsh locally and usually stick with bash on servers.
<havenn>
ddd: I like bash-it for bash. :) Ghetto oh-my-zsh!
bjeanes has joined #ruby
nwertman has quit [Ping timeout: 264 seconds]
gabrielrotbart has joined #ruby
<ddd>
hehe I just use bash with no augmentations like bash-it or OMZ. well, beyond a few custom bash functions in $HOME/.bash_functions that I write.
mahmoudimus has quit [Ping timeout: 246 seconds]
<ddd>
now my vim on the other hand is more than fairly tricked out :)
vasile has quit [Ping timeout: 250 seconds]
jaap- has quit [Ping timeout: 252 seconds]
havenn has quit [Remote host closed the connection]
Michael_ has quit [Remote host closed the connection]
dankest is now known as dankest|away
nonotza has joined #ruby
iamjarvo has joined #ruby
tjbiddle_ has joined #ruby
tjbiddle_ has quit [Client Quit]
Michael_ has joined #ruby
daniel_- has quit [Quit: WeeChat 0.3.9.2]
freeayu_ has joined #ruby
pu22l3r has joined #ruby
SCommette has quit [Quit: SCommette]
Michael_ has quit [Remote host closed the connection]
freeayu has quit [Read error: Connection reset by peer]
pu22l3r has quit [Remote host closed the connection]
dmiller_ has quit [Remote host closed the connection]
ikaros has quit [Quit: Ex-Chat]
dorei has quit [Read error: Connection reset by peer]
PolPot_ has joined #ruby
Michael_ has joined #ruby
PolPot_ is now known as dorei
tjbiddle has quit [Ping timeout: 246 seconds]
machty has joined #ruby
tjbiddle has joined #ruby
dankest|away is now known as dankest
tjbiddle has quit [Remote host closed the connection]
tjbiddle has joined #ruby
dankest has quit [Quit: Leaving...]
johnmilton has quit [Remote host closed the connection]
Michael_ has quit [Remote host closed the connection]
zooz has quit [Quit: Leaving IRC]
SCommette has joined #ruby
dmiller has joined #ruby
Michael_ has joined #ruby
Michael_ has quit [Remote host closed the connection]
gabrielrotbart has quit [Remote host closed the connection]
Michael_ has joined #ruby
jeffreybaird has joined #ruby
machty has quit [Quit: machty]
jtran has left #ruby [#ruby]
phantasm66 has joined #ruby
smw_ has quit [Read error: Connection reset by peer]
judd7 has quit [Ping timeout: 260 seconds]
SCommette has quit [Quit: SCommette]
judd7 has joined #ruby
thoolihan has joined #ruby
pasv has joined #ruby
<danneu>
how is it that head RSpec maintainer, lead JRuby implementer, Rubinius implementer, all have concerns about Refinements and nobody has vetted the necessity in production, yet we're getting Refinements in 2.0?
allanm__ has quit [Read error: Connection reset by peer]
dankest has joined #ruby
allanm__ has joined #ruby
<ddd>
because Matz wants it, so they're best-agreement'ing it at the moment it seems.
<ddd>
i consider that a fair balance. originator wants it in, others have a concern, it was being implemented, so a fairly limited version is being output..
LouisGB has quit [Ping timeout: 265 seconds]
<ddd>
at least it gives a working-though-crippled implementation baseline for both sides to meet across
ttt has joined #ruby
mikepack has quit [Ping timeout: 246 seconds]
judd7 has quit [Quit: judd7]
jarred__ has joined #ruby
<danneu>
Guess that's the point of that RubySpec RubyConf talk -- It's time we move beyond some 'originators' pet project.
xpen has joined #ruby
jarred_ has quit [Ping timeout: 244 seconds]
havenn has joined #ruby
jlwestsr has joined #ruby
thoolihan has quit [Ping timeout: 255 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
<ddd>
i think that was the gist of the argument being made :)
jaap- has joined #ruby
kdridi has joined #ruby
<kdridi>
hello
samphippen has joined #ruby
<kdridi>
i have a var that handles a block, how do i yield it after ?
samphippen has quit [Client Quit]
dankest has quit [Quit: Leaving...]
dankest has joined #ruby
byennen has quit [Remote host closed the connection]
ckrailo has quit [Quit: Computer has gone to sleep.]
jaap- has quit [Ping timeout: 255 seconds]
<havenn>
cirwin: I have no earthly clue. There are no conventions. Even gem loading and autoloading are reimplemented. Classes are loaded, fuck I can't even describe it.
<havenn>
The guy is obviously smart. But no tests or documentation on a hand-rolled stack is freaking me out. >.>
<havenn>
I'm committed to ten hours.
ewag has joined #ruby
jarred__ has quit [Quit: jarred__]
<havenn>
So far I've made a Gemfile (46 dependencies).
Shamgar has quit [Read error: Connection reset by peer]
nari has joined #ruby
<havenn>
Sorry, many many MTs... Sorry.
Virunga has joined #ruby
mikepack has joined #ruby
volty has joined #ruby
Michael_ has quit [Remote host closed the connection]
dankest has quit [Quit: Leaving...]
dukedave has joined #ruby
dankest has joined #ruby
jlwestsr has quit [Quit: Ex-Chat]
danshultz has joined #ruby
<volty>
hi, some nice lib to launch a given max processes (with system method) in parallel?
jaygen has quit [Remote host closed the connection]
alvaro_o has quit [Quit: Ex-Chat]
dankest has quit [Client Quit]
danshultz has quit [Ping timeout: 260 seconds]
jeffreybaird has quit [Quit: jeffreybaird]
i_s has quit [Quit: i_s]
<havenn>
volty: On MRI?
xAndy is now known as xandy
i_s has joined #ruby
<volty>
havenn: what's mri?
<havenn>
volty: What are you trying to do?
ryanlecompte has quit [Remote host closed the connection]
<ddd>
no rbx supports 1.9 and does so by default in the 2.x
<swarley>
MMMMMMMMMM that's delicious
<swarley>
It uses llvm right?
<ddd>
i *think* so. I don't use it personally
<volty>
but since i like to build commands from inside ruby (because of gathering files using Dir + masks) and launch them using system method, i was just asking if there's a simple standard way / lib
<ddd>
I switchhit between jruby and mri
<swarley>
I havn't used it in a while
Bootstrapper has quit [Remote host closed the connection]
<swarley>
imo, i just aim for a reasonable speed on MRI, and if I achieve it there, i feel confident it will be fine on other implementations generally
<ddd>
volty: you mean like %x[ls] ?
<havenn>
volty: If what you want is forked processes, Process.fork is in stdlib.
<volty>
thank you guys, you are great but never mind for now, it's too late, and i'm tired, my prob. is much simpler, i'll probably setup a queue and launch at most n processes from the queue (waiting for them to finish for the next to start) etc etc
<ddd>
oh did this extend out of dRuby?
<ddd>
(distributed ruby)
<havenn>
ddd: Nope, but DCell gives dRB a run for its money, and some! :)
Xeoncross has joined #ruby
<ddd>
you're giving me warm fuzzies here :)
<swarley>
I'm sure I would like dRB and friends more if i had a use for it
v0n has quit [Remote host closed the connection]
Brainix has quit [Quit: Brainix]
<havenn>
I just started playing with DCell at RubyConf, but it really is very cool. Check out Gist, DCell Explorer in the browser really is eye candy!
<ddd>
ok, my focus just got pushed in a different direction. hehe. thanks havenn :)
icole has quit [Remote host closed the connection]
<ddd>
thanks havenn, you definitely kicked me into a different direction. much obliged. off to read up
<havenn>
ddd: Happy hacking!
love_color_text has joined #ruby
Liothen has joined #ruby
Liothen has joined #ruby
Liothen has quit [Changing host]
<swarley>
Prepare for shenanigans
<swarley>
ruby -e "def ⏏; `eject`; end; ⏏"
<swarley>
My new favorite toy
dankest has joined #ruby
<swarley>
ejects my cdrom disc drive
jaap- has quit [Ping timeout: 265 seconds]
<swarley>
Works on unix :p
riley526 has quit [Remote host closed the connection]
<jrabbit>
swarley: how is that more useful than just eject
<danneu>
heh
<swarley>
jrabbit; it's not
<swarley>
but its fun to have
<jrabbit>
write a multiquine then :P
<swarley>
in pry I'm just running "⏏" right now
<volty>
swarley: today i read an article about curious split behavior that doesn't split 'one two' if that space inside is non breaking (#160) utf space, you can define one method using one 160-space and antoher one with two of them
<swarley>
Lol, don't even have a cd to put in
<danneu>
it's like ruby -e "`say hello`" on a mac
<swarley>
but i sure am running it!
<swarley>
volty; yeah, that's what made me want to do it
<danneu>
did yall know ruby could say hello?
<swarley>
OMG NO WAI
<swarley>
I mean, I COULD go through the long process of writing a C extension
<swarley>
or i could just use the system command and a funny symbol
cakehero has quit [Quit: Computer has gone to sleep.]
jaap- has joined #ruby
davidcelis has joined #ruby
nwertman has quit [Ping timeout: 260 seconds]
kdridi has quit [Ping timeout: 248 seconds]
rohit_ has joined #ruby
undersc0re97 has joined #ruby
arya has quit [Ping timeout: 244 seconds]
zaki has quit [Read error: Operation timed out]
jaap- has quit [Ping timeout: 255 seconds]
breefield has joined #ruby
tomsthumb has joined #ruby
Slivka has quit [Remote host closed the connection]
ryanlecompte has quit [Remote host closed the connection]
d2dchat has quit [Remote host closed the connection]
skaczor has quit [Remote host closed the connection]
jarred_ has joined #ruby
davidcelis has quit [Ping timeout: 244 seconds]
Slivka has joined #ruby
ttt has quit [Remote host closed the connection]
davidcelis has joined #ruby
robbyoconnor has joined #ruby
verbad has joined #ruby
ttt has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
lampe2 has quit [Ping timeout: 252 seconds]
zaki has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
BombStrike has joined #ruby
freakazoid0223 has quit [Quit: Leaving]
thecreators has quit [Quit: thecreators]
huoxito has quit [Quit: Leaving]
Trioke has quit [Read error: Operation timed out]
gabrielrotbart has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
abstrusenick has joined #ruby
zeromodulus has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
a_a_g has joined #ruby
tjbiddle has joined #ruby
breefield has quit [Quit: breefield]
danktamagachi has joined #ruby
c0rn has joined #ruby
phelps has quit [Read error: Operation timed out]
fred909 has quit [Ping timeout: 244 seconds]
haxrbyte has quit [Ping timeout: 255 seconds]
tbrock has joined #ruby
nignaztic has joined #ruby
rohit_ has quit [Ping timeout: 246 seconds]
jaap- has joined #ruby
joffery has joined #ruby
c0rn has quit [Client Quit]
chrxn_ has joined #ruby
ram2 has joined #ruby
jaap- has quit [Ping timeout: 248 seconds]
leonardorb has quit [Remote host closed the connection]
danktamagachi has quit [Ping timeout: 255 seconds]
chrxn has quit [Ping timeout: 252 seconds]
chrxn_ is now known as chrxn
blazes816 has quit [Quit: blazes816]
segv- has joined #ruby
joeycarmello has joined #ruby
ram2 has left #ruby [#ruby]
rohit has joined #ruby
verbad has quit []
R3dy has quit [Ping timeout: 256 seconds]
rtd has joined #ruby
ananthakumaran has joined #ruby
tbrock has quit [Quit: Computer has gone to sleep.]
rippa has joined #ruby
tommyvyo has joined #ruby
firefux has joined #ruby
burgestrand1 has joined #ruby
jrunning has quit [Ping timeout: 260 seconds]
firefux has left #ruby [#ruby]
Solnse has joined #ruby
burgestrand has quit [Ping timeout: 250 seconds]
love_color_text has quit [Remote host closed the connection]
nignaztic has quit [Ping timeout: 264 seconds]
burgestrand1 has quit [Ping timeout: 250 seconds]
kdridi__ has joined #ruby
brianpWins has joined #ruby
mahmoudimus has joined #ruby
abstrusenick has quit [Quit: abstrusenick]
kdridi_ has quit [Ping timeout: 264 seconds]
c0rn has joined #ruby
love_color_text has joined #ruby
nwertman has joined #ruby
arkiver has joined #ruby
areil has joined #ruby
love_color_text has quit [Ping timeout: 256 seconds]
key has joined #ruby
nwertman has quit [Ping timeout: 256 seconds]
<key>
when i type irb, i can do 2 + 3 and get 5 back, but i'm in a shell. is there any way i can run ruby from the command line?
<key>
oh, ruby probably
jaap- has joined #ruby
roadt_ has joined #ruby
tjbiddle_ has joined #ruby
<key>
hm
branon has joined #ruby
<key>
what switches should i pass to "ruby" to have it interpret what i pass in
<key>
like "./ruby 5.times {print "hello"}"
<key>
then it does it and exits
<key>
plz
undersc0re97 has quit [Ping timeout: 245 seconds]
slash_nick has quit [Ping timeout: 260 seconds]
nat2610 has joined #ruby
ryanlecompte has joined #ruby
jaap- has quit [Ping timeout: 255 seconds]
hackerdu_ has quit [Remote host closed the connection]
joofsh has quit [Remote host closed the connection]
tjbiddle has quit [Ping timeout: 265 seconds]
tjbiddle_ is now known as tjbiddle
chimkan_ has joined #ruby
undersc0re97 has joined #ruby
jenrzzz has joined #ruby
phelps has joined #ruby
phelps has quit [Changing host]
phelps has joined #ruby
jekotia has quit [Quit: sleeep]
c0rn has quit [Quit: Computer has gone to sleep.]
bigmac has joined #ruby
JohnBat26 has joined #ruby
<rohit>
key, try running ruby -h
jenrzzz has quit [Ping timeout: 244 seconds]
davidcelis has quit [Ping timeout: 255 seconds]
Proshot has joined #ruby
davidcelis has joined #ruby
nonotza has left #ruby [#ruby]
love_color_text has joined #ruby
Cicloid_ has quit [Remote host closed the connection]
mascool has joined #ruby
arkiver has quit [Ping timeout: 246 seconds]
swarley has quit [Ping timeout: 260 seconds]
awarner_ has joined #ruby
chimkan_ has quit [Quit: chimkan_]
swex_ has joined #ruby
swex has quit [Ping timeout: 246 seconds]
breefield has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
awarner has quit [Ping timeout: 246 seconds]
aces1up has quit []
jaap- has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
zzyybb has joined #ruby
burgestrand has joined #ruby
i_s has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
tommyvyo has joined #ruby
i_s has quit [Client Quit]
bluOxigen has joined #ruby
mrkris has joined #ruby
jaap- has quit [Ping timeout: 248 seconds]
kevinykchan has joined #ruby
moshee has quit [Remote host closed the connection]
codecop has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
ModusPwnens has joined #ruby
rohit has quit [Quit: Leaving]
<ModusPwnens>
So I'm learning ruby and I'm trying to write an rspec test for a method I have written. Here is that method: http://pastie.org/5433298. Here is my rspec test: http://pastie.org/5433281. However, for some reason, I am getting the following error: http://pastie.org/5433275. I've tried googling the error but I can't find anything that helps me. Does anyone have any insight into this?
yakko has quit [Remote host closed the connection]
<key>
is ruby dead?
<key>
2.0 was supposed to be out in 2005
<rking>
key: Hehe
<key>
no seriously
<rking>
key: Was it?
<key>
i love ruby, just been away for a few years
<key>
yeh
<rking>
I doubt that.
<rking>
Anyway, what's the rush? 1.9's chugging along fine.
<key>
2!!
<rking>
There are more important advancements in gems.
<key>
yea
F1skr has joined #ruby
<key>
?
<key>
what are the coolest gems?
leonardorb has joined #ruby
<rking>
There are new ones ones every day, and new versions of old ones every day
<rking>
But you know, rails, pry, etc.
<key>
how do you make a gem? like how do you hook into ruby or w/e?
<rking>
Little feature bumps in the gems that I use constantly make a bigger impact on me than a major version bump of Ruby itself
<rking>
Well, you can write any random glomp of code and put it in a foo.rb then use 'require' to pull it in
<key>
do you think the language is essentially 'done'? ie, no big changes coming to it
<key>
hmm
<key>
so a gem is just a .rb that you share withothers?
<rking>
But then once you get a nice abstraction cooked up, you just write a .gemspec, make a .gem from that, then 'gem push foo.gem'
c0rn has joined #ruby
<rking>
Yeah, there's a little more to it than that
<rking>
Like it's a tree, not just a single .rb
<key>
ah like a objc framework
rtd has quit [Quit: rtd]
<key>
it's a directory
<key>
same with a gem?
<rking>
And it can have binaries (scripts that get put into your shell's $PATH)
<key>
can you 'cd' into it?
<rking>
And then there's all the version deps
<rking>
Sure
<key>
ok wow
<rking>
It installs as a dir
<key>
sounds like the 'killer app' for ruby
<rking>
But yes, I'd say Ruby is a stable lang
<rking>
The next major improvements will be other languages entirely
<key>
rking: do you know what i can pass ruby so i can execute ruby code in command line arguments?
<rking>
But it's still in a sweet spot, where there are incremental improvements still to be done, and adoption seems pretty solid
<rking>
key: ruby -e 'p "hihi"'
<key>
Aha that's how you do it
<key>
ok my question is...
arkiver has joined #ruby
leonardorb has quit [Ping timeout: 255 seconds]
<rking>
key: But very quickly you'll want to just gem install pry-plus then start your Ruby tinkering by running pry from the shell
<key>
ruby that expects " " in it, how can ruby evaluate it since shells strip off " " from input ?
<key>
argv input
<rking>
In my example the shell doesn't touch the "s.
<rking>
Because shells hardly touch '…'s at all
nat2610 has quit [Quit: Leaving.]
<key>
oh hmmm
<rking>
In fact, you can't even do 'isn\'t' in shell. Hehe
<rking>
That's got to be this, believe it or not: 'isn'\''t'
pencilcheck has joined #ruby
_nitti has joined #ruby
<key>
you just saved the day
craigp has joined #ruby
<key>
i was seeing " " not get into my argv
<key>
but putting ' ' around it fixes it
<rking>
If you were in pry you wouldn't have to worry about it. ☺
<rking>
But yeah, you won't see me advocating against learning more shell stuff
<key>
what's pry
pen has quit [Ping timeout: 264 seconds]
<key>
is it common to require command line input to a program to surround " " (quotes) with ' ' (single quotes) ?
mahmoudimus has quit [Quit: Computer has gone to sleep.]
danktamagachi has joined #ruby
<rking>
key: gem install pry-plus
_nitti has quit [Ping timeout: 256 seconds]
<rking>
pry
ryanlecompte has quit [Remote host closed the connection]
<rking>
Just like that
<rking>
Then do stuff
<key>
what's it like?
<rking>
It reads the Ruby that you type in on a line, then it evaluates it right away, then prints the result, then loops back to the start.
<key>
how does that differ from irb?
<rking>
It differs like this
<rking>
irb and pry enter the ring
<rking>
irby is smashed into bits and barely still breathing
<rking>
pry shrugs and exits the ring
<rking>
But nah, it's like irb
mneorr has quit [Remote host closed the connection]
<rking>
Which, using irb to evaluate Ruby is going to be smoother than entering it in on the shell
<rking>
Especially if you're iffy on shell quoting rules
mahmoudimus has joined #ruby
JohnBat26 has quit [Ping timeout: 260 seconds]
jaap- has joined #ruby
JohnBat26 has joined #ruby
pencilcheck has quit [Read error: Connection reset by peer]
pen has joined #ruby
<key>
ok so i know irb
<key>
how is pry diff?
<cableray>
key: pry is a debugger basically.
<cableray>
but not exactly.
<key>
any kewl screen shots?
tjbiddle_ has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
tjbiddle_ has quit [Read error: Connection reset by peer]
tjbiddle__ has joined #ruby
bigmac has quit [Ping timeout: 248 seconds]
jaap- has quit [Ping timeout: 264 seconds]
cj3kim has joined #ruby
topek has joined #ruby
mrkris has quit [Quit: 'MURICA!]
ebouchut_ has joined #ruby
BrianJ has quit [Quit: Computer has gone to sleep.]
x82_nicole has quit [Quit: Computer has gone to sleep.]
<rking>
s = 'str'; if f(s.asdf) and s.is_a?(String)
<rking>
That will always blow up
<rking>
lemonsparrow: #1 is make it not blow up
<rking>
#2 is make this a method of the Setting object
ttt has joined #ruby
avelldiroll has joined #ruby
<shevy>
we need a theme song for ruby
<shevy>
which we can sing when we crush into pythonistas
EyesIsMine has quit [Ping timeout: 246 seconds]
<cableray>
"Python is Ruby's more sensible sister. She's elegant, classy, and sophisticated. She's perhaps too perfect. Most guys are like "dude, how can you not like Python!?". Sure, you like Python. You just consider her the boring version of the edgy and romantic Ruby."
<davidcelis>
python has too much whitespace
<davidcelis>
and too many colons
<rking>
We have the exact same amount of whitespace
<cableray>
exactly, she has to have everything just so.
<rking>
Actually more, because we need whitespace to float our needless 'end's
<davidcelis>
rking: python is 4 spaces
<davidcelis>
that's double ruby's
<rking>
Aha
emergion has joined #ruby
<rking>
You're right then
<rking>
Screw non-2 space indents
<davidcelis>
!^
<rking>
I wonder if there's a Ruby faction that goes 1-space
<davidcelis>
wait this is #ruby
<cableray>
davidcelis: it's actually whatever you want, but it all has to be the same.
<cableray>
and I think ends are required to have a normal syntax.
<shevy>
rking hmm dont think there are many 1-space indenters
<cableray>
although you could use another symbol.
<shevy>
python and ruby are in some ways very similar, but the philosophy is so different...
arya has quit [Ping timeout: 244 seconds]
<cableray>
the main thing that is better about ruby is blocks.
<shevy>
cableray, I'd wish there would be a way to make "ends" optional on a per .rb basis
ebouchut_ has quit [Quit: This computer has gone to sleep]
<cableray>
blocks rock.
<shevy>
yeah
emergion has quit [Client Quit]
akemrir has joined #ruby
<shevy>
they give a lot of extra flexibility
<cableray>
shevy: you mean enable syntactical whitespace?
<shevy>
cableray, yeah, optionally
<shevy>
for small .rb files with just one simple class, it could be nicer to read
<cableray>
and also I like being able to omit parens in arg lists.
jaap- has joined #ruby
chimkan_ has joined #ruby
<shevy>
yeah
<cableray>
that way methods can look like keywords.
<cableray>
also, python is more a method-calling system, whereas ruby is more message-passing.
rippa has quit [Ping timeout: 248 seconds]
c0rn has quit []
<cableray>
but basically those are the 4 big differences, otherwise it's mostly the same.
arya has joined #ruby
elkclone has joined #ruby
arya_ has quit [Ping timeout: 244 seconds]
mneorr has joined #ruby
jaap- has quit [Ping timeout: 260 seconds]
EyesIsMine has joined #ruby
pen has quit [Remote host closed the connection]
a_a_g has quit [Quit: Leaving.]
zommi has joined #ruby
answer_42 has quit [Ping timeout: 265 seconds]
JStoker has quit [Excess Flood]
danktamagachi has quit [Ping timeout: 260 seconds]
davidcelis has quit [Quit: K-Lined.]
Slivka has quit [Read error: Connection reset by peer]
Slivka has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
arya has quit [Ping timeout: 244 seconds]
Slivka has joined #ruby
ChampS666 has quit [Ping timeout: 264 seconds]
Slivka has quit [Read error: Connection reset by peer]
arya has joined #ruby
Slivka has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
Slivka has joined #ruby
Morkel has joined #ruby
_alejandro has joined #ruby
doritostains has quit [Quit: Leaving...]
Slivka has quit [Read error: Connection reset by peer]
chimkan_ has quit [Quit: chimkan_]
jarred_ has quit [Quit: jarred_]
vlad_starkov has joined #ruby
pen has joined #ruby
horrror has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
generalissimo has quit [Remote host closed the connection]
yeban_ has joined #ruby
icole has joined #ruby
maesbn has joined #ruby
kaichanvong_ has joined #ruby
mpereira has quit [Ping timeout: 250 seconds]
Taranis_ has joined #ruby
sweet_kid has quit [Ping timeout: 260 seconds]
verto|off has quit [Ping timeout: 260 seconds]
jaap- has joined #ruby
Y_Ichiro has quit [Quit: No Ping reply in 180 seconds.]
yeban has quit [Ping timeout: 260 seconds]
wunz_ has quit [Ping timeout: 260 seconds]
Schmidt has quit [Ping timeout: 260 seconds]
verto|off has joined #ruby
yeban_ is now known as yeban
wunz has joined #ruby
verto|off is now known as verto
elspeth has quit [Ping timeout: 260 seconds]
kjs has quit [Ping timeout: 260 seconds]
Taranis has quit [Ping timeout: 260 seconds]
dr_Poggs has quit [Ping timeout: 260 seconds]
kjs has joined #ruby
elspeth has joined #ruby
Schmidt has joined #ruby
verto is now known as Guest30420
Jelco_ has joined #ruby
Y_Ichiro has joined #ruby
kaichanvong has quit [Ping timeout: 260 seconds]
drPoggs has joined #ruby
chussenot has joined #ruby
craigp has quit [Quit: craigp]
carlzulauf has quit [Ping timeout: 250 seconds]
carlzulauf has joined #ruby
sandstrom has joined #ruby
sandstrom has quit [Changing host]
sandstrom has joined #ruby
ctwiz has joined #ruby
jaap- has quit [Ping timeout: 248 seconds]
ryanlecompte has joined #ruby
dangerousdave has joined #ruby
Upasna has joined #ruby
mpereira has joined #ruby
cableray has quit [Quit: cableray]
aharris6 has quit [Remote host closed the connection]
danneu has quit [Ping timeout: 256 seconds]
mneorr has quit [Remote host closed the connection]
arya has quit [Ping timeout: 244 seconds]
ryanlecompte has quit [Ping timeout: 250 seconds]
cableray has joined #ruby
ctwiz is now known as dpg
_bart has quit [Quit: _bart]
Targen has joined #ruby
mercwithamouth has quit [Ping timeout: 250 seconds]
JStoker has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Mon_Ouie has quit [Ping timeout: 246 seconds]
ChampS666 has joined #ruby
L1 has quit [Remote host closed the connection]
arya has joined #ruby
Morkel_ has joined #ruby
jaap- has joined #ruby
jimeh has joined #ruby
Morkel has quit [Ping timeout: 260 seconds]
Morkel_ is now known as Morkel
eka has joined #ruby
stephenjudkins has joined #ruby
<evelyette>
hi, can somebody help me understand what does the following code do: http://dpaste.com/839302/ ... what is the '*' when passed to to_html function?
<canton7>
evelyette, it's called the splat operator. foo(a, b, c) == foo(*[a, b, c])
<evelyette>
canton7: aha cool
ly- has joined #ruby
<evelyette>
canton7: btw: where do the *rules come from if I'm calling the function with object.to_html ... and not object.to_html([rule1, rule2, ..., rulen]) ?
<canton7>
then rules is an empty array
noxoc has joined #ruby
<evelyette>
canton7: and what is the to() function in the apply_rules?
<evelyette>
canton7: aha cool :)
chendo_ has quit [Ping timeout: 252 seconds]
<canton7>
to() is another function defined internally by redcloth, presumably
<canton7>
def foo(a, b, c) is equivalent to def foo(*args); a, b, c = args
chussenot has quit [Quit: chussenot]
<tagrudev>
in this case rules will be an array
<evelyette>
yup, I got that
<evelyette>
hm, I'm grepping throught the source code of redcloth and there's no to function: grep "def to" /usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/RedCloth-4.2.9/ -r
hotovson has joined #ruby
<evelyette>
ok, I guess it's defined .c: /redcloth_scan.c:redcloth_to(self, formatter)
chendo_ has joined #ruby
<canton7>
seems sensible
<burgestrand>
evelyette: there are *many* ways to define a method.
chussenot has joined #ruby
jds_ has joined #ruby
aganov has joined #ruby
byennen has quit [Remote host closed the connection]
<evelyette>
I'm trying to figure out which function gets called first in html.rb when calling to_html ... http://dpaste.com/839308/
<evelyette>
hi, has anybody used redcloth before ... I would like to add get the usual text and add something to it. Any ideas how to do that? Currently I can parse tables/images/etc, but not text only?
nwertman has quit [Ping timeout: 256 seconds]
ExxKA has quit [Quit: This computer has gone to sleep]
skattyadz has joined #ruby
xAndy is now known as xandy
blaxter has joined #ruby
shorne has joined #ruby
icole has quit [Ping timeout: 264 seconds]
xandy is now known as xAndy
fyolnish has joined #ruby
Targen has quit [Ping timeout: 260 seconds]
Stalebread has joined #ruby
ddd has quit [Quit: Leaving.]
nkts__ has joined #ruby
rakunHo has quit [Remote host closed the connection]
alup has quit [Read error: Connection reset by peer]
mneorr has quit [Remote host closed the connection]
alup has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
freeayu_ has quit [Ping timeout: 264 seconds]
cousine has joined #ruby
topek has quit [Quit: Leaving.]
rohit has joined #ruby
topek has joined #ruby
byennen has joined #ruby
ikaros has joined #ruby
Marius is now known as nkts
Shrink has quit [Ping timeout: 255 seconds]
nkts has quit [Disconnected by services]
nkts__ is now known as nkts
nkts has quit [Changing host]
nkts has joined #ruby
zommi has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
larissa has joined #ruby
strg has joined #ruby
freeayu has joined #ruby
schaary has joined #ruby
Spami has joined #ruby
Stalebread has quit [Quit: Leaving]
adeponte has quit [Remote host closed the connection]
byennen has quit [Ping timeout: 260 seconds]
Marius has joined #ruby
Marius has quit [Max SendQ exceeded]
banisterfiend has joined #ruby
Marius has joined #ruby
whitedawg has joined #ruby
wallerdev has quit [Quit: wallerdev]
Takehiro has joined #ruby
Shrink has joined #ruby
hoelzro is now known as hoelzro|away
danneu has joined #ruby
Solnse has quit [Ping timeout: 256 seconds]
Spami has quit [Ping timeout: 256 seconds]
elkclone has quit [Quit: It's never too late to unplug and run.]
danneu has quit [Read error: Operation timed out]
Michael_ has joined #ruby
<zaargy>
so i have a project in let's say foo and i have a script foo/bin/something to start the daemon and i want that script to have access to teh files in foo/lib/
<zaargy>
when i look at projects on github i see they just require foo without doing anything witht he rubypath explicitly
<zaargy>
but this isn't working for me?
beiter has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
ranjan has joined #ruby
leonard__ has quit [Read error: Connection reset by peer]
<ranjan>
hi all when i am trying to install fulcrum i get the following error when running rake db:migrate (cannot load such file -- sqlite3/sqlite3_native)
leonardorb has joined #ruby
<ranjan>
any help
tobinharris has quit [Quit: tobinharris]
vlad_sta_ has joined #ruby
tobinharris has joined #ruby
ToTo has joined #ruby
OJR has joined #ruby
OJR has left #ruby [#ruby]
vlad_starkov has quit [Ping timeout: 260 seconds]
<mntzn>
ranjan: is sqlite3 gem installed?
<ranjan>
mntzn, yes
alienven1m has quit [Ping timeout: 252 seconds]
<ranjan>
mntzn, sqlite3 and sqlite3-ruby is installed
mikecmpbll has joined #ruby
banisterfiend has quit [Remote host closed the connection]
nkts has quit [Ping timeout: 246 seconds]
<mntzn>
I'd check if it's in your path or if it even exists in the first place
Marius is now known as nkts
bluehavana has quit [Ping timeout: 246 seconds]
cousine has quit [Remote host closed the connection]
carloslopes has joined #ruby
Takehiro has quit [Remote host closed the connection]
byennen has joined #ruby
Michael_ has quit [Remote host closed the connection]
Iszak_ has quit []
jamesaxl has quit [Ping timeout: 246 seconds]
Michael_ has joined #ruby
arya has quit [Ping timeout: 244 seconds]
pcboy_ has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
byennen has quit [Ping timeout: 256 seconds]
pcboy_ has joined #ruby
chussenot has quit [Quit: chussenot]
pcboy_ has quit [Read error: Connection reset by peer]
Marius has joined #ruby
lkba has quit [Ping timeout: 244 seconds]
arya has joined #ruby
hoelzro|away is now known as hoelzro
Michael_ has quit [Remote host closed the connection]
undersc0re97 has quit [Quit: Leaving]
pcboy_ has joined #ruby
tvw has quit [Ping timeout: 246 seconds]
Jefus has joined #ruby
zaargy has left #ruby [#ruby]
arturaz has quit [Read error: Connection reset by peer]
Michael_ has joined #ruby
arturaz has joined #ruby
Michael_ has quit [Remote host closed the connection]
bluehavana has joined #ruby
danshultz has quit [Remote host closed the connection]
undersc0re97 has joined #ruby
[Neurotic] has quit [Remote host closed the connection]
bier has quit [Ping timeout: 246 seconds]
bier_ has quit [Ping timeout: 265 seconds]
lemonsparrow has quit [Quit: Page closed]
thoolihan has joined #ruby
beiter has quit [Ping timeout: 255 seconds]
Taranis_ has quit [Read error: Connection reset by peer]
allanm_ has joined #ruby
samphippen has joined #ruby
allanm__ has quit [Read error: Connection reset by peer]
tommyvyo has quit [Ping timeout: 246 seconds]
tommyvyo has joined #ruby
pcarrier has joined #ruby
dr_bob has quit [Read error: Connection reset by peer]
Nanuq has quit [Ping timeout: 246 seconds]
dr_bob has joined #ruby
Nanuq has joined #ruby
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
bier has joined #ruby
Taranis has joined #ruby
bier_ has joined #ruby
pcarrier has quit []
Averna has joined #ruby
danshultz has joined #ruby
kdridi__ has quit [Quit: This computer has gone to sleep]
sandstrom has quit [Quit: sandstrom]
beiter has joined #ruby
rohit has quit [Quit: Leaving]
lkba has joined #ruby
Emmanuel_Chanel has joined #ruby
gbchaosmaster has quit [Ping timeout: 255 seconds]
ToTo has quit [Quit: Leaving...]
hemanth has quit [Ping timeout: 246 seconds]
toto_ has joined #ruby
postmodern has quit [Ping timeout: 246 seconds]
hemanth has joined #ruby
postmodern has joined #ruby
InFlames has quit [Ping timeout: 246 seconds]
InFlames has joined #ruby
jonasac has quit [Quit: Coyote finally caught me]
Spami has quit [Quit: This computer has gone to sleep]
timonv has quit [Ping timeout: 252 seconds]
niklasb has joined #ruby
danshultz has quit [Remote host closed the connection]
Squarepy has joined #ruby
Squarepy has quit [Changing host]
Squarepy has joined #ruby
morf has quit [Quit: eof]
mame0 has joined #ruby
skattyadz has quit [Quit: skattyadz]
levabalkin has quit [Quit: leaving]
browndawg has left #ruby [#ruby]
cmarques has joined #ruby
nwertman has joined #ruby
Takehiro has joined #ruby
cascalheira has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
toto_ has quit [Quit: Leaving...]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
timonv has joined #ruby
<sheerun>
Give me one reason to use proc instead of lambda. I know the general difference between them.
haxrbyte_ has quit [Read error: Connection reset by peer]
pyx has quit [Quit: WeeChat 0.3.9.2]
mark_locklear has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
browndawg has joined #ruby
whitedawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
_bart has joined #ruby
Jefus has quit [Ping timeout: 260 seconds]
aces1up has joined #ruby
<sheerun>
on the other hand l = lambda { 666 }; n.times { l } works as expected and runs as fast (measured by benchmark). so the question is back
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
<aces1up>
hello I have some code that seems to be spawning threads.. I was wondering can I monkey patch Thread.new to do some caller logging to find where all my threads are starting from to track this down?
nomenkun has quit [Remote host closed the connection]
<sheerun>
and in proc case the method invocation can lead to unexpected results (non-local return as banisterfiend mentioned)
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
nomenkun has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
berserkr has quit [Quit: Leaving.]
pcarrier has quit [Ping timeout: 244 seconds]
rohit has quit [Quit: Leaving]
Guest3576 has joined #ruby
Guest3576 has quit [Remote host closed the connection]
ABK has joined #ruby
jamesaxl has quit [Ping timeout: 255 seconds]
pcarrier has joined #ruby
sailias has joined #ruby
jamesaxl has joined #ruby
nomenkun_ has joined #ruby
soko has joined #ruby
nomenkun has quit [Ping timeout: 260 seconds]
<soko>
Is there a way to install a gem from a git repository on the command line? I can't see to find any info on this…
<CannedCorn>
if i put something in with <%= %> it should just replace that part not the entire line right?
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
<cek>
thanks to jetbrains who correct all shit leaking from rubycore team
<cek>
but yet this is happening on servers, i don't want to mess with their custom patches
flip_digits has joined #ruby
rippa has quit [Ping timeout: 250 seconds]
<cek>
why do we have so many debug gems, can't you agree on interface or make a meetup and not talk about bullshit but about real deal. Look at Java, how stable it is.
<cek>
i was forced to jump out of 187 because all the hipsters said 192 is better. now 193 is stable and i can't find usable debug tools
EyesIsServer has quit [Remote host closed the connection]
<banisterfiend>
cek: because you're an idiot.
<banisterfiend>
cek: the 'debugger' gem has been advertised for ages as a replacement for ruby-debug
<aces1up>
how would I open Thread and ovverride Thread.new to create loggin info?
<cek>
where are the ops, people harassing me
ananthakumaran has quit [Quit: Leaving.]
Rydefalk has joined #ruby
Targen has joined #ruby
<centipedefarmer>
lol hipsters
<banisterfiend>
cek: who's harassing you? and have you looked at the 'debugger' gem?
<cek>
banisterfiend, no, you're an idiot because you can't read
<banisterfiend>
cek: you said you can't find usable debug tools -- what's unusable about debugger or pry ?
<cek>
i read ruby book and there wasn't any mention of debugger gem
<banisterfiend>
cek: because it's a new gem, but it was heavily advertised for about a year
<banisterfiend>
cek: there's also 'pry' as well which you probably wont find mentinoed in a book, but it's well known
<ninegrid>
im trying to mockup some infinite scrolling using will_paginate over an array (to avoid actually creating a model and populating the database...) so, this works until i scroll to the bottom then im throwing 500 errors that the Fixnums in my array are not ActiveModel-compatible objects that return a valid partial path... what would be a quick work around to this?
<banisterfiend>
cek: it seems it's just you who doesnt' know these things
<ninegrid>
the thing is, the intial page load pulls the correct number of per_page items from the array and renders them correctly with the partial, I can also visit page urls directly, ie ?page=20 and this works too... its just that when my javascript tries to fetch the next page that i hit this error
<cek>
so put a big red block on main page of language docs so everyone sees that
<cek>
and remove ruby-debug* clones from official repos
<cek>
let hipsters use their custom repos for non-official stuff
<centipedefarmer>
cek didn't see all the talk about debugger & pry on blogs and stuff, they dont have internet where he lives
schaary has quit [Quit: Leaving.]
ToTo has joined #ruby
<Xeago>
cek, nobody is stopping you from implementing a jdb for ruby
<Xeago>
so you can have your nice step by step and breakpoint marking stuff
<cek>
I'll be flipping bits in my CPU, wait a bit.
samphippen has joined #ruby
<banisterfiend>
cek: this is the programming industry, things change all the time, you have to keep abreast, if you can't keep up to date then go become a carpenter or something
jrist-afk is now known as jrist
<CannedCorn>
banisterfiend, there are new types of wood coming out almost daily
<Xeago>
banisterfiend: you perhaps use pass, from zx2c4?
<cek>
well looking at average salary, that aint that bad idea either
<cek>
you know what. I think I have a solution for this. You just make using ruby cost you something. Want access to official gem repo? $50k. Want to submit a patch to ruby core? $100k/year.
<cek>
that way we can keep hipsters out of core processes
* lupine
snuggles rubydoc.info
<centipedefarmer>
1.8's phase-out has been official for many moons now
jerius has joined #ruby
<lupine>
lots of people aren't budging, though
browndawg has joined #ruby
<lupine>
including my work, for now, unfortunately
<lupine>
*So many* legacy projects
<centipedefarmer>
yeah i know, and many linux distros too
<centipedefarmer>
it sucks
<centipedefarmer>
but it's been announced well beyond the hipsters
Uranio has joined #ruby
<CannedCorn>
wait guys
<CannedCorn>
so...
<CannedCorn>
erb
<lupine>
I think if it were a major version number change, you'd have more luck
<CannedCorn>
its pretty tight amirite?
<lupine>
the psychological effect would be stronger
<centipedefarmer>
i agree
browndawg has quit [Client Quit]
<lupine>
*shrug*. ruby versioning is screwy anyway
<centipedefarmer>
i think 1.9 is different enough that calling it 2.0 would have been totally fine
browndawg has joined #ruby
_nitti has joined #ruby
<lupine>
valid-syntax source files in 1.8 are not always valid syntax in 1.9, so it definitely should have been the case
<centipedefarmer>
it was pretty much a reimplementation, at least the mri version wasn't it?
<lupine>
but it's no biggie, we'll live
shadowme has joined #ruby
<centipedefarmer>
yeah
<lupine>
work won't be putting together *new* projects on 1.8, we just don't have the time or inclination to migrate old ones to 1.9
<lupine>
and it'll probably stay like that until the first major security issue
<centipedefarmer>
i've found it's already getting difficult to maintain 1.8 stuff though
shadowme has quit [Client Quit]
<lupine>
it can't be as difficult as my jruby 1.5.1 project ^^
<centipedefarmer>
haha true probably not
<lupine>
we should migrate that to 1.7 Soon
mikecmpbll has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
g-ram has joined #ruby
whitedawg has quit [Quit: Leaving.]
<mntzn>
I have a small hash, say {qwe => 'asd'} and a def which takes the same hash in json (normally I do has.to_json) but in this case I want avoid temp variable
<mntzn>
is this possible ? something like {}.to_json?
<Xeago>
yup
<mntzn>
just do like {}.to_json?
<lupine>
arguments to functions are expressions
<lupine>
kind of
<Xeago>
a={k=>v};a.to_json is the same as {k=>v}.to_josn
Elhu has quit [Ping timeout: 246 seconds]
<CannedCorn>
guys so I've got the following in an erb template: ========================
<CannedCorn>
<%= @basic['company'] %>
<CannedCorn>
========================
<CannedCorn>
and it won't render with the newline in between the first bars
LucidDreamZzZ has quit [Remote host closed the connection]
<mntzn>
oh my god, it works
<mntzn>
thanks
<mntzn>
ruby is awesome
davidcelis has quit [Quit: K-Lined.]
_bart has joined #ruby
Elhu has joined #ruby
linoj has joined #ruby
roadt_ has quit [Ping timeout: 260 seconds]
sterNiX has joined #ruby
LucidDreamZzZ has joined #ruby
CamonZ has joined #ruby
_bart has left #ruby [#ruby]
ltsstar has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 256 seconds]
tobinharris has joined #ruby
moshee has quit [Ping timeout: 256 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
jharris has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
GoGoGarrett has joined #ruby
pcarrier has quit []
pcarrier has joined #ruby
sailias has joined #ruby
Iszak_ has joined #ruby
jrunning has joined #ruby
jgarvey has joined #ruby
pcarrier has quit [Ping timeout: 244 seconds]
mercwithamouth has joined #ruby
iamjarvo_ has joined #ruby
pcarrier has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
centipedefarmer has joined #ruby
matrixise has quit [Ping timeout: 255 seconds]
dmerrick has joined #ruby
<cek>
speaking of debugger, where are the docs again?
<allr>
when using "::", it creates some kind of dependencies that it must be declared somewhere before I require the specific file, hence the module Entities; end
tobinharris has joined #ruby
bluOxigen has joined #ruby
skum has joined #ruby
generalissimo has joined #ruby
noxoc has quit [Quit: noxoc]
skum has quit [Remote host closed the connection]
skum has joined #ruby
Vainoharhainen has quit [Read error: Connection reset by peer]
stopbit has joined #ruby
mikepack has joined #ruby
Taranis has quit [Read error: Connection reset by peer]
BigO has joined #ruby
chimkan_ has joined #ruby
freeayu has quit [Remote host closed the connection]
<apeiros_>
allr: I prefer single namespace per nesting level
pu22l3r has joined #ruby
<apeiros_>
i.e., I never use `class Foo::Bar` or `module Foo::Bar`
ABK has quit [Ping timeout: 256 seconds]
<apeiros_>
I always use `module Foo; class Bar; …`
<apeiros_>
if by "this" you mean the part where it says "The later will give an error if Library isn't yet defined ", then yes
pcarrier has quit []
<allr>
yes
<allr>
sorry, wasnt clear
<apeiros_>
also I get clean errors if I ever mess up with class vs. module
byennen has joined #ruby
<allr>
apeiros_: so for defining, you never use "::"
<apeiros_>
correct
Vainoharhainen has joined #ruby
<allr>
apeiros_: but fore include or extend, you must use it to traverse to the correct module I suppose
<apeiros_>
yes
<apeiros_>
for lookup, I do use ::
<allr>
is there any other legitimate use of the "::" ?
<apeiros_>
you said it quite correctly when you confined it to "for defining"
<apeiros_>
for lookup, :: is perfectly fine
<allr>
Alright
<allr>
My code is a bit weird currently because of that I think, I have to require files in specific class order otherwise I get undefined errors
<allr>
:/
Taranis has joined #ruby
DarthGandalf has quit [Ping timeout: 244 seconds]
<allr>
I cannot simply require all of them at the top because otherwise some classes wouldnt be defined
Vainoharhainen has quit [Remote host closed the connection]
Vainoharhainen has joined #ruby
<allr>
apeiros_: Should this be avoided? Like it does not make sense that files cannot be required at the top of the file because it uses different classes or modules that arent yet defined
skum has quit [Ping timeout: 252 seconds]
iaj has quit [Ping timeout: 252 seconds]
<apeiros_>
I think it is ok if internal files require a load order
v0n has joined #ruby
<apeiros_>
there should be a hub file which users of your lib can require which loads everything so they don't have to bother
jerius has quit [Ping timeout: 248 seconds]
ExxKA has joined #ruby
carloslopes has joined #ruby
<allr>
So I should create a "hub file" instead of taking each file seperatly and require each file it needs at the top
<apeiros_>
generally, if you have a library called "foo", you have a top-level module name Foo, and a lib/foo.rb
tobinharris has quit [Quit: tobinharris]
<apeiros_>
users of your foo lib will just `require 'foo'` and have all they need.
<apeiros_>
you map constants to files, that is, Foo::BarBaz becomes lib/foo/barbaz.rb, and is required by `require 'foo/barbaz'`
theRoUS has quit [Quit: Leaving]
<apeiros_>
each file requires all its own dependencies
<apeiros_>
this almost always avoids having to care about order
burgestrand has quit [Quit: Leaving.]
m4rtijn has joined #ruby
<m4rtijn>
hi
danielfarrell has quit [Quit: danielfarrell]
<m4rtijn>
I found some example code which uses assert_nil and assert_instance_of .. i did : require 'test/unit/assertions'
<m4rtijn>
but its not working.. what am i forgetting?
<m4rtijn>
ruby 1.9.3
ToTo has quit [Quit: Leaving...]
iaj has joined #ruby
ToTo has joined #ruby
<m4rtijn>
fridays.. ey
<m4rtijn>
:P
DarthGandalf has joined #ruby
babykosh has joined #ruby
reinaldob has joined #ruby
niklasb has joined #ruby
<m4rtijn>
and with.. not working i mean: undefined method assert_nil error
bbttxu has joined #ruby
jlast has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<allr>
apeiros_: thanks for your time :)
BadLarry has quit [Quit: quitting]
joshman_ has joined #ruby
tagrudev has quit [Quit: awesomeness]
danneu has joined #ruby
carloslopes has quit [Ping timeout: 260 seconds]
lolmaus has joined #ruby
TheFuzzball has quit [Ping timeout: 256 seconds]
pcarrier has joined #ruby
judd7 has joined #ruby
BadLarry has joined #ruby
judd7 has quit [Client Quit]
Monie has joined #ruby
TheFuzzball has joined #ruby
mikepack has quit [Remote host closed the connection]
babykosh has left #ruby [#ruby]
xclite has joined #ruby
nonotza has joined #ruby
<apeiros_>
allr: yw
pcarrier has quit [Ping timeout: 244 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
pcarrier has joined #ruby
niklasb has quit [Read error: Connection reset by peer]
mwmnj has joined #ruby
apeiros_ has quit [Remote host closed the connection]
vise890 has joined #ruby
vise890 has left #ruby [#ruby]
niklasb has joined #ruby
akemrir has quit [Ping timeout: 255 seconds]
allr has quit [Ping timeout: 245 seconds]
nomenkun_ has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
awarner_ has quit [Remote host closed the connection]
flip_digits has quit [Read error: Connection reset by peer]
nemesit has joined #ruby
bjeanes has joined #ruby
<m4rtijn>
anyone knows what im missing?
sterNiX has quit [Ping timeout: 265 seconds]
<m4rtijn>
isnt the test/unit/assertions part of 1.9.3 core?
mntzn has quit [Quit: Lost terminal]
rumba has quit [Remote host closed the connection]
tobinharris has joined #ruby
mpereira has quit [Ping timeout: 260 seconds]
v0n has quit [Ping timeout: 246 seconds]
awarner has joined #ruby
whitedawg has joined #ruby
browndawg has left #ruby [#ruby]
whitedawg has left #ruby [#ruby]
whitedawg has joined #ruby
cakehero has joined #ruby
x82_nicole has joined #ruby
adeponte has joined #ruby
<m4rtijn>
ah
<m4rtijn>
include Test::Unit::Assertions
<rking>
m4rtijn: Why aren't you inheriting from Test::Unit::TestCase ?
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
dmiller has quit [Ping timeout: 255 seconds]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
<m4rtijn>
could do so as well...
xyzodiac has joined #ruby
<m4rtijn>
thx
nwertman has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
mpereira has joined #ruby
browndawg has joined #ruby
ThaDick has joined #ruby
chimkan_ has quit [Quit: chimkan_]
weasels has joined #ruby
havenn has joined #ruby
rippa has joined #ruby
iamjarvo_ has quit [Quit: Computer has gone to sleep.]
rtd has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
bwlang has joined #ruby
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
nwertman has quit [Ping timeout: 246 seconds]
mpereira has quit [Ping timeout: 252 seconds]
mpereira has joined #ruby
havenn has quit [Read error: Connection reset by peer]
ner0x has joined #ruby
havenn has joined #ruby
darthdeus has joined #ruby
krz has joined #ruby
SCommette has joined #ruby
v0n has joined #ruby
Spaceboy has quit [Ping timeout: 276 seconds]
lolmaus has quit []
_nitti has quit [Remote host closed the connection]
chimkan has joined #ruby
TechZombie has joined #ruby
jrunning1 has joined #ruby
larissa has quit [Ping timeout: 246 seconds]
_nitti has joined #ruby
samphippen has joined #ruby
philcrissman has joined #ruby
machty has joined #ruby
mpereira has quit [Ping timeout: 260 seconds]
jrunning has quit [Ping timeout: 265 seconds]
timmow has quit [Quit: is having a nap]
iamjarvo_ has joined #ruby
mwmnj has quit [Quit: Page closed]
haxrbyte has quit [Ping timeout: 246 seconds]
m4rtijn has quit [Remote host closed the connection]
tomsthumb has joined #ruby
twopoint718 has joined #ruby
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
dmiller has joined #ruby
huoxito has joined #ruby
byennen has quit [Remote host closed the connection]
apeiros_ has joined #ruby
nateberkopec has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
mikepack has joined #ruby
philcrissman has quit [Remote host closed the connection]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
senj has quit [Ping timeout: 246 seconds]
ToTo has quit [Read error: Connection reset by peer]
xsbeats has quit [Ping timeout: 264 seconds]
Guest24042 is now known as Jackneill
berserkr has joined #ruby
Jackneill has quit [Changing host]
Jackneill has joined #ruby
moshee has quit [Ping timeout: 256 seconds]
moshee has joined #ruby
mpereira has quit [Ping timeout: 248 seconds]
majak has joined #ruby
banisterfiend has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
lampe2 has joined #ruby
fff has joined #ruby
<fff>
hi
LucidDreamZzZ has quit [Ping timeout: 276 seconds]
alvaro_o has joined #ruby
nanderoo has quit [Ping timeout: 255 seconds]
dmiller has quit [Remote host closed the connection]
LucidDreamZzZ has joined #ruby
slainer68 has joined #ruby
Neomex has joined #ruby
joeycarmello has joined #ruby
fff has left #ruby [#ruby]
dukedave has joined #ruby
dmiller has joined #ruby
Slivka has joined #ruby
alee has joined #ruby
jlwestsr has quit [Ping timeout: 246 seconds]
libryder has quit [Ping timeout: 246 seconds]
dpn` has quit [Ping timeout: 246 seconds]
libryder has joined #ruby
jtcoon has quit [Ping timeout: 246 seconds]
arusso has quit [Ping timeout: 246 seconds]
jlwestsr has joined #ruby
arusso has joined #ruby
Schmidt has quit [Ping timeout: 246 seconds]
<libryder>
..
<libryder>
..
petershepley has quit [Ping timeout: 246 seconds]
bluehavana has quit [Ping timeout: 246 seconds]
libryder has left #ruby [#ruby]
slash_nick has joined #ruby
dr_bob has quit [Read error: Connection reset by peer]
dr_bob has joined #ruby
Muz has quit [Ping timeout: 246 seconds]
petershepley has joined #ruby
bluehavana has joined #ruby
jrajav has quit [Ping timeout: 246 seconds]
xyzodiac has joined #ruby
Muz has joined #ruby
arusso has quit [Changing host]
arusso has joined #ruby
dpn` has joined #ruby
jtcoon has joined #ruby
adeponte has joined #ruby
jlwestsr has quit [Quit: Ex-Chat]
zmo_ has quit [Quit: Leaving]
nanderoo has joined #ruby
longjohngold has joined #ruby
ThaDick has quit [Quit: zzzZZZ ...]
<longjohngold>
Hi. I'm looking to read some decent Ruby code. The problem is at lot of famous Ruby stuff is a library, a framework, or systems. Are there any small but perfectly formed and idiomatic applications written in Ruby that I can study?
mercwithamouth has quit [Quit: Lost terminal]
whitedawg has joined #ruby
ThaDick has joined #ruby
heftig has joined #ruby
Elico has quit [Ping timeout: 265 seconds]
Virunga has joined #ruby
<longjohngold>
I should clarify, I mean command-line user applications, not servers.
<GeekOnCoffee>
longjohngold: what is your opposition to it being a library?
<havenn>
I think he wants an app with a bin/ folder (he updated his query to 'command-line app'
<havenn>
a gem*
error_code has joined #ruby
<longjohngold>
GeekOnCoffee: i'm looking for something that's self contained, so including a user binary, including a man page, including all that stuff to make it an app, rather than isolated code
thecreators has joined #ruby
Xeago has quit [Remote host closed the connection]
chrisramon has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
<CamonZ>
longjohngold: what's the diff? what are you expecting to see in a self-contained ruby app?
<havenn>
longjohngold: All a gem needs to be a command-line app is a bin/ folder with a file in it named after the gem that usually points at lib/. Trivial example: https://github.com/Havenwood/found
dangerousdave has joined #ruby
<havenn>
longjohngold: I can't think of a gem off-hand with man page support.
ltsstar has joined #ruby
<longjohngold>
what do people do to package up their apps for things like debian? you don't use gem to install them, you use dpkg
<CamonZ>
on ruby we use gems
keyvan has quit [Remote host closed the connection]
<havenn>
RubyGems' `gem` has a man page. But hardly a small readable project. >.>
<shevy>
longjohngold debian does the packaging on their own
<havenn>
longjohngold: If you want to package for Debian you make an apt-get package. For OS X a Brew, for RedHat Yum, etc. etc. Gems work on all those platforms.
eldariof has joined #ruby
Paradox has quit [Ping timeout: 245 seconds]
Mon_Ouie has joined #ruby
<shevy>
debian does stupid things too such as crippling mkmf, so that require 'mkmf' no longer works
dmiller has quit [Remote host closed the connection]
<longjohngold>
found is the king of thing i was looking for, thanks
vlad_starkov has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
samphippen has joined #ruby
acoyfellow has joined #ruby
Paradox has joined #ruby
Electrical has joined #ruby
lolcathost has joined #ruby
longjohngold has quit [Quit: Page closed]
icooba has quit [Quit: Computer has gone to sleep.]
<Electrical>
hi all. got a bit strange question.. i need to convert a hash into a string representation of that hash ( so same structure and everything but then as a string ) is this possible?
littleproblem has joined #ruby
<havenn>
Electrical: Hash#to_s will turn a Hash into a String. Do you need to be able to turn it back into a Hash?
<havenn>
Electrical: If so, serialize it with Marshal, YAML, JSON, or another serializer.
<littleproblem>
hi. i did "brew install ruby" and then "gem install myapp". I can't find the myapp binary. where is it likely to have gone?
moted has joined #ruby
<Electrical>
havenn: don't need to covert it back. i need that hash representation for a config file.
<havenn>
littleproblem: Type: which myapp
robustus has joined #ruby
<littleproblem>
havenn: have done, as it say, can't find it in my path, but the brew installed gem and ruby are
hemanth has quit [Read error: Connection reset by peer]
<havenn>
Electrical: Marshal isn't human readable (well it is I suppose if you reallly try) so I'd use JSON or YAML.
answer_42 has quit [Ping timeout: 246 seconds]
<havenn>
littleproblem: Ahhh, gotcha.
answer_42 has joined #ruby
hemanth has joined #ruby
r0f0 has joined #ruby
<littleproblem>
do you know where it is supposed to have gone?
jackdanger has joined #ruby
<littleproblem>
the docs say the same place as the gem binary, but not there
Storm3y has joined #ruby
<Electrical>
havenn: i don't completely get it .. ( its also puppet related btw ) i give into puppet a hash but want to write out that hash as it is to a file.
r0f0 has quit [Quit: Leaving]
ryanlecompte has joined #ruby
rakl has joined #ruby
reinaldob has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<shevy>
I had the old symlink to ruby 1.8.7 damn it :(
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
<atmosx>
in this example I see the *e -> [*e].each {|f| res << f }
<atmosx>
what is the diff between e and *e ?
ananthakumaran has quit [Quit: Leaving.]
binarypl1 has quit [Quit: WeeChat 0.3.9.2]
a_a_g has quit [Quit: Leaving.]
pmros has quit [Ping timeout: 260 seconds]
mneorr has joined #ruby
ltsstar1 has joined #ruby
twopoint718 has quit [Ping timeout: 260 seconds]
iamvery has joined #ruby
mikepack_ has joined #ruby
ebouchut_ has joined #ruby
mand_ has joined #ruby
Targen_ has joined #ruby
<mand_>
Hi
Zai00 has quit [Quit: Zai00]
vasile has joined #ruby
ebouchut_ has quit [Client Quit]
nonotza has quit [Quit: nonotza]
tomask has quit [Quit: Išeinu]
<mand_>
I have about 50 XML configuration files in my project and they share 95 % the same content & structure and I'd somehow like to generate them from a common template and only store the differences per file. What would be a good approach for that?
<mand_>
Using some templating engine or rather use XML includes?
dankest has quit [*.net *.split]
Whackatre has quit [*.net *.split]
ThaDick has quit [*.net *.split]
ltsstar has quit [*.net *.split]
berserkr has quit [*.net *.split]
arusso has quit [*.net *.split]
slash_nick has quit [*.net *.split]
bjeanes has quit [*.net *.split]
mikepack has quit [*.net *.split]
huoxito has quit [*.net *.split]
philcrissman has quit [*.net *.split]
ner0x has quit [*.net *.split]
arietis has quit [*.net *.split]
awarner has quit [*.net *.split]
v0n has quit [*.net *.split]
sepp2k has quit [*.net *.split]
CannedCorn has quit [*.net *.split]
linoj has quit [*.net *.split]
generalissimo has quit [*.net *.split]
GoGoGarrett has quit [*.net *.split]
mark_locklear has quit [*.net *.split]
Targen has quit [*.net *.split]
dmerrick has quit [*.net *.split]
eka has quit [*.net *.split]
combataircrat has quit [*.net *.split]
robotmay has quit [*.net *.split]
Nanuq has quit [*.net *.split]
radic has quit [*.net *.split]
hadees has quit [*.net *.split]
leonardorb has quit [*.net *.split]
F1skr has quit [*.net *.split]
Goopyo has quit [*.net *.split]
dobbymoodge has quit [*.net *.split]
naztyone has quit [*.net *.split]
seich- has quit [*.net *.split]
garndt has quit [*.net *.split]
chendo_ is now known as chendo
ner0x has joined #ruby
tomsthumb1 has joined #ruby
pu22l3r has quit [Remote host closed the connection]
jrist is now known as jrist-afk
iamvery has quit [Remote host closed the connection]
jlast has joined #ruby
arietis has joined #ruby
blacktul_ has joined #ruby
<havenn>
atmosx: If e is already an Array, it will flatten it (not sure it that is the use in code you pasted?): https://gist.github.com/4177710
joeycarm_ has joined #ruby
blazes816_ has joined #ruby
arya has quit [Ping timeout: 244 seconds]
niklasb_ has quit [Ping timeout: 248 seconds]
jharris has joined #ruby
Morkel_ has joined #ruby
jsaak_ has joined #ruby
chendo is now known as 31NACHSS2
theoros_ has joined #ruby
theoros_ has quit [Changing host]
theoros_ has joined #ruby
pen has joined #ruby
bjeanes has joined #ruby
naztyone has joined #ruby
dankest has joined #ruby
arusso has joined #ruby
awarner has joined #ruby
slash_nick has joined #ruby
huoxito has joined #ruby
v0n has joined #ruby
berserkr has joined #ruby
linoj has joined #ruby
mark_locklear has joined #ruby
Whackatre has joined #ruby
GoGoGarrett has joined #ruby
ThaDick has joined #ruby
sepp2k has joined #ruby
Nanuq has joined #ruby
CannedCorn has joined #ruby
leonardorb has joined #ruby
dmerrick has joined #ruby
combataircrat has joined #ruby
radic has joined #ruby
robotmay has joined #ruby
F1skr has joined #ruby
dobbymoodge has joined #ruby
hadees has joined #ruby
garndt has joined #ruby
eka has joined #ruby
seich- has joined #ruby
Goopyo has joined #ruby
dmerrick has quit [Quit: dmerrick]
arusso has quit [Changing host]
arusso has joined #ruby
Muz_ has joined #ruby
Schmidt has joined #ruby
dmerrick has joined #ruby
<Paradox>
banisterfield or Mon_ouie here?
bricker has joined #ruby
cableray has joined #ruby
ebouchut_ has joined #ruby
gridaphobe has joined #ruby
Muz has quit [Write error: Connection reset by peer]
tomsthumb has quit [Write error: Connection reset by peer]
sonne has quit [Read error: Connection reset by peer]
theoros has quit [Read error: Connection reset by peer]
thomasfedb has quit [Read error: Connection reset by peer]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
jeffreybaird has quit [Read error: Connection reset by peer]
jeffreybaird_ has joined #ruby
jeffreybaird_ is now known as jeffreybaird
havenn has quit [Ping timeout: 255 seconds]
Takehiro has joined #ruby
LouisGB has quit [Ping timeout: 252 seconds]
Storm3y has left #ruby [#ruby]
whitedawg has joined #ruby
shevy has quit [Ping timeout: 264 seconds]
Uranio has quit [Quit: WeeChat 0.3.8]
browndawg has left #ruby [#ruby]
Mon_Ouie has quit [Quit: WeeChat 0.3.9.2]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
bricker is now known as _bricker
slash_nick is now known as slash_me
_bricker is now known as bricker
tvw has quit [Read error: Connection reset by peer]
akl has quit [Quit: Lost terminal]
C0deMaver1ck has joined #ruby
bricker is now known as ZZZZZZZZ
Virunga has quit [Remote host closed the connection]
ZZZZZZZZ is now known as bricker
fred909 has quit [Ping timeout: 260 seconds]
akl has joined #ruby
ImSexyandIknowit has quit [Quit: афк]
elaptics is now known as elaptics`away
mahmoudimus has joined #ruby
piccalingo has joined #ruby
ebobby has joined #ruby
FredLe1 has joined #ruby
Takehiro has quit [Ping timeout: 244 seconds]
F1skr has quit [Quit: WeeChat 0.3.9.2]
FredLe has quit [Read error: Operation timed out]
dawkirst_ has joined #ruby
ebouchut_ has joined #ruby
ebouchut_ has quit [Client Quit]
otters has quit [Quit: WeeChat 0.3.9.1]
<dawkirst_>
hello, I'm trying to use FileUtils.move(dir,dir) on Windows machine, and I'm getting a Errno::EACCES error because of the permissions. I've tried changing the owner of the dir to the user running the ruby script, no cigar. Any ideas?
otters has joined #ruby
burgestrand has joined #ruby
whitedawg has quit [Quit: Leaving.]
davidcelis has quit [Quit: K-Lined.]
ThaDick has quit [Quit: I'm outta here!]
carlyle has quit [Remote host closed the connection]
mahmoudimus has quit [Read error: Connection reset by peer]
mahmoudi_ has joined #ruby
mikepack_ has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
wereHamster has quit [Ping timeout: 246 seconds]
rezzack has joined #ruby
pmros has joined #ruby
<shevy>
atmosx whatch working on right now?
wereHamster has joined #ruby
dankest has quit [Quit: Leaving...]
twopoint718 has quit [Ping timeout: 250 seconds]
<atmosx>
right now, I'm writing from scratch a ruby script that will tweet my latest blog post. I have written a couple of programs that deal with twitter so this should be mostly c/paste
<atmosx>
*but* I'm also working on a greek words database, which (I hope) could be a larger collaborative project.
<banisterfiend>
atmosx: you're greek?
<atmosx>
you?
<banisterfiend>
no
swarley has quit [Read error: Operation timed out]
thecreators has quit [Quit: thecreators]
jlast has joined #ruby
<cek>
why aren't you greek?
<banisterfiend>
cek: get me a beer
<atmosx>
banisterfiend: yes
mikepack has joined #ruby
skattyadz has quit [Quit: skattyadz]
<atmosx>
banisterfiend: why you care?
<cek>
decided then. you're greek.
wereHamster has quit [Remote host closed the connection]
ChampS666 has joined #ruby
carlyle has joined #ruby
<banisterfiend>
atmosx: i dont particularly care..
<banisterfiend>
:)
wereHamster has joined #ruby
<slash_me>
dumb question. is class Klass; class SubKlass; end; end; equivalent to class SubKlass < Klass;end
<banisterfiend>
slash_me: no
<slash_me>
thanks
<atmosx>
banisterfiend: I'm straight.
* atmosx
just saying
<banisterfiend>
atmosx: right...i'll have to remember in future that curiosity about someone's ethnicity is equivalent to a homosexual advance ;0
Morkel_ has joined #ruby
BoomCow has joined #ruby
Morkel has quit [Read error: Operation timed out]
Morkel_ is now known as Morkel
benlieb has quit [Quit: benlieb]
gridaphobe has quit [Ping timeout: 264 seconds]
Monie has joined #ruby
xsbeats_ is now known as xsbeat
xsbeat is now known as xsbeats
centipedefarmer has joined #ruby
Monie has quit [Client Quit]
Shamgar has quit [Ping timeout: 255 seconds]
dawkirst_ has quit [Quit: Page closed]
<cek>
what's wrong about being gay?
piccalingo has quit [Remote host closed the connection]
Shamgar has joined #ruby
cek has left #ruby [#ruby]
<shevy>
atmosx what kind of blog posts? evil wordpress?
williamcotton has joined #ruby
kil0byte has joined #ruby
<shevy>
hmmmm what would be nice would be one central tool of blogging, which converts and feeds this data into static remote websites, twitter, and other announcement places
kaichanvong_ has quit [Read error: Connection reset by peer]
kapowaz has quit [Read error: Connection reset by peer]
kaichanvong_ has joined #ruby
rcs has joined #ruby
kapowaz has joined #ruby
pmros has quit [Ping timeout: 260 seconds]
SegFaultAX has quit [Ping timeout: 245 seconds]
jds_ has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 255 seconds]
chrisramon has joined #ruby
SegFaultAX has joined #ruby
nanderoo has quit [Quit: Leaving.]
Paradox| has quit [Client Quit]
korishev has joined #ruby
stnly has joined #ruby
futurechimp has joined #ruby
SwooshyCueb has quit [Read error: Operation timed out]
SwooshyCueb has joined #ruby
punkrawkR^Home has joined #ruby
danneu has joined #ruby
d2dchat has joined #ruby
wereHamster has quit [Changing host]
wereHamster has joined #ruby
bigmcq77 has quit [Quit: Computer has gone to sleep.]
SegFaultAX has quit [Ping timeout: 245 seconds]
Hien has quit [Ping timeout: 260 seconds]
SegFaultAX has joined #ruby
Hien has joined #ruby
Axsuul has joined #ruby
dankest has joined #ruby
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
jlogsdon has quit [Read error: Operation timed out]
Wasila has quit [Quit: Page closed]
dankest has quit [Client Quit]
lesnik_ has quit [Ping timeout: 256 seconds]
Goles has quit [Remote host closed the connection]
Shamgar has quit [Read error: No route to host]
rippa has quit [Ping timeout: 265 seconds]
jlogsdon has joined #ruby
jlogsdon has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
jlogsdon has joined #ruby
ctwiz has joined #ruby
jekotia has joined #ruby
sepp2k has quit [Ping timeout: 246 seconds]
sailias has quit [Quit: Leaving.]
<korishev>
hello all! Does anyone have documentation on the binary format used by MRI's Marshal? I've looked all over with the googles, but I can't find any.
fred909 has quit [Ping timeout: 260 seconds]
fred909 has joined #ruby
_nitti has quit [Remote host closed the connection]
Shamgar has joined #ruby
mikepack has quit [Remote host closed the connection]
<ner0x>
heftig: Next issue. "McDaniel Fire Systems","Steve Ellis "Doc"","61822","+1 217-359-0018","+1 217-359-8050","","","Fire Protection"
<ner0x>
Stupid "Steve Ellis "Doc"" that it outputs.
<heftig>
ner0x: your data isn't quoted properly, it seems
<heftig>
so it's not proper CSV
rtl has left #ruby [#ruby]
rtl has joined #ruby
<ner0x>
heftig: Right, any workarounds?
<heftig>
fix the errors manually?
<ner0x>
heftig: This is something that's going to be done a lot of times. :-/
mand_ has joined #ruby
<heftig>
complain to whoever or whatever created that file
chrisramon has quit [Ping timeout: 260 seconds]
<shevy>
hehe
<shevy>
no
<shevy>
kill whoever created that file
aharris6 has joined #ruby
<ner0x>
I would if I could.
<shevy>
:) that's the spirit!
centipedefarmer has quit [Remote host closed the connection]
<ner0x>
I've sent emails to our contact that soft the company the software.
<ner0x>
It's not really one of it's "major functions" so there was no need to do things properly.
aharris6 has quit [Remote host closed the connection]
<ner0x>
At least ""Doc"" so it works. Or something.
<ner0x>
If there a way for me to catch the error and fix it that way?
c0rn has quit [Quit: Computer has gone to sleep.]
<ner0x>
Gotta run. I'll be back in 45 or so.
ner0x has quit [Quit: Leaving]
benlieb has quit [Quit: benlieb]
benlieb has joined #ruby
Virunga has quit [Remote host closed the connection]
headius has quit [Quit: headius]
Virunga has joined #ruby
centipedefarmer has joined #ruby
BigO has quit [Remote host closed the connection]
forced_request has joined #ruby
mmitchell has quit [Remote host closed the connection]
slash_me is now known as slash_nick
BigO has joined #ruby
freakazoid0223 has joined #ruby
havenn has quit [Remote host closed the connection]
Guest86332 has joined #ruby
love_color_text has quit [Remote host closed the connection]
Juul has joined #ruby
doritostains has quit [Quit: Leaving...]
myonebuddy has quit [Ping timeout: 255 seconds]
danshultz has quit [Remote host closed the connection]
<afgeneralist>
Hello all. Is anyone here willing to mentor someone remotely? even for just a short crash course: either tonight or something this weekend (interested for long term as well).
David_Miller has joined #ruby
<cableray>
I might be, afgeneralist, tell me more.
<David_Miller>
a = Hash.new( [] ); a[:i] << 'v'; a.inspect
<David_Miller>
=> "{}"
<David_Miller>
a[:i]
<David_Miller>
=> ["v"]
<David_Miller>
why did a[:i] not show up in inspect?
slainer68 has joined #ruby
<David_Miller>
a.keys is an empty list too
aharris6 has joined #ruby
<afgeneralist>
@cableray: I just PM'd you
<afgeneralist>
all - how signal that I want to respond to a particular person the way cableray did to me?
<David_Miller>
but a[:i] dereferences to something
ffranz has quit [Quit: Leaving]
<David_Miller>
:/
soyapi has joined #ruby
emptyflask has quit [Remote host closed the connection]
linoj has quit [Quit: linoj]
soyapi has quit [Client Quit]
<blazes816>
afgeneralist: just add the username to the message and they'll be notified
soyapi has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
blacktul_ has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Computer has gone to sleep.]
kuzushi has quit [Ping timeout: 260 seconds]
bier has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
x82_nicole has joined #ruby
bier has joined #ruby
Xeago has joined #ruby
mand_ has quit [Quit: Leaving]
Juul has joined #ruby
xsbeats has quit [Ping timeout: 256 seconds]
mkillebrew has quit [Ping timeout: 256 seconds]
nobuoka has quit [Ping timeout: 256 seconds]
solidoodlesuppor has quit [Remote host closed the connection]
jharris has quit [Quit: WeeChat 0.3.8]
mkillebrew has joined #ruby
xnm has quit [Ping timeout: 260 seconds]
<David_Miller>
yes that is what I wanted, thanks blazes816
<blazes816>
np
bbttxu has quit [Quit: bbttxu]
c0rn has joined #ruby
andre____ has joined #ruby
pothibo has quit [Quit: pothibo]
berserkr has quit [Quit: Leaving.]
<swarley>
wait what
jrist is now known as jrist-afk
alanp has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
<swarley>
oh
FredLe1 has quit [Quit: Leaving.]
axl_ has quit [Read error: Connection reset by peer]
slash_nick is now known as slash_me
BigO has quit [Remote host closed the connection]
rjmt__ has quit [Ping timeout: 255 seconds]
macabre has quit [Remote host closed the connection]
GitNick has quit [Ping timeout: 244 seconds]
<swarley>
Hash.new([]) might work as well
kirun has quit [Quit: Client exiting]
tommyvyo has joined #ruby
<David_Miller>
tried that, you get an array that is the default for all un assigned keys
pyx has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
bwlang has left #ruby [#ruby]
<swarley>
ah, yeah you're right
joshman_ has quit [Quit: Computer has gone to sleep.]
<swarley>
I suppose dynamic generation is the only way
bricker has quit [Ping timeout: 260 seconds]
leonardo_ has quit [Remote host closed the connection]
pcarrier has joined #ruby
kuzushi has joined #ruby
<swarley>
Too bad it doesnt do self.default.dup or something
jeffreybaird has quit [Quit: jeffreybaird]
chimkan has quit [Quit: chimkan]
<swarley>
But then again functionality may not require that
<swarley>
You may just want to use your own constant
<swarley>
Foo::UNDEFINED
havenn has joined #ruby
seydar has joined #ruby
baphled has quit [Ping timeout: 252 seconds]
AxonetBE has quit [Quit: Leaving.]
davidcelis has quit [Quit: K-Lined.]
tbrock has quit [Ping timeout: 246 seconds]
jds_ has joined #ruby
pdelgallego has joined #ruby
Michae___ has joined #ruby
cascalheira has joined #ruby
tbrock has joined #ruby
arturaz_ has quit [Remote host closed the connection]
aharris6 has quit [Remote host closed the connection]
Michae___ has quit [Read error: Connection reset by peer]
<shevy>
I need the perfect ruby style
jimeh has quit [Read error: Connection reset by peer]
ephemerian has quit [Quit: Leaving.]
jimeh_ has joined #ruby
ikaros has quit [Quit: Ex-Chat]
Michae___ has joined #ruby
<seydar>
shevy: i want to see a linter that reformats your code for style error
<seydar>
s
GitNick has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
<shevy>
hmm
<shevy>
I think I follow most of the ruby style guides out there
skaczor has quit [Remote host closed the connection]
twopoint718 has quit [Ping timeout: 256 seconds]
<shevy>
but I feel as if it is not SIMPLE enough
<seydar>
do you have specific complaints or is it just a gut feeling thus far?
c0rn has quit [Quit: Computer has gone to sleep.]
<seydar>
both are equally legitimate
ikaros has joined #ruby
arya has joined #ruby
<shevy>
well, the thing is - I am rewriting a project right now
nesoi has joined #ruby
<shevy>
it has about ... 20 different classes... 10 different yaml files, some documentation files... and a bit non-class helper .rb files
<shevy>
so let's say 50 files in total
<shevy>
with this rewrite, I want to start from zero again :\
<nesoi>
hello... I'm using net/smtp and I'm wondering what happens if there's an error
lampe2 has joined #ruby
<nesoi>
will it crash, or just continue without saying anything
<nesoi>
?
<shevy>
so that I can think what I need and what not. if I would just refactor, I cant get my brain active enough to really think... I always run into "omg, what is this shit here" complexity
<nesoi>
I want to make sure it's really sending the messages every time
<burgestrand>
nesoi: why don’t you test it?
lenovodroid has joined #ruby
<burgestrand>
should probably have some automated tests too
benlieb has quit [Quit: benlieb]
soyapi has quit [Ping timeout: 260 seconds]
<nesoi>
burgestrand : when I test it, it works, but I don't know what happens if the server times out or fails in some other way
<burgestrand>
nesoi: I’m suggesting you should test the edge cases too
<nesoi>
I'd have to simulate the server responses, and I'm not sure how to do that
<seydar>
shevy: what's the project?
<shevy>
seydar the "unix pipes in ruby", I call it masterpipe
<seydar>
LINK MEEEEEE
stopbit has quit [Quit: Leaving]
<shevy>
I am rewriting it completely right now!!!
<seydar>
DONT CARE
<burgestrand>
nesoi: apart from that I don’t really know how net/smtp behaves when things go awry
jlast has quit [Remote host closed the connection]
<nesoi>
burgestrand : see? That's my issue. I was hoping to find out rather than have to build a spoofed mailserver
ner0x has joined #ruby
lenovodroid has quit [Read error: Connection reset by peer]