apeiros changed the topic of #ruby-lang to: Ruby 2.2.1; 2.1.5; 2.0.0-p643: https://ruby-lang.org || Paste code on https://gist.github.com
the_real_intinig has quit [Ping timeout: 265 seconds]
Rayford has quit [Quit: Rayford]
lotstolearn has joined #ruby-lang
<lotstolearn> Hello
<lotstolearn> Can someone point me in the right direction. I wrote a Ruby command in Sublime but I cant save it
<lotstolearn> I keep getting the respone Unable to save /taxcalc.rb Error: Permission denied
EvilJStoker has quit [Ping timeout: 264 seconds]
riotjones has joined #ruby-lang
EvilJStoker has joined #ruby-lang
<centrx> lotstolearn, Save it to your home directory, not the root directory
martinbmadsen has joined #ruby-lang
<lotstolearn> Ok thx Centrx
riotjones has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
|jemc| has left #ruby-lang ["WeeChat 1.1.1"]
AlexAltea has quit [Ping timeout: 246 seconds]
martinbmadsen has quit [Ping timeout: 272 seconds]
nertzy has joined #ruby-lang
<lotstolearn> WOot i built my first ruby program
workmad3 has quit [Ping timeout: 256 seconds]
<wallerdev> congrats
<wallerdev> whats it do?
<wallerdev> calculate taxes?
<wallerdev> haha
<lotstolearn> heh yeah, calculates my tax payments T.T
jo__ has quit [Quit: Connection closed for inactivity]
<lotstolearn> GOod bye Excel :D
fujimura has joined #ruby-lang
<wallerdev> i used turbotax
rikkipitt has quit [Remote host closed the connection]
fujimura has quit [Ping timeout: 272 seconds]
<lotstolearn> heh im from Aus, so nothing partiuclaarly good like turbotax
<wallerdev> well hopefully your tax laws are simpler haha
<wallerdev> :)
Sirupsen has joined #ruby-lang
JEG2 has quit [Quit: Connection closed for inactivity]
<lotstolearn> haha not unless youre a straight arrow
tvon has quit [Quit: leaving]
bruno- has quit [Ping timeout: 264 seconds]
anekant has joined #ruby-lang
havenwood has quit [Ping timeout: 252 seconds]
<lotstolearn> which I am :(
havenwood has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi007 has joined #ruby-lang
havenwood has quit [Ping timeout: 256 seconds]
centrx has quit [Remote host closed the connection]
centrx has joined #ruby-lang
lotstolearn has quit [Ping timeout: 246 seconds]
wallerdev has quit [Quit: wallerdev]
centrx has quit [Remote host closed the connection]
centrx has joined #ruby-lang
conanza has joined #ruby-lang
tkuchiki has joined #ruby-lang
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
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?
<MouseTheLuckyDog> darix: how would I do that?
<darix> google: ruby gsub block
<darix> first hit
elia has quit [Quit: Computer has gone to sleep.]
<MouseTheLuckyDog> Thanks
b_hoffman has quit [Quit: b_hoffman]
b_hoffman has joined #ruby-lang
fujimura has joined #ruby-lang
rcvalle has quit [Quit: rcvalle]
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…]
taylorrf has quit [Ping timeout: 272 seconds]
postmodern has quit [Quit: Leaving]
jwaldrip has joined #ruby-lang
charliesome has joined #ruby-lang
michaeldeol has joined #ruby-lang
tsujp has joined #ruby-lang
bantic has quit [Quit: bantic]
intinig has joined #ruby-lang
octodoodle has quit [Quit: Textual IRC Client: www.textualapp.com]
intinig has quit [Ping timeout: 255 seconds]
octodoodle has joined #ruby-lang
sankaber has joined #ruby-lang
rgb-one has joined #ruby-lang
rgb-one has quit [Read error: Connection reset by peer]
Musashi007 has quit [Quit: Musashi007]
Vols has quit [Quit: Leaving]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Lewix has quit [Remote host closed the connection]
havenn has joined #ruby-lang
havenwood has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby-lang
havenn has quit [Ping timeout: 244 seconds]
revath has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
znz_jp has quit [Quit: kill -QUIT $$]
havenn has joined #ruby-lang
havenwood has quit [Ping timeout: 255 seconds]
znz_jp has joined #ruby-lang
kfpratt has quit [Remote host closed the connection]
revath has quit [Ping timeout: 246 seconds]
tfentonz has quit []
caseypatrickdris has joined #ruby-lang
cornerma1 has joined #ruby-lang
caseypatrickdris has quit [Ping timeout: 246 seconds]
cornerman has quit [Ping timeout: 272 seconds]
cornerma1 is now known as cornerman
intinig has joined #ruby-lang
intinig has quit [Ping timeout: 264 seconds]
gamov has joined #ruby-lang
tsujp has quit [Quit: tsujp is snoozing]
kp666 has joined #ruby-lang
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby-lang
centrx has quit [Quit: Shutting down, Please wait...]
alexey_ has joined #ruby-lang
gix has quit [Ping timeout: 252 seconds]
gix has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x44x45x41x4E has joined #ruby-lang
ledestin has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
jdecuirm has quit [Remote host closed the connection]
caseypatrickdris has joined #ruby-lang
revath has joined #ruby-lang
symm- has quit [Ping timeout: 272 seconds]
caseypatrickdris has quit [Ping timeout: 244 seconds]
Musashi007 has joined #ruby-lang
bb010g has joined #ruby-lang
revath has quit [Ping timeout: 246 seconds]
tsujp has joined #ruby-lang
intinig has joined #ruby-lang
fujimura has quit [Remote host closed the connection]
kp666 has quit [Read error: No route to host]
iamninja has quit [Read error: Connection reset by peer]
jwaldrip has quit [Quit: Lingo: www.lingoirc.com]
kp666 has joined #ruby-lang
iamninja has joined #ruby-lang
revath has joined #ruby-lang
intinig has quit [Ping timeout: 256 seconds]
Novtopro has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 252 seconds]
angdev has joined #ruby-lang
angdev has left #ruby-lang [#ruby-lang]
octodoodle has quit [Quit: Textual IRC Client: www.textualapp.com]
revath has quit [Ping timeout: 256 seconds]
havenn has quit []
ghostpl_ has joined #ruby-lang
ghostpl_ has quit [Ping timeout: 265 seconds]
Novtopro has quit [Quit: Textual IRC Client: www.textualapp.com]
martinbmadsen has joined #ruby-lang
revath has joined #ruby-lang
mikecmpbll has quit [Quit: ciao.]
anekant has quit [Ping timeout: 252 seconds]
fujimura has joined #ruby-lang
rrdein has joined #ruby-lang
<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]
tsujp has joined #ruby-lang
ROOM1 has joined #ruby-lang
<ROOM1> hi
haraoka_ has quit [Ping timeout: 264 seconds]
Musashi007 has quit [Quit: Musashi007]
Musashi007 has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
relix has joined #ruby-lang
x44x45x41x4E has quit [Quit: Textual IRC Client: www.textualapp.com]
x44x45x41x4E has joined #ruby-lang
strixd has joined #ruby-lang
strixd has quit [Excess Flood]
fujimura has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
kerunaru has quit [Quit: Textual IRC Client: www.textualapp.com]
ayonkhan has joined #ruby-lang
kerunaru has joined #ruby-lang
ta has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
postmodern has joined #ruby-lang
Musashi007 has joined #ruby-lang
tsujp has quit [Quit: tsujp is snoozing]
Musashi007 has quit [Client Quit]
JohnBat26 has joined #ruby-lang
EnergyCoffee has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
ta has quit [Remote host closed the connection]
fujimura has joined #ruby-lang
Iskarlar has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
intinig has joined #ruby-lang
arBmind has joined #ruby-lang
dhjondoh has quit [Quit: dhjondoh]
dhjondoh has joined #ruby-lang
vondruch has quit [Quit: Ex-Chat]
stardiviner has quit [Ping timeout: 244 seconds]
Bertg has joined #ruby-lang
fusillicode1 has quit [Quit: Leaving.]
fusillicode has joined #ruby-lang
intinig has quit [Ping timeout: 246 seconds]
badeball_ has joined #ruby-lang
marr has joined #ruby-lang
vondruch has joined #ruby-lang
ruby-lang476 has joined #ruby-lang
ruby-lang476 has quit [Client Quit]
fujimura has quit [Remote host closed the connection]
fujimura has joined #ruby-lang
postmodern has quit [Quit: Leaving]
stardiviner has joined #ruby-lang
fujimura has quit [Ping timeout: 264 seconds]
arBmind has quit [Quit: Leaving.]
fujimura has joined #ruby-lang
ta has joined #ruby-lang
badeball_ has quit [Quit: leaving]
badeball_ has joined #ruby-lang
elia has joined #ruby-lang
<yorickpeterse> morning
arBmind has joined #ruby-lang
stardiviner has quit [Ping timeout: 264 seconds]
arBmind has quit [Ping timeout: 264 seconds]
arBmind has joined #ruby-lang
stardiviner has joined #ruby-lang
ayonkhan has quit [Ping timeout: 250 seconds]
dhjondoh has quit [Quit: dhjondoh]
charliesome has joined #ruby-lang
x44x45x41x4E has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dhjondoh has joined #ruby-lang
alexey_ has quit [Ping timeout: 246 seconds]
x44x45x41x4E has joined #ruby-lang
intinig has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
alexey__ has joined #ruby-lang
<balo> morning
<balo> do we have a public roadmap for cruby somewhere?
fujimura has quit [Remote host closed the connection]
fujimura has joined #ruby-lang
<balo> i'm looking for >= 2.3 specifically
fujimura has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
intinig has quit [Ping timeout: 252 seconds]
jolg42 has joined #ruby-lang
martinbmadsen has joined #ruby-lang
kp666 has quit [Quit: Leaving]
martinbmadsen has quit [Ping timeout: 252 seconds]
jolg42 has quit [Max SendQ exceeded]
rikkipitt has joined #ruby-lang
jolg42 has joined #ruby-lang
charliesome has quit [Read error: Connection reset by peer]
charliesome_ has joined #ruby-lang
taylorrf has joined #ruby-lang
lele is now known as Guest24
stamina has joined #ruby-lang
taylorrf has quit [Ping timeout: 246 seconds]
stan has quit [Quit: Leaving]
fusillicode1 has joined #ruby-lang
ghostpl_ has joined #ruby-lang
stan has joined #ruby-lang
fusillicode has quit [Ping timeout: 264 seconds]
fusillicode1 has quit [Client Quit]
fusillicode has joined #ruby-lang
fusillicode1 has joined #ruby-lang
x44x45x41x4E has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby-lang
fusillicode has quit [Ping timeout: 244 seconds]
jkprg has joined #ruby-lang
jkprg has quit [Client Quit]
yfeldblu_ has joined #ruby-lang
<darix> balo: I would ask that question on the ruby-core ml
yfeldblum has quit [Ping timeout: 244 seconds]
<balo> darix: ok, thanks, i will
x44x45x41x4E has joined #ruby-lang
Bertg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_real_intinig has joined #ruby-lang
mathie has quit [Quit: Quitting...]
fujimura has joined #ruby-lang
mathie has joined #ruby-lang
dhjondoh has quit [Remote host closed the connection]
ROOM1 has quit [Ping timeout: 244 seconds]
fujimura has quit [Ping timeout: 264 seconds]
the_real_intinig has quit [Ping timeout: 250 seconds]
fusillicode has joined #ruby-lang
alexey__ has quit [Read error: No route to host]
fusillicode1 has quit [Ping timeout: 255 seconds]
davispuh has joined #ruby-lang
taylorrf has joined #ruby-lang
dhjondoh has joined #ruby-lang
taylorrf has quit [Remote host closed the connection]
caseypatrickdris has joined #ruby-lang
caseypatrickdris has quit [Ping timeout: 246 seconds]
dhjondoh has quit [Quit: dhjondoh]
ghostpl_ has quit [Remote host closed the connection]
jgpawletko has joined #ruby-lang
Bertg has joined #ruby-lang
mikecmpbll has joined #ruby-lang
gwendall has joined #ruby-lang
Bertg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ldnunes has joined #ruby-lang
caseypatrickdris has joined #ruby-lang
dhjondoh has joined #ruby-lang
Otterpocket has joined #ruby-lang
<Otterpocket> Hello, when I 'gem install rubocop' I get the following:
<Otterpocket> ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
<Otterpocket> SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol (https://your-dns-needs-immediate-attention.site/quick/Marshal.4.8/rainbow-2.0.0.gemspec.rz)
<Otterpocket> any ideas?
x0f has quit [Ping timeout: 256 seconds]
<rob_> Otterpocket: ..something to do with your dns?
Bertg has joined #ruby-lang
<jhass> Otterpocket: comcast, eh?
<Otterpocket> can I tell gem to use the github repo instead?
<jhass> Otterpocket: wrong approach
<jhass> your-dns-needs-immediate-attention.site
<jhass> I think that's pretty clear
<Otterpocket> ... I'm using open dns
<jhass> well, something needs fixing
<Otterpocket> Ill tell open dns
<jhass> os x?
<jhass> iirc it's something os x does
<Otterpocket> linux
<apeiros> I see tickets on opensuse about it…
<jhass> there's also a rubygems ticket
<jhass> comcast caused that for many people a while ago
<Otterpocket> Im using opensuse
Integralist has joined #ruby-lang
<Otterpocket> must be that
revath has quit [Ping timeout: 244 seconds]
gamov has quit [Ping timeout: 265 seconds]
<Otterpocket> it only does it with rubocop
Bertg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> it only surfaces there you mean
Bertg has joined #ruby-lang
bruno- has joined #ruby-lang
intinig has joined #ruby-lang
hahuang65 has quit [Ping timeout: 252 seconds]
cpt_yossarian has quit [Ping timeout: 250 seconds]
hahuang65 has joined #ruby-lang
revath has joined #ruby-lang
<darix> Otterpocket: i highly doubt that is an opensuse problem
auzty has quit [Quit: Leaving]
<darix> Otterpocket: did you see jhass' link
<darix> and the referenced stackoverflow link
arBmind has quit [Quit: Leaving.]
<darix> Otterpocket: btw: opensuse has a package for rainbow
<darix> which could install.
bruno- has quit [Ping timeout: 246 seconds]
<jhass> let's stop finding workarounds, this needs to be fixed in their setup
<darix> ack
Lewix has joined #ruby-lang
ghostpl_ has joined #ruby-lang
<darix> jhass: the fastest would be adding http://download.opensuse.org/repositories/devel:/languages:/ruby:/extensions/ and use the ready build packages for it. :)
<jhass> meh
<darix> moo
<Otterpocket> Just going to add it from the repo from now on
<jhass> darix: see what you did there...
<Otterpocket> ill install it properly when its fixed
intinig has quit [Ping timeout: 264 seconds]
<darix> jhass: all my ruby stuff is installed from it.
<Otterpocket> really
<darix> we are building a lot of them for 2.2 already
<jhass> that's not really what I mean
<darix> jhass: he still needs to fix his network config yes
<jhass> it was good that it had pain for them, more pressure to fix the issue
<darix> jhass: the question then would be
x44x45x41x4E has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<darix> why did rubygems.org not resolve instantly, so his resolver went and appended the .site domain
<darix> anyway
<darix> Otterpocket: yast2 network -> hostname tab -> change the .site to .lan
<darix> done
<jhass> OpenDNS is not enough for an answer? :P
<darix> jhass: if you would have read your own link, then you would have noticed that it isnt the problem.
<darix> :)
jolg42 has quit [Quit: ZZZzzz…]
<jhass> granted, I never really read it
<Otterpocket> darix, I don't have .site
<jhass> my recursor lives on my router ... :P
arBmind has joined #ruby-lang
<jhass> Otterpocket: maybe your router does?
<jhass> what's in your /etc/resolv.conf?
revath has quit [Ping timeout: 245 seconds]
<Otterpocket> search site nameserver 208.67.220.220 nameserver 208.67.222.222
dhjondoh has quit [Quit: dhjondoh]
<jhass> search site
<jhass> that's the issue
<jhass> figure what sets it there
rrdein has quit []
<jhass> if it's not statically configured there a possible source might be your routers dhcp advertisements for example
<Otterpocket> Successfully installed rubocop-0.29.1
<Otterpocket> Ya
intinig has joined #ruby-lang
<Otterpocket> It was using some setting from the network manager in yast and some from the one I actually use
dhjondoh has joined #ruby-lang
<Otterpocket> Thanks for your help jhass, darix
taylorrf has joined #ruby-lang
sankaber has joined #ruby-lang
dhjondoh has quit [Client Quit]
ghostpl_ has quit [Remote host closed the connection]
taylorrf has quit [Ping timeout: 272 seconds]
Bertg has quit [Remote host closed the connection]
JaRe_Ax has joined #ruby-lang
Bertg has joined #ruby-lang
JaReAx has quit [Ping timeout: 264 seconds]
JaRe_Ax is now known as JaReAx
revath has joined #ruby-lang
Vivex has joined #ruby-lang
intinig has quit [Remote host closed the connection]
intinig has joined #ruby-lang
ghostpl_ has joined #ruby-lang
intinig has quit [Ping timeout: 256 seconds]
revath has quit [Ping timeout: 246 seconds]
fujimura has joined #ruby-lang
stamina has quit [Quit: WeeChat 1.1.1]
fusillicode has quit [Ping timeout: 264 seconds]
fujimura has quit [Ping timeout: 246 seconds]
intinig has joined #ruby-lang
dhjondoh has joined #ruby-lang
malconis has joined #ruby-lang
sgambino has joined #ruby-lang
ghostpl_ has quit [Read error: Connection reset by peer]
ghostpl_ has joined #ruby-lang
Bertg_ has joined #ruby-lang
malconis has quit [Remote host closed the connection]
revath has joined #ruby-lang
Bertg has quit [Ping timeout: 256 seconds]
Lewix has quit []
yfeldblu_ has quit [Ping timeout: 272 seconds]
malconis has joined #ruby-lang
JEG2 has joined #ruby-lang
b_hoffman has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
taylorrf has joined #ruby-lang
JaReAx has quit [Quit: HydraIRC -> http://www.hydrairc.com <- IRC with a difference]
Integralist has quit [Ping timeout: 255 seconds]
Forgetful_Lion has quit [Remote host closed the connection]
jolg42 has joined #ruby-lang
agarie has joined #ruby-lang
charliesome_ has quit [Quit: zzz]
enebo has joined #ruby-lang
martinbmadsen has joined #ruby-lang
intinig has quit [Remote host closed the connection]
intinig has joined #ruby-lang
nathanstitt has joined #ruby-lang
x44x45x41x4E has joined #ruby-lang
Vivex has quit [Read error: Connection reset by peer]
nathanstitt has quit [Read error: Connection reset by peer]
nathanstitt has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 246 seconds]
intinig has quit [Remote host closed the connection]
intinig has joined #ruby-lang
ruby-lang has joined #ruby-lang
Bertg_ has quit [Ping timeout: 265 seconds]
Bertg has joined #ruby-lang
revath has quit [Ping timeout: 265 seconds]
intinig has quit [Remote host closed the connection]
julweber has joined #ruby-lang
b_hoffman has left #ruby-lang [#ruby-lang]
kerunaru has quit [Quit: Textual IRC Client: www.textualapp.com]
vipaca has joined #ruby-lang
tkuchiki has quit [Ping timeout: 252 seconds]
intinig has joined #ruby-lang
Integralist has joined #ruby-lang
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]
cmisenas has joined #ruby-lang
bruno- has joined #ruby-lang
bruno- is now known as Guest37769
<JEG2> thehybridtech: I'm pretty sure you are running into some encoding issues. You may wish to read some of my blog posts about encodings: http://graysoftinc.com/character-encodings/understanding-m17n-multilingualization
<x44x45x41x4E> thehybridtech Ah. You mean unicode characters?
<x44x45x41x4E> JEG2 Webpage not available for me. :/
Guest17 has joined #ruby-lang
martinbmadsen has joined #ruby-lang
intinig has quit [Read error: No route to host]
intinig has joined #ruby-lang
chinmay_dd has joined #ruby-lang
Guest37769 has quit [Ping timeout: 264 seconds]
<jhass> x44x45x41x4E: you could treat your input as binary, figure out the actual codepoint and match against that using a binary regex
ruby-lang161 has joined #ruby-lang
<x44x45x41x4E> thehybridtech ^
bruno-_ has joined #ruby-lang
<jhass> eh, sorry
<ruby-lang161> Can anyone help with a rails join table? Issue is here: https://github.com/beth-str/lodge_on_rails/issues/6
<thehybridtech> Thanks JEG2... Reading the posts
caseypatrickdris has joined #ruby-lang
<jhass> ruby-lang161: please join #RubyOnRails for rails questions
<x44x45x41x4E> jhass No worries mate.
martinbmadsen has quit [Ping timeout: 264 seconds]
<JEG2> x44x45x41x4E: Sorry to hear that. Anything I can do to help?
sepp2k has joined #ruby-lang
<x44x45x41x4E> JEG2 Ah. It work's now. Must've been my connection. It's been flaky for days. :/
caseypatrickdris has quit [Remote host closed the connection]
caseypatrickdris has joined #ruby-lang
caseypatrickdris has quit [Remote host closed the connection]
<ruby-lang161> Thanks, jhass, I couldn't get on the channel earlier and thought it was obsolete. Will try again.
ruby-lang161 has left #ruby-lang [#ruby-lang]
ta has joined #ruby-lang
gwendall has joined #ruby-lang
taylorrf has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
j4cknewt has joined #ruby-lang
rippa has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
x44x45x41x4E has quit [Quit: Textual IRC Client: www.textualapp.com]
ta has quit [Remote host closed the connection]
taylorrf has joined #ruby-lang
Integralist has joined #ruby-lang
ItSANgo_ has quit [Ping timeout: 250 seconds]
ItSANgo_ has joined #ruby-lang
Integral1st has quit [Ping timeout: 250 seconds]
taylorrf has quit [Ping timeout: 256 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
Integralist has quit [Ping timeout: 255 seconds]
Integralist has joined #ruby-lang
symm- has quit [Ping timeout: 244 seconds]
fujimura has joined #ruby-lang
lytol has quit [Remote host closed the connection]
__butch__ has joined #ruby-lang
fujimura has quit [Ping timeout: 256 seconds]
michaeldeol has joined #ruby-lang
taylorrf has joined #ruby-lang
cmisenas has quit [Quit: cmisenas]
lytol has joined #ruby-lang
cmisenas has joined #ruby-lang
jefus has quit [Ping timeout: 250 seconds]
JohnBat26 has quit [Ping timeout: 264 seconds]
jefus has joined #ruby-lang
lytol has quit [Remote host closed the connection]
lytol has joined #ruby-lang
cmisenas has quit [Quit: cmisenas]
agarie has quit [Remote host closed the connection]
riotjones has quit [Remote host closed the connection]
lytol has quit [Ping timeout: 256 seconds]
bantic has joined #ruby-lang
havenwood has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
stamina has joined #ruby-lang
boadie has joined #ruby-lang
cornerma1 has joined #ruby-lang
cornerman has quit [Ping timeout: 256 seconds]
cornerma1 is now known as cornerman
havenn has joined #ruby-lang
__butch__ has joined #ruby-lang
havenwood has quit [Ping timeout: 244 seconds]
RobertBirnie has joined #ruby-lang
taylorrf has quit [Remote host closed the connection]
tohsig has joined #ruby-lang
b_hoffman has joined #ruby-lang
workmad3 has joined #ruby-lang
wallerdev has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
taylorrf has joined #ruby-lang
jolg42 has quit [Read error: No route to host]
jolg42 has joined #ruby-lang
lytol has joined #ruby-lang
jolg42 has quit [Client Quit]
agarie has joined #ruby-lang
Integralist has quit [Ping timeout: 252 seconds]
Bertg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
enebo has quit [Quit: enebo]
tohsig has quit [Read error: Connection reset by peer]
Versality has quit [Quit: Lingo: www.lingoirc.com]
anekant has quit [Ping timeout: 252 seconds]
j4cknewt_ has joined #ruby-lang
joaomdmoura has joined #ruby-lang
leat has quit [Ping timeout: 255 seconds]
leat has joined #ruby-lang
j4cknewt has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Excess Flood]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Iskarlar has quit [Ping timeout: 265 seconds]
michael_mbp has joined #ruby-lang
powersurge has joined #ruby-lang
powersurge has left #ruby-lang ["WeeChat 0.4.3"]
anekant has joined #ruby-lang
riotjones has joined #ruby-lang
boadie has quit [Remote host closed the connection]
julweber has quit [Read error: Connection reset by peer]
riotjones has quit [Ping timeout: 272 seconds]
Otterpocket has quit [Quit: Leaving]
mikecmpbll has quit [Ping timeout: 265 seconds]
joaomdmoura has quit [Remote host closed the connection]
j4cknewt_ has quit [Remote host closed the connection]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
hotpancakes has joined #ruby-lang
intinig has quit [Remote host closed the connection]
intinig has joined #ruby-lang
jefus has quit [Quit: WeeChat 1.1.1]
seank_ has quit []
intinig has quit [Remote host closed the connection]
intinig has joined #ruby-lang
jefus has joined #ruby-lang
seank_ has joined #ruby-lang
justinweiss has quit [Ping timeout: 245 seconds]
boadie has joined #ruby-lang
awea has joined #ruby-lang
TheMoonMaster has quit [Ping timeout: 272 seconds]
elia has quit [Quit: Computer has gone to sleep.]
havenn is now known as havenwood
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
cornerma1 has joined #ruby-lang
justinweiss has joined #ruby-lang
boadie has quit [Read error: Connection reset by peer]
TheMoonMaster has joined #ruby-lang
<awea> Hi there i'm getting some troubles with OpenSSL, I'm trying to reproduce some php code in ruby for an IPN solution (http://payplug-developer-documentation.readthedocs.org/en/latest/#instant-payment-notification-ipn) here is my implementation : https://gist.github.com/Awea/3ef5bf59a8a843a4160e. Oh and I'm inside a rails application ^^
boadie has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
banister has joined #ruby-lang
cornerman has quit [Ping timeout: 265 seconds]
cornerma1 is now known as cornerman
hotpancakes has quit [Read error: Connection reset by peer]
baweaver has joined #ruby-lang
fujimura has joined #ruby-lang
anekant has quit [Changing host]
anekant has joined #ruby-lang
<anekant> can I include a method in an argument to a method, and call the argument method within the body of the first method?
revath has joined #ruby-lang
<pipework> anekant: As a method object, sure.
<anekant> what is the syntax? do i include the colon before the method in the argument?
<pipework> If I understand correctly.
hotpancakes has joined #ruby-lang
<pipework> my_other_object.do_a_thing_with &my_object.method(:some_method)
<pipework> That or no & and you use call or [] like a callable object.
<wallerdev> how do you use [] ?
<pipework> wallerdev: !try
<jhass> awea: is that a question?
awea has left #ruby-lang [#ruby-lang]
awea has joined #ruby-lang
<wallerdev> okay ill try it
fujimura has quit [Ping timeout: 252 seconds]
<wallerdev> >> x = method(:puts); x[]
<eval-in_> wallerdev => ... (https://eval.in/304085)
lapide_viridi has joined #ruby-lang
<wallerdev> ...
<pipework> >> meth = Object.method(:new); meth[]
<eval-in_> pipework => #<Object:0x42178198> (https://eval.in/304086)
<wallerdev> not a fan of that syntax haha
<pipework> wallerdev: Callable is a cool pattern.
<pipework> So is Runnable.
<wallerdev> i always use .call or yield for blocks
<jhass> >> meth = Object.method(:new); meth.()
<eval-in_> jhass => #<Object:0x40dd8b9c> (https://eval.in/304087)
<pipework> wallerdev: If it's a real block, yeah.
rikkipitt has quit [Quit: Leaving...]
<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]
cmisenas has joined #ruby-lang
baweaver has joined #ruby-lang
dellavg_ has joined #ruby-lang
arBmind has joined #ruby-lang
<anekant> https://gist.github.com/anonymous/9097f4c2a50499a088b6 any hint on what I'm doing wrong?
sarkyniin has joined #ruby-lang
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
revath has quit [Ping timeout: 256 seconds]
<jhass> >> class Foo; def ==(value); @variable = value; end; end; foo = Foo.new; foo == "bar"; foo
<eval-in_> jhass => #<Foo:0x41df3e78 @variable="bar"> (https://eval.in/304101)
<Simonides> Allright, I'm checking that
joaomdmoura has joined #ruby-lang
<Simonides> hey, that might work!
<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: what's the full error?
<crankharder> not an error, just a warning
ohsix has joined #ruby-lang
solars has quit [Ping timeout: 246 seconds]
<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
<havenwood> hem, they went from git to Dir.glob at one point: https://github.com/bundler/bundler/commit/dbc139dc840d89a4af50c167077d32e4c6fd6b8e
<havenwood> but that's in Bundler's own gemspec
<havenwood> not in the one that Bundler generates
<havenwood> what's good for the goose is good for the gander?
<workmad3> havenwood: heh :) have they ever updated the bundler gem template though? :)
<havenwood> workmad3: nope
Musashi007 has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
AlexAltea has quit [Ping timeout: 272 seconds]
micmus has quit [Quit: Leaving]
j4cknewt has quit [Remote host closed the connection]
<yorickpeterse> why do people unshift the load path in a gemspec :<
<yorickpeterse> Problem: I want to load somebody's Gemfile
<yorickpeterse> Solution: lets fuck up the load path, lets shell out to git (because there's always a Git repo right?), and heh, TODOs
<yorickpeterse> I've seen too many Gems being pushed with "description: TODO" :<
lytol has joined #ruby-lang
taylorrf has joined #ruby-lang
riotjones has joined #ruby-lang
symm-_ has joined #ruby-lang
chacmool` has joined #ruby-lang
dziemid has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 265 seconds]
chacmool has quit [Ping timeout: 264 seconds]
taylorrf has quit [Ping timeout: 272 seconds]
lytol has quit [Ping timeout: 265 seconds]
riotjones has quit [Ping timeout: 244 seconds]
Guest17 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lytol has joined #ruby-lang
lytol has quit [Remote host closed the connection]
joaomdmoura has quit [Remote host closed the connection]
lytol has joined #ruby-lang
malconis_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lytol_ has joined #ruby-lang
j4cknewt has joined #ruby-lang
thehybridtech2 has quit [Quit: Leaving]
Lewix has quit [Remote host closed the connection]
lytol has quit [Ping timeout: 250 seconds]
momomomomo has quit [Quit: momomomomo]
ghostpl_ has quit [Remote host closed the connection]
dziemid has joined #ruby-lang
dziemid has quit [Remote host closed the connection]
caseypatrickdris has joined #ruby-lang
dziemid has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 244 seconds]
anekant has quit [Ping timeout: 252 seconds]
symm-_ is now known as symm-
workmad3 has quit [Ping timeout: 252 seconds]
benlovell has quit [Ping timeout: 250 seconds]
julweber has quit [Remote host closed the connection]
Drew__ has joined #ruby-lang
jefus has quit [Quit: WeeChat 1.1.1]
havenwood has joined #ruby-lang
baweaver has joined #ruby-lang
jefus has joined #ruby-lang
fujimura has joined #ruby-lang
taylorrf has joined #ruby-lang
molawson has joined #ruby-lang
havenn has joined #ruby-lang
voxxit has joined #ruby-lang
fujimura has quit [Ping timeout: 264 seconds]
havenwood has quit [Ping timeout: 244 seconds]
wallerdev_ has joined #ruby-lang
wallerdev has quit [Ping timeout: 246 seconds]
wallerdev_ is now known as wallerdev
djbkd has quit [Remote host closed the connection]
solars has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby-lang
skade has joined #ruby-lang
JEG2 has quit [Quit: Connection closed for inactivity]
wallerdev has quit [Quit: wallerdev]
elia has quit [Quit: Computer has gone to sleep.]