apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
smathieu has quit [Remote host closed the connection]
owen1 has joined #ruby
smathieu has joined #ruby
<owen1> sudo gem install debugger -v '1.6.3' => extconf.rb failed. ruby 2.0.0p481 on ubuntu.
sepp2k1 has joined #ruby
yubrew has joined #ruby
<opus> bricker`work: If you're still around setting config.eager_load = false in rails solved this problem. Looking into exactly what eager_load is doing that would cause this to occur now.
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
gattuso has joined #ruby
diegoviola has joined #ruby
nmokru has joined #ruby
sepp2k has quit [Ping timeout: 255 seconds]
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
nmokru has quit [Client Quit]
mjsmith2 has joined #ruby
enebo has joined #ruby
djbkd has quit [Remote host closed the connection]
little_fu has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
little___ has joined #ruby
earthquake has quit [Quit: earthquake]
DrShoggoth has quit [Quit: Leaving]
bmurt has joined #ruby
chrishough has quit [Quit: chrishough]
<msull92_> Has anyone in here used any of the Ruby logical syntaxes available that resemble Prolog and if so which ones? Are they still maintained?
little_f_ has quit [Ping timeout: 255 seconds]
earthquake has joined #ruby
nmokru has joined #ruby
codeurge has quit [Quit: Sleep.]
codeurge has joined #ruby
banjara has quit [Quit: Leaving.]
ddv has quit [Ping timeout: 245 seconds]
little_fu has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
nmokru has quit [Client Quit]
ddv has joined #ruby
BadQuanta has joined #ruby
nmokru has joined #ruby
stytown has joined #ruby
wildroman2 has joined #ruby
sunya7a has quit [Ping timeout: 248 seconds]
mrmargo__ has quit [Remote host closed the connection]
mattstratton has joined #ruby
codeurge has quit [Ping timeout: 248 seconds]
aniM has quit [Ping timeout: 252 seconds]
sunya7a has joined #ruby
mr_snowf1ake has joined #ruby
<StephenA1> msull92_: have you looked at: ruby-prolog
wallerdev has joined #ruby
stytown has quit [Client Quit]
b00stfr3ak has quit [Ping timeout: 272 seconds]
<StephenA1> there was also https://github.com/cie/rubylog
dc_ has joined #ruby
wildroman2 has quit [Ping timeout: 260 seconds]
<msull92_> StephenA1: I looked at that one and originally passed by it because I didn't see any examples but now I just realized that they're in bin.
<msull92_> I have played with rubylog a bit, but I can't for the life of me figure out how to do backtracking ... which is kind of the point. lol
<owen1> here is mkmf.log: http://pastebin.com/e1vErsuL
<owen1> (for the failur of installing debugger gem.
nmokru has quit [Quit: nmokru]
<owen1> any clues what can be the problem?
nateberkopec has quit [Quit: Leaving...]
enebo has quit [Quit: enebo]
nmokru has joined #ruby
nateberkopec has joined #ruby
sunya7a_ has joined #ruby
sunya7a has quit [Ping timeout: 272 seconds]
dc_ has quit [Remote host closed the connection]
chrishough has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nmokru has quit [Client Quit]
<msull92_> StephenA1: I think I'll give ruby-prolog another shot, it looks like it can do what I need. Thanks!
<StephenA1> k
<StephenA1> enjoy!
nmokru has joined #ruby
jamto11 has joined #ruby
himself_ has quit [Remote host closed the connection]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has joined #ruby
nmokru has quit [Client Quit]
little___ has quit [Remote host closed the connection]
nmokru has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
febuiles has joined #ruby
mrmargolis has joined #ruby
little_f_ has joined #ruby
charliesome has joined #ruby
freerobby has joined #ruby
<ericwood> ruby
earthquake has quit [Quit: earthquake]
little_f_ has quit [Remote host closed the connection]
danijoo has quit [Remote host closed the connection]
oo_ has joined #ruby
GriffinHeart has quit [Ping timeout: 252 seconds]
<febuiles> does the last parameter to Time.local (tz) taken into account when calculating a Time? I'm trying to make sense out of https://gist.github.com/robin850/15487b53aaba11b47945
Photism has quit [Quit: Leaving]
zz_karupa is now known as karupa
nmokru has quit [Quit: nmokru]
msull92_ has quit [Quit: leaving]
chipotle has joined #ruby
dodgepong has left #ruby ["Leaving"]
yetanotherdave has joined #ruby
s3ri0us has quit [Quit: Leaving...]
tyfighter has quit [Quit: <3]
oo_ has quit [Remote host closed the connection]
jonahR has quit [Remote host closed the connection]
nmokru has joined #ruby
thiagovsk has joined #ruby
<thiagovsk> testing
little_f_ has joined #ruby
ellogub has joined #ruby
yetanotherdave has quit [Ping timeout: 272 seconds]
little_f_ has quit [Remote host closed the connection]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
codeurge has joined #ruby
kireevco has quit [Quit: Leaving.]
chipotle has quit [Quit: cya]
jimbow has joined #ruby
snath has joined #ruby
djbkd has quit [Remote host closed the connection]
oo_ has joined #ruby
<benzrf> nottesting
arrubin has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
nectarys has joined #ruby
<thiagovsk> benzrf, =D
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
icarus has quit [Ping timeout: 260 seconds]
mjsmith2 has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
jamto11 has quit [Remote host closed the connection]
nmokru has quit [Quit: nmokru]
beneggett has joined #ruby
sevenseacat has joined #ruby
aniM has joined #ruby
<benzrf> :O)
x1337807x has joined #ruby
dc_ has joined #ruby
newton1 has joined #ruby
yubrew has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
StephenA1 has quit [Quit: StephenA1]
dc_ has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
stytown has joined #ruby
TorpedoSkyline has joined #ruby
earthquake has joined #ruby
Karpuragauram has quit [Ping timeout: 244 seconds]
TorpedoSkyline has quit [Client Quit]
iswell has joined #ruby
oo_ has joined #ruby
yubrew has quit [Ping timeout: 248 seconds]
hgl____ has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TorpedoSkyline has joined #ruby
brunops has quit [Ping timeout: 272 seconds]
<thiagovsk> benzrf, you are great?
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Vivekananda_y510 has joined #ruby
edgarjs is now known as edgarjs_afk
brunops has joined #ruby
brunops has quit [Changing host]
brunops has joined #ruby
MrSatann has joined #ruby
cmoneylulz has quit [Remote host closed the connection]
moritzs has quit [Ping timeout: 248 seconds]
CaptainJet has joined #ruby
TorpedoSkyline has quit [Client Quit]
<benzrf> totdally
iswell has quit [Ping timeout: 240 seconds]
MrSatann has left #ruby [#ruby]
smathieu has quit [Remote host closed the connection]
JordanJ2 has joined #ruby
beneggett has joined #ruby
smathieu has joined #ruby
nectarys has quit [Quit: Ex-Chat]
bricker`work has quit [Quit: leaving]
mgberlin has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
<JordanJ2> Hi all, I'm tryig to run a GitLab commit bot, and installed unicorn by 'sudo gem install unicorn' when running 'unicorn -c config/unicorn.conf -D' I get the error http://paste.ubuntu.com/7739594/
hamakn has quit [Remote host closed the connection]
hgl____ has quit [Quit: Computer has gone to sleep.]
timonv has joined #ruby
hamakn has joined #ruby
jcromartie has joined #ruby
fold has joined #ruby
tjr9898 has joined #ruby
tjr9898 has quit [Remote host closed the connection]
thesheff17 has quit [Quit: Leaving]
<opus> Anyone here really understand rails eager loading and gem creation?
tjr9898 has joined #ruby
<opus> Got a hard problem I'm trying to debug and hit a wall.
thesheff17 has joined #ruby
Davey is now known as Eomar
timonv has quit [Ping timeout: 240 seconds]
replay has quit []
<febuiles> JordanJ2: does the project include a Gemfile?
<febuiles> opus: I heard the guys who hang out in #rubyonrails are pretty good at that :)
Channel6 has joined #ruby
<JordanJ2> Not sure, the project is here https://github.com/chkelly/gitlab-irc
jimbow has quit [Quit: jimbow]
<opus> febuiles: Asked in both places to make sure since I wasn't sure where to direct the Gem question itself. It appears to be more Gem related than rails. I've been unable to replicate it on any other Gem.
sailias has joined #ruby
<opus> Basically, a Gem's namespaced modules are getting injected into the root namespace
sailias has quit [Read error: Connection reset by peer]
hgl____ has joined #ruby
<febuiles> JordanJ2: it does, you should take a look at http://bundler.io/v1.6/rationale.html and you can google more info regarding bundler, a ruby tool that takes care of doing all the gem installing for you
<JordanJ2> Ah okay
<febuiles> opus: got a sample gist?
<opus> Here is some irb code demonstrating the issue. https://github.com/geokit/geokit/issues/144
moritzs has joined #ruby
<opus> well, irb output...
mconnolly has joined #ruby
<febuiles> glad I'm not the only one runnign into geokit issues this week :)
pietr0 has quit [Quit: pietr0]
<opus> Yeah... been a fun week for both of us then =p
<opus> Seriously though, this one has really been getting under my skin. I've already locally solved my initial problem by namespacing my own Polygon class (which I don't want to do...) because I was unable to track down exactly how this is happening.
<febuiles> opus: I see you're in production, can you reproduce in development too?
<opus> I wasn't able to replicate this in other gems and I couldn't see anything wrong with the gemspec or geokit code that would cause this.
<opus> Yes, it's a result of eager_loading not dev/prod.
<opus> If you set eager_loading in dev mode to true it still occurs.
hgl____ has quit [Ping timeout: 248 seconds]
aniM has quit [Ping timeout: 264 seconds]
<opus> Also, it normally doesn't present itself. You have to have a project that has a class that conflicts with Geokit on application instantiation, via eager loading.
<opus> The resulting error in that case is: superclass mismatch for class Polygon (TypeError)
<febuiles> yeah, I was about to tell you I can't reproduce
<febuiles> let me try to create something real quick
<opus> I'll create a local app that should replicate a simple scenario
<opus> one se
<opus> c
robustus has quit [Ping timeout: 252 seconds]
<febuiles> thanks, creating a Polygon model locally didn't trigger any issues either
moritzs has quit [Ping timeout: 252 seconds]
mrmargolis has quit [Remote host closed the connection]
<opus> what version of geokit are you using?
stytown has quit [Quit: stytown]
<febuiles> geokit (1.8.4)
jord has quit [Quit: Connection closed for inactivity]
sunya7a_ has quit [Quit: leaving]
robustus has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
<opus> Do you have eager_loading enabled in dev?
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<febuiles> yup
tokik has joined #ruby
<febuiles> tried enabling it in irb like you show in your gist, nothing happens either
larsam has quit [Ping timeout: 248 seconds]
<febuiles> opus: what geokit version are you using?
andrewjanssen has quit [Quit: Leaving...]
hgl____ has joined #ruby
<opus> 1.8.5, but I tried it on 1.8.4 and still had the problem
franzip has quit [Quit: ...]
hgl____ has quit [Remote host closed the connection]
chipotle has joined #ruby
hgl____ has joined #ruby
<febuiles> weird, do you think you can get a sample app that triggers the behavior? I just tried 1.8.5 and no errors either.
jack_rabbit has quit [Quit: SIGSEGV (core dumped)]
jack_rabbit has joined #ruby
<opus> Oh well, this makes me both happy and sad at the same time.
stytown has joined #ruby
<opus> Creating a new application doesn't demonstrate the eager loading problem.
<febuiles> heh
<febuiles> are you using any geokit-* gems?
Arkaniad|Laptop has quit [Ping timeout: 255 seconds]
<febuiles> the other only thing I can think of is an `include GeoKit` somewhere
<febuiles> s/GeoKit/Geokit/
<owen1> gem install debugger -- --with-ruby-include=PATH_TO_HEADERS how to find the path to headers?
<febuiles> s/GeoKit/Geokit/
cashnguns has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
<febuiles> owen1: what's your ruby version, OS and ruby manager if any?
aspires has joined #ruby
<opus> febuiles: Right now I'm using geokit-rails and geokit. I added both to the project. I'll check for geokit's existence else where as well.
<febuiles> opus: good luck!
oo_ has quit [Remote host closed the connection]
<owen1> febuiles: ruby 2.0.0p481 (2014-05-08 revision 45883) [x86_64-linux]
<owen1> ubuntu 14.04
<febuiles> owen1: how'd you install ruby?
<owen1> make; make install
<owen1> which ruby => /usr/local/bin/ruby
DrOwl has quit [Ping timeout: 245 seconds]
ekinmur has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
oo_ has joined #ruby
Hanmac1 has joined #ruby
<febuiles> owen1: by default I think it goes to /usr/lib/ruby/[version]
Matt____ has joined #ruby
<febuiles> wait no
<febuiles> that makes no sense :P
stytown has quit [Quit: stytown]
moritzs has joined #ruby
Spami_ has quit [Quit: This computer has gone to sleep]
<opus> febuiles: that you for your help man. I just figured it out. There was an errant include Geokit randomly in the project added there by a non ruby dev. When I searched for it earlier I typed ack 'include geokit' instead of 'include Geokit' and as a result missed it.
<opus> So much time wasted on that today. Thank you so MUCH =)
<opus> I should have just tried to create a demo project earlier
<febuiles> opus: np, glad I could be of any help :)
smathieu has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 255 seconds]
<opus> Sometimes you just need to talk it through with someone!
smathieu has joined #ruby
jimbow has joined #ruby
<febuiles> owen1: maybe /usr/local/lib/ruby? It's been a while since I did a manual install :S
britneywright has joined #ruby
jimbow has quit [Client Quit]
rezzack has quit [Ping timeout: 272 seconds]
<owen1> febuiles: /usr/local/lib/ruby/2.0.0 ? i see a lot of rb files there
<owen1> gem install debugger -- --with-ruby-include=/usr/local/lib/ruby/2.0.0 ?
troyready has quit [Ping timeout: 255 seconds]
Guest9754 has joined #ruby
smathieu has quit [Ping timeout: 255 seconds]
yubrew has joined #ruby
<Matt____> I have a lengthy question to ask you folks - I put it on a gist as per instructions for this channel: https://gist.github.com/wismer/bae61796e1e1450765bf
Matt____ is now known as Wismer
britneywright has quit [Ping timeout: 248 seconds]
msull92 has joined #ruby
aniM has joined #ruby
<Guest9754>
opus has quit []
yubrew has quit [Ping timeout: 244 seconds]
<febuiles> owen1: nah, that's not it, I'd check /usr/include/ruby-2.x.y or check the make logs to see where the files were moved
agjacome has joined #ruby
<febuiles> you can also do find /usr -name ruby.h
<theharshest> my rake task sets the environment for me, how can I start an "irb" with those settings? rake task name is "testing". None of these work "bundle exec irb rake testing" and "bundle exec rake testing irb"
mois3x has quit [Quit: mois3x]
<Guest9754>
<owen1> i think it's /usr/local/include/ruby-2.0.0
Wismer has left #ruby [#ruby]
<owen1> ruby ruby.h x86_64-linux
<owen1> inside /usr/local/include/ruby-2.0.0/ruby i see about 10 header files
dc_ has joined #ruby
<febuiles> try it? :)
<owen1> suer
<owen1> sure
little_fu has joined #ruby
<febuiles> owen1: I'm omw out but if it doesn't work with either of those dirs then I'd suggest posting a gist with the sample error so somebody else can give you a hand :)
<owen1> the problem is conftest.c:3:20: fatal error: method.h: No such file or directory
aspires has quit []
mconnolly has quit [Quit: mconnolly]
aspires has joined #ruby
fantasticsid has joined #ruby
<owen1> so i need to find where method.h exist
razum2um has quit [Quit: Leaving.]
nerdy has joined #ruby
nateberkopec has quit [Quit: Leaving...]
britneywright has joined #ruby
whowantstolivef2 has joined #ruby
<thiagovsk> ruby ruby ruby
<thiagovsk> oooooooooooooooooooooooohhhhhhhhh
hamakn has quit [Remote host closed the connection]
moted has quit [Quit: moted]
<owen1> ok. found method.h file inside /tmp/ruby-2.0.0-p481
<owen1> now what?
jaimef has quit [Excess Flood]
sdouglas has joined #ruby
thiagovsk has quit [Remote host closed the connection]
Vivekananda_y510 has quit [Ping timeout: 244 seconds]
Alina-malina has quit [Read error: Connection reset by peer]
alvaro_o has quit [Quit: Ex-Chat]
whowantstolivef3 has quit [Ping timeout: 245 seconds]
nateberkopec has joined #ruby
Alina-malina has joined #ruby
opus has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
harryk has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
tus has quit []
parkeror has quit [Quit: Connection closed for inactivity]
mgberlin has quit [Remote host closed the connection]
davispuh has quit [Read error: Connection reset by peer]
sdouglas has quit [Remote host closed the connection]
GriffinHeart has quit [Ping timeout: 260 seconds]
msull92 has quit [Quit: Lingo - http://www.lingoirc.com]
jaimef has joined #ruby
sdouglas has joined #ruby
little_f_ has joined #ruby
tjr9898 has quit [Remote host closed the connection]
ellogub has quit [Quit: bye]
Alina-malina has quit [Ping timeout: 272 seconds]
tharindu has joined #ruby
thomasxie has joined #ruby
little_fu has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
sdouglas has quit [Ping timeout: 255 seconds]
sdwrage has quit [Quit: Leaving]
cocotton has joined #ruby
mary5030 has joined #ruby
cmoneylulz has joined #ruby
sdouglas has joined #ruby
TorpedoSkyline has joined #ruby
fantasti` has joined #ruby
little_f_ has quit [Ping timeout: 264 seconds]
suffice has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
suffice has joined #ruby
cocotton has quit [Client Quit]
hamakn has joined #ruby
fantasticsid has quit [Ping timeout: 248 seconds]
hobogrammer1 has joined #ruby
danijoo has joined #ruby
hobogrammer1 has quit [Client Quit]
Dreamer3 has joined #ruby
kireevco has joined #ruby
aniM has quit [Ping timeout: 272 seconds]
jimbow has joined #ruby
cocotton has joined #ruby
gregf has joined #ruby
thomasxie has quit [Remote host closed the connection]
Gooder has joined #ruby
zkay11 has joined #ruby
aspires has quit []
kireevco has quit [Quit: Leaving.]
Drew_Carey666 has joined #ruby
agjacome has quit [Ping timeout: 264 seconds]
Drew_Carey666 has left #ruby [#ruby]
yubrew has joined #ruby
fantasti` has quit [Remote host closed the connection]
fantasticsid has joined #ruby
britneywright has quit [Quit: Textual IRC Client: www.textualapp.com]
bmurt_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Eomar is now known as Davey
sdouglas has quit [Remote host closed the connection]
newton1 has left #ruby ["WeeChat 0.4.3"]
cashnguns has quit [Ping timeout: 244 seconds]
Soliah has joined #ruby
bmurt has quit [Ping timeout: 272 seconds]
tharindu has quit [Quit: Leaving...]
yubrew has quit [Ping timeout: 252 seconds]
radic has quit [Ping timeout: 244 seconds]
mocchi has quit [Ping timeout: 264 seconds]
radic has joined #ruby
hgl_____ has joined #ruby
theharshest has quit [Quit: This computer has gone to sleep]
fold has quit [Ping timeout: 244 seconds]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamto11 has joined #ruby
hgl_____ has quit [Client Quit]
smathieu has joined #ruby
krz has joined #ruby
hgl____ has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
mocchi has joined #ruby
cmoneylu_ has joined #ruby
jimbow has quit [Quit: jimbow]
jamto11 has quit [Ping timeout: 255 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ekinmur has quit []
cmoneylu_ has quit [Remote host closed the connection]
smathieu has quit [Ping timeout: 240 seconds]
chrishough has quit [Quit: chrishough]
cmoneylulz has quit [Ping timeout: 252 seconds]
fantasticsid has quit [Remote host closed the connection]
cmoneylulz has joined #ruby
_ixti_ has quit [Ping timeout: 260 seconds]
simoz1111114 has quit [Ping timeout: 264 seconds]
jimbow has joined #ruby
hgl has joined #ruby
braincrash has quit [Quit: bye bye]
aspires has joined #ruby
dw5304 has joined #ruby
sputnik13 has joined #ruby
<dw5304> eaving guys im having some difficults trying to install json in ruby version 1.9.3-p545 keeps giving me Building native extensions. This could take a while... ERROR: Error installing json: ERROR: Failed to build gem native extension.
<dw5304> any help?
ekinmur has joined #ruby
mk2014 has joined #ruby
sputnik1_ has joined #ruby
sputnik13 has quit [Read error: Connection reset by peer]
<krz> is there a better way to write https://gist.github.com/fe4d58a98a7ba7cfe85f
sputnik1_ has quit [Remote host closed the connection]
<dw5304> for get what i have wrote i am stupid someone dled the wrong devkit
earthquake has quit [Quit: earthquake]
<krz> if i have 10 singleton methods in a class. doesnt self look redundant?
sputnik13 has joined #ruby
Arkaniad|Laptop has joined #ruby
Arkaniad has joined #ruby
<krz> or is that best practice?
nerdy has quit [Quit: Computer has gone to sleep.]
SouL___ has joined #ruby
Arkaniad|Laptop has quit [Read error: Connection reset by peer]
braincrash has joined #ruby
sputnik13 has quit [Client Quit]
sputnik13 has joined #ruby
j_mcnally has quit [Ping timeout: 260 seconds]
<mk2014> hello, I have a class called CurrentPlan::Subscription. How do I call the CurrentPlan::Subscription inside my CurrentPlan class? example is here: https://gist.github.com/22b5e658d720ea224be0
aspires has quit []
<krz> ah class << self
fold has joined #ruby
cmoneylulz has quit [Remote host closed the connection]
opus has quit []
simoz1111114 has joined #ruby
alexju has joined #ruby
alexju has quit [Read error: Connection reset by peer]
crudson has quit [Quit: q term]
pis0xpscl has joined #ruby
alexju has joined #ruby
crudson has joined #ruby
yetanotherdave has joined #ruby
p0sixpscl has quit [Ping timeout: 252 seconds]
pis0xpscl is now known as p0sixpscl
beneggett has joined #ruby
harryk has joined #ruby
stytown has joined #ruby
sdouglas has joined #ruby
earthquake has joined #ruby
TorpedoSkyline has joined #ruby
benzrf is now known as benzrf|offline
beneggett has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
benzrf|offline is now known as benzrf
dw5304 has left #ruby [#ruby]
bmurt_ has quit []
bmurt has joined #ruby
stytown has quit [Quit: stytown]
cmoneylulz has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has quit [Quit: Leaving...]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmurt has quit [Ping timeout: 255 seconds]
cocotton has quit [Remote host closed the connection]
ARCADIVS has joined #ruby
yubrew has joined #ruby
sdouglas has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 244 seconds]
mr_snowf1ake has joined #ruby
Cache_Money has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
PanPan has joined #ruby
Takle has joined #ruby
dc_ has quit [Remote host closed the connection]
mr_snowf1ake has quit [Quit: Leaving]
CaptainJet has quit [Ping timeout: 252 seconds]
nuby has quit [Quit: Leaving]
bluOxigen has joined #ruby
Takle has quit [Ping timeout: 248 seconds]
CaptainJet has joined #ruby
hgl has quit [Ping timeout: 260 seconds]
moritzs has quit [Ping timeout: 255 seconds]
whyy has joined #ruby
tharindu has joined #ruby
codeurge has quit [Quit: Sleep.]
hgl has joined #ruby
djr has quit [Remote host closed the connection]
nateberkopec has joined #ruby
ekinmur has quit []
cmoneylulz has quit [Remote host closed the connection]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
anaeem1 has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
vt100 has joined #ruby
beneggett has joined #ruby
vt102 has quit [Ping timeout: 252 seconds]
Vivekananda_y510 has joined #ruby
Alina-malina has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrishough has joined #ruby
crodas has quit [Quit: Disconnecting from stoned server.]
crodas has joined #ruby
Diaoer has joined #ruby
Diaoer has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
JBreit has joined #ruby
mary5030 has quit [Remote host closed the connection]
ascarter has joined #ruby
p0sixpscl has quit [Quit: p0sixpscl]
why_away has joined #ruby
razum2um has joined #ruby
whyy has quit [Ping timeout: 244 seconds]
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 248 seconds]
kireevco has joined #ruby
larsam has joined #ruby
yubrew has joined #ruby
theharshest has joined #ruby
kaiserpathos has joined #ruby
yacks has quit [Ping timeout: 248 seconds]
kaiserpathos has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
iswell has joined #ruby
yubrew has quit [Ping timeout: 272 seconds]
larsam has quit [Read error: Connection reset by peer]
jimbow has quit [Quit: jimbow]
finisherr has joined #ruby
why_away is now known as why
simoz1111114 has quit [Ping timeout: 264 seconds]
why is now known as Guest77258
stytown has joined #ruby
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
deric_skibotn has quit [Ping timeout: 244 seconds]
aganov has joined #ruby
oo_ has joined #ruby
zkay11 has quit [Quit: Leaving.]
theharshest has quit [Quit: This computer has gone to sleep]
mk2014 has quit [Quit: mk2014]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wildroman2 has joined #ruby
zz_LoRdToLsToI has quit [Ping timeout: 240 seconds]
oo_ has quit [Ping timeout: 260 seconds]
chipotle has quit [Quit: cya]
tjr9898 has joined #ruby
Guest9754 has quit [Quit: Connection closed for inactivity]
zz_LoRdToLsToI has joined #ruby
Channel6 has quit [Quit: Leaving]
tjr9898 has quit [Remote host closed the connection]
yetanotherdave has quit [Quit: Lost terminal]
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
tobago has joined #ruby
crudson has quit [Quit: q term]
dc_ has joined #ruby
* agent_white pats the crickets
nateberkopec has joined #ruby
iswell has quit [Ping timeout: 272 seconds]
garndt has quit [Quit: Connection closed for inactivity]
CorpusCallosum has quit [Ping timeout: 260 seconds]
Lewix has quit [Ping timeout: 272 seconds]
JBreit has left #ruby ["Leaving"]
St_Marx has joined #ruby
CorpusCallosum has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
Morkel has joined #ruby
IceDragon has quit [Quit: Space~~~]
CorpusCallosum has quit [Ping timeout: 264 seconds]
p0sixpscl has joined #ruby
Wolland has joined #ruby
freerobby has quit [Quit: Leaving.]
mengu has joined #ruby
yubrew has joined #ruby
benzrf is now known as benzrf|offline
benzine21 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
oo_ has joined #ruby
p0sixpscl has quit [Ping timeout: 252 seconds]
JasmeetQA has joined #ruby
wildroman2 has joined #ruby
CaptainJet has quit []
jimbow has joined #ruby
jdj_dk has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 252 seconds]
BadQuanta has quit [Quit: Leaving.]
BadQuanta has joined #ruby
chrishough has quit [Quit: chrishough]
benzine21 has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
finisherr has quit [Quit: finisherr]
yfeldblum has joined #ruby
EasyCo has joined #ruby
mary5030_ has joined #ruby
earthquake has quit [Quit: earthquake]
Annwyl has joined #ruby
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest75148 has joined #ruby
Guest75148 has quit [Changing host]
Guest75148 has joined #ruby
Guest75148 is now known as dreamchaser
mk2014 has joined #ruby
dreamchaser has left #ruby ["Textual IRC Client: www.textualapp.com"]
Alina-malina has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
jimbow has quit [Ping timeout: 240 seconds]
Alina-malina has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
<Annwyl> someone here who could help me with a little problem?
<Radar> Annwyl: !ask
<helpa> Annwyl: How to ask good questions and get great answers: http://www.mikeash.com/getting_answers.html
tagrudev has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
freerobby has quit [Client Quit]
arrubin_ has joined #ruby
pranny has joined #ruby
kireevco has quit [Quit: Leaving.]
kireevco has joined #ruby
<Annwyl> i have some troubles with a hud in a rpg. actually the hp and mp bar goes from the right side to the left side, but i want that its going from the top to the bottom.i dont have that much experience with ruby, so i really dont know how i should do this http://pastebin.com/yiP1NJ4t
arrubin has quit [Ping timeout: 264 seconds]
kireevco has quit [Client Quit]
<wasamasa> it's not a ruby problem
alexju has quit [Remote host closed the connection]
<wasamasa> take a sheet of paper, pen and draw a coordinate system as a computer sees it
<wasamasa> which in other words commonly has 0|0 in the left upper corner unless someone did transformations on it
<wasamasa> the x axis goes from left to right, the y axis from up to bottom
kyb3r_ has joined #ruby
Alina-malina has quit [Ping timeout: 244 seconds]
<wasamasa> now it's your turn to draw in the values from your snippet, if you did everything right you'll see the same bars as in your game
Alina-malina has joined #ruby
<wasamasa> use your newly gained superpowers to figure out with which values the bar has to be drawn to look vertical and apply them to your code
<wasamasa> problem solved
tharindu has quit [Ping timeout: 260 seconds]
advorak has quit [Ping timeout: 255 seconds]
<Annwyl> well i think it would be this easy, but im really bad with ruby. i understood what you mean, but i dont know how to modify that code. i think i will work around a bit, thank you for your help
starkhalo has quit [Ping timeout: 255 seconds]
diegoviola has quit [Remote host closed the connection]
<wasamasa> you just need to replace some numbers
<wasamasa> it's not that hard
wildroman2 has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
apeiros has quit [Remote host closed the connection]
yfeldblum has joined #ruby
apeiros has joined #ruby
<Annwyl> i just dont understand which one. i tried to change width to height, but looks like this was a stupid idea
brunops has quit [Quit: leaving]
<Annwyl> or maybe im just stupid
wildroman2 has quit [Remote host closed the connection]
bradhe has joined #ruby
echevemaster has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
apeiros has quit [Ping timeout: 255 seconds]
alec-c4 has joined #ruby
willgorman_ has quit [Ping timeout: 240 seconds]
bradhe has quit [Remote host closed the connection]
<tobiasvl> Radar: hey, that helpa bot is new?
crudson has joined #ruby
<Radar> tobiasvl: it's been around for a while
<tobiasvl> oh ok.
arrubin has joined #ruby
<Radar> It doesn't get as much use here as it does over in #rubyonrails
<sevenseacat> we use it a lot there lol
sigurding has joined #ruby
High-Q-Brah has quit [Ping timeout: 264 seconds]
<Radar> tobiasvl: It's been here since 4th September, 2012.
<Radar> First message it received in this channel was "?" from matti.
yfeldblum has joined #ruby
arrubin_ has quit [Ping timeout: 264 seconds]
ndrei_ has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 260 seconds]
bal has joined #ruby
speaking1ode is now known as speakingcode
nateberkopec has joined #ruby
<tobiasvl> hehe, I see. never hung out in the rails channel and never saw the bot in use here but oh well!
Cache_Money has quit [Quit: Cache_Money]
yfeldblum has quit [Ping timeout: 240 seconds]
mary5030_ has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
jimbow has joined #ruby
banjara has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
<jimbow> key value pairs
<jimbow> what are they when creating a hash?
mary5030 has joined #ruby
<jimbow> the syntax looks correct to me
<jimbow> oh whoops
<jimbow> i just spotted my own error
<jimbow> sorry guys
<jimbow> nvm
<jimbow> the comments don't count :(
railzForDaiz has joined #ruby
yubrew has quit [Ping timeout: 248 seconds]
jimbow is now known as steamboat
steamboat is now known as fastboat
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shredding has joined #ruby
Derander has quit [Ping timeout: 245 seconds]
<shevy> oh yeah
<shevy> matti is the king of all the "?"s
<agent_white> Such a confusing way to enter this world. Being questioned without question.
<fastboat> what are key value pairs in hashes?
<fastboat> variable = Hash.new
<agent_white> imahash = { imakey: "imavalue" }
<sevenseacat> theyre the data in the hash?
Derander has joined #ruby
<fastboat> ^why is that wrong
<tobiasvl> fastboat: did you change your nick to ask the exact same question again?
<fastboat> no i changed my nick because i like fastboat better
<agent_white> fastboat: my_hash = Hash.new; my_hash["trance
<sevenseacat> because music is not defined
<fastboat> i just bought a seadoo today
<fastboat> :)
<tobiasvl> ah, and then you asked your question again
lxsameer has joined #ruby
<tobiasvl> fastboat: my_hash is not music
<fastboat> oh
<fastboat> thanks
<fastboat> now i getit
<sevenseacat> i really hope so, because thats just a dumb mistake
<fastboat> yes it is
<fastboat> the thing i don't really understand are placeholders
<fastboat> placeholders are like magic
<agent_white> Don't smoke hashes, just code hashes.
<tobiasvl> fastboat: what are placeholders?
<fastboat> umm i don't really know how to explain but this stuff
<fastboat> for each do variable |something, random|
<fastboat> end
<fastboat> whoops
<sevenseacat> what programming languages do you have a background in?
adac has joined #ruby
<tobiasvl> I don't think they're called "placeholders"
Noob101 has joined #ruby
<tobiasvl> they're block parameters
<Noob101> What are kernel methods?
<fastboat> you can do: print "#{something} that's #{random}"
<tobiasvl> Noob101: methods on the Kernel object: http://www.ruby-doc.org/core-2.1.2/Kernel.html
<fastboat> oh, codecademy called them placeholders
<agent_white> fastboat: http://www.codecademy.com/glossary/ruby -- You'll figure out what you want to say.
<tobiasvl> Noob101: which are inherited by all objects
<sevenseacat> if they did, then theyre wrong
wildroman2 has joined #ruby
<Noob101> tobiasvl: I don't understand what that means but I did look at that Kernel.html page maybe an hour ago.
chipotle has joined #ruby
<fastboat> Then we say, "Take this array and for each element, print it to the console." As usual, we can use any placeholder name for the bit between two | | characters.
<sevenseacat> right, that doesnt mean the variable is called a placeholder
Shidash has joined #ruby
<fastboat> oh
<fastboat> this stuff is confusing
<agent_white> They just used that as a metaphor... or something.
<fastboat> how do you guys get unconfused?
<sevenseacat> what programming languages do you have a background in?
<fastboat> none
<sevenseacat> hmm, then i cant really draw any comparisons that you would be familiar with
<fastboat> programming is really confusing
<fastboat> i'm buying this! :)
<agent_white> fastboat: Do you know how the numbers between those work? If so, then don't worry about what they called as much as what they do.
<fastboat> it's only $6,000
<agent_white> s/numbers/variables
<fastboat> what do you mean numbers between those two
<sevenseacat> trollolol?
<agent_white> >>[1,2,3].each { |number| puts "I am #{number}" }
<eval-in_> agent_white => I am 1 ... (https://eval.in/169065)
febuiles has quit [Remote host closed the connection]
<agent_white> sevenseacat: Indeed. :(
wildroman2 has quit [Ping timeout: 252 seconds]
febuiles has joined #ruby
<Noob101> What are kernel methods, can someone explain kernel methods to me so that anyone that would hear the explanation would understand please?
<fastboat> sevenseacat: it's totally real, i went water jetpacking it was so much fun
<shevy> Noob101 they are methods
<fastboat> but that has nothing to do with ruby
<sevenseacat> methods defined on Kernel. not that hard.
<tobiasvl> Noob101: Kernel is a class that Object inherits. hence, all methods in the Kernel class are inherited by all objects. other than that there's nothing special about them.
<shevy> Noob101 understood? ;)
<shevy> >> Kernel.class
<eval-in_> shevy => Module (https://eval.in/169066)
<agent_white> Noob101: "Kernel methods are accessed from anywhere in your Ruby scripts, and do not require the object name."
yacks has joined #ruby
<tobiasvl> shevy: well, close enough.
<fastboat> agent_white: i can't believe i could read that code and understand exactly what the output will be
<shevy> tobiasvl I am sure Noob101 has some super weird question waiting for us :D
<Noob101> shevy: Honestly, no.
<fastboat> it's like i'm becoming a human interpreter ;)
yakko has quit []
<shevy> Noob101 module Kernel; def test <--- now you have a method called test defined on Kernel
<shevy> well
<shevy> actually there even is one ...
<agent_white> fastboat: Neither could I, I just tried it. Luckily code doesn't explode when your computer if it's wrong.
<shevy> >> Kernel.test 5
<agent_white> I've found.
<shevy> >> Kernel.test 5
<eval-in_> shevy => unknown command "\x05" (ArgumentError) ... (https://eval.in/169067)
<agent_white> s/when/nil
<Noob101> shevy: I am trying to understand but I just don't. The only thing I get is that all objects inherit Kernel? I guess so. I also know that puts is kernel.
<shevy> Noob101 you can see all its methods on http://www.ruby-doc.org/core-2.1.2/Kernel.html
<tobiasvl> Noob101: but what DON'T you get?
<sevenseacat> what dont you understand? what is there to not understand? :/
opus has joined #ruby
<tobiasvl> Noob101: !ask
<shevy> Noob101 Kernel carries some of the core stuff of ruby
<tobiasvl> here I was trying to use that fancy bot, and it doesn't answer to me
<agent_white> If it's confusing now, don't worry about it for now.
<sevenseacat> tobiasvl: !unworthy
<helpa> tobiasvl: You are not worthy of this bot!
<shevy> haha
<sevenseacat> >_>
<shevy> tobiasvl: !drunk
<tobiasvl> :((((((((
<Noob101> tobiasvl: Before I ask, what is module, maybe that will help me understand.
<agent_white> It won't.
<sevenseacat> what is module? baby dont hurt me
apeiros has joined #ruby
<agent_white> no moh... NOH MOH
dangerousdave has joined #ruby
<tobiasvl> Noob101: well, I was trying to show you http://www.mikeash.com/getting_answers.html earlier
<tobiasvl> I'm sure you can find out what module is without us. if you're still wondering after having read about it, tell us what you don't understand.
<Noob101> tobiasvl: I would like an explanation, sometimes I don't get looking at these webpages. If I wanted to look at a webpage then I wouldn't be here but ok.
<shevy> Noob101 you can include a module into your class via include
<sevenseacat> lol
pickle_ has left #ruby ["Leaving"]
<sevenseacat> 'i would like you to regurgitate information to me in the format i desire'
<shevy> Noob101 you honestly make this more complicated than it is. look: module Bar; def test; puts 'hi from test'; end; class Foo; include Bar; end
<tobiasvl> several people trying to formulate explanations of the same thing on the off chance that you understand that particular way of explaining it ... isn't very economic use of our time
<shevy> now you extended your class Cat with the functionality from Bar
<shevy> you simply need to write this in your editor yourself Noob101
* sevenseacat waits for 'what is editor'
<shevy> you are a bad cat today
<sevenseacat> ;)
<Noob101> shevy alright
klaut has joined #ruby
<agent_white> >>["muck", "police", "straight", "the",].zip(["the", "comin", "from", "underground"]).join(" ")
<eval-in_> agent_white => "muck the police comin straight from the underground" (https://eval.in/169068)
<shevy> some serious gangsta code
<agent_white> yaaa heeerd
<agent_white> Now I know join traverses multi-dimensional arrays. kewl beans. so gngstr
shredding has quit [Quit: shredding]
stytown has quit [Quit: stytown]
larsam has joined #ruby
greenarrow has joined #ruby
<Radar> so magical
jprovazn has joined #ruby
<sevenseacat> do you believe in magic!?
<Radar> Of course! I acknowledge that Frozen is based on true events.
zigomir has joined #ruby
techsethi has joined #ruby
<agent_white> Do you wanna build a snohman?
claymore has joined #ruby
banjara has quit [Quit: Leaving.]
* Hanmac1 looks outside ... with that weather, building a snowman would be really magic! ;D
mk2014 has quit [Quit: mk2014]
jamto11 has joined #ruby
<sevenseacat> i havent seen snow in many years
<Radar> sevenseacat lives in the desert, basically
<sevenseacat> lol
<Radar> sevenseacat is the personification of the Book of Exodus
<sevenseacat> my fiance has never seen snow.
<Radar> Snow is pretty great.
febuiles_ has joined #ruby
SouL___ has quit [Remote host closed the connection]
febuiles has quit [Ping timeout: 252 seconds]
jamto11 has quit [Ping timeout: 240 seconds]
<shevy> depends
<shevy> it has this nasty habit to turn into water
mengu has quit [Remote host closed the connection]
<agent_white> Damned shapeshifting snow.
SouL___ has joined #ruby
Guest77258 has quit [Remote host closed the connection]
mk2014 has joined #ruby
why has joined #ruby
schaerli has joined #ruby
why is now known as Guest31002
ponga has joined #ruby
<ponga> is it only me who expected iphone 5C naming as 5 compact and i were to get good old 3.5 inches iphone again :(
<ponga> i want 3.5 phoooooone
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
fastboat is now known as fastboat|afk
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
Poky has joined #ruby
TomyWork has joined #ruby
fastboat|afk has quit [Quit: fastboat|afk]
jimbow has joined #ruby
jimbow has quit [Client Quit]
yfeldblum has joined #ruby
mehlah has joined #ruby
owen1 has left #ruby ["WeeChat 0.4.1"]
ephemerian has joined #ruby
mehlah has quit [Client Quit]
nateberkopec has joined #ruby
senayar has joined #ruby
Takle has joined #ruby
yubrew has joined #ruby
Atttwwww has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
wildroman2 has quit [Remote host closed the connection]
CorpusCallosum has joined #ruby
himsin has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
chipotle has quit [Quit: cya]
nateberkopec has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 252 seconds]
senayar_ has joined #ruby
agent_white has quit [Quit: brb]
agent_white has joined #ruby
iislpq has joined #ruby
febuiles_ is now known as febuiles
febuiles has quit [Changing host]
febuiles has joined #ruby
senayar has quit [Read error: Connection reset by peer]
sk87 has joined #ruby
chipotle has joined #ruby
RealMarc is now known as Marc
Marc is now known as Guest76851
lessless has quit [Remote host closed the connection]
agjacome has joined #ruby
fabrice31 has joined #ruby
GriffinHeart has quit [Ping timeout: 252 seconds]
lsmola__ has joined #ruby
mehlah has joined #ruby
tjr9898 has joined #ruby
sdouglas_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
adac has quit [Ping timeout: 260 seconds]
waynr has joined #ruby
Shidash has quit [Ping timeout: 264 seconds]
goyox86 has joined #ruby
Guest31002 is now known as whyy
<waynr> anyone ever experience vim lag when editing ruby files?
dANOKELOFF has joined #ruby
<tobiasvl> waynr: nope. do you have any scripts that could affect it? non-standard syntax highlighting files?
CorpusCallosum has quit [Ping timeout: 248 seconds]
<sevenseacat> really long lines in your file? ive heard that can affect things
<waynr> yeah there are some pretty long lines in this file
<waynr> now i have another reason to hate long lines
agjacome has quit [Ping timeout: 264 seconds]
yacks has quit [Quit: Leaving]
<waynr> that's the list of plugins i have installed
Xeago has joined #ruby
alem0lars has joined #ruby
<waynr> the issue makes vim responsiveness as bad as emacs in viper mode
wildroman2 has joined #ruby
dANOKELOFF has quit [Client Quit]
wildroman2 has quit [Remote host closed the connection]
marr has joined #ruby
uresu has joined #ruby
JasmeetQA1 has joined #ruby
wildroman2 has joined #ruby
Annwyl has quit [Quit: Verlassend]
<shevy> that's what you get when you use poor editors
<opus> waynr: are you using a syntax validator?
febuiles has quit [Remote host closed the connection]
yacks has joined #ruby
febuiles has joined #ruby
JasmeetQA has quit [Ping timeout: 260 seconds]
<opus> nvm... I see you posted your list of plugins.
alem0lars has quit [Client Quit]
relix has joined #ruby
Burgestrand has joined #ruby
agent_white has quit [Quit: goodnigh]
jottr_ has joined #ruby
opus has quit []
CorpusCallosum has joined #ruby
whyy has quit [Remote host closed the connection]
mk2014 has quit [Quit: mk2014]
dANOKELOFF has joined #ruby
coderhs has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
JasmeetQA1 has quit [Read error: Connection reset by peer]
mk2014 has joined #ruby
JasmeetQA has joined #ruby
alem0lars has joined #ruby
Doppp has quit [Ping timeout: 248 seconds]
JasmeetQA1 has joined #ruby
JoshGlzBrk has quit [Ping timeout: 244 seconds]
olivier_bK has joined #ruby
JasmeetQA has quit [Ping timeout: 252 seconds]
Joulse has joined #ruby
adac has joined #ruby
<olivier_bK> how can i compare string with an array and if he matching display it ?
<tobiasvl> olivier_bK: what do you mean?
<tobiasvl> if the string matches _what_?
<Burgestrand> olivier_bK: give an example of a string and array that should match please!
<olivier_bK> okai
Zai00 has joined #ruby
JoshGlzBrk has joined #ruby
<shevy> he string
<shevy> I did not know strings a male
<shevy> *are
goyox86 has quit [Ping timeout: 240 seconds]
<shevy> do they mate with female strings?
<olivier_bK> shevy, you talking to me ?
<shevy> I am just pondering philosophically
<shevy> to no one in particular
<shevy> your example is simple
<shevy> array.include? string
fabrice31 has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
<olivier_bK> okai lol..
fabrice31 has joined #ruby
<olivier_bK> ahh
<tobiasvl> olivier_bK: I don't want to be rude, but you've been in this channel, trying to learn Ruby, for a year
<tobiasvl> is there any chance you will learn how to google and look things up in the Ruby documentation?
yubrew has joined #ruby
<sevenseacat> !8ball
<helpa> Signs point to yes.
<sevenseacat> heyo!
<tobiasvl> nice!
<shevy> 8 balls?
<olivier_bK> tobiasvl, i can develop sometimes when my company need it
DaniG2k has joined #ruby
fabrice31 has quit [Read error: No route to host]
<waynr> /ignore shevy
<shevy> :(
<waynr> whoops shitty keyboard
<olivier_bK> i cant develop everyday :(
fabrice31 has joined #ruby
<waynr> :P
<waynr> shevy: just responding to your troll
<shevy> I develop even while sleeping
<shevy> what troll
jhass|off is now known as jhass
yfeldblum has joined #ruby
<olivier_bK> tobiasvl, where i ' am lucky if i can choose the language for developing so i try to automate as much as possible with ruby
JasmeetQA has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
<tobiasvl> waynr: shevy isn't trolling now, compared to when he, for example, suggests that it would be better if nobody commented code, ever, not even for rdoc
<shevy> tobiasvl that's a complete misrepresentation
<waynr> ha
<tobiasvl> shevy: yeah I know, I'm just trolling you ;)
alem0lars has quit [Quit: Going AFK...]
<tobiasvl> I like ripping up weeks-old wounds
<shevy> I just like to see vim users in pain
JasmeetQA1 has quit [Read error: Connection reset by peer]
<Hanmac1> sevenseacat: so you have that pidgin plugin too? ;P
nateberkopec has joined #ruby
Hanmac1 is now known as hanmac
<shevy> did you solve your problem already waynr?
<shevy> you could always switch to emacs
fabrice31 has quit [Ping timeout: 264 seconds]
<shevy> matz uses it too
<shevy> look at what he created with it!
<waynr> shevy: no, i might try a non standard ruby ftplugin
<shevy> hey... ruby has ftp support...
mary5030 has quit [Remote host closed the connection]
<tobiasvl> don't listen to him waynr!
<waynr> i tried emacs but found it unenjoyable
Takle has quit [Remote host closed the connection]
<tobiasvl> how right you are
<shevy> hehe
<shevy> nobody would admit to being a emacs user here anyway
<waynr> i appreciate the capabilities of emacs just missed my modal text editing chops
yfeldblum has quit [Ping timeout: 272 seconds]
udoprog has joined #ruby
<tobiasvl> waynr: anyway, welcome to #ruby, I hope we have managed to give you the impression of a care-free and casual channel, enjoy your stay :B
<waynr> thanks tobiasvl
<waynr> i'm not a huge fan of ruby to be honest but i works with what i gots
doev has joined #ruby
<tobiasvl> GET OUT!!!!!!!
<tobiasvl> jk
klaut has quit [Remote host closed the connection]
<waynr> :) my biggest qualm is that it seems really easy for projects to get tangled up like a plate of spaghetti
nateberkopec has quit [Ping timeout: 240 seconds]
<shevy> waynr that's why you need more discipline
<sevenseacat> thats for programming in general, not specific to ruby
<shevy> a lot of features are given but you need to know whether they are useful or not
<shevy> like @@vars
<sevenseacat> ive never seen a use for those
<tobiasvl> sevenseacat: how right you are
<waynr> well i'm just making observations based on the projects i've worked on so far
<shevy> sevenseacat they can be used to count how many cats instances were made
whyy has joined #ruby
<shevy> class Sevenseacat; @@too_many_cats = 0
<sevenseacat> shevy: but the answer is always 'not enough'
<shevy> Garfield is a singleton cat
* sevenseacat is a crazy cat lady
sdouglas_ has quit [Remote host closed the connection]
<shevy> if ruby were to have traits, Garfield would have an addiction to Lasagne
sylvain31 has joined #ruby
chipotle has quit [Quit: cya]
BinaryMcAwesome has joined #ruby
mk2014_ has joined #ruby
BinaryMcAwesome is now known as Guest57705
goyox86 has joined #ruby
Derander has quit [Ping timeout: 252 seconds]
mk2014 has quit [Ping timeout: 272 seconds]
mk2014_ is now known as mk2014
willgorman_ has joined #ruby
krz has quit [Ping timeout: 252 seconds]
sigurding has quit [Read error: Connection reset by peer]
schaary|afk is now known as schaary
mijicd has joined #ruby
elaptics`away is now known as elaptics
ihme-TTilus is now known as TTilus
EasyCo has quit [Quit: Connection closed for inactivity]
Takle has joined #ruby
Derander has joined #ruby
einarj has joined #ruby
JasmeetQA1 has joined #ruby
tvw has joined #ruby
Takle has quit [Remote host closed the connection]
JasmeetQA has quit [Ping timeout: 252 seconds]
sk87 has quit [Quit: Textual IRC Client: www.textualapp.com]
Soliah has quit [Quit: Soliah]
<sylvain31> Hi, is there a ruby lib to perform command line action parse like git/gem/rvm program does?
<tobiasvl> sylvain31: not sure what "action parse" is, but maybe http://ruby-doc.org/stdlib-2.1.2/libdoc/optparse/rdoc/OptionParser.html
<wasamasa> sylvain31: I've been recommended slop
<wasamasa> sylvain31: pry is using it :P
<wasamasa> sylvain31: it also supports subcommands IIRC
danijoo has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby
<sylvain31> wasamasa, yes more like pry I think
sigurding has joined #ruby
<sylvain31> tobiasvl, action parsing means that is not --option but more parser action-stuff --option argument
<wasamasa> which is known as subcommands, yeah
<wasamasa> the only thing I'm missing is required arguments
<wasamasa> aka positional arguments
JasmeetQA has joined #ruby
<sylvain31> wasamasa, thanks. that a good start.
<tobiasvl> sylvain31: never heard it called that but okay!
<wasamasa> I guess it has been left out since my experiences with python's argparse have shown me it's quite of a pain to make it not require these positional arguments for special cases
JasmeetQA1 has quit [Read error: Connection reset by peer]
nfk has joined #ruby
willgorman_ has quit [Ping timeout: 240 seconds]
Guest57705 has quit [Ping timeout: 252 seconds]
DaniG2k has quit [Ping timeout: 260 seconds]
<sylvain31> tobiasvl, you mean a vocable diff. You're right, but yes it seems what I'm looking for: subcommands.
<wasamasa> also, note that slop is using optionparser internally
alec-c4 has quit [Remote host closed the connection]
JasmeetQA1 has joined #ruby
Derander has quit [Ping timeout: 264 seconds]
K3dare is now known as kedare
DaniG2k has joined #ruby
Takle has joined #ruby
JasmeetQA has quit [Ping timeout: 272 seconds]
Wolland has quit [Remote host closed the connection]
Derander has joined #ruby
sk87 has joined #ruby
alec-c4 has joined #ruby
DaniG2k has quit [Client Quit]
DaniG2k has joined #ruby
krz has joined #ruby
kaspergrubbe has joined #ruby
AppleStar has joined #ruby
jamto11 has joined #ruby
Vivekananda_y510 has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
alec-c4 has quit [Remote host closed the connection]
alec-c4 has joined #ruby
klaut has joined #ruby
BadQuanta has quit [Ping timeout: 240 seconds]
BecauseYouCan_ has joined #ruby
<shevy> huh
jamto11 has quit [Ping timeout: 264 seconds]
<sylvain31> thanks guy have fun. Bye
<shevy> where precisely is slop using optionparser internally?
<wasamasa> dunno, the author writes so
ghr has joined #ruby
<shevy> where does he write that
alec-c4 has quit [Ping timeout: 252 seconds]
sylvain31 has quit [Quit: Leaving]
yubrew has joined #ruby
bamyyyooo14335 has joined #ruby
alec-c4 has joined #ruby
mijicd has quit [Quit: leaving]
workmad3 has joined #ruby
mijicd has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
exgf_h has quit [Remote host closed the connection]
relix has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has joined #ruby
alec-c4 has quit [Remote host closed the connection]
exgf_h has joined #ruby
ndrei has joined #ruby
ndrei_ has joined #ruby
jack_rabbit has quit [Remote host closed the connection]
alec-c4 has joined #ruby
dumdedum has joined #ruby
yubrew has quit [Ping timeout: 272 seconds]
willgorman_ has joined #ruby
jack_rabbit has joined #ruby
GriffinHeart has quit [Ping timeout: 244 seconds]
alec-c4 has quit [Ping timeout: 260 seconds]
ghr has quit [Read error: Connection reset by peer]
ghr has joined #ruby
oponder has quit [Remote host closed the connection]
schaary is now known as schaary|afk
sevenseacat has quit [Quit: Leaving.]
nateberkopec has joined #ruby
CorpusCallosum has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 244 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has quit [Ping timeout: 240 seconds]
spider-mario has joined #ruby
ferr has joined #ruby
schaerli has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
davedev2_ has quit [Remote host closed the connection]
schaerli has joined #ruby
Xeago has joined #ruby
DrOwl has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
whyy has quit [Remote host closed the connection]
little_fu has joined #ruby
Takle has quit [Remote host closed the connection]
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
whyy has joined #ruby
nszceta has joined #ruby
bmurt has joined #ruby
BecauseYouCan_ has quit [Quit: Old soldiers never die, they just fade away.]
davedev24_ has joined #ruby
bamyyyooo14335 has joined #ruby
rdark has joined #ruby
mengu has quit [Ping timeout: 255 seconds]
febuiles_ has joined #ruby
febuiles_ has quit [Client Quit]
Takle has joined #ruby
febuiles has quit [Ping timeout: 252 seconds]
bmurt has quit [Ping timeout: 244 seconds]
Guest96924 has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
qba73 has joined #ruby
alex88 has joined #ruby
DaniG2k has quit [Ping timeout: 244 seconds]
oponder has joined #ruby
Guest96924 has quit [Client Quit]
Guest96924 has joined #ruby
Guest96924 has quit [Client Quit]
oponder has quit [Client Quit]
mikecmpbll has joined #ruby
Guest96924 has joined #ruby
mk2014 has quit [Quit: mk2014]
Guest96924 has quit [Client Quit]
mk2014 has joined #ruby
DaniG2k has joined #ruby
DaniG2k has quit [Client Quit]
nateberkopec has joined #ruby
Wolland has joined #ruby
yubrew has joined #ruby
tokik has quit [Ping timeout: 272 seconds]
inspectah_stack has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
tokik has joined #ruby
Wolland has quit [Ping timeout: 244 seconds]
inspectah_stack has quit [Client Quit]
nszceta has quit []
intnsity has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 244 seconds]
yubrew has quit [Ping timeout: 256 seconds]
inspectah_log has joined #ruby
b1nd has quit [Ping timeout: 240 seconds]
aganov has quit [Quit: Leaving]
lxsameer has quit [Remote host closed the connection]
rebelshrug has quit [Ping timeout: 252 seconds]
AlSquire has joined #ruby
dangerou_ has joined #ruby
cgj has quit [Quit: leaving]
cgj has joined #ruby
dANOKELOFF has quit [Remote host closed the connection]
maximski has joined #ruby
dangerousdave has quit [Ping timeout: 264 seconds]
intnsity has joined #ruby
closures999 has joined #ruby
closures999 has quit [Client Quit]
sigurding has quit [Read error: Connection reset by peer]
troulouliou_dev has joined #ruby
nszceta has joined #ruby
sts has joined #ruby
<sts> Hello folks. Is there a workaround in case I run into the following ruby bug? https://bugs.ruby-lang.org/issues/9592
<sts> I'm on OSX 10.9
schaerli has quit [Ping timeout: 252 seconds]
jottr_ has quit [Ping timeout: 248 seconds]
intnsity has quit [Ping timeout: 240 seconds]
el_consolo has joined #ruby
<workmad3> sts: sure... install a newer openssl and rebuild your ruby against it
intnsity has joined #ruby
<workmad3> sts: homebrew and ruby-install can help a lot with that
hgl has quit [Ping timeout: 264 seconds]
lxsameer has joined #ruby
<workmad3> sts: that said, the fix for the bug is in 2.1.2
<sts> workmad3: is that a bug which requires a certain server configuration to actually happen?
<workmad3> sts: it's a bug with very old versions of openssl
<workmad3> sts: using an old version of openssl is itself a bug, IMO ;)
schaerli has joined #ruby
<workmad3> sts: but the bug is fixed... as can be seen by the 'backports' section saying done for 1.9.3, 2.0.0 and 2.1
<sts> workmad3: I'd like to run with the openssl version which is supplied with osx.
<workmad3> sts: don't
<sts> workmad3: I want to run Puppet to configure workstations.
<sts> workmad3: not some fancy developer workstation...
<sts> workmad3: that would really complicate deployment if I have to compile ruby and openssl...
<workmad3> sts: osx uses its own libraries for ssl internally and doesn't provide particularly good openssl support
* hanmac shorted the sentence to "osx ... doesn't provide ... good ... support"
inspectah_log has quit [Quit: WeeChat 0.3.8]
<workmad3> hanmac: :D
el_consolo has quit [Quit: leaving]
<workmad3> sts: it's your decision... but I wouldn't advise doing much with the built-in openssl stuff with osx... outdated root certs, outdated library...
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
<workmad3> sts: you could put together something like an omnibus build for your osx setup though, which would have a ruby build with all the libraries compiled into a single directory that you could then ship out via puppet and set up (no compilation needed)
<hanmac> IF osx would have paket management you could update all the stuff you need ;P
<workmad3> sts: well... compilation needed initially to create the package
<workmad3> sts: I've not done that before though, but I know it's how chef distributes its own ruby as part of their install packages ;)
eka has joined #ruby
mijicd has quit [Remote host closed the connection]
bamyyyooo14335 has joined #ruby
vifino has joined #ruby
<workmad3> hanmac: wat? you mean the App Store isn't a package manager?!?!?!?!one111!?
<hanmac> not in the case that you might add own repositories like lauchpad
jottr_ has joined #ruby
schaerli has quit [Ping timeout: 244 seconds]
Takle has quit [Ping timeout: 252 seconds]
Joulse has quit [Quit: Joulse]
<workmad3> hanmac: but... but... why would I want a non-blessed repository from someone other than apple!
<workmad3> hanmac: surely apple know better than me what I should install on my mac!
<workmad3> </fanboi>
godd2 has joined #ruby
intnsity has quit [Ping timeout: 240 seconds]
inspectah_log has joined #ruby
inkblots has joined #ruby
ferr has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has joined #ruby
intnsity has joined #ruby
ferr has joined #ruby
moritzs has joined #ruby
yfeldblum has joined #ruby
b1nd has joined #ruby
nszceta has quit []
yfeldblum has quit [Ping timeout: 272 seconds]
ssarah has joined #ruby
<ssarah> hei guys
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
kiri has joined #ruby
Lewix has joined #ruby
iswell has joined #ruby
Takle has joined #ruby
bamyyyooo14335 has joined #ruby
<ddv> hi
ARCADIVS has quit [Quit: WeeChat 0.4.3]
<techsethi> hi ddv
<Edelwin> \o
alec-c4 has joined #ruby
<pipework> workmad3: I don't know if I believe that. After all, they installed iTunes.
tus has joined #ruby
<ddv> hello techsethi
exgf_h_d has joined #ruby
exgf_h has quit [Remote host closed the connection]
lotherk has joined #ruby
yubrew has joined #ruby
obs has joined #ruby
lkba has joined #ruby
pranny has quit [Quit: Leaving.]
ferr has quit [Remote host closed the connection]
Freijo has quit [Ping timeout: 248 seconds]
troulouliou_dev has quit [Quit: Leaving]
Wolland has joined #ruby
nateberkopec has joined #ruby
tokik has quit [Ping timeout: 255 seconds]
fantasticsid has joined #ruby
Fraeon has joined #ruby
aep has quit [Ping timeout: 260 seconds]
GriffinHeart has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
poimen has quit [Ping timeout: 260 seconds]
_ixti_ has joined #ruby
fearoffish has quit [Ping timeout: 260 seconds]
Morrolan has quit [Ping timeout: 245 seconds]
ferr has joined #ruby
oponder has joined #ruby
alec-c4 has quit [Remote host closed the connection]
adac has quit [Ping timeout: 260 seconds]
jprovazn has quit [Ping timeout: 260 seconds]
MissionCritical has quit [Ping timeout: 260 seconds]
grn has quit [Ping timeout: 260 seconds]
Trynemjoel has quit [Ping timeout: 245 seconds]
oz has quit [Ping timeout: 245 seconds]
Doppp has joined #ruby
grn has joined #ruby
jamto11 has joined #ruby
alec-c4 has joined #ruby
jpierre03 has quit [Ping timeout: 260 seconds]
stormy3_ has quit [Ping timeout: 260 seconds]
Zackio has quit [Ping timeout: 260 seconds]
majoh has quit [Ping timeout: 245 seconds]
stormy3 has joined #ruby
aep has joined #ruby
Wolland has quit [Ping timeout: 255 seconds]
bier_ has quit [Ping timeout: 245 seconds]
lupine has quit [Ping timeout: 245 seconds]
tonini has quit [Ping timeout: 245 seconds]
tonini has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
fearoffish has joined #ruby
Morrolan has joined #ruby
lupine has joined #ruby
oz has joined #ruby
bier has joined #ruby
jprovazn has joined #ruby
majoh has joined #ruby
GriffinHeart has quit [Ping timeout: 240 seconds]
Trynemjoel has joined #ruby
jpierre03 has joined #ruby
Zackio has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
alec-c4 has quit [Ping timeout: 272 seconds]
schaerli has joined #ruby
terrellt has quit [Ping timeout: 240 seconds]
AppleStar has quit [Ping timeout: 244 seconds]
benzine21 has joined #ruby
poimen has joined #ruby
sigurding has joined #ruby
Arkaniad has quit [Ping timeout: 264 seconds]
MissionCritical has joined #ruby
adac has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
jack_rabbit has quit [Ping timeout: 240 seconds]
ndrei_ has quit [Ping timeout: 252 seconds]
little_fu has quit [Remote host closed the connection]
ferr has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 272 seconds]
anarang has joined #ruby
marr has joined #ruby
GriffinHeart has joined #ruby
tjr9898 has quit [Remote host closed the connection]
benzine21 has quit [Remote host closed the connection]
iswell has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
ferr has joined #ruby
<dangerou_> I am using Amazon SQS in my rails app. What is the best way to maintain a handle to the queue throughout my application? should i create a singleton to interface with the api? http://docs.aws.amazon.com/AWSRubySDK/latest/AWS/SQS.html
ndrei has joined #ruby
ndrei_ has joined #ruby
<workmad3> dangerou_: personally, I'd suggest using https://github.com/mperham/connection_pool to wrap the creating of the connection
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
inkblots has quit [Remote host closed the connection]
<dangerou_> interesting, just wondering if it would be overkill for my needs.
<workmad3> dangerou_: what app server are you planning on using?
<dangerou_> passenger
<workmad3> dangerou_: then no, I wouldn't say it's overkill
dANOKELOFF has joined #ruby
<workmad3> dangerou_: anything that has the potential to preload the app and spawn off copies, you should take care with your connections to make sure the same connection isn't badly used between processes/threads/fibres
Deele has joined #ruby
LadyRainicorn has joined #ruby
schaerli has quit [Ping timeout: 264 seconds]
<dangerou_> workmad3, ok, thanks, i'll try
<workmad3> dangerou_: it's really easy to use ;)
mr-foobar has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
mr-foobar has joined #ruby
<dangerou_> workmad3, thats reassuring, but my reluctance is it's another dependency to maintain
<dangerou_> i will try however
<workmad3> dangerou_: it really is as easy as 'ConnectionPool.new(size: x, timeout: 10) {create_connection_here}'
<workmad3> dangerou_: it'll be *much* better for your sanity to be using a connection pool gem than trying to write your own connection pool when you have nasty thread-related connection issues in your app ;)
fantasti` has joined #ruby
<workmad3> dangerou_: decent connection pools are not easy to write...
benzine21 has joined #ruby
fantasti` has quit [Remote host closed the connection]
fantasticsid has quit [Ping timeout: 244 seconds]
<dangerou_> workmad3, noted
klaut has quit [Remote host closed the connection]
yacks has quit [Quit: Leaving]
sk87 has joined #ruby
mbwe1 has joined #ruby
mbwe1 has quit [Client Quit]
Rainicorn has joined #ruby
ldnunes has joined #ruby
LadyRainicorn has quit [Ping timeout: 264 seconds]
Rainicorn has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
fflush has joined #ruby
setra has joined #ruby
greenarrow has quit [Quit: 500]
kenneth has joined #ruby
donnoc has joined #ruby
kiri has quit [Read error: Connection reset by peer]
Hobogrammer has quit [Ping timeout: 244 seconds]
doev has quit [Quit: Verlassend]
yubrew has joined #ruby
bamyyyooo14335 has quit [Read error: Connection reset by peer]
ferr has quit [Ping timeout: 255 seconds]
phutchins has joined #ruby
ferr has joined #ruby
cashnguns has joined #ruby
bamyyyooo14335 has joined #ruby
nateberkopec has joined #ruby
whyy has quit [Remote host closed the connection]
whyy has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
joonty has quit [Quit: WeeChat 0.4.2]
oponder has quit []
donnoc has quit [Quit: WeeChat 0.4.3]
kiri has joined #ruby
donnoc has joined #ruby
jespada has joined #ruby
ndrei_ has quit [Ping timeout: 252 seconds]
phoo1234567 has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
phoo1234567 has quit [Max SendQ exceeded]
Wolland has joined #ruby
phoo1234567 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
mconnolly has joined #ruby
Wolland has quit [Ping timeout: 272 seconds]
Proshot has joined #ruby
greenarrow has joined #ruby
vifino has quit [Quit: Me sais Laptop sleepy.]
mk2014 has left #ruby [#ruby]
maximski has quit []
vt100 has quit [Ping timeout: 248 seconds]
azkah has joined #ruby
Takle has quit [Remote host closed the connection]
cmoneylulz has joined #ruby
whyy has quit [Remote host closed the connection]
azkah has quit [Client Quit]
<tagrudev> sweet lemonade
maximski has joined #ruby
Gadgetoid has quit [Ping timeout: 245 seconds]
maximski has quit [Max SendQ exceeded]
gwb3_ has joined #ruby
gwb3_ has quit [Client Quit]
alec-c4 has joined #ruby
azkah has joined #ruby
maximski has joined #ruby
momomomomo has joined #ruby
<certainty> :D
karupa is now known as zz_karupa
gwb3_ has joined #ruby
klaut has joined #ruby
Joulse has joined #ruby
gwb3_ has quit [Client Quit]
JasmeetQA1 has quit [Ping timeout: 244 seconds]
gwb3 has quit [Remote host closed the connection]
paulfm has joined #ruby
godd2 has quit [Ping timeout: 246 seconds]
ndrei has joined #ruby
ndrei_ has joined #ruby
bmurt has joined #ruby
Zebroid has joined #ruby
whyy has joined #ruby
schaerli has joined #ruby
zegerjan has joined #ruby
Zebroid has quit [Ping timeout: 240 seconds]
mengu__ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
gwb3 has joined #ruby
<elaptics> I prefer magical trevor :)
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
ereslibre has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
snapcase has quit [Ping timeout: 245 seconds]
snapcase has joined #ruby
superc0w has joined #ruby
aalmenar has quit [Read error: Connection reset by peer]
majoh has quit [Ping timeout: 245 seconds]
<wald0> i have a question/doubt about programming paradigm/style about ruby
superc0w has quit [Client Quit]
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
aalmenar has joined #ruby
aalmenar has quit [Changing host]
aalmenar has joined #ruby
majoh has joined #ruby
<elaptics> wald0: ask away
<wald0> for example, i have a BASH function that before to process any action (case for the first parameter) it calls itself ($FUNCNAME) to call the cleanup parameter
<wald0> this ends in an infinite loop, of course
Trynemjoel has joined #ruby
<tobiasvl> elaptics: everyone loves magical trevor, coz the tricks that he does are ever so clever
mengu has quit [Ping timeout: 260 seconds]
DouweM has quit [Ping timeout: 260 seconds]
<wald0> and im thinking that RUBY can just deal with these things just better because its much better structured
<wald0> or it forces you to structure it better
<wald0> im correct or ruby would have the same problem too ?
<tobiasvl> I don't think the fault is with bash here
havenwood has joined #ruby
<sts> workmad3: the bug is only triggered if the subjectAltNames is empty right?
<wald0> (by problem i mean: i wrote this without even notice that can bug, because bash has no strcuture at all)
DouweM has joined #ruby
<tobiasvl> wald0: feel free to gist the bash script, I don't really understand why you're blaming bash for creating an infinite loop
britneywright has joined #ruby
jackneill has joined #ruby
<elaptics> wald0: you'd have the same sort of problem with recursion with any language
<elaptics> ruby's syntax might make it easier to not make the mistake in the first place but it's no guarantee
thesheff17 has quit [Ping timeout: 255 seconds]
<wald0> tobiasvl: the fault is not bash of course, im asking about if these things happens less in ruby because in ruby they are simply better structure (let's say for example, ruby has constructors and other things)
<wald0> elaptics: yeah thats what i mean, i was wondering if ruby could make it easier to not make the mistake, mmh..
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tobiasvl> still don't understand what "the mistake" is
jcromartie has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
donnoc has quit [Ping timeout: 240 seconds]
cmoneylulz has quit [Remote host closed the connection]
bdnelson has joined #ruby
eka has joined #ruby
ferr_ has joined #ruby
<wald0> tobiasvl, elaptics: http://paste.debian.net/107960/
<wald0> this is an example of a simple but stupid bug easy to typo in bash
ferr has quit [Ping timeout: 244 seconds]
* wald0 asks that because since some time is learning and studying ruby which looks promising, trying to switch to it someday
Kovensky has joined #ruby
davedev24_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
davedev24_ has joined #ruby
Proshot has quit [Quit: Leaving]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yubrew has joined #ruby
chaos___________ has quit [Ping timeout: 244 seconds]
thesheff17 has joined #ruby
kenneth has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
davedev24_ has quit [Ping timeout: 255 seconds]
alec-c4 has quit [Remote host closed the connection]
alec-c4 has joined #ruby
bamyyyooo14335 has joined #ruby
<wald0> is there any example of how something similar can be writed in ruby ? (correctly structured/coded i mean)
yubrew has quit [Ping timeout: 255 seconds]
uresu has quit [Quit: uresu]
uresu has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
jerius has joined #ruby
hamakn has quit [Remote host closed the connection]
Hamburglr has quit [Ping timeout: 252 seconds]
setra has quit [Ping timeout: 264 seconds]
<zegerjan> What is the filename convention for classes which inherrent. if i make Cat < Animal and Dog < Animal, should i create a subfolder or something?
moritzs has quit [Ping timeout: 240 seconds]
sigurding has quit [Quit: sigurding]
<lagweezle> IIRC no subdirectory necessary.
moritzs has joined #ruby
<lagweezle> Seperate file probably good though.
<zegerjan> cat.rb and dog.rb is fine i guess?
Xeago has quit [Remote host closed the connection]
tjr9898 has joined #ruby
donnoc has joined #ruby
britneywright has quit [Ping timeout: 240 seconds]
robertodecurnex has joined #ruby
dblessing has joined #ruby
Mon_Ouie has joined #ruby
vt102 has joined #ruby
alexju has joined #ruby
sigurding has joined #ruby
eka has joined #ruby
vt102 has quit [Remote host closed the connection]
davedev24_ has joined #ruby
vt102 has joined #ruby
starkhalo has joined #ruby
britneywright has joined #ruby
jottr_ has quit [Ping timeout: 248 seconds]
mengu__ has quit [Remote host closed the connection]
cashnguns has quit [Ping timeout: 272 seconds]
ascarter has joined #ruby
kiri has quit [Quit: Leaving]
casheew__ has quit [Read error: Connection reset by peer]
casheew has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
centrx has joined #ruby
alec-c4 has quit [Remote host closed the connection]
andrewhl has joined #ruby
tvw has quit []
sdouglas has joined #ruby
Edelwin is now known as EdelwinK
Macaveli has joined #ruby
charliesome has joined #ruby
jamto11 has joined #ruby
techsethi has quit [Ping timeout: 252 seconds]
Wolland has quit [Ping timeout: 240 seconds]
kiri has joined #ruby
wildroman2 has quit [Remote host closed the connection]
djcp has joined #ruby
djcp has left #ruby [#ruby]
tjr9898 has quit [Remote host closed the connection]
alec-c4 has joined #ruby
sdouglas has quit [Ping timeout: 244 seconds]
alec-c4 has quit [Remote host closed the connection]
freerobby has joined #ruby
alec-c4 has joined #ruby
jamto11 has quit [Ping timeout: 248 seconds]
mikesplain has joined #ruby
moritzs has quit [Ping timeout: 248 seconds]
cmoneylulz has joined #ruby
bamyyyooo14335 has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
Takle has joined #ruby
Parker0 has joined #ruby
bamyyyooo14335 has joined #ruby
tjr9898 has joined #ruby
oo_ has quit [Remote host closed the connection]
alec-c4 has quit [Ping timeout: 240 seconds]
cocotton has joined #ruby
techsethi has joined #ruby
oo_ has joined #ruby
doev has joined #ruby
mikesplain has quit [Ping timeout: 255 seconds]
tjr9898 has quit [Read error: Connection reset by peer]
tmtwd has joined #ruby
<ddv> zegerjan: namespaces (eg modules) are usually directories
tjr9898 has joined #ruby
casheew has joined #ruby
sigurding has quit [Quit: sigurding]
Takle has quit [Ping timeout: 244 seconds]
EdelwinK is now known as Edelwin
adac has quit [Ping timeout: 272 seconds]
cocotton has quit [Remote host closed the connection]
wildroman2 has joined #ruby
gowikel has joined #ruby
joonty has joined #ruby
himsin has quit [Quit: himsin]
<zegerjan> ddv: Thanks. Ill keep it in the same dir.
casheew has quit [Ping timeout: 260 seconds]
nathamanath has joined #ruby
yfeldblum has joined #ruby
sigurding has joined #ruby
mengu has joined #ruby
kevind has joined #ruby
yfeldblum has quit [Remote host closed the connection]
TotalEvil has joined #ruby
<TotalEvil> hi2all
yfeldblum has joined #ruby
ferr_ has quit [Quit: Konversation terminated!]
oo_ has quit [Remote host closed the connection]
nathamanath has quit [Remote host closed the connection]
yacks has joined #ruby
<TotalEvil> can someone help me with ip address detect
schaerli has quit [Remote host closed the connection]
gowikel has left #ruby [#ruby]
gowikel has joined #ruby
cashnguns has joined #ruby
schaerli has joined #ruby
moritzs has joined #ruby
tjr9898 has quit [Remote host closed the connection]
Takle has joined #ruby
gowikel has left #ruby [#ruby]
moritzs has quit [Max SendQ exceeded]
moritzs has joined #ruby
yacks has quit [Ping timeout: 248 seconds]
Jon` has joined #ruby
adac has joined #ruby
nathamanath has joined #ruby
lemur has joined #ruby
zorak has quit [Ping timeout: 248 seconds]
maximski has quit []
uresu has quit [Quit: uresu]
tjr9898 has joined #ruby
Zenigor has joined #ruby
alec-c4 has joined #ruby
<jhass> TotalEvil: ask an actual question and you might find out
gowikel has joined #ruby
<TotalEvil> i'm using chef and tryin to detect ip from possible interfaces
sigurding has quit [Quit: sigurding]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phutchin1 has joined #ruby
<TotalEvil> #{node[:network][:interfaces].find{|k,v| k['eth0'] or k['bond0']}[:addresses]}
<TotalEvil> i have tried something like this
<TotalEvil> but no luck
<jhass> what does it return, what do you expect it to return?
yacks has joined #ruby
workmad3 has joined #ruby
mrmargolis has joined #ruby
<toretore> k is likely the name of the interface, so you'd want ==
yubrew has joined #ruby
Takle_ has joined #ruby
phutchins has quit [Ping timeout: 252 seconds]
abuzze has joined #ruby
Zenigor has quit []
Takle has quit [Read error: Connection reset by peer]
mattstratton has joined #ruby
Alina-malina has quit [Max SendQ exceeded]
nathamanath has quit [Remote host closed the connection]
Xeago has joined #ruby
gowikel has left #ruby [#ruby]
acrussell has joined #ruby
Alina-malina has joined #ruby
vifino has joined #ruby
vifino has quit [Remote host closed the connection]
vifino has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
tmtwd has quit [Ping timeout: 252 seconds]
GriffinHeart has quit [Remote host closed the connection]
tjr9898 has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
techsethi has quit [Quit: techsethi]
Zenigor has joined #ruby
sigurding has joined #ruby
sts has left #ruby [#ruby]
tmtwd has joined #ruby
yfeldblu_ has joined #ruby
wombo has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
bartj3 has joined #ruby
yfeldblu_ has joined #ruby
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
alec-c4 has quit [Remote host closed the connection]
alec-c4 has joined #ruby
pranny has joined #ruby
fflush_ has joined #ruby
fflush_ has quit [Changing host]
fflush_ has joined #ruby
fflush has quit [Ping timeout: 272 seconds]
fflush_ is now known as fflush
ferr has joined #ruby
Solnse has joined #ruby
tjr9898 has joined #ruby
benzine21 has quit [Remote host closed the connection]
anarang has quit [Quit: Leaving]
acconrad has joined #ruby
Wolland has joined #ruby
alec-c4 has quit [Ping timeout: 264 seconds]
Morkel has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
alec-c4 has joined #ruby
yfeldbl__ has joined #ruby
havenwood has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
AlSquire has joined #ruby
hobodave has joined #ruby
yfeldblu_ has quit [Read error: Connection reset by peer]
kaihara has joined #ruby
Morkel has joined #ruby
<krz> wish there was something like: <% @subscription_packages.each do |package| %>
sigurding has quit [Quit: sigurding]
<centrx> There is?
<krz> errr <% @subscription_packages.present? then @subscription_packages.each do |package| %>
alec-c4 has quit [Remote host closed the connection]
<jhass> so AS?
<krz> a one liner to do above
<apeiros> krz: that works. but not if you omit the `if`
alec-c4 has joined #ruby
<krz> oh really,,, trying
<centrx> krz, If @subscription package is an empty array, [].each is no-op
<apeiros> valid ruby is still a requirement :-p
<jhass> <% (@subscription_packages.presence || []).each do |package| %>
Wolland has quit [Ping timeout: 255 seconds]
_ixti_ has quit [Read error: Connection reset by peer]
<krz> what if it is nil
<centrx> nil is falsey
yfeldblum has quit [Ping timeout: 248 seconds]
<apeiros> @subscription_packages.try(:each) do |package| # I think that should work too
<jhass> or <% @subscription_packages.try(:each) do |package| %> should work too iirc
Macaveli has quit [Ping timeout: 240 seconds]
<jhass> ;D
<apeiros> ^5
<krz> oh you gotta love try
<apeiros> I don't
<apeiros> I want syntax for that
yfeldblum has joined #ruby
_ixti_ has joined #ruby
moritzs has quit [Ping timeout: 240 seconds]
<workmad3> apeiros: I'd prefer to ensure @subscription_packages never contained nil personally :)
yfeldblum has quit [Remote host closed the connection]
sigurding has joined #ruby
<jhass> ^ that too
<apeiros> workmad3: agreed
<krz> good point
<apeiros> normalization beats branching
volk_ has joined #ruby
<apeiros> sadly too few coders understand the value of normalization :(
Y_Ichiro has quit [Ping timeout: 240 seconds]
[gmi] has joined #ruby
<krz> btw is it possible to avoid something like foo.try(:bar).try(:baz)
alec-c4 has quit [Ping timeout: 240 seconds]
<apeiros> krz: yes. normalizer your data :-p
yfeldbl__ has quit [Ping timeout: 240 seconds]
<csmrfx> ?
<krz> or a more elegant way of writing that
<workmad3> krz: sure... never let 'foo' be nil, and never let 'foo.bar' return nil :P
<apeiros> workmad3: I still want to explore null-value pattern (if that's the name, not sure)
<csmrfx> what should I read to understand the value of normalization?
<workmad3> apeiros: you mean NullObject patterns?
<apeiros> probably
yfeldblum has joined #ruby
<workmad3> apeiros: e.g. returning things like EmptyPerson instead of 'nil' to indicate no person was found
<centrx> krz, I think the most elegant way is to set @subscription_packages to [] if it is going to be empty/nil/blank
<apeiros> workmad3: precisely
<apeiros> I find it an interesting concept. but I've never used it myself.
andrewhl has quit [Quit: andrewhl]
<krz> this is more rails specific: subscription_packages = Subscription.where(user_id: current_session.try(:owner).try(:id))
<workmad3> apeiros: I've used it a few times... mostly I find that when I'm dealing with 'empty' stuff it's an array though
<apeiros> krz: yeah, normalization. really.
<apeiros> *always* have a current_session.
<workmad3> apeiros: and nothing beats an empty array for that :)
<krz> i can do that, which AR will interpret the last bit as nil, which will return an empty array
<apeiros> *always* have your session have an owner. e.g. use "Guest"
<krz> but current_session.try(:owner).try(:id) loogs fugly
<krz> loogs = looks
amargherio has joined #ruby
enebo has joined #ruby
<centrx> krz, Why not Subscription.where(user: current_user) ?
<krz> current_session will exist, but owner might not
<apeiros> workmad3: with collections it's easy.
<centrx> or current_user.user
moritzs has joined #ruby
<apeiros> I don't think there's a reason to have specific null objects there. just have an empty one.
<centrx> NilClass is all you need for nothing
<workmad3> apeiros: sure :)
Pyrotecnix_ has left #ruby ["Leaving"]
moritzs has quit [Max SendQ exceeded]
<apeiros> centrx: not the same
bennylope has joined #ruby
<krz> centrx: what is current_user.user i nil at the moment
<workmad3> centrx: you mean 'class NilClass; def method_missing(*args, **kwargs, &blk); nil; end; end'? :)
<apeiros> centrx: the point of null-object is that you have an object which responds to all methods
<krz> id will complain about nilClass
moritzs has joined #ruby
bennylope has quit [Max SendQ exceeded]
<apeiros> and letting nil itself do that as workmad3 described it is a horrible thing
<workmad3> apeiros: a null-object shouldn't respond to all methods... it should respond to the same interface as the non-null object :)
<apeiros> workmad3: that's what I meant
lxsameer has quit [Quit: Leaving]
moritzs has quit [Max SendQ exceeded]
<workmad3> heh
<apeiros> thanks for the clarification
<centrx> krz, current_user.user would be a custom method you define if "current_user" is not the same kind of User referenced by Subscription
<workmad3> apeiros: I'm reading a </sarcasm> after that... correct interpretation? :)
moritzs has joined #ruby
<apeiros> workmad3: no
<krz> centrx: right. but if user returned nil. then current.user.id would still fail
<apeiros> I was not precise. you clarified. that's good :)
wombo_ has joined #ruby
sigurding_ has joined #ruby
sigurding_ has quit [Client Quit]
<workmad3> krz: don't let current_user ever return nil\
benzine21 has joined #ruby
<apeiros> krz: see 16:05 apeiros: *always* have your session have an owner. e.g. use "Guest"
<workmad3> krz: return something (like a GuestUser instance) at that point
<workmad3> krz: hell, just a User.new would do in a lot of circumstances :)
<krz> current_session also has an owner method. sometimes the current_session isnt the owner though
bennylope has joined #ruby
casheew has joined #ruby
banister is now known as banisterfiend
bennylope has quit [Max SendQ exceeded]
razieliyo has quit [Quit: Saliendo]
<krz> and sometimes the current session is managing another user (current_session.managing) that can also be nil
sigurding has quit [Ping timeout: 264 seconds]
wombo has quit [Ping timeout: 264 seconds]
wombo_ is now known as wombo
<centrx> This NilClass responding to everything sounds more like an EverythingClass than a NilClass
<apeiros> sounds like a convoluted design which needs cleaning anyway
<krz> point is, sometimes a method in current_session has the right to be nil
<workmad3> krz: why?
<apeiros> centrx: see workmad3's clarification
<centrx> That would be like /dev/null responding with data
<apeiros> centrx: with "all methods" I meant e.g. that NullPerson responds to the same methods as Person
<workmad3> centrx: I gave that 'extension' as a joke :P
<apeiros> centrx: and nil doesn't do that
<centrx> It is absurd enough that there is one Object to represent nil. There cannot be more
casheew_ has joined #ruby
<centrx> There is only nil, also called nihil, null, and nothing
<centrx> It cannot be an Object. This is Rubheresy
<apeiros> centrx: um, lol. ok
<krz> workmad3: my current_session object is in charge of tracking the session of who is currently logged in. if the currently logged in user selects another user to manage. then current_session.managing is set. this means i can determine who the current session is managing
<apeiros> IT CAN'T BEEEEE! BECAUSE DOGMA!
<krz> however, its not alwasy the case that a current session is managing someone
<apeiros> pointless to argue dogma.
<krz> workmad3: hence being nil
<Xeago> centrx: is an empty box, not a box?
<centrx> It is called nil. If you wanted it to be everything you could have called it everything. QED
<Xeago> it's empty afterall
<Xeago> it's nothing
<apeiros> centrx: are you willfully ignoring what's said?
<krz> if its nothing, why does nil deserve a representation?
<centrx> Does an EmptyPerson have a soul? These are impossible questions.
<apeiros> it's *not* everything.
<krz> i.e. nil.to_i = 0
cocotton has joined #ruby
<apeiros> ok. I see, you're trolling.
<centrx> Are you willfully ignoring what's nil!?
<workmad3> krz: conceptually, the current_session is managing someone even if no-one is identified... it's still managing the guest user ;)
<krz> workmad3: who would be the guest user though?
<apeiros> workmad3: with non-collection null-objects, what's been your general experience? useful pattern? problematic in some aspects?
<workmad3> krz: an instance of a GuestUser class would be a guest user
<workmad3> apeiros: I tend to hard-code some minimal class... but I don't encounter them massively often
<workmad3> apeiros: with activerecord, I also sometimes just use a non-persisted version of the model
<krz> so just a dummy user? a blank object, not a real user in the user table?
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
<krz> workmad3: ^^
<workmad3> krz: sure
casheew__ has joined #ruby
casheew_ has quit [Read error: Connection reset by peer]
<workmad3> krz: that's kinda what we were just discussing :P
<apeiros> workmad3: so basically something like: class NullPerson; def first_name; nil; end; …; end?
momomomomo has quit [Quit: momomomomo]
freerobby has quit [Quit: Leaving.]
<workmad3> apeiros: yeah
<apeiros> ever had problems which arose from that?
<workmad3> apeiros: keeping the interface in-sync is a bit annoying
bamyyyooo14335 has joined #ruby
<apeiros> I pondered meta-programming it
casheew_ has joined #ruby
<krz> yea dunno about that. so i would metaprogram all possible attributes of nullperson? so current_session.managing.email actually returns nil, instead of undefined method?
<workmad3> krz: yeah
speakingcode has quit [Ping timeout: 252 seconds]
<krz> or can also extend method_missing
lw has joined #ruby
<workmad3> krz: extending method_missing isn't generally a good idea
<krz> ayt
garethrees has joined #ruby
<krz> so should it be Guest or NullPerson? (name of class)
xcv has joined #ruby
<workmad3> apeiros: ah, thinking about it, I've also done the equivalent of NullObject patterns for test stubs too... and at that point, I used Struct :)
<krz> guest sounds like a real person though
<krz> like an object that returns real values
<workmad3> krz: whichever makes most sense... just like any naming convention :)
ghr has quit [Read error: Connection reset by peer]
xcv has quit [Client Quit]
<krz> kk
<apeiros> workmad3: yeah. for stubs I often used partial objects and replaced a method :)
speakingcode has joined #ruby
xcv has joined #ruby
casheew has quit [Ping timeout: 248 seconds]
TomyWork has quit [Quit: Leaving]
<apeiros> most extreme case: obj = Foo.allocate; def obj.first_name; "Stubby"; end; …
alec-c4 has joined #ruby
<krz> so normalization is the pattern for ensuring objects return nil values?
<workmad3> apeiros: these were properly isolated tests... they only loaded rspec and the SUT... all the other dependencies were basic Structs
<apeiros> krz: normalization is the pattern where you ensure your data has a uniform character
<apeiros> i.e. not "once it returns A, once B"
tobago has quit [Remote host closed the connection]
<krz> ah!
<apeiros> which usually also means "never nil"
<workmad3> apeiros: at that point, I did also write interface specs to ensure the stubs and the real objects supported the same expected interface...
jamto11 has joined #ruby
<apeiros> workmad3: I still have a test-double lib lying around, "seamless", which provided a verified test double
dangerou_ has quit [Read error: Connection reset by peer]
<krz> this is a good approach. glad you mentioned it workmad3
dangerousdave has joined #ruby
<workmad3> krz: apeiros was the one who mentioned it
<apeiros> i.e. you provided a fully constructed object which would only be used if you wanted an integration test
<workmad3> krz: we just both expanded on it :)
<krz> apeiros high five!
<apeiros> ^5
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3> apeiros: what if what you wanted to stub out was only a small part of that object though? :)
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
<apeiros> the part of providing the fully constructed object is optional
<apeiros> if you don't provide it, it's a normal stub/mock/spy
<workmad3> apeiros: in my case, I was stubbing out interfaces rather than objects... and then declaring a Struct that supported just that interface and passing that into the SUT
<apeiros> if you provide it, you can specify whether you want it to be constructed, and whether you want your stub to be verified against it
donnoc has quit [Ping timeout: 260 seconds]
ascarter has joined #ruby
bamyyyooo14335 has joined #ruby
<workmad3> apeiros: I was on a bit of a 'mock roles, not objects' trend at the time though :)
alec-c4 has quit [Remote host closed the connection]
mjulian has joined #ruby
alec-c4 has joined #ruby
<workmad3> apeiros: heh :) thinking about it, 'mock roles, not objects' can also be extended to normalisation/null objects by saying 'use roles, not objects'
<apeiros> roles = ducks?
<workmad3> apeiros: sure :)
<apeiros> duckify all the rubies!
<workmad3> apeiros: or collaborators, or whatever
<mjulian> We're a Puppet shop and also need to start deploying Ruby applications. I'm trying to figure out the best way for me (ops) to deploy Ruby 2.1 on CentOS 6. I keep reading suggestions to use RVM, but I also hear rumors about how RVM is terrible. Any suggestions?
momomomomo has joined #ruby
tagrudev has quit [Remote host closed the connection]
jamto11 has quit [Remote host closed the connection]
<apeiros> mjulian: there are a couple of ruby managers which bypass standard package manager (since they're often lagging behind or otherwise troublesome)
<workmad3> mjulian: personally, on a server, I just use plain ruby-install... you could also see about building something like an omnibus package that you could install rather than compile ruby on the server
<apeiros> ^
havenwood has joined #ruby
<workmad3> mjulian: you don't need a full version manager on a server where you're automating the setup though... you just need something to get ruby on there, then your automation can set up services with the correct environments :)
cocotton has quit [Quit: Leaving...]
yubrew has joined #ruby
<mjulian> workmad3: I would really want to avoid installing build tools on production systems, and much prefer to deploy packages.
<workmad3> mjulian: which also acts as a deterrent to doing stuff on the server manually... because it's a PITA to use ruby at that point :)
jamto11 has joined #ruby
<workmad3> mjulian: so investigate the omnibus approach?
<mjulian> Yeah, that sounds like a good path to look at.
alec-c4_ has joined #ruby
<workmad3> mjulian: you might need to go a step further than just ruby with that approach though
<mjulian> Yeah.
mengu has quit []
<workmad3> mjulian: as many ruby apps make use of gems with native extensions... so you'd need to create a package for each app, and install that
pranny has quit [Quit: Leaving.]
<workmad3> mjulian: basically, you'd end up creating a continuous delivery pipeline with that approach ;) something (a build server) creates your compiled packages, pushes them to a package repository (preferably a test one to start with)
<mjulian> Yeah, and that gets nice and complex
<mjulian> A potentially very deep rabbit role.
yubrew has quit [Ping timeout: 244 seconds]
<workmad3> mjulian: that then acts as an archive of all possible installable versions... you can then install any one of into a test env... and when you have a version you're happy with for production, you promote that package to the production package repository
tier has joined #ruby
<workmad3> mjulian: it bottoms out :)
duallain has joined #ruby
alec-c4 has quit [Ping timeout: 264 seconds]
<mjulian> hah. We hope. :)
<workmad3> mjulian: it's a setup I've seen in practice ;) although that was at the BBC....
freerobby has joined #ruby
dh64 has quit [Quit: Konversation terminated!]
<workmad3> mjulian: one of these days, I'm gonna get around to sorting it out my current work stuff... honest :)
donnoc has joined #ruby
<mjulian> heh
<mjulian> We are in the super early stages of deploying webapps at my current company. Still working on technology choice and standards. Lots of legacy PHP that's being slowly moved into Ruby. :(
* mjulian doesn't have any neat tooling or processes like that yet
geggam has joined #ruby
<workmad3> mjulian: this is the time to get started with it then :D
nathan___ has joined #ruby
andrewhl has joined #ruby
<Burgestrand> PHP deployment vs. Ruby deployment is quite a large gap for web applications.
Zenigor has quit [Remote host closed the connection]
elstif has joined #ruby
tier has quit [Remote host closed the connection]
<workmad3> just yesterday, I had to expand our chef stuff to deploy a PHP site :(
bamyyyooo14335_ has joined #ruby
<mjulian> Burgestrand: Oh, absolutely. We have one old-school PHP dev and two modern Ruby devs. I'm a Python guy. It's been an interesting time.
tmtwd has quit [Ping timeout: 264 seconds]
<hanmac> workmad3: it could be worse ... it could be java ;P
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
<Burgestrand> I mean… PHP is more or less upload the files to the server in the right place. When it comes to Ruby it's more like uploading the files, and figuring out how to boot the application server so NGiNX or Apache can reach it…
<workmad3> hanmac: heh
<mjulian> ha. Thank the heavens it isn't, hanmac.
andrewhl has quit [Client Quit]
<wasamasa> Burgestrand: well, I've been learning about the wonders of nginx reverse proxying and that makes it a ton easier
<Burgestrand> mjulian: you're in for some fun. :)
<workmad3> hanmac: I'd already done some java deployments though... but not webapps, so haven't had to sort out tomcat containers yet :)
bamyyyooo14335 has quit [Read error: Connection reset by peer]
<elstif> hi! really noob question: I have a cucumber scenario that has 3 arguments, when I try to use the args inside my def it says it is not a valid variable… how do I access a step definition variable inside my defs?
<workmad3> Burgestrand: in my case it was also googling how to set up nginx to serve PHP :)
<workmad3> Burgestrand: thankfully it's just a simple report interface to another tool though, so I've not had to delve into tuning php.ini yet...
<Burgestrand> workmad3: been there a few years ago, all I remember is FCGI.
<wasamasa> Burgestrand: with that it gets down to serve the application with your prefered ruby server, supervising that and reverse proxying nginx to it
<Burgestrand> ;)
<workmad3> Burgestrand: pretty much... nginx fcgi stuff and php5-fpm
<wasamasa> Burgestrand: and it works with nearly anything
charliesome has joined #ruby
<Burgestrand> wasamasa: yeah, either that or passenger!
<workmad3> I likes puma :)
<wasamasa> I think I'll stay with unicorn
tier has joined #ruby
<workmad3> but our infra can go either puma or unicorn
<wasamasa> not like I'd need to use either of those considering the nearly non-existent traffic
<wasamasa> but it's good to be prepared
<Burgestrand> workmad3: me too! However, is puma built to handle really slow running clients or is NGiNX recommended to have in front?
<Burgestrand> I can't remember.
<workmad3> Burgestrand: puma is fine for slow-running clients, and can even handle SSL
alec-c4_ has quit [Remote host closed the connection]
<workmad3> Burgestrand: but I shove nginx in front anyway for static files and more configurable SSL termination
ta has joined #ruby
sinkensabe has joined #ruby
alec-c4 has joined #ruby
<Burgestrand> workmad3: yeah, and it still feels better.
<Burgestrand> workmad3: having NGiNX -> Puma -> app I mean.
tjr9898 has quit [Remote host closed the connection]
whyy has quit [Ping timeout: 272 seconds]
tmtwd has joined #ruby
tjr9898 has joined #ruby
<wasamasa> mjulian: I'm a former python guy, too
<Burgestrand> I remember coming from PHP, spending quite a while trying to figure out how to make Apache run my .rb-files after I uploaded them. Fun times.
CaptainJet has joined #ruby
Zenigor has joined #ruby
<Burgestrand> Long time ago now. Time flies.
<workmad3> Burgestrand: yeah... and then you also get access to things like X-Accel-Redirect for sending files from the app rather than a ruby interpreter sending large data files
Zai00 has quit [Remote host closed the connection]
<workmad3> Burgestrand: if I was going to run puma unexposed though, I'd do it on jruby rather than MRI
snath has quit [Ping timeout: 264 seconds]
jhass is now known as jhass|off
havenwood has quit [Ping timeout: 264 seconds]
iceden has quit [Ping timeout: 240 seconds]
tjr9898 has quit [Remote host closed the connection]
<workmad3> Burgestrand: heh :) I still have to deal with an old site that's using .fcgi rails handlers...
<Burgestrand> workmad3: I'm glad I mostly don't need to deal with these things. :)
<Burgestrand> … and a bit sad. It can be fun some times!
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<Burgestrand> workmad3: yay, fcgi!
sk87 has joined #ruby
alec-c4_ has joined #ruby
<workmad3> servers are a fun diversion, but I wouldn't want to deal with them all day, every day
<Burgestrand> Yeah, me neither.
alec-c4 has quit [Ping timeout: 240 seconds]
mutt_ is now known as mtu
<mjulian> I wouldn't want to write code all day.
<mjulian> Servers are fun. :)
<C0deMaver1ck> DevOps, and Dev
<C0deMaver1ck> I prefer dev
sunya7a has joined #ruby
<C0deMaver1ck> though there is something strangely fulfilling about getting a heroku like deployment system working yourself
drawingthesun has joined #ruby
elstif has left #ruby [#ruby]
<workmad3> C0deMaver1ck: I think my next big challenge is likely to be postgresql-xc :D
<Burgestrand> mjulian: I'm glad people like you exist. :)
rippa has joined #ruby
<mjulian> Burgestrand: Thanks. :)
yfeldblum has quit [Read error: Connection reset by peer]
<C0deMaver1ck> workmad3: you... have fun with that :p
yfeldblum has joined #ruby
bal has quit [Quit: bal]
[gmi] has quit [Quit: Leaving]
<workmad3> C0deMaver1ck: heh, it's not gonna be for a while yet... got plenty of stuff to do first before I'll have time to play with infrastructure again :)
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Wolland has joined #ruby
CodeLicker has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
codeurge has joined #ruby
moritzs has quit [Ping timeout: 244 seconds]
garndt has joined #ruby
Takle_ has quit [Remote host closed the connection]
bmurt has quit []
yfeldblum has quit [Ping timeout: 272 seconds]
kenneth has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moritzs has joined #ruby
oo_ has joined #ruby
moritzs has quit [Max SendQ exceeded]
drawingthesun has quit [Quit: Leaving]
railzForDaiz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdouglas has joined #ruby
Wolland has quit [Ping timeout: 272 seconds]
moritzs has joined #ruby
wombo_ has joined #ruby
pranny has joined #ruby
wombo has quit [Ping timeout: 260 seconds]
wombo_ is now known as wombo
drawingthesun has joined #ruby
havenwood has joined #ruby
moritzs has quit [Max SendQ exceeded]
moritzs has joined #ruby
drawingthesun has quit [Client Quit]
tier has quit [Read error: Connection reset by peer]
drawingthesun has joined #ruby
moritzs has quit [Max SendQ exceeded]
tier has joined #ruby
bmurt has joined #ruby
moritzs has joined #ruby
casheew_ has quit [Read error: Connection reset by peer]
casheew has joined #ruby
apeiros has quit [Remote host closed the connection]
moritzs has quit [Max SendQ exceeded]
joonty has quit [Ping timeout: 252 seconds]
RaCx has joined #ruby
sdouglas has quit [Ping timeout: 255 seconds]
apeiros has joined #ruby
moritzs has joined #ruby
nathan___ has left #ruby [#ruby]
mgberlin has joined #ruby
stytown has joined #ruby
CodeLicker has quit [Quit: Nettalk6 - www.ntalk.de]
CodeLicker has joined #ruby
benzine21 has quit [Read error: Connection reset by peer]
benzine21 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jobewan has joined #ruby
apeiros has quit [Ping timeout: 244 seconds]
b1nd has quit [Ping timeout: 248 seconds]
abuzze has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
alec-c4_ has quit [Remote host closed the connection]
cashnguns has quit [Ping timeout: 248 seconds]
claymore has quit [Ping timeout: 255 seconds]
garethrees has quit [Ping timeout: 248 seconds]
tjr9898 has joined #ruby
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
zigomir has quit [Remote host closed the connection]
charliesome has joined #ruby
claymore has joined #ruby
ascarter has joined #ruby
CodeLicker has quit [Quit: Nettalk6 - www.ntalk.de]
mgberlin has quit [Remote host closed the connection]
CodeLicker has joined #ruby
zigomir has joined #ruby
ffranz has joined #ruby
TotalEvil has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Doppp has quit [Ping timeout: 244 seconds]
<olivier_bK> how can i select x characteres after found it, i tried string.match("name")[0..10] but i get nothing . i would want to print x characters after name
Doppp has joined #ruby
jespada has quit [Read error: Connection reset by peer]
joonty has joined #ruby
<canton7> olivier_bK, did you try string.match("name"), and see what you got back
terrellt has joined #ruby
schaerli has quit [Remote host closed the connection]
<olivier_bK> yes
<olivier_bK> but i need more
<olivier_bK> :)
jespada has joined #ruby
moritzs has quit [Ping timeout: 240 seconds]
<olivier_bK> sometimes you have name oliver
moted has joined #ruby
zigomir has quit [Ping timeout: 260 seconds]
<olivier_bK> but sometimes you have and i dont know why, the people name is xxxxx
b1nd has joined #ruby
Y_Ichiro has joined #ruby
snath has joined #ruby
sailias has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
fflush has quit [Quit: fflush]
yubrew has joined #ruby
tier has quit [Remote host closed the connection]
s3ri0us has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
RaCx has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Barrayar has joined #ruby
bmurt has quit []
yubrew has quit [Ping timeout: 252 seconds]
Gadgetoid has joined #ruby
bmurt has joined #ruby
<canton7> olivier_bK, I don't think you understood what I'm getting at
Barrayar has quit [Client Quit]
<canton7> .match does not return a string
<canton7> you seemed to assume it returned something specific, and you're wrong
railzForDaiz has joined #ruby
aspires has joined #ruby
Barrayar has joined #ruby
Lucky__ has joined #ruby
tvw has joined #ruby
zchrykng has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
donnoc has quit [Ping timeout: 255 seconds]
<zchrykng> Hello everyone! Is someone available to help me understand some ruby code?
<zchrykng> I am trying to port a ruby library over to javascript, but I am not sure what exactly the ruby code is doing.
gigetoo has joined #ruby
<canton7> ask and see if anyone answers :)
<zchrykng> https://github.com/farski/TZip <- that is the library. I can tell it is super simple, but I just don't know any ruby.
<canton7> you'll have to ask specific questions :)
CodeLicker has quit [Quit: Nettalk6 - www.ntalk.de]
<canton7> otherwise the answer will be "go read a ruby tutorial"
<zchrykng> Heh good point...
phinfonet has joined #ruby
_maes_ has joined #ruby
bamyyyooo14335_ has quit [Ping timeout: 244 seconds]
<zchrykng> Ok. So I know the library matches zip codes to time zones, but I don't know how it is doing that.
<zchrykng> For instance it has this code... which I think is supposed to do the matching, but I have no idea how.
<zchrykng> [5,4,3,2,1].each do |i|
<zchrykng> return MAPPING[zipcode.to_s[0,i]] if MAPPING.has_key?(zipcode.to_s[0,i])
<zchrykng> end
<olivier_bK> match return nil or true i read the doc for find a solution
<olivier_bK> zchrykng, gist please
tmtwd has quit [Ping timeout: 252 seconds]
<olivier_bK> dont past in the channel
<olivier_bK> thanks
<zchrykng> Right, sorry.
<zchrykng> Which I assume is referencing this file... https://github.com/farski/TZip/blob/master/lib/tzip/mapping.rb
jonahR has joined #ruby
DrCode has quit [Ping timeout: 264 seconds]
<zchrykng> Which seems to be pulling the data from here. https://github.com/farski/TZip/tree/master/lib/tzip/values
IceDragon has joined #ruby
sinkensabe has joined #ruby
jhass|off is now known as jhass
<zchrykng> Anyway, I am trying to understand how the values are being defined and then matched.
DrCode has joined #ruby
zigomir has joined #ruby
b00stfr3ak has joined #ruby
lkba has quit [Ping timeout: 244 seconds]
clamstar has quit [Ping timeout: 255 seconds]
SBoolean has joined #ruby
NinoScript has joined #ruby
oo_ has quit [Remote host closed the connection]
tacos1de has quit [Ping timeout: 264 seconds]
tmtwd has joined #ruby
<zchrykng> ... Maybe a better way to ask. What does %w{995 996 997 998 999} do?
kireevco has joined #ruby
phinfonet has quit []
<canton7> array of strings
<canton7> "words"
<canton7> >> %w{1 2 3}
<eval-in_> canton7 => ["1", "2", "3"] (https://eval.in/169192)
marr has quit [Ping timeout: 272 seconds]
<mozzarella> I never remember those
end_guy has quit [Ping timeout: 264 seconds]
<mozzarella> I just use [] instead
jmbrown412 has joined #ruby
wombo_ has joined #ruby
<shevy> haha
oo_ has joined #ruby
wombo has quit [Ping timeout: 248 seconds]
wombo_ is now known as wombo
<zchrykng> Ok. So [5,4,3,2,1].each do |i| loops through each of those values setting it to i?
<shevy> zchrykng yes
clamstar has joined #ruby
<shevy> looks like literal english almost, doesn't it?
lkba has joined #ruby
<zchrykng> shevy, somewhat. I want to learn ruby as some point, but don't have time for this project.
codabrink has quit [Quit: Textual IRC Client: www.textualapp.com]
mr-fooba_ has joined #ruby
ldnunes has quit [Ping timeout: 240 seconds]
cgore has joined #ruby
<zchrykng> zipcode.to_s[0,i] so this would convert the number to a string and take 0 through i characters?
mr-foobar has quit [Read error: Connection reset by peer]
SilverKey has joined #ruby
jhass is now known as jhass|off
stytown has quit [Quit: stytown]
Aryasam has joined #ruby
ta has quit [Remote host closed the connection]
mijicd has joined #ruby
waynr has left #ruby ["WeeChat 0.4.3"]
<zchrykng> Ok, I think I understand what it is doing now. Thanks for letting me talk out loud about it.
Wolland has joined #ruby
blueOxigen has quit [Ping timeout: 260 seconds]
kaspergrubbe has joined #ruby
Atttwww has joined #ruby
sinkensabe has quit [Remote host closed the connection]
bluOxigen has joined #ruby
phinfonet has joined #ruby
chipotle has joined #ruby
intnsity has quit [Ping timeout: 240 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
wombo has quit [Ping timeout: 260 seconds]
greenarrow has quit [Quit: 500]
b1nd has quit [Ping timeout: 240 seconds]
Wolland has quit [Ping timeout: 264 seconds]
TorpedoSkyline has joined #ruby
krz has joined #ruby
jhass|off is now known as jhass
theharshest has joined #ruby
agjacome has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
railzFor_ has joined #ruby
Kricir has joined #ruby
cobakobodob has quit [Ping timeout: 244 seconds]
donnoc has joined #ruby
andrewjanssen has joined #ruby
theharshest has quit [Client Quit]
ghr has joined #ruby
railzForDaiz has quit [Ping timeout: 240 seconds]
little_fu has joined #ruby
theharshest has joined #ruby
<shevy> zchrykng yeah, although it's weird code
<shevy> I can't recall ever having done .to_s[0,i] in my ruby code in like ten years
razum2um has quit [Quit: Leaving.]
Wolland has joined #ruby
little_f_ has joined #ruby
<shevy> zchrykng [] for strings means: start, end ... so in your case, we start at 0, the first character, and we count up to i, where i is hopefully an integer. for instance, if i is 5, then [0,5] means take the first five characters
<shevy> >> "foobar hello world![0,5]
<eval-in_> shevy => /tmp/execpad-7ec959013c0d/source-7ec959013c0d:6:in `raise': exception object expected (TypeError) ... (https://eval.in/169207)
<shevy> man
<shevy> >> "foobar hello world!"[0,5]
<eval-in_> shevy => "fooba" (https://eval.in/169208)
<zchrykng> shevy, I think they are doing it so they can look for 1, 2, etc digits of the zip code as an index for an array (or whatever it is called in ruby).
sailias has quit [Quit: Leaving.]
codabrink has joined #ruby
<zchrykng> They are mapping the shorted amount of each zip code to each time zone, if that makes sense.
obs has quit [Quit: Konversation terminated!]
sailias1 has joined #ruby
dANOKELOFF has quit []
sailias1 is now known as sailias
<zchrykng> shortest*
lkba has quit [Ping timeout: 264 seconds]
SCHAAP137 has joined #ruby
bdnelson has quit [Quit: Textual IRC Client: www.textualapp.com]
apeiros has joined #ruby
little_fu has quit [Ping timeout: 255 seconds]
Burgestrand has quit [Quit: Burgestrand]
Wolland has quit [Ping timeout: 264 seconds]
ldnunes has joined #ruby
puddy has joined #ruby
intnsity has joined #ruby
<puddy> is rubygems the default place gem looks to when one does a 'gem install sass'?
iamjarvo has joined #ruby
hpoydar has joined #ruby
Solnse has quit [Quit: Leaving.]
hpoydar has quit [Remote host closed the connection]
<LadyRainicorn> Yws.
hpoydar has joined #ruby
<LadyRainicorn> puddy: Yes.
<banisterfiend> LadyRainicorn sup brony
<puddy> LadyRainicorn: and is it down right now?
<puddy> oh seems up.
phutchin1 has quit [Read error: Connection reset by peer]
b1nd has joined #ruby
<LadyRainicorn> banisterfiend: AT, not MLP
phutchins has joined #ruby
<banisterfiend> LadyRainicorn AT is so damn average recently
<LadyRainicorn> aww
bluOxigen has quit [Ping timeout: 240 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> puddy you can also add new remote sources btw like so: gem sources -a http://gems.github.com
oo_ has quit [Remote host closed the connection]
<LadyRainicorn> *https
bluOxigen has joined #ruby
<LadyRainicorn> Don't use http for sources!
<LadyRainicorn> That is badddd
<puddy> shevy: ah cool. thanks. just trying to get sass working, i dont think i'll be doing too much ruby dev
fflush has joined #ruby
fflush has joined #ruby
fflush has quit [Changing host]
echevemaster has joined #ruby
<LadyRainicorn> (ie you will be instarooted by the malware living on your router)
little___ has joined #ruby
<hanmac> LadyRainicorn: AT is mathematical!! ;P
<LadyRainicorn> Yessss
<LadyRainicorn> MATH YEAH!
brunops has joined #ruby
little_f_ has quit [Ping timeout: 248 seconds]
<hanmac> best matrix-like quote ever: "i am looking at my bits ... my leg is math!" ;P
jimbow has joined #ruby
jimbow has quit [Client Quit]
CodeLicker has joined #ruby
kaiserpathos has joined #ruby
St_Marx has quit [Ping timeout: 264 seconds]
hpoydar has quit [Remote host closed the connection]
techsethi has joined #ruby
mikesplain has joined #ruby
ferr has quit [Quit: Konversation terminated!]
donnoc has quit [Ping timeout: 244 seconds]
ndrei_ has quit [Ping timeout: 244 seconds]
<ponga> when im told that one's learning 'network' at school
j_mcnally has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
<ponga> does it mean he is learning net protocols like tcp and udp
Takle has joined #ruby
fflush has quit [Quit: fflush]
pietr0 has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
fflush has joined #ruby
cobakobodob has joined #ruby
lsmola__ has quit [Ping timeout: 248 seconds]
glundgren has joined #ruby
<glundgren> hey people
<glundgren> i have to validate a date
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Joulse has quit [Quit: Joulse]
deric_skibotn has joined #ruby
<glundgren> but, as the user is the one that will input it, via an import file
<glundgren> he can put anything in there
qba73 has quit []
<glundgren> whats the best way to validate a date in this scenario?
<glundgren> i mean, i cant use Date.parse or break the date in day, month, year
<glundgren> because the very smart user
<glundgren> can add a string or a number
<glundgren> in the import file
<glundgren> i dont know if i made myself clear
<glundgren> pleaz halp
<glundgren> :)
einarj has quit [Remote host closed the connection]
x1337807x has joined #ruby
Aryasam has quit [Ping timeout: 248 seconds]
little___ has quit [Remote host closed the connection]
pranny has quit [Quit: Leaving.]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
Zebroid has joined #ruby
tmtwd has quit [Ping timeout: 248 seconds]
gregf has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fflush has quit [Quit: fflush]
Takle has quit [Read error: Connection reset by peer]
BadQuanta has joined #ruby
saarinen has joined #ruby
jespada has quit [Ping timeout: 252 seconds]
troyready has joined #ruby
newton1 has joined #ruby
Takle has joined #ruby
<hanmac> glundgren: do you have a fixed format or not?
relix has quit [Ping timeout: 244 seconds]
smathieu has joined #ruby
Zebroid has quit [Remote host closed the connection]
b00stfr3ak has quit [Ping timeout: 244 seconds]
<glundgren> the file is an excel file
<glundgren> hanmac
gregf has quit [Client Quit]
icarus_ has joined #ruby
hpoydar has joined #ruby
relix has joined #ruby
goyox86 has quit [Ping timeout: 255 seconds]
<glundgren> the field in excel is supposed to be a Date, but the user can add a string or a number
sailias1 has joined #ruby
sailias has quit [Quit: Leaving.]
<glundgren> i have to check if its not a string, number, or anything else
<hanmac> ugh that makes everything more complicated ... cant it be csv?
fflush has joined #ruby
gregf has joined #ruby
phutchin1 has joined #ruby
tmtwd has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
<glundgren> not at this time, its a bug of a software already delivered :P
icarus_ is now known as icarus
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tier has joined #ruby
<glundgren> the problem is the enything else
dangerousdave has joined #ruby
<glundgren> anything else
<ponga> omg
<glundgren> what i should check?
<ponga> why did i not know that rubymotion existed?
x1337807x has joined #ruby
<ponga> that i can waive learning obj-c?
dodosan has joined #ruby
<ponga> *loves ruby more now
* hanmac does not care about obj-c
<ponga> hanmac me either but im interested in Swift
<glundgren> ponga, you dont need obj-c, apple started swift
<glundgren> that is ruby
<glundgren> :P
<ponga> glundgren:
<ponga> i saw the video too
djbkd has joined #ruby
<ponga> i thought it was very ruby-ish in some aspects...
iamjarvo has joined #ruby
<glundgren> when i saw the .map, a tear slowly fell down from my eye
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
<hanmac> glundgren: hm first i need to look how you parse that xls/csv file and what data you have ... then you can parse the date with Date.parse or strptime
<glundgren> ponga: and it is rubysh after all?
JBreit has joined #ruby
<ponga> it is ruby-ish
<glundgren> hanmac: the Date.parse will not work
maximski has joined #ruby
elaptics is now known as elaptics`away
phutchins has quit [Ping timeout: 264 seconds]
<glundgren> because it will raise an error
jottr_ has joined #ruby
<ponga> glundgren is that tear drop part about the swift
<ponga> cos i only watched a bit of video
<hanmac> glundgren: yeah for wrong format it does return a error, isnt that wahat you want?
<ponga> does swift use .map too?
<glundgren> hanmac: i want to check in an if statement
Spami has quit [Quit: This computer has gone to sleep]
Spami__ has quit [Quit: This computer has gone to sleep]
agjacome has quit [Quit: leaving]
<hanmac> glundgren: use regexp and match / =~
JBreit has left #ruby [#ruby]
<glundgren> hanmac: how regex can check an object type?
x1337807x has quit [Ping timeout: 264 seconds]
<hanmac> glundgren: the better question: what Objects do you get? Strings that need to be converted or already converted objects?
<glundgren> i mean, the error i get is this: undefined method `to_date' for 40756:Fixnum
<glundgren> because the user added a number, instead of a date, in the excel date column
DrCode has quit [Ping timeout: 264 seconds]
ghr has quit [Ping timeout: 260 seconds]
<glundgren> so i need to check if this piece of data is a number, a string, or whatever it is
<glundgren> before i call to_Date
<glundgren> to_date
alec-c4 has joined #ruby
<glundgren> but it can be a string lets say
<glundgren> 01-01-2014
<glundgren> and it will parse
goyox86 has joined #ruby
<glundgren> but if a string is 'doefrfrf3f'
<glundgren> it will raise an error
<glundgren> theres no method just to check if something is a valid date?
<glundgren> whithout raising errors, just return true or false?
<ponga> so swift uses .map and it was in video which made you do a teardrop
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<ponga> oh im so bad at jokes..
LiohAu has quit [Quit: LiohAu]
<glundgren> ponga: .map is one of the most strange things in the world
<glundgren> ponga: its like regex to me
<Xeago> .map is totally sane?
<ponga> so it was tear of sadness?
jottr_ has quit [Ping timeout: 244 seconds]
<glundgren> ponga: mixed feelings
goyox861 has joined #ruby
<ponga> oh
<glundgren> ponga: now i dominated the use of .map
<zchrykng> Though... why does ruby look like Visual Basic code?
<Xeago> given a vector v and function f, .map behaves as v(f)
* zchrykng runs
<Xeago> or rather, v*f
<glundgren> but in the beggining, when i was learning, it was like black magic
<hanmac> glundgren: obj.is_a?(Date) or obj.respond_to?(:to_date)
<ponga> uh oh zchrykng
brunops has quit [Ping timeout: 272 seconds]
<glundgren> hanmac: nice! let me test it
puddy has left #ruby [#ruby]
mehlah has quit [Quit: Leaving...]
obs has joined #ruby
hpoydar_ has joined #ruby
<ponga> i never believed my friend saying that ruby is so dead
<ponga> *proud
hpoydar has quit [Ping timeout: 255 seconds]
Xeago_ has joined #ruby
NinoScript has quit [Ping timeout: 248 seconds]
bricker`work has joined #ruby
alec-c4 has quit [Ping timeout: 264 seconds]
hpoydar_ has quit [Read error: Connection reset by peer]
<hanmac> ponga: maybe it was a jealous php developer?
<glundgren> hanmac: this respond_to? is up in 1.9.3?
klaut has quit [Remote host closed the connection]
hpoydar has joined #ruby
Takle has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
<ponga> hanmac he was a java worshipper
mehlah has joined #ruby
hpoydar has quit [Remote host closed the connection]
goyox86 has quit [Ping timeout: 272 seconds]
<hanmac> respond_to? is veryvery old ... i dont know a ruby version where it wasnt inside
hpoydar has joined #ruby
<hanmac> ponga: oh thats even worse
<ponga> hanmac does the fact that he is a java worshipper makes sense to you
<ponga> lol
<jhass> 10>> Object.respond_to? :new
<eval-in_> jhass => TRUE (https://eval.in/169222)
<glundgren> hanmac: nice, thats because ruby lacks some basic things in 2, that this kind of method i thought wouldnt be in 1.9.3
<ponga> im good with JS and ruby
<ponga> and looking forward to swift
alex88 has quit [Quit: Leaving...]
saarinen has quit [Quit: saarinen]
aspires has quit []
mehlah has quit [Client Quit]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cya]
Xeago has quit [Ping timeout: 240 seconds]
relix_ has joined #ruby
rezzack has joined #ruby
schaerli has joined #ruby
relix has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
alec-c4 has joined #ruby
doev has quit [Ping timeout: 248 seconds]
<glundgren> thanks for all the help guys
<glundgren> Ritalin is kicking, i need to enjoy the moment working
<ponga> glundgren i hope i master the arts of .map one day
<glundgren> ponga: its easy when you understand, and very helpful
rebelshrug has joined #ruby
benzine21 has quit [Remote host closed the connection]
<ponga> everything seems easy after i understood
<glundgren> ponga: think this way, it creates an array based on what you tell them to do with an item
<ponga> like when i saw proc and lambda
<ponga> one day... one day
<glundgren> ponga [1,2,3].map { |m| m*10}
<glundgren> it will return [10,20,30]
<ponga> *sips his straight ceylon tea
hpoydar has quit [Ping timeout: 244 seconds]
<ponga> glundgren: i was joking i know how it is different to just .each iteration
<ponga> :P
phutchin1 has quit [Ping timeout: 244 seconds]
<glundgren> [1,2,3].map {|m| if m != 2 then m*10 end |
<glundgren> [1,2,3].map {|m| if m != 2 then m*10 end }
<glundgren> [10,30]
<glundgren> oh
<glundgren> hahaha
<jhass> no, [10, nil, 30]
<ponga> lol
<glundgren> jhass: true
<lemur> .compact
<ponga> what!?
<glundgren> [1,2,3].map {|m| if m != 2 then m*10 end }.compact
<ponga> i thought it was 10, 2, 30
kaiserpathos has quit []
<glundgren> [10,30]
<jhass> I prefer to select first
<ponga> wait a sec
<ponga> *drops his tea cup
<ponga> i thought i understood...?
<ponga> im crying
<lemur> { |m| m == 2 ? m : m * 10 }
<lemur> if m is 2 then m else n times 10
<glundgren> lemur: elegant
<ponga> oh i see
<ponga> it creates another array
<ponga> so its nil
<ponga> i get it
<ponga> now i can drink up my tea
wallerdev has joined #ruby
<lemur> #partition as well.
<ponga> in peace!
<glundgren> i trained hard
<lemur> Just read through Enumerable a few times.
<glundgren> look at this
<glundgren> @tabela_planejado.map {|k,v| v.map {|k,v| v[c] if k.to_date.strftime('%Y') == m.to_date.strftime('%Y')} if k == f}.flatten.compact.reduce(:+)
<shevy> ponga what kind of tea
<glundgren> something from an old project
<ponga> as i said, ceylon
<ponga> black tea
<lemur> hash.values.flat_map
<ponga> straight jug, no milk, no sugar
CaptainJet has quit []
<ponga> *standards
<lemur> Ah, you need the keys
jxf has quit [Ping timeout: 240 seconds]
<lemur> still, flat_map the first map
<glundgren> its to sum
<glundgren> some values
<glundgren> ina huge object
RaCx has joined #ruby
<glundgren> to generate a table
<ponga> shevy remember to drink your tea straight, have standards
<glundgren> of data with totals
Takle has joined #ruby
<glundgren> i made all this like
<glundgren> blind
<glundgren> kind of kung fu
<glundgren> i really mastered the art of .map
fabrice31 has joined #ruby
<lemur> hash.flat_map { |k,v| v.map { |k,v| v[c] if ... } if k == f}.compact.reduce :+
<glundgren> flat_map is new to me
<jhass> uhm
<jhass> why not hash[f]
<glundgren> i dont know why, but only worked this way
<glundgren> it was a traumatizing project
olivier_bK has quit [Ping timeout: 255 seconds]
yubrew has joined #ruby
dodosan has quit [Remote host closed the connection]
<lemur> considering you shadow k and v from the first block, that'd give some headaches
<jhass> I hope you don't really have c, f, k and v as variable names
<lemur> that, and rename those to something descriptive.
<lemur> heh
dodosan has joined #ruby
dodosan has quit [Client Quit]
<glundgren> hehehe nice tips
<glundgren> and it was in a loop, as you can imagine
<hanmac> i often use "k,v" but only when they make sense
<glundgren> but for me makes sensce
<glundgren> sense
AlSquire has joined #ruby
timonv has joined #ruby
<glundgren> c is column, f is farm and m is month
<lemur> there are your names then
<jhass> hash[f].select {|k, _| k.to_date.year == m.to_date.year }.map {|_, v| v[c] }.reduce(:+)
<glundgren> hehehe yeah
<lemur> jhass: nils
<jhass> where?
<lemur> potentially
<glundgren> compact before reduce
phutchins has joined #ruby
<jhass> lemur: no
<jhass> glundgren: select.map == map.compact
<glundgren> oh
<lemur> well ===
<lemur> within range of ;)
djbkd has quit [Remote host closed the connection]
alec-c4 has quit [Ping timeout: 260 seconds]
<glundgren> ok
<lemur> (considering they overload that thing to death anyways)
<glundgren> im white belt in .map yet
<lemur> case statements use ===
djbkd has joined #ruby
<lemur> which is really handy considering: when whatever type then
<glundgren> i only leaarned the osotogari of .map
maximski has quit [Ping timeout: 240 seconds]
Spami_ has joined #ruby
<lemur> whatever type can override === and let you do some fun stuff
<lemur> it's used for regex such that === delegates to match
<glundgren> hanmac: it worked, bug fixed, thanks
maestrojed has joined #ruby
<hanmac> jhass: hash[f].map {|k, v| k.to_date.year == m.to_date.year ? v[c] : 0 }.inject(0,:+)
<lemur> and since it's type.===(val)...
yubrew has quit [Ping timeout: 264 seconds]
alec-c4 has joined #ruby
<jhass> hanmac: I prefer my version
<glundgren> i can say one thing
<lemur> Is the 0 necessary if you're guaranteed 0s?
<glundgren> this .map crazyness is heavy
<glundgren> tooks ages
<lemur> want some reduce craziness?
<glundgren> to proccess
gruz0[russia] has joined #ruby
alec-c4 has quit [Remote host closed the connection]
<glundgren> not in this project anymore
alec-c4 has joined #ruby
<glundgren> this project is delivered
<lemur> https://github.com/baweaver/streamable - reduce can do some insane stuff too.
<glundgren> took me 6 months
<hanmac> lemur: do you mean the 0 in the map or in the inject ?
<lemur> inject
<lemur> init value wasn't it?
brunops has joined #ruby
<hanmac> lemur:
<hanmac> >> [].inject(:+)
<eval-in_> hanmac => nil (https://eval.in/169225)
<hanmac> >> [].inject(0,:+)
<eval-in_> hanmac => 0 (https://eval.in/169226)
<lemur> yeah, init
<lemur> fair point
jfran has joined #ruby
kiri has quit [Quit: Leaving]
<hanmac> if you are not checking if the enum is empty, then you need a default value or you need to check the result
<lemur> granted.
<glundgren> hanmac: how much to hire a guy like you?
<lemur> pre-holiday fog, apologies.
<hanmac> icurrently have a job so not enough time to be hired else where ... and i have to much own projects too
joonty has quit [Ping timeout: 255 seconds]
<lemur> Anyone around in San Francisco?
<glundgren> hanmac: ok, fair point, but i need a number, to understand the value
fflush has quit [Quit: fflush]
<lemur> What level are you looking and what area? I know full time salaries decently.
<lemur> contract rates not as much
<glundgren> im from brazil, as you can see in my english skills
<glundgren> how much a ruby dev is earning in sanfran?
SilverKey has quit [Quit: Halted.]
<lemur> depends on the level
alec-c4_ has joined #ruby
<glundgren> a level like senior
<lemur> 80-100 for Juniors
bmurt has quit []
<lemur> 100-120ish for Seniors
<lemur> though vague lines.
<lemur> considering senior one place is a lot more than senior in another.
<glundgren> holy shit, thats what a make working very hard
<glundgren> the companies pays it for one dev?
<lemur> yeah
<lemur> (in thousands)
fabrice31 has quit [Remote host closed the connection]
<glundgren> i understood, yearly
<lemur> yeah
bmurt has joined #ruby
<lemur> around KC it's 50-70 Junior, 70-90 Senior
<glundgren> i wish i was born in america
sailias1 has quit [Quit: Leaving.]
fabrice31 has joined #ruby
<glundgren> ooooh sayyy cant you seeee
zchrykng has left #ruby ["Leaving"]
<glundgren> :P
gruz0[russia] has quit [Quit: Leaving]
<lemur> huge cost of living difference is the reason for the disparity, do note.
<glundgren> i live in sao paulo
<lemur> SF is ~165% more expensive to live in than KC
<glundgren> its like nyc cost of living
alec-c4 has quit [Ping timeout: 244 seconds]
<glundgren> kc is kentucky?
bradleyprice has quit [Read error: Connection reset by peer]
<lemur> Kansas City
bradleyprice has joined #ruby
<lemur> Missouri.
mrmargolis has quit []
<glundgren> oh ok
macclearich has joined #ruby
<yxhuvud> glundgren: swedish roots?
<glundgren> yxhuvud: very ancient roots, 1900
carraroj has joined #ruby
<glundgren> yxhuvud: are you swedish?
<glundgren> im not even blonde anymore
<glundgren> hehehe
<yxhuvud> yes. I recognized 'lundgren' as a common swedish surname.
<glundgren> yeah
<glundgren> my ancestors came from sweden, and started a industrial empire here in brazil
<glundgren> founded 2 cities
<yxhuvud> cool!
<glundgren> im proud of it
fabrice31 has quit [Ping timeout: 248 seconds]
<glundgren> you can translate it in chrome
<glundgren> he is my grand grand grand father
cmoneylulz has quit [Remote host closed the connection]
Davey has quit [Quit: afk]
<tobiasvl> wow
<tobiasvl> as a norwegian this is intriguing
<banisterfiend> glundgren it goes: great great grand father ;) (in english)
momomomomo has quit [Quit: momomomomo]
Davey has joined #ruby
<glundgren> banisterfiend: thanks!
<banisterfiend> glundgren np
Takle has quit [Remote host closed the connection]
<glundgren> tobiasvl: yeah, the business are still functioning
<glundgren> but im from the bastard side of the family
<glundgren> my great grand father had 21 kids
<glundgren> one of them was my grandfather
<glundgren> he was son of the lundgren with a domestic worker
exgf_h_d has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
<glundgren> holy shit, when ritalin kicks
<glundgren> i talk too much
SCHAPiE_ has joined #ruby
<glundgren> sorry
timonv has quit [Remote host closed the connection]
joonty has joined #ruby
sk87 has joined #ruby
timonv has joined #ruby
sdouglas has joined #ruby
SCHAAP137 has quit [Ping timeout: 255 seconds]
lolmaus has joined #ruby
fflush has joined #ruby
SCHAAP137 has joined #ruby
sk87 has quit [Client Quit]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
timonv has quit [Read error: No route to host]
maximski has joined #ruby
bradhe has joined #ruby
SCHAPiE_ has quit [Ping timeout: 272 seconds]
chipotle has joined #ruby
SCHAPiE_ has joined #ruby
kirun has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
heftig has joined #ruby
SCHAPiE_ has quit [Remote host closed the connection]
maximski has quit [Max SendQ exceeded]
sinkensabe has joined #ruby
Hanmac1 has joined #ruby
<krz> was having a discussion earlier. is there something wrong with https://gist.github.com/e2c2346d13951a60e6b9
shlant has joined #ruby
chipotle has quit [Client Quit]
tmtwd has quit [Ping timeout: 252 seconds]
<shlant> is there a way to reference a variable in a symbol name? something like variables :app_'#{c}' => 'blah'
maximski has joined #ruby
SCHAAP137 has quit [Ping timeout: 244 seconds]
<jhass> shlant: you want a hash
<krz> it has a bit of rails code. but the point is. the managing method composes an instance of a User object
sdouglas has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
SilverKey has joined #ruby
fabrice31 has joined #ruby
stytown has joined #ruby
hanmac has quit [Ping timeout: 244 seconds]
<krz> theoretcially, i can do current_session.managing.articles.first.comments
alexju has quit [Remote host closed the connection]
<krz> is it right that articles and comments are now exposed in the managing method?
Takle has joined #ruby
glundgren has quit []
iceden has joined #ruby
kevind has quit [Quit: kevind]
carraroj has quit [Ping timeout: 272 seconds]
bradhe has quit [Ping timeout: 244 seconds]
<jhass> shlant: oh read that backwards. you can do :"app_#{c}", though consider making that a string, especially if c is user input
carraroj has joined #ruby
<apeiros> note that "user" is short for "any not absolutely trusted source"
<shlant> jhass: that worked, thanks!
tmtwd has joined #ruby
cmoneylulz has joined #ruby
tjr9898 has quit [Remote host closed the connection]
nanoyak has joined #ruby
BillCriswell has joined #ruby
bradleyprice has quit [Remote host closed the connection]
kireevco has quit [Read error: Connection reset by peer]
bradleyprice has joined #ruby
<BillCriswell> Google is failing me. What would the ~> means in: gem 'sass', "~>3.3.2" ?
kireevco has joined #ruby
<Hanmac1> i would use a sub hash for that maybe like :app => { c => 'blah' } ... doing user input into symbols is a no-no
<BillCriswell> Exactly version 3.3.2?
<Hanmac1> BillCriswell: ~> 3.3.2 means > 3.3.2 but < as 3.4
tmtwd has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
Hanmac1 is now known as Hanmac
andrewjanssen has quit [Quit: Leaving...]
Takle has quit [Remote host closed the connection]
<BillCriswell> Hanmac: Thanks. Just saw that on bundlers page.
<lemur> "Had we said ~> 2.2.0, that would have been equivalent to ['>= 2.2.0', '< 2.3.0']"
<krz> apeiros: is it right that the CurrentSession object now has access of the articles objects via user (managing method)?
<lemur> It's a twiddle-waka
<BillCriswell> That sounds very Henson. I like it.
CaptainJet has joined #ruby
bradleyprice has quit [Ping timeout: 252 seconds]
benzine21 has joined #ruby
Mon_Ouie has quit [Read error: Connection reset by peer]
<Hanmac> hihihi i watched the last muppet movie last fryday ... the gags there where classic oldschool just like i like ;P
iamjarvo has joined #ruby
Poky has quit [Remote host closed the connection]
<BillCriswell> I've been watching Dinosaurs a lot lately. It's so different from what I remember as a kid.
<apeiros> krz: you always have access to everything in ruby. what's your concern?
DouweM has quit [Ping timeout: 248 seconds]
<Hanmac> hihih yeah i watched that too! "what the red medicine did not work? try the blue one!" ;P
TorpedoSkyline has quit [Quit: Textual IRC Client: www.textualapp.com]
Wolland has joined #ruby
shlant has left #ruby [#ruby]
senayar_ has quit [Remote host closed the connection]
senayar has joined #ruby
volk_ has quit [Quit: volk_]
saarinen has quit [Quit: saarinen]
benzine21 has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
tjr9898 has joined #ruby
Wolland has quit [Ping timeout: 255 seconds]
Burgestrand has joined #ruby
<krz> apeiros: wondering if current_session now knows too much
<apeiros> current_session doesn't know articles. managing does.
Zebroid has joined #ruby
<krz> did i just leak the Article object into current_session via the managing record. and if so. is that bad OO design?
<krz> managing record = managing method
bitcycle has joined #ruby
kenneth has joined #ruby
senayar has quit [Ping timeout: 264 seconds]
saarinen has joined #ruby
timonv has joined #ruby
andrewjanssen has joined #ruby
yubrew has joined #ruby
Zebroid has quit [Ping timeout: 244 seconds]
banjara has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
sepp2k has joined #ruby
heftig has quit [Ping timeout: 272 seconds]
RaCx has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
smathieu has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
smathieu has joined #ruby
ferr has joined #ruby
sunya7a_ has joined #ruby
sunya7a has quit [Ping timeout: 272 seconds]
sputnik13 has joined #ruby
ramfjord has joined #ruby
djbkd has joined #ruby
senayar has joined #ruby
tacos1de has joined #ruby
garndt has quit [Quit: Connection closed for inactivity]
ponga has quit [Remote host closed the connection]
ta has joined #ruby
acrussell has quit [Quit: Leaving.]
shlant has joined #ruby
Xeago_ has quit [Remote host closed the connection]
<shlant> due to not being able to connect to #rubyonrails for some reason I will ask here: What is everyone using to monitor unicorn workers? monit? unicorn-worker-killer? unicorn itself?
smathieu has quit [Remote host closed the connection]
<wasamasa> systemd
<wasamasa> I've just set up systemd to do that
Burgestrand has quit [Quit: Burgestrand]
asterite has joined #ruby
<wasamasa> the only thing I'm missing now is mails on failure :P
<wasamasa> it's pretty nice to have a web application as service you can control just like every other service on the machine
<yxhuvud> yes, except that most services isn't that hideously slow to start -_-
<wasamasa> what?
Zamerick has joined #ruby
benzine21 has joined #ruby
<yxhuvud> wasamasa: big rails installations tend to take ages to start.
<wasamasa> oh that
<wasamasa> well, I haven't gotten to that size yet
<jhass> shlant: /msg NickServ HELP
<jhass> yxhuvud: why would that be a problem when running under systemd?
krz has quit [Quit: WeeChat 0.4.3]
smathieu has joined #ruby
djbkd has quit [Remote host closed the connection]
Ankhers has joined #ruby
<wasamasa> ah, found the option for actions on failure
<wasamasa> awesome
benzine21 has quit [Ping timeout: 240 seconds]
iislpq has quit [Remote host closed the connection]
shlant has quit [Quit: Leaving.]
<yxhuvud> jhass: it is not bigger or smaller there compared to anywhere else. I simply pointed out the big issue when restarting
shlant has joined #ruby
<wasamasa> yeah, that would happen with any system not specifically tailored to rails
<wasamasa> I've seen spring mentioned for that topic
djbkd has joined #ruby
<sdelmore> Can anyone tell me which activerecord callback I would use to be able to pass extra parameters to a model and use them to instantiate another model?
dumdedum has quit [Quit: foo]
edgarjs_afk is now known as edgarjs
<sdelmore> Would I just override initialize?
centrx has joined #ruby
Ankhers has quit [Read error: Connection reset by peer]
mr-fooba_ is now known as mr-foobar
<jhass> doesn't AR instantiate associations if you pass a nested structure?
smathieu has quit []
<jhass> class A; has_one :b; end; class B; belongs_to :a; end; A.new(a_attr: 1, b: {b_attr: 2}) ?
jamto11 has quit [Remote host closed the connection]
<centrx> jhass, Yes, if class A has accepts_nested_attributes_for :b
<sdelmore> I have a model that is in mysql, but I need to move a couple of the fields to mongo. I was hoping to still allow them to be passed into the new and then call them directly on the model instead of having active record try to find a field for it.
<jhass> I've seen people defining a self.build that does more complex construction if needed
Spami_ has quit [Quit: Leaving]
simoz1111114 has joined #ruby
Spami has joined #ruby
<sdelmore> Thanks.
edgarjs is now known as edgarjs_afk
techsethi has quit [Quit: techsethi]
ylluminate has quit [Ping timeout: 255 seconds]
freerobby has quit [Quit: Leaving.]
alvaro_o has joined #ruby
<jhass> def self.build attrs; other = Other.new attrs.slice(:other); me = new attrs.except(:other); me.other = other; me; end or whatever
<jhass> but IMO it should stay the rare case
sunya7a_ has quit [Ping timeout: 248 seconds]
x1337807x has joined #ruby
felixjet has joined #ruby
benzine21 has joined #ruby
jottr_ has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
Mongey has quit [Ping timeout: 264 seconds]
Takle has joined #ruby
relix_ has quit [Quit: Textual IRC Client: www.textualapp.com]
agjacome has joined #ruby
relix has joined #ruby
agjacome has quit [Client Quit]
bradhe has joined #ruby
jrdnull is now known as list
list is now known as jrdnull
agjacome has joined #ruby
senayar has quit [Ping timeout: 264 seconds]
chrishough has joined #ruby
momomomomo has joined #ruby
<sdelmore> jhass: That looks like exactly what I need. It is a rare case, it is the case where I want a model to not store all of it's data in the same database.
Mongey has joined #ruby
poguez_ has joined #ruby
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
benzine21 has quit []
Elfix_113 has quit [Quit:  ]
BillCriswell has quit []
exgf has joined #ruby
DrCode has joined #ruby
AlexRussia has quit [Ping timeout: 244 seconds]
bradleyprice has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
jxf has joined #ruby
Wolland has joined #ruby
x1337807x has quit [Ping timeout: 255 seconds]
<dangerousdave> I would like an elegant way to build a complex string, any suggestions? its an email message
<vt102> Would love to see comments on this stack overflow answer: http://stackoverflow.com/a/24560088/3311761
<jhass> dangerousdave: ERB
<vt102> Matt is correctly describing the behavior...is his reasoning correct?
Zamerick has quit [Quit: Leaving]
Xeago has joined #ruby
<dangerousdave> jhass,thanks
shlant has left #ruby [#ruby]
AlexRussia has joined #ruby
freerobby has joined #ruby
<sdelmore> jhass: I tried your method but self.build never gets called. Any ideas how I could troubleshoot that?
<jhass> sdelmore: it's no AR hook. You have to call it yourself
<jhass> it's more a pattern I've observed
Kricir has quit [Remote host closed the connection]
<sdelmore> Oh….any idea how I would make it work with the usual method of creating a new record in rails, Model.new params?
Wolland has quit [Ping timeout: 244 seconds]
yubrew has joined #ruby
<jhass> what I'm saying is you shouldn't
djbkd has quit [Remote host closed the connection]
finisherr has joined #ruby
x1337807x has joined #ruby
asterite has left #ruby [#ruby]
<finisherr> Coming to ruby from python. What method can I use to print statements without \n appended on the end?
<lemur> print
<sdelmore> print
<finisherr> k
Takle has quit [Remote host closed the connection]
<lemur> printf for formatting
<finisherr> I’m assuming printf is C style
<finisherr> or something like that
<lemur> yep
<finisherr> k
djbkd has joined #ruby
<lemur> "%5s" % ['foo!']
<lemur> if I recall correctly
nmokru has joined #ruby
goyox861 has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 255 seconds]
mrmargolis has joined #ruby
<lemur> Yeah, that was right. I can never remember, been too long since I've needed it.
djbkd has quit [Remote host closed the connection]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
NinoScript has joined #ruby
Takle has joined #ruby
x1337807x has quit [Client Quit]
IcyDragon has joined #ruby
end_guy has joined #ruby
Xeago has quit [Remote host closed the connection]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IceDragon is now known as Guest45473
Guest45473 has quit [Ping timeout: 240 seconds]
IcyDragon is now known as IceDragon
djbkd has joined #ruby
RaCx_ has joined #ruby
RaCx has quit [Ping timeout: 255 seconds]
RaCx_ is now known as RaCx
AlexRussia has quit [Remote host closed the connection]
dc_ has quit [Remote host closed the connection]
Xeago has joined #ruby
relix has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
relix has quit [Client Quit]
djbkd has quit [Ping timeout: 264 seconds]
relix has joined #ruby
amargherio has quit [Remote host closed the connection]
benkay has joined #ruby
j_mcnally has joined #ruby
fflush has quit [Quit: fflush]
benzrf|offline is now known as benzrf
<benkay> hey ruuuuby. i'm not a rubyist but i'm following these install instructions: (https://github.com/ianyh/Amethyst, Building). are 'gem install' and 'rake install' the things i want to use here, and how badly is that going to hose my system?
nanoyak has quit [Quit: Computer has gone to sleep.]
m8 has joined #ruby
s3ri0us is now known as s3ri0us|away
lkba has joined #ruby
SCHAAP137 has joined #ruby
<benzrf> benkay: why ARENT you a rubyist
<benzrf> what are you, some kind of pythonista
<benkay> just a derpy lisper
<Hanmac> maybe a javarian? ;P
<benkay> just a parensmonkey
<benzrf> lisp schmisp
<benzrf> use haskell
<benkay> nah my problems aren't so complex i need haskell
<benzrf> getIRCerByName "benkay" >>= throwIntoTrash
<lemur> Elixir :D
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> benkay: since when is haskell only for complicated probms
<benkay> so i came to the wrong place for ruby expertise?
earthquake has joined #ruby
olivier_bK has joined #ruby
<lemur> depends on what you qualify as expertise
<benkay> benzrf: what do my needs have to do with what haskell is or is not for?
<benzrf> uh
<benzrf> i dont understand how the question is relevant
<lemur> rake is just a ruby build tool
<lemur> brew is also ruby
<benkay> the strict typing is pretty cool, and were i doing fun and complex stuff like correct-by-construction flight controllers where i needed to offload as much thinking as possible haskell might be a good tool for me.
newton1 has quit [Quit: WeeChat 0.4.3]
<benkay> but it feels like a remote-controlled telesurgeonbot when all i need is a drill press, tape measure and my brain.
<benkay> (and maybe a stick welder, but hey - crap analogy)
<benkay> anyways, thanks for y'alls time.
AlexRussia has joined #ruby
aspires has quit []
LadyRainicorn has quit [Quit: Bye]
thesheff17 has quit [Ping timeout: 272 seconds]
aspires has joined #ruby
oso96_2000 has quit [Ping timeout: 252 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_2_tori has joined #ruby
Rahul_Roy has joined #ruby
Kricir has joined #ruby
Xeago has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
Kricir_ has joined #ruby
oso|away has joined #ruby
oso|away is now known as oso96_2000
alexju has joined #ruby
cgore has quit [Remote host closed the connection]
tvw has quit []
Kricir has quit [Ping timeout: 248 seconds]
end_guy_ has joined #ruby
aspires has quit []
fabrice31 has quit [Remote host closed the connection]
end_guy has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
thesheff17 has joined #ruby
chaos___________ has joined #ruby
cashnguns has joined #ruby
maximski has quit []
RaCx has quit [Quit: Computer has gone to sleep.]
djbkd has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
Kricir_ has quit [Ping timeout: 248 seconds]
carraroj has quit [Quit: Konversation terminated!]
stytown has quit [Quit: stytown]
s34n has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
RaCx has joined #ruby
Elfix has joined #ruby
Ankhers has joined #ruby
banister has joined #ruby
Takle has quit [Remote host closed the connection]
goyox861 has joined #ruby
RaCx has quit [Client Quit]
RaCx has joined #ruby
fflush has joined #ruby
s3ri0us|away is now known as s3ri0us
mattmcclure has joined #ruby
fabrice31 has joined #ruby
dc_ has joined #ruby
msull92 has joined #ruby
senayar has joined #ruby
zigomir has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 255 seconds]
schaerli has quit [Remote host closed the connection]
agent_white has joined #ruby
chrishough has quit [Ping timeout: 244 seconds]
schaerli has joined #ruby
Takle has joined #ruby
chrishough has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
andrewjanssen has joined #ruby
RaCx has joined #ruby
yubrew has joined #ruby
_2_tori has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
schaerli has quit [Remote host closed the connection]
Wolland has joined #ruby
schaerli has joined #ruby
kaiserpathos has joined #ruby
schaerli has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
RaCx has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 255 seconds]
chipotle has joined #ruby
schaerli has joined #ruby
msull92 has quit [Quit: Lingo - http://www.lingoirc.com]
banister has quit [Read error: Connection reset by peer]
Wolland has quit [Ping timeout: 240 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
dc_ has quit [Ping timeout: 240 seconds]
dc_ has joined #ruby
nanoyak has joined #ruby
Barrayar has quit [Ping timeout: 272 seconds]
RaCx has joined #ruby
wildroman2 has quit [Ping timeout: 260 seconds]
banister has quit [Ping timeout: 244 seconds]
SCHAAP137 has quit [Ping timeout: 240 seconds]
SCHAAP137 has joined #ruby
Doppp_ has joined #ruby
fflush has quit [Quit: fflush]
binaryhat has quit [Ping timeout: 264 seconds]
jdj_dk has joined #ruby
fflush has joined #ruby
Doppp has quit [Ping timeout: 255 seconds]
hellome has quit [Ping timeout: 255 seconds]
fflush has quit [Changing host]
fflush has joined #ruby
schaerli_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
dangerou_ has joined #ruby
schaerli has quit [Ping timeout: 264 seconds]
Barrayar has joined #ruby
CaptainJet has quit []
Deele has quit [Ping timeout: 255 seconds]
schaerli_ has quit [Remote host closed the connection]
ylluminate has joined #ruby
ylluminate` has joined #ruby
dangerousdave has quit [Ping timeout: 255 seconds]
SCHAPiE_ has joined #ruby
jheg has joined #ruby
SCHAAP137 has quit [Ping timeout: 252 seconds]
CodeLicker has quit [Ping timeout: 252 seconds]
clamstar has quit [Ping timeout: 255 seconds]
tekacs has quit [Ping timeout: 255 seconds]
dblessing has quit [Quit: dblessing]
terrell_t has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
tekacs has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
zenspider has quit [Ping timeout: 255 seconds]
ylluminate has quit [Ping timeout: 240 seconds]
jottr_ has joined #ruby
zenspider_ has joined #ruby
jdj_dk has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
jdj_dk has joined #ruby
SCHAPiE_ has quit [Ping timeout: 255 seconds]
Deele has joined #ruby
terrellt has quit [Ping timeout: 252 seconds]
terrell_t has quit [Ping timeout: 248 seconds]
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
troulouliou_dev has joined #ruby
dc_ has quit [Remote host closed the connection]
x1337807x has joined #ruby
cnj has quit [Ping timeout: 255 seconds]
lele has quit [Ping timeout: 252 seconds]
bricker`1ork has joined #ruby
bricker`work has quit [Ping timeout: 255 seconds]
tsunamie has quit [Max SendQ exceeded]
goyox861 has quit [Ping timeout: 255 seconds]
tsunamie has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
Caius has quit [Ping timeout: 255 seconds]
cnj has joined #ruby
clamstar has joined #ruby
jottr_ has quit [Ping timeout: 264 seconds]
RedPunch has joined #ruby
Alina-malina has joined #ruby
Deele has quit [Ping timeout: 255 seconds]
lele has joined #ruby
<RedPunch> Hi, I am unable to install any gems. Every 'gem install XYZ' gives me http://hastebin.com/hunomowota.vbs
<RedPunch> 'gem install --debug XYZ'
<benzrf> RedPunch: fix you're internet
timonv has quit [Ping timeout: 248 seconds]
bricker`1ork is now known as bricker`work
miah has quit [Ping timeout: 255 seconds]
<RedPunch> benzrf, ???
RaCx has joined #ruby
Caius has joined #ruby
Stalkr_ has joined #ruby
Stalkr_ has joined #ruby
miah has joined #ruby
jprovazn has quit [Quit: Odcházím]
<Stalkr_> Anyone experience customizing the markdown gem redcarpet? I need my <img> tags to be surrounded by a custom div
senayar_ has joined #ruby
Cache_Money has joined #ruby
<RedPunch> Can someone please explain why I get the error - http://hastebin.com/hunomowota.vbs
<jhass> Stalkr_: iirc you can inherit the default renderer and overwrite
senayar has quit [Ping timeout: 240 seconds]
<jhass> RedPunch: "getaddrinfo: Name or service not known" you're trying to access a non-existent domain or have a broken dns resolver
<Stalkr_> jhass: I believe you mean kind of like this? https://github.com/vmg/redcarpet#and-you-can-even-cook-your-own
qpls has quit [Changing host]
qpls has joined #ruby
<jhass> exactly
binaryhat has joined #ruby
<jhass> just examine the available methods on the parent with pry
_maes_ has quit [Ping timeout: 255 seconds]
britneywright has quit [Quit: Textual IRC Client: www.textualapp.com]
blackmesa has joined #ruby
<AntelopeSalad> is there a simple way to iterate over every file/dir in a dir but then only get access to the relative paths of what it finds rather than the absolute paths?
<Stalkr_> jhass: Excuse me for asking, but how would I do it? I see there is a span-level method called 'image(link, title, alt_text)' and I can almost guess that's the one I need to configure
SCHAAP137 has quit [Ping timeout: 248 seconds]
Deele has joined #ruby
<Stalkr_> Would it be done using something like content_tag (I use Rails)?
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<RedPunch> jhass, When I try 'host production.s3.rubygems.org' as mentioned here - http://help.rubygems.org/discussions/problems/469-unable-to-install-gems-because-of-dns-issue. It looks like it resolves
bmurt has quit []
crudson has quit [Quit: q term]
kaihara has quit [Ping timeout: 260 seconds]
banister has joined #ruby
graft has quit [Ping timeout: 272 seconds]
<jhass> Stalkr_: without looking up: override that method, get the HTML with super, surround it with your div. I'd probably go for straight strings here, in case you later want to externalize that thing you don't have a dependency on ActionView
fflush has quit [Quit: fflush]
thiagovsk has joined #ruby
SCHAAP137 has joined #ruby
<thiagovsk> hey
SCHAAP137 has quit [Excess Flood]
nevans has quit [Ping timeout: 255 seconds]
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Excess Flood]
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Excess Flood]
SCHAAP137 has joined #ruby
fflush has joined #ruby
<jhass> RedPunch: what about ruby -r'open-uri' -e 'open("http://production.s3.rubygems.org", &:read)' ?
jamto11 has joined #ruby
<Stalkr_> jhass: Thanks, I will try your 'super' trick
banister has quit [Client Quit]
mattstratton has joined #ruby
ylluminate` has quit [Ping timeout: 240 seconds]
<RedPunch> That command doesnt print anything
Barrayar has quit [Ping timeout: 255 seconds]
oso96_2000 has quit [Ping timeout: 255 seconds]
<jhass> RedPunch: hm, that's actually a good sign
<RedPunch> Oh ok.
Barrayar has joined #ruby
fredsir has left #ruby [#ruby]
<RedPunch> jhass, What can I try next?
<jhass> I never had such an issue
tier has quit []
Kricir has joined #ruby
<jhass> I'd probably hack up /com/home/users/jdoe/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/remote_fetcher.rb:88 to print what it's trying to resolve
SCHAAP137 has quit [Remote host closed the connection]
freerobby has joined #ruby
<RedPunch> Okay. ty
wildroman2 has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamto11 has quit [Ping timeout: 248 seconds]
<RedPunch> Did you notice though, it says ruby-2.1.2 but the folder structure has 2.1.0!
oso|away has joined #ruby
yokel has quit [Ping timeout: 255 seconds]
oso|away is now known as oso96_2000
yokel has joined #ruby
banister has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
Ankhers has quit [Remote host closed the connection]
xcv has quit [Remote host closed the connection]
<Stalkr_> jhass: It was a good idea, I tried this https://gist.github.com/anonymous/43a32ac85af0bbfde3ac but it only export the image tag
Kricir has quit [Ping timeout: 244 seconds]
<Stalkr_> Not the surrounding span tag unfortunately
banister has quit [Client Quit]
<jhass> RedPunch: that's perfectly normal, the 2.1.0 in the path is the ABI version, not the interpreter version
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> Stalkr_: did you actually set your custom renderer when calling redcarpet?
<Stalkr_> jhass: omg, nevermind, I am stupid
kaspergrubbe has joined #ruby
<RedPunch> jhass, the uri it tries to open is https://rubygems.org/
<Stalkr_> jhass: I forgot, changed it, didn't do anything https://gist.github.com/anonymous/7d8d1850b54ba6464bec
acarpe has joined #ruby
callumacrae has quit [Ping timeout: 255 seconds]
Zenigor has quit [Read error: Connection reset by peer]
<RedPunch> I cannot ping rubygems.org for some reason. But I can visit it in my browser
Zenigor has joined #ruby
<RedPunch> Your one-liner returns back empty for this url too
RaCx has quit [Quit: Computer has gone to sleep.]
<jhass> oh, it seems to block pings
<jhass> really not sure why ruby wouldn't be able to resolv it in that situation if the oneliner can
gregf has quit [Read error: Connection reset by peer]
<jhass> but then I'm not that deep in Rubys DNS implementations
fabrice31 has quit [Ping timeout: 255 seconds]
dideler has quit [Ping timeout: 252 seconds]
yubrew has joined #ruby
Barrayar has quit [Quit: Leaving]
benkay has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
callumacrae has joined #ruby
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<jhass> Stalkr_: not sure, looks fine to me, no time to really debug it atm
djbkd has quit [Remote host closed the connection]
Azure has quit [Quit: My MBP went to sleep.]
acarpe has quit [Quit: acarpe]
tsunamie has quit [Ping timeout: 255 seconds]
acarpe has joined #ruby
<Stalkr_> No proble, appreciate help, will try to look into it
acarpe has quit [Client Quit]
<Stalkr_> problem*
havenwood has joined #ruby
paulfm has quit []
Deele2 has joined #ruby
Deele has quit [Ping timeout: 255 seconds]
zastern has quit [Ping timeout: 255 seconds]
yubrew has quit [Ping timeout: 252 seconds]
terrellt has joined #ruby
tsunamie has joined #ruby
tvw has joined #ruby
sputnik13 has quit [Quit: Textual IRC Client: www.textualapp.com]
cashnguns has quit [Ping timeout: 255 seconds]
Azure has joined #ruby
sputnik13 has joined #ruby
jdj_dk has quit [Remote host closed the connection]
jeekl has quit [Ping timeout: 255 seconds]
banister has joined #ruby
atmosx has joined #ruby
banister has quit [Max SendQ exceeded]
<RedPunch> jhass, what does ur gem sources read?
icarus has quit [Ping timeout: 255 seconds]
Wolland has joined #ruby
aspires has joined #ruby
banister has joined #ruby
<atmosx> morning
<atmosx> err
<atmosx> wtf...
<atmosx> evening
nopc0de has quit [Ping timeout: 255 seconds]
<jhass> RedPunch: https://rubygems.org/
<atmosx> http://prelang.com/ <-- interesting
icarus has joined #ruby
mconnolly has quit [Ping timeout: 272 seconds]
banister has quit [Client Quit]
Deele2 has quit [Ping timeout: 255 seconds]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
wildroman3 has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
fflush has quit [Quit: fflush]
x1337807x has joined #ruby
fflush has joined #ruby
vifino has quit [Ping timeout: 255 seconds]
gigetoo has joined #ruby
x1337807x has quit [Max SendQ exceeded]
SBoolean has quit [Read error: Connection reset by peer]
<Stalkr_> jhass: Figured I had to restart the console for the model changes to load. Any idea why it's not able to find the superclass method? `NoMethodError: super: no superclass method `paragraph' for #<Renderer:0x007f89a1aeb9d8>`
<Stalkr_> I thought it was supposed to be able to find the inherited class' method
newton1 has joined #ruby
wildroman2 has quit [Ping timeout: 244 seconds]
vifino has joined #ruby
nopc0de has joined #ruby
Gadgetoid has quit [Ping timeout: 255 seconds]
Wolland has quit [Ping timeout: 244 seconds]
havenwood has quit [Remote host closed the connection]
robertodecurnex has quit [Read error: Connection reset by peer]
nevans has joined #ruby
fflush has quit [Client Quit]
bradleyprice has quit [Remote host closed the connection]
caveat- has quit [Ping timeout: 252 seconds]
tvw has quit []
bradleyprice has joined #ruby
caveat- has joined #ruby
Gadgetoid has joined #ruby
Deele has joined #ruby
havenwood has joined #ruby
djbkd has joined #ruby
<finisherr> Wow, iteration is unlike anything I’ve ever seen in Ruby
<finisherr> noob shock
<jhass> Stalkr_: hm, it works with the image method though? Just not with paragraph?
<thiagovsk> ruby
<thiagovsk> ruby
<thiagovsk> ruby
<thiagovsk> ooooooooooooooooooooooooohhhhhhhhhhh
fabrice31 has joined #ruby
Takle has quit [Remote host closed the connection]
itsech0 has quit [Read error: Connection reset by peer]
<Stalkr_> jhass: No, image method too. Looks like Redcarpet::Render::HTML doesn't even have the methods defined, so not sure it's even possible to make use of super
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
perlsyntax has joined #ruby
<Stalkr_> Looks like I am going to have to write the tag myself
Morkel has quit [Quit: Morkel]
elaptics`away is now known as elaptics
chrishough has quit [Quit: chrishough]
<jhass> meh, stupid C-ext stuff
dideler has joined #ruby
newUser1234 has joined #ruby
<Stalkr_> Yeah :-/
<Stalkr_> It's a pretty nice parser though, do you know any good alternatives by any chance?
bradleyprice has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
<agent_white> thiagovsk: doyadoyadoyadoya!!
<jhass> didn't look for a while, it works so far for what I use it for
Deele has quit [Ping timeout: 255 seconds]
dik_dak has joined #ruby
shinobi_one has joined #ruby
SilverKey has quit [Quit: Halted.]
<jhass> Stalkr_: they seem to check whether the renderer is from ruby or from C land and call the C functions directly without ever binding them to the Ruby class they create. So yeah, I guess you have to define the whole thing if you override, no super magic
lw has quit [Quit: s]
dangerou_ has quit [Ping timeout: 264 seconds]
keystonelemur has joined #ruby
utkarsh_ has quit [Ping timeout: 255 seconds]
goyox861 has joined #ruby
zorak has joined #ruby
utkarsh_ has joined #ruby
djbkd has quit [Remote host closed the connection]
cmoneylulz has quit [Remote host closed the connection]
iamjarvo has joined #ruby
lemur has quit [Ping timeout: 264 seconds]
crudson has joined #ruby
cmoneylulz has joined #ruby
binaryhat has quit [Ping timeout: 244 seconds]
codeurge has quit [Quit: Sleep.]
blackgoat has quit [Ping timeout: 255 seconds]
ferr_ has joined #ruby
blackgoat has joined #ruby
zegerjan has quit [Ping timeout: 255 seconds]
Takle has joined #ruby
qpok has quit [Ping timeout: 255 seconds]
<Stalkr_> That's an unfortunate, would be nice with super, in case they do more stuff than just a simple img tag. It'll do for now though, thanks for the help
xcv has joined #ruby
qpok has joined #ruby
ldnunes has quit [Quit: Leaving]
ferr has quit [Ping timeout: 252 seconds]
jack_rabbit has joined #ruby
cmoneylulz has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
chrishough has joined #ruby
zastern has joined #ruby
sinkensabe has quit [Remote host closed the connection]
harryk has quit [Ping timeout: 255 seconds]
RaCx has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
harryk has joined #ruby
Zenigor has quit [Remote host closed the connection]
mr_snowf1ake has joined #ruby
Deele has joined #ruby
blackmesa has joined #ruby
freerobby has quit [Quit: Leaving.]
cashnguns has joined #ruby
tommylommykins has quit [Ping timeout: 255 seconds]
tommylommykins has joined #ruby
echevemaster has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
CaptainJet has joined #ruby
binaryhat has joined #ruby
jottr_ has joined #ruby
Atttwww has quit [Ping timeout: 255 seconds]
timonv has joined #ruby
echevemaster has joined #ruby
starkhalo has quit [Quit: WeeChat 1.0-dev]
thiagovsk has quit [Ping timeout: 246 seconds]
fabrice31 has quit [Ping timeout: 248 seconds]
banister has joined #ruby
Atttwww has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
sailias has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Deele has quit [Ping timeout: 255 seconds]
Deele has joined #ruby
fabrice31 has joined #ruby
ferr_ has quit [Quit: Konversation terminated!]
nmokru has quit [Quit: nmokru]
nanoyak has quit [Quit: Computer has gone to sleep.]
olivier_bK has quit [Ping timeout: 240 seconds]
phinfonet has quit [Ping timeout: 255 seconds]
phinfonet has joined #ruby
tvw has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mijicd has quit [Remote host closed the connection]
obs has quit [Quit: Konversation terminated!]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wildroman3 has quit [Remote host closed the connection]
Kricir has joined #ruby
peckermanzzz has quit [Ping timeout: 255 seconds]
banister has joined #ruby
banister has quit [Client Quit]
wildroman2 has joined #ruby
Zebroid has joined #ruby
mehlah has joined #ruby
peckermanzzz has joined #ruby
pasties_ has joined #ruby
pasties has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
yubrew has joined #ruby
isthisreallife has joined #ruby
Zebroid_ has joined #ruby
isthisreallife has left #ruby [#ruby]
stytown has joined #ruby
iamjarvo has joined #ruby
jerius has quit [Ping timeout: 240 seconds]
Kricir has quit [Ping timeout: 260 seconds]
iamjarvo has quit [Client Quit]
Zebroid has quit [Ping timeout: 264 seconds]
sdelmore has quit [Ping timeout: 272 seconds]
mijicd has joined #ruby
sdelmore has joined #ruby
yubrew has quit [Ping timeout: 272 seconds]
<Hanmac> havenwood: did you watched doctorWho again?
m8 has quit [Quit: Sto andando via]
ramfjord has quit [Read error: No route to host]
blueOxigen has joined #ruby
mtu is now known as mut_
bricker`work has quit [Ping timeout: 272 seconds]
marr has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
jack_rabbit has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
arrubin has joined #ruby
jack_rabbit has joined #ruby
hobodave has quit [Ping timeout: 248 seconds]
Wolland has joined #ruby
jdj_dk has joined #ruby
Hanmac has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
railzFor_ has quit []
blueOxigen has quit [Ping timeout: 272 seconds]
Magus` has joined #ruby
Zesty has joined #ruby
mikesplain has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Magus`> hi, I'm trying to install the compass 1.0 alpha, which requires ffi-1.9.3, but it is erroring when building, and I can't figure out why: Configuring libffi /usr/lib/ruby/gems/1.8/gems/ffi-1.9.3/ext/ffi_c/libffi/configure: line 550: 0: Bad file descriptor
<Magus`> if I cd into that folder, I can ./configure and it works fine
alexju has quit [Remote host closed the connection]
ndrei has joined #ruby
ndrei_ has joined #ruby
keystonelemur has quit [Remote host closed the connection]
jheg has quit [Read error: Connection reset by peer]
Wolland has quit [Ping timeout: 260 seconds]
jheg has joined #ruby
stytown has quit [Quit: stytown]
Magus` has quit [Disconnected by services]
Magus` has joined #ruby
jdj_dk has quit [Ping timeout: 260 seconds]
ramfjord has quit [Quit: leaving]
St_Marx has joined #ruby
SilverKey has joined #ruby
Deele has quit [Ping timeout: 255 seconds]
nmokru has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
Deele has joined #ruby
<AntelopeSalad> what do you guys think is more idiomatic ruby? https://gist.github.com/AntelopeSalad/534c37f216da9e1a22cb
<havenwood> Magus`: Install libffi-devel or whatever the ffi package is for your os/distro.
SilverKey has quit [Client Quit]
heftig has joined #ruby
wildroman2 has quit [Ping timeout: 272 seconds]
sailias has quit [Quit: Leaving.]
Mon_Ouie has quit [Ping timeout: 272 seconds]
mrmargolis has quit [Remote host closed the connection]
<Magus`> havenwood: no go, same error
jackneill has quit [Ping timeout: 252 seconds]
<havenwood> AntelopeSalad: Not #split. Ugly to have the empty string match as first element.
<havenwood> Magus`: Hem..
alec-c4_ has quit [Remote host closed the connection]
testcore has joined #ruby
alec-c4 has joined #ruby
icarus has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
Stalkr_ has quit [Quit: Leaving...]
<AntelopeSalad> havenwood: so you would say the #sub approach?
Deele has quit [Ping timeout: 255 seconds]
alec-c4 has quit [Ping timeout: 272 seconds]
<havenwood> AntelopeSalad: yup, since there's no #lchomp
riotjones has joined #ruby
Zebroid has joined #ruby
havenwood has quit []
wildroman2 has joined #ruby
momomomomo has quit [Quit: momomomomo]
mjsmith2 has joined #ruby
nateberkopec has quit [Quit: Leaving...]
claymore has quit [Ping timeout: 264 seconds]
riotjone_ has quit [Ping timeout: 264 seconds]
andrewjanssen has quit [Quit: Linkinus - http://linkinus.com]
jack_rabbit has quit [Ping timeout: 255 seconds]
Zebroid_ has quit [Ping timeout: 264 seconds]
Deele has joined #ruby
Zesty has quit [Quit: Linkinus - http://linkinus.com]
Takle has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
mjsmith2 has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
nmokru has quit [Quit: nmokru]
binaryhat has quit [Remote host closed the connection]
binaryhat has joined #ruby
Deele has quit [Ping timeout: 255 seconds]
deric_skibotn has quit [Ping timeout: 272 seconds]
geggam has quit [Remote host closed the connection]
tsunamie has quit [Ping timeout: 255 seconds]
kirun has quit [Quit: Client exiting]
newUser1234 has quit [Remote host closed the connection]
Takle has quit [Read error: Connection reset by peer]
tsunamie has joined #ruby
Takle has joined #ruby
havenwood has joined #ruby
<shevy> AntelopeSalad I don't quite like either of these
starkhalo has joined #ruby
Deele has joined #ruby
<AntelopeSalad> shevy: what approach would you take?
binaryhat has quit [Remote host closed the connection]
jobewan has quit [Quit: Leaving]
binaryhat has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tsunamie has quit [Excess Flood]
Hanmac has joined #ruby
tsunamie has joined #ruby
bricker`LA has joined #ruby
Hanmac1 has quit [Ping timeout: 260 seconds]
kaiserpathos has quit []
deric_skibotn has joined #ruby
jamto11 has joined #ruby
goyox861 has quit [Ping timeout: 248 seconds]
rebelshrug has quit [Remote host closed the connection]
yubrew has joined #ruby
enebo has quit [Quit: enebo]
banister has joined #ruby
banister has quit [Client Quit]
chrishough has quit [Quit: chrishough]
<shevy> AntelopeSalad I dunno; I tend to use Dir[] exclusively, and I work on methods, so our code would probably look different; I also tend to use File.dirname and File.basename
chrishough has joined #ruby
fabrice31_ has joined #ruby
<shevy> AntelopeSalad do you actually need File.join ?
<shevy> I found that on windows my code written on linux works fine as well with the same / path
vadzimt has quit [Quit: Textual IRC Client: www.textualapp.com]
<finisherr> I know this sounds odd, but is there some sort of formal ruby documentation that gets right to the rules of the language? Reading a book is great, but sometimes I just need to get down to the bottom of something specific.
fabrice31_ has quit [Remote host closed the connection]
<Magus`> like http://ruby-doc.org/ ?
fabrice31_ has joined #ruby
<shevy> finisherr documentation is an area where ruby is still rather awful
aspires has quit []
<shevy> take keywords for example
fabrice31 has quit [Ping timeout: 248 seconds]
vadzimt has joined #ruby
<shevy> people had to carry them into a format like: http://ruby-doc.org/docs/keywords/1.9/
Kricir has joined #ruby
<finisherr> Yeah, all of those lead to tutorials
<finisherr> I just need documentation
jamto11 has quit [Ping timeout: 240 seconds]
nmokru has joined #ruby
Wolland has joined #ruby
<AntelopeSalad> shevy: yes i do need it
<shevy> but it's a link solely for 1.9; not that anything has changed I believe, but it's weird that there is no general link at keywords
yubrew has quit [Ping timeout: 264 seconds]
<finisherr> oooo, just got the okay to go home early for the holiday
<finisherr> i’m outta hear
<shevy> like how http://ruby-doc.org/docs/keywords/ has just a link to 1.9
<finisherr> here*
Deele has quit [Ping timeout: 255 seconds]
<havenwood> finisherr: Ruby has a formal ISO standard but it isn't a fun read.
<shevy> finisherr class String is documented here: http://www.ruby-doc.org/core-2.1.2/String.html
<havenwood> finisherr: you can download the draft release for free: https://www.ipa.go.jp/osc/english/ruby/ruby_draft_specification_agreement.html
<Magus`> havenwood: is it possible to make a gem install not re-expand things and use the files on disk as-is?
<Magus`> regarding the earlier ffi issue
<havenwood> Magus`: re-expand?
finisherr has quit [Quit: finisherr]
<Magus`> if I edit the libffi configure file, then run the gem install, it is replaced with the stock one
<havenwood> Magus`: Not sure I understand. You can install a clean version of the gem: gem pristine gem_name
Zebroid_ has joined #ruby
<havenwood> ahh, i see - yeah, you can: --config-file FILE
sputnik13 has joined #ruby
GriffinHeart has joined #ruby
fabrice31_ has quit [Ping timeout: 272 seconds]
<Magus`> I'm not referring to a gem config file, but the c/make style configure file inside in libffi
chipotle has quit [Quit: cya]
<havenwood> aha
nanoyak has quit [Quit: Computer has gone to sleep.]
chipotle has joined #ruby
Zebroid_ has quit [Read error: Connection reset by peer]
Zebroid_ has joined #ruby
<havenwood> Magus`: So it's not linking against your custom ffi?
<Magus`> right, its using an internal packaged ffi
<Magus`> in the ffi gem
gr33n7007h has joined #ruby
<Magus`> and I'd be all for fixing that if its just a config issue on the system
aspires has joined #ruby
Zebroid has quit [Ping timeout: 264 seconds]
s3ri0us has quit [Quit: Leaving...]
GriffinHeart has quit [Ping timeout: 244 seconds]
<shevy> you have a powerful arcane nickname
<shevy> dispel the errors that have shaped up into an evil beast
Deele has joined #ruby
garndt has joined #ruby
chipotle has quit [Ping timeout: 240 seconds]
jeekl has joined #ruby
<havenwood> Magus`: Not sure what's going on. I've not really used ffi.
<havenwood> that is a very unhelpful error message though >.>
jottr_ has quit [Ping timeout: 255 seconds]
Xeago has quit [Remote host closed the connection]
<Magus`> havenwood: was just looking at that as well :)
<Magus`> already installed libffi-devel and no help
danijoo_ has quit [Remote host closed the connection]
<Magus`> I still don't understand why I can build it manually, but the gem install fails
Kricir has quit [Ping timeout: 255 seconds]
lw has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
lw has quit [Max SendQ exceeded]
Zebroid_ has quit [Remote host closed the connection]
lw has joined #ruby
cashnguns has quit [Ping timeout: 244 seconds]
x1337807x has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dik_dak has quit [Quit: Leaving]
jhass is now known as jhass|off
freerobby has joined #ruby
ascarter has joined #ruby
Zebroid has joined #ruby
jdj_dk has joined #ruby
newton1 has left #ruby ["WeeChat 0.4.3"]
medibuntu has joined #ruby
codeurge has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
ndrei_ has quit [Ping timeout: 244 seconds]
moritzs has joined #ruby
jdj_dk has quit [Ping timeout: 252 seconds]
moritzs has quit [Max SendQ exceeded]
Zebroid has quit [Ping timeout: 272 seconds]
ffranz has quit [Quit: Leaving]
troyready has quit [Ping timeout: 255 seconds]
Wolland has quit [Remote host closed the connection]
kireevco has quit [Quit: Leaving.]
johnmolina has joined #ruby
jamto11 has joined #ruby
Shidash has joined #ruby
phoo1234567 has quit [Remote host closed the connection]
tjr9898 has quit [Remote host closed the connection]
nateberkopec has joined #ruby
fabrice31 has joined #ruby
duallain has quit [Read error: Connection reset by peer]
jamto11_ has joined #ruby
starkhalo has quit [Ping timeout: 264 seconds]
AndChat|154496 has joined #ruby
havenwood has quit []
Doppp_ has quit [Ping timeout: 240 seconds]
nmokru has quit [Quit: nmokru]
freerobby has quit [Quit: Leaving.]
snath has quit [Ping timeout: 244 seconds]
devdazed has quit [Read error: Connection reset by peer]
JoshGlzBrk has joined #ruby
mg^^ has quit [Read error: Connection reset by peer]
Guest81616 has quit [Read error: Connection reset by peer]
medibuntu has quit [Ping timeout: 255 seconds]
jamto11 has quit [Ping timeout: 252 seconds]
EvanR_ has joined #ruby
lw has quit [Quit: s]
mg^^ has joined #ruby
freerobby has joined #ruby
nmokru has joined #ruby
Guest1163 has quit [Ping timeout: 245 seconds]
jaimef has quit [Excess Flood]
testcore has quit [Ping timeout: 264 seconds]
DrCode has quit [Ping timeout: 264 seconds]
garndt has left #ruby [#ruby]
iamayam has quit [Ping timeout: 245 seconds]
SirCmpwn has quit [Ping timeout: 245 seconds]
rtlong has quit [Ping timeout: 272 seconds]
exgf has quit [Write error: Broken pipe]
devdazed has joined #ruby
mgomezch has quit [Quit: No Ping reply in 180 seconds.]
jaimef has joined #ruby
exgf has joined #ruby
hl has quit [Ping timeout: 245 seconds]
flagg0204 has quit [Ping timeout: 245 seconds]
medibuntu has joined #ruby
mgomezch has joined #ruby
atmosx has quit [Ping timeout: 264 seconds]
DrCode has joined #ruby
naterubin has quit [Ping timeout: 245 seconds]
St_Marx has quit [Ping timeout: 264 seconds]
wildroman2 has quit [Read error: Connection reset by peer]
freerobby has quit [Client Quit]
peterhu has quit [Ping timeout: 245 seconds]
yeltzooo has quit [Ping timeout: 245 seconds]
segv has quit [Ping timeout: 245 seconds]
ptierno has quit [Ping timeout: 245 seconds]
wildroman2 has joined #ruby
jtz has quit [Ping timeout: 245 seconds]
oddalot has quit [Ping timeout: 245 seconds]
Slavox|AFK has joined #ruby
peterhu has joined #ruby
ptierno has joined #ruby
flagg0204 has joined #ruby
testcore has joined #ruby
iamayam has joined #ruby
AndChat|154496 has quit [Ping timeout: 240 seconds]
SirCmpwn has joined #ruby
yeltzooo has joined #ruby
naterubin has joined #ruby
spider-mario has quit [Remote host closed the connection]
rtlong has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
atmosx has joined #ruby
segv has joined #ruby
St_Marx has joined #ruby
jtz has joined #ruby
oddalot has joined #ruby
timonv has joined #ruby
jamto11 has joined #ruby
hl has joined #ruby
fluve has joined #ruby
sarkis has joined #ruby
<sarkis> hey all, trying to figure out what is going on with this UnknownFormat error: https://gist.github.com/sarkis/ebedfd33617e4b4a08a5
little_fu has joined #ruby
<sarkis> it's complaining about the respond_with line which is strange...
AndChat|154496 has joined #ruby
little_f_ has joined #ruby
jottr_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AndChat|154496 has quit [Client Quit]
<sarkis> i noticed on the first line there its doing format=html, i guess that might be the issue since the deployments_controller is set with respond_to :json
mrunknown has joined #ruby
jamto11_ has quit [Ping timeout: 252 seconds]
<halfdan> heya
fabrice31 has quit [Remote host closed the connection]
<halfdan> why does '/forum' =~ /^\/forum/ not match?
RaCx_ has joined #ruby
fabrice31 has joined #ruby
RaCx has quit [Ping timeout: 252 seconds]
jamto11_ has joined #ruby
RaCx_ is now known as RaCx
himself_ has joined #ruby
timonv has quit [Ping timeout: 248 seconds]
medibuntu has quit [Ping timeout: 248 seconds]
jamto11 has quit [Ping timeout: 264 seconds]
little_fu has quit [Ping timeout: 255 seconds]
jottr_ has quit [Ping timeout: 264 seconds]
<sarkis> halfdan
<sarkis> try this...
<sarkis> '\/forum' =~ /^\/forum/
<halfdan> that is not what I am asking
fabrice31 has quit [Ping timeout: 240 seconds]
<halfdan> I need to escape the forward slash
ramfjord has joined #ruby
<halfdan> and /^\/forum/.match '/forum' gives a match
<halfdan> I am asking why this isn’t true vice versa
SilverKey has joined #ruby
<gr33n7007h> halfdan, it does
Zebroid has joined #ruby
<gr33n7007h> if it didn't match it would return nil
Lewix has joined #ruby
iswell has joined #ruby
lw has joined #ruby
reset has joined #ruby
havenwood has joined #ruby
<halfdan> gr33n7007h: ah so it does return the position of the match?
<gr33n7007h> yes
<halfdan> ok, thank you
<gr33n7007h> np
RaCx has quit [Quit: Computer has gone to sleep.]
little_fu has joined #ruby
<shevy> match(str) ? matchdata or nil
little___ has joined #ruby
replay has joined #ruby
nerdy has joined #ruby
earthquake has quit [Quit: earthquake]
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
little_f_ has quit [Ping timeout: 260 seconds]
Zebroid_ has joined #ruby
Zebroid has quit [Read error: Connection reset by peer]
tacos1de_ has joined #ruby
x1337807x has joined #ruby
tacos1de has quit [Remote host closed the connection]
little_fu has quit [Ping timeout: 264 seconds]
Majost_ has joined #ruby
jheg has quit [Quit: jheg]
larsam has left #ruby [#ruby]
kenneth has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
ephemerian has left #ruby [#ruby]
wildroman2 has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
wildroman2 has joined #ruby
charliesome has joined #ruby
Zebroid_ has quit [Ping timeout: 248 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamto11_ has quit [Remote host closed the connection]
codeurge has quit [Quit: Sleep.]
earthquake has joined #ruby
cashnguns has joined #ruby
iamjarvo has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adac has quit [Ping timeout: 264 seconds]
mijicd has quit [Remote host closed the connection]
<Majost_> I have a hash of hashes which I am trying to iterate through
<Majost_> and based on one the the key/values do stuff
<Majost_> I have a sample gist here: https://gist.github.com/rhass-r7/383382f835615c9cecfe
Hanmac1 has joined #ruby
<Majost_> I guess my question is, does statement like "foo.each do |bar|" ; where foo contains a hash change the type somehow?
<Majost_> or is each changing the type to enum?
ramfjord has quit [Quit: leaving]
mehlah has quit [Quit: Leaving...]
postmodern has joined #ruby
<Majost_> follow up is, should I be using each_key?
Hanmac has quit [Ping timeout: 248 seconds]
snath has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Magus`> Majost_: from fiddling around in irb, it looks like |repo| is putting an array of [key, value] in repo, so your hash is actually repo[1]
<Magus`> try |name, repo| then repo.fetch(:enable)
<Magus`> that's why puts repo looks fine, its because its printing the array of key/value each time
<Magus`> irb(main):036:0> b.each do |r, h| ; puts h.fetch(:enable) ; end
<Magus`> true
<Magus`> false
mikecmpbll has joined #ruby
mgberlin has joined #ruby
jfran has joined #ruby
<Majost_> ahh
<Majost_> thanks
<Majost_> =)
djbkd has quit [Remote host closed the connection]
stytown has joined #ruby
Kricir has joined #ruby
lw has quit [Quit: s]
little___ has quit [Remote host closed the connection]
mgberlin has quit [Ping timeout: 272 seconds]
jamto11 has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
himself_ has quit [Remote host closed the connection]
gregf has joined #ruby
tcstar has quit [Remote host closed the connection]
senayar_ has quit [Remote host closed the connection]
<benzrf> use pry, not irb!
<benzrf> this message funded by banisterfiend
senayar has joined #ruby
fabrice31 has quit [Ping timeout: 248 seconds]
kaspergrubbe has quit [Remote host closed the connection]
Shidash has quit [Ping timeout: 240 seconds]
<Majost_> heh
<Majost_> I haven't had luck getting tab completion working in pry
havenwood has quit [Ping timeout: 264 seconds]
<Majost_> its probably something remarkably easy to fix though
<benzrf> screw tab completion!
<benzrf> use ls and ?
<benzrf> also syntax hiliting and indentation
<benzrf> and cd
shinobi_one has quit [Quit: shinobi_one]