hakunin has quit [Remote host closed the connection]
justinram has joined #ruby-lang
datanoise has joined #ruby-lang
datanoise has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby-lang
KA_ has quit [Quit: KA_]
jsaak has quit [Ping timeout: 248 seconds]
kitallis has joined #ruby-lang
kitallis has quit [Client Quit]
gregmoreno has joined #ruby-lang
cosah has quit [Ping timeout: 265 seconds]
workmad3 has quit [Read error: Operation timed out]
icooba has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby-lang
ryanf has quit [Quit: leaving]
gregmoreno has quit [Ping timeout: 260 seconds]
toretore has quit [Read error: Connection reset by peer]
ground has joined #ruby-lang
toretore has joined #ruby-lang
ground has quit [Quit: Bye]
sandbags2 has joined #ruby-lang
rekky has joined #ruby-lang
sush24 has joined #ruby-lang
sush24 has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
<sandbags2>
I'm having a problem with bundler 1.2.2 I have --path set in my global config but bundle install does not respect it and installs to the ruby gem path, yet --path on the bundle command lines does work. Ideas anyone? https://gist.github.com/ae5acea06c27a073cd57
rekky has quit [Quit: rekky]
sandbags_ has joined #ruby-lang
sandbags2 has quit [Ping timeout: 246 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
cirwin has quit [Ping timeout: 260 seconds]
Aiur has quit [Ping timeout: 276 seconds]
dr_bob has joined #ruby-lang
gaveen has quit [Remote host closed the connection]
sandbags_ has quit [Remote host closed the connection]
Axsuul has quit [Ping timeout: 276 seconds]
tbuehlmann has quit [Remote host closed the connection]
dr_bob has left #ruby-lang [#ruby-lang]
fromhet has joined #ruby-lang
gix has quit [Ping timeout: 245 seconds]
madish has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
rippa has quit [Ping timeout: 256 seconds]
ddd has quit [Quit: Leaving.]
gix has joined #ruby-lang
banisterfiend has joined #ruby-lang
heftig has joined #ruby-lang
faen has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
shtirlic has quit [Remote host closed the connection]
nertzy has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
urbanmonk has joined #ruby-lang
kennyvb has joined #ruby-lang
chimkan has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
ruurd has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
schaerli has joined #ruby-lang
zomgbie has quit [Read error: Operation timed out]
Mon_Ouie has joined #ruby-lang
thinkdevcode has joined #ruby-lang
elux has joined #ruby-lang
rippa has joined #ruby-lang
mistym_ has joined #ruby-lang
stonerfish has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
Croms has quit [Remote host closed the connection]
Croms has joined #ruby-lang
methods has joined #ruby-lang
chimkan has quit [Quit: chimkan]
CaptainJet has joined #ruby-lang
datanoise has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
deltree_ has joined #ruby-lang
Mon_Ouie has quit [Quit: WeeChat 0.3.9.1]
<deltree_>
so I've done a crapton of research, but I think I need some guidance and so here I am. I'm just trying to connect ruby to my mysql database.
zomgbie has joined #ruby-lang
rue|w has joined #ruby-lang
<deltree_>
I'm running Windows Server 2012 (which is 64bit) and so I've tried the tutorials on installing 32bit mysql & on using the 32bit mysql connector with 64bit mysql. I'm now on 64bit mysql 5.5
<deltree_>
I've given up on the "using 32bit mysql" method since it's the wrong way anyway
<deltree_>
all my firewall exceptions are in place (I can connect to the db remotely)
<deltree_>
is ruby really only in 32bit format?
yxhuvud has quit [Read error: Connection reset by peer]
yxhuvud has joined #ruby-lang
BlaXpirit has joined #ruby-lang
rekky has joined #ruby-lang
rue|w has quit [Ping timeout: 260 seconds]
crackity_jones has joined #ruby-lang
zomgbie has quit [Ping timeout: 255 seconds]
anannie has quit [Quit: Leaving...]
AlHafoudh has joined #ruby-lang
AlHafoudh has quit [Excess Flood]
zomgbie has joined #ruby-lang
AlHafoudh has joined #ruby-lang
AlHafoudh has quit [Excess Flood]
schaerli_ has joined #ruby-lang
AlHafoudh has joined #ruby-lang
AlHafoudh has quit [Excess Flood]
schaerli_ has quit [Remote host closed the connection]
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
gaveen has joined #ruby-lang
schaerli_ has joined #ruby-lang
AlHafoudh has joined #ruby-lang
AlHafoudh has quit [Excess Flood]
AlHafoudh has joined #ruby-lang
AlHafoudh has quit [Excess Flood]
schaerli has quit [Read error: Connection reset by peer]
AlHafoudh has joined #ruby-lang
AlHafoudh has quit [Excess Flood]
xeviox has joined #ruby-lang
AlHafoudh has joined #ruby-lang
AlHafoudh has quit [Excess Flood]
<xeviox>
hi guys, is there a better way for this "out = `call_some_app 2> /dev/null`" ?
mytrile has joined #ruby-lang
AlHafoudh has joined #ruby-lang
<rue>
xeviox: You could do something with spawn, probably, but meh
mytrile has quit [Remote host closed the connection]
<xeviox>
so this is the preferred way to hide some extra error output from a called app?
mytrile has joined #ruby-lang
<rue>
Dunno if it can be called preferred, but it certainly works
<xeviox>
ok, thanks :)
<rue>
xeviox: spawn "command", :err => "/dev/null" # May be clearer
<rue>
I think it was like that, check ri
<xeviox>
thanks
<xeviox>
if my example is not discouraged I'll stay with it ..
<whitequark>
xeviox: it invokes a shell, whereas spawn does not
<whitequark>
that does have different semantics wrt SIGCHLD
<xeviox>
ah k
<xeviox>
then its ok, I'm checking for a binary
<xeviox>
with
<xeviox>
bin = `which my_binary 2> /dev/null`
thinkdevcode has quit [Remote host closed the connection]
ryanlecompte has quit [Remote host closed the connection]
sandbags_ has quit [Remote host closed the connection]
ryanlecompte has joined #ruby-lang
<khaase>
so, why exactly did britruby get cancelled? did I miss the show?
<rue>
Cancelled? There were some grumbles about the speaker lineup, I guess
<apeiros_>
hrm, annoying that for String#%, the keys must be symbols…
Mellett68 has quit [Read error: Operation timed out]
schaerli has joined #ruby-lang
thinkdev_ has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
schaerli_ has quit [Ping timeout: 265 seconds]
thinkdevcode has quit [Ping timeout: 246 seconds]
hakunin has joined #ruby-lang
qwerxy has quit [Quit: offski]
wyhaines has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
stonerfish has quit [Quit: Leaving.]
qwerxy has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
slyphon has joined #ruby-lang
KA_ has joined #ruby-lang
blazes816 has joined #ruby-lang
intellitech has joined #ruby-lang
banisterfiend has joined #ruby-lang
cosah has joined #ruby-lang
vlad_starkov has joined #ruby-lang
KA_ has quit [Quit: KA_]
intellitech has quit [Quit: Leaving]
KA_ has joined #ruby-lang
ttilley has joined #ruby-lang
intellitech has joined #ruby-lang
intellitech has quit [Client Quit]
intellitech has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
swarley has joined #ruby-lang
qwerxy has quit [Quit: offski]
gaveen has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
swarley has quit [Remote host closed the connection]
mytrile has quit [Remote host closed the connection]
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
gaveen has joined #ruby-lang
datanoise has quit [Ping timeout: 252 seconds]
fignewton has joined #ruby-lang
qwerxy has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
VGoff is now known as VGoff_afk
<rue>
It’s kind of a big deal
VGoff_afk is now known as VGoff
esad has joined #ruby-lang
gix has quit [Quit: Client exiting]
rue|w has joined #ruby-lang
<rue>
Where the hell are you logging in from, rue|w?
<rue>
Wth
<esad>
Hi everyone - I have an app that uses one local gem (that is still in development), this gems depends on second local gem. Is there a way to make this work with bundler in a way that I can just supply gem 'firstgem', path: …. in the app's Gemfile
<esad>
and this picks up the path for the second gem from first gem's Gemfile
<esad>
Does requiring a local gem in the app's Gemfile actually parse the local gem's Gemfile?
<esad>
*inception*
<rue>
You might just want to run a local gem server if you need dependency resolution
<esad>
I thought I could get away with bundle config local.*
<esad>
but then I'd need to run that on the server too
<esad>
is gem server an actual server or can it just be a path with gems
gix has joined #ruby-lang
rue|w has quit [Ping timeout: 244 seconds]
xeviox is now known as xeviox|awy
vlad_starkov has joined #ruby-lang
<whitequark>
rue: talking with yourself?
<whitequark>
esad: it does not follow the Gemfiles
<esad>
what is the Gemfile in gem's directory used for then?
<whitequark>
gem development
<whitequark>
you might want to launch executables like rspec
<whitequark>
and make them find some other gems in unusual places
schaerli has quit [Remote host closed the connection]
<whitequark>
when the gem is used, as opposed to being developed, it's just the gemspec what matters. that's the reason "gemspec" is the first clause of gem's Gemfile
<esad>
I see
<esad>
so I could do fine without Gemfile in my gem actually
<esad>
well, ok, perhaps it's useful for the dependency to the other local gem
<whitequark>
yup, that's what it is for
<esad>
there's no way to point one local gem to another local gem in a gemspec, right?
<whitequark>
yes
<esad>
I get it
gix has quit [Quit: Client exiting]
<whitequark>
local gems are bundler artifacts
<esad>
so I guess easiest way to achieve the behaviour I want is to have gem 'first_gem', path
<whitequark>
for deploying, I'd advise just using git: ... branch: ...
bluepojo has joined #ruby-lang
<ddd>
esad: I think you might be misunderstanding. if your gem will require those gems *after* its been released, you put them in gemspec. If you need those gems during *development* you use Gemfile. Gemfile has 'gemspec' in it so that those gems your own gem depends on are also loaded so you don't have to double declare them
<rue>
whitequark: I can’t figure out where the login is coming from…it’s this IP, but the work laptop is closed…
<esad>
ddd: it requires the other gem to function
<whitequark>
rue: maybe ACPI suddenly decided to wake it up
qwerxy has quit [Quit: offski]
mytrile has joined #ruby-lang
<whitequark>
y'know, that's exacly why you out-source firmware development to india
ryanf has joined #ruby-lang
<esad>
both app and the local gems live in the repository. the gems are actually rails engines.
<ddd>
then you put that in the gemspec itself. and you would have to have some way to ensure that gem A and B that are local gems are available. either by running a local gemserver thats constantly available for when that gem you're working on is installed, or by using a private git (or public if this is an opensource gem) in the gemspec for those 2 gems your gem depends on.
<whitequark>
through the ACPI spec is so complex that only Intel can realistically write an error-free DSDT, much less entire firmware.
<whitequark>
</rant>
<esad>
live in the same* repository
<ddd>
esad: *anything* that is an actual dependency of the gem you're working on, goes in the gemspec for that gem. and you would run a local gem server, use a git repo where the dependency gems are each in their own, or add the path using path: provided that path can be assured to pre-exist when the gem you're working on is installed. or you'll run into 'can't find gemA' ; can't find gemB' issues when installing your gem.
gix has joined #ruby-lang
<ddd>
whitequark: can a gem self reference a path inside itself to fulfil gemA and gemB dependencies?
<ddd>
whitequark: i've never tried it nor seen anyone try it, so idk
<whitequark>
ddd: er. afaik no.
<ddd>
whitequark: either as an extracted version or for location of prepackaged versions of the dependency gems? (like storing them in vendor/gems/ IN the installing gem itself)
<ddd>
whitequark: ok. didn;t think so, but wasn't sure if I was missing a trick or something
<whitequark>
ddd: the whole vendor/ trick is basically gone
bluepojo has quit [Quit: Leaving.]
datanoise has quit [Ping timeout: 276 seconds]
Carnage\ has joined #ruby-lang
thinkdev_ has quit [Remote host closed the connection]
<ddd>
esad: so that definitely means that you would either HAVE to run a local gem server, or use :git for the dependent gems IN your gemspec for the gem you're building, or absolutely ensure that the dependent gems were already installed prior to *your* gem being attempted to be installed. and as whitequark said earlier, the git repo would probably be the best bet.
<ddd>
whitequark: ahh, i didn't know. thanks for clarificaation
mytrile has quit [Ping timeout: 256 seconds]
<esad>
ddd: In every app that uses my local gems, I'm just supplying the pats in the Gemfile, and dependencies are defined in the gemspec
<esad>
ddd: because it's only 2 gems, this is not so bad
<esad>
paths*
<ddd>
but the Gemfile isn't used when the gem is INSTALLED. Thats the point. the *gemspec* is (your-gem.gemspec)
<ddd>
what is defined in the gemspec is what matters on deployments. thats why i spoke up. I thought you were confused about that, i was right. The Gemfile is only for you while you're developing the gem itself.
<esad>
I was hoping I could avoid having the "gem 'b'" line
<ddd>
and the addition of 'gemspec' in Gemfile is ONLY so that you don't have to double declare every gem your gem depends on. bundler will read the Gemfile, pull in any gems you declare there (for *development* of your gem) and then go read the gemspec and pull in any gems you define in *there*. The gemspec is what defines what your gem actually needs to have when someone tries to use it. The Gemfile is never consulted upon install
<ddd>
so it doens't matter how you construct your Gemfile during development of your gem. Once you attempt to actually install your gem (gem install your-gem), Gemfile plays NO part. Only the your-gem.gemspec does
<ddd>
nope, you will *have* to define the gem 'b' line in that other gem's gemspec if its a dependency of the gem
<whitequark>
gemspecs don't have 'gem' clause
<ddd>
they have g.add_dependency or g.runtime_dependency or similar
<ddd>
actually i thinks its really .add_runtime_dependency but you'll have to look at rubygems.org's docs for the spec
KA_ has quit [Quit: KA_]
<whitequark>
add_dependency
BlaXpirit has quit [Read error: Operation timed out]
<whitequark>
it was changed in a really old recent of rubygems, years ago
<whitequark>
so now it's just add_dependency
<whitequark>
and add_development_dependency
<ddd>
ahh got it.
<ddd>
i have add_dependency in my gems, just thought I remembered reading about using the runtime_dependency too and just threw it out there
workmad3 has joined #ruby-lang
mytrile has joined #ruby-lang
<mfn>
hrm
<ddd>
whitequark: good catch on the gem clause not being used in the gemspec, though. I had the Gemfile on the brain and didn't make the mental transition to "err, thats not right" lol
kentos has quit [Quit: Leaving]
thatdutchguy has joined #ruby-lang
thatdutchguy has quit [Remote host closed the connection]
<mfn>
cgi/cookie is weird. you can create a cookie and use to_s for it's string representation. And there's a parse method; however, the parse method only parses name=value pairs, but is not able to construct a Cookie object. And you can't feed the resulting hash directly into .new because the expected format is different ... it almost feels like there's something missing
gsav has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
methods1 has left #ruby-lang [#ruby-lang]
gregmore_ has joined #ruby-lang
<unsymbol>
i like that, in the quiet of irc, fewer people give a shit about ruby conference drama.
<unsymbol>
:3
* unsymbol
lastlogs
Mellett68 has joined #ruby-lang
thinkdevcode has joined #ruby-lang
gregmoreno has quit [Ping timeout: 255 seconds]
Mon_Ouie has quit [Ping timeout: 240 seconds]
datanoise has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
burgestrand1 has joined #ruby-lang
thinkdevcode has quit [Ping timeout: 246 seconds]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
burgestrand has quit [Ping timeout: 252 seconds]
unsymbol has quit [Ping timeout: 252 seconds]
datanoise has quit [Read error: Operation timed out]
gaveen has quit [Quit: Leaving]
<whitequark>
mfn: yeah, it's called "sense"
<whitequark>
the whole cgi module omits it for some reason.
cirwin has joined #ruby-lang
<whitequark>
btw, what conference drama?
mytrile has quit [Remote host closed the connection]