<erikh>
call me stupid if you want, but that feels good
tbuehlmann has joined #ruby-lang
savage- has quit [Remote host closed the connection]
kitallis has joined #ruby-lang
futurechimp has joined #ruby-lang
gnufied has joined #ruby-lang
cdt has quit [Quit: Ex-Chat]
neocoin has quit [Remote host closed the connection]
HassanS has quit [Ping timeout: 244 seconds]
srbartlett has quit [Remote host closed the connection]
Asher has quit [Read error: Connection reset by peer]
Asher has joined #ruby-lang
apeiros_ has joined #ruby-lang
sdauboy has joined #ruby-lang
dc5ala has joined #ruby-lang
tekin has joined #ruby-lang
<rfx>
I'm very new to rake, I've got an existing project which has 'rake test' implemented; Is there a way to tell rake to only test a single test file specifically, via the command line? The current task has created a FileList from the test directory
<rfx>
I'm very new to rake, I've got an existing project which has 'rake test' implemented; Is there a way to tell rake to only test a single test file specifically, via the command line? The current task has created a FileList from the test directory
<rfx>
ops ..
ryanf has quit [Ping timeout: 246 seconds]
<drbrain>
if they're using TestTask you can
josh_wines has joined #ruby-lang
joshwines has quit [Read error: Connection reset by peer]
jarib has quit [Excess Flood]
cdt has joined #ruby-lang
sdauboy has left #ruby-lang [#ruby-lang]
robotmay has joined #ruby-lang
jarib has joined #ruby-lang
zz_chrismcg is now known as chrismcg
<rfx>
drbrain: thanks, I see I can use rake test TEST=filename .. thxalot!
perry is now known as perryh_away
codewrangler has quit [Quit: Computer has gone to sleep.]
mssola has joined #ruby-lang
agilob has quit [Ping timeout: 252 seconds]
agilob has joined #ruby-lang
rue_XIV has left #ruby-lang [#ruby-lang]
rue has joined #ruby-lang
<rue>
erikh: This open source thing is pretty cool
symm- has quit [Ping timeout: 252 seconds]
symm- has joined #ruby-lang
woollyams has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby-lang
outsmartin1 has joined #ruby-lang
outsmartin1 has quit [Client Quit]
Hakon|mbp has quit [Quit: Leaving...]
thone_ has joined #ruby-lang
kitallis has quit [Quit: Computer has gone to sleep.]
thone has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Ping timeout: 265 seconds]
dhruvasagar has joined #ruby-lang
Berglund has joined #ruby-lang
ryanf has joined #ruby-lang
ryanf has quit [Ping timeout: 248 seconds]
gsav has joined #ruby-lang
zmack has joined #ruby-lang
voker57 has quit [Remote host closed the connection]
mdstunthamster has joined #ruby-lang
seoaqua has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
petercoo_ has joined #ruby-lang
zmack_ has joined #ruby-lang
dhruvasagar has joined #ruby-lang
seoaqua has joined #ruby-lang
petercoo_ is now known as petercooper_
petercooper_ is now known as peterc
zmack has quit [Ping timeout: 246 seconds]
seoaqua has quit [Ping timeout: 248 seconds]
seoaqua has joined #ruby-lang
toretore has joined #ruby-lang
neocoin has joined #ruby-lang
sailias has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 252 seconds]
srbartlett has joined #ruby-lang
dhruvasagar has joined #ruby-lang
sailias has quit [Quit: Leaving.]
soahccc` is now known as soahccc
gregmore_ has joined #ruby-lang
gregmoreno has quit [Ping timeout: 240 seconds]
woollyams has joined #ruby-lang
Gate has quit [Read error: Operation timed out]
Gate_ has joined #ruby-lang
x0F_ has joined #ruby-lang
x0F has quit [Disconnected by services]
zmack_ is now known as zmack
solars has quit [Ping timeout: 248 seconds]
Criztian has joined #ruby-lang
stardiviner has joined #ruby-lang
stardiviner has quit [Remote host closed the connection]
<rfx>
I've installed ruby from source manually (no rvm), everything working great. Installed couple gems, have application deployed etc. No I realized I'm missing readline support in irb because I forgot to provide libreadline-dev upfront. Is it safe to install the readline-dev package, run ./configure on the ruby sources again and do make/make install? Or is there a chance I can get into trouble?
<rfx>
s/No I/Now I/
srbartlett has quit [Remote host closed the connection]
<burgestrand>
rfx: you can install readline separately from the source directory in ext/readline
rohit has quit [Read error: Connection reset by peer]
Guedes has joined #ruby-lang
Guedes has joined #ruby-lang
soahccc is now known as soahccc`
soahccc` is now known as soahccc
<cha1tanya>
http://pastie.org/4249138 why this strange behavior. Shouldn't answer of last statement be 4
<Mon_Ouie>
I also find that behaviour confusing — not sure if it's intended or a bug
SkramX has quit [Quit: SkramX]
<Muz>
The last() returning 5 makes sense. The .each functionality is arguably more confusing.
<Mon_Ouie>
Muz: Why? begin...end *is* the syntax for excluding the end of the range.
<cha1tanya>
Muz, Mon_Ouie well then why (0..5).last(2) gives 3,4 as answer?
<Muz>
Oh sorry, misread the paste as having ".." as opposed to "..." whoops.
<Muz>
Yeah, the last() method returning 5 in that case strikes me as confusing.
<cha1tanya>
i mean why the 2 different behaviors ?
<rue>
I think that might be a bug
<Muz>
Does it still do that in 1.9.3?
<rue>
Yes
<cha1tanya>
Muz, yes i have tested on 1.9.3-p194
<rue>
By the way, .last(1) works correctly to…
<cha1tanya>
rue, yes so we have 2 different behaviors
<cha1tanya>
without argument it is just returning RANGE_END
<cha1tanya>
i saw the code
<rue>
I’m on bugs.rl.org, I can file it unless you want to do the honours
<cha1tanya>
rue, :D
<cha1tanya>
rue, actually my friend pajama found it
<cha1tanya>
he is not able to post here because he is new to irc
<rue>
That behaviour is what Range#end is supposed to do
<cha1tanya>
i think he is banned because he used fpaste
<rue>
Hah, probably not here. #ruby-long does require nick registration, though
<cha1tanya>
rue, but is it a bug ? or it is coded that way?
<rue>
It’s definitely a bug, unless someone can explain it satisfactorily. There’s no reason for that behaviour, especially given Range#end
<rue>
Range#last should be the actual last element
pajama has left #ruby-lang [#ruby-lang]
<cha1tanya>
unless they are synonyms, ( like to_sym and intern)
countdigi has quit [Quit: leaving]
<Mon_Ouie>
I wonder if you could argue that 4 isn't the last element because 4.9 is in the range too — depends on whether you use include? or member?
<cha1tanya>
rue, how to fix a filed bug?
<rue>
Mon_Ouie: You could, I think…but in that case, .last 1 should return the same. And 5 definitely isn’t in, although I guess you can do the mathematical sidestep and declare that 4.999… is, in fact, 5
<rue>
cha1tanya: You can generate a patch (diff -u) or via git, against HEAD
plusk has joined #ruby-lang
<rue>
Mon_Ouie: I’d decree that #last should return the last element you get from iteration
* banisterfiend
predicts a "Yeah."
<banisterfiend>
:P
countdigi has joined #ruby-lang
* cha1tanya
agrees with rue
<Mon_Ouie>
Yes indeed, I think it would make more sense too, but the documentation should be made clearer too
<rue>
Yes
<Mon_Ouie>
Also I think (0...0).last and (0...-5).last should be nil
<matled>
rue: uh, that 4.999 thing is interesting. (1.0...5.0).last should return an error, just as .last(1) does?
<rue>
Probably
<rue>
I don’t like annoying math
<cha1tanya>
rue, :)
<cha1tanya>
rue, so what should we do ?
<rue>
I’d file it, to get an authoritative answer at least. Do a search on bugs. and ruby-core in case it’s been discussed before
<cha1tanya>
rue, ok fine :)
dhruvasagar has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby-lang
mccraig has joined #ruby-lang
<andrewvos>
RUBY-LANG MAKE THIS CODE BETTER: url.scan(/\/(\d+)$/).first.first
<andrewvos>
I don't like the first.first part. It's soooo ugly.
<andrewvos>
Please to do quick urgent code needed
<Mon_Ouie>
"foo 13 bar 15"[/\d+$/] #=> "15"
<andrewvos>
If I have to wait for rails to launch to test that code then I'm just going to leave it ugly like that.
<rfx>
I've been trying to track a bug since ages now, I'm using a 3rd party lib which "throws" an Exception and when I try to handle it, it's always an ArgumentError on my end, and not the exception. Took me some time to realize that the 3rd party lib is somehow the problem. It would have worked if it used "raise" for the exception ...
HassanS has joined #ruby-lang
<banisterfiend>
rfx: lol throwing an exception
<banisterfiend>
that's cute
<corecode>
isn't that throwing signals or so?
<banisterfiend>
no
<banisterfiend>
throw is a nifty little thing that comes in handy once or twice in a blue moon, but when it does it's great
florentg2 has quit [Read error: Connection reset by peer]
florentg2_ is now known as florentg2
outoftime has joined #ruby-lang
zmack has quit [Ping timeout: 246 seconds]
headius has joined #ruby-lang
RickHull has joined #ruby-lang
<RickHull>
YAML question: I'm using YAML for a config file (using hash as the toplevel structure). I would like to support the following hash value as a string: 1,2,3,4
<RickHull>
however, it seems that YAML will interpret this as a numeric without quotes
<RickHull>
1234
<RickHull>
(i'm not sure about multiple commas, actually)
<RickHull>
with a single comma, using an actual example: 30,60 is interpreted as 3060
Austin__ has joined #ruby-lang
<RickHull>
if there are spaces between the comma(s), then i get a string
<RickHull>
it's a little brittle for the end user doing the config, if he needs to make sure to include spaces or quotes
<RickHull>
that said, i think i understand why it works this way -- commas are used as decimal points outside the US
<RickHull>
that, or they are used to separate 10^3 within the US
jxie has joined #ruby-lang
<RickHull>
i don't suppose there is a way to force the behavior at a library level, rather than at the user / config file level?
|Vargas| has quit [Quit: ...]
brianpWins has quit [Quit: brianpWins]
bfreeman has joined #ruby-lang
tekin has quit [Quit: Computer has gone to sleep.]
<GarethAdams>
We use commas as thousand separators here in the UK too
ivanoats has joined #ruby-lang
<RickHull>
yeah, an anglo thing i guess
<RickHull>
not to be US-centric, but I can't really speak authoritatively about elsewhere :P
d3vic3 has quit [Quit: leaving]
<banisterfiend>
RickHull: hey ricky
<RickHull>
what's up piggy!
<RickHull>
long time no see. Pry has really taken off, eh?
zmack has joined #ruby-lang
JustinCampbell has joined #ruby-lang
<banisterfiend>
RickHull: yeah i guess, unfortunately it's just "pry" not "banisterfiend's Pry", so i dont really improve my own status too much :/
<banisterfiend>
hehe
<banisterfiend>
i'm never mentioned in any articles on it :(
<banisterfiend>
ah well, it's my gift to the world
<RickHull>
github doesn't lie
<banisterfiend>
RickHull: how are oyu?
<RickHull>
doing pretty well, haven't done much ruby lately unfortunately
<RickHull>
day job sucks, not doing much actual dev work
<banisterfiend>
ah well, do you still idle here? or you given up irc?
pbjorklund has quit [Ping timeout: 244 seconds]
<RickHull>
the work firewall is IP based
<RickHull>
and freenode.net's IP pool keeps changing
<RickHull>
so it's a total crapshoot, whether i can connect
dhruvasagar has joined #ruby-lang
<RickHull>
for the last 6 months or so, i've basically given up trying
<RickHull>
but i've gotten a little lucky, lately
<banisterfiend>
RickHull: it's pretty dead these days anyway
solars has quit [Ping timeout: 255 seconds]
<banisterfiend>
#ruby-lang basically has 30 min-1 hour of active chat each day, the rest it's silence
<banisterfiend>
anyway i better get to sleep it's 3:30am here
<banisterfiend>
RickHull: good seeing you, & see you round ! :)
dhruvasa1ar has quit [Ping timeout: 252 seconds]
pbjorklund has joined #ruby-lang
<RickHull>
cheers, no IRC while driving
tbuehlmann has quit []
<banisterfiend>
hehe:)
toretore has quit [Read error: Connection reset by peer]
toretore has joined #ruby-lang
malev has quit [Remote host closed the connection]
msaffitz has joined #ruby-lang
tr-808 has quit [Remote host closed the connection]
zmack has quit [Ping timeout: 246 seconds]
tr-808 has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby-lang
WillMarshall has joined #ruby-lang
zrail has left #ruby-lang [#ruby-lang]
robotmay has quit [Remote host closed the connection]
peterc has quit [Remote host closed the connection]
Sambalero has quit [Remote host closed the connection]
solars has joined #ruby-lang
gsav has quit [Ping timeout: 248 seconds]
msaffitz has quit [Quit: Computer has gone to sleep.]
Oloryn_lt2 has joined #ruby-lang
rhodee_ has joined #ruby-lang
zmack has joined #ruby-lang
brianpWins has joined #ruby-lang
Oloryn_lt2 has quit [Read error: Connection reset by peer]
rhodee has quit [Ping timeout: 248 seconds]
rhodee_ has left #ruby-lang [#ruby-lang]
Oloryn_lt2 has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
<NemesisD>
hi all. if i create a socket pair and then fork a bunch of times and pass one end of the socket to every child, is it treated like a queue or does each child get every message?
Oloryn_lt21 has joined #ruby-lang
zmack has quit [Ping timeout: 246 seconds]
Oloryn_lt2 has quit [Quit: Leaving.]
Oloryn_lt21 has quit [Quit: Leaving.]
Oloryn_lt2 has joined #ruby-lang
savage- has joined #ruby-lang
savage- has quit [Remote host closed the connection]
savage- has joined #ruby-lang
Oloryn_lt2 has quit [Client Quit]
Oloryn_lt2 has joined #ruby-lang
jarib has quit [Excess Flood]
neocoin has quit [Remote host closed the connection]
jarib has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby-lang
tcopp has joined #ruby-lang
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
icooba has quit [Quit: Computer has gone to sleep.]
bfreeman has quit [Quit: bfreeman]
hynkle has quit [Quit: Computer has gone to sleep.]
zmack has joined #ruby-lang
tomb has joined #ruby-lang
dhruvasa1ar has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
dhruvasagar has quit [Ping timeout: 252 seconds]
msaffitz has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
zmack has quit [Ping timeout: 246 seconds]
zmack has joined #ruby-lang
qpingu has joined #ruby-lang
<sernin>
Is there a possibility someone could explain to me what's going on in http://pastie.org/4250848
cdt has quit [Quit: Ex-Chat]
zmack has quit [Ping timeout: 246 seconds]
<Mon_Ouie>
process_line(…) returned nil
sora_h is now known as s0ra_h
<sernin>
Ah, so the error message is what's confusing, it is not complaining about the hash in scope, its complaining because it can't merge the return value into a hash
<sernin>
its not the caller that's nil, it is the return value from process_line. eureka. thanks.
zmack has joined #ruby-lang
<cha1tanya>
rue, i am downloading ruby source from github, is it ok or i have to use main svn repo
apeiros_ has quit [Remote host closed the connection]
<sernin>
Mon_Ouie: thank you, thank you thank you.
scampbell has joined #ruby-lang
zmack has quit [Remote host closed the connection]
qpingu has quit [Quit: Leaving.]
dc5ala has quit [Quit: Ex-Chat]
qpingu has joined #ruby-lang
<Mon_Ouie>
If the receiver were nil, it would say NoMethodError
qpingu has quit [Quit: Leaving.]
towski has joined #ruby-lang
burgestrand has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
mztriz has quit [Read error: Connection reset by peer]
<henk>
I’m trying to learn programming (as opposed to hacking together little scripts) by writing a gtk client for xmms2 in ruby. After the connection is established, the client just hangs for quite a while, AFAICT depending on the size of the medialib it has to get from the daemon. Can anyone give advice on how to determine what causes these delays?
jfelchner has quit [Ping timeout: 244 seconds]
tenderlove has quit [Ping timeout: 265 seconds]
tenderlove has joined #ruby-lang
digitalbane has left #ruby-lang [#ruby-lang]
j342 has quit [Ping timeout: 246 seconds]
coryf has quit [Remote host closed the connection]
ilyam has joined #ruby-lang
coryf has joined #ruby-lang
ipattiso has joined #ruby-lang
GarethAdams has joined #ruby-lang
anjen has joined #ruby-lang
S1kx has joined #ruby-lang
S1kx has quit [Changing host]
S1kx has joined #ruby-lang
voker57 has quit [Remote host closed the connection]
GarethAdams has quit [Client Quit]
akira989 has quit [Remote host closed the connection]
ipattiso has left #ruby-lang [#ruby-lang]
cha1tanya has quit [Quit: आलोच..]
erikh has joined #ruby-lang
israelpattison has joined #ruby-lang
<israelpattison>
hello
<israelpattison>
I need some help with a simile Mysql class: git://gist.github.com/3106369.git
savage- has quit [Read error: Connection reset by peer]
j342 has joined #ruby-lang
kparaju has joined #ruby-lang
GarethAdams has joined #ruby-lang
qpingu has quit [Ping timeout: 244 seconds]
pajamapajama has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
rhodee has joined #ruby-lang
rhodee has quit [Remote host closed the connection]
<rue>
General advice: favour composition over inheritance. That said, is there a particular problem? Error message and so forth?
akira989 has joined #ruby-lang
<israelpattison>
the script calls Mysql.initialize with the single parameter instead of calling Imysql.initialize and the self.new. I can't get it to go into the "overridden" initialize method.
qpingu has joined #ruby-lang
<israelpattison>
Here's the error: Node: aleph
<israelpattison>
Error code: 2003
<israelpattison>
Error message: Can't connect to MySQL server on 'aleph' (111)
<israelpattison>
Error SQLSTATE: HY000
<israelpattison>
But that's happening because it isn't getting the userid, password, db or port parameters.
Criztian has joined #ruby-lang
<RickHull>
israelpattison: take a step back, don't use inheritance here just yet
<RickHull>
just make sure you ahve the right config/settings to get a valid db handle first
<RickHull>
it looks like the mysql lib can't connect to the server using the supplied params. a config thing, not a code thing
enebo has joined #ruby-lang
diegoviola has joined #ruby-lang
<rue>
Right, I’d try just plain MySQL call first
<rue>
Then directly the adapter
<rue>
Also, style/sanity note: use constants rather than @@vars wherever possible.
<rue>
Or just class instance variables
jakko has joined #ruby-lang
solars has quit [Ping timeout: 250 seconds]
Oloryn_lt2 has quit [Quit: Leaving.]
Oloryn_lt2 has joined #ruby-lang
akira989 has quit [Remote host closed the connection]
coryf has quit [Remote host closed the connection]
jakko has quit [Remote host closed the connection]
tooky has quit [Remote host closed the connection]
<israelpattison>
Doing the Mysql.new with all the parameters works, and works well. So, I'm moving on from that step assuming that it works.
Criztian has quit [Remote host closed the connection]
<israelpattison>
the reason for doing things this way is I have many mysql servers to connect to. they all have the same parameters minus the hostname. I'm trying to simplify the object initialization by just requiring the one variable.
<RickHull>
i wouldn't necessarily use class inheritance for that
<israelpattison>
is there any indication of what I'm doing wrong (outside of mis-using inheritance)?
malev has quit [Remote host closed the connection]
headius has quit [Quit: headius]
<israelpattison>
I could see that this would apply to any parent class I'm trying to inherit if I'm not properly defining the initialization method.
icooba has quit [Quit: Computer has gone to sleep.]
sc0 has joined #ruby-lang
diegoviola has joined #ruby-lang
RORgasm has quit [Remote host closed the connection]
RORgasm has joined #ruby-lang
pbjorklund has quit [Ping timeout: 240 seconds]
pbjorklund has joined #ruby-lang
yxhuvud has quit [Ping timeout: 246 seconds]
RORgasm has quit [Ping timeout: 246 seconds]
neocoin has joined #ruby-lang
workmad3 has quit [Ping timeout: 246 seconds]
GeekOnCoffee_ has joined #ruby-lang
GeekOnCo- has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
JustinCampbell has quit [Remote host closed the connection]
rhodee has left #ruby-lang [#ruby-lang]
workmad3 has joined #ruby-lang
bfreeman has quit [Read error: Connection reset by peer]
<rfx>
supposed I've a lot of gems installed and a project I'm having "magically" works because the dependencies are implicitly fullfilled. Is there an easy way to figure out what the real dependencies are, without deinstalling all gems and going trial&error?
florentg2 has quit [Ping timeout: 248 seconds]
bfreeman has joined #ruby-lang
<GarethAdams>
rfx: search for 'require' statements?
<rfx>
GarethAdams: hmm :)
gokul has quit [Ping timeout: 246 seconds]
<rfx>
Is it possible, even when having many gems installed, to only work with a subset of them activated .. somehow?
<canton7>
if you're into bundler, set up a Gemfile etc, and run it using 'bundle exec'. keep adding gems to the gemfile until it stops breaking
<rfx>
canton7: ahh .. I've heard of bundler (i.e. bundle install, exec). Does it "shadow out" the stuff *not* mentioned in the spec?
<davidbalbert>
rfx: yup
<rfx>
oh. .. guess I've to readup the bundler docs mare carefully. thanks for the pointer
wmoxam has quit [Quit: leaving]
<canton7>
yeah, it creates its own isolated little environment for the app to run in (provided you jump through some hoops first)
<rfx>
hoops .. like what? anything besides setting um the Gemfile? I'm reading through http://gembundler.com/rationale.html and I'm not sure what it means with "For another kind of application (such as a Sinatra application), you will need to set up bundler before trying to require any gems" .. but it doesn't describe why
ruskie has quit [Quit: ...]
bryancp has joined #ruby-lang
soahccc` is now known as soahccc
s0ra_h is now known as sora_h
drollwit has joined #ruby-lang
<rue>
rfx: You can use gems for that
<rue>
$ gem dep[endency] gemname
drollwit has quit [Read error: Operation timed out]
<rfx>
rue: thanks, didn't know that...
jfelchner has joined #ruby-lang
lixef has joined #ruby-lang
ruskie has joined #ruby-lang
jperry2 has joined #ruby-lang
jperry2 has quit [Client Quit]
mistym has quit [Remote host closed the connection]
JustinCampbell has joined #ruby-lang
dv310p3r has quit [Ping timeout: 246 seconds]
Criztian has quit [Remote host closed the connection]
mssola has quit [Quit: Konversation terminated!]
workmad3 has quit [Ping timeout: 252 seconds]
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
headius has quit [Quit: headius]
<davidbalbert>
rfx: i don't know if you've figured this out, but the reason for needing to `require 'bundler/setup'` in a sinatra application is because sintra doesn't do it for you
rhalff has joined #ruby-lang
<rhalff>
hi smart people!
<davidbalbert>
rails is actually a bit of a special case in that it sets up bundler's isolation environment itself
sora_h is now known as s0ra_h
<davidbalbert>
you can see this if you look at the top of config/application.rb in a rails 3.x app, you'll see a call to Bundler.require
<rhalff>
how would I find feynman point within a huge number, where the feynman point is a sequence of six 9s.
<diegoviola>
weird
<GarethAdams>
rhalff: is that a ruby question or a maths question?
<rhalff>
GarethAdams, actually I was hoping for a number.find_feynman_point() function :p
<rhalff>
I'm wondering if pi/4 contains such a sequence
<diegoviola>
i've been fooling around with some old rails 2.x app that is still on ruby 1.8.x, this app pulls some data via oauth, and one of those oauth data is email, but the email always comes with some weird data like \240, ` or P instead of @, i've ran the app on the latest jruby and those encoding errors went away
<diegoviola>
are those encoding issues common with old ruby versions?
<rfx>
davidbalbert: hmm .. ok ... thing is, I thought bundler is kind of "transparent" to the application itself; i.e. Ok, there's the Gemfile(.lock) and I use bundle exec, but the actual application doesn't need to have any further dependencies on bundler itself. Or so I thought
<davidbalbert>
rfx: IIRC `bundle exec` will run the equivalent of `require 'bundler/setup'`
<davidbalbert>
but i'd have to check the source
fayimora has joined #ruby-lang
Austin__ has quit [Quit: Leaving.]
<rfx>
davidbalbert: you mean, I've I wouldn't want to use "bundle exec", my /other/ option would be `require "bundler/setup"`?
jrafanie has left #ruby-lang [#ruby-lang]
<davidbalbert>
yeah if you don't want to have to type `bundle exec` every time, you can also set up bundler from within your code
apeiros_ has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
<davidbalbert>
rfx: ok, yeah if you look at the definition of exec in bundler/cli.rb line 400 is approximately the same as what require 'bundler/setup' does
akira989 has quit [Remote host closed the connection]
<rhalff>
*rhalff is afraid to use such a function, maybe he finds 666 :| :p*
<rfx>
praise github source highlighting; thanks
<rhalff>
oh 666666 that is.
<diegoviola>
any ideas please?
s0ra_h is now known as sora_h
seanstickle has joined #ruby-lang
<rue>
rfx: Yes, it’s kinda dumb to have to hardcode it
<rue>
diegoviola: JRuby in 1.8 mode/
<diegoviola>
rue: yes
outoftime has quit [Quit: Leaving]
headius has joined #ruby-lang
akira989 has joined #ruby-lang
stardiviner has joined #ruby-lang
sockmonk has quit [Ping timeout: 272 seconds]
<rue>
diegoviola: Are you encoding it at all yourself, with Iconv? It could (I guess) be that the JVM’s native string representation removes some of those issues.
masterkorp has left #ruby-lang ["WeeChat 0.3.2"]
<diegoviola>
rue: i don't think it's using iconv
<diegoviola>
rue: yeah could be
<diegoviola>
thanks
lun_ has joined #ruby-lang
qpingu has joined #ruby-lang
sora_h is now known as s0ra_h
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
s0ra_h is now known as sora_h
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
NemesisD has quit [Quit: leaving]
apeiros_ has quit [Remote host closed the connection]
ilyam_ has joined #ruby-lang
ilyam_ has quit [Client Quit]
ilyam has quit [Ping timeout: 240 seconds]
RORgasm has joined #ruby-lang
solars has quit [Ping timeout: 248 seconds]
sepp2k has quit [Remote host closed the connection]
sandbags has quit [Remote host closed the connection]