apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p327: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
slainer68 has quit [Ping timeout: 255 seconds]
<charliesome> so basically you need to iterate through a hash, and do something with key value pairs? :p
<danneu> zooz: did you not read
<slash_nick> Array.new(10).fill( -> { rand(6) }).map(&:call) # it was about to move out of my buffer and i don't want it to yet ;)
<seanstickle> zooz: there aren't duplicate keys
<seanstickle> zooz: it's like testing an integer for the letter "a"
<seanstickle> Aint gonna happen
g-ram has joined #ruby
v0n has joined #ruby
<charliesome> >> a = {}; a.compare_by_identity; a["foo"] = 1; a["foo"] = 2; p a
R3dy has joined #ruby
<eval-in> charliesome: Output: "{\"foo\"=>1, \"foo\"=>2}\n" (http://eval.in/4075)
<gbchaosmaster> zooz: hash.keys.uniq != hash.keys.size
<gbchaosmaster> zooz: a.k.a.
<gbchaosmaster> zooz: false
Virunga has quit [Remote host closed the connection]
Grieg has quit [Quit: laterz! :D]
k610 has quit [Ping timeout: 256 seconds]
<danneu> slash_nick: haha
<zooz> gbchaosmaster, great, that's exactly what I need. Thank you
pyr0commie has quit [Client Quit]
<slash_nick> danneu: how is that saving cycles?...
marsam has joined #ruby
<the_jeebster> does anyone know how to delete a redis set with the redis ruby client? can't seem to find it in the docs
gyre007 has joined #ruby
<charliesome> the_jeebster: redis.del "key_name"
<charliesome> the_jeebster: http://redis.io/commands/del
<danneu> slash_nick: it was a joke. as in, you can wait until last possible second to send :call message to an element in that array
kirun has quit [Quit: Client exiting]
cakehero has joined #ruby
chussenot has quit [Quit: chussenot]
<the_jeebster> charliesome: thanks. didn't know it was the same redis command!
Russell^^ has quit [Quit: Russell^^]
brianpWins has quit [Remote host closed the connection]
<slash_nick> gotcha danneu, that makes sense...
brianpWins has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
jaap- has joined #ruby
<charliesome> gtg
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
_bart has quit [Quit: _bart]
gyre007 has quit [Ping timeout: 248 seconds]
slash_nick has quit [Quit: Lost terminal]
<danneu> slash_nick: https://gist.github.com/4172808
<danneu> darn
x82_nicole has quit [Quit: Computer has gone to sleep.]
TomRone_ has joined #ruby
jaap- has quit [Ping timeout: 252 seconds]
ChampS666 has quit [Ping timeout: 250 seconds]
moted has quit [Ping timeout: 246 seconds]
<shevy> sleepy people
<shevy> everywhere
<shevy> so sleeeeepy
<shevy> even matz sleeps
mahmoudimus has joined #ruby
hotovson_ has quit [Remote host closed the connection]
Hanmac has quit [Quit: Leaving.]
machty has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
smw_ has joined #ruby
nemesit has quit [Quit: Leaving...]
sailias has joined #ruby
hotovson has joined #ruby
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> uninitialized constant Gem::UserInteraction
<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> is there an easy way to find duplicate entries inside a yaml file?
<rismoney1> trying to write an rspec
<gbchaosmaster> rismoney1: Comparing a #uniq to a #count might help you out.
<hsbt> jtran: No :) if you use rake-10 or 9 later, i think it's causes to happened problem.
mahmoudimus has joined #ruby
<jtran> hsbt: ya, i updated rake for kicks still same thing
elaptics is now known as elaptics`away
BombStrike has quit [Ping timeout: 246 seconds]
<jtran> hsbt: any other ideas? i see this on ruby forge but still gem search user_interaction --remote no go even tho i've added ruby forge to my sources.http://rubygems.rubyforge.org/rubygems-update/Gem/UserInteraction.html
<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
<superSlumbo> Error running 'patch -F 25 -p1 -N -f -i /Users/stefan/.rvm/patches/ruby/1.8.7/stdout-rouge-fix.patch', please read /Users/stefan/.rvm/log/ruby-1.8.7-p371/patch.apply.stdout-rouge-fix.log
<superSlumbo> anyone know whats wrong here?
<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
mahmoudimus has joined #ruby
banister_ has joined #ruby
dmiller_ has joined #ruby
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
adeponte has quit [Remote host closed the connection]
<ddd> you forgot the starting /
<superSlumbo> doh!
dmiller has quit [Read error: Operation timed out]
<superSlumbo> ok now it says ruby 1.8.7 (2011-12-28 patchlevel 357) [universal-darwin11.0]
<superSlumbo> curious… now when i try IRB it gives me a command not found
tyfighter has quit [Quit: tyfighter]
<ddd> type: irb
<ddd> not IRB
rakunHo has joined #ruby
bjeanes has quit [Ping timeout: 246 seconds]
<superSlumbo> ddd: hmm it still doesn't work
ephemerian has quit [Quit: Leaving.]
carlyle has joined #ruby
<ddd> can't help you there. it should be at /usr/bin/irb
<gbchaosmaster> superSlumbo: How did you install?
<superSlumbo> uh oh
<ddd> if not then your local ruby install is goofed. short of reinstalling the OS I don't know how you would rebuild the *system* ruby
<havenn> superSlumbo: Can you switch to Ruby 1.9.3?
<superSlumbo> ddd: uh oh thats no good
<superSlumbo> havenn: no i have to use 1.8.7 for this project
mikepack has joined #ruby
<ddd> i don't think Apple offers their coupled ruby as a standalone installable package
<ddd> havenn: he's trying to get back to the system installed ruby. he's already removed the homebrew installed 1.9.3 version
<havenn> ddd: I showed up late! gotcha.
danshultz has joined #ruby
<ddd> the system installed version on OS X Lion and Mountain Lion are 1.8.7-p#{some_patchlevel}
LouisGB has joined #ruby
TomRone has joined #ruby
<ddd> havenn: hehe no probs :)
sepp2k1 has quit [Remote host closed the connection]
<superSlumbo> hmmm well i guess ill try to reinstall ruby from this site http://rubyforge.org/frs/?group_id=3344
bigmac has joined #ruby
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> superSlumbo: http://www.charlessoft.com/
Lemtzas is now known as LemDies
<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]
bjeanes has quit [Quit: quitting]
<havenn> superSlumbo: I dunno. Maybe try updating RubyGems: gem update --system
<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]
Michael_ has joined #ruby
<volty> havenn: i've alread done with parallel from moreutils (kubuntu)
<ddd> MRI is Matz's Ruby Implementation. Its the original 'strain' of ruby. (now we have ironruby, jruby, rubinious, mruby, etc)
<volty> done this: parallel -i avconv -i {} -b 80k pref-{}.mp3 -- xy*.mp3
cableray has quit [Quit: cableray]
<swarley> mmm rubinius
rakl has quit [Quit: sleeping]
<ddd> volty: just by way of explanation
<swarley> If only it was 1.9
<swarley> Last i recall it was 1.8
<swarley> So I may be wrong
<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.
<havenn> volty: Channels between forks: https://github.com/robgleeson/ichannel
<ddd> like IPC?
<volty> ddd: yes, but to take into account the number of cores (or max that i can assign)
<ddd> ahh yeah
<havenn> ddd: yup
jenrzzz has joined #ruby
<ddd> nice
<havenn> volty: Use Celluloid, problem solved: http://celluloid.io/
xandy is now known as xAndy
<havenn> ddd: I built a naive Futures implementation on IChannel called IFuture :P: https://github.com/Havenwood/ifuture
<ddd> sad to admit it, but i don't know what Futures are
<ddd> ahh backgrounded computations
<havenn> ddd: I first heard about them from Celluloid, I've never done any Erlang: https://github.com/celluloid/celluloid
<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]
<havenn> Oops, forgot the Gist: https://gist.github.com/4009037
<volty> what about drb (or else) via dbus ?
jaap- has joined #ruby
<volty> out there and ready?
c0rn has quit [Quit: Computer has gone to sleep.]
<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
<danneu> redefine $> as eject
<swarley> oh boy
<swarley> puts "hi" would not be fun :(
<volty> def ( ); * 3 + 2; end // 3 -> 15 :)
tjbiddle has quit [Quit: tjbiddle]
niklasb has quit [Ping timeout: 250 seconds]
<swarley> [22] pry(main)> def ( ); * 3 + 2; end
<swarley> SyntaxError: unexpected keyword_end, expecting $end
<swarley> after all my time with ruby, i have no idea what that means specifically
gabrielrotbart has joined #ruby
<volty> you have to do it with non breaking space, you cannot copy & paste
<swarley> I still read it as
<swarley> "you fucked up somewhere"
<danneu> my irc client translates those into regular spaces
<danneu> deal with that
<swarley> \u160
<swarley> or not
<swarley> my bad
<swarley> lol
ewag has quit [Ping timeout: 260 seconds]
<danneu> can't you send it to the #ruby evaluator bot
eka has quit [Remote host closed the connection]
Rym has quit [Quit: Rym]
<volty> yap, def \u160(\u160\u160); \u160\u160 * 3 + \u160 2; end
Bootstrapper has joined #ruby
eka has joined #ruby
rakl has joined #ruby
dorei has quit [Read error: Connection reset by peer]
dorei has joined #ruby
freakazoid0223 has joined #ruby
<volty> i fucked up with recursive, sorry, bye :)
dorei has quit [Read error: Connection reset by peer]
volty has quit [Quit: Konversation terminated!]
<havenn> Any secret ways to get at Google Trends or Goole Correlate APIs with Ruby??
Michael_ has quit [Remote host closed the connection]
dorei has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
apeiros_ has joined #ruby
<havenn> I started porting the unofficial-google-trends-api from Python to Ruby, but now that I've got my auth key not sure what to do. >.>
Michael_ has joined #ruby
<havenn> The Python (in case anyone is curious): https://github.com/suryasev/unofficial-google-trends-api
eka has quit [Ping timeout: 246 seconds]
Michael_ has quit [Remote host closed the connection]
dorei has quit [Read error: Connection reset by peer]
Michael_ has joined #ruby
<swarley> I hate dealing with google apis
<swarley> So I have no clue
Virunga has quit [Remote host closed the connection]
<swarley> I mean, the google profiler isn't that bad, but i hate dealing with their web apis
<havenn> swarley: Yeah, this is particularly dirty... authenticate, make a query, download the CVS file, parse.
dorei has joined #ruby
<havenn> The API part is a lie.
<swarley> EWWWW
<swarley> CVS...
voodoofish430 has quit [Quit: Leaving.]
<havenn> CSV**
<havenn> I always invert that.
<postmodern> swarley, better than a Walgreens based API :P
Elico has joined #ruby
apeiros_ has quit [Ping timeout: 265 seconds]
<swarley> LOL
pipopopo has quit [Ping timeout: 245 seconds]
Michael__ has joined #ruby
Ruler_Of_Heaven_ has joined #ruby
<swarley> I don't know I like Rite Aid's JSON library
Michael_ has quit [Read error: Connection reset by peer]
Shamgar has joined #ruby
Michael__ has quit [Read error: Connection reset by peer]
coj has joined #ruby
jenrzzz has joined #ruby
coj has quit [Client Quit]
Michael_ has joined #ruby
error_code has quit [Quit: error_code]
arya_ has joined #ruby
ffranz has quit [Quit: Leaving]
Ruler_Of_Heaven_ has quit [Read error: Operation timed out]
statarb3 has quit [Quit: Leaving]
Michael_ has quit [Remote host closed the connection]
<davidokner> RubyMine would look nice if the GUI was redone in JavaFX.
undersc0re97 has quit [Read error: Operation timed out]
Michael_ has joined #ruby
arya has quit [Ping timeout: 244 seconds]
pipopopo has joined #ruby
jaap- has joined #ruby
undersc0re97 has joined #ruby
the_jeebster has quit [Quit: Leaving.]
adelcampo has joined #ruby
adelcampo is now known as doritostains
danshultz has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
yakko has quit [Read error: Connection reset by peer]
g-ram has quit [Quit: Computer has gone to sleep.]
jaap- has quit [Ping timeout: 256 seconds]
yakko has joined #ruby
mascool has quit [Ping timeout: 260 seconds]
mikepack has quit [Remote host closed the connection]
love_color_text has quit [Remote host closed the connection]
love_color_text has joined #ruby
SJr has quit [Ping timeout: 256 seconds]
Bootstrapper has quit [Read error: Connection reset by peer]
Bootstrapper has joined #ruby
byennen has joined #ruby
BrianJ has joined #ruby
banister_ has quit [Read error: Connection reset by peer]
Xeoncross has quit [Quit: Ex-Chat]
davidokner has left #ruby ["bye"]
Michael_ has quit [Remote host closed the connection]
shiin has quit [Quit: Computer has gone to sleep.]
byennen has quit [Ping timeout: 256 seconds]
L1 has joined #ruby
meimo has joined #ruby
meimo has left #ruby [#ruby]
ryanlecompte has joined #ruby
danneu has quit [Ping timeout: 264 seconds]
breefield has quit [Quit: breefield]
love_color_text_ has joined #ruby
love_color_text_ has quit [Changing host]
love_color_text_ has joined #ruby
Goles has joined #ruby
nwertman has joined #ruby
thoolihan has joined #ruby
frem has quit [Quit: Computer has gone to sleep.]
dankest is now known as dankest|away
love_color_text_ has quit [Ping timeout: 264 seconds]
jaap- has joined #ruby
nat2610 has quit [Quit: Leaving.]
nwertman has quit [Ping timeout: 255 seconds]
rippa has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Read error: Operation timed out]
nat2610 has joined #ruby
undersc0re97 has quit [Ping timeout: 276 seconds]
jaap- has quit [Ping timeout: 264 seconds]
jackdanger has joined #ruby
i_s has quit [Quit: i_s]
nat2610 has quit [Client Quit]
danneu has joined #ruby
ehc_ is now known as ehc
dankest|away is now known as dankest
rakl has quit [Quit: sleeping]
rippa has quit [Ping timeout: 260 seconds]
jarred has joined #ruby
aharris6 has joined #ruby
tbrock has quit [Quit: Computer has gone to sleep.]
otters has quit [Ping timeout: 252 seconds]
Goles has quit [Remote host closed the connection]
bigmcq77 has joined #ruby
Hanmac has joined #ruby
Goles has joined #ruby
jarred has quit [Client Quit]
nignaztic has quit [Ping timeout: 252 seconds]
cableray has joined #ruby
thecreators has joined #ruby
g-ram has joined #ruby
danshultz has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
davidcelis has joined #ruby
Z_Mass has quit [Quit: WeeChat 0.3.9.2]
arya_ has quit [Ping timeout: 244 seconds]
jaap- has joined #ruby
rakl has joined #ruby
Scriptwriter has quit [Quit: Things are more like they are now than they have ever been before.]
arya has joined #ruby
adeponte has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
horrror has quit [Quit: horrror]
thoolihan has quit [Ping timeout: 248 seconds]
jaap- has quit [Ping timeout: 265 seconds]
chrxn_ has joined #ruby
dorei has quit []
x82_nicole has joined #ruby
quest88 has joined #ruby
chrxn has quit [Ping timeout: 260 seconds]
chrxn_ is now known as chrxn
jackdanger has quit [Quit: Leaving.]
c0rn has joined #ruby
swarley has quit [Read error: Operation timed out]
slash_nick has joined #ruby
<slash_nick> hola
swarley has joined #ruby
kil0byte_ has joined #ruby
jackdanger has joined #ruby
kil0byte has quit [Read error: Connection reset by peer]
bigmac has quit [Remote host closed the connection]
byennen has joined #ruby
leonardorb has joined #ruby
nwertman has joined #ruby
dankest has quit [Quit: Linkinus - http://linkinus.com]
davidcelis has quit [Ping timeout: 260 seconds]
kil0byte_ has quit [Ping timeout: 250 seconds]
kdridi_ has joined #ruby
Bootstrapper has quit [Ping timeout: 244 seconds]
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.]
<rking> key: http://pryrepl.org/ has some OK info
<shevy> I got a shot of me naked, if you want that key!
tjbiddle has quit [Ping timeout: 260 seconds]
tjbiddle__ is now known as tjbiddle
breefield has quit [Quit: breefield]
arya has joined #ruby
<rking> shevy: Do you really?
answer_42 has joined #ruby
tonini has joined #ruby
lemonsparrow has joined #ruby
<lemonsparrow> if !valid_json?(setting.value) && setting.is_a?(String) better wat of putting this ?
tjbiddle has quit [Quit: tjbiddle]
<shevy> rking hehe nah
<rking> lemonsparrow: Definitely
<rking> lemonsparrow: For one, that will blow up if 'setting' actually is a String
<lemonsparrow> rking: tell me
<rking> lemonsparrow: Plus, checking types is a smell
<lemonsparrow> rking: https://gist.github.com/4174200
<rking> Tell Don't Ask
ChampS666 has joined #ruby
<lemonsparrow> rking: please check the updated gist
djdb has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
browndawg has joined #ruby
<rking> lemonsparrow: So many things are wrong I don't know where to start. ☺
<rking> You're not getting what I'm saying about the explosion
_bart has joined #ruby
<lemonsparrow> rking: https://gist.github.com/4174200 check now
ttt has quit [Remote host closed the connection]
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.
<davidcelis> Use 4 spaces per indentation.
<davidcelis> I'm speaking idiomatically
tagrudev has joined #ruby
<davidcelis> Python idioms dictate 4 spaces
<cableray> hm, must have remembered that wrong.
arya_ has joined #ruby
<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/
jaap- has quit [Quit: Leaving.]
mascool has quit [Ping timeout: 264 seconds]
cauffe has joined #ruby
<evelyette> and the html.rb: http://dpaste.com/839309/
zigomir has joined #ruby
dr_bob has joined #ruby
benlieb has quit [Quit: benlieb]
byennen has joined #ruby
<evelyette> btw: what is the ':' in the following code: http://dpaste.com/839310/
byennen has quit [Read error: Connection reset by peer]
ly- has quit [Read error: Connection reset by peer]
<lemonsparrow> how to check if an element is json or not in ruby ?
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
byennen has joined #ruby
byennen has quit [Read error: Connection reset by peer]
byennen has joined #ruby
oponder has joined #ruby
chendo_ has quit [Ping timeout: 260 seconds]
morf has joined #ruby
<rakl> am I going crazy? why is this telling me there's an unexpected else? https://gist.github.com/4174486
byennen has quit [Remote host closed the connection]
<rakl> and without the end it was telling me there's an unexpected end
byennen has joined #ruby
chendo_ has joined #ruby
chendo_ has quit [Changing host]
chendo_ has joined #ruby
byennen has quit [Read error: Connection reset by peer]
oponder has quit [Remote host closed the connection]
<evelyette> burgestrand: canton7 any ideas ?
dEPy has joined #ruby
ephemerian has joined #ruby
<lemonsparrow> https://gist.github.com/4174497 any way of making this function neat and short ?
_bart has joined #ruby
<burgestrand> rakl: counter++ is not ruby.
byennen has joined #ruby
byennen has quit [Read error: Connection reset by peer]
<burgestrand> evelyette: sorry, too much code to dig into for me at the moment.
<evelyette> burgestrand: I would only like to know this: what is the ':' in the following code: http://dpaste.com/839310/
<evelyette> I'll figure our the rest
<rakl> burgestrand… i've been doing too much javascript
<burgestrand> evelyette: :something is a symbol.
<evelyette> I'm also interested about the pba() method; what is it?
<evelyette> burgestrand: what do you mean, a symbol ?
byennen has joined #ruby
<burgestrand> evelyette: no idea about pba, that’s something from redcloth probably.
byennen has quit [Read error: Connection reset by peer]
<burgestrand> evelyette: like 5 is a number, and "hello" is a string, :symbol is a symbol.
byennen has joined #ruby
hoelzro|away is now known as hoelzro
byennen has quit [Read error: Connection reset by peer]
dpg has quit [Quit: dpg]
m3pow has quit [Remote host closed the connection]
<burgestrand> evelyette: you can think of it as a name, or an identifier.
<evelyette> ok, thank you
eldariof has joined #ruby
byennen has joined #ruby
byennen has quit [Read error: Connection reset by peer]
byennen has joined #ruby
byennen has quit [Read error: Connection reset by peer]
ctwiz has joined #ruby
byennen has joined #ruby
ryanf has quit [Quit: leaving]
byennen has quit [Read error: Connection reset by peer]
byennen has joined #ruby
bluOxigen has joined #ruby
byennen has quit [Read error: Connection reset by peer]
byennen_ has joined #ruby
byennen_ has quit [Read error: Connection reset by peer]
icooba has quit [Quit: Textual IRC Client: www.textualapp.com]
byennen_ has joined #ruby
noxoc has quit [Quit: noxoc]
byennen_ has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
quest88 has quit [Quit: quest88]
stephenjudkins has quit [Quit: stephenjudkins]
byennen_ has joined #ruby
byennen_ has quit [Read error: Connection reset by peer]
F1skr has quit [Quit: WeeChat 0.3.9.2]
jds_ has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
byennen has joined #ruby
byennen has quit [Read error: Connection reset by peer]
nwertman has joined #ruby
bluOxigen has quit []
codecop has joined #ruby
byennen has joined #ruby
_bart has quit [Quit: _bart]
BiHi has joined #ruby
byennen has quit [Read error: Connection reset by peer]
byennen has joined #ruby
byennen has quit [Read error: Connection reset by peer]
byennen has joined #ruby
codecop has quit [Client Quit]
byennen has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
byennen has joined #ruby
byennen has quit [Read error: Connection reset by peer]
byennen has joined #ruby
jaap- has joined #ruby
byennen has quit [Read error: Connection reset by peer]
nwertman has quit [Ping timeout: 264 seconds]
byennen has joined #ruby
apeiros_ has joined #ruby
byennen has quit [Read error: Connection reset by peer]
rezzack has quit [Ping timeout: 265 seconds]
kdridi__ has quit [Read error: Connection reset by peer]
kdridi__ has joined #ruby
cascalheira has joined #ruby
timonv has quit [Remote host closed the connection]
pencilcheck has joined #ruby
byennen_ has joined #ruby
adambeynon has joined #ruby
byennen_ has quit [Read error: Connection reset by peer]
lampe2 has joined #ruby
byennen_ has joined #ruby
vlad_starkov has joined #ruby
cauffe has quit [Remote host closed the connection]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
pen has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
<clocKwize> morning
byennen_ has quit [Ping timeout: 246 seconds]
JohnBat26 has joined #ruby
noxoc has joined #ruby
vlad_starkov has quit [Ping timeout: 265 seconds]
emergion has joined #ruby
jackdanger has quit [Quit: Leaving.]
<witchdoc> hi all
zurich is now known as ZLINE
cdt_ has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
browndawg has quit [Quit: Leaving.]
cableray has quit [Quit: cableray]
ZLINE is now known as zurich
nomenkun has joined #ruby
leonardorb has joined #ruby
hadees_ has joined #ruby
hadees has quit [Read error: Connection reset by peer]
hadees_ is now known as hadees
answer_42 has joined #ruby
Elhu has joined #ruby
clocKwize has quit [Remote host closed the connection]
Grieg has quit [Ping timeout: 250 seconds]
margle has quit [Quit: Computer has gone to sleep.]
jds_ has joined #ruby
browndawg has joined #ruby
F1skr has joined #ruby
ctwiz has quit [Quit: ctwiz]
ModusPwnens has quit [Quit: Page closed]
tobinharris has joined #ruby
chussenot has quit [Quit: chussenot]
workmad3 has quit [Ping timeout: 260 seconds]
ChampS666 has quit [Ping timeout: 255 seconds]
jds_ has quit [Ping timeout: 252 seconds]
ImSexyandIknowit has joined #ruby
radic has quit [Remote host closed the connection]
robotmay has joined #ruby
mneorr has joined #ruby
arturaz has joined #ruby
atno|Zzz is now known as atno
davidcelis has joined #ruby
BoomCow has joined #ruby
Iszak has joined #ruby
matrixise has quit [Ping timeout: 252 seconds]
radic has joined #ruby
Vainoharhainen has joined #ruby
Liothen has quit [Ping timeout: 246 seconds]
branon has quit [Remote host closed the connection]
bigkevmcd has quit [Quit: outta here]
zmo_ has joined #ruby
nemesit has joined #ruby
zurich is now known as TEAMFREENODE
Chryson has quit [Quit: Leaving]
adelcampo has joined #ruby
bigkevmcd has joined #ruby
BoomCow has quit [Quit: Leaving]
cj3kim has quit [Quit: This computer has gone to sleep]
adelcampo is now known as doritostains
jslowe has joined #ruby
maz-dev_ has joined #ruby
clocKwize has joined #ruby
icole has quit [Remote host closed the connection]
_nitti has joined #ruby
blacktulip has joined #ruby
maz-dev has quit [Ping timeout: 265 seconds]
nari has quit [Ping timeout: 245 seconds]
maasha has joined #ruby
cj3kim has joined #ruby
k610 has joined #ruby
arturaz has quit [Ping timeout: 246 seconds]
shorne has quit [Ping timeout: 265 seconds]
_nitti has quit [Ping timeout: 246 seconds]
fyolnish has quit [Remote host closed the connection]
timmow has joined #ruby
<maasha> møjn
arturaz has joined #ruby
rdark has joined #ruby
lele has quit [Quit: Coyote finally caught me]
berserkr has joined #ruby
jds_ has joined #ruby
undersc0re97 has quit [Read error: Connection reset by peer]
undersc0re97 has joined #ruby
TEAMFREENODE has left #ruby [#ruby]
lele has joined #ruby
hotovson has quit [Ping timeout: 246 seconds]
horrror has quit [Quit: horrror]
Shrink has quit [Ping timeout: 252 seconds]
<doritostains> what's the difference between ClassName and ::ClassName?
hotovson has joined #ruby
rismoney1 has quit [Read error: Connection reset by peer]
LouisGB has joined #ruby
rismoney1 has joined #ruby
chussenot has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
<jaap-> with :: you refer to the top level namespace explicitly I believe
arya_ has joined #ruby
matthewrobbins has joined #ruby
ExxKA has joined #ruby
<doritostains> jaap- thank you!
vasile has joined #ruby
<maasha> I even think that :: is a short-cut for what jaap- just said. Like in Perl where ::foo is shorthand for Main::foo
himsin has joined #ruby
arya has quit [Ping timeout: 244 seconds]
thisirs has joined #ruby
vladyn has joined #ruby
rohit has joined #ruby
vladyn has quit [Client Quit]
vladyn_ has joined #ruby
xpen has quit [Remote host closed the connection]
vladyn_ has left #ruby [#ruby]
jds_ has quit [Ping timeout: 265 seconds]
<burgestrand> ::ClassName is the same as Object::ClassName
<burgestrand> (assuming Object is the top-level object and not something you redefined somewhere :p)
Spami has quit [Quit: This computer has gone to sleep]
ExxKA has left #ruby ["Leaving"]
robbyoconnor has quit [Ping timeout: 255 seconds]
leonard__ has joined #ruby
horrror has joined #ruby
horrror has quit [Client Quit]
Rym has joined #ruby
leonardorb has quit [Ping timeout: 246 seconds]
<doritostains> burgestrand thanks
Rym has quit [Client Quit]
<doritostains> It's a good feeling when things like this start to make sense.
gyre007 has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
slainer68 has joined #ruby
ExxKA has joined #ruby
<apeiros_> burgestrand: ::ClassName is the same as ::Object::ClassName ;-D
<apeiros_> (yay, recursion)
tvw has joined #ruby
workmad3 has joined #ruby
BiHi has quit [Read error: Operation timed out]
byennen has joined #ruby
areil has quit [Remote host closed the connection]
margle has joined #ruby
EyesIsMine is now known as EyesIsServer
mntzn has joined #ruby
BiHi has joined #ruby
bluOxigen has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
<ninegrid> hello
emergion has quit [Quit: Computer has gone to sleep.]
Iszak_ has joined #ruby
byennen has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
elaptics`away is now known as elaptics
icooba has joined #ruby
cascalheira has joined #ruby
<lupine> heh. anyone going to la-conf ?
matrixise has joined #ruby
combataircrat has joined #ruby
brtdv has quit [Quit: bye]
heftig has quit [Ping timeout: 245 seconds]
wermel has joined #ruby
reinaldob has joined #ruby
timonv has joined #ruby
rohit has quit [Ping timeout: 246 seconds]
Virunga has joined #ruby
iPhoneMRZ has joined #ruby
iPhoneMRZ has quit [Client Quit]
tonini has quit [Remote host closed the connection]
iPhoneMRZ has joined #ruby
zz_chrismcg is now known as chrismcg
<doritostains> lupine, LA?
<doritostains> what day?
nwertman has joined #ruby
<lupine> it's in may, and it's not actually in LA, but paris
arya_ has quit [Ping timeout: 244 seconds]
arya has joined #ruby
Bry8Star has joined #ruby
icole has joined #ruby
iPhoneMRZ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<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.
vlad_sta_ has quit [Ping timeout: 246 seconds]
Takehiro has quit [Ping timeout: 244 seconds]
nwertman has quit [Ping timeout: 248 seconds]
ttt has quit [Remote host closed the connection]
doritostains has quit [Quit: Leaving...]
browndawg has joined #ruby
cascalheira has joined #ruby
matrixise has quit [Ping timeout: 260 seconds]
browndawg has quit [Max SendQ exceeded]
matrixise has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
Guest24042 has joined #ruby
phelps has quit [Quit: Textual IRC Client: www.textualapp.com]
whitedawg has quit [Quit: Leaving.]
timonv has quit [Ping timeout: 260 seconds]
tobinharris has quit [Quit: tobinharris]
timmow has quit [Quit: is having a nap]
tbrock has joined #ruby
timmow has joined #ruby
<apeiros_> sheerun: if you know the general difference, you'll notice yourself when you want a proc instead of a lambda
jds_ has joined #ruby
<sheerun> apeiros_: that is?
DarthGandalf has quit [Ping timeout: 245 seconds]
shtirlic has joined #ruby
<apeiros_> as I said, you'll know when you run into such a situation
<apeiros_> I don't think there's something like a recipe for that
<sheerun> apeiros_: I just need one example
<apeiros_> (other than those based on their properties - as in "if you want to accept an arbitrary amount of arguments, you'll want a proc")
timonv has joined #ruby
binarypl1 has joined #ruby
sepp2k has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
jds_ has quit [Ping timeout: 252 seconds]
skaczor has joined #ruby
ssspiff has joined #ruby
k610 has quit [Ping timeout: 260 seconds]
<sheerun> apeiros_: lambdas support arbitrary number of arguments too
<apeiros_> sheerun: no
danshultz has joined #ruby
<apeiros_> lambda {}.call(1) # will raise
<apeiros_> you have to state that you expect an arbitrary number of arguments
<sheerun> irb(main):008:0> test = lambda { |x, y = 12| [x, y] }
<sheerun> => #<Proc:0x007fff23e360a0@(irb):8 (lambda)>
<sheerun> irb(main):009:0> test[6]
<sheerun> => [6, 12]
<sheerun> irb(main):010:0> test[6, 7]
<sheerun> => [6, 7]
<sheerun> I'm sorry, you're wring
<sheerun> wrong*
sspiff has quit [Ping timeout: 252 seconds]
rjmt__ has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby
<sheerun> I know it doesn't work on 1.8. My question concerns only newest ruby, not legacy one.
yshh has quit [Remote host closed the connection]
<sheerun> For now I cannot think of any reason to use procs instead of lambdas.
huoxito has joined #ruby
mercwithamouth has joined #ruby
<banisterfiend> sheerun: procs are good when u want to store something that you'll later pass along as a block
<apeiros_> sheerun: not the same
<apeiros_> as said, you have to explicitly state that you accept arbitrary args
ssspiff has quit [Ping timeout: 252 seconds]
<apeiros_> sheerun: compare: 5.times { puts "hi" } # you can't do that with lambda semantics
<sheerun> apeiros_: so?
<apeiros_> you'd have to write 5.times { |*| puts "hi" }
<apeiros_> (or { |i| … })
<apeiros_> seems to me you don't actually know the general difference :-p
<sheerun> no, if times used lambdas with default arguments in its implementation
<apeiros_> I fail to parse that phrase
<banisterfiend> sheerun: but the cool thing about blocks is non-local returns
<sheerun> and you can pass either lambda or prods to lambda
sspiff has joined #ruby
<apeiros_> sheerun: are you completely misreading what I write?
<banisterfiend> sheerun: def baby; collection.meth { |v| return if v.predicate? }; end
<sheerun> wait a sec
<apeiros_> meh
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
<apeiros_> sheerun: you may want to reread and actually understand what I wrote. I don't think you did.
* apeiros_ off to work now
x0F_ is now known as x0F
Elhu has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
<banisterfiend> apeiros_: you should move to holland, it's similar to switzerland except you can smoke weed and the people aren't quite so uptight
<banisterfiend> (probably cos of the weed)
jamesaxl has joined #ruby
<sheerun> OK, I see it now.
pcarrier has joined #ruby
<sheerun> foo = lambda { }; 5.times(&foo);
<sheerun> this won't work
<sheerun> and that was the example I needed
<sheerun> thank you guys
postmodern has quit [Quit: Leaving]
rjmt__ has quit [Ping timeout: 246 seconds]
Xeago_ has joined #ruby
rohit has joined #ruby
rakl has quit [Quit: sleeping]
jamesaxl has quit [Ping timeout: 260 seconds]
jamesaxl has joined #ruby
ssspiff has joined #ruby
jaap- has quit [Quit: Leaving.]
Xeago has quit [Ping timeout: 264 seconds]
centipedefarmer has joined #ruby
sspiff has quit [Ping timeout: 246 seconds]
tbrock has quit [Quit: Computer has gone to sleep.]
ewag has joined #ruby
niklasb has quit [Ping timeout: 265 seconds]
kevinykchan has joined #ruby
jeffreybaird has joined #ruby
k610 has joined #ruby
arkiver has quit [Quit: Leaving]
Averna has quit [Quit: Leaving.]
ffranz has joined #ruby
nanderoo has joined #ruby
danshultz has quit [Remote host closed the connection]
tvw has joined #ruby
danshultz has joined #ruby
rakl has joined #ruby
krawchyk has joined #ruby
haxrbyte has joined #ruby
reinaldob has quit [Remote host closed the connection]
Shrink has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
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…
DarthGandalf has joined #ruby
<banisterfiend> soko: 1. clone git repo 2. build gemspec 3. instal gem
tommyvyo has joined #ruby
<k610> When i search for my gem on the website, I can't find it when I type a keyword belonging to the gem's description or summary
<soko> banisterfiend: so it seems gem doesn't have such a command line option, ok, thank you.
<k610> (rubygems.org)
beiter has quit [Quit: beiter]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Virunga has quit [Remote host closed the connection]
k610 has quit [Quit: Leaving]
sailias has quit [Quit: Leaving.]
atmosx has quit [Ping timeout: 276 seconds]
Xeago_ is now known as Xeago
skattyadz has joined #ruby
cek has joined #ruby
tyler has joined #ruby
_bart has quit [Quit: _bart]
haxrbyte has quit [Remote host closed the connection]
Zai00 has joined #ruby
tyler is now known as CannedCorn
centipedefarmer has quit [Remote host closed the connection]
haxrbyte has joined #ruby
<CannedCorn> hey guys, so I'm trying to produce some erb output
<CannedCorn> that isn't web, its an rst
<CannedCorn> and its eating my newlines
koshii_ has joined #ruby
rippa has joined #ruby
<koshii_> Guys quick SASS question. Why does it sometimes use &:hover { instead of just hover {
<koshii_> (Nested)
<cek> why the heck 1.9.3 is considered stable while there are no debug facilities for it?
<koshii_> Sorry, I know this isn't a Ruby question!
tommyvyo_ has joined #ruby
<GeekOnCoffee> cek: what exactly are you asking?
atmosx has joined #ruby
<Xeago> cek: there is a whol test suite for it
maasha has quit [Quit: Page closed]
<Xeago> you can debug it with all the standard c debug facilities?
<cek> Xeago, who cares about test suite if you can't debug userend applications?
<cek> yeah, you can disasm the code and read the bits. thanks.
<Xeago> you are asking about the ruby implementation
koshii has quit [Quit: leaving]
<cek> i'm asking about end user experience
<Xeago> then it is not about 1.9.3
<Xeago> but about ruby in general
<CannedCorn> guys any idea regarding erb?
<GeekOnCoffee> CannedCorn: are you using \n for newlines?
<cek> its about 193. gem install ruby-debug19 doesn't work
solidoodlesuppor has joined #ruby
centipedefarmer has joined #ruby
<CannedCorn> GeekOnCoffee, i believe so
jeffreybaird has quit [Quit: jeffreybaird]
<cek> /ruby_debug.so: undefined symbol: ruby_threadptr_data_type
<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
<cek> I wish ruby could have something like this: http://docs.oracle.com/javase/6/docs/
<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?
bluOxigen has joined #ruby
matrixise has joined #ruby
danneu has joined #ruby
<cek> http://rubydoc.info/gems/debugger/frames is mainly nonsense. it doens't show you examples or provide any guide on how to actually debug
<cek> for ex., I'd like to spawn a remote debug session in the middle of the file
<rking> cek: If you want to switch to pry-debugger I can tell you how it works
tommyvyo has quit [Quit: Computer has gone to sleep.]
tommyvyo_ is now known as tommyvyo
<rking> I haven't used 'debugger' except for a tiny bit
<cek> rking, is it possible to make it listen for remote connection throgh tcp?
<rking> Yeah, through pry-remote or pry-remote-em
<rking> (Former is simpler, latter is more feature-complete (e.g. authenticates))
maesbn has quit [Remote host closed the connection]
<Marius> Hi, what is the best way to ship ruby app inside .rpm ?
s1n4 has joined #ruby
danielfarrell has joined #ruby
<Marius> I mean how to ship application dependencies on other gems
<Marius> make rpm for each gem, or pack everything together with application into 1 .rpm
eldariof has quit [Ping timeout: 260 seconds]
samphippen has joined #ruby
zooz has joined #ruby
<zooz> how do I say in ruby "pass" or "continue" ?
nwertman has joined #ruby
Upasna is now known as sweet_kid
cpruitt has joined #ruby
huoxito has quit [Ping timeout: 246 seconds]
g-ram has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Vainoharhainen has quit [Quit: Leaving...]
<rking> zooz: What should it do?
<s1n4> zooz: use the "next" keyword
carloslopes has quit [Remote host closed the connection]
<s1n4> zooz: "next" acts like "continue" in python
<zooz> great, thanks
<s1n4> np
LoO has joined #ruby
Vainoharhainen has joined #ruby
nwertman has quit [Ping timeout: 250 seconds]
rakl has quit [Quit: sleeping]
Drewch has joined #ruby
wargasm has joined #ruby
jeffreybaird has joined #ruby
bjeanes has quit [Ping timeout: 246 seconds]
Iszak_ has quit []
cakehero has joined #ruby
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
zzyybb has quit [Quit: Leaving]
LoO has quit [Killed (idoru (Spam is off topic on freenode.))]
allr has joined #ruby
macabre has joined #ruby
tomsthumb has quit [Quit: Leaving.]
nemesit has quit [Ping timeout: 255 seconds]
apod has joined #ruby
ananthakumaran has joined #ruby
danneu has quit [Ping timeout: 250 seconds]
mmitchell has joined #ruby
topek has left #ruby [#ruby]
tobinharris has quit [Quit: tobinharris]
yshh has joined #ruby
<allr> Which way to do it is the best? https://gist.github.com/0a7424ba9e745bebad4c
bluOxigen has quit [Ping timeout: 260 seconds]
<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; …`
<allr> apeiros_: So you dont get this kind of problem: http://www.ruby-forum.com/topic/145121
dangerousdave has quit [Quit: Leaving...]
<allr> apeiros_: an undefined module error
<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]
haxrbyte has joined #ruby
theRoUS has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #ruby
x82_nicole has joined #ruby
Xeago has quit [Remote host closed the connection]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
x82_nicole has quit [Client Quit]
Iszak_ has joined #ruby
apod has quit []
cj3kim has joined #ruby
matthewrobbins has quit [Quit: matthewrobbins]
binarypl2 has joined #ruby
Xeago has joined #ruby
cj3kim has quit [Client Quit]
ckrailo has joined #ruby
nwertman has joined #ruby
banisterfiend has quit [Remote host closed the connection]
blaxter has quit [Quit: foo]
arietis has joined #ruby
binarypl1 has quit [Ping timeout: 264 seconds]
Rym has joined #ruby
johnmilton has joined #ruby
jlwestsr has joined #ruby
mpereira has joined #ruby
philcrissman has joined #ruby
axl_ has joined #ruby
Squarepy has quit [Remote host closed the connection]
mpereira has quit [Ping timeout: 246 seconds]
BigO has quit [Remote host closed the connection]
mpereira has joined #ruby
BiHi has quit [Read error: Connection reset by peer]
BiHi_ has joined #ruby
tobinharris has quit [Quit: tobinharris]
philips_ has quit [Excess Flood]
nobuoka has joined #ruby
philips_ has joined #ruby
xclite has quit [Remote host closed the connection]
keyvan has quit [Remote host closed the connection]
Iszak_ has quit []
tobinharris has joined #ruby
aganov has quit [Quit: aganov]
mpereira has quit [Ping timeout: 264 seconds]
bwlang has left #ruby [#ruby]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
adeponte has quit [Remote host closed the connection]
joeycarmello has quit [Remote host closed the connection]
kdridi__ has joined #ruby
mpereira has joined #ruby
Rym has quit [Quit: Rym]
timmow has joined #ruby
strg has quit [Ping timeout: 264 seconds]
frem has joined #ruby
<Marius> how to specify additional gem directory for rackup ?
babykosh has joined #ruby
havenn has quit [Remote host closed the connection]
banisterfiend has joined #ruby
havenn has joined #ruby
havenn has quit [Read error: No route to host]
havenn has joined #ruby
mpereira has quit [Ping timeout: 248 seconds]
slainer68 has quit [Remote host closed the connection]
mpereira has joined #ruby
ichilton has joined #ruby
<ichilton> Anyone here use Grape?
jrajav has joined #ruby
darthdeus has quit [Quit: Linkinus - http://linkinus.com]
rtd has quit [Quit: rtd]
whitedawg has quit [Quit: Leaving.]
chimkan has quit [Quit: chimkan]
Jefus has joined #ruby
jlogsdon has joined #ruby
havenn has quit [Ping timeout: 246 seconds]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
whitedawg has joined #ruby
blazes816 has joined #ruby
danneu has quit [Quit: WeeChat 0.3.8]
xscc has joined #ruby
haxrbyte has quit [Ping timeout: 256 seconds]
ltsstar has quit [Ping timeout: 252 seconds]
Whackatre has quit [Ping timeout: 246 seconds]
hackerdude has joined #ruby
Whackatre has joined #ruby
Whackatre has quit [Changing host]
Whackatre has joined #ruby
carloslopes has joined #ruby
thisirs has quit [Remote host closed the connection]
binarypl2 has quit [Ping timeout: 260 seconds]
tjbiddle has joined #ruby
jlogsdon has quit [Ping timeout: 246 seconds]
xscc has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
whitedawg has quit [Quit: Leaving.]
samphippen has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
browndawg has quit [Quit: Leaving.]
alee has quit [Remote host closed the connection]
dukedave has quit [Quit: Leaving.]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
timonv has quit [Remote host closed the connection]
libryder has quit [Ping timeout: 246 seconds]
browndawg1 has joined #ruby
libryder has joined #ruby
browndawg1 has quit [Max SendQ exceeded]
browndawg has joined #ruby
pu22l3r has quit [Remote host closed the connection]
nwertman has quit [Quit: Lost terminal]
xyzodiac has quit [Quit: Computer has gone to sleep.]
iamjarvo_ has quit [Quit: Computer has gone to sleep.]
LucidDreamZzZ has quit [Remote host closed the connection]
tnk1 has quit [Remote host closed the connection]
tnk1 has joined #ruby
carlyle has joined #ruby
haxrbyte has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
LucidDreamZzZ has joined #ruby
mahmoudimus has joined #ruby
lampe2 has quit [Ping timeout: 252 seconds]
hoelzro is now known as hoelzro|away
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
xsbeats_ has joined #ruby
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.
<shevy> pfft perfect
<shevy> longjohngold, this is okish https://github.com/injekt/slop
stkowski has joined #ruby
slainer68 has quit [Ping timeout: 260 seconds]
pyr0commie has joined #ruby
<longjohngold> shevy: isn't that a library?
arya has quit []
iamjarvo_ has joined #ruby
matrixise has quit [Ping timeout: 246 seconds]
arya has joined #ruby
mpereira has joined #ruby
<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.]
BiHi_ has quit [Quit: bye]
littleproblem has quit [Quit: Page closed]
<havenn> Electrical: https://gist.github.com/4177204
davidcelis has joined #ruby
babykosh has quit [Quit: babykosh]
<havenn> Electrical: Just use Hash#to_s: {aim: true}.to_s #=> "{:aim=>true}"
<havenn> Electrical: If I'm still not getting it, paste a Gist of what you mean? That was my best guess!
ExxKA has quit [Quit: This computer has gone to sleep]
<Electrical> i'll try to explain it in a PM what im trying to get :-)
niklasb has quit [Ping timeout: 255 seconds]
love_color_text has quit [Remote host closed the connection]
love_color_text has joined #ruby
nat2610 has joined #ruby
zooz has quit [Quit: Leaving IRC]
LucidDreamZzZ has quit [Ping timeout: 276 seconds]
LucidDreamZzZ has joined #ruby
mahmoudimus has joined #ruby
undersc0re97 has quit [Ping timeout: 252 seconds]
rismoney1 has quit []
kdridi_ has joined #ruby
chimkan has joined #ruby
Neomex has quit [Quit: Neomex]
Marius has quit [Ping timeout: 260 seconds]
timmow has quit [Quit: has left the building]
wallerdev has joined #ruby
pyrocommie has joined #ruby
Monie[ip] has joined #ruby
kdridi__ has quit [Read error: Connection reset by peer]
cheez0r has quit [Ping timeout: 276 seconds]
Monie[ip] has quit [Read error: Connection reset by peer]
Whackatre has quit [Ping timeout: 246 seconds]
weasels is now known as otters
pyr0commie has quit [Ping timeout: 252 seconds]
Whackatre has joined #ruby
Whackatre has joined #ruby
a_a_g has joined #ruby
ryanlecompte has quit [Ping timeout: 255 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
haxrbyte_ has joined #ruby
jlogsdon has joined #ruby
arya has quit [Ping timeout: 244 seconds]
jlogsdon has quit [Remote host closed the connection]
haxrbyt__ has joined #ruby
wermel has quit [Remote host closed the connection]
jackdanger has quit [Quit: Leaving.]
jlogsdon has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
pencilcheck has quit [Remote host closed the connection]
Jamone has joined #ruby
pmros has joined #ruby
tobinharris has quit [Quit: tobinharris]
bigkevmcd has quit [Quit: outta here]
xcvd`` has joined #ruby
bigkevmcd has joined #ruby
tobinharris has joined #ruby
bigkevmcd has quit [Client Quit]
Dreamer3 has joined #ruby
haxrbyte_ has quit [Ping timeout: 246 seconds]
cdt_ has quit [Ping timeout: 246 seconds]
Monie has quit [Ping timeout: 244 seconds]
jlast has quit [Remote host closed the connection]
jharris has quit [Quit: WeeChat 0.3.8]
ananthakumaran has quit [Quit: Leaving.]
Trioke has joined #ruby
Jamone has quit [Ping timeout: 244 seconds]
c0rn has joined #ruby
jonahR has joined #ruby
arya has joined #ruby
<jonahR> gfd
haxrbyt__ has quit [Ping timeout: 265 seconds]
whitedawg has quit [Quit: Leaving.]
joofsh has joined #ruby
nat2610 has quit [Quit: Leaving.]
Vainoharhainen has quit [Quit: Leaving...]
nat2610 has joined #ruby
xcvd`` has quit [Quit: Leaving]
acoyfellow has quit [Ping timeout: 264 seconds]
jlast has joined #ruby
x82_nicole has joined #ruby
babykosh has joined #ruby
tommyvyo has quit [Ping timeout: 252 seconds]
stephenjudkins has joined #ruby
babykosh has quit [Client Quit]
lesnik_ has joined #ruby
<lesnik_> Hi!
nat2610 has quit [Client Quit]
<lesnik_> I'm using ruby 1.9.3. Need to sort a hash by value, and return a hash on the output.
shorne has quit [Ping timeout: 260 seconds]
<lesnik_> I know how to return an array
<lesnik_> can it be done?
<shevy> lesnik_ give examples hash, small, and example output you wish to achieve, please
ebouchut_ has joined #ruby
nat2610 has joined #ruby
tomask has joined #ruby
joeycarmello has quit [Remote host closed the connection]
ebouchut_ has quit [Client Quit]
Electrical has left #ruby [#ruby]
dr_bob has quit [Quit: Leaving.]
<lesnik_> hash = { 1 1hash = { 1 => 2, 2 => 4, 5 => 3, 9 => 0}
<lesnik_> hash.sort
<lesnik_> sorry
<lesnik_> hash = { 1 => 2, 2 => 4, 5 => 3, 9 => 0}
<lesnik_> hash.sort
mwlang has joined #ruby
<lesnik_> => {9=>0, 1=>2, 5=>3, 2=>4}
tommyvyo has joined #ruby
joeycarmello has joined #ruby
<shevy> hmm
<shevy> hash.sort_by {|key, value| key}
<shevy> # => [[1, 2], [2, 4], [5, 3], [9, 0]]
<shevy> not yet the final ...
<shevy> hmmmmm
<lesnik_> :)
mrsolo has joined #ruby
benlieb has joined #ruby
<shevy> I try to remember the syntax for turning an array into a hash
<shevy> Hash[[[1, 2], [2, 4], [5, 3], [9, 0]]] # => {5=>3, 1=>2, 2=>4, 9=>0}
<shevy> hmm
wargasm has quit [Read error: Connection reset by peer]
jlast has quit [Remote host closed the connection]
<shevy> hmmmmmm
<shevy> Hanmac help me out
mybrainis404 has joined #ruby
lampe2 has quit [Read error: Connection reset by peer]
lampe2 has joined #ruby
<Hanmac> shevy: what exactly is your input and what your wanted output?
nwertman has joined #ruby
icole has joined #ruby
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
tobinharris has quit [Quit: tobinharris]
<shevy> Hanmac hehe. input is: hash = { 1 => 2, 2 => 4, 5 => 3, 9 => 0}, output should be a hash with: {9=>0, 1=>2, 5=>3, 2=>4}
ananthakumaran has joined #ruby
<shevy> ohhhhh
<shevy> I could use .reverse
ananthakumaran has quit [Client Quit]
otters has quit [Quit: WeeChat 0.3.9]
otters has joined #ruby
binarypl1 has joined #ruby
<shevy> hmm nope
<shevy> does not seem to work at all
mwlang has quit [Quit: mwlang]
<shevy> lesnik_, { 1 => 2, 2 => 4, 5 => 3, 9 => 0}.sort_by {|key, value| key}.reverse # => [[9, 0], [5, 3], [2, 4], [1, 2]]
pcarrier has quit []
chrisramon has quit [Quit: chrisramon]
dankest has joined #ruby
<lesnik_> shevy: i wrote that i need to return a hash, not an array :)
chrismcg is now known as zz_chrismcg
icole has quit [Ping timeout: 244 seconds]
otters has quit [Client Quit]
otters has joined #ruby
brianpWins has quit [Quit: brianpWins]
niklasb has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
undersc0re97 has joined #ruby
ananthakumaran has joined #ruby
hasse_ has joined #ruby
xyzodiac has quit [Quit: Textual IRC Client: www.textualapp.com]
Takehiro has joined #ruby
jrajav has joined #ruby
<havenn> lesnik_: Hash[hash.to_a.sort.reverse] #=> {9=>0, 5=>3, 2=>4, 1=>2}
<Trioke> Ideas for an elegant way of handling nested exceptions? Currently my code looks butt ugly like this: https://gist.github.com/4177597
<apeiros_> havenn: no need for to_a
<apeiros_> Hash[hash.sort.reverse] will work just fine
krz has quit [Quit: krz]
<havenn> apeiros_: Good call. :)
stephenjudkins has quit [Quit: stephenjudkins]
dmiller has joined #ruby
lampe2 has quit [Quit: Leaving.]
<lesnik_> thanks guys!
<shevy> lesnik_ yeah... something was needed...
vasile has quit [Ping timeout: 260 seconds]
<shevy> Hash[{ 1 => 2, 2 => 4, 5 => 3, 9 => 0}.sort.reverse] # => {5=>3, 1=>2, 2=>4, 9=>0}
s1n4 has quit [Quit: leaving]
<shevy> OHHHH
<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!]
<shevy> yeah... in 1.9.3 it works fine
<shevy> Hash[{ 1 => 2, 2 => 4, 5 => 3, 9 => 0}.sort.reverse]
<shevy> # => {9=>0, 5=>3, 2=>4, 1=>2}
zigomir has quit [Quit: zigomir]
pu22l3r has joined #ruby
<CannedCorn> guys i've got a problem with bundler where it won't update mocha
<CannedCorn> no number of bundle updates will get it to use mocha 0.13
<CannedCorn> any ideas why that would be the case
<havenn> Trioke: Is that code inside a method? I only ask cause you could get rid of the first begin/end if it was and just have rescue.
<CannedCorn> it insists on installing 0.10 which is very old
ToTo has joined #ruby
dmiller has quit [Ping timeout: 264 seconds]
fred909 has joined #ruby
<havenn> Trioke: What I mean: def beans; @beans = 'pinto'; begin; @beans.destroy; rescue ActiveFirst; end; rescue ActiveSecond; end
<havenn> CannedCorn: What is in your Gemfile?
<Trioke> havenn: There are more code before and after it, unfortunately :(.
<ner0x> fastercsv is pretty much the standard csv editor?
<CannedCorn> havenn its https://gist.github.com/4177650
soko has left #ruby ["Bye bye!"]
<havenn> CannedCorn: Try an explicit version number: gem 'mocha', '0.13'
voodoofish430 has joined #ruby
niklasb_ has joined #ruby
<havenn> CannedCorn: Try an explicit version number: gem 'mocha', '~> 0.13.0', :require => 'mocha/setup'
machty has quit [Quit: machty]
<CannedCorn> havenn, yeah... but the whole point is that we want to be current
<CannedCorn> always on latest
<CannedCorn> that kind of defeats the purpose if we lock it in
mascool has joined #ruby
niklasb has quit [Ping timeout: 246 seconds]
<havenn> CannedCorn: '>= 0.13.0' will keep current
<havenn> CannedCorn: Actually, until it goes 1.0 won't '~> 0.13.0' keep it current
<CannedCorn> ok but i'm just trying to understand why it doesn't choose the latest in this case
<CannedCorn> without specifying anything
<havenn> CannedCorn: One of your other gems require 0.10.0
<havenn> CannedCorn: You could find the dependency, and see if you can update the gem to use latest Mocha maybe?
GitNick has joined #ruby
<havenn> CannedCorn: Maybe try: gem dependency | grep mocha
<atmosx> Hello
<havenn> Hey
<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]
Proshot is now known as statarb3
samphipp_ has joined #ruby
thomasfedb has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
sonne_ has joined #ruby
thomasfedb has quit [Changing host]
thomasfedb has joined #ruby
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
<havenn> Paradox: You can find banister in #pry :P
joeycarmello has quit [Ping timeout: 241 seconds]
samphippen has quit [Ping timeout: 241 seconds]
tnk1 has quit [Ping timeout: 241 seconds]
blazes816 has quit [Ping timeout: 241 seconds]
Morkel has quit [Ping timeout: 241 seconds]
blacktulip has quit [Ping timeout: 241 seconds]
blazes816_ is now known as blazes816
Quix0te has quit [Ping timeout: 241 seconds]
samphipp_ is now known as samphippen
jsaak has quit [Ping timeout: 241 seconds]
Morkel_ is now known as Morkel
mand_ has quit [Ping timeout: 264 seconds]
kdridi_ has left #ruby ["Quitte"]
Quix0te has joined #ruby
Quix0te has quit [Changing host]
Quix0te has joined #ruby
hasse_ has quit [Quit: Page closed]
Storm3y has quit [Changing host]
Storm3y has joined #ruby
Quix0te has quit [Excess Flood]
burgestrand has joined #ruby
Quix0te has joined #ruby
Quix0te has quit [Excess Flood]
Quix0te has joined #ruby
Quix0te has quit [Changing host]
Quix0te has joined #ruby
Quix0te has quit [Excess Flood]
burgestrand has quit [Client Quit]
Takehiro has quit [Remote host closed the connection]
Quix0te has joined #ruby
Quix0te has quit [Changing host]
Quix0te has joined #ruby
Quix0te has quit [Excess Flood]
Quix0te has joined #ruby
Quix0te has quit [Changing host]
Quix0te has joined #ruby
Quix0te has quit [Excess Flood]
pu22l3r has joined #ruby
Quix0te has joined #ruby
Quix0te has quit [Excess Flood]
jlast has quit [Remote host closed the connection]
Quix0te has joined #ruby
Uranio has quit [Ping timeout: 264 seconds]
Quix0te has quit [Excess Flood]
Quix0te has joined #ruby
Quix0te has quit [Changing host]
Quix0te has joined #ruby
Quix0te has quit [Excess Flood]
shtirlic has quit [Remote host closed the connection]
Quix0te has joined #ruby
Quix0te has quit [Changing host]
Quix0te has joined #ruby
Quix0te has quit [Excess Flood]
Uranio has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
gyre007 has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
<atmosx> havenn: yes thanks!
<atmosx> didn't knew, awesome trick
lushious has quit [Remote host closed the connection]
icole has joined #ruby
jlast has joined #ruby
nyuszika7h has joined #ruby
reset has joined #ruby
brianpWins has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
31NACHSS2 is now known as chendo
awarner_ has joined #ruby
awarner has quit [Ping timeout: 246 seconds]
philcrissman has joined #ruby
ebouchut_ has quit [Quit: This computer has gone to sleep]
bwlang has joined #ruby
swarley has joined #ruby
macmartine has joined #ruby
heftig has quit [Read error: Connection reset by peer]
centipedefarmer has joined #ruby
heftig has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
banisterfiend has joined #ruby
<banisterfiend> sup apeiros_ waddup
havenn has joined #ruby
<apeiros_> sc2 & gosu
<apeiros_> &u?
maz-dev__ has joined #ruby
<banisterfiend> apeiros_: watching "filipina dream girls"
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
<apeiros_> lol
thecreators has quit [Quit: thecreators]
<banisterfiend> apeiros_: want th link?
<apeiros_> no need, thx ;.)
maz-dev_ has quit [Ping timeout: 255 seconds]
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]
mikeg has joined #ruby
gbchaosmaster has joined #ruby
thecreators has joined #ruby
shevy has joined #ruby
otters has quit [Client Quit]
otters has joined #ruby
mark06 has joined #ruby
Paradox has quit [Quit: derpderp]
nat2610 has quit [Quit: Leaving.]
pothibo has joined #ruby
nat2610 has joined #ruby
mark06 has left #ruby [#ruby]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
generalissimo has joined #ruby
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
shtirlic has joined #ruby
arturaz_ has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
dmiller has joined #ruby
majak has quit [Quit: Page closed]
Paradox has joined #ruby
Paradox is now known as Guest32332
<atmosx> shevy: octopress, www.convalesco.org :-P
<atmosx> there's a problem with feed though, it's hosted by github
jds_ has joined #ruby
shtirlic has quit [Ping timeout: 260 seconds]
swarley has joined #ruby
nemesit|osx has joined #ruby
<atmosx> hm mabe not
nemesit|osx has quit [Client Quit]
nemesit has quit [Ping timeout: 252 seconds]
<atmosx> shevy: there are a couple, but work with more established blog engines like wordpress
nemesit has joined #ruby
JohnBat26 has quit [Remote host closed the connection]
alanjc has joined #ruby
bier has quit [Remote host closed the connection]
babykosh has joined #ruby
bier has joined #ruby
jrist-afk is now known as jrist
* slash_me is enjoying the warm fuzzy feel of TDD today
headius has joined #ruby
dmerrick has quit [Quit: dmerrick]
eldariof has quit []
Beoran__ has joined #ruby
ToTo has quit [Read error: Connection reset by peer]
dmiller has quit [Remote host closed the connection]
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
Beoran_ has quit [Ping timeout: 245 seconds]
Vert has joined #ruby
strtok has quit [Ping timeout: 265 seconds]
strtok_ has joined #ruby
baphled has joined #ruby
rcs has quit [Ping timeout: 265 seconds]
BoomCow has quit [Quit: This computer has gone to sleep]
Wasila has joined #ruby
<Wasila> Hi
stnly has quit [Ping timeout: 246 seconds]
adamjleonard has joined #ruby
<Wasila> I have a problem with Rspec tests ---> http://pastie.org/5459843
<Wasila> I get this error message
baphled has quit [Client Quit]
Hien has quit [Ping timeout: 260 seconds]
baphled has joined #ruby
Guest32332 has quit [Quit: off to herp the derps]
baphled has quit [Client Quit]
yellow5 has quit [Ping timeout: 252 seconds]
Paradox| has joined #ruby
kirun has joined #ruby
yellow5 has joined #ruby
Hien has joined #ruby
BoomCow has joined #ruby
baphled has joined #ruby
fred909 has joined #ruby
Paradox| has quit [Client Quit]
Paradox| has joined #ruby
davidcelis has joined #ruby
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]
dmiller has joined #ruby
Paradox has joined #ruby
BoomCow has quit [Ping timeout: 260 seconds]
Virunga has joined #ruby
BoomCow has joined #ruby
thorncp has quit [Ping timeout: 245 seconds]
_nitti has joined #ruby
thorncp has joined #ruby
Jackneill has quit [Quit: Jackneill]
dangerousdave has quit [Quit: Leaving...]
wedgeV has joined #ruby
nomenkun has joined #ruby
<wedgeV> hi, shouldn't that include cause some kind of error or warning: http://pastie.org/private/c9sknod4xvac1mxt61dqia
SwooshyCueb has quit [Ping timeout: 246 seconds]
khimera has joined #ruby
baphled has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby
krawchyk_ has joined #ruby
<burgestrand> wedgeV: it doesn’t override File
CannedCorn has quit [Quit: Leaving]
ryanlecompte has joined #ruby
<burgestrand> wedgeV: http://pastie.org/private/il59nd6dt3gldum1sa62w try running it
SwooshyCueb has joined #ruby
krawchyk has quit [Ping timeout: 256 seconds]
cardoni has joined #ruby
Vert has quit [Read error: Connection reset by peer]
bigmcq77 has joined #ruby
<wedgeV> burgestrand: so include never overrides?
rramsden has joined #ruby
krawchyk_ has quit [Ping timeout: 255 seconds]
<burgestrand> wedgeV: it isn’t not overridden either, the regular File just happens to be the constant that is found first
cheier has joined #ruby
<wedgeV> ah, so it adds it to the scope kinda
byennen has joined #ruby
imami has joined #ruby
<burgestrand> wedgeV: yeah, but at a lower priority than the regular File
<wedgeV> i see
<burgestrand> might clear some things up
<burgestrand> I'm off for gaming
lolcathost has quit [Ping timeout: 260 seconds]
ossareh has joined #ruby
Shamgar has quit [Ping timeout: 256 seconds]
theoros_ is now known as theoros
<wedgeV> burgestrand: thanks!
pu22l3r has quit [Remote host closed the connection]
ctwiz is now known as dpg
Weazy has quit [Ping timeout: 264 seconds]
allanm_ has quit [Read error: Connection reset by peer]
emergion has joined #ruby
Weazy has joined #ruby
cmarques has quit [Ping timeout: 255 seconds]
jlogsdon has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
adelcampo has joined #ruby
AxonetBE has joined #ruby
<AxonetBE> if I have 2 arrars ["foo", "bar"] and ["boo", "bar"] and I want as result ["foo"], how can I do this in ruby
<AxonetBE> it is like extraction, so I want to delete from the array 1 the one that are in array 2
<heftig> a1 - a2
jlwestsr has joined #ruby
ryanf has joined #ruby
d2dchat has quit [Remote host closed the connection]
Shamgar has joined #ruby
byennen has quit [Read error: Connection reset by peer]
byennen has joined #ruby
thejefflarson has joined #ruby
jamesaxl has quit [Read error: No route to host]
robbyoconnor has quit [Ping timeout: 244 seconds]
jrajav has quit [Quit: I tend to be neutral about apples]
<ner0x> "Claude Artis","","","+1 202-726-3918","","","","Demolition Contractor" <-- What about that is throwing "Illegal quoting in line 1."
locriani has quit [Read error: Connection reset by peer]
locriani has joined #ruby
<AxonetBE> heftig: thanks
nemesit|osx has joined #ruby
nemesit has quit [Ping timeout: 264 seconds]
rakl has quit [Quit: sleeping]
<heftig> ner0x: what are you parsing this with?
baphled has joined #ruby
<ner0x> heftig: CSV.foreach( file_path ) do |row|
<heftig> hmm
robbyoconnor has joined #ruby
jamesaxl has joined #ruby
nemesit|osx has quit [Client Quit]
<ner0x> I've pulled out the empty "" so they are just ,,"soeti" etc and I get the same error.
<ner0x> Possibly the ending character?
nemesit has joined #ruby
<heftig> ner0x: just that line parses fine here
baphled has quit [Client Quit]
Grieg has quit [Quit: laterz! :D]
iamjarvo_ has quit [Ping timeout: 260 seconds]
* JoeHazzers scrolls way up, then decides to get back to reading his book on ruby
baphled has joined #ruby
<ner0x> So I'm a bit confused then.
ChampS666 has quit [Ping timeout: 264 seconds]
robbyoconnor has quit [Ping timeout: 246 seconds]
mikeg has quit [Quit: Leaving]
answer_42 has quit [Ping timeout: 264 seconds]
mark_locklear has quit [Remote host closed the connection]
BigO has joined #ruby
mybrainis404 has quit [Ping timeout: 255 seconds]
shorne has joined #ruby
rjmt__ has joined #ruby
EyesIsMine has joined #ruby
imami is now known as banseljaj
Morkel has quit [Quit: Morkel]
havenn has joined #ruby
<swarley> ner0x; is that really the entire line one?
jds_ has joined #ruby
<heftig> ner0x: look at it in binary form
emergion has quit [Quit: Computer has gone to sleep.]
<heftig> ner0x: maybe the file as a byte-order-mark
Jefus has quit [Ping timeout: 260 seconds]
<heftig> has a
<swarley> File.read.split("\n")[0].each_codepoint.to_a
<swarley> err
phelps has joined #ruby
<swarley> File.read(file_path)*
<swarley> I don't know, I don't use CSV
<swarley> I just sort of assumed that the file would be a text file.. If its not that easy then you're in for a little trouble with my advice
machty has joined #ruby
leonardo_ has joined #ruby
asobrasil has left #ruby [#ruby]
mikepack has joined #ruby
leonardorb has quit [Ping timeout: 246 seconds]
jds_ has quit [Ping timeout: 264 seconds]
<heftig> ner0x: try CSV.foreach(file_path, "r:bom|utf-8")
<heftig> with a BOM, I do get the same error here
jackbrownhf has joined #ruby
staafl has joined #ruby
emergion has joined #ruby
iamjarvo_ has joined #ruby
emptyflask has joined #ruby
advorak has joined #ruby
ryanf has left #ruby [#ruby]
emergion has quit [Client Quit]
<rking> cpanm Regexp::Debugger; perl -MRegexp::Debugger -e '"Ruby step yo game up" =~ /.*o/'
rakl has joined #ruby
rjmt__ has quit [Read error: No route to host]
rjmt__ has joined #ruby
Virunga has quit [Remote host closed the connection]
afgeneralist has joined #ruby
benlieb has joined #ruby
nemesit has quit [Ping timeout: 260 seconds]
adelcampo has quit [Quit: Linkinus - http://linkinus.com]
Virunga has joined #ruby
doritostains has joined #ruby
<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.]
Juul has quit [Read error: Operation timed out]
<afgeneralist> blazes816 thanks
robustus has quit [Quit: ZNC - http://znc.in]
<afgeneralist> did that work?
<blazes816> yep
<cableray> my client also notifies me if the message starts with "all". is that common?
key has quit [Quit: zzz]
thoolihan has quit [Ping timeout: 248 seconds]
jackbrownhf has quit [Quit: Sto andando via]
doritostains has joined #ruby
<blazes816> David_Miller: it's standard behavior http://www.ruby-doc.org/core-1.9.3/Hash.html
<blazes816> check out the 'go fish' example
<afgeneralist> I didn't realize 'all' did. I'll probably stop that.
tbrock has joined #ruby
<blazes816> mine doesn't notify on all, that's interesting
<blazes816> (xchat on osx fwiw)
<David_Miller> blazes816: my example is a little different because I write to the key
<David_Miller> and it doesnt show in keys
c0rn has joined #ruby
<David_Miller> it it no longer a default
<blazes816> well, you're actually writing to the default
<David_Miller> oh
<David_Miller> i see
<blazes816> idk why "a[:i]" works though
c0rn has quit [Client Quit]
<blazes816> probably just not thinking through it all correctly
<David_Miller> you are right
<David_Miller> a[:i] works because it returns the default
<blazes816> hahaha
slainer68 has quit [Remote host closed the connection]
<blazes816> of course!
<David_Miller> hmm I wonder how I can get a new array for each new key
slainer68 has joined #ruby
hotovson has quit [Remote host closed the connection]
shorne has quit [Ping timeout: 265 seconds]
<blazes816> David_Miller: a = Hash.new { |hash, key| hash[key] = [] }
<David_Miller> oh cool
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]
lenodroid has joined #ruby
<seydar> shevy: also i want your opinion on this: http://bitbucket.org/seydar/chitin
aharris6 has joined #ruby
<shevy> ok
<burgestrand> nesoi: at the very least the documentation states a few errors that methods may raise
hjjgfddghu has joined #ruby
<nesoi> burgestrand : true. so in ruby, what happens if errors are raised? does the program crash?
<burgestrand> nesoi: unless you rescue them, yes
jds_ has quit [Remote host closed the connection]
<nesoi> ok, thanks
mneorr has quit [Remote host closed the connection]
<shevy> seydar, a shell!
lenodroid has quit [Read error: Connection reset by peer]
<seydar> and it works. like, really well. i use it fulltime
<nesoi> cool, thanks muchly
nesoi has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
hjjgfddghu has quit [Read error: Connection reset by peer]
<shevy> I test
<shevy> Fetching: chitin-1.0.1.gem (100%)
hasse_ has joined #ruby
<seydar> actually i recommend using HEAD. or better let, lemme push the latest version now.
<seydar> it's 99% release ready.
<shevy> nothing beats "gem install foo" :)
<shevy> Could not find coolline (>= 0) amongst [bigdecimal-1.1.0, chitin-1.0.1, io-console-0.3, json-1.5.4, minitest-2.5.1, rake-0.9.2.2, rdoc-3.9.4, wirble-0.1.3] (Gem::LoadError)
<shevy> hmm
<shevy> oh I am dumb
<shevy> I used the alias for apt-get rather than gem install just now
<hasse_> How do I update a record using DataMapper without fetching it first?
Goles has joined #ruby
<seydar> shevy: i gotta roll, but try it out and lemme know what you think. HEAD is a better version
<seydar> and if you have syntax suggestions, lemme know
seydar has quit [Quit: leaving]
adamjleonard has quit [Quit: Leaving...]
pcarrier has quit []
devdazed has quit [Quit: Bye]
c0rn has joined #ruby
andre____ has quit [Remote host closed the connection]
leonardorb has joined #ruby
axl_ has joined #ruby
pac1 has joined #ruby
Goles_ has joined #ruby
Goles has quit [Read error: Connection reset by peer]
jonahR has quit [Quit: jonahR]
Goles has joined #ruby
pu22l3r has joined #ruby
leonardorb has quit [Ping timeout: 246 seconds]
Michae___ has quit [Remote host closed the connection]
Goles__ has joined #ruby
cheier has quit [Quit: cheier]
shtirlic has quit [Remote host closed the connection]
dukedave has quit [Quit: Leaving.]
mguy has joined #ruby
philcrissman has quit [Remote host closed the connection]
Goles_ has quit [Ping timeout: 246 seconds]
korishev has quit [Quit: korishev]
Virunga has quit [Remote host closed the connection]
postmodern has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
Goles has quit [Read error: Connection reset by peer]
Goles has joined #ruby
the_jeebster has joined #ruby
futurechimp has left #ruby ["Leaving"]
Goles__ has quit [Read error: Connection reset by peer]
Goles_ has joined #ruby
tommyvyo has joined #ruby
theRoUS has quit [Ping timeout: 248 seconds]
aharris6 has quit [Remote host closed the connection]
Goles__ has joined #ruby
skattyadz has joined #ruby
tyfighter has joined #ruby
carlyle has quit [Remote host closed the connection]
Goles has quit [Ping timeout: 255 seconds]
Goles___ has joined #ruby
byennen has quit [Read error: Connection reset by peer]
byennen has joined #ruby
pu22l3r has quit [Remote host closed the connection]
Goles_ has quit [Ping timeout: 265 seconds]
byennen has quit [Read error: Connection reset by peer]
byennen has joined #ruby
skattyadz has quit [Client Quit]
_nitti has joined #ruby
Goles__ has quit [Ping timeout: 260 seconds]
robbyoconnor has joined #ruby
wjw has joined #ruby
seich- has quit [Ping timeout: 246 seconds]
mneorr has joined #ruby
<wjw> I am running Ruby 1.8.7. What gem do I install to get Rational (the class)?
cardoni has quit [Quit: cardoni]
centipedefarmer has joined #ruby
Goles___ has quit [Ping timeout: 248 seconds]
tbrock has quit [Quit: Computer has gone to sleep.]
segv- has quit [Quit: segv-]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
_nitti has quit [Ping timeout: 264 seconds]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby