John_Ivan has quit [Read error: Connection reset by peer]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pastorin_ has quit [Remote host closed the connection]
cschneid has quit [Remote host closed the connection]
cschneid has joined #ruby
<nchambers>
when writing a commandline app in ruby, is it common to write a unit test for the entry point file in addition to the actual source files?
bigblind has joined #ruby
cschneid has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
atchoum has quit [Ping timeout: 248 seconds]
ResidentBiscuit has quit [Remote host closed the connection]
<drocsid>
nchambers: not sure about ruby but it sounds like a good idea to me... Not quite sure what you mean by entry point file but assume it's like the launcher class... but I'm a ruby novice.
<drocsid>
nchambers: I would test that class if I was a test driven developer or if using it in production. Good to test all the things...
guille-moe has joined #ruby
<elomatreb>
nchambers: It's of course never a bad idea to test something, but entry files are often left untested because it would incur significant overhead, since they have to have side effects by design
<drocsid>
One thing I understand about TDD is the beleif that tests should be written first, then code written and not the other way around...
<nchambers>
thanks guys
workmad3 has quit [Ping timeout: 256 seconds]
<drocsid>
To be honest I don't always write TDD when writing scripts, etc. But when I do I feel more confident about what I'm doing...
drocsid has quit [Quit: brb...]
Psybur_ has quit [Ping timeout: 240 seconds]
lytol has quit [Remote host closed the connection]
lytol has joined #ruby
cagomez has joined #ruby
goatish has quit [Quit: Hibernating]
shinnya has quit [Ping timeout: 256 seconds]
cdg has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
goatish has joined #ruby
guacamole has joined #ruby
linduxed has quit [Ping timeout: 248 seconds]
cagomez has quit [Read error: Connection reset by peer]
cdg_ has quit [Ping timeout: 260 seconds]
cagomez has joined #ruby
cdg_ has joined #ruby
skweek has quit [Ping timeout: 248 seconds]
cdg has quit [Ping timeout: 248 seconds]
milardovich has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has quit [Read error: Connection reset by peer]
hahuang61 has joined #ruby
cagomez has joined #ruby
cschneid has joined #ruby
linduxed has joined #ruby
cdg_ has quit [Ping timeout: 256 seconds]
marxarelli is now known as marxarelli|afk
marxarelli|afk is now known as marxarelli
milardovich has quit [Ping timeout: 248 seconds]
milardovich has joined #ruby
cschneid has quit [Ping timeout: 260 seconds]
vichib has joined #ruby
jeffreylevesque has quit [Remote host closed the connection]
jeffreylevesque has joined #ruby
randomstrangerb has quit [Ping timeout: 248 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
govg has quit [Ping timeout: 260 seconds]
bigblind has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has quit [Client Quit]
bigblind has quit [Ping timeout: 252 seconds]
raul782 has joined #ruby
deadnull has joined #ruby
cdg has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
bigblind has joined #ruby
deadnull has quit [Client Quit]
raul782 has quit [Ping timeout: 265 seconds]
cdg has quit [Ping timeout: 256 seconds]
bigblind has quit [Ping timeout: 256 seconds]
cadillac_ has joined #ruby
cagomez has quit [Remote host closed the connection]
exchgr has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
raul782 has joined #ruby
cagomez has quit [Ping timeout: 264 seconds]
exchgr has joined #ruby
raul782 has quit [Client Quit]
cagomez has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
bigblind has joined #ruby
zautomata1 has joined #ruby
mtkd has joined #ruby
bigblind has quit [Read error: Connection reset by peer]
zautomata has quit [Ping timeout: 268 seconds]
cagomez has quit [Ping timeout: 248 seconds]
vichib has quit [Remote host closed the connection]
rwb has joined #ruby
linduxed has quit [Ping timeout: 256 seconds]
linduxed has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
<raynold>
Ahh it's a wonderful day
pastorinni has joined #ruby
eckhardt has joined #ruby
bigblind has joined #ruby
pastorinni has quit [Remote host closed the connection]
alfiemax has joined #ruby
ferox has quit [Remote host closed the connection]
chmurifree has quit [Ping timeout: 255 seconds]
guille-moe has quit [Ping timeout: 240 seconds]
chmurifree has joined #ruby
bigblind has quit [Ping timeout: 248 seconds]
alfiemax has quit [Ping timeout: 256 seconds]
rikai_ is now known as rikai
marr has quit [Ping timeout: 248 seconds]
snath has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drewmcmillan has joined #ruby
<ramfjord>
Any good news to share with us raynold ?
zautomata1 has quit [Quit: WeeChat 1.9.1]
zautomata has joined #ruby
bigblind has joined #ruby
zautomata has quit [Changing host]
zautomata has joined #ruby
hogetaro has quit [Quit: Leaving...]
cschneid has joined #ruby
Dimik has quit [Ping timeout: 268 seconds]
quobo has quit [Quit: Connection closed for inactivity]
bigblind has quit [Ping timeout: 248 seconds]
cagomez has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
jnyw has joined #ruby
arescorpio has joined #ruby
pastorinni has joined #ruby
pastorinni has quit [Remote host closed the connection]
marxarelli is now known as marxarelli|afk
workmad3 has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
kies has quit [Ping timeout: 240 seconds]
bigblind has joined #ruby
hahuang61 has quit [Quit: WeeChat 2.0.1]
SynSynack has quit [Quit: Не разучиться мечтать... любить...]
michael_mbp has quit [Ping timeout: 240 seconds]
bigblind has quit [Ping timeout: 256 seconds]
dogweather has quit [Ping timeout: 276 seconds]
cagomez has joined #ruby
cagomez has quit [Ping timeout: 256 seconds]
cdg has joined #ruby
cschneid has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 240 seconds]
arkinor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has joined #ruby
michael_mbp has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bigblind has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bigblind has quit [Ping timeout: 268 seconds]
cadillac_ has quit [Quit: I quit]
mjuszczak has joined #ruby
cadillac_ has joined #ruby
hfp_work has joined #ruby
hfp_work has quit [Client Quit]
cschneid has joined #ruby
hfp_work has joined #ruby
bigblind has joined #ruby
<raynold>
hehe :)
mjuszczak has quit []
<nchambers>
can someone explain the bevahior I'm seeing here? http://ix.io/Fl2 why does the first one return nil, but the second one returns 0?
<havenwood>
nchambers: The first one didn't match and the second one matched at position 0.
<havenwood>
nchambers: What version of Ruby are you on?
<havenwood>
nchambers: #match? is 2.4+
<nchambers>
2.4.1
<nchambers>
so I'm all good
<nchambers>
much appreciated, thank you!
My_Hearing has joined #ruby
<havenwood>
no prob
<havenwood>
I meant, if you prefer##: regex.match? str
Mon_Ouie has quit [Ping timeout: 240 seconds]
<nchambers>
neat
<craysiii>
How does rspec #respond_to determine which methods there are? I've skimmed the source but haven't found anything telling yet. I ask because I have monkey-patched a method onto Numeric and it's not passing a respond_to expectation. https://gist.github.com/craysiii/9b6adaf1ff713af9fd0eabff6fc11c55
jameser has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
mtkd has joined #ruby
bigblind has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
bigblind has quit [Ping timeout: 240 seconds]
bigblind has joined #ruby
bigblind has quit [Read error: Connection reset by peer]
goatish has quit [Quit: Hibernating]
dogweather has joined #ruby
SeepingN has joined #ruby
osvico has joined #ruby
dogweather has quit [Ping timeout: 268 seconds]
konsolebox has quit [Ping timeout: 240 seconds]
fcser__ has joined #ruby
fcser has quit [Ping timeout: 240 seconds]
fcser__ is now known as fcser
konsolebox has joined #ruby
dogweather has joined #ruby
govg has joined #ruby
pastorinni has joined #ruby
bigblind has joined #ruby
bigblind has quit [Ping timeout: 260 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
ramfjord has joined #ruby
trautwein has quit [Quit: ZNC 1.6.5 - http://znc.in]
trautwein has joined #ruby
bigblind has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
<craysiii>
Oh I just figured it out. Oops.
reaVer has quit [Remote host closed the connection]
reaVer has joined #ruby
pastorin_ has joined #ruby
bigblind has quit [Ping timeout: 256 seconds]
pastorinni has quit [Read error: Connection reset by peer]
cdg has quit [Ping timeout: 260 seconds]
pastorin_ has quit [Read error: Connection reset by peer]
pastorinni has joined #ruby
eckhardt has joined #ruby
rwb has quit [Remote host closed the connection]
rwb has joined #ruby
barhum2013 has joined #ruby
barhum2013 has quit [Client Quit]
barhum2013 has joined #ruby
barhum2013 has left #ruby [#ruby]
bigblind has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 260 seconds]
bigblind has quit [Ping timeout: 248 seconds]
wilbert has joined #ruby
wilbert_ has joined #ruby
wilbert has quit [Ping timeout: 260 seconds]
bigblind has joined #ruby
skweek has joined #ruby
ramfjord has joined #ruby
alfiemax has joined #ruby
bigblind has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
alfiemax has quit [Read error: Connection reset by peer]
kies has joined #ruby
yn^ has joined #ruby
yn^ has quit [Max SendQ exceeded]
wilbert has joined #ruby
arescorpio has quit [Excess Flood]
shah^ has joined #ruby
shah^ has quit [Max SendQ exceeded]
wilbert_ has quit [Ping timeout: 260 seconds]
darkhanb has joined #ruby
\13k has quit [Quit: good night and good luck]
\13k has joined #ruby
\13k has quit [Quit: good night and good luck]
bigblind has joined #ruby
\13k has joined #ruby
locsmif has quit [Quit: leaving]
bigblind has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
troys has quit [Ping timeout: 256 seconds]
pastorinni has quit [Remote host closed the connection]
<nchambers>
does EM::HttpRequest do https at all? or only http?
dogweather has quit []
alfiemax has quit [Remote host closed the connection]
bigblind has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
wilbert has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
bigblind has quit [Ping timeout: 260 seconds]
milardovich has quit [Ping timeout: 264 seconds]
Dimik has joined #ruby
bigblind has joined #ruby
konsolebox has quit [Ping timeout: 276 seconds]
konsolebox has joined #ruby
skweek has joined #ruby
anisha has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Liothen has quit [Remote host closed the connection]
<konos5_>
Hi, in irb `respond_to?(:define_method, true)` returns true. However since `:define_method` is defined in `Module`, `:define_method` should only be available within a class definition and not in main. Why?
jottr has joined #ruby
bigblind has joined #ruby
Beams has quit [Ping timeout: 240 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arkinor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
desperek has joined #ruby
<dminuoso>
>> self.singleton_class.methods
<ruby[bot]>
dminuoso: # => [:new, :allocate, :superclass, :<=>, :module_exec, :class_exec, :<=, :>=, :==, :===, :include?, :inc ...check link for more (https://eval.in/950542)
clemens3 has joined #ruby
<dminuoso>
uhh
bigblind has quit [Ping timeout: 260 seconds]
<dminuoso>
Okay, now that is surprising.
<dminuoso>
Ahh.
<dminuoso>
>> private_methods
<ruby[bot]>
dminuoso: # => [:include, :using, :public, :private, :define_method, :DelegateClass, :sprintf, :format, :Integer, : ...check link for more (https://eval.in/950548)
<dminuoso>
konos5_: The singleton class of "top self" is initialized during VM boot.
<konos5_>
I lost you...
<dminuoso>
konos5_: Any method must have a receiver.
<dminuoso>
konos5_: The "default receiver" is always "self". In top level scope (outside any class/function) that self is a special object called "top self" (which is usually presented as "main")
<dminuoso>
konos5_: If you do not specify a receiver, it defaults to `self` whatever that is in your context. So if you write "define_method", it's kind of equivalent to: self.send(:define_method)
<konos5_>
right
<dminuoso>
And that "top self" object - like any object - has a singleton class. That singleton class receives some methods when the ruby VM boots up.
bigblind has joined #ruby
<konos5_>
since main is an instance of Object it should get Objects' instance methods
<dminuoso>
Yup, those too.
<dminuoso>
But first in the ancestory is its own singleton class.
<Cork>
dminuoso: i'm using that; but how do i get a pkcs8 pem?
yohji has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
aufi_ has joined #ruby
aufi has quit [Ping timeout: 240 seconds]
Beams_ has quit [Quit: .]
<dminuoso>
Cork: uh? do you want to simply read one? what encoding?
jeffreylevesque has quit [Ping timeout: 240 seconds]
<Cork>
dminuoso: OpenSSL::PKey::RSA.new().to_pem generates a sslesy pem not a pkcs8 key
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Beams has joined #ruby
synthroid has joined #ruby
qba73_ has quit [Ping timeout: 268 seconds]
<Cork>
*ssleay
statelesscode has quit [Ping timeout: 256 seconds]
cadillac_ has quit [Ping timeout: 264 seconds]
Beams has quit [Quit: .]
cadillac_ has joined #ruby
schneide_ has quit [Remote host closed the connection]
cagomez has joined #ruby
marr has quit [Ping timeout: 264 seconds]
white_lilies has joined #ruby
rwb has quit [Ping timeout: 248 seconds]
schneide_ has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby
white_lilies has quit [Ping timeout: 264 seconds]
tomphp has joined #ruby
Beams has joined #ruby
RougeR has joined #ruby
govg has quit [Ping timeout: 268 seconds]
qba73 has joined #ruby
oetjenj has joined #ruby
govg has joined #ruby
govg is now known as Guest74213
mtkd has quit [Ping timeout: 260 seconds]
<Bish>
slightly offtopic: if i want a customer to create a subdomain for me
<Bish>
how do i make sure, that another customer doesn't add the subdomain, too, and can use it
<Bish>
(i can't make a unique constraint on that, because sharding)
mtkd has joined #ruby
Guest74213 has quit [Ping timeout: 240 seconds]
<Bish>
a.e. user wants to use tracking.somedomain.com to point to my server.. adds in in my software, and my software tests if that A/CNAME entry is made, before he can use it
<Bish>
then another customer comes and adds tracking.somedomain.com .. points it to my server, and will get it, too
antoniobeyah has quit [Quit: Connection closed for inactivity]
jeffreylevesque has joined #ruby
konos5_ has quit [Quit: Connection closed for inactivity]
konsolebox has quit [Ping timeout: 264 seconds]
dionysus69 has quit [Ping timeout: 256 seconds]
<dminuoso>
Bish: make a unique constraint.
konsolebox has joined #ruby
<dminuoso>
Bish: One way to tackle this could be to employ the saga pattern.
jeffreylevesque_ has joined #ruby
<Bish>
as i said, i cannot because broken sharding :(
<dminuoso>
saga pattern.
<Bish>
*googles*
eckhardt has joined #ruby
<dminuoso>
Or add a singy registry server
<dminuoso>
*single
<Bish>
oh geez
cadillac_ has quit [Read error: Connection reset by peer]
<Bish>
once again i would prefer the sign method ^^
hanmac has quit [Ping timeout: 240 seconds]
<Bish>
just let the user make a useless entry on the domain
<Bish>
which shows its his
<Bish>
hers
<Bish>
whatever
jeffreylevesque has quit [Ping timeout: 248 seconds]
<canton7>
Bish, is this more a question of making sure that people don't register a subdomain which doesn't belong to them?
nowhereman_ has joined #ruby
<Bish>
canton7: in my app, not on dns level, yes
<dminuoso>
Bish: You either need to maintain a single registry to avoid collisions, or you need a distributed way of committing a slow transaction with proper rollback semantics (which sagas give you)
<canton7>
most people do that by requiring that the person creates a TXT record with a magic value you supply
milardovich has quit [Remote host closed the connection]
<Bish>
canton7: yeah something like that, but what magic value do i give it?
<dminuoso>
Ohh I misunderstood
<Bish>
dminuoso: saga looks like "kanonen auf spatzen"
<canton7>
Bish, create a random number, then base64/32/whatever-encode it.
<Bish>
then i need to save it :(
<dminuoso>
Bish: I think I may have misunderstood your setup.
<canton7>
or just pick random letters out of a set
<Bish>
dminuoso: my bad, i didn't explain it
<Bish>
canton7: could you elaborate?
milardovich has joined #ruby
<dminuoso>
Bish: Im curious now. Who maintains the nameservers?
<canton7>
Bish, so user signs up, provides their subdomain. You say "OK that's great, I need you to create a txt record with <this value>. User does that, clicks "check now". You check for the presence of that TXT record with that value. If it's found, all good, the user controls that subdomain
<Bish>
dminuoso: the customers. i have a tracking server, which customers need to add on their page
<Bish>
and if people want "bishcompany" in their code.. their can add their own cname/a entry
<Bish>
having a nickname like that really baits
nowhere_man has quit [Ping timeout: 260 seconds]
<Bish>
s/their/they
<Bish>
s/want/don't want
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso>
Bish: Ahh that explains it. I thought you were somehow doing some poor mans DNS reselling.
<Bish>
and i only check if that cname entry has been made, not if guy actually owns that
<Bish>
so company a could use companies b domain.. if he just enters it
<dminuoso>
Bish: You cant test for identity anyway. But you can check for authorization by handing them a token that they need to present to you.
<Bish>
hm, yah
bigblind has joined #ruby
<Bish>
but same problem as few days ago
<Bish>
can i do that without writing stuff into my db?
tomphp has joined #ruby
<Bish>
like.. signing customer_id+domain, and save that result?
<dminuoso>
Bish: Probably not even that.
<dminuoso>
Bish: If it's asymmetrically signed you dont even need to store it.
<Bish>
so i can do that?
<Bish>
wohoo
<dminuoso>
Or symmetrically even.
Burgestrand has joined #ruby
<Bish>
what cryptostuff should i use for that?
<dminuoso>
hmac or something
<dminuoso>
Or actually since its public knowledge it should be asymmetric. :)
<dminuoso>
Or.. no I have no idea. I am sleep deprived.
<dminuoso>
Good night.
white_lilies has quit [Ping timeout: 260 seconds]
<Bish>
i thought you were german
<Bish>
sleep well, thanks for the help
cadillac_ has joined #ruby
tomphp has quit [Client Quit]
cdg has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
bigblind has quit [Ping timeout: 256 seconds]
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Burgestrand>
Bish for what? I came in late
<Burgestrand>
well, doesn't matter I guess, something something crypto something something, then use libsodium: https://github.com/crypto-rb/rbnacl
hanmac has joined #ruby
ta_ has quit [Ping timeout: 256 seconds]
<Bish>
Burgestrand: why not openssl
cadillac_ has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
nicesignal has quit [Remote host closed the connection]
<Burgestrand>
Bish for most people the primitives in openssl are too easy to use in an incorrect way
nicesignal has joined #ruby
<Burgestrand>
Bish I'm pretty much paraphrasing the readme, but sodiums API is designed to make it easier to use in a secure way and harder to misuse in an insecure way
apparition has quit [Quit: Bye]
ta_ has joined #ruby
drewmcmillan has joined #ruby
shinnya has quit [Ping timeout: 252 seconds]
quobo has quit [Quit: Connection closed for inactivity]
cadillac_ has quit [Ping timeout: 248 seconds]
yohji has quit [Ping timeout: 248 seconds]
bigblind has joined #ruby
Defenestrate has joined #ruby
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
schneide_ has quit [Remote host closed the connection]
tomphp has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
tomphp has quit [Client Quit]
jaruga has quit [Read error: Connection reset by peer]
jaruga has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
arkinor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qba73 has quit [Ping timeout: 260 seconds]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
schneide_ has joined #ruby
hoylemd has left #ruby [#ruby]
dviola has quit [Quit: WeeChat 2.0.1]
Trel has quit [Remote host closed the connection]
lesce has joined #ruby
<lesce>
hey people , I have an issue while trying to run bundle install
<lesce>
I get "Bundler::PermissionError: There was an error while trying to write to `/bundle`. It is likely that you need to grant write permissions for that path.
<lesce>
An error occurred while installing rake (12.3.0), and Bundler cannot continue.
<lesce>
Make sure that `gem install rake -v '12.3.0'` succeeds before bundling."
alfiemax has joined #ruby
<lesce>
I don't understand why it's trying to install it in /bundle
<lesce>
also it used to work until last Friday
<soahccc>
lesce: is there something in .bundle/config in your project fodler?
xcesariox has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lesce>
soahccc: you're a life saver :D
<lesce>
didn't know about it
Trel has joined #ruby
<lesce>
soahccc : danke schon ! :)
<soahccc>
:)
ldepandis has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
vyorkin has quit [Read error: Connection reset by peer]
white_lilies has joined #ruby
Serpent7776 has quit [Quit: Leaving]
yohji has quit [Ping timeout: 240 seconds]
petto has joined #ruby
white_lilies has quit [Ping timeout: 240 seconds]
conta has joined #ruby
aupadhye has quit [Ping timeout: 260 seconds]
guille-moe has quit [Quit: guille-moe]
guille-moe has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
yohji has joined #ruby
n0m4d1c_ has joined #ruby
spectra has quit [Ping timeout: 256 seconds]
andikr has quit [Remote host closed the connection]
vyorkin has joined #ruby
Flashynuff has joined #ruby
darkhanb has joined #ruby
n0m4d1c has quit [Ping timeout: 260 seconds]
cthulchu_ has joined #ruby
apeiros has joined #ruby
marr has joined #ruby
bmurt has joined #ruby
jrvlima has quit [Quit: jrvlima]
mikecmpbll has quit [Quit: inabit. zz.]
jrvlima has joined #ruby
<cthulchu_>
I'm new to ruby. Am I understanding it correctly that Ruby is higher than even Python?
<cthulchu_>
with this interesting thing... 5.times {}
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dimik has joined #ruby
hahuang65 has joined #ruby
venmx has quit [Ping timeout: 256 seconds]
white_lilies has joined #ruby
Eiam has joined #ruby
roshanavand has joined #ruby
amatas_ has quit [Quit: amatas_]
bmurt has joined #ruby
gshaw has joined #ruby
white_lilies has quit [Ping timeout: 256 seconds]
krawchyk has quit [Quit: krawchyk]
sameerynho has joined #ruby
krawchyk has joined #ruby
marxarelli|afk is now known as marxarelli
deafscribe has joined #ruby
hoylemd has left #ruby [#ruby]
ramfjord has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
TomyWork has quit [Ping timeout: 240 seconds]
pragmatism42 is now known as pragmatism
conta has quit [Ping timeout: 260 seconds]
alex`` has quit [Ping timeout: 276 seconds]
jrvlima has quit [Quit: jrvlima]
mtkd has quit [Ping timeout: 240 seconds]
vyorkin has quit [Ping timeout: 260 seconds]
mtkd has joined #ruby
vyorkin has joined #ruby
schneide_ has quit [Remote host closed the connection]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
hoylemd has joined #ruby
jaruga has quit [Quit: jaruga]
jaruga has joined #ruby
alfiemax_ has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
suhdood has joined #ruby
jaruga has quit [Ping timeout: 260 seconds]
guille-moe has quit [Ping timeout: 260 seconds]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 248 seconds]
nowhereman_ has joined #ruby
LastWhisper____ has joined #ruby
nowhere_man has quit [Ping timeout: 256 seconds]
venmx has joined #ruby
<eam>
I'm working through figuring this out on my end, but would anyone happen to know why Net::HTTP would have a problem automatically decoding gzip content? Deflate works fine
za1b1tsu has quit [Quit: Leaving]
jaruga has joined #ruby
Mrgoose has quit [Ping timeout: 260 seconds]
nowhere_man has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
nowhereman_ has quit [Ping timeout: 260 seconds]
TomyLobo has joined #ruby
white_lilies has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has joined #ruby
suhdood has quit [Quit: Leaving]
orbyt_ has joined #ruby
tomphp has joined #ruby
white_lilies has quit [Ping timeout: 256 seconds]
Mrgoose has joined #ruby
jaruga has quit [Quit: jaruga]
cagomez has quit [Ping timeout: 260 seconds]
jottr has quit [Ping timeout: 256 seconds]
rrutkowski has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
s3nd1v0g1us has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
za1b1tsu has joined #ruby
alfiemax has joined #ruby
claudiuinberlin has joined #ruby
bmurt has joined #ruby
cagomez has joined #ruby
zigzig has quit [Ping timeout: 255 seconds]
amatas_ has joined #ruby
zigzig has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
cagomez has quit [Ping timeout: 256 seconds]
<baweaver>
eam: more than likely it's stupid in what it does automatically. I seem to remember it disliking redirects as well unless told explicitly otherwise.
<eam>
the weird thing is that adjusting the accept-encoding from gzip, deflate to just deflate works ok
Sauvin has quit [Ping timeout: 240 seconds]
alex`` has joined #ruby
vyorkin has quit [Read error: Connection reset by peer]
cajone has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
vyorkin has joined #ruby
vyorkin has quit [Client Quit]
ur5us has quit [Remote host closed the connection]
Mrgoose has quit [Ping timeout: 248 seconds]
cdg has quit [Ping timeout: 252 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eckhardt>
eam i don't think we tested the behavior by just...not setting the accept-encoding header?
<eckhardt>
ie, maybe different behavior between setting that or leaving it nil?
white_lilies has joined #ruby
<eckhardt>
wouldn't put it past Net::HTTP
gshaw has quit [Ping timeout: 260 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
white_lilies has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
claudiuinberlin has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
white_lilies has joined #ruby
cagomez has joined #ruby
<baweaver>
Net::HTTP is a perpetual box of fun
Tidty has joined #ruby
Tidty has left #ruby [#ruby]
white_lilies has quit [Ping timeout: 264 seconds]
alfiemax has quit [Remote host closed the connection]
amelliaa has joined #ruby
alfiemax has joined #ruby
regedit has quit [Quit: Connection closed for inactivity]
roshanavand has quit [Ping timeout: 256 seconds]
drona6 has joined #ruby
s3nd1v0g1us has quit [Quit: tempusfugit]
alfiemax has quit [Ping timeout: 248 seconds]
atchoum has joined #ruby
synthroi_ has quit [Remote host closed the connection]
<drona6>
I'm trying to get a build to pass on CircleCI. It's failing with "Could not open library 'libsodium.so': libsodium.so: cannot open shared object file: No such file or directory (LoadError)". I can solve this locally with `sudo apt-get install libsodium-dev`, but I don't know enough about CircleCI to tell the CI machine to also install that lib. Does anyone know how/where to configure CircleCI with custom packages to install on the
<drona6>
machine?
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mr_foto has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
hfp_work has joined #ruby
ur5us has joined #ruby
venmx has quit [Ping timeout: 260 seconds]
jottr has quit [Ping timeout: 256 seconds]
venmx_ has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
white_lilies has joined #ruby
guille-moe has joined #ruby
tweezer has joined #ruby
tweezer has quit [Client Quit]
clemens3 has quit [Quit: WeeChat 1.0.1]
venmx_ has quit [Ping timeout: 276 seconds]
white_lilies has quit [Ping timeout: 276 seconds]
hfp_work has quit [Ping timeout: 240 seconds]
amatas_ has quit [Ping timeout: 248 seconds]
ldnunes has quit [Quit: Leaving]
gr33n7007h has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
gr33n7007h is now known as al2o3-cr
clemens3 has joined #ruby
ldepandis has quit [Remote host closed the connection]
jamesaxl has joined #ruby
white_lilies has joined #ruby
ldepandis has joined #ruby
sanscoeu_ has joined #ruby
alfiemax has joined #ruby
sanscoe__ has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
sanscoeur has quit [Ping timeout: 256 seconds]
synthroid has joined #ruby
white_lilies has quit [Ping timeout: 276 seconds]
sanscoeu_ has quit [Ping timeout: 260 seconds]
alfiemax has quit [Ping timeout: 256 seconds]
jottr has quit [Ping timeout: 240 seconds]
Vapez has joined #ruby
cagomez has quit [Remote host closed the connection]
hahuang65 has joined #ruby
jcalla has joined #ruby
cagomez has joined #ruby
sanscoeur has joined #ruby
<jcalla>
had to learn Ruby for work over the weekend. you guys have an interesting language!
dc30 has joined #ruby
<jcalla>
just one main question, do you have a great alternative to irb (similar to ipython)?
<ruby[bot]>
jcalla: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
cagomez has quit [Ping timeout: 256 seconds]
<jcalla>
thanks. i tried that out briefly last night. however, the syntax highlighting didn't kick in until i submitted a line
sanscoe__ has quit [Ping timeout: 260 seconds]
<havenwood>
jcalla: gem install pry-coolline
<dc30>
is there some way to prevent implicit conversion on NULL to 0?
<jcalla>
havenwood: i'll do that, thanks
<havenwood>
dc30: Use Integer()
<havenwood>
>> Integer(nil)
<ruby[bot]>
havenwood: # => can't convert nil into Integer (TypeError) ...check link for more (https://eval.in/950997)
<havenwood>
dc30: Say more about what's happening?
<ruby[bot]>
havenwood: # => undefined method `to_i' for nil:NilClass ...check link for more (https://eval.in/950999)
<jcalla>
havenwood: this looks better. i'll have to install it at home as well.
* guacamole
gem installs pry-coolline
<dc30>
need to catch the value Seconds_Behind_Master when it's NULL
bmurt has joined #ruby
prutheus has joined #ruby
bmurt has quit [Client Quit]
mtkd has quit [Ping timeout: 248 seconds]
<prutheus>
Hello. A Rails question: The application template has something like that `<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>` in it ... I also want to include all tempaltes and themes in the mailers template, but this line of code jsut embeds them relative, not absolute, so their path is /assets/.... and not https://www.domain.com/.....
<prutheus>
how to fix that?
mtkd has joined #ruby
roshanavand has joined #ruby
<guacamole>
does Rails.root.join('path/to/file') fix it?
<guacamole>
also might want to try #rubyonrails they might have a better idea
<prutheus>
what do you mean? i do not know the path of it :/
<guacamole>
i don't understand the question, sorry
dextrey has quit [Ping timeout: 268 seconds]
<prutheus>
in the mail, from the usage of the code i showed you, there are some links generated like: `<link rel=3D"stylesheet" media=3D"all" href=3D"/assets/application.se= lf-596c2fa6c5d7dbf2dd37bac9a44f82d983db1a31b09c0518e0108a49324d666f.css?b= ody=3D1" data-turbolinks-track=3D"reload" />`
<prutheus>
but this link can not get resolved from my email client cause there is no web domain/ip given in front of the path
jeffreylevesque_ has quit [Ping timeout: 265 seconds]
<dude>
Why are there huge left & right margins on Rails pages for all the content within <% yield %>? My headers take up the width of the entire browser. I googled this and cannot find any discussion about it, which makes me think I didn't use the correct search terms.
cagomez has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 256 seconds]
hoylemd has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
cajone has left #ruby [#ruby]
<dude>
Anyone here?
venmx has joined #ruby
<drona6>
dude: I think you're describing an issue outside the context of Rails itself. The margins you describe would be the result of CSS, which you can certainly modify. Check app/assets/stylesheets for any CSS files. Don't hesitate to follow up here if I've misunderstood the question. Also #RubyOnRails might be a better place for the question, if it does end up being very Rails-specific.
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
synthroid has quit []
nahra has quit [Remote host closed the connection]
<dude>
drona6: Thanks. I tried joining #Rails which doesn't exist. I already checked stylesheets but body etc doesn't have margins set. I was able to get a sidebar all the way to the left but still have ridiculous padding between sidebar and content. This might be a bootstrap thing since I'm using that gem.
<dude>
So I'll ask at RubyOnRails
cagomez has quit [Remote host closed the connection]
<drona6>
dude: Sounds good. If possible, paste a link to the repo. It shouldn't be too hard for someone to check out your Bootstrap usage and identify the issue.
<drona6>
You could also look for a channel for HTML or CSS specifically, since it sounds like this issue is front-end related. Good luck!
<dude>
Thank you
za1b1tsu has quit [Ping timeout: 276 seconds]
dc30 has quit [Quit: Page closed]
jcalla has quit [Quit: Leaving]
dviola has joined #ruby
ivanskie has joined #ruby
dude has quit [Quit: Page closed]
wilbert has quit [Ping timeout: 260 seconds]
matti__ has quit [Quit: Reconnecting]
matti has joined #ruby
matti has joined #ruby
matti has quit [Changing host]
ramfjord has quit [Ping timeout: 248 seconds]
k0mpa has quit [Ping timeout: 255 seconds]
white_lilies has joined #ruby
veduardo has joined #ruby
Mrgoose2 has joined #ruby
n0m4d1c has joined #ruby
venmx has quit [Read error: Connection reset by peer]
n0m4d1c has quit [Remote host closed the connection]
dviola has quit [Quit: WeeChat 2.0.1]
ramfjord has joined #ruby
erikm has joined #ruby
dbugger has joined #ruby
<dbugger>
Hi everyone
sameerynho has quit [Ping timeout: 260 seconds]
<dbugger>
I just saw this line: "@user ||= ... if something" and I am not sure what is the order of operators
dangeranger has joined #ruby
<dbugger>
is it "(@user ||= ...) if something" or is it "@user ||= (... if something)"
amatas has quit [Quit: amatas]
<dbugger>
what takes precedence? ||= or "postfix if"?
<guacamole>
whats the whole line?
dangeranger has quit [Client Quit]
<dbugger>
well, that is the whole line
<guacamole>
"(@user ||= ...) if something"
<guacamole>
this one
<dbugger>
ah, so the "if" takes precedence then
<dbugger>
thanks
<guacamole>
i would try it out to be sure
<dbugger>
mmm, I guess I could check it in the console
<dbugger>
didnt think of that *facepalm*
<guacamole>
you can look up operator precedence charts for ruby
pastorinni has quit [Ping timeout: 268 seconds]
Papierkorb has joined #ruby
<s1detracking>
i mash enemies with destructive malice
<s1detracking>
and make them respect
<s1detracking>
my best
<s1detracking>
of the grind status
Papierkorb has left #ruby ["Konversation terminated!"]
dangeranger has joined #ruby
<dbugger>
seems like it was the other way around. It is "(a ||= b) if c
<guacamole>
thats the one i put up there, no?
<guacamole>
guacamole:"(@user ||= ...) if something"
chouhoul_ has joined #ruby
<dbugger>
right, I read your answer the wrong way :P
<guacamole>
hah no worries
krawchyk has quit [Quit: krawchyk]
<dbugger>
ty, mate
<guacamole>
np
amelliaa has quit [Quit: -]
ivanskie has quit [Quit: Leaving]
chouhoulis has quit [Ping timeout: 260 seconds]
qyliss has joined #ruby
rwb has joined #ruby
[dmp] has joined #ruby
chouhoul_ has quit [Ping timeout: 260 seconds]
[dmp] has quit [Client Quit]
guille-moe has joined #ruby
desperek has quit [Quit: xoxo]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has quit [Read error: Connection reset by peer]