baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.3, 2.3.6, 2.2.9 & 2.5.0-rc1: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
sanscoeu_ has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
hahuang65 has joined #ruby
Majora320 has joined #ruby
<Majora320> In general, should you use a gem for a small purely executable project?
alfiemax has quit [Ping timeout: 240 seconds]
vircung has quit [Quit: Nothing to do here]
elphe has joined #ruby
vircung has joined #ruby
k0mpa has quit [Remote host closed the connection]
<al2o3-cr> sure, why not.
ironcamel has quit [Quit: leaving]
chocoelho has joined #ruby
chocoelho has quit [Client Quit]
milardovich has quit [Read error: Connection reset by peer]
milardov_ has joined #ruby
vichib has joined #ruby
hays has joined #ruby
Musashi007 has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
ironcamel has joined #ruby
jobewan has quit [Ping timeout: 268 seconds]
k0mpa has joined #ruby
cagomez has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
cagomez has joined #ruby
<hays> can anyone help me understand why deriving from builtins like Array is a bad idea
<RickHull> hays: you mean inheritance vs composition?
<RickHull> inheritance is a fine tool -- it's not a bad idea
<hays> yes
<RickHull> but it can be misapplied
<RickHull> composition tends to be more flexible
<hays> yeah i can see thta
<RickHull> where there is pushback against inheritance -- it's typically because inheritance can be overused -- it seems like the object oriented way to do things.
<RickHull> some problems are that: not every relationship that we are modeling matches inheritance
MrSparkle has quit [Ping timeout: 240 seconds]
cagomez has quit [Ping timeout: 248 seconds]
<RickHull> problems around multiple inheritance. is my table a child of furniture? or carpentry?
<hays> in one case i wanted something that behaved exactly like an array, except had some wrappers around some methods
<RickHull> also, the law of demeter is very hard to satisfy
<RickHull> er, hm, maybe i'm not thinking of law of demeter
milardov_ has quit [Remote host closed the connection]
<RickHull> hays: that sounds fine -- i'd think it would be like 10 minutes of coding
alfiemax has joined #ruby
<RickHull> got an example?
<hays> not on this machine
<hays> but one sec
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
<hays> https://bpaste.net/show/0e2bf2506c03 . in here those lines like srv.holding_registers. they are defined as Arrays and I am making them something inherited from array so I can capture calls to [] and []=
<hays> basically a thread/fiber gets spawned and then it just passes through to Array
<RickHull> yeah, so your other paste showed you doing some output and then calling super
jameser has joined #ruby
<hays> yep
<RickHull> as long as you are faithful to the original method signature, that should be fine
alfiemax has quit [Ping timeout: 252 seconds]
<RickHull> it doesn't make it a good idea, but it's reasonable
Asher has joined #ruby
Asher has quit [Client Quit]
<hays> is there a good place to look that up? the docs provide the information a bit differently
<RickHull> generally: `def [](*args); do_stuff_with(args); super(*args); end
<hays> yeah and []= is (*args,val) i think
<hays> but im guessing
<RickHull> no, *args means all the args
<hays> hmm so i guess if it doesnt take a block that would always work?
shinnya has joined #ruby
<RickHull> i'm a bit fuzzy, but maybe `def [](*args, &blk)`
<RickHull> and you can call super(*args, &blk)
ResidentBiscuit has joined #ruby
<hays> if its not a good idea, im curious what is a better idea, or why its a bad idea
<RickHull> if what is a good idea?
workmad3 has joined #ruby
<RickHull> as I said before, a wrapper class that inherits from the thing is totally reasonable
pastorinni has quit [Remote host closed the connection]
<RickHull> it doesn't make it a good idea, nor a bad idea
<RickHull> it depends on what you want to do with it, and if you can make the wrapper class be faithful to the original
<hays> hmm ok
MrSparkle has joined #ruby
<RickHull> aha, now I remember what I was thinking of. Liskov substitution principle
nadir has quit [Quit: Connection closed for inactivity]
workmad3 has quit [Ping timeout: 248 seconds]
<RickHull> so, if your array subclass adheres to https://en.wikipedia.org/wiki/Liskov_substitution_principle then you should definitely be AOK
<RickHull> I think it's a useful principle but it's reasonable to break it sometimes
vyorkin has quit [Quit: WeeChat 1.9.1]
<hays> ok yeah i think i meet that
meesles has quit [Ping timeout: 252 seconds]
<RickHull> and reading above, I think it's fine to do e.g. `$stderr.puts "item is a #{item.class}"`
<RickHull> what is generally to be avoided is using .class directly in your logic
orbyt_ has joined #ruby
<RickHull> that is too brittle as it doesn't consider subclasses. instead use case or is_a?/kind_of?
<RickHull> or test responds_to?
<RickHull> or just go full duck typing and just call methods, and let NoMethodError indicate where the duck doesn't quack
<RickHull> but it's not always the case that 2 methods with the same name have the same semantics
vircung has quit [Ping timeout: 240 seconds]
vircung has joined #ruby
<hays> right
<hays> someone suggested using a case stsatement
<hays> id want to copy how Array does it but the code is in C
<hays> if FIXNUM_P
<hays> not sure what that exaxtly means
ged has joined #ruby
<hays> the C code is actually really weird
Musashi007 has quit [Quit: Musashi007]
<hays> but it seems like it has a check for if its a range
<Majora320> What's standard practice for the file structure of an executable gem?
<Majora320> should you have as much as possible in lib/?
<Majora320> or in bin/?
<Majora320> s/bin/exe/
<hays> oh i had a link on that i think
raul782 has quit []
<hays> damn nevermind it was python
monodoh has quit [Quit: monodoh]
troys is now known as troys_
pilne has joined #ruby
GodFather_ has joined #ruby
shinnya has quit [Ping timeout: 264 seconds]
meesles has joined #ruby
bkxd has joined #ruby
marr has quit [Ping timeout: 256 seconds]
RougeT430 has quit [Read error: No route to host]
GodFather_ has quit [Quit: Ex-Chat]
GodFather__ has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
<RickHull> hays: just do your thing and then super(*args)
<RickHull> don't literally reimplement array
mtkd has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
pastorinni has joined #ruby
cdg has joined #ruby
guardianx has joined #ruby
<hays> yeah im convinces a simple type check on range is sufficient
<hays> count args and type check for range. othewise treat like integer and let chips fall
pastorinni has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 265 seconds]
SyntaxASI has quit [Quit: #MoonBNC ZNC Services]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
AJA4350 has quit [Quit: AJA4350]
jan4 has quit [Quit: WeeChat 1.4]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
meesles has quit [Ping timeout: 252 seconds]
rfoust has joined #ruby
zautomata1 has joined #ruby
zautomata has quit [Ping timeout: 260 seconds]
lytol_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
milardovich has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
milardovich has joined #ruby
GodFather__ has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
chouhoulis has joined #ruby
ta_ has quit [Remote host closed the connection]
bkxd has quit []
bkxd has joined #ruby
ta_ has joined #ruby
bkxd has quit [Max SendQ exceeded]
ta_ has quit [Remote host closed the connection]
bkxd has joined #ruby
bkxd has quit [Client Quit]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
GodFather has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
guardianx has quit []
GodFather has quit [Remote host closed the connection]
Ropeney has joined #ruby
Musashi007 has joined #ruby
milardovich has quit [Remote host closed the connection]
dviola has quit [Quit: WeeChat 2.0.1]
Musashi007 has quit [Client Quit]
milardovich has joined #ruby
Musashi007 has joined #ruby
meesles has joined #ruby
GodFather has joined #ruby
jaequery has joined #ruby
gizmore|2 has joined #ruby
gizmore has quit [Ping timeout: 248 seconds]
KeyJoo has quit [Ping timeout: 248 seconds]
GodFather has quit [Remote host closed the connection]
nadir has joined #ruby
pilne has quit [Quit: Quitting!]
GodFather has joined #ruby
workmad3 has joined #ruby
milardovich has quit [Remote host closed the connection]
GodFather has quit [Remote host closed the connection]
milardovich has joined #ruby
chocoelho has joined #ruby
GodFather has joined #ruby
<neo95> @godfather I pay my respects
Musashi007 has quit [Quit: Musashi007]
darkhanb has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
GodFather has quit [Remote host closed the connection]
chocoelho has quit [Ping timeout: 252 seconds]
milardovich has quit [Remote host closed the connection]
GodFather has joined #ruby
milardovich has joined #ruby
monodoh has joined #ruby
ta_ has joined #ruby
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
sspreitz has quit [Ping timeout: 264 seconds]
meesles has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
sspreitz has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jeffreylevesque has joined #ruby
Musashi007 has joined #ruby
GodFather has quit [Remote host closed the connection]
ResidentBiscuit has quit []
vichib has quit [Quit: Leaving]
vichib has joined #ruby
GodFather has joined #ruby
jaequery has joined #ruby
jaequery has quit [Client Quit]
hlmjr has joined #ruby
GodFather has quit [Remote host closed the connection]
j416 has quit [Ping timeout: 252 seconds]
milardovich has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
zautomata2 has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
milardovich has joined #ruby
zautomata1 has quit [Ping timeout: 252 seconds]
GodFather has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
GodFather has joined #ruby
xco has joined #ruby
GodFather has quit [Remote host closed the connection]
cdg has joined #ruby
milardovich has quit [Ping timeout: 252 seconds]
GodFather has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 265 seconds]
sammi` has joined #ruby
j416 has joined #ruby
<Radar> TIL about <<~ vs <<- for heredoc strings :mindblown:
zautomata3 has joined #ruby
ta_ has joined #ruby
zautomata2 has quit [Ping timeout: 252 seconds]
mk[] has joined #ruby
Majora320 has quit [Quit: WeeChat 2.0.1]
DmitryBochkarev has joined #ruby
kies has quit [Ping timeout: 240 seconds]
zautomata4 has joined #ruby
jaequery has joined #ruby
zautomata3 has quit [Ping timeout: 264 seconds]
xco has quit [Ping timeout: 264 seconds]
GodFather has quit [Ping timeout: 240 seconds]
xco has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
Musashi007 has quit [Quit: Musashi007]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DTZUZU has quit [Quit: WeeChat 1.9]
ta_ has quit [Ping timeout: 252 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
safetypin has joined #ruby
neo95 has quit [Quit: Leaving]
kies has joined #ruby
DTZUZU has joined #ruby
ta_ has joined #ruby
troys_ is now known as troys
monodoh has quit [Quit: monodoh]
troys is now known as troys_
safetypin has quit [Quit: ZZZzzz…]
troys_ is now known as troys
zautomata has joined #ruby
zautomata4 has quit [Ping timeout: 248 seconds]
zautomata1 has joined #ruby
jamiejackson has quit [Ping timeout: 264 seconds]
minimalism has quit [Quit: minimalism]
zautomata has quit [Ping timeout: 260 seconds]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
enterprisey has joined #ruby
workmad3 has joined #ruby
axsuul has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 272 seconds]
cagomez has joined #ruby
kies has quit [Ping timeout: 265 seconds]
zautomata1 has quit [Ping timeout: 252 seconds]
zautomata3 has joined #ruby
cagomez has quit []
cagomez has joined #ruby
alfiemax has joined #ruby
Puffball_ has joined #ruby
Puffball has quit [Ping timeout: 248 seconds]
zautomata has joined #ruby
zautomata3 has quit [Ping timeout: 248 seconds]
kies has joined #ruby
zautomata1 has joined #ruby
zautomata2 has joined #ruby
zautomata has quit [Ping timeout: 268 seconds]
zautomata1 has quit [Ping timeout: 256 seconds]
ta_ has quit [Ping timeout: 256 seconds]
xco has quit [Quit: xco]
ta_ has joined #ruby
suresh has joined #ruby
nofxx has quit [Remote host closed the connection]
aupadhye has joined #ruby
alfiemax has quit [Ping timeout: 252 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
anisha has joined #ruby
<apeiros> Radar: yeah, <<~ is quite new. and I guess in rails there was (is) .strip_heredoc
suresh has left #ruby [#ruby]
<apeiros> though iirc .strip_heredoc orients itself on the first indent, while <<~ cares about the least/smallest indent
meesles has joined #ruby
<apeiros> ah no, short test shows .strip_heredoc also uses least indent
cagomez has quit [Ping timeout: 240 seconds]
gauravgoyal has joined #ruby
aupadhye is now known as aupadhye|brb
zautomata3 has joined #ruby
iamarun has joined #ruby
zautomata2 has quit [Ping timeout: 252 seconds]
anisha has quit [Ping timeout: 252 seconds]
aupadhye|brb is now known as aupadhye
apeiros has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
anisha has joined #ruby
KeyJoo has joined #ruby
cdg has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
reber has joined #ruby
troys is now known as troys_
cdg has quit [Ping timeout: 265 seconds]
DmitryBochkarev has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has joined #ruby
ta_ has joined #ruby
naprimer has quit [Ping timeout: 265 seconds]
Ishido has joined #ruby
naprimer has joined #ruby
meesles has quit [Ping timeout: 248 seconds]
zautomata4 has joined #ruby
zautomata3 has quit [Ping timeout: 248 seconds]
sammi` has quit [Quit: leaving]
sammi` has joined #ruby
alfiemax has joined #ruby
rippa has joined #ruby
swat2 has quit [Ping timeout: 248 seconds]
tvw has quit []
tvw has joined #ruby
troys_ is now known as troys
nofxx has joined #ruby
workmad3 has joined #ruby
swat2 has joined #ruby
k0mpa has quit [Remote host closed the connection]
\0 has joined #ruby
apeiros has joined #ruby
ta_ has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
gauravgoyal has quit [Read error: Connection reset by peer]
tvw has quit []
tvw has joined #ruby
sundhell_away is now known as sundhell
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
Puffball_ has quit [Remote host closed the connection]
\0 has left #ruby [#ruby]
ta_ has joined #ruby
darkhanb has joined #ruby
tvw has quit [Remote host closed the connection]
jaequery has joined #ruby
conta has joined #ruby
ShekharReddy has joined #ruby
jaequery has quit [Client Quit]
bkxd has joined #ruby
jaequery has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
DTZUZU has quit [Ping timeout: 248 seconds]
alfiemax has quit [Remote host closed the connection]
DTZUZU has joined #ruby
zautomata has joined #ruby
alfiemax has joined #ruby
troys has quit [Quit: Bye]
Musashi007 has joined #ruby
zautomata4 has quit [Ping timeout: 268 seconds]
andikr has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Musashi007 has quit [Client Quit]
jaequery has joined #ruby
zautomata has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 264 seconds]
stealth[] has joined #ruby
bkxd has joined #ruby
tvw has joined #ruby
oleo has quit [Quit: Leaving]
tvw has quit [Client Quit]
tvw has joined #ruby
zautomata has joined #ruby
gizmore has joined #ruby
gizmore|2 has quit [Ping timeout: 252 seconds]
zautomata has quit [Ping timeout: 248 seconds]
mikhael_k33hl has joined #ruby
coderxin has joined #ruby
<mikhael_k33hl> If you require a gem on one of your files that is required by another file, will the gem be propagated on that file?
<mikhael_k33hl> So I can just have one file that requires all gem, and have the all other files require that one file?
TomyWork has joined #ruby
<mozzarella> why would you do that
<mikhael_k33hl> mozzarella: uhhhm, cause I'm planning to use celluloid and I have a worker and workergoup classes, so I was wondering if I alreayd require celluloid on WorkerGroup and that workerGroup requires the worker class, will the gems be propagated?
<mikhael_k33hl> Or will I need to require 'celluloid' on both of them?
<mk[]> it probably wouldn't hurt to require in every file it's used
<mk[]> require is idempotent
<mikhael_k33hl> mk[]: Oh I see . . . might as well do that then
Puffball has joined #ruby
<apeiros> mikhael_k33hl: yes, if you require a file which requires a file which requires a file, all 3 files will be loaded
<apeiros> and it's sensible to require everything you depend on in a file
<apeiros> if that feels repetitive, have a "hub" require. e.g. foo.rb requires 20 things, foo/xy.rb foo/xz.rb etc. then just require 'foo' (and hence delegate all requries)
<apeiros> *requires
<mikhael_k33hl> apeiros: the latter seems to be more organized IMHO
<mk[]> that's what bundler does, right?
<apeiros> the former is more declarative
<apeiros> mk[]: that's entirely unrelated to bundler
<apeiros> bundler cares about the presence of gems and isolating them from system env. it doesn't care about individual file requires.
<mk[]> you can make a gem with bundler
<apeiros> you don't say :)
<apeiros> it's still unrelated
<mk[]> semantics
<apeiros> if you say so
tvw has quit []
adac has joined #ruby
<mk[]> I meant bundler has a scheme for handling file requires for a new gem
Musashi007 has joined #ruby
ana_ has joined #ruby
<mk[]> saying "it's unrelated" is just pedantic and boring
<mk[]> there are always connections in a bigger context
<apeiros> no, bundler does not have a scheme for handling file requires for a new gem.
<apeiros> that's simply wrong.
<apeiros> yes, it allows you to generate a gem skeleton for new gems. no, it does not contain any require scheme.
<mk[]> I guess it's not unique to bundler
<mk[]> but still related to it
d2dchat has joined #ruby
<d2dchat> I'm having the hardest time adding a file to a rubygem
<d2dchat> it's called thread.rb, which I don't think should be a problem
<apeiros> mk[]: I don't care enough to continue this conversation
<apeiros> d2dchat: it's a problem because ruby has that already.
<d2dchat> apeiros, I know that but, I'm not entirely sure that is the issue
<apeiros> d2dchat: pro tip: namespace your gems. don't have stuff in the toplevel.
<d2dchat> I'm not
<apeiros> e.g. d2dchat/thread.rb
<d2dchat> OK, I updated it, refresh
<mk[]> can ruby modules be reloaded?
bkxd has quit []
<d2dchat> apeiros, so when I load up irb
<apeiros> d2dchat: ok, looks sane. is your problem related to line 6 in thread.rb?
<d2dchat> I do a require './lib/streak'
jamesaxl has joined #ruby
JaccoP has joined #ruby
<d2dchat> apeiros, updating with error, hold on
<apeiros> you don't have to include 'lib' in the require. lib should be in $LOAD_PATHS, so require 'streak/thread' (or require 'streak') should do it
<d2dchat> apeiros, error added
claudiuinberlin has joined #ruby
<apeiros> d2dchat: is this when you're working on the gem? as in, the gem is not yet installed?
Musashi007 has quit [Quit: Musashi007]
<apeiros> irb -Ilib -rstreak
<apeiros> -I is uppercase i, not lowercase L
<apeiros> it adds lib to $LOAD_PATH
<d2dchat> apeiros, OI that did it
<d2dchat> apeiros, gracias haha
<apeiros> yw
<apeiros> when the gem is installed, rubygems will handle the adding of lib to $LOAD_PATH
coderxin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> i.e. if you do `require 'streak'`, rubygems will search for gems with a matching file in their lib dir, activate the gem, and as part of that activation, add its lib dir to $LOAD_PATH
<d2dchat> apeiros, right. I was trying to contribute back to this gem and wanted to do a little bit of probing
<d2dchat> the specs on this gem are mocking out the request, so I didn't trust it
<d2dchat> and it's a good thing I didn't just commit this, because I'm getting an error
<d2dchat> need better specs!!
<d2dchat> :)
<mk[]> I really like how modules work in Erlang in terms of reloading, Ruby seems to only have it on the framework level
zautomata has joined #ruby
<d2dchat> mk[], erlang is also ugly :)
<apeiros> d2dchat: :) have fun!
<mk[]> d2dchat: the syntax?
<d2dchat> apeiros, thx! :)
dionysus69 has joined #ruby
<d2dchat> it's been a minute since I've contribute to Ruby so
<d2dchat> I have to get my bearings ;)
<mk[]> also, no "green" threads for Ruby, right?
ur5us has joined #ruby
<d2dchat> mk[], huh? Green threads have been around forever
<havenwood> mk[]: Ruby 1.8 had green threads. Ruby 1.9 got system threads and fibers, which you have to schedule yourself.
<mk[]> oh nice, I haven't looked at that for a while
<havenwood> mk[]: There's a nice proposal in Ruby 3 for Thribers, which are lightweight green threads that can be system scheduled across multiple cores.
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has joined #ruby
* apeiros still has to read up on guilds
alfiemax has quit [Remote host closed the connection]
<mk[]> I wonder how long it would take for the IT industry to adopt the actor model and/or software transactional memory
<mk[]> 10-15 years?
xavrix has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
coderxin has joined #ruby
JaccoP has quit [Quit: Leaving]
zautomata1 has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
ur5us has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 248 seconds]
ur5us has joined #ruby
zautomata has quit [Ping timeout: 260 seconds]
Guest87121 has joined #ruby
rabajaj has joined #ruby
xavrix has joined #ruby
zautomata1 has quit [Ping timeout: 248 seconds]
ur5us has quit [Ping timeout: 264 seconds]
konsolebox has quit [Ping timeout: 264 seconds]
zautomata1 has joined #ruby
konsolebox has joined #ruby
mikecmpbll has joined #ruby
alfiemax has joined #ruby
Kero has quit [Ping timeout: 272 seconds]
Kero has joined #ruby
Riddell has quit [Ping timeout: 260 seconds]
Riddell has joined #ruby
gizmore|2 has joined #ruby
amatas has joined #ruby
zwliew has joined #ruby
Musashi007 has joined #ruby
gizmore has quit [Ping timeout: 264 seconds]
zautomata1 has quit [Ping timeout: 260 seconds]
zautomata2 has joined #ruby
Musashi007 has quit [Client Quit]
Ishido has quit [Ping timeout: 240 seconds]
Puffball has quit [Remote host closed the connection]
Musashi007 has joined #ruby
Musashi007 has quit [Client Quit]
zautomata2 has quit [Ping timeout: 268 seconds]
<adac> Hi! can i start firefox in background with selenium somehow?
Musashi007 has joined #ruby
mk[] has quit [Ping timeout: 265 seconds]
mk[] has joined #ruby
andikr has quit [Ping timeout: 268 seconds]
krandi has joined #ruby
Ishido has joined #ruby
gizmore has joined #ruby
marr has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
gizmore|2 has quit [Ping timeout: 252 seconds]
c0ncealed has quit [Remote host closed the connection]
c0ncealed has joined #ruby
zautomata2 has joined #ruby
cadillac_ has joined #ruby
zautomata2 has quit [Ping timeout: 256 seconds]
gizmore|2 has joined #ruby
biberu has joined #ruby
coderxin has quit [Ping timeout: 256 seconds]
milardovich has joined #ruby
<TheBrayn> how is this a ruby question?
vtx has joined #ruby
gizmore has quit [Ping timeout: 272 seconds]
milardovich has quit [Remote host closed the connection]
<Yxhuvud> adac: you don't. You tell capybara to use a different driver.
milardovich has joined #ruby
<Yxhuvud> "headless", is the term you are looking for.
<adac> Yxhuvud, thanks for the hints!
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
alfiemax has quit [Remote host closed the connection]
nertzy has quit [Quit: Leaving]
nertzy has joined #ruby
<mikhael_k33hl> Anyone using Celluloid? Trying to use the SupervisionGroup but the yard docs seem to be unavailable
enterprisey has quit [Ping timeout: 265 seconds]
mk[] has left #ruby ["WeeChat 1.9.1"]
huyderman has quit [Read error: Connection reset by peer]
gizmore has joined #ruby
Cavallari has joined #ruby
gizmore|3 has joined #ruby
gizmore|4 has joined #ruby
gizmore|2 has quit [Ping timeout: 252 seconds]
elphe has quit [Ping timeout: 256 seconds]
rahul_bajaj has joined #ruby
gizmore has quit [Ping timeout: 264 seconds]
bkxd has joined #ruby
gizmore|3 has quit [Ping timeout: 252 seconds]
rabajaj has quit [Ping timeout: 240 seconds]
Serpent7776 has joined #ruby
milardovich has quit [Remote host closed the connection]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
cdg has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 265 seconds]
jaruga has joined #ruby
rippa has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
milardovich has joined #ruby
rippa has joined #ruby
rabajaj has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
rahul_bajaj has quit [Ping timeout: 252 seconds]
Ltem has joined #ruby
enterprisey has joined #ruby
enterprisey has quit [Client Quit]
milardovich has quit [Remote host closed the connection]
bkxd has quit []
milardovich has joined #ruby
elphe has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
apeiros_ has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 248 seconds]
jameser has quit [Ping timeout: 248 seconds]
ferr has joined #ruby
<ljarvis> i dun golfed some ruby https://twitter.com/lee_jarvis/status/944157086904127488 can anyone find any other wins?
<canton7> you'll probably need to post the un-golfed version to let people stand a chance :P
<ljarvis> yeah i scrubbed my history so will need to rebuild it oops
chmurifree is now known as chmuri
zwliew has quit [Quit: Connection closed for inactivity]
tomphp has joined #ruby
<ljarvis> here's an annotated version though :D https://gist.github.com/leejarvis/0d3f029754f0cf7cb9b54fb8942a62d5
tomphp has quit [Read error: Connection reset by peer]
biberu has quit []
CrazyEddy has quit [Ping timeout: 248 seconds]
Musashi007 has quit [Quit: Musashi007]
iamarun has quit [Remote host closed the connection]
tomphp has joined #ruby
benlovell has joined #ruby
ferr has left #ruby ["WeeChat 2.0"]
mikeiniowa has joined #ruby
CrazyEddy has joined #ruby
heliumk has joined #ruby
heliumk has quit [Client Quit]
jnollette has quit [Remote host closed the connection]
jnollette has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
konsolebox has quit [Ping timeout: 260 seconds]
mikhael_k33hl has quit [Ping timeout: 260 seconds]
konsolebox has joined #ruby
benlovell has quit [Quit: leaving]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bweston92 has joined #ruby
Takumo has joined #ruby
InfinityFye has joined #ruby
postmodern has quit [Quit: Leaving]
InfinityFye has left #ruby [#ruby]
jnyw has quit [Quit: WeeChat 2.0.1]
milardovich has quit []
tsglove has joined #ruby
GodFather has joined #ruby
|ifei5g00d has quit [Read error: Connection reset by peer]
|ifei5g00d has joined #ruby
k0mpa has joined #ruby
chocoelho has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mostly-harmless has joined #ruby
vyorkin has joined #ruby
AJA4350 has joined #ruby
vichib has quit [Remote host closed the connection]
hotsex has joined #ruby
hotsex has left #ruby [#ruby]
milardovich has joined #ruby
bmurt has joined #ruby
miskatonic has joined #ruby
milardovich has quit [Remote host closed the connection]
chmuri has quit [Excess Flood]
Psybur has joined #ruby
<dminuoso> havenwood: Thriber?
<dminuoso> Seriously?
KeyJoo has quit [Ping timeout: 264 seconds]
<dminuoso> Why do all the asian folks get to pick names.
Barrt has joined #ruby
chmurifree has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
elphe has quit [Quit: leaving]
elphe has joined #ruby
zapata has quit [Quit: WeeChat 2.0.1]
vondruch has quit [Ping timeout: 260 seconds]
alfiemax has quit [Ping timeout: 252 seconds]
Cavallari1 has joined #ruby
Cavallari has quit [Ping timeout: 248 seconds]
Cavallari1 is now known as Cavallari
jeffreylevesque has quit [Ping timeout: 268 seconds]
vondruch has joined #ruby
krandi has quit [Remote host closed the connection]
mikhael_k33hl has joined #ruby
<mikhael_k33hl> Anyone using Celluloid? DO you have a good docuemntation for supervisors?
sundhell is now known as sundhell_away
sundhell_away is now known as sundhell
hays_ has joined #ruby
hays_ has quit [Changing host]
hays_ has joined #ruby
nofxx has quit [Read error: Connection reset by peer]
nofxx_ has joined #ruby
synthroid has joined #ruby
zautomata has joined #ruby
CrazyEddy has quit [Ping timeout: 252 seconds]
gnufied has quit [Quit: Leaving]
JaccoP has joined #ruby
mostlybadfly has joined #ruby
minimalism has joined #ruby
gregf_ has quit [Ping timeout: 260 seconds]
contradictioned has quit [Remote host closed the connection]
nicoulaj has quit [Remote host closed the connection]
sundhell is now known as sundhell_away
conta has quit [Quit: conta]
jeffreylevesque has joined #ruby
elphe_ has joined #ruby
elphe_ has quit [Client Quit]
dn` has quit [Ping timeout: 252 seconds]
KeyJoo has joined #ruby
contradictioned has joined #ruby
contradictioned has quit [Read error: Connection reset by peer]
contradictioned has joined #ruby
|ifei5g00d has quit [Ping timeout: 240 seconds]
|ifei5g00d has joined #ruby
|ifei5g00d has quit [Read error: Connection reset by peer]
|ifei5g00d has joined #ruby
oleo2 has joined #ruby
jeffreylevesque_ has joined #ruby
kapil___ has joined #ruby
jeffreylevesque has quit [Ping timeout: 264 seconds]
mikhael_k33hl has quit [Ping timeout: 260 seconds]
zapata has joined #ruby
Silthias has joined #ruby
Silthias has left #ruby [#ruby]
elphe has quit [Quit: leaving]
Cavallari has quit [Ping timeout: 260 seconds]
Veejay has joined #ruby
<Veejay> Hello everyone, I was wondering, is there a way to force the falsiness/truthiness of a given object?
<Veejay> By having it implement some to_bool method or something
alfiemax has joined #ruby
<Veejay> Not anything I actually want to do, just curious
<hays_> Veejay: i was wonderin that yesterday
hays_ has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 260 seconds]
mtkd has quit [Ping timeout: 264 seconds]
<hays> Veejay: only nil and false are falsey
mtkd has joined #ruby
<hays> odds of controlling this in a object.class seem small
jobewan has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
skweek has joined #ruby
<dminuoso> Veejay: !!
<dminuoso> >> !!false
<ruby[bot]> dminuoso: # => false (https://eval.in/924418)
<dminuoso> >> !!true
<ruby[bot]> dminuoso: # => true (https://eval.in/924419)
<dminuoso> >> !![]
<ruby[bot]> dminuoso: # => true (https://eval.in/924420)
rabajaj has quit [Quit: Leaving]
rabajaj has joined #ruby
Musashi007 has joined #ruby
workmad3_ has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
Ropeney has joined #ruby
supergeek has joined #ruby
aupadhye has quit [Ping timeout: 252 seconds]
Musashi007 has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
<TheBrayn> We don't need no education
|ifei5good has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
|ifei5g00d has quit [Ping timeout: 248 seconds]
shinnya has joined #ruby
TomyWork has quit [Remote host closed the connection]
sightes has joined #ruby
rabajaj has quit [Quit: Leaving]
synthroi_ has joined #ruby
zautomata has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
synthroid has quit [Ping timeout: 268 seconds]
oleo2 has quit [Ping timeout: 240 seconds]
anisha has quit [Ping timeout: 272 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anisha has joined #ruby
<hays> dminuoso: i assumed he meant to change/control under what conditions an object evaluates to true/false
Musashi007 has quit [Quit: Musashi007]
supergeek has quit [Quit: Goodbye cruel world...]
anisha has quit [Ping timeout: 264 seconds]
anisha has joined #ruby
byte512 has quit [Ping timeout: 268 seconds]
infernix has quit [Ping timeout: 265 seconds]
polishdub has joined #ruby
anisha has quit [Ping timeout: 268 seconds]
gizmore has joined #ruby
cschneid_ has quit [Remote host closed the connection]
nofxx_ has quit [Quit: Leaving]
nofxx has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
infernix has joined #ruby
gizmore|4 has quit [Ping timeout: 256 seconds]
mudstart has joined #ruby
anisha has joined #ruby
tsglove has quit [Quit: Leaving]
mikecmpbll has quit [Ping timeout: 264 seconds]
vtx has quit [Quit: vtx]
infernix has quit [Ping timeout: 252 seconds]
anisha has quit [Ping timeout: 265 seconds]
anisha has joined #ruby
ana_ has quit [Quit: Leaving]
cschneid_ has joined #ruby
anisha has quit [Ping timeout: 272 seconds]
sightes has quit [Ping timeout: 252 seconds]
TomyLobo has joined #ruby
shinnya has quit [Ping timeout: 272 seconds]
anisha has joined #ruby
infernix has joined #ruby
anisha has quit [Ping timeout: 240 seconds]
vtx has joined #ruby
anisha has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
^mtkd has joined #ruby
anisha has quit [Ping timeout: 265 seconds]
dn` has joined #ruby
anisha has joined #ruby
synthroi_ has quit [Remote host closed the connection]
bweston92 has quit [Quit: Connection closed for inactivity]
oleo has joined #ruby
CrazyEddy has joined #ruby
dinfuehr has quit [Ping timeout: 252 seconds]
dinfuehr has joined #ruby
dionysus69 has joined #ruby
dopie has joined #ruby
<dopie> hey guyys im using the google drive ruby gem and trying to upload an image to to a folder... I keep on getting a TypeError and im not sure why as I followed the api docs
anisha has quit [Ping timeout: 272 seconds]
synthroid has joined #ruby
jaequery has joined #ruby
chocoelho has quit [Ping timeout: 252 seconds]
nofxx_ has joined #ruby
nofxx has quit [Read error: Connection reset by peer]
Serpent7776 has quit [Quit: Leaving]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
alfiemax has quit [Remote host closed the connection]
anisha has joined #ruby
<dopie> got it working woohoo
dopie has quit [Quit: leaving]
apeiros_ has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
anisha has quit [Ping timeout: 252 seconds]
^mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
amatas has quit [Quit: amatas]
vichib has joined #ruby
bmurt has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Client Quit]
anisha has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
JaccoP has quit [Ping timeout: 260 seconds]
JaccoP has joined #ruby
mudstart has quit [Remote host closed the connection]
anisha has quit [Ping timeout: 264 seconds]
Dreamer3 has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
selim has quit [Ping timeout: 264 seconds]
anisha has joined #ruby
graft has quit [Ping timeout: 268 seconds]
cagomez has joined #ruby
selim has joined #ruby
graft_ has joined #ruby
workmad3_ has quit [Ping timeout: 256 seconds]
chocoelho has joined #ruby
Cavallari has joined #ruby
anisha has quit [Ping timeout: 248 seconds]
vtx has quit [Quit: vtx]
JaccoP has quit [Quit: Leaving]
balo has quit [Ping timeout: 272 seconds]
KeyJoo has quit [Ping timeout: 272 seconds]
anisha has joined #ruby
jaruga has quit [Quit: jaruga]
sanscoeur has joined #ruby
balo has joined #ruby
Musashi007 has joined #ruby
alfiemax has quit [Remote host closed the connection]
raynold has joined #ruby
conta2 has joined #ruby
claudiuinberlin has joined #ruby
alfiemax has joined #ruby
Musashi007 has quit [Quit: Musashi007]
pastorinni has joined #ruby
alfiemax has quit [Remote host closed the connection]
KeyJoo has joined #ruby
DTZUZO has quit [Quit: WeeChat 2.0]
Axy has joined #ruby
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
darkhanb has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
Mia has quit [Ping timeout: 240 seconds]
Ishido has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Axy has quit [Ping timeout: 240 seconds]
vtx has joined #ruby
vondruch has quit [Ping timeout: 248 seconds]
hfp_work has quit [Ping timeout: 256 seconds]
jamesaxl has quit [Ping timeout: 264 seconds]
hfp_work has joined #ruby
mistergibson_ has joined #ruby
jamesaxl has joined #ruby
mistergibson has quit [Ping timeout: 272 seconds]
vtx has quit [Ping timeout: 265 seconds]
lxsameer has quit [Quit: WeeChat 1.9.1]
mistergibson__ has joined #ruby
mistergibson_ has quit [Ping timeout: 240 seconds]
mistergibson__ has quit [Read error: Connection reset by peer]
mistergibson__ has joined #ruby
conta2 has quit [Quit: conta2]
synthroi_ has joined #ruby
vtx has joined #ruby
synthroid has quit [Ping timeout: 248 seconds]
heliumk has joined #ruby
alfiemax has joined #ruby
heliumk has quit [Client Quit]
goepsilongo has quit [Ping timeout: 252 seconds]
<sylario> I have a ruby syntax question :
<sylario> super do |user|
heliumk has joined #ruby
<sylario> I have this in a method of a class with inheritance
<sylario> where does the value passed to the block come from?
TinkerTyper has quit [Read error: Connection reset by peer]
nickjj has quit [Read error: Connection reset by peer]
TinkerTyper has joined #ruby
anisha has quit [Ping timeout: 252 seconds]
nogic has joined #ruby
heliumk has quit [Quit: heliumk]
heliumk has joined #ruby
vtx has quit [Ping timeout: 248 seconds]
mtkd has quit [Ping timeout: 256 seconds]
<gizmore> hi sylario
<sylario> hi
<gizmore> the method probably takes a block as parameter
<gizmore> super does not allow different args
mtkd has joined #ruby
<gizmore> i am not into ruby lately
<sylario> It's devise stuff. I am not on this part of the auth, but I'll look into the context, even if it's pretty tricky
<gizmore> i know rails and devise a bit
<gizmore> your question is more ruvy related tho
<sylario> I need to understand devise exactly because I am adding auth token for an ember front app on the second user model and also, the app still serve good old HTML
<gizmore> devise is a huge incompetent stash of bad code
<sylario> so every tutorial for token auth is relevant, but i need to make adjutments for my specifric case
<gizmore> devise is a huge incompetent stash of bad code
<sylario> :/
<gizmore> seriously
<gizmore> why would you store activations in the user table
<gizmore> user table is the final real users
<gizmore> not the activations
<gizmore> devise => sucks
<gizmore> noobware
<sylario> José valim is a noob?
<gizmore> yes
<gizmore> in terms of working path / user process
<gizmore> howto
apeiros_ has joined #ruby
<gizmore> wb
milardovich has joined #ruby
<gizmore> sylario: you enter your nick and its ultimatively taken
<gizmore> that was devise of the art back in 201?
<sylario> What do you mean?
<gizmore> you choose a mail / nick
<gizmore> and then its taken
<gizmore> you can resend token yeah
milardovich has quit [Client Quit]
<gizmore> but if someone else comes up with the same nick.... bad luck
<gizmore> taken
<gizmore> it's kinda DoS
<gizmore> also bad process / register signup process
<gizmore> bad bad flow
<gizmore> devise sucks
jaequery has joined #ruby
apeiros_ has quit [Ping timeout: 248 seconds]
aScottishBoat has joined #ruby
nofxx_ has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
conta1 has joined #ruby
c0ncealed has quit [Remote host closed the connection]
c0ncealed has joined #ruby
jaequery has quit [Quit: Textual IRC Client: www.textualapp.com]
SeepingN has joined #ruby
ammar has quit [Quit: leaving]
Psybur has quit [Ping timeout: 265 seconds]
Ltem has quit [Quit: Leaving]
nickjj has joined #ruby
nogic has quit [Ping timeout: 264 seconds]
<TomyLobo> oh, that's a commonly used library that does that? explains a ton of pages where that happened
mistergibson__ has quit [Quit: Leaving]
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
TamePikachu has quit [Ping timeout: 264 seconds]
alfiemax has quit [Remote host closed the connection]
KeyJoo has quit [Ping timeout: 260 seconds]
monodoh has joined #ruby
monodoh has left #ruby [#ruby]
mensvaga has left #ruby [#ruby]
ammar has joined #ruby
Riddell has quit [Ping timeout: 248 seconds]
Riddell has joined #ruby
apeiros_ has joined #ruby
KeyJoo has joined #ruby
heliumk has quit [Quit: heliumk]
Klumben has quit [Ping timeout: 255 seconds]
zautomata has joined #ruby
Klumben has joined #ruby
cschneid_ has quit [Remote host closed the connection]
DTZUZU has quit [Quit: WeeChat 1.9]
DTZUZU has joined #ruby
d2dchat has quit [Ping timeout: 248 seconds]
aScottishBoat has quit [Ping timeout: 256 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vtx has joined #ruby
dviola has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
cschneid_ has joined #ruby
neo95 has joined #ruby
cschneid_ has quit [Ping timeout: 240 seconds]
Cavallari has quit [Quit: Cavallari]
Cavallari has joined #ruby
Cavallari has quit [Client Quit]
garyserj has joined #ruby
banisterfiend has joined #ruby
mtkd has quit [Ping timeout: 252 seconds]
mtkd has joined #ruby
chocoelho1 has joined #ruby
<garyserj> How can I install a gem so that only my application can use it so it's not globally installed?
chocoelho has quit [Ping timeout: 272 seconds]
chocoelho1 is now known as chocoelho
alfiemax has joined #ruby
amatas has joined #ruby
<apeiros_> garyserj: that's what you'd use bundler for
amatas has quit [Quit: amatas]
vyorkin has quit [Quit: WeeChat 1.9.1]
bkxd has joined #ruby
amatas has joined #ruby
<al2o3-cr> apeiros_: can you also use gemsets?
apeiros_ is now known as apeiros
<apeiros> sure. though bundler is being merged into rubygems, so I'd rather go with bundler
elijah has joined #ruby
<al2o3-cr> i wasn't sure, so i thought i'd ask :)
elijah is now known as Guest19031
safetypin has joined #ruby
<al2o3-cr> that's in 2.5 release then i imagine.
<apeiros> not sure how far they are
<apeiros> 2.3 and 2.4's rubygems can already process the gemfile iirc
<al2o3-cr> ah, ok.
Guest19031 has left #ruby [#ruby]
zautomata1 has joined #ruby
nofxx_ has joined #ruby
AgentVenom has joined #ruby
zautomata has quit [Ping timeout: 265 seconds]
<garyserj> but if in my gem file I do e.g. source 'https://rubygems.org'\n gem 'banner' then I do bundle install. Then I do cd .. then I do gem list, then I see the banner gem installed. So it's not just local to my application.
nofxx has quit [Ping timeout: 268 seconds]
zautomata2 has joined #ruby
zautomata1 has quit [Ping timeout: 256 seconds]
<apeiros> garyserj: `bundle install -h`, look for --path
<apeiros> and yes, standard modus operandi is to install to system location. usually that makes the most sense.
nadir has joined #ruby
mikecmpbll has joined #ruby
skweek has joined #ruby
zautomata3 has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has quit [Remote host closed the connection]
zautomata2 has quit [Ping timeout: 272 seconds]
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
apeiros_ is now known as apeiros
jobewan has quit [Ping timeout: 252 seconds]
jeffreylevesque has joined #ruby
KeyJoo has quit [Ping timeout: 256 seconds]
jeffreylevesque_ has quit [Ping timeout: 252 seconds]
koalabear has joined #ruby
jeffreylevesque has quit [Ping timeout: 264 seconds]
safetypin has quit [Quit: ZZZzzz…]
duderonomy has joined #ruby
yqt has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AgentVenom has quit [Quit: Textual IRC Client: www.textualapp.com]
cadillac_ has quit [Read error: Connection reset by peer]
zautomata4 has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
nofxx_ has quit [Remote host closed the connection]
stealth[] has quit [Read error: Connection reset by peer]
zautomata3 has quit [Ping timeout: 252 seconds]
conta1 has quit [Quit: conta1]
yqt has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
zautomata4 has quit [Ping timeout: 240 seconds]
dachinat has joined #ruby
cadillac_ has joined #ruby
<dachinat> Hello. Is there any variable with which I get get result of condition? I.e.: 5 - 1 > 0 ? $_value_of_5-1 : false
cagomez has joined #ruby
N64N64 has left #ruby ["WeeChat 1.4"]
<dminuoso> Maybe in #perl
<dachinat> i see
polishdub has quit [Quit: leaving]
pelegreno has quit [Read error: Connection reset by peer]
pelegreno has joined #ruby
<al2o3-cr> see how does pry does it
cagomez has quit [Ping timeout: 248 seconds]
<al2o3-cr> 5 - 1 > 0 ? _ : false
nofxx has quit [Read error: Connection reset by peer]
nofxx has joined #ruby
synthroi_ has quit []
raldu has joined #ruby
cagomez has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
halt- has joined #ruby
phate408 has quit [Ping timeout: 265 seconds]
jeffreylevesque has joined #ruby
koalabear has quit [Ping timeout: 260 seconds]
Ishido has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 248 seconds]
jamesaxl has quit [Quit: WeeChat 1.9.1]
<apeiros> dachinat: how about assigning it to a variable?
nofxx has joined #ruby
Ishido has joined #ruby
Dimik has joined #ruby
<dachinat> thanks assigning to variable is ok
yokel has joined #ruby
raldu has quit [Quit: leaving]
k0mpa has quit [Ping timeout: 272 seconds]
<garyserj> in rails, I have , in application_controller.rb, def hello\n render html: "hello"\n end. What kind of statement is that? I notice I can't do puts render html: "abc". I'm wondering what syntactically that render line is and its colon?
<dminuoso> garyserj: its a method that does imperative magical stuff.
<dminuoso> garyserj: its basically short for: render({ :html => "hello" })
<garyserj> ah ok, thanks
<apeiros> garyserj: `foo bar: "baz"` is short for `foo(bar: "baz")` is short for `foo({bar: "baz"})` is short for `foo({:bar => "baz"})`
<dminuoso> that
<garyserj> yeah, thanks
<garyserj> and what class is render from?
<apeiros> also as of ruby 2.dunnoanymore, foo(bar: "baz") can also be syntax for passing a keyword arg
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> well, an ancestor of the class you're in
<apeiros> you can do `binding.pry` at that place and use code to figure it out. e.g. via `method(:render).owner`
<apeiros> >> {}.method(:find).owner
<ruby[bot]> apeiros: # => Enumerable (https://eval.in/924526)
<Neptu> hej I have a problem i do not undestand why i need to convert this projectName = config['projectName'] and use projectName instead of using something like #{config...}
<Neptu> is very strange
<Neptu> but im new on ruby so maybe is something i do not understand
<Neptu> the complete example looks like this: https://pastebin.com/8cNzPC3G
<ruby[bot]> Neptu: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/dc3762054905f266b2810a66ab8f6047
<ruby[bot]> Neptu: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<apeiros> YAML::load(File.open -> YAML.load_file
<Neptu> apeiros: i test that out
reber has quit [Remote host closed the connection]
<apeiros> (that's a suggestion for improvement - I don't yet really understand what your actual question is)
<apeiros> also for the sake of whatever deity you prey to, do not use :: to invoke methods. that looks like code for ruby 1.6 or older :)
<Neptu> apeiros: the question is i cannot use the config[...][..][...] I need first to create variables and then use the variables
mtkd has quit [Ping timeout: 240 seconds]
<apeiros> *pray
<apeiros> Neptu: uh, no? you can use config[…][…][…] just fine
<apeiros> and apparently you even do
<Neptu> apeiros vagrant kind of breaks if I use directly those variables
<apeiros> yeah, I don't have any idea what "kind of breaks" means
mtkd has joined #ruby
<Neptu> one sec i generate the error again
<apeiros> include the code which causes the error too
<apeiros> note that you can put more than one file into a single gist. use one for the error and one for the code.
<Neptu> apeiros: can't convert Vagrant::Config::V2::DummyConfig to String (Vagrant::Config::V2::DummyConfig#to_str gives Vagrant::Config::V2::DummyConfig) (TypeError)
<apeiros> read ^
BTRE has quit [Quit: Leaving]
troys has joined #ruby
<apeiros> almost there
<Neptu> now i only changed the box
<apeiros> full exception please (includes a backtrace)
<apeiros> also pro tip: use .rb in the filename and we get to enjoy syntax highlighting in gist
<apeiros> you can just update the gist, no need to create a new one
<apeiros> well…
<Neptu> i added a comment
<apeiros> at this line, config is a new variable with a new value
<apeiros> maybe don't call different variables by the same name?
<Neptu> mmmmmmmmmmmmm
<Neptu> obiously
chocoelho has quit [Quit: chocoelho]
BTRE has joined #ruby
<Neptu> ok thanks! seems i need some sleep
<apeiros> :)
<apeiros> happens
jnyw has joined #ruby
dachinat has quit [Ping timeout: 260 seconds]
brian_penguin has quit [Quit: Leaving]
adac has quit [Ping timeout: 264 seconds]
<Neptu> apeiros: yes i was too focused on the forest i did not saw the tree
bougyman has quit [Ping timeout: 264 seconds]
<Neptu> going to bed thanks!
<apeiros> yw
John___ has joined #ruby
vtx has quit [Quit: vtx]
John___ has quit [Read error: Connection reset by peer]
sanscoeu_ has joined #ruby
sanscoeur has quit [Ping timeout: 252 seconds]
sanscoeu_ has quit [Ping timeout: 248 seconds]
amatas has quit [Quit: amatas]
neo95 has quit [Quit: Leaving]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
vtx has joined #ruby
pastorinni has quit [Remote host closed the connection]
neo95 has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
bougyman has joined #ruby
alfiemax has quit [Remote host closed the connection]
cschneid_ has joined #ruby