<soahccc>
Is there a way to get rid of this message as it just seems to be a simple warning which doesn't alter anything: /Users/chaos/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/shellwords.rb:80: warning: regexp match /.../n against to UTF-8 string
sockmonk has joined #ruby-lang
<drbrain>
soahccc: try upgrading ruby
cantonic_ has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
cantonic has quit [Read error: Operation timed out]
cantonic_ is now known as cantonic
<soahccc>
drbrain: Well I actually need this version as a gem breaks it's behaviour on 1.9.3 which I can't fix now. Can't I just catch them somehow? Are they rescuable?
_malte has joined #ruby-lang
postmodern has joined #ruby-lang
viking has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 276 seconds]
spuk has joined #ruby-lang
<drbrain>
$-w = 0
<drbrain>
(I think)
slyphon_ has joined #ruby-lang
<drbrain>
there's a way to disable all warnings
mammoth_tusk has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 240 seconds]
_malte has quit [Ping timeout: 250 seconds]
<soahccc>
hmm
Mon_Ouie has joined #ruby-lang
<zzak>
what is bc math?
<drbrain>
zzak: man bc
<zzak>
genius!
<soahccc>
what does the /n actually mean though? Isn't mentioned in the doc as far as I can see
<drbrain>
IIRC, n is binary
<drbrain>
ah, no encoding
<whitequark>
soahccc: def $stderr.write(str); return if str =~ /regexp match \/\.\.\.\/n against to UTF-8 string/; end
<soahccc>
whitequark: well, pragmatic :)
<soahccc>
drbrain: How do you managed to find that info? Google sucks for coding related things in some cases
<zenspider>
I should prolly just make those comments in the code
<zzak>
decided to go with a table for stdlib eh?
<havenn_>
Did I just imagine that Set was getting bumped to first-class citizen in 2.0.0? I'd have sworn..
<drbrain>
havenn_: I don't think so
<havenn_>
drbrain: Hrm, maybe I'm thinking of someone's wishlist. I just thought it didn't need 'require "set"' anymore but preview1 & 2 say otherwise!
wmoxam has quit [Read error: Connection reset by peer]
<zzak>
zenspider: other than that, it looks great
havenn has joined #ruby-lang
<drbrain>
havenn_: it may have been on a wishlist
<Spaceghostc2c>
zenspider: I guess 'no' then?
chimkan has quit [Quit: chimkan]
justinseiter has quit [Remote host closed the connection]
davidbalbert is now known as davidbalber|away
mjio has quit []
nerd has quit [Quit: WeeChat 0.3.9.2]
havenn_ has quit [Ping timeout: 246 seconds]
mpan has joined #ruby-lang
blazes816 has quit [Quit: blazes816]
s0ber_ has joined #ruby-lang
levicole has quit [Ping timeout: 244 seconds]
snk has quit [Ping timeout: 244 seconds]
s0ber has quit [Ping timeout: 252 seconds]
s0ber_ is now known as s0ber
levicole has joined #ruby-lang
robotmay has quit [Remote host closed the connection]
mercwithamouth has joined #ruby-lang
_malte has joined #ruby-lang
gregmoreno has quit [Ping timeout: 265 seconds]
snk has joined #ruby-lang
_malte has quit [Ping timeout: 244 seconds]
sent-hil has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
mwjcomputing has joined #ruby-lang
Spaceghost|cloud has joined #ruby-lang
whiteknight has joined #ruby-lang
cirwin has quit [Ping timeout: 248 seconds]
whiteknight has left #ruby-lang [#ruby-lang]
wknight8111 has joined #ruby-lang
<wknight8111>
is there anybody here who can answer a newbie question?
<Spaceghost|cloud>
Nope, we all died early, hipsters that we are.
<postmodern>
are they still working on adding authentication? :P
<postmodern>
and not exposing the entire DB to the internet
<tpope>
yeah that's exactly the sort of shit I hate
_malte has joined #ruby-lang
datanoise has quit [Ping timeout: 264 seconds]
<havenn>
postmodern: Haha, yeah the finer points...
jobicoppola has quit [Ping timeout: 252 seconds]
<charliesome>
meteor represents everything that is wrong with the web development scene these days
crazyhorse18 has quit [Remote host closed the connection]
<havenn>
charliesome: I dunno, pretty elegant compared to much of the web.
<havenn>
Like comparing a slug to a pidgeon.
_malte has quit [Ping timeout: 252 seconds]
<havenn>
s/pidgeon/pigeon
<charliesome>
the web would be a better place is js was much slower
<charliesome>
then people would only use it for shit where it actually does a good thing
yfeldblum has quit [Ping timeout: 240 seconds]
<zenspider>
yes, because the web in 1996 was a Good Thing™
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Ping timeout: 276 seconds]
banisterfiend has joined #ruby-lang
yfeldblum has joined #ruby-lang
gsav_ has joined #ruby-lang
gsav has quit [Ping timeout: 250 seconds]
dzhulk has joined #ruby-lang
otherj has joined #ruby-lang
briantrust has quit [Remote host closed the connection]
<otherj>
is there an easy way to compare an object parameter against a hash and if it matches use the hashe's value to,set the value of a different object?
yfeldblum has quit [Ping timeout: 240 seconds]
_malte has joined #ruby-lang
setmeaway has joined #ruby-lang
_malte has quit [Ping timeout: 255 seconds]
ejholmes has joined #ruby-lang
joooooo has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby-lang
<zenspider>
otherj: define "object parameter"
otherj has left #ruby-lang [#ruby-lang]
datanoise has joined #ruby-lang
havenn has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 264 seconds]
sush24 has joined #ruby-lang
burgestrand has joined #ruby-lang
<zenspider>
or don't
_malte has joined #ruby-lang
rippa has joined #ruby-lang
_malte has quit [Ping timeout: 240 seconds]
datanoise has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
rohit has quit [Quit: Leaving]
mistym has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 250 seconds]
gsav_ has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
mjbamford has joined #ruby-lang
vlad_starkov has joined #ruby-lang
BigO has joined #ruby-lang
gmci_ has quit [Quit: Computer has gone to sleep.]
BigO has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
havenn has quit [Ping timeout: 240 seconds]
ttilley has quit [Quit: ttilley]
rohit has quit [Ping timeout: 240 seconds]
mistym has quit [Remote host closed the connection]
tenderlove has quit [Remote host closed the connection]
rohit has joined #ruby-lang
io_syl has joined #ruby-lang
faces has joined #ruby-lang
havenn has joined #ruby-lang
facest has quit [Ping timeout: 252 seconds]
schaerli has joined #ruby-lang
coliflor has quit [Ping timeout: 245 seconds]
rohit has quit [Quit: Leaving]
havenn has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby-lang
headius has joined #ruby-lang
tenderlove has joined #ruby-lang
<yorickpeterse>
Morning folks
postmodern has quit [Quit: Leaving]
_malte has quit [Remote host closed the connection]
_malte has joined #ruby-lang
solars has joined #ruby-lang
_malte has quit [Ping timeout: 248 seconds]
jashank has quit [Changing host]
jashank has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
ephemerian has joined #ruby-lang
dc5ala has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
<whitequark>
zenspider: yes, because the fact that twitter can easily eat up 20GB of RAM is definitely a very good thing
<whitequark>
we need more websites like that. travis, for example, is absolutely awesome.
<whitequark>
yay jquery programmers.
vlad_starkov has quit [Remote host closed the connection]
<whitequark>
this is also the reason that mozilla thingy called B2G is an utterly idiotic idea. yeah, let's get everything which is slow in the web and put it on slow low-cost hardware. it's already laggy on SGS2, which at the point of its release was the fastest smartphone on market.
<whitequark>
but It Contains JavaScript. how that couldn't be a good thing.
<whitequark>
now everyone can write shitty slow applications and cause even more frustration to their users.
<whitequark>
</rant>
<yorickpeterse>
tbh I think Firefox OS/boot 2 gecko is quite a neat idea
<yorickpeterse>
But I'll wait to see how well/bad it performs
<whitequark>
yorickpeterse: HTML is an awful thing to write complex layouts in.
<whitequark>
I've had a neat picture somewhere, a tabbed pane with tabs on each of the four sides of it
robotmay has joined #ruby-lang
<whitequark>
useless from the point of UX, but it took no more than a 2 MHz CPU to render, and it was fast.
<yorickpeterse>
It depends on how you write it and what tools you use
postmodern has joined #ruby-lang
<yorickpeterse>
though I do feel that it can learn a lot from how desktop apps are built
<whitequark>
and now for some stupid reason that shouldn't even exist in the first place you need a shitload of JS and CSS3 and (oh god) GPU acceleration
<whitequark>
and transparent PNGs
<whitequark>
and suddenly you get 20GB-sized twitter which is slow on my i7, which is still fastest 4-core CPU ever been put into a notebook
<whitequark>
*.
<whitequark>
good job,
<whitequark>
android didn't even have jit until very recently, and it worked quite well, especially when you take into account that it, until 4th version, wasn't an OS built for touchscreen devices at all
dr_bob has joined #ruby-lang
<whitequark>
yorickpeterse: HTML simply isn't good for layouts, because it is a markup language. the fact that you can position elements neatly if you fuck with it long enough is a mere side effect
<yorickpeterse>
What would you rather write layouts in?
<yorickpeterse>
Don't say "Glade" or something like that
faces has quit [Read error: Connection reset by peer]
<whitequark>
yorickpeterse: android layout engine is nice. qt's one is pretty good either.
faces has joined #ruby-lang
<yorickpeterse>
Hm, haven't used either
<whitequark>
didn't work with glade, but gtk is generally very poorly designed, as every other thing gnu, so I doubt it's any good.
<yorickpeterse>
it's shit
<yorickpeterse>
Typical case of "Lets abuse XML for evil"
Averna has quit [Quit: Leaving.]
sepp2k has joined #ruby-lang
<whitequark>
well, android loves XML, but they do it quite wisely. their Java code doesn't tend to contain FactoryFactories as well; it's quite a pleasure to work with, if that term could ever be applied to any Java code at all.
wudofyr has quit [Remote host closed the connection]
Weems has quit [Read error: Connection reset by peer]
wudofyr has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
wudofyr has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
wudofyr has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 240 seconds]
wudofyr has quit [Remote host closed the connection]
wudofyr has joined #ruby-lang
mpfundstein has joined #ruby-lang
s1n4 has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
wudofyr has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
wudofyr has joined #ruby-lang
npj has joined #ruby-lang
vmoravec has quit [Remote host closed the connection]
wudofyr has quit [Remote host closed the connection]
dzhulk has joined #ruby-lang
slyphon_ has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
slyphon_ has joined #ruby-lang
ddd1 has joined #ruby-lang
ddd has quit [Ping timeout: 245 seconds]
headius has quit [Quit: headius]
wallerdev has quit [Quit: wallerdev]
fushi has quit [Quit: fushi]
jxie has joined #ruby-lang
vmoravec has joined #ruby-lang
thone has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby-lang
zmack has joined #ruby-lang
chaseston has joined #ruby-lang
klebervi_ has joined #ruby-lang
kleberv__ has joined #ruby-lang
sush24 has quit [Ping timeout: 255 seconds]
GarethAdams has joined #ruby-lang
klebervi_ has quit [Ping timeout: 256 seconds]
thone has joined #ruby-lang
sush24 has joined #ruby-lang
heftig has joined #ruby-lang
sush24_ has joined #ruby-lang
sush24 has quit [Ping timeout: 250 seconds]
kleberv__ has quit [Read error: Connection timed out]
klebervi_ has joined #ruby-lang
slyphon__ has joined #ruby-lang
<kith>
does scruffy require imagemagick?
slyphon_ has quit [Ping timeout: 245 seconds]
setmeaway has quit [Read error: Connection reset by peer]
kleberv__ has joined #ruby-lang
setmeaway has joined #ruby-lang
klebervi_ has quit [Ping timeout: 255 seconds]
yxhuvud has quit [Read error: Connection reset by peer]
yxhuvud has joined #ruby-lang
khaase has quit [Ping timeout: 245 seconds]
randym has quit [Ping timeout: 245 seconds]
masterkorp has quit [Ping timeout: 245 seconds]
khaase has joined #ruby-lang
randym has joined #ruby-lang
matthewd has quit [Remote host closed the connection]
matthewd_ has joined #ruby-lang
masterkorp has joined #ruby-lang
mindbender1 has joined #ruby-lang
kleberv__ has quit [Read error: Connection timed out]
klebervi_ has joined #ruby-lang
Guest31858 has joined #ruby-lang
burgestrand has joined #ruby-lang
chaseston has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
x0F has quit [Read error: Connection reset by peer]
x0F has joined #ruby-lang
npj has quit [Quit: Page closed]
burgestrand1 has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
dr_bob has quit [Ping timeout: 240 seconds]
sush24_ has quit [Ping timeout: 252 seconds]
burgestrand has quit [Ping timeout: 240 seconds]
dr_bob has joined #ruby-lang
sush24_ has joined #ruby-lang
burgestrand1 has quit [Read error: Connection reset by peer]
burgestrand has joined #ruby-lang
sush24_ has quit [Ping timeout: 248 seconds]
gnufied has joined #ruby-lang
blacktul_ has joined #ruby-lang
tbuehlmann has joined #ruby-lang
sush24_ has joined #ruby-lang
blacktulip has quit [Ping timeout: 248 seconds]
nazty has quit [Read error: Connection reset by peer]
nazty has joined #ruby-lang
dr_bob has quit [Ping timeout: 240 seconds]
krz has quit [Quit: krz]
nazty has quit [Read error: Connection reset by peer]
dr_bob has joined #ruby-lang
nazty has joined #ruby-lang
slaytanic has joined #ruby-lang
ruskie has quit [Read error: Operation timed out]
niteshnarayanlal has joined #ruby-lang
leopard_me has joined #ruby-lang
sush24_ has quit [Quit: This computer has gone to sleep]
faustman has joined #ruby-lang
ruskie has joined #ruby-lang
coolbananas118 has joined #ruby-lang
Guest31858 has left #ruby-lang [#ruby-lang]
JohnBat26 has quit [Remote host closed the connection]
<niteshnarayanlal>
hi I was getting usr/local/share/gems/gems/bundler-1.2.3/lib/bundler/spec_set.rb:90:in `block in materialize': Could not find multi_json-1.3.6 in any of the sources (Bundler::GemNotFound)
<niteshnarayanlal>
from /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler
matthewd_ has quit [Ping timeout: 259 seconds]
<niteshnarayanlal>
this error although I had installed rubygem-multi_json
faustman has quit [Ping timeout: 250 seconds]
<niteshnarayanlal>
I tried to use gem install multi_json but getting `require': cannot load such file -- json/pure (LoadError)
kurko_ has joined #ruby-lang
kurko_ has quit [Client Quit]
<yorickpeterse>
Did you add the Gem to your Gemfile?
Banistergalaxy has quit [Ping timeout: 244 seconds]
<niteshnarayanlal>
bundler-1.2.3/lib/bundler/spec_set.rb:90:in `block in materialize': Could not find multi_json-1.3.6 in any of the sources (Bundler::GemNotFound)
<niteshnarayanlal>
got this error
pound has joined #ruby-lang
<niteshnarayanlal>
and then when I tired to install
<niteshnarayanlal>
gem install multi_json
<niteshnarayanlal>
then I got the error
<niteshnarayanlal>
/usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- json/pure (LoadError)
<niteshnarayanlal>
yorickpeterse, ^^
<yorickpeterse>
Did you run `bundle install`?
mwjcomputing has quit [Read error: Connection reset by peer]
<niteshnarayanlal>
yeap I tried gem install bundler
<yorickpeterse>
Math.PI would mean "Call PI that is defined under Math"
<yorickpeterse>
fun fact: both can be used for constants
<yorickpeterse>
and methods
krz has joined #ruby-lang
<Technodrome>
ddd: its just hard to google in general
<Technodrome>
i get it now
mjbamford has quit [Quit: Leaving...]
carloslopes has quit [Read error: Connection reset by peer]
carloslopes has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
dc5ala has quit [Quit: Ex-Chat]
madish has joined #ruby-lang
sush24 has joined #ruby-lang
schaerli has joined #ruby-lang
Technodrome has quit [Quit: Leaving.]
sush24 has quit [Client Quit]
heftig has quit [Quit: leaving]
Guest78419 has quit [Ping timeout: 244 seconds]
slyphon__ has quit [Ping timeout: 244 seconds]
rsl has joined #ruby-lang
mwjcomputing has quit [Read error: Connection reset by peer]
mwjcomputing has joined #ruby-lang
spectra- has quit [Ping timeout: 246 seconds]
carloslopes has quit [Remote host closed the connection]
JohnHirbour has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
mercwithamouth has joined #ruby-lang
spectra has joined #ruby-lang
sush24 has joined #ruby-lang
slyphon__ has joined #ruby-lang
slyphon_wtf has joined #ruby-lang
postmodern has quit [Quit: Leaving]
slyphon__ has quit [Ping timeout: 245 seconds]
srbaker has joined #ruby-lang
Denommus has joined #ruby-lang
madish has quit [Read error: Connection reset by peer]
madish has joined #ruby-lang
<Denommus>
guys
<Denommus>
I'm trying to test a sinatra application called webirc
<Denommus>
but all its require use the format "lib/<some lib>", and ruby can't find them
<Denommus>
how do I make it find?
<andrewvos>
Denommus: require_relative might work
<andrewvos>
Denommus: Or add the lib directory to the load path
<tbuehlmann>
or using $LOAD_PATH.unshift(File.dirname(__FILE__)) beforehand
areil_ has joined #ruby-lang
wyhaines has joined #ruby-lang
<workmad3>
Denommus: the 'lib/' prefix is likely to be unnecessary, as the normal convention is for the lib/ path in a gem or app to be on the load path
<Denommus>
workmad3: I wasn't the one to make the application
areil has quit [Ping timeout: 252 seconds]
sailias has joined #ruby-lang
<Denommus>
tbuehlmann's solution worked very well
havenn has joined #ruby-lang
areil has joined #ruby-lang
havenn has quit [Remote host closed the connection]
<Denommus>
thank you, tbuehlmann
<tbuehlmann>
welcome!
areil_ has quit [Ping timeout: 264 seconds]
slyphon_wtf has quit [Ping timeout: 245 seconds]
dabradley has joined #ruby-lang
banister_ has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 248 seconds]
areil has quit []
slyphon_wtf has joined #ruby-lang
matthewd has quit [Ping timeout: 259 seconds]
matthewd has joined #ruby-lang
nwertman has joined #ruby-lang
<andrewvos>
workmad3: That's only really for gems though. In a sinatra app you have to do it yourself.
<workmad3>
andrewvos: ah, fair enough
wyhaines has quit [Remote host closed the connection]
<workmad3>
andrewvos: I'm used to rails apps too, where that's done for you, and app templates that set up lib/ on your load_path for you too :)
<andrewvos>
workmad3: Oh yeah and rails. I've never worked with rails properly.
<workmad3>
andrewvos: I did say it was a normal convention rather than completely automatic though ;)
<workmad3>
andrewvos: but I guess that assumes a fair bit about normalcy
<andrewvos>
workmad3: Well yeah, it's normal to add lib to your load path. I get that, I was just implying that you will often have to do it for your personal projects.
<workmad3>
yeah, I forget that bit :)
<andrewvos>
workmad3: Rails is good at making you unlearn things :)
<andrewvos>
Rails is not unlike Charles Manson.
slyphon_wtf has quit [Ping timeout: 245 seconds]
yalue has joined #ruby-lang
faustman has quit [Read error: Operation timed out]
<workmad3>
:P
jtoy has joined #ruby-lang
banister_ has quit [Read error: Connection timed out]
banisterfiend has joined #ruby-lang
carloslopes has joined #ruby-lang
davidbalber|away is now known as davidbalbert
elico has joined #ruby-lang
dreamfactory has quit [Remote host closed the connection]
Denommus has quit [Remote host closed the connection]
Denommus has joined #ruby-lang
rcvalle has quit [Ping timeout: 276 seconds]
burgestrand has quit [Quit: Leaving.]
sush24 has quit [Quit: This computer has gone to sleep]
Denommus has quit [Remote host closed the connection]
<gjaldon>
my prob is I'm getting a 'got: nil (using ==)' in my spec which leads to a failure
<gjaldon>
andrewvos, let me know if you need any more details
davidbalbert is now known as davidbalber|away
<yorickpeterse>
gjaldon: turn on syntax highlighting
<yorickpeterse>
(change the extension to .rb)
wyhaines has quit [Read error: Connection reset by peer]
<andrewvos>
gjaldon: you're not returning any sort of object in your registration_confirmation method?
<andrewvos>
gjaldon: RestClient.post will not have a .to method
<andrewvos>
gjaldon: I mean, the result of RestClient.post will not have a .to method
<judofyr>
andrewvos: it's ActionMailer magic
<andrewvos>
judofyr: You are taking the piss?
<judofyr>
andrewvos: oh, but yeah, there's something funky here
<andrewvos>
judofyr: It turns a post call into an object?
wyhaines has joined #ruby-lang
<yorickpeterse>
andrewvos: hint: /^action_.+/
<yorickpeterse>
METHOD MISSING EVERYWHERE
<yorickpeterse>
I better not put that on Twitter otherwise I might be told to go fuck myself
<andrewvos>
judofyr: I'm inclined to say "off to #RubyOnRails with you"
gsav has quit [Quit: Lost terminal]
elico has quit [Quit: Elico]
<judofyr>
andrewvos: oh wait, I completely misunderstood. I think you're not supposed to actually send it in in the method definition. it should only build the mail.
<judofyr>
gjaldon: ^
headius has joined #ruby-lang
<judofyr>
gjaldon: you can setup ActionMailer to use Mailgun's STMP instead.
<gjaldon>
andrewvos: I see. so how do I test if subject, from and to are correct?
<andrewvos>
gjaldon: There's an example there
<gjaldon>
judofyr, andrewvos: i used the HTTP API cos it said in Mailgun's docs that it's easier and more 'advisable'. Is there no way to test them or does it actually make sense to test them since it's probably well-tested already?
<judofyr>
gjaldon: you might be able to write a custom delivery method that POSTs
<andrewvos>
gjaldon: There's no harm in testing your code
<gjaldon>
judofyr, andrewvos: how do I go about writing a custom delivery method that POSTs? sorry quite new here. maybe you could point me to a resource I could read up?
<judofyr>
gjaldon: I actually have no idea :)
<andrewvos>
gjaldon: Well thenyou don'tneed action mailer if you don't use their method of mailing
<judofyr>
heh, true
klebervi_ has quit [Remote host closed the connection]
klebervirgilio has joined #ruby-lang
<gjaldon>
andrewvos, judofyr: so you mean it's useless to have the class RegistrationMailer to inherit from ActionMailer::Base
<gjaldon>
?
<andrewvos>
gjaldon: Exactly
<judofyr>
gjaldon: yes. you're not using anything in ActionMailer
<gjaldon>
andrewvos, judofyr: thanks, guys. :-) would never have realized that.lol was too concerned about my tests returning nil
<gjaldon>
and now I know why
<andrewvos>
gjaldon: Unless of course Rails is all like "YOU CAN ONLY USE ACTIONMAILER DON'T USE ANYTHING ELSE EVER"
nazty has quit [Ping timeout: 264 seconds]
<gjaldon>
andrewvos: :-) so how to test my registration_confirmation method?
krohrbaugh has quit [Quit: Leaving.]
<andrewvos>
gjaldon: Well, you want to be sure that it's posting the correct values right?
JohnHirbour has left #ruby-lang [#ruby-lang]
<gjaldon>
andrewvos: yes, thats right
klebervirgilio has quit [Ping timeout: 276 seconds]
<andrewvos>
gjaldon: You could do (and I hate you for making me write rspec) something like `RestClient.should_receive(:post), :with => {:to => "andrew@vos.com"}`
solars has quit [Ping timeout: 252 seconds]
headius has quit [Quit: headius]
headius has joined #ruby-lang
<judofyr>
gjaldon: don't worry, he doesn't really hate you
<gjaldon>
lol judofyr
<judofyr>
(andrewvos: right?)
<injekt>
rspec D:
<andrewvos>
hehe yes judofyr
<andrewvos>
I'm South African, I say rude things without noticing.
<oddmunds>
andrewvos: what do you prefer to rspec?
<yorickpeterse>
bacon
<gjaldon>
andrewvos, the help's all the more appreciated then. :-) so I guess you prefer Test::Unit(not sure if that's the one)?
<injekt>
minitest
yfeldblum has quit [Ping timeout: 240 seconds]
<havenn>
+1 minitest/spec
<injekt>
gjaldon: test/unit pre 1.9, minitest post
<gjaldon>
thanks injekt ! minitest the
<gjaldon>
*then
zhul_mechanos has joined #ruby-lang
<oddmunds>
i wanted to start a fight
<andrewvos>
gjaldon: Yes minitest is great, although banisterfiend has made me like bacon lately.
<injekt>
gjaldon: use whatever you find best, though
<andrewvos>
injekt: Yes. As long as it is only minitest or spec right? :)
<oddmunds>
andrewvos: you hate rspec, but like the rspec clone?
<injekt>
andrewvos: exactly
<injekt>
oddmunds: to be fair to him, bacon adds 2(?) methods to Object
<injekt>
and it's tiny
<gjaldon>
thanks for the inputs andrewvos and injekt. will check out banisterfriend and minitest
<zzak>
i need to get my hot chocolate coffee going
<mcmullins>
I wish I knew a little bit more about C++
<mcmullins>
but I'll see if I can figure out what #close is trying to do
<injekt>
mcmullins: I showed you the code (and it's C :)
Verdi_ has joined #ruby-lang
<mcmullins>
ahh see
<mcmullins>
I wish I knew how to interpret the difference between C++ and C then >_<
<injekt>
mcmullins: it calls closedir() whcih is a C function that frees the buffer that readding the dir uses
<mcmullins>
ahh sweet
<mcmullins>
thank you, that's good to know
judofyr has quit [Remote host closed the connection]
<injekt>
so Dir#close fetches the dir, frees the memory and removes references to the underlying dir object
<injekt>
so you dont need to do anything gc related yourself
dzhulk has quit [Quit: Leaving.]
sepp2k has quit [Quit: Leaving.]
Uranio has quit [Quit: WeeChat 0.3.8]
<mcmullins>
ok
<mcmullins>
I know this is probably out of the channels scope
<mcmullins>
but where can I find the C documentation?
<injekt>
mcmullins: man closedir
davidbalber|away is now known as davidbalbert
<injekt>
" The closedir() function closes the named directory stream and frees the
<injekt>
structure associated with the dirp pointer, returning 0 on success. On
<injekt>
failure, -1 is returned and the global variable errno is set to indicate the
<injekt>
error."
<injekt>
sorry
<injekt>
bah
<yorickpeterse>
paste fail
<injekt>
aye
<mcmullins>
thank y'all so much!
taf2 has joined #ruby-lang
<taf2>
here's a question… i have a string of digits e.g. "1234567890" and I'd like to expand that string of digits into an array of increasing sequence of digits e.g. ['1', '12','123','1234','12345','123456','1234567','12345678','123456789',…]
<taf2>
anyone can think of a clever way to express that in ruby
<andrewvos>
taf2: loop?
<taf2>
input is string, output is array
carloslopes has joined #ruby-lang
<taf2>
andrewvos: yes loop but can you what's the least complex way?
<taf2>
e.g. is this an O(n) problem or O(n^2) or O(n^m) ?
srbaker has quit [Quit: Computer has gone to sleep.]
Sambalero has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
cirwin has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
pangel has joined #ruby-lang
mrsolo has joined #ruby-lang
cirwin has quit [Ping timeout: 260 seconds]
wallmani has left #ruby-lang ["WeeChat 0.4.0-dev"]
workmad3 has quit [Ping timeout: 250 seconds]
eric_ is now known as rhizmoe
_malte has joined #ruby-lang
sent-hil has quit [Remote host closed the connection]
s1n4 has joined #ruby-lang
datanoise has joined #ruby-lang
briantrust has joined #ruby-lang
sent-hil has joined #ruby-lang
_malte has quit [Remote host closed the connection]
_malte has joined #ruby-lang
ebouchut has quit [Quit: This computer has gone to sleep]
kith_ has joined #ruby-lang
datanoise has quit [Ping timeout: 256 seconds]
mpfundstein has quit [Ping timeout: 250 seconds]
Austin__ has joined #ruby-lang
_malte has quit [Read error: Operation timed out]
sent-hil has quit [Remote host closed the connection]
sush24 has quit [Quit: This computer has gone to sleep]
kith has quit [Ping timeout: 260 seconds]
sent-hil has joined #ruby-lang
BigO has quit [Remote host closed the connection]
BigO has joined #ruby-lang
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
havenn has quit [Read error: No route to host]
sush24 has joined #ruby-lang
BigO has quit [Ping timeout: 244 seconds]
havenn has joined #ruby-lang
benanne has joined #ruby-lang
andrew has joined #ruby-lang
andrew is now known as Guest34772
jtoy has quit [Quit: jtoy]
Guest34772 is now known as andrewhl
coliflor has joined #ruby-lang
wallerdev has joined #ruby-lang
kobaltz has joined #ruby-lang
kobaltz has left #ruby-lang [#ruby-lang]
kobaltz has joined #ruby-lang
kobaltz has quit [Client Quit]
<zzak>
zenspider: ping! can we make the minitest readme .rdoc? it seems like it's already using rdoc internally, so either extension or modeline patch welcome?
mindbender1 has joined #ruby-lang
<drbrain>
zzak: in the ruby source the minitest readme is displayed via :include:
muji has joined #ruby-lang
<drbrain>
so we shouldn't list it as a page
<drbrain>
lunch time
muji has quit [Client Quit]
vlad_starkov has quit [Ping timeout: 250 seconds]
crankharder has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
<zzak>
poop
drbrain has quit [Remote host closed the connection]
drbrain has joined #ruby-lang
benwoody has left #ruby-lang [#ruby-lang]
drbrain has quit [Read error: Connection reset by peer]
carloslopes has quit [Remote host closed the connection]
drbrain has joined #ruby-lang
carloslopes has joined #ruby-lang
benwoody has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
crankharder has joined #ruby-lang
elico has joined #ruby-lang
wallerdev has joined #ruby-lang
drbrain has quit [Ping timeout: 264 seconds]
Denommus has joined #ruby-lang
robotmay has quit [Ping timeout: 240 seconds]
cirwin has joined #ruby-lang
ebouchut has joined #ruby-lang
<tockitj_>
if there is a base class Base with two methods method_one and method_two, and another class Derived implements method_one which calls super, then how should method_two (which is aliased method_one in Derived) behave ?
<tockitj_>
should super call execute Base#method_one or Base#method_two ?
jaimef_ has quit [Excess Flood]
jaimef has joined #ruby-lang
robotmay has joined #ruby-lang
<tockitj_>
Derived class inherits Base class
ebouchut has quit [Client Quit]
sush24 has quit [Quit: This computer has gone to sleep]
johndozzz has quit []
<apeiros_>
tockitj_: super always calls the method of the same name
jtoy has joined #ruby-lang
<tockitj_>
nice
<apeiros_>
and calling a method on the object always goes through the whole stack
srbaker has joined #ruby-lang
banisterfiend has quit [Ping timeout: 246 seconds]
dzhulk has quit [Quit: Leaving.]
ebouchut has joined #ruby-lang
ryanf has joined #ruby-lang
Denommus has quit [Remote host closed the connection]
_malte has joined #ruby-lang
<tockitj_>
apeiros_, is there a way for method to figure out under which name it was called ?
joevandyk has quit [Quit: joevandyk]
Denommus has joined #ruby-lang
dzhulk has joined #ruby-lang
datanoise has joined #ruby-lang
herpless_ is now known as herpless
_malte has quit [Ping timeout: 252 seconds]
mistym has joined #ruby-lang
<tockitj_>
if Derived were to include Base (instead of inherit), should it still work ?
<injekt>
tockitj_: try it?
ryanf has quit [Quit: broken pipes |||]
<tockitj_>
NoMethodError: super: no superclass method `assignment_handler'
mpan has quit [Quit: Leaving]
joevandyk has joined #ruby-lang
<injekt>
there's your answer, your superclass doesn't contain that method
defishguy has joined #ruby-lang
bluepojo has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
<tockitj_>
question is should it behave like this
<injekt>
tockitj_: why dont you show us some code I have no idea what you're doing
AndChat| has quit [Remote host closed the connection]
<injekt>
that's essentially what you're doing, and you're expecting it to call 'bar'
<tockitj_>
i'm not expecting anything.. i'm would just want to clarify how it behave
<injekt>
That's how it behaves :)
<tockitj_>
what is exactly semantic of alias ?
<tockitj_>
is it just a new method name that calls old method ?
<tockitj_>
or does it have real definition under that name
banisterfiend has joined #ruby-lang
<tockitj_>
why is current behavior more desirable than one in last example
carloslopes has quit [Remote host closed the connection]
<injekt>
because it makes more sense, andprobably other reasons you would have to ask matz for
<tockitj_>
injekt, thank you
<tockitj_>
i'm still curious if someone else has different opinion on this
sent-hil has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
rcvalle has joined #ruby-lang
<defishguy>
I'm having a challenge with gitlab authenticating to FreeIPA (389ds). The ldap server is reporting "failed to decode LDAP controls" and will not authenticate a user. Help?
davidbalbert is now known as davidbalber|away
mjbamford has joined #ruby-lang
davidbalber|away is now known as davidbalbert
coliflor has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Remote host closed the connection]
ebouchut has quit [Quit: This computer has gone to sleep]
havenn has joined #ruby-lang
Darkspiel has joined #ruby-lang
srbaker has joined #ruby-lang
gaveen has quit [Remote host closed the connection]
Darkspiel_ has joined #ruby-lang
sent-hil has joined #ruby-lang
Darkspiel_ has quit [Client Quit]
jasonthesensei has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
Darkspiel_ has joined #ruby-lang
davidbalbert is now known as davidbalber|away
davidbalber|away is now known as davidbalbert
Darkspiel has quit [Ping timeout: 252 seconds]
jasonthesensei has left #ruby-lang [#ruby-lang]
havenn has quit [Read error: No route to host]
Banistergalaxy has joined #ruby-lang
havenn has joined #ruby-lang
havenn has quit [Ping timeout: 260 seconds]
davidbalbert is now known as davidbalber|away
robotmay has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
sepp2k1 has joined #ruby-lang
cantonic has quit [Quit: cantonic]
sepp2k has quit [Ping timeout: 248 seconds]
briantrust has quit [Read error: Connection reset by peer]
rhizmoe has quit [Ping timeout: 256 seconds]
rhizmoe has joined #ruby-lang
briantrust has joined #ruby-lang
mjbamford has quit [Ping timeout: 248 seconds]
havenn has joined #ruby-lang
rcvalle has quit [Quit: Leaving]
yalue has quit [Read error: Connection reset by peer]
slyphon has quit [Read error: Connection reset by peer]
srbaker has quit [Quit: Computer has gone to sleep.]
joevandyk has quit [Quit: joevandyk]
joevandyk has joined #ruby-lang
ryanlecompte has joined #ruby-lang
srbaker has joined #ruby-lang
chimkan has joined #ruby-lang
rcvalle has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
headius has quit [Quit: headius]
s1n4 has quit [Quit: leaving]
vlad_starkov has quit [Remote host closed the connection]
Kruppe has joined #ruby-lang
BigO_ has joined #ruby-lang
rcvalle has quit [Quit: Leaving]
workmad3 has joined #ruby-lang
AndChat| has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 260 seconds]