vlad_starkov has quit [Remote host closed the connection]
canton7-mac has joined #ruby-lang
elliotec_ has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
cnivolle has joined #ruby-lang
tonni has quit [Remote host closed the connection]
karamazov424 has joined #ruby-lang
phansch has joined #ruby-lang
<karamazov424>
So I just finished "Learn to Program" by Chris Pines. I was feeling pretty confident in my Ruby skills (for a beginner) and then started Code School and don't know half the syntax they're throwing at me.
Pupeno_ has joined #ruby-lang
<karamazov424>
I know there's a ridiculous amount of posts on reddit of people's "manifestos" but I never hear about those people landing anything serious.
Atw has quit [Ping timeout: 244 seconds]
elliotec_ has joined #ruby-lang
havenwood has joined #ruby-lang
karamazov424 has quit []
<yorickpeterse>
morning
elliotec has quit [Ping timeout: 264 seconds]
<maloik>
o/
woollyams has joined #ruby-lang
havenwood has quit [Ping timeout: 252 seconds]
cnivolle_ has joined #ruby-lang
jmeeuwen has quit [Ping timeout: 245 seconds]
domakesaythings has joined #ruby-lang
cnivolle has quit [Ping timeout: 244 seconds]
dc5ala has quit [Quit: Ex-Chat]
dilated_dinosaur has joined #ruby-lang
jmeeuwen has joined #ruby-lang
dc5ala has joined #ruby-lang
yubrew has joined #ruby-lang
tonni has joined #ruby-lang
ivan_ has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
<yorickpeterse>
ffs
<yorickpeterse>
sqlite3 borken shit
<yorickpeterse>
because it now uses a macro that seems to've been introduced in Ruby 2.1
<yorickpeterse>
at least I think
dilated_dinosaur has quit [Ping timeout: 244 seconds]
sdouglas has joined #ruby-lang
<kith>
in regex, how do i match any character up to the next whitespace?
<kith>
not including the whitespace
<apeiros>
[^ ]*
<apeiros>
kith: ^
<kith>
works
<yorickpeterse>
\S+
<kith>
cool thx :D
sdouglas has quit [Ping timeout: 265 seconds]
elliotec_ has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
<apeiros>
not the same, though. but actually closer to the description.
<yorickpeterse>
well it depends if you want *only* spaces, or any form of whitespace
<apeiros>
kith: when you say "whitespace", which characters to you actually mean?
<kith>
\s
<kith>
your regex works tho
<kith>
so i just went with that
<apeiros>
from ri Regepx: "* /\s/ - A whitespace character: /[ \t\r\n\f]/"
<apeiros>
i.e, \S will consider all in " \t\r\n\f" as whitespace.
<apeiros>
(and not match them)
shashin has quit [Quit: shashin]
<kith>
' ' is just fine
<apeiros>
mine only considers space
<kith>
yeah
<kith>
thats what i was looking for
elliotec has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby-lang
domakesaythings has quit [Quit: Computer has gone to sleep.]
achru has quit [Remote host closed the connection]
<[spoiler]>
why not add to it? unless, you think there's danger of overwriting values
mr-foobar has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
<[spoiler]>
oh, it's not a hash, sorry
<[spoiler]>
it's only hashesque
kitak has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
cnivolle has joined #ruby-lang
<workmad3>
ENV['ENV'] would, imo, look odd to access as an environment variable... APP_ENV would be fine though, IMO
elliotec has quit [Ping timeout: 253 seconds]
tockitj has joined #ruby-lang
<workmad3>
and I'd guess that the various frameworks could (similar to rails with RACK_ENV) 'promote' the APP_ENV value into RAILS_ENV/DAEMON_ENV/whatever in order to maintain compatibility with libraries that rely on it...
cnivolle_ has joined #ruby-lang
<[spoiler]>
workmad3: Why ENV['ENV']?
<[spoiler]>
I meant just ENV['your_env_variable']
cnivolle has quit [Ping timeout: 240 seconds]
<yorickpeterse>
APP_ENV implies applications only, which doesn't strictly have to be the case
<workmad3>
[spoiler]: because the thing in question is the variable that holds e.g. production, development, staging, test to tell your app what environment it's in
<yorickpeterse>
I'd also say the APP_ is redundant
<yorickpeterse>
I'd argue that we'd end up with APP_ENV, API_ENV, LIB_ENV, etc
<workmad3>
[spoiler]: and not a replacement for the ENV[] hash for accessing environment variables ;)
<workmad3>
at least, as I understood the gist anyway
<[spoiler]>
AH
<[spoiler]>
Ah*
<yorickpeterse>
No, it's a replacement for RACK_ENV/RAILS_ENV/etc
<workmad3>
yorickpeterse: you could make an argument that APP_ENV is suitable because the time when the environment becomes meaningful is once an api, library, framework, etc has been integrated into an application and it's the application's environment value that's important
joelroa has joined #ruby-lang
<workmad3>
yorickpeterse: and the issue with any community standard is that there'll always be someone who reckons the reasoning doesn't apply to them, and so introduce a new thing for it :( https://xkcd.com/927/
domakesaythings has joined #ruby-lang
jhass is now known as jhass|off
domakesaythings has quit [Client Quit]
joelroa has quit [Ping timeout: 252 seconds]
ledestin has quit [Ping timeout: 244 seconds]
<yorickpeterse>
True, but those can shove a broomstick up their bum
domakesaythings has joined #ruby-lang
<yorickpeterse>
I just want to get rid of {RAILS,RACK,DAEMON,DERP}_ENV in the most common libraries/frameworks
vlad_starkov has quit [Remote host closed the connection]
<yorickpeterse>
e.g. I now have to do shit like `def env; return ENV['RAILS_ENV'] || ENV['DAEMON_ENV'] || ENV['RACK_ENV']; end` to figure out what fucking environment we're in
<yorickpeterse>
because I don't want to introduce a new var myself
<workmad3>
*10 months later* yorickpeterse: I just want to get rid of {RAILS,RACK,APP,DAEMON,DERP}_ENV in the most common libraries/frameworks... ;)
<yorickpeterse>
The whole point is for there only being 1 var
<yorickpeterse>
those who come up with XML_RPC_SOAP_ENV can beat it
<workmad3>
yorickpeterse: I know, and I agree... I'm just making minor fun of the idea because I bet you that it won't cause anyone to drop any env vars...
<yorickpeterse>
Dropping maybe not, but at least supporting a universal one would be great
<yorickpeterse>
it would simplify our infrastructure quite a bit
<yorickpeterse>
and the infra of others too probably
<workmad3>
yorickpeterse: however, I could see that a gem could exist that lets you set a single universal var, and that then propagates it to all (known) env vars
<yorickpeterse>
that's a hack
<workmad3>
yup... but it's the sort of hack that would be more likely to get a universal var adopted in the short-term ;)
ivan__ has joined #ruby-lang
<yorickpeterse>
That literally is putting lipstick on a pig
<workmad3>
so rather than saying 'all frameworks should support this straight away' you can say 'look, you can set this one var and all your frameworks get the right value', then push for frameworks to simplify down to the one variable going forward to 'allow users to remove a dependency'
ivan_ has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby-lang
<workmad3>
because yes, I agree... it's ridiculous having all the different variables, and who ever has their RAILS_ENV set to production but their XML_RPC_SOAP_ENV set to test?
<yorickpeterse>
I'd prefer to go down the route of yelling at people's door to tell them to fix their shit
<yorickpeterse>
Instead of piling shit on top only for them to forget
<yorickpeterse>
It would work if everybody would be like "LOL NOPE NOT MY PROBLEM"
kitak has quit [Remote host closed the connection]
<yorickpeterse>
But seeing how raggi and khaase seem to be interested that already makes things easier
<workmad3>
well, if you think you're gonna get critical momentum with the shouting at people approach, go for it :D
<yorickpeterse>
it should be well known that it's very easy for me to reach that point :P
<workmad3>
heh :) I should really try to pay more attention to people's reputations...
ledestin has joined #ruby-lang
achru has joined #ruby-lang
<yorickpeterse>
mine basically is "Talks too much, hates MongoDB"
<apeiros>
+ yells at people
<[spoiler]>
LOL
<yorickpeterse>
apeiros: good point
ledestin has quit [Ping timeout: 252 seconds]
yubrew has joined #ruby-lang
<workmad3>
yorickpeterse: 'hates MongoDB' <-- who doesn't?
kitak has joined #ruby-lang
<yorickpeterse>
Mongo Inc
<yorickpeterse>
plenty of startups
<yorickpeterse>
I have to give it to them, they have a good sales/marketing team
<workmad3>
Mongo... the new MySQL
<yorickpeterse>
No, it's far worse
yubrew has quit [Ping timeout: 240 seconds]
<yorickpeterse>
MySQL at least keeps things consistently broken
<workmad3>
hehe
<workmad3>
I think mongo is backing greylog for storing log messages for me atm... that's it though
<workmad3>
I've never put it into an application, and only ever suggested anyone use it for caching/other data they can recover elsewhere
<yorickpeterse>
even for caching it's shit
<yorickpeterse>
use memcached for that
<apeiros>
mongodb seems to have one trick it's good for
<apeiros>
it's an excellent bashing target :)
ledestin has joined #ruby-lang
vlad_starkov has joined #ruby-lang
achru has quit [Remote host closed the connection]
<ljarvis>
is the best way to remove html hex codes from a string using gsub?
<ljarvis>
really using gsub*
achru has joined #ruby-lang
<apeiros>
ljarvis: depends on a) what you consider "best", and b) the source of your string
<apeiros>
if you parsed html using e.g. nokogiri, there's a method to get the text with entities already converted
<ljarvis>
apeiros: I have a string with an "ń" character, I'm throwing it into an xml builder which I guess uses html entities which returns ń but I want to remove it post-processing rather than convert the encoding to "ISO-8859-1" (which is ultimately what needs to happen)
<apeiros>
ljarvis: why would you want to do that? doesn't sound sane…
<ljarvis>
apeiros: I'm talking to an external API which expects all requests in ISO-8859-1
<apeiros>
ljarvis: and you don't build the xml in that encoding because…?
<ljarvis>
apeiros: the xml building happens in an external library also
<apeiros>
sounds clusterfucky…
<darix>
ljarvis: but your string is actually latin1 encoded with the &...
achru has quit [Ping timeout: 244 seconds]
<apeiros>
not sure, html entities are supposed to be encoding agnostic. but the numeric form? not sure whether that's too…
<darix>
ljarvis: or do you want to tell us the remote API takes those entities as is and doesnt convert it to the char again?
<ljarvis>
darix: I'm guessing they do convert it, which is what's causing their problem
<ljarvis>
why they can't handle it is beyond me
<darix>
ljarvis: well then having the "ń" in your plain XML wouldnt help much either wouldnt it?
<ljarvis>
darix: no, I'll have to remove it
<darix>
you could try to translit it before putting it into the XML
<darix>
ljarvis: naw. reencode with translit set
<darix>
that would give you an "n" at least
<darix>
ljarvis: and if they dont support the "ń" they can only do like ascii
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
<apeiros>
huh?
<darix>
apeiros: what?
<apeiros>
if the result is a string, and it consistently uses &#x…; for entities, it's probably indeed the easiest to use gsub to translate back unescaped chars and then transcode it to iso8859-1, so the foreign API can handle it
onewheelskyward has quit [Ping timeout: 264 seconds]
simono is now known as simono-away
<[spoiler]>
Oh, nice!
<[spoiler]>
Bookmarked & I'll check it out when i get home
lianj has quit [Ping timeout: 264 seconds]
onewheelskyward has joined #ruby-lang
lianj has joined #ruby-lang
lianj has joined #ruby-lang
lianj has quit [Changing host]
rsl has joined #ruby-lang
badeball has quit [Ping timeout: 244 seconds]
simono-away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: ciao.]
gix has joined #ruby-lang
jcs222 has joined #ruby-lang
badeball has joined #ruby-lang
brownies has quit [Ping timeout: 245 seconds]
alucardX has quit [Quit: leaving]
elliotec has joined #ruby-lang
brownies has joined #ruby-lang
Cakey has joined #ruby-lang
breakingthings has joined #ruby-lang
badeball has quit [Ping timeout: 240 seconds]
tylersmi_ has joined #ruby-lang
elliotec has quit [Ping timeout: 265 seconds]
badeball has joined #ruby-lang
mr-foobar has quit [Remote host closed the connection]
mr-foobar has joined #ruby-lang
tylersmith has quit [Ping timeout: 265 seconds]
llakey has quit [Ping timeout: 245 seconds]
mr-fooba_ has joined #ruby-lang
Cakey has quit [Ping timeout: 265 seconds]
mr-foobar has quit [Read error: Connection reset by peer]
onewheelskyward has quit [Ping timeout: 264 seconds]
jds has quit [Quit: Connection closed for inactivity]
llakey has joined #ruby-lang
ohsix has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby-lang
jds has joined #ruby-lang
onewheelskyward has joined #ruby-lang
Siyfion has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
ohsix has joined #ruby-lang
mikecmpbll has joined #ruby-lang
bradcliffe has joined #ruby-lang
FiXato has quit [Max SendQ exceeded]
FiXato has joined #ruby-lang
Siyfion has quit [Ping timeout: 264 seconds]
onewheelskyward has quit [Ping timeout: 264 seconds]
benlovell has quit [Ping timeout: 244 seconds]
onewheelskyward has joined #ruby-lang
Voker57 has quit [Read error: Connection reset by peer]
heftig has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Quit: ciao.]
heftig has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
skade has quit [Remote host closed the connection]
skade has joined #ruby-lang
toretore has joined #ruby-lang
dik_dak has joined #ruby-lang
Siyfion has joined #ruby-lang
domakesaythings has joined #ruby-lang
miqui has joined #ruby-lang
robmiller has joined #ruby-lang
benlovell has joined #ruby-lang
robmiller has quit [Client Quit]
heftig has quit [Ping timeout: 244 seconds]
onewheelskyward has quit [Ping timeout: 264 seconds]
onewheelskyward has joined #ruby-lang
groszek has joined #ruby-lang
heftig has joined #ruby-lang
joelroa has joined #ruby-lang
<groszek>
Hi. does anyone know of a good, simple library to parse multipart data (as sent by http file uploads)? All the obvious google results are bad.
symm- has joined #ruby-lang
<yorickpeterse>
define bad
<darix>
groszek: mechanize
relix has joined #ruby-lang
<groszek>
for example try to load whole file into memory
yubrew has joined #ruby-lang
<groszek>
hm, mechanize can do that? *checks*
<yorickpeterse>
eh yeah, I doubt there are streaming parser for multipart data
<ljarvis>
heh
<yorickpeterse>
how do you want to stream parse multipart data anyway?
<darix>
groszek: you are talking about server or client side?
<groszek>
darix: i want to decode file thats basically http body saved, ---multipart headers\r\n\r\n binary blob ---multipart again
joelroa has quit [Ping timeout: 265 seconds]
<darix>
groszek: server or client side
<groszek>
just for CLI program, I have a file and need to decode it into proper file(s) that are inside
<darix>
then port your script to mechanize
<darix>
it should offer you the parts
yubrew has quit [Ping timeout: 265 seconds]
simono has joined #ruby-lang
<groszek>
it loads whole file into memory, so nope
<yorickpeterse>
and this is genuinely a problem?
<yorickpeterse>
How big is said file?
<yorickpeterse>
or files
<groszek>
file uploads can be big ;)
<yorickpeterse>
Yeah no shit
<darix>
groszek: once you talk about downloads then uploads
<darix>
what now exactly?
<yorickpeterse>
But if you want to handle them sooner or later you're going to have to load them into memory, like I said a streaming parser isn't that easy to use here
<groszek>
a couple of gb at least needs to be supported
<groszek>
i want to parse multipart blob into proper file, no uploads, downloads, server or client talk here
<groszek>
so how about this: is #readline safe to use for binary files? that would be good enough
<yorickpeterse>
define binary files
<yorickpeterse>
define your file format
<yorickpeterse>
Like I said, how do you expect to read some arbitrary binary blob in a stream and expect it to work?
<yorickpeterse>
That is, how do you know it's filetype X and not Y, etc
<yorickpeterse>
Sure you can call IO#read_lines and such, but then what?
<groszek>
multipart has boundaries, eg. starts with ------------------------------afd1b41cc41d
<groszek>
then 2 lines of headers, \r\n, binary blob until this boundary again
<yorickpeterse>
You're missing the point
<yorickpeterse>
I'm very much aware of multi-part formats
<yorickpeterse>
What I'm saying is, if you have one of these files saved somewhere, read them in as a stream, then what?
<groszek>
read the original filenames from multipart headers and save to those the binary parts inside
<yorickpeterse>
Then read it byte by byte until you have the name, then write the rest byte by byte
<yorickpeterse>
You'll probably need to write your own parser for this
<groszek>
yes, and I kinda wanted to ask if anyone knows a ready to use solution to that :P
<groszek>
i wish they included content-length in those headers, that would make it so much easier :/
tedstriker has joined #ruby-lang
benlovell has quit [Ping timeout: 240 seconds]
joonty has quit [Quit: WeeChat 0.4.2]
domakesaythings has quit [Quit: Computer has gone to sleep.]
benlovell has joined #ruby-lang
Tn6o_ has joined #ruby-lang
jgpawletko has joined #ruby-lang
Tn6o has quit [Ping timeout: 240 seconds]
webgen has joined #ruby-lang
lcdhoffman has joined #ruby-lang
Cakey has joined #ruby-lang
[spoiler] has quit [Quit: Bomboyage!]
benlovell has quit [Ping timeout: 264 seconds]
diegoviola has joined #ruby-lang
lcdhoffman has quit [Client Quit]
lcdhoffman has joined #ruby-lang
mbj has joined #ruby-lang
benlovell has joined #ruby-lang
shinnya has joined #ruby-lang
anannie has quit [Remote host closed the connection]
tbuehlmann has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby-lang
Cakey has quit [Ping timeout: 264 seconds]
<darix>
groszek: you would read blocks
vlad_starkov has joined #ruby-lang
yfeldblum has quit [Ping timeout: 241 seconds]
mbj has left #ruby-lang [#ruby-lang]
Squarepy has quit [Quit: Leaving]
vlad_starkov has quit [Remote host closed the connection]
enebo has joined #ruby-lang
domakesaythings has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.3]
<yorickpeterse>
herp derp jruby bundler
<yorickpeterse>
gem install foo # works
<yorickpeterse>
bundle install # which uses foo, doesn't
<yorickpeterse>
Hm, seems it's the --deployment flag as well
<yorickpeterse>
yay
chouhoulis has joined #ruby-lang
<yorickpeterse>
ughhh, Rubby
momomomomo has joined #ruby-lang
tbuehlmann has joined #ruby-lang
anannie has joined #ruby-lang
anannie has quit [Changing host]
anannie has joined #ruby-lang
<ljarvis>
ugghhh encoding
lcdhoffman has quit [Quit: lcdhoffman]
<yorickpeterse>
"Warning! PATH is not properly set up, '/usr/local/rvm/gems/jruby-1.7.10/bin' is not at first place"
<yorickpeterse>
WHO CARES
<yorickpeterse>
I'm a big boy, I can manage my own PATH
<yorickpeterse>
ugh
jtw has joined #ruby-lang
yubrew has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has joined #ruby-lang
Pupeno_ has quit []
yubrew has quit [Ping timeout: 264 seconds]
joelroa has joined #ruby-lang
<ljarvis>
so even managing to tell nokogiri about the encoding doesn't fix it
phansch has joined #ruby-lang
akahn has joined #ruby-lang
joelroa has quit [Ping timeout: 240 seconds]
joonty has joined #ruby-lang
jxie has quit [Quit: leaving]
ledestin has quit [Quit: ledestin]
anannie has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 244 seconds]
Siyfion has quit [Remote host closed the connection]
seanlinsley has quit [Quit: …]
alexju has joined #ruby-lang
nathanstitt has joined #ruby-lang
lcdhoffman has joined #ruby-lang
lcdhoffman has quit [Client Quit]
<ljarvis>
oh right duh
<ljarvis>
im stupid
Siyfion has joined #ruby-lang
mykoweb has joined #ruby-lang
diegoviola has joined #ruby-lang
bahar has quit [Changing host]
bahar has joined #ruby-lang
ruby-lang361 has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
Tn6o_ has quit [Remote host closed the connection]
<ruby-lang361>
si en Rails commit se hace con un save,,, como se hace un rollback ?
elliotec has joined #ruby-lang
symm- has quit [Ping timeout: 240 seconds]
<yorickpeterse>
what the fuck
poor_leno has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
<yorickpeterse>
ruby-lang361: Not everybody here speaks Spanish, so re-ask your question in English
itsraining has joined #ruby-lang
Johz has joined #ruby-lang
elliotec has quit [Ping timeout: 240 seconds]
<apeiros>
also, #rubyonraisl
<apeiros>
*#rubyonrails
mykoweb has joined #ruby-lang
robmiller has joined #ruby-lang
ruby-lang361 has quit [Ping timeout: 245 seconds]
benlovell has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
heavyhorse has joined #ruby-lang
yfeldblum has joined #ruby-lang
phansch has quit [Quit: WeeChat 0.4.2]
chouhoulis has quit [Read error: Connection reset by peer]
mr-fooba_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
lcdhoffman has joined #ruby-lang
mr-foobar has joined #ruby-lang
anannie has joined #ruby-lang
anannie has quit [Changing host]
anannie has joined #ruby-lang
nathanstitt has joined #ruby-lang
jcs222 has quit [Quit: leaving]
jcs222 has joined #ruby-lang
DEac-_ has joined #ruby-lang
jcs222 has quit [Client Quit]
yfeldblum has quit [Ping timeout: 244 seconds]
mr-foobar has quit [Ping timeout: 240 seconds]
bzalasky has joined #ruby-lang
jperry has quit [Quit: jperry]
DEac- has quit [Ping timeout: 264 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
sdouglas has joined #ruby-lang
rahul_j has joined #ruby-lang
apeiros has quit [Ping timeout: 240 seconds]
jperry has joined #ruby-lang
jperry has quit [Client Quit]
domakesaythings has quit [Quit: Computer has gone to sleep.]
benlovell has quit [Ping timeout: 240 seconds]
<ljarvis>
rubyonsails
benlovell has joined #ruby-lang
yubrew has joined #ruby-lang
mechanicles has joined #ruby-lang
Atw has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
yubrew has quit [Ping timeout: 240 seconds]
jsilver has joined #ruby-lang
domakesaythings has joined #ruby-lang
skade has joined #ruby-lang
jsilver has quit [Client Quit]
<oddmunds>
:)
jds has quit [Quit: Connection closed for inactivity]
mykoweb has quit [Remote host closed the connection]
mr-foobar has joined #ruby-lang
joelroa has joined #ruby-lang
seanlinsley has joined #ruby-lang
shinnya has quit [Ping timeout: 240 seconds]
joelroa has quit [Ping timeout: 265 seconds]
meizaps has joined #ruby-lang
|jemc| has joined #ruby-lang
mikecmpbll has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
brettweavnet has joined #ruby-lang
tylersmi_ has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tylersmith has quit [Ping timeout: 241 seconds]
apeiros has joined #ruby-lang
momomomomo has joined #ruby-lang
Atw has quit []
phansch has joined #ruby-lang
michaeldeol has joined #ruby-lang
yfeldblum has joined #ruby-lang
Siyfion has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 265 seconds]
__butch__ has joined #ruby-lang
imperator has joined #ruby-lang
wallerdev has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.3]
yubrew has joined #ruby-lang
dagobah has quit [Quit: Leaving...]
jsrn has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby-lang
mbj has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
<yorickpeterse>
oh neat, a test that only fails when code coverage is enabled
tonni has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
shashin has quit [Quit: shashin]
elliotec has quit [Remote host closed the connection]
RobertBirnie has joined #ruby-lang
Johz has quit [Quit: Leaving]
robmiller has quit [Quit: Leaving.]
<workmad3>
yorickpeterse: timing issue caused by the slight overhead of the coverage instrumentation?
<yorickpeterse>
impossibru
<yorickpeterse>
and now it works again
<workmad3>
heh
<yorickpeterse>
I'll just call that the work of gnomes
<workmad3>
git commit -m "MAGIC GNOMES FIXED MY TEST!"
Siyfion has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
benlovell has joined #ruby-lang
lcdhoffman_ has joined #ruby-lang
lcdhoffman has quit [Ping timeout: 265 seconds]
lcdhoffman_ is now known as lcdhoffman
symm- has joined #ruby-lang
joelroa has joined #ruby-lang
elliotec has joined #ruby-lang
joelroa has quit [Ping timeout: 244 seconds]
<darix>
yorickpeterse: timing issues?;)
rkmetzl has joined #ruby-lang
Siyfion has quit []
skade has joined #ruby-lang
<mihar>
Does anyone know how to find out which version of a library like libcurl is a gem built against?
brettweavnet has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Read error: Operation timed out]
skade has quit [Quit: Computer has gone to sleep.]
elliotec has quit [Remote host closed the connection]
arBmind has quit [Quit: Leaving.]
elliotec has joined #ruby-lang
benlovell has quit [Ping timeout: 265 seconds]
<badeball>
mihar: there's really no way to tell from just source code alone, except that it obviously might fail to build with certain versions. curb for instance mentions supported versions in their readme and that's probably going to be your best bet.
agarie has joined #ruby-lang
<mihar>
Mhm. Debugging a nasty segfault in ethon/libcurl when doing a post request
<imperator>
mihar, the ruby library might have a wrapper for the extensions version number
<mihar>
imperator: how would i query that?
<imperator>
have to check the API, see if there's a method
<jhass>
mihar: common issue is an outdated curl without c-ares or --enable-threaded-resolver
<imperator>
so, if libcurl has something like a "curl_version" function, the ruby library might have a "curl_version" method
<imperator>
but, i don't know without looking
<mihar>
alrighty
elliotec has quit [Remote host closed the connection]
<jhass>
mihar: also just ldd $GEM_HOME/gems/ethon-*/lib/ethon/ethon.so or whatever the file/path was
<jhass>
or wasn't ethon ffi by now?
<mihar>
it's ffi yeah
<mihar>
s.dependencies = [Gem::Dependency.new("ffi", Gem::Requirement.new([">= 1.3.0"]), :runtime) would be related to libcurl version then?
<imperator>
wtf
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
<jhass>
mihar: nope, that's the ffi version
havenwood has joined #ruby-lang
<jhass>
mihar: ffi should dynamically load the latest version available iirc
<jhass>
or probably just loads the libcurl.so symlink
MartynKeigher has quit [Ping timeout: 244 seconds]
hahuang61 has quit [Ping timeout: 244 seconds]
seanlinsley has quit [Quit: …]
elliotec has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
miqui has quit [Remote host closed the connection]
canton7-mac has quit [Quit: Leaving]
miqui has joined #ruby-lang
tylersmith has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
sdouglas has joined #ruby-lang
Spacecloud is now known as pipework
yubrew has joined #ruby-lang
yfeldblum has quit [Ping timeout: 265 seconds]
cnivolle has joined #ruby-lang
MartynKeigher has joined #ruby-lang
solars has quit [Read error: Operation timed out]
mikecmpbll has joined #ruby-lang
sdouglas has quit [Ping timeout: 265 seconds]
cnivolle_ has quit [Ping timeout: 244 seconds]
mbj has quit [Quit: leaving]
yubrew has quit [Ping timeout: 244 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
madb055 has joined #ruby-lang
cnivolle has quit [Ping timeout: 245 seconds]
elia has quit [Ping timeout: 268 seconds]
Voker57 has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]