havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.5.0, 2.4.3, 2.3.6, 2.6.0-preview1: https://www.ruby-lang.org || Paste 4+ lines of text to https://gist.github.com || Rails questions? Ask in #RubyOnRails || Books: https://goo.gl/wpGhoQ || Logs: https://irclog.whitequark.org/ruby
drewmcmillan has joined #ruby
cdg_ has joined #ruby
ryandv has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
milardovich has quit [Remote host closed the connection]
n0m4d1c has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 264 seconds]
milardovich has joined #ruby
cdg_ has quit [Ping timeout: 256 seconds]
milardovich has quit [Remote host closed the connection]
ryandv has quit [Ping timeout: 240 seconds]
eckhardt_ has quit [Read error: Connection reset by peer]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raul782 has joined #ruby
eckhardt_ has joined #ruby
clemens3 has quit [Ping timeout: 264 seconds]
\void has quit [Quit: So long, and thanks for all the fish.]
ramfjord has quit [Ping timeout: 248 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang61 has joined #ruby
Yzguy has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
ryandv has joined #ruby
cdg has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang61 has quit [Ping timeout: 256 seconds]
riotjones has joined #ruby
JoshS has joined #ruby
shinnya has joined #ruby
cdg has quit [Ping timeout: 264 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
orbyt_ has joined #ruby
dmitriy_ has joined #ruby
n0m4d1c has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
cagomez has quit [Ping timeout: 264 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul has quit [Ping timeout: 268 seconds]
minimalism has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
roca has quit [Quit: roca]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
workmad3 has joined #ruby
herbmillerjr has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
kn-928_ has joined #ruby
milardovich has joined #ruby
ramfjord has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
shinnya has quit [Ping timeout: 246 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
kn-928_ has quit [Ping timeout: 260 seconds]
c0ncealed has quit [Read error: Connection reset by peer]
cdg has joined #ruby
c0ncealed has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jenrzzz_ has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 246 seconds]
ryandv has quit [Ping timeout: 260 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cdg has quit [Remote host closed the connection]
hahuang61 has joined #ruby
ramfjord has joined #ruby
paraxial has quit [Ping timeout: 264 seconds]
hahuang61 has quit [Ping timeout: 260 seconds]
jcarl43 has quit [Quit: WeeChat 2.0.1]
kn-928_ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
netherwolfe has joined #ruby
ramfjord has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
mikecmpbll has quit [Quit: inabit. zz.]
kn-928_ has quit [Ping timeout: 260 seconds]
s3nd1v0g1us has quit [Ping timeout: 252 seconds]
netherwolfe has quit [Ping timeout: 240 seconds]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
jenrzzz has quit [Ping timeout: 248 seconds]
eckhardt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
ramfjord has quit [Ping timeout: 264 seconds]
Yzguy has quit [Quit: Zzz...]
orbyt_ has joined #ruby
cagomez has joined #ruby
John_Ivan has quit [Read error: Connection reset by peer]
cagomez has quit [Ping timeout: 256 seconds]
marr has quit [Ping timeout: 256 seconds]
KeyJoo has quit [Ping timeout: 264 seconds]
detectiveaoi has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
jeffreylevesque has joined #ruby
xuyuheng has joined #ruby
n0m4d1c has joined #ruby
houhoulis has quit []
houhoulis has joined #ruby
alfiemax has joined #ruby
paraxial has joined #ruby
alfiemax has quit [Remote host closed the connection]
alex`` has quit [Ping timeout: 255 seconds]
dviola has joined #ruby
rexb0t has joined #ruby
marxarelli is now known as marxarelli|afk
cdg has joined #ruby
Sambsquanch has quit [Quit: Peace, take it easy.]
milardovich has quit []
dinfuehr has quit [Ping timeout: 260 seconds]
kn-928_ has joined #ruby
X-Jester has quit [Ping timeout: 265 seconds]
X-Jester_ has joined #ruby
vutral|kali has quit [Ping timeout: 264 seconds]
kies has quit [Ping timeout: 256 seconds]
dinfuehr has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
X-Jester_ has left #ruby [#ruby]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
foo___ has joined #ruby
foo___ has quit [Client Quit]
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
X-Jester has joined #ruby
hahuang61 has joined #ruby
kn-928_ has quit [Ping timeout: 246 seconds]
Yxhuvud has joined #ruby
cdg has joined #ruby
ryandv has joined #ruby
darkhanb has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
n0m4d1c has quit [Remote host closed the connection]
rexb0t has quit [Quit: Mutter: www.mutterirc.com]
m27frogy has quit [Ping timeout: 256 seconds]
sammi` has quit [Ping timeout: 264 seconds]
sammi` has joined #ruby
m27frogy has joined #ruby
cagomez has joined #ruby
pilne has quit [Quit: Leaving]
cagomez has quit [Ping timeout: 260 seconds]
rexb0t has joined #ruby
vutral|kali has quit [Ping timeout: 246 seconds]
rgb-one has joined #ruby
<rgb-one> Hey
<rgb-one> what helper is included with haml that can provide the index route?
<rgb-one> if any
linduxed has quit [Ping timeout: 255 seconds]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
workmad3 has joined #ruby
vutral|kali has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
workmad3 has quit [Ping timeout: 246 seconds]
rexb0t has quit [Quit: Mutter: www.mutterirc.com]
Emmanuel_Chanel has quit [Ping timeout: 265 seconds]
rgb-one has quit [Quit: Konversation terminated!]
ryandv has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
gizmore|2 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4350 has quit [Quit: AJA4350]
gizmore has quit [Ping timeout: 268 seconds]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
vutral|kali has quit [Ping timeout: 246 seconds]
sspreitzer has quit [Ping timeout: 256 seconds]
sspreitz has joined #ruby
nowhere_man has joined #ruby
kies has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
dviola has quit [Quit: WeeChat 2.0.1]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
hahuang61 has joined #ruby
vutral|kali has quit [Excess Flood]
Code4Dopamine has quit [Ping timeout: 260 seconds]
nowhereman_ has quit [Ping timeout: 256 seconds]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
hahuang61 has quit [Ping timeout: 264 seconds]
houhoulis has quit [Remote host closed the connection]
vutral|kali has quit [Ping timeout: 260 seconds]
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
lopezd has joined #ruby
<lopezd> Hello everyone. I have a question regarding inheritance and attribute accessors anyone able to offer some guidance?
<dminuoso> lopezd: Shoot.
cdg has quit [Remote host closed the connection]
ramfjord has joined #ruby
<lopezd> lets say i have an Animal class with an initialize method that sets @type=mamal and has a private attr_reader :type
govg has joined #ruby
<lopezd> when i define a subclass Animal > Dog in the Dogs initialize method i print type and i get mammal as expected
<lopezd> first question why i can set the type to a new value inside the Dog class when only an attr_reader and not an attr_accessor is defined?
<lopezd> i can easily do type=reptile in the Dog class and change the value
<dminuoso> lopezd: attr_accessor/attr_reader are just for external access, and they are only shorthands for: `def foo=(a); @foo = a; end` and `def foo; @foo; end`
<dminuoso> lopezd: From within the class you can directly access ivars using @foo
<lopezd> I see, exactly then i was wondering of the meaning of having a private external accessor....
<lopezd> i have seen it many times
ramfjord has quit [Ping timeout: 260 seconds]
<dminuoso> lopezd: attr_accessor is generally a rather bad thing because you no longer can maintain an invariant.
<dminuoso> lopezd: attr_reader is generally fine, but depends on whether you want to leak internals
detectiveaoi has quit [Remote host closed the connection]
<lopezd> so if i want my base class to
<lopezd> a. define a variable that should be default for all child classes
detectiveaoi has joined #ruby
<lopezd> b. define a variable that needs to be set by all child classes
<lopezd> what is the ruby way of doing it?
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
<dminuoso> lopezd: You could use the inherited hook
<dminuoso> lopezd: But I dont think its generally good style.
<lopezd> i have seen that but yes not a fan
<dminuoso> lopezd: Just initialize it in your initializer, and demand that descendants call `super`
<lopezd> so accessors should only be used when you need access to a variable after a class is instantiated right?
<dminuoso> lopezd: Right, and sparingly at best.
<lopezd> I see
<lopezd> I have seen this example at reek's github https://pastebin.com/a4USBXmD
<ruby[bot]> lopezd: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/1b8bda6da92e85fc57e329ec2c03f046
<ruby[bot]> lopezd: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<lopezd> what is the point of that private attr_reader
<lopezd> apologies for paste bin
<dminuoso> lopezd: Just some style some people like to use
<lopezd> man trying so hard to follow all the guidelines i am shooting myself in the face haha
<dminuoso> lopezd: Instead of @foo they can just do self.foo = .../foo
<dminuoso> lopezd: You can ignore it, carry on and use ivars.
detectiveaoi has quit [Remote host closed the connection]
detectiveaoi has joined #ruby
<lopezd> i have been avoiding the use of @@ but have been using private attr_readers, writers module_function private_class_method etc
<dminuoso> lopezd: keeo on avoiding @@
<lopezd> i am just perplexed at the use of private accessors they seem to be useless. i can just say private @type right?
<dminuoso> lopezd: Yup.
<dminuoso> lopezd: well @type _is_ private.
<dminuoso> lopezd: But you are absolutely right, its pretty useless
<lopezd> without the private keyword?
<dminuoso> lopezd: You dont have to say anything.
<dminuoso> ivars magically exist.
<dminuoso> No need to declare them, they just default to nil.
<lopezd> private is for methods i guess?
<dminuoso> lopezd: Yup.
<lopezd> i see
<lopezd> so class Animal @type
<lopezd> that will make a private variable type?
<dminuoso> lopezd: So you only set them in #initialize if you need to enforce some invariant about their content
<lopezd> then a subclass can freely access it and modify it right?
<dminuoso> lopezd: You dont declare variables in Ruby.
<dminuoso> lopezd: You just use them. If you need some default value, use #initialize
<lopezd> they should be in initialize if a default value is required
<lopezd> cool
<dminuoso> lopezd: Right. And if you want that to propagate through inheritance, then require descendants to call `super/super()` in their #initialize
<lopezd> so in a subclass once i call super in initialize i get access to those @ define in the parent class?
<lopezd> another thing i noticed, the reek example i shared earlier, if the subclass does not define initialize the parent class @variable omg is accessible without @ that is because of the reader right?
<lopezd> maybe that is a "good use" of a private reader accessing variable through a method albeit a bit confusing when seen from subclass
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mia has quit [Read error: Connection reset by peer]
<dminuoso> lopezd: well not really "without the @"
<dminuoso> lopezd: @foo taps into an ivar named foo
<dminuoso> lopezd: foo taps into a method called foo
<lopezd> is because of the attr_reader haha
<lopezd> kind of confusing
<dminuoso> lopezd: well it just so happens, that attr_reader turns the second into the first.
<dminuoso> lopezd: but just seeing an `invocation` of `foo` of course does not guarantee that.
<lopezd> yeap
<dminuoso> class Thing; def foo; "Just kidding you!; end; end
<lopezd> if i define an ivar in the top of class (outside) initialize it is accessible to all the methods but if I do @foo in a method then it is only accessible in that method right?
abj_linuxgeek has joined #ruby
banisterfiend has joined #ruby
hahuang61 has joined #ruby
Emmanuel_Chanel has joined #ruby
howdoi has joined #ruby
nadir has joined #ruby
xuyuheng has quit [Ping timeout: 240 seconds]
abj_linuxgeek has quit [Quit: Leaving]
cthulchu| has quit [Read error: Connection reset by peer]
cthulchu| has joined #ruby
elcontrastador has joined #ruby
lpmusic has quit [Read error: Connection reset by peer]
lpmusic has joined #ruby
jcarl43 has joined #ruby
trautwein has quit [Quit: ZNC 1.6.5 - http://znc.in]
trautwein has joined #ruby
tolerablyjake has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
kn-928_ has joined #ruby
Yxhuvud has joined #ruby
ltd_ has quit [Ping timeout: 252 seconds]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kn-928_ has quit [Ping timeout: 248 seconds]
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
xuyuheng has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cloaked1 has joined #ruby
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
Emmanuel_Chanel has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
Yzguy has joined #ruby
arescorpio has joined #ruby
hahuang61 has quit [Ping timeout: 246 seconds]
ChaosBringer has quit [Quit: Leaving]
banisterfiend has joined #ruby
jinie has quit [Ping timeout: 264 seconds]
arescorpio has quit [Quit: Leaving.]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ChaosBringer has joined #ruby
jinie has joined #ruby
ruby-meister has joined #ruby
<ruby-meister> hello
<ruby-meister> quick question: let's say I have an array like this: arr = [1,2,3,4,5,6]
<ruby-meister> and I wanna print everything in it
<ruby-meister> arr.each do |i|
<ruby-meister> puts arr[i]
<ruby-meister> end
<ruby-meister> why doesn't this print out 1?
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> ruby-meister: .each invokes the block for each element, not each index.
<dminuoso> So in your case `i` itself already is the element you want.
<ruby-meister> oh i get it, thanks!
aufi has joined #ruby
ruby-meister has quit [Quit: Page closed]
xuyuheng has quit [Ping timeout: 240 seconds]
aufi has quit [Remote host closed the connection]
ChaosBringer has quit [Ping timeout: 260 seconds]
ChaosBringer has joined #ruby
banisterfiend has joined #ruby
ramfjord has joined #ruby
cdg has joined #ruby
ChaosBringer has quit [Ping timeout: 248 seconds]
jinie has quit [Ping timeout: 264 seconds]
sidx64 has joined #ruby
jinie has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
cdg has quit [Ping timeout: 240 seconds]
ChaosBringer has joined #ruby
jinie has quit [Ping timeout: 240 seconds]
jinie has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
xuyuheng has joined #ruby
Yzguy has quit [Quit: Cya]
aufi has joined #ruby
ChaosBringer has quit [Ping timeout: 240 seconds]
ChaosBringer has joined #ruby
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xuyuheng has quit [Ping timeout: 246 seconds]
xuyuheng has joined #ruby
troys has quit [Quit: Bye]
hahuang65 has quit [Ping timeout: 264 seconds]
xuyuheng has quit [Ping timeout: 246 seconds]
hahuang65 has joined #ruby
jamesaxl has joined #ruby
banisterfiend has quit [Ping timeout: 240 seconds]
xuyuheng has joined #ruby
aufi has quit [Remote host closed the connection]
sauvin_ has joined #ruby
KeyJoo has joined #ruby
KeyJoo has quit [Max SendQ exceeded]
KeyJoo has joined #ruby
TinkerTyper has quit [Quit: ZNC 1.7.x-nightly-20180219-15ccaca4 - https://znc.in]
alfiemax has joined #ruby
TinkerT has joined #ruby
morfin60 has joined #ruby
sauvin_ is now known as bocaneri
detectiveaoi has quit [Read error: Connection reset by peer]
oleo has quit [Quit: Leaving]
ChaosBringer has quit [Read error: Connection reset by peer]
minimalism has quit [Quit: minimalism]
workmad3 has joined #ruby
ChaosBringer has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
imode has quit [Ping timeout: 240 seconds]
ta_ has quit [Ping timeout: 260 seconds]
suukim has joined #ruby
roshanavand has quit [Remote host closed the connection]
<morfin60> i am not sure how implement next thing: i need to perform some job for different "accounts" with execution limit(let's say 35 time per day) for each account
raddazong has quit [Remote host closed the connection]
\void has joined #ruby
<morfin60> what you'd use for this: Sidekiq? parallel? Let's assume most of time threads will be idling so i don't need N threads all the time
sidx64 has quit [Read error: Connection reset by peer]
Guest95598 has quit [Remote host closed the connection]
mrush has joined #ruby
mrush is now known as Guest35741
\void has quit [Ping timeout: 246 seconds]
ramfjord has joined #ruby
sidx64 has joined #ruby
conta has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
conta has quit [Remote host closed the connection]
alfiemax has joined #ruby
conta has joined #ruby
\void has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
jcarl43 has quit [Quit: WeeChat 2.0.1]
suukim has quit [Remote host closed the connection]
andikr has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
mtkd has joined #ruby
alex`` has joined #ruby
cloaked1 has quit [Quit: Leaving]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
rwb has quit [Ping timeout: 256 seconds]
sidx64 has joined #ruby
SebastianThorn has joined #ruby
alfiemax has quit [Remote host closed the connection]
SebastianThorn has quit [Client Quit]
SebastianThorn has joined #ruby
karapetyan has joined #ruby
suukim has joined #ruby
aufi has joined #ruby
riotjones has quit [Remote host closed the connection]
riotjones has joined #ruby
alfiemax has joined #ruby
rwb has joined #ruby
riotjones has quit [Ping timeout: 246 seconds]
alfiemax has quit [Remote host closed the connection]
clemens3 has joined #ruby
TomyWork has joined #ruby
oetjenj has joined #ruby
ta_ has joined #ruby
SebastianThorn has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
SebastianThorn has joined #ruby
cdg has joined #ruby
alfiemax has joined #ruby
schneider has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
alfiemax has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
n008f4g_ has joined #ruby
suukim has quit [Quit: Konversation terminated!]
aupadhye has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
ianfleeton has joined #ruby
ianfleeton has quit [Client Quit]
hahuang65 has joined #ruby
ianfleeton has joined #ruby
dionysus69 has joined #ruby
n008f4g_ has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
Burgestrand has joined #ruby
aufi_ has joined #ruby
amatas has joined #ruby
aufi has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
jottr has joined #ruby
<zenspider> morfin60: do the simplest thing that could possibly work.
<zenspider> don't make it harder than it needs to be (yet--but probably never)
amatas has quit [Quit: amatas]
amatas has joined #ruby
SebastianThorn has quit [Ping timeout: 268 seconds]
sylario has joined #ruby
RougeR has quit [Ping timeout: 246 seconds]
_sfiguser has joined #ruby
<_sfiguser> hello all, when designing ruby software, are you using UML or it is something you don't usually do ?
<dminuoso> I usually do some doodles on scratch paper while Im drunk.
<Burgestrand> _sfiguser not usually, but occasionally, definitely more often when discussing database layout
<Burgestrand> although the formality of the format is closer to what dminuoso illustrated
<Burgestrand> squigglys with crow's feet-relationships
jenrzzz has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 246 seconds]
ramfjord has joined #ruby
guille-moe has joined #ruby
Mike11 has joined #ruby
sidx64 has joined #ruby
sidx64 has quit [Client Quit]
ramfjord has quit [Ping timeout: 256 seconds]
amatas has quit [Remote host closed the connection]
cdg has joined #ruby
cdg_ has joined #ruby
phaul has joined #ruby
kapil___ has joined #ruby
cdg__ has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
universa1 has joined #ruby
universal has quit [Read error: Connection reset by peer]
schneider has quit [Ping timeout: 264 seconds]
cdg_ has quit [Ping timeout: 252 seconds]
marr has joined #ruby
za1b1tsu has joined #ruby
cdg__ has quit [Ping timeout: 246 seconds]
phaul has quit [Ping timeout: 256 seconds]
universa1 has quit [Read error: Connection reset by peer]
schneider has joined #ruby
<morfin60> i am not sure how "persist" object connected to browser
<dminuoso> morfin60: <a href="mailto:persistor@server.com?subject=..."></a>, use JavaScript to serialize your objects, put it into the body, and have the user click on it.
<dminuoso> That's how I persist my web application state.
mtkd has quit [Ping timeout: 246 seconds]
sfiguser__ has joined #ruby
mtkd has joined #ruby
<tbuehlmann> seems legit
riotjones has joined #ruby
_sfiguser has quit [Ping timeout: 260 seconds]
<morfin60> dminuoso, what?
Mike11 has quit [Quit: Leaving.]
<morfin60> i meant persist N Selenium wrapper objects somewhere
sidx64 has joined #ruby
<za1b1tsu> Hello anyone using vim with ruby?
<dminuoso> za1b1tsu: Not anymore. I just switched to the dark side.
<dminuoso> za1b1tsu: Whats up?
sfiguser__ has quit [Ping timeout: 256 seconds]
rahul_bajaj has joined #ruby
<dminuoso> tbuehlmann: You should I should write a book about the persistor pattern?
lopezd has quit [Ping timeout: 260 seconds]
<dminuoso> Java people all around the world would cheer.
<za1b1tsu> dminuoso, regarding tags, I am using ripper-tags, with gutentags(auto generates tags) with deoplete autocomplete. Everything was great, but as usual I wanted more, I wanted tags from the gemfiles, so I got gem-ripper-tags which is basically tpopes' ctags but with ripper-tags, that generates tag files for the gems. To include those tag files, I use vim-bundler, but now deoplete does not use the tags in my main project folder. Did you ever try to setup
<za1b1tsu> tags somewhat like this?
universa1 has joined #ruby
<dminuoso> Have you tried spacema... uh..
rabajaj has quit [Ping timeout: 264 seconds]
<za1b1tsu> spacema...?
<dminuoso> za1b1tsu: What if you manually `set tags=...` ?
\void has quit [Quit: So long, and thanks for all the fish.]
<dminuoso> Oh nothing, I was just making a sarcastic joke by suggesting you try out spacemacs.
Beams has joined #ruby
<tbuehlmann> dminuoso: I'd say just go for it
drewmcmillan has joined #ruby
drewmcmillan has quit [Client Quit]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
<zenspider> morfin60: so much for do the simplest thing that could possibly work...
pavelz has quit [Quit: i must go]
sidx64 has quit [Client Quit]
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
anisha__ has joined #ruby
rahul_bajaj has quit [Ping timeout: 252 seconds]
sidx64 has joined #ruby
sidx64 has quit [Client Quit]
riotjones has quit [Remote host closed the connection]
nomenkun has joined #ruby
riotjones has joined #ruby
nomenkun has quit [Client Quit]
rahul_bajaj has joined #ruby
sidx64 has joined #ruby
riotjones has quit [Ping timeout: 260 seconds]
Dimik has quit [Ping timeout: 256 seconds]
_sfiguser has joined #ruby
<_sfiguser> hello all, can somebody suggest me a good starting point for beginners who want to start with RoR ?
drewmcmillan has joined #ruby
<_sfiguser> ruy on rails
karapetyan has quit [Remote host closed the connection]
<dminuoso> ?rails _sfiguser
<ruby[bot]> _sfiguser: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
suukim has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xuyuheng has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
workmad3 has joined #ruby
linduxed has joined #ruby
leitz has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
sidx64 has joined #ruby
riotjones has joined #ruby
_sfiguser has quit [Ping timeout: 245 seconds]
Bish has joined #ruby
<Bish> somebody got a idea how i present a series of images as a video with ruby?
<mnemon> Bish: imagemagick/rmagick can probably do the conversion at least to gif?
<Bish> can't install the gem :(
<Bish> conftest.c:3:29: schwerwiegender Fehler: wand/MagickWand.h: Datei oder Verzeichnis nicht gefunden
<Bish> sorry for the german
<dminuoso> Now.
<dminuoso> You have revealed yourself.
<mnemon> probably need the imagemagick libs
<Bish> damn now i have to get rid of ze zikret plan to take over ze world with imagemaKICK
<Bish> mnemon: i have them
<dminuoso> I dont get how people use german locale on their machines.
<dminuoso> "schwerwiegender Fehler"
<dminuoso> Looks so silly
<Bish> i am wondering myself why i have that
<Bish> i think because i wanted de_DE.UTF-8 i guess, and it found its way to the locales
<Bish> dminuoso: it also does not help at all if you want to google that
xuyuheng has joined #ruby
<Bish> and don't have a gcc⇔english translation in your head
<dminuoso> Bish: especially the mental switchery...
<Bish> i do not even notice
<dminuoso> schwerwiegender Fehler: wand/[...]Wand.h
<Bish> if i watch a movie, i can't tell you if i did it in english or german afterwards
<Bish> ah, that's what you mean, no i also don't notice that
Burgestrand has quit [Quit: Closing time!]
<Bish> also i think usually my error messages are english, just not gcc.. why so ever
TheBrayn has quit [Ping timeout: 276 seconds]
<Bish> dminuoso: at home i only install en translations of software, but have de_DE.UTF-8 for locale.. at work i forgot to only activiate the building of english translations
Beams has quit [Quit: .]
Beams has joined #ruby
fribmendes is now known as fribmendes_away
Beams has quit [Client Quit]
xuyuheng has quit [Ping timeout: 240 seconds]
<leitz> if s is a string, what is the "&" doing in hash.collect(&s.method(:gsub)) ?
konsolebox has joined #ruby
<Bish> converting the method gsub to a proc
ciscam has quit [Ping timeout: 264 seconds]
<Bish> it doesn't matter what "s" is, since you're using & on s.method(...)
<Bish> . binds harder than &, so it's basicially &(s.method(:gsub))
<leitz> Bish, thanks! I was thinking it was doing something just to the string.
xuyuheng has joined #ruby
<Bish> leitz: nothing binds harder than . in ruby, NOZENG!
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has quit []
<leitz> Bish, danke. ;)
<Bish> GESUNDHEIT
<Bish> wait, we don't even do that
<Bish> Bitte :3
* dminuoso pokes Bish
<dminuoso> Bish: Are you sure that & binds stronger than . ?
<Bish> i am sure you're now telling me it doesn't
<leitz> German is on my list of languages to learn. Sadly, I have more desired languages than brain cells.
<Bish> in every case
<dminuoso> Bish: Haha no. Im just trying to throw you off your game.
<Bish> leitz: if you ask me, german is only good for poetry, it's not really logical, but you can express alot with one word.
<Bish> dminuoso: i think you taught me that
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> Bish: Doubt it, had to check before I tried to pull your leg.
<Bish> i hate MRI code so much
<dminuoso> Bish: You should see GHC code. That stuff is actually hackable
<Bish> it was some big name of this channel atleast
_sfiguser has joined #ruby
<Bish> dminuoso: ghc is worse?
xuyuheng has quit [Ping timeout: 240 seconds]
sidx64 has joined #ruby
<Bish> really, i love reading c code of implementations
<dminuoso> Bish: Huh? No. It's one of the cleanest compiler implementations Ive seen. I dived in last week and did some minor modifications with ease.
<Bish> but i don't know what matz smoked, or it was the lack thereof
<dminuoso> Increadibly well documented in code, even better documented out of code.
<Bish> ruby is unenjoyable to read
<Bish> dminuoso: but it's terribly slow, isn't it?
<dminuoso> Bish: what is slow?
<Bish> i heard that is the main drawback of people using it..
<Bish> ghc
xuyuheng has joined #ruby
<dminuoso> Bish: Well it has become slower, but you need to have a pretty hefty project to feel the pain though.
<Bish> i read about a survey where people had to say, what they hate most about haskell, that it compiles so slow
<dminuoso> Bish: For a long while the focus has been on writing a clean implementation with a focus on features.
<dminuoso> Bish: But there are regression tests that prevent the compiler from getting slower in place now.
<Bish> what's a .y file, btw?
<dminuoso> Bish: bison
<leitz> Ruby GHC?
<Bish> leitz: nope, we're super offtopic right now
<leitz> Bish, no problem. Trying to expand my horizons. Haskell?
<Bish> leitz: yes, dminuoso and me are huge fans.. while i am only a fan
<Bish> dminuoso can actually do something with it
<Bish> wish it wasn't so freaking ugly, in haskell people are like
<Bish> that's a pretty operator x = y .+ 3
<leitz> In reading Booch's "Object Oriented Design and Analysis", he talks a lot about Smalltalk. After reading it some of the Ruby-ism's seem familiar. In "Mastering Ruby Closures" the author likes Haskell, too.
<Bish> i really feel like one could do better
<dminuoso> Bish: Well lens kind of goes overboard with operators.. but beyond that its kind of okay.
<Bish> leitz: it struck me when i was doing ruby professionelly for 2 years.. when i noticed
<Bish> that ruby is really ONLY ONLY boxes(methods + attributes) sending messages to each other
<dminuoso> Bish: there's only a couple to keep in mind like <>, <$>, <*>, *>, <*, >>=, >>, (.)
<Bish> if you grasp that thought, it becomes alot easier
<Bish> dminuoso: yeah but i am talking about when people write their pseudo-dsls
<Bish> and they're like.. defining "_+" to transfer it in + in SQL or something
<leitz> Bish, I'm slowly catching on. However, my brain translaste "Objects" to "nouns", or "things".
<Bish> that's not fucking pretty.. same thing in ruby is DB[:table] { column+3 }
<dminuoso> Bish: Well thats not a language symptom. What library is _+ from?
<Bish> leitz: object = a circle, which is closed, methods are doorways to that closed circle (the only way to talk to it)
<Bish> inside of that circle, you can save data
<dminuoso> Bish: Btw, I was pretty amazed when I learned about Haxl recently.
<dminuoso> Bish: There was a pretty good video from Simon Marlow himself about it.
<Bish> dminuoso: it was an example, might or not might've seen that
<Bish> dminuoso: i watched it.. super cool that you can split parallelism with it
RougeR has quit [Ping timeout: 260 seconds]
<Bish> yes, that
<dminuoso> Bish: well the notion of "why not make concurrency the default..." is extremely cool
<Bish> yeah, remember when you explained applicative to me?
<Bish> that was exactly after i watched that video :D
<dminuoso> hah
<Bish> needed to know, why that's possible with applicative
<Bish> that shit is beyond cool, next level programming
n008f4g_ has joined #ruby
<dminuoso> Bish: The really amazing thing, is that there is not much to Haxl itself.
<Bish> the talk of one(or the?) lead programmers of haxl is also cool
<Bish> some woman
<dminuoso> Bish: Pretty sure Simon is the lead
cdg has joined #ruby
<Bish> okay, some important girl then, because she knew alot
<Bish> okay, it's not really about haxl, but it's cool because they say like
<Bish> they have people using haskell, which never heard what a monad is
<Bish> because you actually do not need to know, when doing these haxl filter functions
<dminuoso> Bish: Fun fact.. Applicatives too are monoids in (another) the monoidal category of endofunctors..
<dminuoso> Bish: Recently had someone who wanted to know how to chain functions "a -> Maybe b", told him to use >>=, and he responded with "but I dont know what a monad is" - "dont think about it, you're using it already"
cdg has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
yohji has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
<leitz> Bish, thanks. The "boxes" comment is clicking through my brain. I read an beginning Go lang book and the discussion of "interfaces" matches the boxes and may solve a Ruby problem for me.
<dminuoso> Bish: So did you give up by the way?
fribmendes_away is now known as fribmendes
Beams has joined #ruby
workmad3 has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
kapil___ has quit [Quit: Connection closed for inactivity]
herbmillerjr has quit [Quit: Konversation terminated!]
AJA4350 has joined #ruby
soniya29 has joined #ruby
soniya29_ has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldnunes has joined #ruby
sidx64 has joined #ruby
sidx64 has quit [Client Quit]
<riotjones> Bish: why do you hate MRI?
<riotjones> Seems that JIT is coming to ruby
ciscam has joined #ruby
sidx64 has joined #ruby
sidx64 has quit [Client Quit]
kapil___ has joined #ruby
sidx64 has joined #ruby
soniya29_ has quit [Quit: Leaving]
soniya29 has quit [Quit: Leaving]
Cavallari has joined #ruby
ryzokuken has joined #ruby
<leitz> StackOverflow just released the developer survey results.
andikr has quit [Remote host closed the connection]
chmuri has quit [Excess Flood]
psychicist__ has joined #ruby
chmurifree has joined #ruby
rwb has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
<Bish> dminuoso: no, sorry, people in the office were like
<Bish> HMMM WERE HUNGRY
<Bish> LETS GOGOOGOG
<Bish> and i gave up, what?
<Bish> leitz: interfaces do not really exists, but you can imagine them a bit like templates for these boxes, that make sure certain methods exist
<Bish> (do not really exist, in ruby)
ldnunes has quit [Read error: Connection reset by peer]
<Bish> and mixins are kinda like that, but not really
DoubleMalt has joined #ruby
<leitz> Bish, but the idea is there. As long as classes A, B, and C are coded to take method a with attribute b, then calling Object Z can assume a reasonable interface.
<leitz> Remember, I'm a newbie so the basics are still sinking in.
raynold has quit [Quit: Connection closed for inactivity]
xuyuheng has quit [Quit: Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<leitz> On the SO list, Ruby beat C++ and PHP in "Most Loved".
DoubleMalt has quit [Ping timeout: 256 seconds]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
<dminuoso> At least C++ has a working type system that is not hopelessly lost.
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Bish> CPP is out for me because code in headers, really, that's reason enough for me
<Bish> and OOP really makes more pain than gain in the end, that's why i would love pure functional in the end
<Bish> or atleast functional
<dminuoso> Well with OCaml you get an interesting hybrid.
<dminuoso> Or Rust.
<Bish> i will trust for me next cpp project
<Bish> dminuoso: what did u mean by saying "did u give up?
<dminuoso> Bish: give up with Haskell
<leitz> Uh, Rails isn't anywhere on the survey, far as I can see.
<Bish> is it fare? fair?
<Bish> no clue
<Bish> dunno the english world
<Bish> expo
<Bish> whatever
<dminuoso> fair.
<tbuehlmann> mess :)
<Bish> as soon as i am fired i will write a webframework
<Bish> that will own everything in existence
* dminuoso cant tell if tbuehlmann is joking or not
<tbuehlmann> *insert xkcd standards comic here*
<dminuoso> heh
<Bish> the way i write my webapps is always unorthodox
<tbuehlmann> that's my superpower, nobody can
<Bish> and i am arrogant enough to think it's the best way
<dminuoso> tbuehlmann: btw, we should get something to drink some day
<dminuoso> Im so frequently in Hannover :-)
<Bish> where are you from dminuoso ?
<leitz> Do the Ruby IRC and e-mail lists seem to be quiet to you all?
<tbuehlmann> you are? I thought you're just in good ol' P
Burgestrand has joined #ruby
<dminuoso> P?
<dminuoso> Well I live there
<Bish> lol.. we're from the same city
<Bish> aren't we
<leitz> Or does everybody but me know everything and we just socialize.
nowhere_man has quit [Ping timeout: 240 seconds]
<Bish> are you from PB?
<Burgestrand> Bish not sure if you got an answer to your video question, but I'd recommend creating an actual video with ffmpeg
<dminuoso> Bish: No. Its another P.
<Bish> that would be crazy.
<dminuoso> Bish: The kind you find in the vicinity of Braunschweig.
<Bish> can't find it in my head, but pretty close i assume
<tbuehlmann> we don't say that word
<tbuehlmann> it's peine ost
<dminuoso> Bish: But.. as it so happens, Ill be travelling to PB over the easter holidays.
<Bish> sounds like peine in the ass
jeffreylevesque has quit [Ping timeout: 260 seconds]
ldnunes has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
baweaver has quit [Ping timeout: 240 seconds]
<dminuoso> tbuehlmann: Anyway, my SO lives in H.
<Bish> hilarious, that you're so close
* dminuoso is unsure what is hilarious about that fact
* dminuoso is sure it might be curios, or interesting even
<Bish> well we "met" completely unrelated
<Bish> this happens quite often to me, but even more unlikely
<Bish> i met a girl from my street on omegle (yes i was young)
<Bish> i mean the street where my parents live.
<Bish> just recently, i met someone in #monero, who works for a ex-collegue of mine
<Bish> i find it hilarious.
* dminuoso goes back emacsing
havenwood has joined #ruby
havenwood has joined #ruby
<Bish> :(
baweaver has joined #ruby
* Bish feels ignored
<tbuehlmann> dminuoso: a drink it is. some time in april will work
baweaver is now known as Guest93774
<dminuoso> tbuehlmann: Great, Ill let you know
vutral|kali has quit [Read error: Connection reset by peer]
<tbuehlmann> great
<tbuehlmann> btw, anyone here attending Bath Ruby next week?
nadir has quit [Quit: Connection closed for inactivity]
DoubleMalt has joined #ruby
za1b1tsu has quit [Quit: Leaving]
n008f4g_ has quit [Ping timeout: 264 seconds]
milardovich has joined #ruby
* leitz feels Bish can just take a number on feeling ignored. :)
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
drewmcmillan has joined #ruby
<Bish> people in ruby are only interested in #ruby or some other computer stuff
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Bish> guess i can't keep up with my stories of meeting people
<dminuoso> That's not true. Im also interested in type theory, logic, mathematics..
<Bish> >other computer stuff
<Bish> leitz: go play with your boxes! and only stop if you wrote something better than rack!
fribmendes is now known as fribmendes_away
<leitz> I'm working on fiction and a character generator/tracker so I can remind myself what some looks like or what they do.
<Bish> maybe look at code of faker, it does something like that
<Bish> a little bit?
<Bish> im guessing your character has attributes? that's something faker wouldn't do
<Bish> also if you're new to ruby, do you know pry?
<leitz> I tend to stick with the standard lib and simple stuff.
<Bish> yeah write your own, but you can orientate on other code
<Bish> and pry is a tool
<Bish> which is really good for learning
<leitz> True. I need to read more good code.
<Bish> really, check pry out, earlier the better
maufart__ has joined #ruby
drewmcmillan is now known as dr3w
dr3w has quit [Quit: Textual IRC Client: www.textualapp.com]
aufi_ has quit [Ping timeout: 256 seconds]
cdg has joined #ruby
bmurt has joined #ruby
dr3w_ has joined #ruby
mtkd has quit []
mtkd has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
woodruffw has quit [Ping timeout: 268 seconds]
madhatter has joined #ruby
cdg has joined #ruby
sonOfRa has quit [Remote host closed the connection]
PaulCapestany has quit [Quit: .]
sonOfRa has joined #ruby
PaulCapestany has joined #ruby
PaulCapestany has quit [Remote host closed the connection]
tomphp has joined #ruby
woodruffw has joined #ruby
woodruffw has joined #ruby
schneider has quit [Ping timeout: 256 seconds]
ta_ has quit [Remote host closed the connection]
schneider has joined #ruby
jrabe has quit [Quit: Disconnected]
jrabe has joined #ruby
dviola has joined #ruby
gray_-_wolf has joined #ruby
houhoulis has joined #ruby
ramfjord has joined #ruby
jcalla has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
za1b1tsu has joined #ruby
<leitz> Is there a way to get uninitialized attr_accessors in something like mything.instance_variables?
fvefyh has joined #ruby
<tbuehlmann> leitz: can't follow, what do you mean?
<leitz> tbuehlmann, if I have an object with attributes listed under attr_accessor, but not yet set, is there a way to query the object to get the full list of attributes?
DLSteve_ has joined #ruby
<dminuoso> leitz: Considering your current level of expertise, I'm going to say: "Yes but forget about it"
<tbuehlmann> sounds about right. I could only assume what you mean and suggest `YourClass.instance_methods(false)`, but it's probably not the thing you want or the thing that's useful.
za1b1tsu has quit [Quit: Leaving]
<tbuehlmann> oh, I think I understand
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has quit [Ping timeout: 276 seconds]
<leitz> Ah, got it. puts fred.class.instance_methods(false)
<leitz> I hadn't put "class" in there.
tomphp has joined #ruby
fvefyh has quit [Remote host closed the connection]
<dminuoso> leitz: No need for that indirection
<dminuoso> >> "1".methods(false)
<ruby[bot]> dminuoso: # => [] (https://eval.in/971137)
<dminuoso> >> Class.methods(false)
<ruby[bot]> dminuoso: # => [] (https://eval.in/971138)
* dminuoso scratches his head
jamesaxl has quit [Read error: Connection reset by peer]
andikr has joined #ruby
<dminuoso> Nevermind. Somehow I expected this to do the right thing (tm)
jamesaxl has joined #ruby
Puffball has joined #ruby
memo1 has joined #ruby
jeffreylevesque has joined #ruby
chouhoulis has joined #ruby
<leitz> It does the right thing per Matz's definition of "right". :)
ta_ has joined #ruby
huyderman has joined #ruby
soniya29 has joined #ruby
soniya29_ has joined #ruby
<dminuoso> leitz: In all fairness, Ruby is no longer under dictatorship.
<Bish> how does one do clean shutdown with ruby
<Bish> trap() or what that was?
<dminuoso> Bish: Process.kill($$, :SIGBUS)
nacho__ has joined #ruby
<Bish> no i mean
<Bish> how do i handle a clean shutdown
<dminuoso> Oh yeah sorry
<dminuoso> Bish: Process.kill(:SIGBUS, $$)
<dminuoso> ;)
<dminuoso> Bish: Ah!
<Bish> eh?
<dminuoso> Bish: Do you have anything to clean up?
<leitz> dminuoso, didn't know it had changed. It didn't bother me, though.
<dminuoso> Any external resources to free/release?
<Bish> yes
<Bish> no
<Bish> i have a database worker which takes work from aqueue
<dminuoso> Bish: Only ruby internal things?
roshanavand has joined #ruby
<Bish> and if it gets interupted, it sets it to "failed"
<Bish> due to rescue;
<nacho__> Hi. Using Ruby's Resolv::DNS, how can I distinguish between the following situations? [No record in DNS for a given name, DNS server timeout, DNS server not reacheable] In all cases Resolv::DNS::getaddress() seems to raise Resolv::ResolvError.
<Bish> nacho__: use pry, catch and inspect them , then you might fight out
<Bish> nacho__: but i am interested in your results
<nacho__> Bish: the .message seems to be the same in all cases "DNS result has no information for foo.example.com" :/
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Bish> if there aren't more attributes / different classes, there is nothing you can do except for grepping from that messae
<nacho__> I'm afraid that there's nothing to grep for, it's always the same message not matter what's the error situation :/
ramfjord has joined #ruby
<Bish> oh, i see
<Bish> unfortunately i have a rescue nil behind those :D
<nacho__> I've tried with a machine that's not replying to DNS requests (nothing listening), another one listening but never replying and another one that's listening, ready to reply but the traffic filtered out by the network.
<nacho__> and client-side it's impossible to know what's going on .
<Bish> dminuoso: i wouldn't care about ruby internal things because database transactions
<Bish> but i would like the process to not take new jobs / finish existing ones, and then exit
<Bish> on SIGINT (or whatever docker sends, when docker stop)
dr3w_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roshanavand has quit [Ping timeout: 246 seconds]
<nacho__> this is particularly painful if the client wants to take an action if a given host is not known to DNS as it could make wrong decisions if the DNS server is not available
* nacho__ cries
<Bish> why is it so important to you WHY it fails?
<workmad3> nacho__: there's no way to tell those particular 3 cases apart anyway... the worrying thing is the error being the same for no result vs network issue
<nacho__> I need to know basically if either there's no record in the DNS server for a given name or it's just a failure resolving.
<nacho__> I would not need a big granulatity for the failure to be honest
ramfjord has quit [Ping timeout: 240 seconds]
schneider has joined #ruby
Psybur has joined #ruby
vaillancourtmax has joined #ruby
desperek has joined #ruby
nowhereman_ has joined #ruby
houhoulis has quit [Remote host closed the connection]
ryandv has joined #ruby
roshanavand has joined #ruby
Rapture has joined #ruby
soniya29_ has quit [Quit: Leaving]
soniya29 has quit [Quit: Leaving]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ryandv has quit [Ping timeout: 260 seconds]
synthroid has quit [Remote host closed the connection]
shinnya has joined #ruby
tubbo has joined #ruby
gnufied has quit [Quit: Leaving]
sidx64 has joined #ruby
gnufied has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
ryandv has joined #ruby
synthroid has joined #ruby
roshanavand has quit [Remote host closed the connection]
phaul has joined #ruby
roshanavand has joined #ruby
uybinh has joined #ruby
govg has quit [Ping timeout: 264 seconds]
RougeR has quit [Ping timeout: 256 seconds]
uybinh has quit []
uybinh has joined #ruby
tubbo has quit [Quit: WeeChat 2.0.1]
dionysus69 has quit [Ping timeout: 240 seconds]
uybinh has left #ruby [#ruby]
solocshaw has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid has quit [Remote host closed the connection]
<Bish> dminuoso: i was really hoping you will keep on telling me how to make clean shutdown :D
dwcraig has quit [Remote host closed the connection]
<dminuoso> Bish: The thing is, while emacs is awesome, its not good enough to write code on its own
ramfjord has joined #ruby
<dminuoso> Just like vim it needs a user to actually supply it with keystrokes.
sidx64 has joined #ruby
nadir has joined #ruby
solocshaw1 has joined #ruby
solocshaw has quit [Ping timeout: 255 seconds]
solocshaw1 is now known as solocshaw
morfin60 has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
mtkd has quit []
mtkd has joined #ruby
<tbuehlmann> dminuoso: when using trailblazer cells, do you have the need for model decorators/presenters at all?
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
rippa has joined #ruby
<dminuoso> tbuehlmann: No. You can simply do higher-order-cells (as in HOFs) if you want abstraction.
riotjoe has joined #ruby
raynold has joined #ruby
cschneid has joined #ruby
rwb has joined #ruby
SeepingN has joined #ruby
* Bish does not care anymore about editor wambo jambo
* Bish uses ed
<Bish> Top-level constant look-up is no longer available
<Bish> what exactly does that mean, i don't understand it, even after reading the issue
<tbuehlmann> how do you handle things like current_user? when using cells inside actionview templates, I'd pass the current_user object to the cell, current_user coming from a helper though, which is contrary to cell's idea. so, what to do? simply rendering cells from the controller without any actionview involved?
riotjones has quit [Ping timeout: 264 seconds]
<Bish> eww, helpers
Cavallari has quit [Quit: Cavallari]
<tbuehlmann> they haven't bitten me yet, but I can see how they could. that's why I'm studying cells
oleo has joined #ruby
<Bish> i don't know what cells is
sonne has left #ruby [#ruby]
<Bish> lol toplevel constant referencing.. i didn't know that was a thing
<Bish> why would anyone
<dminuoso> tbuehlmann: I have a simple pattern - the few helpers I like to use I put into mixins
<dminuoso> tbuehlmann: then for example in one of my layout cells I have: class FooCell < ApplicationCell; include Apax::Devise; end
<dminuoso> tbuehlmann: https://gist.github.com/dminuoso/aa1843aacb97a3f095c9f78c18fb5e69 and that's that helper
dr3w_ has joined #ruby
<dminuoso> But there's no real reason to do this. It'd be better if I actually pass the user object through.
sidetrack is now known as s1detracking
<tbuehlmann> as a context?
<dminuoso> (The justification for my style is just that its a reminent from switching to cells)
<dminuoso> tbuehlmann: Id like to think of it more as arguments
netherwolfe has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
suukim has quit [Quit: Konversation terminated!]
<tbuehlmann> hm
<tbuehlmann> will play with it, thanks
RougeR has quit [Ping timeout: 246 seconds]
<dminuoso> tbuehlmann: The rationale is passing arguments just admits dependencies. Code that does not depend on global state is less brittle and _FAR_ easier to test.
SuperLag has quit [Quit: reboot]
<dminuoso> tbuehlmann: The second that current_user is an argument that is passed down, it becomes ridiculously simple to test the cell in isolation, because you can pass it whatever `user` object you desire without having to build an entire rack stack just to make devise happy
pastorinni has joined #ruby
<tbuehlmann> yupyup, the testing argument is a biggie
<tbuehlmann> on the other side, I'm really tempted to try CurrentAttributes for really simple things like current_user *ducks*
<tbuehlmann> gtg!
<dminuoso> o/
Psybur has quit [Remote host closed the connection]
Psybur has joined #ruby
Psybur has joined #ruby
Psybur has quit [Changing host]
tolerablyjake has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
mikecmpb_ has joined #ruby
mikecmpbll has quit [Ping timeout: 256 seconds]
troys has joined #ruby
milardovich has quit [Remote host closed the connection]
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
ryzokuken has quit [Quit: Connection closed for inactivity]
synthroid has quit [Remote host closed the connection]
za1b1tsu has joined #ruby
milardovich has joined #ruby
tomphp has joined #ruby
JoshS has quit [Ping timeout: 264 seconds]
Zaab1t has joined #ruby
synthroid has joined #ruby
watilde has joined #ruby
cagomez has joined #ruby
watilde has left #ruby [#ruby]
dviola has quit [Quit: WeeChat 2.0.1]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has quit [Ping timeout: 260 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
roca has joined #ruby
orbyt_ has joined #ruby
tomphp has joined #ruby
vaillancourtmax has quit [Ping timeout: 245 seconds]
vaillancourtmax has joined #ruby
roca has quit [Quit: roca]
maufart__ has quit [Ping timeout: 240 seconds]
DoubleMalt has quit [Ping timeout: 246 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpb_ has quit [Quit: inabit. zz.]
yohji has quit [Ping timeout: 256 seconds]
Burgestrand has quit [Quit: Closing time!]
TomyWork has quit [Ping timeout: 240 seconds]
ryandv has quit [Ping timeout: 256 seconds]
jcarl43 has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dr3w_ has quit [Changing host]
dr3w_ has joined #ruby
mikecmpbll has joined #ruby
conta has quit [Ping timeout: 246 seconds]
darkhanb has joined #ruby
darkhanb has quit [Client Quit]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<raynold> ahh it's a wonderful day
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has joined #ruby
vaillancourtmax has quit [Ping timeout: 248 seconds]
rafik has joined #ruby
yohji has joined #ruby
dionysus69 has joined #ruby
marxarelli|afk is now known as marxarelli
ianfleeton has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roshanavand has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
dr3w_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ianfleeton has joined #ruby
rgiscard has joined #ruby
vaillancourtmax has joined #ruby
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
raul782 has quit []
synthroi_ has joined #ruby
kliq has joined #ruby
kliq has quit [Max SendQ exceeded]
kliq has joined #ruby
pr0ton has joined #ruby
kliq has quit [Max SendQ exceeded]
darkhanb has joined #ruby
kliq has joined #ruby
n008f4g_ has joined #ruby
synthroid has quit [Ping timeout: 264 seconds]
claudiuinberlin has joined #ruby
mzo has joined #ruby
orbyt_ has joined #ruby
andikr has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
yohji has quit [Remote host closed the connection]
<kspencer> I've got a thor class and a Sinatra::Base subclass in separate files but are in the same gem, I want to be able to pass in the command line options or at least set some settings in the server to be able to pull from at runtime, but I'm not seeing a way to do it without mudding up my code
suukim has joined #ruby
<kspencer> tldr how can i pass in some variables into a Sinatra::Base subclass server before its initialized and started, and when its in another file
lupine has quit [Quit: No Ping reply in 180 seconds.]
lupine has joined #ruby
clemens3 has quit [Ping timeout: 246 seconds]
mtkd has quit [Ping timeout: 246 seconds]
fiachetti has joined #ruby
ianfleeton has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has joined #ruby
<kspencer> Code here -> https://github.com/IotaSpencer/site_hook/tree/dev the thor subclass is in bin/site_hook, and the sinatra::base subclass is in lib/site_hook.rb
pr0ton has quit [Quit: pr0ton]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kspencer> although i may be able to set some module variables, I'll see if that works
nadir has quit [Quit: Connection closed for inactivity]
eckhardt_ has joined #ruby
ryzokuken has joined #ruby
kapil___ has joined #ruby
leitz has quit [Quit: Nappy time]
captainproton has joined #ruby
pr0ton has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andikr has quit [Remote host closed the connection]
captainproton is now known as captrproton
captrproton is now known as captainproton
workmad3 has quit [Ping timeout: 246 seconds]
bmurt has joined #ruby
rafik has quit [Ping timeout: 268 seconds]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
za1b1tsu has quit [Quit: Leaving]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
zapata has quit [Read error: Connection reset by peer]
hahuang61 has joined #ruby
ryandv has joined #ruby
rahul_bajaj has quit [Quit: Leaving]
zapata has joined #ruby
rabajaj has joined #ruby
mzo has quit [Ping timeout: 260 seconds]
aupadhye has quit [Remote host closed the connection]
pr0ton has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
clemens3 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
mtkd has quit []
mtkd has joined #ruby
n0m4d1c has joined #ruby
memo1 has quit [Ping timeout: 256 seconds]
minimalism has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 246 seconds]
nowhere_man has joined #ruby
rafik has joined #ruby
aufi has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
nowhereman_ has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
JoshS has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rafik has quit [Ping timeout: 260 seconds]
TheBrayn has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
nicesignal has quit [Read error: Connection reset by peer]
nicesignal has joined #ruby
dr3w_ has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has joined #ruby
nme13 has joined #ruby
<nme13> hi
<nme13> anybody here has tried running his own rubygems server with geminabox ?
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<nme13> I don't know how to specify where to download my gem in a gemfile
workmad3 has joined #ruby
<nme13> how to specify URL like in the gemfile as we do for git gems for example ? my url is a rubygem geminabox server
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nme13 has quit [Client Quit]
imode has joined #ruby
guille-moe has quit [Ping timeout: 264 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
rgiscard has quit [Quit: Cheers]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
schneider has joined #ruby
riotjoe has quit [Remote host closed the connection]
gizmore|2 is now known as gizmore
Code4Dopamine has joined #ruby
riotjones has joined #ruby
\void has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
alfiemax_ has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 264 seconds]
schneider has quit [Ping timeout: 240 seconds]
cdg has quit [Remote host closed the connection]
tolerablyjake has joined #ruby
cdg has joined #ruby
claudiuinberlin has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
rafik has joined #ruby
elcontrastador has joined #ruby
tomphp has joined #ruby
cdg has quit [Ping timeout: 245 seconds]
dr3w_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
nadir has joined #ruby
mozzarella has quit [Ping timeout: 256 seconds]
bocaneri has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
captainproton has quit [Quit: captainproton]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
nowhere_man has quit [Ping timeout: 240 seconds]
nowhere_man has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ianfleeton has joined #ruby
_sfiguser has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
schneider has joined #ruby
konos5__ has joined #ruby
alfiemax has joined #ruby
suukim has quit [Quit: Konversation terminated!]
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
captainproton has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
alfiemax has quit [Ping timeout: 260 seconds]
schneider has quit [Ping timeout: 260 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
riotjoe has joined #ruby
mozzarella has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
riotjones has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 268 seconds]
riotjoe has quit [Ping timeout: 246 seconds]
tomphp has quit [Read error: Connection reset by peer]
ianfleeton has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FastJack has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
mtkd has quit []
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
herbmillerjr has joined #ruby
boshhead has quit [Remote host closed the connection]
roca has joined #ruby
boshhead has joined #ruby
orbyt_ has quit [Ping timeout: 246 seconds]
captainproton has quit [Quit: captainproton]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vaillancourtmax has quit [Ping timeout: 246 seconds]
kies has quit [Ping timeout: 246 seconds]
SeepingN has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
ryandv has quit [Ping timeout: 248 seconds]
ryandv has joined #ruby
alfiemax has joined #ruby
n0m4d1c has quit [Ping timeout: 240 seconds]
n0m4d1c has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
pilne has joined #ruby
mtkd has joined #ruby
cagomez has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 268 seconds]
Beams has quit [Ping timeout: 248 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ryandv has quit [Ping timeout: 245 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
boshhead has quit [Remote host closed the connection]
Dimik has joined #ruby
milardovich has quit []
boshhead has joined #ruby
bmurt has quit [Ping timeout: 240 seconds]
MasterOfDisaster has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
guille-moe has joined #ruby
cagomez has joined #ruby
mtkd has quit []
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jrafanie has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
cagomez has quit [Ping timeout: 260 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
troulouliou_dev has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
kies has joined #ruby
roca has quit [Ping timeout: 246 seconds]
trautwein has quit [Quit: ZNC 1.6.5 - http://znc.in]
SeepingN has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ryandv has joined #ruby
ramfjord has joined #ruby
MasterOfDisaster has joined #ruby
guille-moe has joined #ruby
cagomez has joined #ruby
mahlon_ is now known as mahlon
pastorinni has quit [Ping timeout: 248 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
solocshaw has quit [Ping timeout: 268 seconds]
n008f4g_ has joined #ruby
bmurt has joined #ruby
tolerablyjake has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Asher has quit [Quit: Leaving.]
cdg has joined #ruby
ryandv has quit [Ping timeout: 260 seconds]
mtkd has quit []
ianfleeton has joined #ruby
Psybur has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
cdg has quit [Remote host closed the connection]
cdg_ has joined #ruby
solocshaw has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AgentVenom has joined #ruby
anisha__ has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Zaab1t has quit [Quit: Zaab1t]
eckhardt_ has joined #ruby
Asher has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
n0m4d1c has quit [Remote host closed the connection]
RougeR has quit [Quit: Leaving]
boshhead has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jeffreylevesque has quit [Ping timeout: 252 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
rwb has quit [Ping timeout: 260 seconds]
schneider has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
n008f4g_ has quit [Ping timeout: 240 seconds]
ryandv has joined #ruby
druonysus has quit [Ping timeout: 246 seconds]
<remix2000> Hey, have you experienced problems with SSL/https when using the latest version of Puma? I have the same problem as described here: https://git.io/vxUQL
alfiemax has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 246 seconds]
Cavallari has joined #ruby
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 264 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
a92n18a has joined #ruby
sammi` has quit [Quit: Lost terminal]
mtkd has quit []
sammi` has joined #ruby
nme13 has joined #ruby
<nme13> hi
eckhardt_ has joined #ruby
<nme13> anybody here familiar with building gems ?
ianfleeton has quit [Quit: Textual IRC Client: www.textualapp.com]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
<nme13> I'd like to know how to use custom Models and migration inside a gem
sidx64 has joined #ruby
pastorinni has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<gizmore> nme13: just use their namespace in your own gem
<gizmore> or fork it
<gizmore> for migrations it is more difficult tho, iirc
workmad3 has quit [Ping timeout: 256 seconds]
<gizmore> just run your own migrations maybe
hahuang61 has quit [Ping timeout: 260 seconds]
sameerynho has joined #ruby
ledestin has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ledestin has quit [Client Quit]
mtkd has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.0.1]
nme13 has quit [Quit: Leaving]
netherwolfe has quit [Ping timeout: 264 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jcalla has quit [Quit: Leaving]
troulouliou_dev has quit [Quit: Leaving]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jamesaxl has quit [Quit: WeeChat 2.0.1]
sameerynho has quit [Ping timeout: 240 seconds]
ldnunes has quit [Quit: Leaving]
mikecmpbll has quit [Quit: inabit. zz.]
tomphp has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
kliq has quit [Quit: Leaving]
FrostCandy has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
marxarelli is now known as marxarelli|afk
weathermaker has joined #ruby
zapata has quit [Ping timeout: 256 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
synthroi_ has quit []
rwb has joined #ruby
druonysus has joined #ruby
facest has joined #ruby
faces has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
lytol has quit [Remote host closed the connection]
lytol has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
vereteran has quit [Ping timeout: 256 seconds]
nicesignal has quit [Ping timeout: 268 seconds]
tomphp has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
naquad has joined #ruby
nicesignal has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
WebDawg has quit [Ping timeout: 268 seconds]
octomancer has quit [Ping timeout: 264 seconds]
tomphp has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Cavallari has quit [Quit: Cavallari]
WebDawg has joined #ruby
mikecmpbll has joined #ruby
sameerynho has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
octomancer has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cdg_ has quit [Remote host closed the connection]
pastorinni has quit [Remote host closed the connection]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
n0m4d1c has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
a92n18a has quit [Quit: Leaving]
zapata has joined #ruby
aufi has quit [Remote host closed the connection]
IshMael_ has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
mtkd has quit []
<IshMael_> Hi all! Got a question related to instance_eval and self.
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex`` has quit [Quit: WeeChat 2.0.1]
desperek has quit [Quit: xoxo]
<IshMael_> can someone explain to me, why i have to place a self in front of the instance variable? The method is placed in the singleton class of that object as far as i understand
sameerynho has quit [Ping timeout: 256 seconds]
tomphp has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ryandv has quit [Ping timeout: 264 seconds]
<havenwood> IshMael_: You could do `@name = "Fred"` to set the instance variable directly. If you try `name = "Fred"` you're just setting a local variable.
<havenwood> IshMael_: `self.name = "Fred` is using the setter method to set the instance variable.
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ryandv has joined #ruby
clemens3 has quit [Ping timeout: 240 seconds]
<IshMael_> havenwood: thanks for answer
<havenwood> IshMael_: The shorthand for creating that getter and setter method on user is: class User; attr_accessor :name end
<havenwood> It's nice to set instance variables directly with: @name =
<IshMael_> havenwood: so the method definition that is inside of that block doesnt need the self cause it is set already?
<havenwood> Using #instance_eval isn't so nice.
<IshMael_> havenwood: it is not for a concrete programming problem. it is just learning and understanding
<havenwood> aha
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> then carry on! :-)
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<IshMael_> havenwood: i was just wondering, why the method definition doesnt need the self in front of and the instance variable needed it ..that confused me a bit
alfiemax has joined #ruby
marxarelli|afk is now known as marxarelli
hahuang65 has joined #ruby
cdg has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
ryandv has quit [Ping timeout: 264 seconds]
<apeiros> IshMael_: instance variable don't need a self in front
<apeiros> `self.name =` is not the instance variable. it's a method call (which in turn will set the instance variable)
konos5__ has quit [Quit: Connection closed for inactivity]
<IshMael_> apeiros: thanks that cleared it too
dmitriy_ has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
dmitriy_ has quit [Read error: Connection reset by peer]
<havenwood> It feels strange to have #filter in Ruby on nightly: [1, 2, 3].filter(&:odd?) #=> [1, 3]
<apeiros> another alias? :(
<havenwood> yup
<havenwood> apeiros: I'm actually happy to have filter/map/reduce just so we can all use the same terms.
<apeiros> that's one of the few things I dislike about ruby - the alias madness.
<apeiros> I'd much rather learn a new name and have a single one.
<havenwood> The Smalltalk aliases are just more seldom used.
<havenwood> select/collect/inject versus filter/map/reduce
<apeiros> I'm a select/map/inject person. but as said, I'd much rather settle for a single name.
alfiemax has joined #ruby
sameerynho has joined #ruby
jrm has quit [Ping timeout: 268 seconds]
eckhardt_ has joined #ruby
roca has joined #ruby
pastorinni has joined #ruby
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
pastorinni has quit [Remote host closed the connection]
pastorinni has joined #ruby
roca has quit [Remote host closed the connection]
roca has joined #ruby
bweston92 has quit [Quit: Connection closed for inactivity]
alfiemax has quit [Ping timeout: 248 seconds]
wojnar has joined #ruby
sameerynho has quit [Ping timeout: 260 seconds]
druonysus has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
rikkipitt has joined #ruby
FrostCandy has quit []
kapil___ has quit [Quit: Connection closed for inactivity]
wojnar has quit [Ping timeout: 246 seconds]
wojnar has joined #ruby
kanobt61 has quit [Ping timeout: 245 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
dr3w_ has joined #ruby
wojnar_ has joined #ruby
cschneid has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wojnar has quit [Ping timeout: 246 seconds]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wojnar_ has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
FastJack has joined #ruby
tjbp has quit [Ping timeout: 248 seconds]
tolerablyjake has joined #ruby
isaacNM has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
guille-moe has quit [Ping timeout: 246 seconds]
Mike11 has joined #ruby
John__ has joined #ruby
weathermaker has quit [Quit: weathermaker]
John_Ivan has quit [Ping timeout: 246 seconds]
hahuang61 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
RyanMcCoskrie has joined #ruby
tjbp has joined #ruby
rikkipitt has quit [Remote host closed the connection]
rikkipitt has joined #ruby
ali_g has joined #ruby
hahuang61 has quit [Ping timeout: 246 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
rikkipitt has quit [Ping timeout: 264 seconds]
chouhoulis has quit [Remote host closed the connection]
Psybur has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
IshMael_ has left #ruby ["WeeChat 2.0.1"]
nadir has quit [Quit: Connection closed for inactivity]
\void has quit [Quit: So long, and thanks for all the fish.]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 246 seconds]
isaacNM has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Psybur_ has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
rafik has quit [Ping timeout: 240 seconds]
Psybur has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
psychicist__ has quit [Ping timeout: 260 seconds]
halbbalda has quit [Ping timeout: 260 seconds]
agarzmmi has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
sylario has quit [Quit: Connection closed for inactivity]
paraxial has quit [Ping timeout: 264 seconds]
hahuang61 has joined #ruby
goatish has joined #ruby
paraxial has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
kloeri_ is now known as kloeri
halbbalda has joined #ruby
awebdev has joined #ruby
hahuang61 has quit [Ping timeout: 264 seconds]
pastorin_ has joined #ruby
pastorinni has quit [Ping timeout: 264 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
awebdev has quit [Client Quit]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
agarzmmi has quit [Quit: Leaving]
jrm has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<zenspider> isn't filter an alias for grep and grep can now take predicate methods? I thought I read something to that effect
shinnya has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<havenwood> zenspider: filter is an alias for select
<havenwood> zenspider: predicate methods can now take threequals matches like grep
<havenwood> %w[above beneath].any? /neat/ #=> true
<zenspider> nice
howdoi has joined #ruby
<havenwood> there's an issue open for select/filter/reject taking threequals matches as well, which makes sense to me
dmitriy_ has joined #ruby
<havenwood> %w[above beneath].filter /neat/ #=> ["beneath"]
dmitriy_ has quit [Read error: Connection reset by peer]
ryandv has joined #ruby
roca has quit [Quit: roca]
<havenwood> But yeah, you can just grep for that.
<havenwood> %w[above beneath].grep /neat/
<havenwood> #=> ["beneath"]
alfiemax has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
alfiemax has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 240 seconds]
KeyJoo has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 248 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
ChaosBringer has quit [Ping timeout: 246 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ledestin has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
sameerynho has joined #ruby
raul782 has joined #ruby
jottr has joined #ruby
ChaosBringer has joined #ruby
kies has quit [Remote host closed the connection]