centrx has quit [Remote host closed the connection]
centrx has joined #ruby-lang
conanza has quit [Client Quit]
conanza has joined #ruby-lang
the_real_intinig has joined #ruby-lang
tfentonz has joined #ruby-lang
conanza has quit [Client Quit]
conanza has joined #ruby-lang
conanza has quit [Client Quit]
<tfentonz>
info tfentonz
martinbmadsen has joined #ruby-lang
the_real_intinig has quit [Ping timeout: 246 seconds]
unreal has quit [Ping timeout: 264 seconds]
jwaldrip has joined #ruby-lang
MouseTheLuckyDog has joined #ruby-lang
marr has quit [Ping timeout: 256 seconds]
<MouseTheLuckyDog>
I want to search and replace on a regex. The thing is after each replace, I would like the search to pause get the new substring that replaces the old and save it in a list. Is there a clean way to do that?
b_hoffman has joined #ruby-lang
bantic has joined #ruby-lang
havenwood has joined #ruby-lang
tfentonz has quit [Remote host closed the connection]
tfentonz has joined #ruby-lang
amclain has joined #ruby-lang
shinnya has quit [Ping timeout: 265 seconds]
fujimura has joined #ruby-lang
hahuang65 has quit [Ping timeout: 252 seconds]
fujimura has quit [Ping timeout: 250 seconds]
<darix>
MouseTheLuckyDog: you could use a block for the replace part?
caseypatrickdris has quit [Remote host closed the connection]
taylorrf has quit [Remote host closed the connection]
caseypatrickdris has joined #ruby-lang
taylorrf has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has joined #ruby-lang
taylorrf has quit [Remote host closed the connection]
caseypatrickdris has quit [Ping timeout: 252 seconds]
riotjones has joined #ruby-lang
Drew__ has joined #ruby-lang
intinig has joined #ruby-lang
riotjones has quit [Ping timeout: 264 seconds]
caseypatrickdris has joined #ruby-lang
intinig has quit [Ping timeout: 265 seconds]
caseypatrickdris has quit [Read error: Connection reset by peer]
caseypatrickdris has joined #ruby-lang
jwaldrip has quit [Quit: Be back later ...]
bantic has quit [Quit: bantic]
jgpawletko has quit [Quit: jgpawletko]
charliesome has joined #ruby-lang
unreal has joined #ruby-lang
Mon_Ouie has quit [Quit: WeeChat 1.1.1]
hahuang65 has joined #ruby-lang
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby-lang
hiFriends has joined #ruby-lang
<hiFriends>
Hi all, I have a question. I have an older app that needs a lot of gems and I want to use bundler + Gemfile to manage that list and install those version. if I only have the 1 system ruby and this one 'gem set' do I need to do bundle exec foo?
<hiFriends>
this app is a bunch of system level services
<hiFriends>
that already have nice working init scripts that I dont want to figure out how to wrap in bundle exec foo
anekant has quit [Ping timeout: 252 seconds]
<hiFriends>
I think the answer is yes that I can just do bundle install and then be done with it and continue to start the services the same way I always have
anekant has joined #ruby-lang
<havenwood>
hiFriends: Since Bundler's default installation location is GEM_HOME I suspect you're correct. You might want to go ahead and prefix `bundle exec` anyways to avoid issues if you should say `gem update` or confusion for you or others revisiting it later.
<hiFriends>
havenwood: this application is sufficiently "legacy" such that running gem update would break the install so that wont be a problem.
<hiFriends>
thank you for the input
<havenwood>
hiFriends: Another option if you're on a modern RubyGems is to not use Bundler at all. You can `export RUBYGEMS_GEMDEPS=/location/of/Gemfile` and install dependencies with: gem install -g
RobertBirnie has joined #ruby-lang
<hiFriends>
havenwood: sorry im a ruby nooby. I have gem 1.8.23.2 is that modern enough?
androided has joined #ruby-lang
<hiFriends>
I like that idea of not using bundler as im not 100% sure its the best
<havenwood>
hiFriends: Nope. That's not new enough.
<havenwood>
hiFriends: Bundler is very widely used.
<havenwood>
hiFriends: Depending on the version of your Ruby it'll ship with a different version of RubyGems. You can update RubyGems without updating your Ruby with the command: sudo gem update --system
androided has quit [Client Quit]
<havenwood>
hiFriends: Using Bundler to resolve gem dependencies is the status quo. Using RubyGems is the new way.
octodoodle has joined #ruby-lang
ghostpl_ has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bantic has joined #ruby-lang
RobertBirnie has joined #ruby-lang
hiFriends has quit [Ping timeout: 246 seconds]
haraoka_ has joined #ruby-lang
caseypatrickdris has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
caseypatrickdris has joined #ruby-lang
taylorrf has joined #ruby-lang
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby-lang
caseypatrickdris has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rrdein>
I am trying to write a script to log in to https://login.live.com/ , interact with and submit a form, and retrieve the results. I don't want an actual browser windows open. Does anyone know what most people use to do this?
<rrdein>
I am trying to use Mechanize, but when I get to the login page and use agent.forms , it gives me an empty array
tkuchiki_ has joined #ruby-lang
tkuchiki has quit [Ping timeout: 245 seconds]
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
intinig has joined #ruby-lang
dhjondoh has joined #ruby-lang
intinig has quit [Ping timeout: 246 seconds]
JaReAx has joined #ruby-lang
revath has quit [Ping timeout: 252 seconds]
<ledestin>
rrdein I'd use Capybara
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
kp666 has quit [Ping timeout: 252 seconds]
Versality has joined #ruby-lang
x44x45x41x4E has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
revath has joined #ruby-lang
<hakunin>
rrdein: probably some iframe shenanigans
<hakunin>
rrdein: you can use mechanize, you just gotta be clever
<hakunin>
as in - it might be doing something clever
<hakunin>
the site
fujimura has quit [Remote host closed the connection]
houhoulis has quit [Remote host closed the connection]
kp666 has joined #ruby-lang
Averna has quit [Quit: Leaving.]
bruno- has joined #ruby-lang
caseypatrickdris has joined #ruby-lang
riotjones has joined #ruby-lang
amclain has quit [Quit: Leaving]
caseypatrickdris has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 256 seconds]
anekant has joined #ruby-lang
fujimura has joined #ruby-lang
stan has joined #ruby-lang
solars has joined #ruby-lang
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby-lang
kerunaru has joined #ruby-lang
auzty has joined #ruby-lang
intinig has joined #ruby-lang
AlexAltea has joined #ruby-lang
x44x45x41x4E has joined #ruby-lang
JaRe_Ax has joined #ruby-lang
JaReAx has quit [Ping timeout: 244 seconds]
JaRe_Ax is now known as JaReAx
intinig has quit [Ping timeout: 265 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
intuxicated has joined #ruby-lang
Versality has quit [Quit: Be back later ...]
crdpink2 has quit [Quit: q term]
tsujp has quit [Quit: tsujp is snoozing]
Versality has joined #ruby-lang
ta has quit [Remote host closed the connection]
martinbmadsen has quit [Ping timeout: 265 seconds]
gwendall has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
gwendall has quit [Ping timeout: 272 seconds]
fusillicode has joined #ruby-lang
lapide_viridi has joined #ruby-lang
lapideviridi has joined #ruby-lang
whippythellama has joined #ruby-lang
fujimura_ has joined #ruby-lang
setanta_ has joined #ruby-lang
lapide_viridi has quit [Ping timeout: 272 seconds]
fusillicode1 has joined #ruby-lang
fusillicode has quit [Read error: No route to host]
intuxicated has quit [Quit: Leaving]
fujimura_ has quit [Ping timeout: 265 seconds]
fusillicode has joined #ruby-lang
tsujp has joined #ruby-lang
gwendall has joined #ruby-lang
fusillicode1 has quit [Ping timeout: 256 seconds]
dhjondoh has quit [Quit: dhjondoh]
shinnya has joined #ruby-lang
centrx has joined #ruby-lang
workmad3 has quit [Ping timeout: 264 seconds]
Integral1st has joined #ruby-lang
true_droid has joined #ruby-lang
Integralist has quit [Ping timeout: 272 seconds]
[H]unt3r has joined #ruby-lang
true_droid has left #ruby-lang ["WeeChat 0.4.3"]
iamninja has quit [Ping timeout: 250 seconds]
lytol has joined #ruby-lang
jo__ has joined #ruby-lang
centrx has quit [Remote host closed the connection]
centrx has joined #ruby-lang
ta has quit [Remote host closed the connection]
matrisking has joined #ruby-lang
thehybridtech has joined #ruby-lang
j4cknewt has joined #ruby-lang
cpt_yossarian has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
symm- has joined #ruby-lang
<thehybridtech>
Got a weird problem I am trying to resolve using Ruby. I have a string that may or may not contain an artifact character possibly replacing any character in the string. I am running several different pattern matches against the strings but the artifact has the potential to break my matches. What would be the best method to treat the artifact character in the string as a wildcard?
caseypatrickdris has quit [Remote host closed the connection]
<x44x45x41x4E>
thehybridtech What do you mean by artifact character? Sorry, I'm not familliar with it.
lapideviridi has quit [Quit: Leaving]
<thehybridtech>
x44x45x41x4E - The string is a value pulled from a hardware log (LSI RAID Controller). When the hardware device writes the log it sometimes dumps a non-standard character in replacement of another character. The character in question is "ÿ".
intinig has quit [Remote host closed the connection]
intinig has joined #ruby-lang
<thehybridtech>
x44x45x41x4E - Basically, I would like to my regex patterns whenever it sees "ÿ", to treat it as a "?". Fuzzy logic around that specific character.
gwendall has quit [Remote host closed the connection]
<awea>
jhass, mhhh it intend to be a question but it's not, sorry about that. I'm trying to reproduce the PHP code without success my implementation seems to not work or may be my test aren't good. I'm using the signed body as a signature value in the Header and send it to the page but always give me a false when it verify it. When I try the code through pry I doesn't get any problem may be it comes from the digest i'm using ?
baweaver has quit [Remote host closed the connection]
<anekant>
I guess I want to have an arbitrary argument name that I can call within the method, and the call will call whatever method was passed to the method
<anekant>
is that what the .call is for?
<jhass>
awea: maybe, or maybe the response body contains something you need to strip out first? like some trailing space or newline?
<wallerdev>
anekant: sure
<jhass>
awea: actually the the example does json_decode to the body, maybe that's it?
centrx has quit [Remote host closed the connection]
centrx has joined #ruby-lang
<jhass>
awea: same thing for the signature, check there's no additional data you need to clean out firsst
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rayford has joined #ruby-lang
<awea>
jhass: already try but I'm gonna update the gist with them. The json_decode result is just used for mailing in the example
<jhass>
oh, right
boadie has quit [Remote host closed the connection]
boadie has joined #ruby-lang
<anekant>
hm seems the syntax is eluding me
baweaver has joined #ruby-lang
HanaNix has joined #ruby-lang
mikecmpbll has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
tsujp has quit [Quit: tsujp is snoozing]
joaomdmoura has joined #ruby-lang
ghostpl_ has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
agarie has quit [Remote host closed the connection]
<wallerdev>
if you want to pass it with &
<wallerdev>
you should use yield instead of aMethod.call
<wallerdev>
otherwise delete the &
hotpancakes has quit []
<anekant>
ah thx that seems to work, deleting the &
kadoppe has quit [Ping timeout: 256 seconds]
<awea>
jhass, I think the real problem here is not the to strip the data but the digest I'm using. Because when I sign my body to use it as a header params and when it's validated on the server side a new digest is generated. So may be I'm not doing it right ? But I'm pretty sure that my implementation is equal to the php implementation may be my test is not relevant ...
baweaver has quit [Remote host closed the connection]
lytol has quit [Remote host closed the connection]
kadoppe has joined #ruby-lang
stamina has quit [Remote host closed the connection]
<anekant>
can I also pass arguments to aMethod in the parameter list?
<anekant>
def testMethod aMethod(x,y) ?
workmad3 has quit [Ping timeout: 252 seconds]
enebo has joined #ruby-lang
ta has joined #ruby-lang
<jhass>
awea: your calls seem fine really, the only thing I can imagine is some byte of one of the inputs being off
<awea>
jhass: I'm gonna test the php implementation see how the inputs are
dorei has joined #ruby-lang
agarie has joined #ruby-lang
j4cknewt has joined #ruby-lang
crdpink has joined #ruby-lang
<jhass>
awea: one thing you can try is callng .public_key.verify, but that really should make no diff
Iskarlar has joined #ruby-lang
j4cknewt_ has joined #ruby-lang
ta has quit [Ping timeout: 256 seconds]
<awea>
jhass: i'm already calling this or you mean outside my class and my test process ? ^^
Iskarlar has quit [Read error: Connection reset by peer]
<jhass>
awea: I mean the public_key method of OpenSSL::PKey::RSA
hahuang61 has joined #ruby-lang
<jhass>
so public_key.public_key.verify
thehybridtech1 has joined #ruby-lang
lytol has joined #ruby-lang
<matp>
Hi all! I wrote a little toy csp solver to try step up my ruby game. If anyone has feedback on style or how to improve, I'd appreciate it! https://github.com/matp/tiny-csp
j4cknewt has quit [Ping timeout: 256 seconds]
riotjones has joined #ruby-lang
thehybridtech has quit [Ping timeout: 256 seconds]
zzak has joined #ruby-lang
lytol has quit [Ping timeout: 264 seconds]
<awea>
jhass: I think I can stop here the example they provide doesn't work too
<jhass>
lol
<awea>
jhass: I'm gonna kick some ass when their office open tommorow
<jhass>
awea: maybe you copy pasted the wrong key after all? :)
<awea>
ahah :D
<awea>
they provide a shitty api to get the key so there is no copy past here sir ^^
<jhass>
matp: have a look at guides.rubygems.org/name-your-gem/, it's a good thing to follow even for non-gems
<jhass>
oh, okay
<jhass>
nvm me, storm their office with force ;D
<awea>
i'll do
postmodern has joined #ruby-lang
<awea>
jhass: thanks for your help ^^
<jhass>
matp: use .is_a? instead of Foo ===
<jhass>
awea: yw
solars has quit [Ping timeout: 265 seconds]
riotjones has quit [Ping timeout: 256 seconds]
vipaca has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
joaomdmoura has quit [Remote host closed the connection]
<jhass>
matp: don't break the modifier-if, convert it to a regular if when it breaks your line length limit
Astrologos_ has joined #ruby-lang
Miphix has quit [Quit: Leaving]
<jhass>
matp: if !foo -> unless foo
dorei has quit [Ping timeout: 245 seconds]
symm- has joined #ruby-lang
<jhass>
matp: I wouldn't do multiple assignment if one of the rhs side values is a complex expression (like a ternary)
apeiros_ has joined #ruby-lang
skyrocker has quit [Ping timeout: 245 seconds]
j4cknewt_ has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
matp: if a !~ b -> unless a ~= b
<jhass>
that's about it I think, so mostly formatting I'd disagree with :)
chacmool has joined #ruby-lang
<matp>
Thanks a lot for the suggestions, jhass!
lapide_viridi has quit [Quit: Leaving]
ta has joined #ruby-lang
<matp>
I'll try to improve it and maybe turn it into a gem even though it's probably entirely useless to the rest of the world :D
yfeldblum has joined #ruby-lang
solars has joined #ruby-lang
intinig has quit [Remote host closed the connection]
intinig has joined #ruby-lang
intinig has quit [Remote host closed the connection]
intinig has joined #ruby-lang
leat has quit [Remote host closed the connection]
boadie has quit [Remote host closed the connection]
intinig has quit [Remote host closed the connection]
intinig has joined #ruby-lang
apeiros_ has quit []
Simonides has joined #ruby-lang
<Simonides>
hello!
apt-get_ has joined #ruby-lang
sarkyniin has quit [Read error: No route to host]
<jhass>
hi
intinig has quit [Ping timeout: 244 seconds]
ta has quit [Remote host closed the connection]
<Simonides>
hey, Rubists! I've got riddle that is really annoying me whole day: "For assigning value to a variable in Ru y I used == operator. Why I didn't used = or ===?" Question is 100% correct, but I don't know how to prove that (because everybody knows how =, ==, and === works). Any suggestions?
<centrx>
mybool = (quack == duck) ?
leat has joined #ruby-lang
boadie has joined #ruby-lang
boadie has quit [Remote host closed the connection]
Rayford has quit [Quit: Rayford]
gix has quit [Ping timeout: 265 seconds]
ta has joined #ruby-lang
j4cknewt has quit [Ping timeout: 252 seconds]
ta has quit [Read error: Connection reset by peer]
ta has joined #ruby-lang
taylorrf has quit [Remote host closed the connection]
<Simonides>
hey, how I done it only using == sign? I'm out of ideas
gix has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
fujimura has joined #ruby-lang
j4cknewt has joined #ruby-lang
<Simonides>
That was a question asked by our boss to solve it, we told him, that the question is not asked properly, but he's Ruby programmer since 10 years, and he told us that's possible
Iskarlar has joined #ruby-lang
<Simonides>
Me and my colleagues were spending long hours to solve that problem but without any idea
<centrx>
Seems like a trick question
<jhass>
so the Ru y is a typo for Ruby or not?
<Simonides>
I know that :D
<Simonides>
no, It's Ruby, sorry for a mistake
<jhass>
how about class Foo; def ==(value); @variable = value; end; end; ?
<Simonides>
let me check this out :)
fujimura has quit [Ping timeout: 256 seconds]
<Simonides>
hey, but what does it exactly do; I mean ==(value) line?
<jhass>
well, a == b is a method call, a.==(b), I just redefined that method to assign an instance variable in the object
<Simonides>
so "==" is just a function name here, right?
<jhass>
yes, terminology nitpick: ruby has no functions, only methods
<Simonides>
of course :)
<Simonides>
damn, nice trick
baweaver has joined #ruby-lang
<jhass>
if you want to screw your colleagues slip def nil.!; rand(2) == 1; somewhere into your code :P
<Simonides>
no, I dont want to do such things :d haha
<Simonides>
that showed me that I need more practice with ruby
<Simonides>
but one more thing if I could ask
lytol has joined #ruby-lang
<Simonides>
foo == "bar" and there making something like print "foo" of course dont return
<Simonides>
bar
<Simonides>
is it any way to make that "bar" work?
<Simonides>
ok, I got it
<Simonides>
puts foo == "bar" do the thing :D
<jhass>
yes, because the value of an assignment (@variable = value in our case) is its right hand side, next the last expression is the return value of a method, so value becomes the return value of Foo#==
lytol has quit [Ping timeout: 250 seconds]
micmus has joined #ruby-lang
<Simonides>
yeah, now it's clear
thehybridtech2 has joined #ruby-lang
joaomdmoura has quit [Read error: Connection reset by peer]
joaomdmoura has joined #ruby-lang
thehybridtech1 has quit [Ping timeout: 244 seconds]
stan has quit [Ping timeout: 265 seconds]
taylorrf has joined #ruby-lang
joaomdmo_ has joined #ruby-lang
joaomdmoura has quit [Read error: Connection reset by peer]
cmisenas has quit [Quit: cmisenas]
agarie has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
Musashi007 has joined #ruby-lang
boadie has joined #ruby-lang
boadie has quit [Client Quit]
Drew__ has quit [Ping timeout: 264 seconds]
Simonides has quit [Ping timeout: 246 seconds]
Iskarlar_ has joined #ruby-lang
sp4rrow has joined #ruby-lang
agarie has joined #ruby-lang
joaomdmoura has joined #ruby-lang
joaomdmo_ has quit [Read error: Connection reset by peer]
b_hoffman has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
Iskarlar has quit [Ping timeout: 250 seconds]
leat has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
michaeldeol has joined #ruby-lang
Iskarlar has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Iskarlar_ has quit [Ping timeout: 256 seconds]
[H]unt3r has quit []
djbkd has joined #ruby-lang
baweaver has joined #ruby-lang
Iskarlar_ has joined #ruby-lang
Iskarlar has quit [Ping timeout: 256 seconds]
matp_ has joined #ruby-lang
Iskarla__ has joined #ruby-lang
matp has quit [Ping timeout: 245 seconds]
joaomdmoura has quit [Read error: Connection reset by peer]
joaomdmoura has joined #ruby-lang
leat has joined #ruby-lang
Iskarlar_ has quit [Ping timeout: 256 seconds]
Drew__ has joined #ruby-lang
iamninja has joined #ruby-lang
apt-get_ has quit [Ping timeout: 256 seconds]
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
setanta_ has quit [Quit: Leaving]
leat has quit [Ping timeout: 256 seconds]
lytol has joined #ruby-lang
davispuh has quit [Read error: Connection reset by peer]
julweber has joined #ruby-lang
joaomdmoura has quit [Read error: No route to host]
joaomdmo_ has joined #ruby-lang
banister is now known as banisterfiend
sp4rrow has joined #ruby-lang
Iskarlar has joined #ruby-lang
Iskarla__ has quit [Ping timeout: 256 seconds]
lytol has quit [Ping timeout: 264 seconds]
b_hoffman has quit [Quit: b_hoffman]
havenwood has quit [Ping timeout: 264 seconds]
Astrologos_ has quit []
havenwood has joined #ruby-lang
Iskarlar has quit [Ping timeout: 250 seconds]
Iskarlar has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
Lewix has joined #ruby-lang
Lewix has joined #ruby-lang
b_hoffman has joined #ruby-lang
[H]unt3r has joined #ruby-lang
whippythellama has quit [Quit: whippythellama]
agarie has quit []
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
dellavg_ has quit [Ping timeout: 264 seconds]
[H]unt3r has quit [Ping timeout: 245 seconds]
Drew__ has quit [Ping timeout: 255 seconds]
joaomdmo_ has quit [Read error: No route to host]
joaomdmoura has joined #ruby-lang
ghostpl_ has joined #ruby-lang
lytol has joined #ruby-lang
havenwood has quit [Ping timeout: 246 seconds]
relix has joined #ruby-lang
havenwood has joined #ruby-lang
elia has joined #ruby-lang
fujimura has joined #ruby-lang
taylorrf has quit [Remote host closed the connection]
dziemid has joined #ruby-lang
fujimura has quit [Ping timeout: 264 seconds]
enebo has quit [Quit: enebo]
taylorrf has joined #ruby-lang
[H]unt3r has joined #ruby-lang
chacmool has quit [Read error: Connection reset by peer]
chacmool has joined #ruby-lang
lytol_ has joined #ruby-lang
EvilJStoker has quit [*.net *.split]
Caius has quit [*.net *.split]
bryanl has quit [*.net *.split]
verto has quit [*.net *.split]
ericwood has quit [*.net *.split]
kalleth has quit [*.net *.split]
pjaspers has quit [*.net *.split]
DefV has quit [*.net *.split]
yorickpeterse has quit [*.net *.split]
centrx has quit [Quit: Shutting down, Please wait...]
taylorrf has quit [Ping timeout: 252 seconds]
gix has quit [Ping timeout: 246 seconds]
EvilJStoker has joined #ruby-lang
Caius has joined #ruby-lang
pjaspers has joined #ruby-lang
bryanl has joined #ruby-lang
verto has joined #ruby-lang
ericwood has joined #ruby-lang
kalleth has joined #ruby-lang
DefV has joined #ruby-lang
yorickpeterse has joined #ruby-lang
EvilJStoker has quit [Max SendQ exceeded]
EvilJStoker has joined #ruby-lang
lytol has quit [Ping timeout: 256 seconds]
lytol_ has quit [Read error: Connection reset by peer]
lytol has joined #ruby-lang
gix has joined #ruby-lang
lytol has quit [Read error: Connection reset by peer]
lytol has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
kfpratt has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<crankharder>
why would bundle be telling me my gemspec is invalid and that: [".rvmrc"] are not files -- when .rvmrc doesn't exist anymore?
HanaNix has quit [Ping timeout: 264 seconds]
ohsix has quit [Ping timeout: 256 seconds]
kfpratt has quit [Remote host closed the connection]
<havenwood>
crankharder: my suspicion is that you gemspec used git for files, where .rvmrc lingers
<havenwood>
s/you/your
<crankharder>
"used git for files" ??
<crankharder>
ah.
<crankharder>
got it
<crankharder>
thanks!
baweaver has quit [Remote host closed the connection]
<havenwood>
aye, Bundler popularized it, and has gone through a couple derivations of: `git ls-files`.split($\)
Musashi007 has quit [Quit: Musashi007]
<havenwood>
crankharder: you're welcome
baweaver has joined #ruby-lang
stardiviner has quit [Ping timeout: 252 seconds]
ruby-lang has quit [Quit: Leaving.]
matrisking has quit [Quit: Lost terminal]
baweaver has quit [Ping timeout: 264 seconds]
benlovell has joined #ruby-lang
workmad3 has joined #ruby-lang
lytol has quit [Ping timeout: 264 seconds]
arBmind has quit [Quit: Leaving.]
baweaver has joined #ruby-lang
Lewix has joined #ruby-lang
[H]unt3r has quit [Quit: Leaving]
<jhass>
that pattern is so silly
<jhass>
it specifically excludes packaging the git repo into the gem
solars has joined #ruby-lang
<jhass>
so you ship a gem with a gemspec form which you can't rebuild the gem after extraction
<workmad3>
jhass: hmm... hadn't considered that aspect of the bundler gemspec template before
sgambino has quit [Remote host closed the connection]
<jhass>
also breaks building the gem from the tarball downloads GH makes available
<havenwood>
I look like Bundler 1.9.1 is doing: `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
<havenwood>
s/I look/It looks
<jhass>
and then the same dance for .spec_files I guess
<havenwood>
I can't type today.
<havenwood>
That's ^ the: spec.files =
<workmad3>
jhass: I guess what would be nice is if Gem::Specification had a method that could be used to take a loaded gemspec and output a fully-grounded gemspec file, so that the packaging process could load the gemspec and write out a static version
stardiviner has joined #ruby-lang
<jhass>
fixes my first usecase but not my second
malconis_ has joined #ruby-lang
<jhass>
I see no issue in the classic Dir["{bin,lib,whatever}/**/*.rb"] approach
<workmad3>
same... but the git ls approach is kinda appealing in that it'll cause an issue if you've forgotten to track a file the gem depends on
<jhass>
powerline-shell makes that a non-issue for me :P
<workmad3>
:)
<jhass>
that thing even made me start to use .git/info/exclude
malconis has quit [Ping timeout: 255 seconds]
<jhass>
for stuff you don't want to track but also not add to .gitignore