baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.5.1, 2.4.4, 2.3.7, 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
schneider has quit [Ping timeout: 240 seconds]
felipe1 has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
schneider has joined #ruby
ResidentBiscuit has joined #ruby
GodFather_ has quit [Ping timeout: 246 seconds]
ciscam has quit [Ping timeout: 264 seconds]
schneider has quit [Ping timeout: 268 seconds]
felipe1 has quit [Quit: WeeChat 2.1]
ciscam has joined #ruby
schneider has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
schneider has quit [Ping timeout: 276 seconds]
erlend has quit [Ping timeout: 260 seconds]
schneider has joined #ruby
erlend has joined #ruby
Synthead has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
neohunter has quit [Read error: Connection reset by peer]
Synthead has quit [Client Quit]
schneider has joined #ruby
chouhoulis has joined #ruby
schneider has quit [Ping timeout: 264 seconds]
AJA4350 has quit [Remote host closed the connection]
schneider has joined #ruby
ResidentBiscuit has quit []
madgen has quit [Quit: Lost terminal]
noobineer has quit [Remote host closed the connection]
quobo has quit [Quit: Connection closed for inactivity]
schneider has quit [Ping timeout: 260 seconds]
marr has quit [Ping timeout: 264 seconds]
schneider has joined #ruby
minimalism has joined #ruby
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
noobineer has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
Yxhuvud has joined #ruby
jeffreylevesque has quit [Read error: Connection reset by peer]
schneider has joined #ruby
noobineer has quit [Max SendQ exceeded]
alfiemax has joined #ruby
schneider has quit [Ping timeout: 264 seconds]
alfiemax has quit [Ping timeout: 268 seconds]
schneider has joined #ruby
noobineer has joined #ruby
nadir has joined #ruby
zacts has quit [Quit: WeeChat 1.9.1]
zacts has joined #ruby
schneider has quit [Ping timeout: 264 seconds]
schneider has joined #ruby
noobineer has quit [Remote host closed the connection]
schneider has quit [Ping timeout: 256 seconds]
Psybur has quit [Ping timeout: 264 seconds]
bmurt has joined #ruby
schneider has joined #ruby
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rfoust has quit [Quit: Textual IRC Client: www.textualapp.com]
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sameerynho has joined #ruby
bmurt has joined #ruby
roshanavand has joined #ruby
schneider has joined #ruby
kurko_ has joined #ruby
sameerynho has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
schneider has quit [Ping timeout: 260 seconds]
alfiemax has quit [Ping timeout: 260 seconds]
schneider has joined #ruby
konsolebox has quit [Ping timeout: 264 seconds]
dinfuehr_ has joined #ruby
konsolebox has joined #ruby
schneider has quit [Ping timeout: 256 seconds]
dinfuehr has quit [Ping timeout: 260 seconds]
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lelliott has joined #ruby
schneider has joined #ruby
roshanavand has quit [Quit: Leaving.]
schneider has quit [Ping timeout: 265 seconds]
Yzguy has joined #ruby
alfiemax has joined #ruby
schneider has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
schneider has quit [Ping timeout: 256 seconds]
lelliott has quit []
rfoust has joined #ruby
despai has quit [Quit: ...]
schneider has joined #ruby
schneider has quit [Ping timeout: 256 seconds]
roshanavand has joined #ruby
fiachetti has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ciscam has quit [Ping timeout: 240 seconds]
fiachetti has joined #ruby
roshanavand has quit [Client Quit]
schneider has joined #ruby
roshanavand has joined #ruby
ciscam has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roshanavand has quit [Client Quit]
roshanavand has joined #ruby
schneider has quit [Ping timeout: 265 seconds]
roshanavand has quit [Client Quit]
roshanavand has joined #ruby
schneider has joined #ruby
alfiemax has joined #ruby
roshanavand has quit [Client Quit]
shinnya has joined #ruby
roshanavand has joined #ruby
erlend has quit [Ping timeout: 260 seconds]
erlend has joined #ruby
roshanavand has quit [Client Quit]
roshanavand has joined #ruby
bmurt has joined #ruby
schneider has quit [Ping timeout: 268 seconds]
bmurt has quit [Client Quit]
duderonomy has joined #ruby
roshanavand has quit [Client Quit]
shinnya has quit [Quit: ZNC - http://znc.in]
mjolnird has joined #ruby
schneider has joined #ruby
shinnya has joined #ruby
roshanavand has joined #ruby
schneider has quit [Ping timeout: 260 seconds]
dkphenom has quit [Quit: Textual IRC Client: www.textualapp.com]
Yzguy has quit [Quit: Zzz...]
Yzguy has joined #ruby
schneider has joined #ruby
cyberg has quit [Quit: Leaving]
schneider has quit [Ping timeout: 265 seconds]
Puppet_ has joined #ruby
schneider has joined #ruby
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
raynold has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
Dimik has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Yzguy has quit [Quit: Zzz...]
schneider has joined #ruby
chouhoulis has quit [Remote host closed the connection]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has quit [Ping timeout: 260 seconds]
segy has quit [Ping timeout: 260 seconds]
schneider has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
ramfjord has quit [Ping timeout: 268 seconds]
alfiemax has quit [Remote host closed the connection]
schneider has quit [Ping timeout: 260 seconds]
segy has joined #ruby
schneider has joined #ruby
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #ruby
skweek has joined #ruby
Dimik has quit [Ping timeout: 264 seconds]
schneider has quit [Ping timeout: 264 seconds]
neohunter has joined #ruby
schneider has joined #ruby
<neohunter> SO!
<neohunter> i wanto to be able to access a nested hash with a dot notation like my_hash['this.is.nested']
<neohunter> I'm trying without success to write the def [](key) method without success
<baweaver> Oh hey, I just wrote something like that
<havenwood> neohunter: are you familiar with the #dig method?
<baweaver> Though you could totally dig
<havenwood> or Qo!
<baweaver> nested_hash.dig(*'a.b.c.d'.split('.'))
<neohunter> ruby 2.2 :(
skweek has quit [Remote host closed the connection]
<neohunter> I think dig was introduced in 2.3
<neohunter> checking
arescorpio has joined #ruby
<baweaver> Probably
<baweaver> Qo uses dig, so no dice there.
schneider has quit [Ping timeout: 256 seconds]
<baweaver> >> def dig(dot_path, hash) dot_path.split('.').reduce(hash) { |h, s| h && h[s] } end; dig('a'.b.c, {'a'=>{'b'=>{'c'=>1}}})
<ruby[bot]> baweaver: # => undefined method `c' for "a":String (NoMethodError) ...check link for more (https://eval.in/988713)
Dimik has joined #ruby
<baweaver> ah
<baweaver> >> def dig(dot_path, hash) dot_path.split('.').reduce(hash) { |h, s| h && h[s] } end; dig('a.b.c', {'a'=>{'b'=>{'c'=>1}}})
<ruby[bot]> baweaver: # => 1 (https://eval.in/988715)
<baweaver> >> def dig(dot_path, hash) dot_path.split('.').reduce(hash) { |h, s| h && h[s] } end; dig('a.nope.c.d', {'a'=>{'b'=>{'c'=>1}}})
<neohunter> awesome..
<ruby[bot]> baweaver: # => nil (https://eval.in/988716)
eckhardt has joined #ruby
<baweaver> you could also break early: dot_path.split('.').reduce(hash) { |h, s| break nil unless h[s]; h[s] }
<baweaver> though that's not _really_ that big of a deal
schneider has joined #ruby
<baweaver> Qo 0.2.0 released - https://github.com/baweaver/qo
<baweaver> Some fairly significant API lifts and restructuring on it - https://github.com/baweaver/qo/commit/54ed4780a33aa8dd853a62ed8df82f9fbcaf1f7b
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
minimalism has quit [Quit: minimalism]
minimalism has joined #ruby
Dimik has quit [Ping timeout: 256 seconds]
Yxhuvud has joined #ruby
<baweaver> Should probably rework dig a bit
schneider has quit [Ping timeout: 264 seconds]
<baweaver> The pains of agreeing on a public API for a gem, heh.
schneider has joined #ruby
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
alfiemax has joined #ruby
Yxhuvud has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
schneider has quit [Ping timeout: 276 seconds]
<baweaver> havenwood: What if I did this? Qo.matcher(Qo.ok { |good_result| ... }, Qo.error { |bad_result| ... })
<baweaver> Could probably also make it: Qo.error(:missing_param), Qo.error(:404), ...
alfiemax has quit [Ping timeout: 264 seconds]
<baweaver> banisterfiend ^ That look sane?
<baweaver> Reading through dry-matcher ( http://dry-rb.org/gems/dry-matcher/ ) and Elixir, borrowing some ideas
<baweaver> Most of my current implementation is super Scala-like
schneider has joined #ruby
<baweaver> Y'know, why not. I can just inherit from GuardBlockMatcher to make an Either style handler ala Haskell / Elixir
<baweaver> Gimme an hour or two
* baweaver looks at clock
<baweaver> actually, back home first
donofrio has quit [Remote host closed the connection]
cagmz has quit [Quit: Leaving]
schneider has quit [Ping timeout: 255 seconds]
schneider has joined #ruby
gnotc has quit [Quit: gnotc]
schneider has quit [Ping timeout: 268 seconds]
kies has quit [Ping timeout: 268 seconds]
schneider has joined #ruby
neohunter has quit [Quit: Textual IRC Client: www.textualapp.com]
schneider has quit [Ping timeout: 264 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has joined #ruby
<baweaver> #yield_self
<baweaver> Oooooo
schneider has quit [Ping timeout: 256 seconds]
schneider has joined #ruby
erlend has quit [Ping timeout: 264 seconds]
erlend has joined #ruby
schneider has quit [Ping timeout: 260 seconds]
venmx has joined #ruby
<baweaver> Now that's nice.
oleo has quit [Quit: Leaving]
schneider has joined #ruby
arescorpio has quit [Quit: Leaving.]
schneider has quit [Ping timeout: 264 seconds]
n13z has quit [Ping timeout: 240 seconds]
hkais has joined #ruby
schneider has joined #ruby
mynameisdebian has quit [Remote host closed the connection]
mynameisdebian has joined #ruby
<comet23> You're nice
schneider has quit [Ping timeout: 240 seconds]
schneider has joined #ruby
aufi has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hfp_work has quit [Ping timeout: 256 seconds]
hfp_work has joined #ruby
schneider has quit [Ping timeout: 268 seconds]
mikhael_k33hl has joined #ruby
<mikhael_k33hl> Am I implementing the product-consumer design pattern correctly in this ruby code? https://gist.github.com/marzdgzmn/8b5a9e996e814051d508a50bba5b31eb
<baweaver> might want to name the file .rb
reber has joined #ruby
<baweaver> The question isn't implementation necessarily
<baweaver> It's more of what the task is you're trying to achieve and if this explicitly makes sense for it
schneider has joined #ruby
<mikhael_k33hl> baweaver: Oh, trying to do parallel IO tasks, 10 rsyncs at a time :)
alfiemax has joined #ruby
<baweaver> might want to get your editor to use consistent tabs or spaces later too
<baweaver> but the pattern looks sane enough
<baweaver> Rubywise though....
<baweaver> `none?` is substantially faster than `select { ... }.size == 0`
schneider has quit [Ping timeout: 268 seconds]
<baweaver> The predicate `any?`, `all?`, and `none?` style methods are substantially faster than both `select` and `find`
<baweaver> and `count` is faster if you just want the size of matching elements
<mikhael_k33hl> baweaver: thanks, I'll try using that instead
alfiemax has quit [Ping timeout: 268 seconds]
<baweaver> The explicit false checks are odd
venmx has quit [Ping timeout: 268 seconds]
sidx64 has joined #ruby
Drakevr_ is now known as Drakevr
Drakevr has quit [Changing host]
Drakevr has joined #ruby
schneider has joined #ruby
<baweaver> I'd also pull that block into a named method somewhere
<baweaver> def unfinished?(thread) thread.nil? || !thread.status || !thread['finished'].nil? end
<baweaver> gives it a nice clear name that conveys more meaning from a glance
<baweaver> Work on being more consistent with your indentation too. There were blocks that were fairly far out. Definitely avoid the Python hanging indent too, it's hard to maintain and a pain to read
schneider has quit [Ping timeout: 260 seconds]
<baweaver> Later I might consider abstracting methods out of that run loop to make them easier to test and document
<mikhael_k33hl> baweaver: thanks mate, I'll look into it
schneider has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
<dminuoso> thread&.status || thread&.[]('finished')
<dminuoso> ;o
aupadhye has joined #ruby
aupadhye_ has joined #ruby
schneider has joined #ruby
aupadhye_ has quit [Client Quit]
aupadhye has quit [Client Quit]
aupadhye has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
darkhanb has joined #ruby
Yzguy has joined #ruby
jamesaxl has joined #ruby
Bored1238 has quit []
schneider has joined #ruby
nowhere_man has joined #ruby
Yzguy has quit [Quit: Zzz...]
Yzguy has joined #ruby
mtkd has joined #ruby
anisha has joined #ruby
schneider has quit [Ping timeout: 264 seconds]
eckhardt has joined #ruby
schneider has joined #ruby
apeiros has quit [Remote host closed the connection]
schneider has quit [Ping timeout: 265 seconds]
schneider has joined #ruby
eckhardt_ has joined #ruby
alex`` has joined #ruby
rippa has joined #ruby
eckhardt has quit [Ping timeout: 264 seconds]
roshanavand has quit [Quit: Leaving.]
<konsolebox> & was 2.3 right?
schneider has quit [Ping timeout: 245 seconds]
<konsolebox> looks like it: https://bugs.ruby-lang.org/issues/11537
kies has joined #ruby
kapil___ has joined #ruby
eckhardt_ has quit [Ping timeout: 268 seconds]
schneider has joined #ruby
Yzguy has quit [Quit: Cya]
venmx has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
Xiti` has joined #ruby
schneider has joined #ruby
Xiti has quit [Ping timeout: 264 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
schneider has quit [Ping timeout: 255 seconds]
venmx has quit [Ping timeout: 255 seconds]
Burgestrand has joined #ruby
schneider has joined #ruby
ur5us_ has quit [Remote host closed the connection]
sidx64_ has joined #ruby
sidx64 has quit [Ping timeout: 264 seconds]
schneider has quit [Ping timeout: 260 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
sidx64_ has quit [Ping timeout: 268 seconds]
schneider has joined #ruby
vondruch has quit [Ping timeout: 264 seconds]
erlend has quit [Ping timeout: 265 seconds]
schneider has quit [Ping timeout: 268 seconds]
erlend has joined #ruby
G_ has joined #ruby
schneider has joined #ruby
G_ is now known as Guest79256
red_menace has joined #ruby
red_menace has left #ruby [#ruby]
suukim has joined #ruby
mynameisdebian has quit [Ping timeout: 276 seconds]
schneider has quit [Ping timeout: 260 seconds]
TomyWork has joined #ruby
alfiemax has joined #ruby
schneider has joined #ruby
amar has joined #ruby
dionysus69 has joined #ruby
rabajaj has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has quit [Ping timeout: 264 seconds]
chmurifree is now known as chmuriu
chmuriu is now known as chmuri
schneider has joined #ruby
comet23 has quit [Disconnected by services]
mikecmpbll has joined #ruby
schneider has quit [Ping timeout: 256 seconds]
schneider has joined #ruby
yohji has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
clemens3_ has joined #ruby
eckhardt has joined #ruby
schneider has quit [Ping timeout: 276 seconds]
schneider has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
alex`` has quit [Ping timeout: 240 seconds]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
ltt has joined #ruby
schneider has quit [Ping timeout: 265 seconds]
amar has quit [Ping timeout: 264 seconds]
vondruch has joined #ruby
claudiuinberlin has joined #ruby
schneider has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
Guest79256 has quit [Read error: Connection reset by peer]
schneider has joined #ruby
madhatter has quit [Remote host closed the connection]
reber has quit [Remote host closed the connection]
madhatter has joined #ruby
schneider has quit [Ping timeout: 264 seconds]
dionysus69 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
mikecmpbll has joined #ruby
schneider has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
schneider has quit [Ping timeout: 265 seconds]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yohji has quit [Ping timeout: 260 seconds]
schneider has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ltt has joined #ruby
schneider has quit [Ping timeout: 265 seconds]
camilasan has quit [Read error: Connection reset by peer]
schneider has joined #ruby
yohji has joined #ruby
amar has joined #ruby
cadillac_ has quit [Ping timeout: 268 seconds]
schneider has quit [Ping timeout: 240 seconds]
cadillac_ has joined #ruby
amar has quit [Ping timeout: 264 seconds]
amar has joined #ruby
venmx has joined #ruby
marr has joined #ruby
schneider has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
phaul has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
amar has quit [Ping timeout: 263 seconds]
schneider has quit [Ping timeout: 246 seconds]
mikecmpb_ has joined #ruby
schneider has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
mikecmpbll has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
schneider has quit [Ping timeout: 246 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
camilasan has joined #ruby
shtirlic has quit [Ping timeout: 240 seconds]
shtirlic has joined #ruby
schneider has joined #ruby
ciscam has quit [Ping timeout: 264 seconds]
ciscam has joined #ruby
dmarcoux has left #ruby ["Leaving"]
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
catphish has joined #ruby
schneider has quit [Ping timeout: 260 seconds]
imode has quit [Ping timeout: 264 seconds]
claudiuinberlin has quit [Read error: No route to host]
mikhael_k33hl has quit [Ping timeout: 260 seconds]
schneider has joined #ruby
erlend has quit [Ping timeout: 260 seconds]
alfiemax has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 264 seconds]
Beams has joined #ruby
erlend has joined #ruby
schneider has quit [Ping timeout: 276 seconds]
reber has joined #ruby
jenrzzz has joined #ruby
schneider has joined #ruby
venmx has quit [Remote host closed the connection]
alfiemax has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
schneider has quit [Ping timeout: 264 seconds]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ltt has joined #ruby
schneider has joined #ruby
ur5us has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
the_drow has joined #ruby
schneider has joined #ruby
the_drow_ has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
hkais has quit [Quit: Leaving.]
rahul_bajaj has joined #ruby
alfiemax_ has joined #ruby
rabajaj has quit [Remote host closed the connection]
\void has joined #ruby
the_drow has quit [Ping timeout: 265 seconds]
schneider has quit [Ping timeout: 240 seconds]
rabajaj has joined #ruby
alfiemax has quit [Ping timeout: 255 seconds]
weaksauce has quit [Ping timeout: 265 seconds]
rahul_bajaj has quit [Ping timeout: 268 seconds]
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
shiroeni has joined #ruby
schneider has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
bosser has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
alex`` has joined #ruby
schneider has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
sundhell is now known as sundhell_away
jenrzzz has quit [Remote host closed the connection]
clemens3_ has quit [Ping timeout: 260 seconds]
bosser has quit [Quit: Lost terminal]
schneider has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
amar has joined #ruby
schneider has joined #ruby
guille-moe has joined #ruby
tvw has joined #ruby
banisterfiend has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
schneider has quit [Ping timeout: 264 seconds]
schneider has joined #ruby
apeiros has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
schneider has quit [Ping timeout: 256 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
guille-moe has quit [Ping timeout: 260 seconds]
quobo has joined #ruby
pppktz has quit [Read error: Connection reset by peer]
venmx has joined #ruby
schneider has joined #ruby
law has quit [Ping timeout: 276 seconds]
law has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
schneider has quit [Ping timeout: 265 seconds]
postmodern has quit [Quit: Leaving]
guille-moe has joined #ruby
schneider has joined #ruby
ur5us has quit [Remote host closed the connection]
halt has joined #ruby
halt is now known as Guest75029
GodFather has joined #ruby
Charliebr73 has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
schneider has quit [Ping timeout: 255 seconds]
Burgestrand has quit [Quit: Closing time!]
schneider has joined #ruby
tomphp has joined #ruby
mikecmpb_ has quit [Quit: inabit. zz.]
rabajaj has quit [Remote host closed the connection]
rabajaj has joined #ruby
mikecmpbll has joined #ruby
amar_ has joined #ruby
schneider has quit [Ping timeout: 260 seconds]
amar has quit [Ping timeout: 256 seconds]
amar_ has quit [Ping timeout: 260 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
yohji has quit [Ping timeout: 255 seconds]
schneider has quit [Ping timeout: 240 seconds]
kapil___ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
schneider has joined #ruby
yohji has joined #ruby
AJA4350 has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
RougeR has joined #ruby
suukim has quit [Quit: Konversation terminated!]
hkais has joined #ruby
kurko_ has joined #ruby
schneider has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
kedare has joined #ruby
Burgestrand has joined #ruby
ellcs has joined #ruby
schneider has joined #ruby
karapetyan has joined #ruby
chmuri has quit [Excess Flood]
erlend has quit [Ping timeout: 240 seconds]
chrisseaton has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
chmurifree has joined #ruby
erlend has joined #ruby
schneider has quit [Ping timeout: 256 seconds]
schneider has joined #ruby
macduck has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
schneider has quit [Ping timeout: 268 seconds]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apparition has joined #ruby
schneider has joined #ruby
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
minimalism has quit [Read error: Connection reset by peer]
jinie has joined #ruby
nadir has joined #ruby
schneider has quit [Ping timeout: 264 seconds]
minimalism has joined #ruby
ltt has joined #ruby
schneider has joined #ruby
macduck has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 255 seconds]
macduck has joined #ruby
cadillac_ has quit [Ping timeout: 256 seconds]
cadillac_ has joined #ruby
amatas has joined #ruby
jenrzzz has joined #ruby
amatas has quit [Client Quit]
noobineer has joined #ruby
noobineer has quit [Max SendQ exceeded]
schneider has quit [Ping timeout: 260 seconds]
amatas has joined #ruby
sidx64 has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
sidx64 has joined #ruby
nadir is now known as TownsendAvalanch
schneider has joined #ruby
TownsendAvalanch is now known as nadir
jenrzzz has quit [Ping timeout: 265 seconds]
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
amatas has quit [Remote host closed the connection]
amatas has joined #ruby
ldnunes has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
schneider has quit [Ping timeout: 260 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
tcopeland has quit [Quit: tcopeland]
Charliebr73 has quit []
schneider has joined #ruby
karapetyan has quit [Ping timeout: 246 seconds]
Psybur has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
schneider has quit [Ping timeout: 276 seconds]
schneider has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
alex`` has quit [Quit: WeeChat 2.1]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
schneider has quit [Ping timeout: 256 seconds]
duderonomy has joined #ruby
Beams_ has joined #ruby
Beams has quit [Ping timeout: 256 seconds]
schneider has joined #ruby
yohji has quit [Ping timeout: 264 seconds]
ellcs has quit [Ping timeout: 268 seconds]
cabotto has joined #ruby
n13z has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
schneider has quit [Ping timeout: 264 seconds]
darkhanb has joined #ruby
cadillac_ has joined #ruby
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ltt has joined #ruby
schneider has joined #ruby
despai has joined #ruby
<mkaito> hey does anyone here use NixOS to write Ruby on? I keep running into issues with bundler.
yohji has joined #ruby
roshanavand has joined #ruby
reber has quit [Ping timeout: 256 seconds]
minimalism has quit [Quit: minimalism]
schneider has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
schneider has joined #ruby
rabajaj has quit [Remote host closed the connection]
rabajaj has joined #ruby
reber has joined #ruby
minimalism has joined #ruby
amatas has quit [Ping timeout: 268 seconds]
karapetyan has joined #ruby
schneider has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
schneider has joined #ruby
minimalism has quit [Quit: minimalism]
triston has joined #ruby
triston has quit [Max SendQ exceeded]
phaul has quit [Ping timeout: 240 seconds]
Cavallari has joined #ruby
schneider has quit [Ping timeout: 260 seconds]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
suukim has joined #ruby
karapetyan has joined #ruby
Esa_ has joined #ruby
the_drow__ has joined #ruby
minimalism has joined #ruby
bmurt has joined #ruby
schneider has joined #ruby
the_drow_ has quit [Ping timeout: 260 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
schneider has quit [Ping timeout: 264 seconds]
skw has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
<darix> mkaito: your issues might not be nixos specific and if you showed error messages then people might actually be able to help you.
skw has quit [Read error: Connection reset by peer]
the_drow_ has joined #ruby
schneider has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
the_drow__ has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
sidx64 has joined #ruby
rabajaj has quit [Remote host closed the connection]
darkhanb has joined #ruby
rabajaj has joined #ruby
skw has joined #ruby
rfoust has joined #ruby
the_drow__ has joined #ruby
<mkaito> oh they are. I encounter 2 different errors. One, bundler tries to write to the nix store, which is read-only. the other is that somewhere, bundler 1.16.1 gets activated, but the system version is 1.14.6, so it bails.
darkhanb has quit [Client Quit]
schneider has quit [Ping timeout: 256 seconds]
the_drow_ has quit [Ping timeout: 264 seconds]
kedare has quit [Quit: Konversation terminated!]
jenrzzz has quit [Ping timeout: 264 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sundhell_away is now known as sundhell
Burgestrand has quit [Quit: Closing time!]
duderonomy has joined #ruby
schneider has joined #ruby
the_drow__ is now known as the_drow
<konsolebox> mkaito: for your second problem, perhaps you need to set PATH to the path where bundler is installed as a gem in your user.
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Asher has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
<konsolebox> mkaito: in my case i add `PATH+=:$(ruby -e 'puts Gem.bindir')` in .bashrc
tcopeland has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
duderonomy has quit [Ping timeout: 264 seconds]
<konsolebox> wait.. i think that should be the other way around: PATH=$(ruby -e 'puts Gem.bindir'):$PATH
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has quit [Ping timeout: 260 seconds]
<konsolebox> yes it should be the latter
<mkaito> that should actually be handled by Nix. That's kind of what it does.
<mkaito> ruby tooling on nixos is kind of in a bad shape anyway
<mkaito> not enough people working on it
bmurt has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
Burgestrand has joined #ruby
<mkaito> oh well, it's decided to work now. will probably break again in 5 minutes.
schneider has joined #ruby
ltt has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
cabotto has quit [Remote host closed the connection]
<darix> mkaito: my guess is that you have sudo rights and it tries to install gems into the system path
phaul has joined #ruby
<mkaito> nah, it's that the nix store is a RO mount.
<darix> mkaito: yes
<darix> but bundle install will only write there if it thinks it should install gems to system. e.g. when called with "bundle install --system"
erlend has quit [Ping timeout: 260 seconds]
schneider has quit [Ping timeout: 268 seconds]
erlend has joined #ruby
<mkaito> I've convinced it manually by setting GEM_HOME
jeffreylevesque has joined #ruby
<mkaito> it's just a little confusing sometimes... because it should all be handled by nix transparently.
<mkaito> sometimes it works, and then it decides it doesn't
<jokke> yeah
<jokke> had the same experience
karapetyan has quit [Remote host closed the connection]
<jokke> i like the concept, but it turned out not to work in practice
karapetyan has joined #ruby
<mkaito> nix is an amazing thing. it's just that many assumptions made in ruby tooling don't mesh with nix at all.
<jokke> yeah
<jokke> not only ruby
<mkaito> like the read-only nix store. try packaging something for nixos that assumes it can write to its installation folder. it's a nightmare.
<darix> mkaito: nothing should by default write to the installation folder.
<darix> that's what /var/lib is for
<mkaito> try deploying a servlet that assumes it can write to WEB-INF :P
<mkaito> the symlink soup was epic for that one
<darix> which is broken by design
<mkaito> agreed
<darix> I also hate that default permissions you see in many rails apps e.g.
<darix> where the app is owned by the runtime user,
<darix> for easier persistence when getting hacked, i guess.
<mkaito> lol
<mkaito> or tmp/log folders in the app tree
schneider has joined #ruby
<darix> mkaito: but we normally dont load code from those directories.
<darix> while dropping a snippet into config/initializers/
<darix> or a new controller to reload my exploit after restart
<darix> different thing
karapetyan has quit [Remote host closed the connection]
<mkaito> well I recently packaged hubot for nix. FNAR it wanted to create and then immediately destroy a folder in the installation root. That's the kind of thing that takes a lot of `strace`, and then a lot of facepalming when trying to debug.
karapetyan has joined #ruby
<darix> mkaito: i fixed similar things for other tools.
<mkaito> now that I have something resembling a development environment working... it'll be twice the fun when packaging it for deployment.
<darix> maybe add a patch to configure the datadir :P
karapetyan has quit [Remote host closed the connection]
<mkaito> nah, we've decided to write our own little bot framework in Haskell
<mkaito> nobody wants to touch javascript here lol
Burgestrand has quit [Quit: Closing time!]
<darix> between those 2 languages it is like pest vs cholera
schneider has quit [Ping timeout: 245 seconds]
ellcs has joined #ruby
cabotto has joined #ruby
<mkaito> well I work at a Haskell shop
<mkaito> I'm sure some of them can figure it out
macduck has quit [Ping timeout: 260 seconds]
<mkaito> I'm the devops :P
<darix> everyone does that mistake at times
<mkaito> I don't Haskell, I just run their stuff
duderonomy has joined #ruby
* darix wonders if mkaito works for wireapp
<mkaito> no, but we just had someone leave there lol
chouhoulis has joined #ruby
<konsolebox> come to Gentoo. here, even 4 ruby versions can live happily ever after.
<darix> konsolebox: only 4? opensuse has 5! ;)
karapetyan has joined #ruby
<konsolebox> :D
schneider has joined #ruby
<darix> well for leap 15.0 i cut it down to 1: 2.5
<darix> and we have a decent way to repackage gems in rpms. which allows nice packaging of rails apps.
* darix has a gitlab-ce and discourse rpm e.g.
jenrzzz has quit [Ping timeout: 265 seconds]
<mkaito> I'll someday find time to work on the ruby tooling in NixOS, probably...
chouhoulis has quit [Remote host closed the connection]
<mkaito> I just wanted to put up a quick proof of concept for something, and since I know ruby...
<mkaito> not been very successful so far lol
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
dr3w_ has joined #ruby
karapetyan has quit [Ping timeout: 264 seconds]
schneider has quit [Ping timeout: 264 seconds]
k0mpa has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
macduck has joined #ruby
schneider has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
duderonomy has quit [Ping timeout: 245 seconds]
banisterfiend has joined #ruby
pilne has quit [Quit: Leaving]
GodFather has quit [Ping timeout: 256 seconds]
Burgestrand has joined #ruby
schneider has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
ellcs has quit [Ping timeout: 264 seconds]
kedare has joined #ruby
amar has joined #ruby
jerematic has joined #ruby
duderonomy has joined #ruby
schneider has joined #ruby
amatas has joined #ruby
schneider has quit [Ping timeout: 265 seconds]
amatas has quit [Read error: Connection reset by peer]
amatas has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
Burgestrand has quit [Quit: Closing time!]
kurko__ has joined #ruby
shiroeni has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 263 seconds]
schneider has joined #ruby
Asher has joined #ruby
Burgestrand has joined #ruby
Beams_ has quit [Quit: .]
amelliaa has joined #ruby
rfoust has quit [Ping timeout: 276 seconds]
sirecote has quit [Quit: "Hang Up"]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has quit [Ping timeout: 240 seconds]
Asher has quit [Ping timeout: 256 seconds]
Beams has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rapture has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has joined #ruby
Asher has joined #ruby
pastorinni has joined #ruby
Burgestrand has quit [Quit: Closing time!]
cschneid_ has joined #ruby
Asher has quit [Ping timeout: 268 seconds]
schneider has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
tomphp has quit [Client Quit]
schneider has joined #ruby
hammer has joined #ruby
Dimik has joined #ruby
gizmore has joined #ruby
karapetyan has joined #ruby
tcopeland has quit [Quit: tcopeland]
hammer_ has joined #ruby
rfoust has joined #ruby
hanmac has quit [Ping timeout: 255 seconds]
karapetyan has quit [Remote host closed the connection]
hammer has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
tcopeland has joined #ruby
chouhoulis has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
chouhoulis has quit [Remote host closed the connection]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
apparition has quit [Quit: Bye]
chouhoulis has joined #ruby
netherwolfe has joined #ruby
tomphp has joined #ruby
grilix has joined #ruby
banisterfiend has joined #ruby
hanmac has joined #ruby
jud^ has joined #ruby
oleo has joined #ruby
karapety_ has joined #ruby
Burgestrand has joined #ruby
jud has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
karapetyan has quit [Ping timeout: 265 seconds]
dr3w_ has joined #ruby
sirecote has joined #ruby
Xiti` has quit [Quit: Xiti`]
Xiti has joined #ruby
aupadhye has quit [Ping timeout: 260 seconds]
duderonomy has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
Cavallari has quit [Quit: Cavallari]
Mike11 has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Beams has quit [Quit: .]
Beams has joined #ruby
maxmanders has quit [Quit: ZNC - http://znc.in]
Muz has quit [Remote host closed the connection]
rfoust has quit [Ping timeout: 255 seconds]
guest__ has joined #ruby
<guest__> hello :)
<havenwood> guest__: hi
<guest__> hi havenwood
stnly has joined #ruby
<guest__> if I am not wrong, in this chat people are talking ruby? :)
psychicist__ has joined #ruby
apeiros has joined #ruby
guest__ has quit [Client Quit]
Muz has joined #ruby
yohji has quit [Ping timeout: 256 seconds]
cyberg has joined #ruby
Burgestrand has quit [Quit: Closing time!]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kurko__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ltt has joined #ruby
theunraveler has joined #ruby
apeiros has quit [Remote host closed the connection]
amar has quit [Remote host closed the connection]
<gizmore> this channel is about ruby, the movie?
yohji has joined #ruby
<headius> only if the movie is about ruby, the programming language
jcarl43 has joined #ruby
erlend has quit [Ping timeout: 256 seconds]
ellcs has joined #ruby
amar has joined #ruby
erlend has joined #ruby
konsolebox has quit [Max SendQ exceeded]
apeiros has joined #ruby
vutral|kali has joined #ruby
<vutral|kali> where does ruby look for classes ?
<dminuoso> vutral|kali: It checks the current nesting stack.
<dminuoso> vutral|kali: To see the current nesting stack, use `Module.nesting`
<dminuoso> vutral|kali: Ah actually Im tired to explain it. https://cirw.in/blog/constant-lookup.html
amar has quit [Remote host closed the connection]
<vutral|kali> thx
<dminuoso> vutral|kali: Note that it's not entirely up to date anymore.
<dminuoso> In 2.5 changes were made that, unless explicitly qualified with Object::, lookup stops at Object.
<dminuoso> Or something ah I dont know. Requires a PhD to understand fundamental Ruby basics.
<phaul> :)
<dminuoso> I wrote patches in that area, but forgot about it.
marxarelli|afk has quit [Ping timeout: 240 seconds]
TomyWork has quit [Ping timeout: 240 seconds]
troys has joined #ruby
cabotto has quit []
konsolebox has joined #ruby
dr3w_ has joined #ruby
shinnya has quit [Ping timeout: 268 seconds]
karapetyan has joined #ruby
karapety_ has quit [Ping timeout: 260 seconds]
cschneid_ has quit [Remote host closed the connection]
Yrie has joined #ruby
<Yrie> Help
Yrie has quit [Client Quit]
<apeiros> poor lad, got sucked into the bottomless abyss of the irc
kurko_ has joined #ruby
psychicist__ has quit [Ping timeout: 256 seconds]
psychicist__ has joined #ruby
cagomez has joined #ruby
alex`` has joined #ruby
marxarelli has joined #ruby
memo1 has joined #ruby
ryzokuken has joined #ruby
[Butch] has joined #ruby
the_drow has quit [Ping timeout: 276 seconds]
<memo1> hi, i need to get video from a video camera using ffmpeg. I already do the script, but went the camera is down, the scripts finish and dont start again. Any ideas to check connection and start the streaming again?
ellcs has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
darkhanb has joined #ruby
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has joined #ruby
amar has joined #ruby
cthulchu has joined #ruby
ltt has joined #ruby
amar has quit [Remote host closed the connection]
jeremati_ has joined #ruby
jeremati_ has quit [Read error: Connection reset by peer]
jerematic has quit [Ping timeout: 260 seconds]
jerematic has joined #ruby
amar has joined #ruby
pabs has quit [Ping timeout: 260 seconds]
GodFather_ has joined #ruby
aufi has quit [Quit: Leaving]
GodFather has quit [Ping timeout: 256 seconds]
pabs has joined #ruby
catphish has quit [Quit: Leaving]
amar has quit [Remote host closed the connection]
<gizmore> memo1: use a bash script in cronjob that launches the daemone every 2s with a lock
mikecmpbll has quit [Quit: inabit. zz.]
<gizmore> so you get down from 1minute cronjob to 2s
<gizmore> i know that is not state of the art maybe... but works and is easy :PO
amar_ has joined #ruby
GodFather_ has quit [Ping timeout: 256 seconds]
dionysus69 has joined #ruby
amatas has quit [Quit: amatas]
amar_ has quit [Ping timeout: 260 seconds]
amatas has joined #ruby
amatas has quit [Client Quit]
<vdl> hi folks
<havenwood> vdl: hi
<vdl> why this works fine: http://ix.io/17Wo but this: http://ix.io/17Wp fails with undefined method `register' for main:Object (NoMethodError)?
amatas has joined #ruby
* vdl prepares himself to feel stupid
yohji has quit [Ping timeout: 264 seconds]
claudiuinberlin has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
<NL3limin4t0r_afk> nick /NL3limin4t0r
millerti has joined #ruby
<konsolebox> vdl: with `Asciidoctor::Extensions.register`, you're calling the singleton method of Asciidoctor::Extensions, where is with just 'register', you're calling an instance method of Object which was never there. when you executed include Asciidoctor::Extensions, you only "included" the module to the Object class. maybe you can extend, but i'm not sure if that's a good idea. why not just stick with the first method?
karapetyan has quit [Remote host closed the connection]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> vdl: If they would have used module_function it would behave as you expect, but they used `class << self`.
alfiemax has joined #ruby
jerematic has quit [Remote host closed the connection]
NL3limin4t0r_afk is now known as NL3limin4t0r
jerematic has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
<vdl> konsolebox: I will stick with the first version, I was just curious why what seemed intuitive to me didn't work
<vdl> havenwood: would module_function be prefered here or `class << self` is legit?
<havenwood> vdl: I think what you expected is reasonable, and it's why module_function is nice.
<konsolebox> vdl: because it's not like a namespace in c++ than you can just "use". extending and including changes context or receiver.
<havenwood> vdl: It's a fairly minor point, but i'd prefer it to work as you expected. Much of the stdlib uses module_function, so we get used to it working like that.
sanscoeur has joined #ruby
<havenwood> Many would argue that module_function is idiomatic.
<havenwood> I do like it.
<vdl> I'll propose a patch, we'll see what they think
<vdl> havenwood: would changing it for a module_function have side effect?
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang65 has quit [Remote host closed the connection]
<NL3limin4t0r> vdl: If you change an singleton method to an instance method all method calls made become invalid since they are not made in the right context and have to prefixed with the singleton class.
Beams has quit [Quit: .]
<NL3limin4t0r> eg. `generate_name` would become `Extensions.generate_name`
ltt has joined #ruby
<vdl> ok I see
tomphp has joined #ruby
<vdl> I'll fill an issue instead and see how it goes
<NL3limin4t0r> if you're working with classes you can also use `self.class.method_name` but this doesn't work for modules.
hahuang65 has joined #ruby
<NL3limin4t0r> One of the reasons to use singleton methods in modules is to avoid cluttering the class/module that includes them.
tomphp has quit [Client Quit]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<NL3limin4t0r> Than only expose the methods via instance methods that the user is to supposed to interface with.
<memo1> gizmore: thank you, dont understat the "lock" part, how i do that?
d5sx43 has joined #ruby
<gizmore> memo1: a lock is ensuring only one program at a time can access something
<konsolebox> havenwood: your idea seems to be similar to `module X; def something; end; extend self; end` but that may not always work since a singleton method like register may be designed to only work for its owner.
venmx has quit [Ping timeout: 264 seconds]
<konsolebox> furthermore, generally including a module to Object could be disastrous.
<vdl> issue created, thanks
mtkd has quit []
<apeiros> konsolebox: that's where module_function is better than extend self
d5sx43 has quit [Remote host closed the connection]
<apeiros> see e.g. Math and Kernel
<apeiros> all methods there are module_function
<apeiros> Kernel is included in Object, and it's not really a problem to include Math
<apeiros> mainly because module_function turns instance methods private (which makes sense)
<konsolebox> that difference is just about being selective, but it doesn't change the idea
<apeiros> that's rather hand-waving something substantial ;-)
kedare has quit [Quit: Konversation terminated!]
<apeiros> "1'000'000 is just a 1 with a couple of zeroes"
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
d5sx43_ has joined #ruby
amar has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
Eiam has joined #ruby
Asher has joined #ruby
d5sx43_ has quit [Client Quit]
marxarelli is now known as marxarelli|afk
d5sx43_ has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
d5sx43_ has quit [Client Quit]
mtkd has joined #ruby
hkais has quit [Ping timeout: 264 seconds]
alfiemax_ has joined #ruby
skw has quit [Ping timeout: 264 seconds]
alfiemax has quit [Ping timeout: 264 seconds]
<konsolebox> apeiros: fair enough. i get the idea about methods being made private. i still wouldn't include a special module like that even if that is the case. the private methods can still be in danger of being shadowed.
\void is now known as |||
<apeiros> eh, me neither
||| is now known as \void
<apeiros> I try to avoid both, extend self and module_function
<konsolebox> same
<apeiros> but if the rare case occurs that I want to be able to both include and call on the module directly, I use module_function over extend self
<konsolebox> same as well
<konsolebox> oh wait.. maybe
icarus has quit [Ping timeout: 256 seconds]
erlend has quit [Ping timeout: 255 seconds]
suukim has quit [Remote host closed the connection]
mtkd has quit [Ping timeout: 265 seconds]
erlend has joined #ruby
k0mpa has quit [Ping timeout: 268 seconds]
<kapil___> can i write `datastream.scan(/(.*\#{word}(.*?\r?\n?)*\#{word})/)`
<kapil___> #{word} is variable?
<Eiam> kapil___: Regexp.quote(variable)
<Eiam> inside your #{}
<kapil___> Eiam: how?
<kapil___> Eiam: thanks
<Eiam> it explains why thats important/useful, no need for me to repeat whats alread ywritten
eckhardt has joined #ruby
<kapil___> `/(.*\#{Regexp.quote(word)}(.*?\r?\n?)*\#{Regexp.quote(word)})/` not working
<havenwood> kapil___: Don't escape the # in #{}.
<havenwood> kapil___: Remove the backwhacks from: \#{
<kapil___> ok
<Eiam> ^
Mike11 has quit [Ping timeout: 264 seconds]
<kapil___> `/(.*\#Regexp.quote(word)(.*?\r?\n?)*\#Regexp.quote(word))/` not works too
<havenwood> kapil___: You're still escaping the #{}s.
<havenwood> kapil___: You removed the { when you should have removed the \
<havenwood> kapil___: #{} <- this
<havenwood> kapil___: \#{} <- not this
<kapil___> ok
<kapil___> `/(.*#{Regexp.quote(word)}(.*?\r?\n?)*#{Regexp.quote(word)})/` works. thanks
workmad3 has quit [Ping timeout: 264 seconds]
cliluw has joined #ruby
harrycs has joined #ruby
<Eiam> kapil___: Just to make sure you understand whats going on, \ is an escape character inside of a regexp, so when you do \# you are telling regex to look explicitly for "#". Regexp.quote takes the string passed to it and looks for characters that should be escaped and adds \ for you, so "." becomes "\." since "." has a special meaning in regexp
<kapil___> Eiam: thanks a lot.
<Eiam> mm hmm, may you catch many fish
<harrycs> ^ I like using rubular.com for regex stuff
<kapil___> but this function stopped working `datastream.scan(/(.*#{Regexp.quote(word)}(.*?\r?\n?)*#{Regexp.quote(word)})/).last`
<Eiam> I suggets using Rubular as well
<Eiam> I write all my regex in it so I can see how all the test cases pan out as various inputs
<Eiam> Not interested in reversing the goal of your regex, its write once read never code.
<kapil___> Eiam: thanks
<Eiam> Build it in Rubular and see why its not working. BRB OS update.
alfiemax_ has quit [Remote host closed the connection]
<kapil___> if i not use Regexp.quote it woks
alfiemax has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
Eiam has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> kapil___: note that /.*?\r?\n?/ will happily match an empty string
<kapil___> apeiros: yes
<kapil___> but why it not working
<kapil___> word = "# Part7A"
Cthulu201 has quit [Quit: Nowhere special. I always wanted to go there.]
despai has quit [Quit: ...]
<NL3limin4t0r> >> "Hello\r\nWorld!".match? /\A.*\z/
<ruby[bot]> NL3limin4t0r: # => undefined method `match?' for "Hello\r\nWorld!":String ...check link for more (https://eval.in/989109)
kaawaa has quit [Quit: Leaving]
karapetyan has joined #ruby
memo1 has quit [Ping timeout: 240 seconds]
karapetyan has quit [Ping timeout: 256 seconds]
orbyt_ has joined #ruby
ramfjord has joined #ruby
<kapil___> it works now thanks
<havenwood> NL3limin4t0r: we need to update the bot's Ruby version
sauvin has quit [Read error: Connection reset by peer]
Cthulu201 has joined #ruby
<NL3limin4t0r> havenwood: I didn't knew #match? wasn't in 2.3, it feels like it's in forever.
<NL3limin4t0r> kapil___: You can use the 'm' modifier to also match newline characters.
<NL3limin4t0r> >> "Hello\r\nWorld!".match(/\A.*\z/)
<ruby[bot]> NL3limin4t0r: # => nil (https://eval.in/989122)
<NL3limin4t0r> >> "Hello\r\nWorld!".match(/\A.*\z/m)
<ruby[bot]> NL3limin4t0r: # => #<MatchData "Hello\r\nWorld!"> (https://eval.in/989123)
<kapil___> NL3limin4t0r: what the above functions matches?
banisterfiend has joined #ruby
hkais has joined #ruby
Eiam has joined #ruby
<NL3limin4t0r> kapil___: You use `(.*?\r?\n?)*` in your regex, you can also use the 'm' modifier in it's place and replace the part with `(?m:.*?)` or add the 'm' behind the regex `/regex/m` if you want all dots to match newlines.
govg has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
GodFather_ has joined #ruby
sameerynho has joined #ruby
pastorinni has quit [Ping timeout: 265 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
imode has joined #ruby
NL3limin4t0r is now known as NL3limin4t0r_afk
despai has joined #ruby
chouhoul_ has joined #ruby
karapetyan has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
n0m4d1c has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kspencer_ has quit [Changing host]
kspencer_ has joined #ruby
kspencer_ is now known as kspencer
chouhoulis has joined #ruby
<kspencer> I have code where a webhook receiver is catching x-gitlab-event, x-github-event, and x-gogs-event, and to differentiate and be 'error-proof' I want to make sure only one of them ever returns anything other than nil, basically making them 'there can only be one', if x-github-event and x-gitlab-event exist, then the request should 400 telling the user there is more than one event defined
tvw has quit []
<kspencer> the goes for any combination of the three
<kspencer> this goes*
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
chouhoul_ has quit [Ping timeout: 240 seconds]
schneider has quit [Ping timeout: 256 seconds]
duderonomy has joined #ruby
schneider has joined #ruby
darkhanb has joined #ruby
amatas has quit [Quit: amatas]
clemens3_ has joined #ruby
venmx has joined #ruby
duderonomy has quit [Client Quit]
schneider has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
chouhoulis has quit [Remote host closed the connection]
dr3w_ has joined #ruby
chouhoulis has joined #ruby
dr3w_ has quit [Client Quit]
schneider has joined #ruby
ta__ has quit [Read error: Connection reset by peer]
SeepingN has joined #ruby
ta_ has joined #ruby
schneider has quit [Ping timeout: 255 seconds]
tomphp has joined #ruby
schneider has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Ping timeout: 265 seconds]
bmurt has joined #ruby
schneider has joined #ruby
bmurt has quit [Remote host closed the connection]
bmurt has joined #ruby
Psybur has quit [Ping timeout: 240 seconds]
schneider has quit [Ping timeout: 256 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skw has joined #ruby
GodFather_ has quit [Quit: Ex-Chat]
GodFather has joined #ruby
workmad3 has joined #ruby
mtkd has joined #ruby
imode has quit [Quit: WeeChat 2.1]
workmad3 has quit [Ping timeout: 240 seconds]
tcopeland has quit [Quit: tcopeland]
venmx has quit [Remote host closed the connection]
schneider has quit [Ping timeout: 260 seconds]
jenrzzz_ has joined #ruby
tcopeland has joined #ruby
Apocalypse has quit [Ping timeout: 265 seconds]
schneider has joined #ruby
Apocalypse has joined #ruby
sanscoeu_ has joined #ruby
chouhoul_ has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
Puppet_ has quit [Quit: Leaving]
sanscoeur has quit [Ping timeout: 256 seconds]
chouhoul_ has quit [Remote host closed the connection]
Sembei has joined #ruby
chouhoulis has joined #ruby
mtkd has quit [Ping timeout: 256 seconds]
orbyt_ has joined #ruby
gigetoo has quit [Ping timeout: 256 seconds]
gigetoo has joined #ruby
n008f4g_ has joined #ruby
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
graft has quit [Ping timeout: 240 seconds]
eckhardt has joined #ruby
graft has joined #ruby
dr3w_ has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
weaksauce has joined #ruby
AJA4350 has joined #ruby
pabloh has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
jeffreylevesque has quit [Ping timeout: 268 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
amar has quit [Ping timeout: 265 seconds]
pastorinni has joined #ruby
erlend has quit [Ping timeout: 256 seconds]
erlend has joined #ruby
memo1 has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
theunraveler has quit []
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
schneider has quit [Quit: WeeChat 2.0.1]
ramfjord has joined #ruby
eckhardt has quit [Read error: Connection reset by peer]
eckhardt has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
roshanavand has quit [Ping timeout: 245 seconds]
mahlon_ is now known as mahlon
mkaito has quit [Read error: Connection reset by peer]
n0m4d1c has quit [Remote host closed the connection]
postmodern has joined #ruby
mkaito has joined #ruby
mkaito has joined #ruby
mkaito has quit [Changing host]
ramfjord has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
roshanavand has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
ramfjord has joined #ruby
hays_ has joined #ruby
hays_ has quit [Changing host]
hays_ has joined #ruby
grilix has quit [Ping timeout: 265 seconds]
sanscoeu_ has quit [Remote host closed the connection]
sanscoeur has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jerematic has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldnunes has quit [Quit: Leaving]
ramfjord has joined #ruby
reber has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhou__ has joined #ruby
hkais has quit [Quit: Leaving.]
ramfjord has quit [Ping timeout: 268 seconds]
chouhoulis has quit [Ping timeout: 264 seconds]
harrycs has quit [Ping timeout: 260 seconds]
chouhoul_ has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
hays_ has quit [Remote host closed the connection]
lxsameer has joined #ruby
amelliaa has quit [Quit: -]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pilne has joined #ruby
nicesignal has quit [Quit: WeeChat 1.4]
orbyt_ has joined #ruby
<kspencer> I kinda figured it out, using Enumerable.one?
roshanavand has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
workmad3 has joined #ruby
pastorin_ has joined #ruby
pastorinni has quit [Ping timeout: 245 seconds]
banisterfiend has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
ur5us has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
ur5us has quit [Read error: No route to host]
ur5us_ has joined #ruby
tomphp has joined #ruby
karapetyan has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 260 seconds]
samort7 has joined #ruby
ramfjord has joined #ruby
jamesaxl has quit [Quit: WeeChat 2.1]
<havenwood> kspencer: There was a proposal for #Enumerable#single: https://bugs.ruby-lang.org/issues/13683
tcopeland has quit [Quit: tcopeland]
<havenwood> kspencer: If that would be useful for you, I'd suggest weighing in on that issue. (And if you really want it to be merged, also propose a better name.)
karapetyan has joined #ruby
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
roshanavand has joined #ruby
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
eckhardt has quit [Read error: Connection reset by peer]
memo1 has quit [Quit: WeeChat 1.4]
memo1 has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul has quit [Ping timeout: 260 seconds]
Psybur has joined #ruby
ptr4ce has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
n0m4d1c has joined #ruby
nowhere_man has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 264 seconds]
ur5us_ has quit [Read error: No route to host]
nowhere_man has joined #ruby
icarus has joined #ruby
ur5us has joined #ruby
banisterfiend has joined #ruby
chouhoulis has joined #ruby
ramfjord has joined #ruby
banisterfiend has quit [Client Quit]
chouhou__ has quit [Ping timeout: 256 seconds]
Esa_ has quit []
chouhoulis has quit [Ping timeout: 256 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
ur5us has quit [Read error: No route to host]
ur5us_ has joined #ruby
mikecmpbll has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
alex`` has quit [Ping timeout: 256 seconds]
ramfjord has quit [Ping timeout: 268 seconds]
minimalism has quit [Quit: minimalism]
ramfjord has joined #ruby
hammer_ has quit [Remote host closed the connection]
hammer has joined #ruby
<roshanavand> what's the simples pure Ruby way to run two transactions in parallel at the same time
<roshanavand> by pure Ruby I mean avoid using external gems
Mia has quit [Read error: Connection reset by peer]
Psybur has quit [Remote host closed the connection]
<Eiam> ruby has threads
Psybur has joined #ruby
<Eiam> Thread.new
hammer has quit [Ping timeout: 276 seconds]
<havenwood> roshanavand: When you say transactions, what do you mean?
<roshanavand> havenwood: Here I meant db transactions
<Eiam> oh... Sequel has support for transactions and concurrency but its an external gem...
<Eiam> does Ruby by default support databases? I don't think so...
<Eiam> i mean, its code, you can build the support yourself ;)
<havenwood> Eiam: It does! (DBM.) ¯\_(ツ)_/¯
banisterfiend has joined #ruby
hammer has joined #ruby
<Eiam> havenwood: ha, totally missed that. I use Sequel cause its so good
<havenwood> Eiam: +1 Sequel
eckhardt has joined #ruby
<Eiam> and glancing at the DBM documentation, transactions and concurrency lolll
venmx has joined #ruby
<roshanavand> does using thread mean that they'll both be running at the same instant
<roshanavand> ?
<havenwood> Eiam: Ruby stdlib has DBM, GDBM, SDBM and YAML::DBM.
<Eiam> roshanavand: uhmm
<Eiam> I'm already concerned about whatever you are trying to do
<havenwood> The only one I ever use is YAML::DBM.
<havenwood> YDBM
<havenwood> roshanavand: Threads let go of the global vm lock when they do IO.
<Eiam> roshanavand: nothing on the computer is running at the same instant
<havenwood> roshanavand: On JRuby there is no GVL.
<havenwood> roshanavand: Say more about what you're doing and why?
<Eiam> ^
Azure has quit [Excess Flood]
<havenwood> roshanavand: Do you already have a DB? What DB is it? Using any gems with it?
<roshanavand> hmm, I'm trying to test a split brain situation
John_Ivan has quit [Read error: Connection reset by peer]
<havenwood> On a specific DB?
<roshanavand> pg
<roshanavand> on rails 4
<havenwood> roshanavand: Using default ActiveRecord?
<roshanavand> yes
ptr4ce has quit [Ping timeout: 256 seconds]
<havenwood> roshanavand: And you're trying to establish a test? Or?
<havenwood> roshanavand: Using RSpec or Minitest or?
<Eiam> avoid using external gems, already using activerecord & Rails
* Eiam facepalms
Azure has joined #ruby
<roshanavand> OK, sorry, let me ask a better question
<roshanavand> Using Rails, PG and RSpec, how would you test an advisory lock for avoiding split brain situations
<roshanavand> I hope this was better saying
nowhere_man has quit [Remote host closed the connection]
weaksauce has quit [Ping timeout: 264 seconds]
zapata has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
<havenwood> kspencer: +1
<havenwood> roshanavand: Yes, that's much better.
<havenwood> roshanavand: I'd suggest asking in #RubyOnRails. You might also check if there's an existing test along those lines. Sometimes we get tempted to test what Rails is already testing.
despai has quit [Quit: ...]
cschneid_ has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
cschneid_ has joined #ruby
Azure|dc has joined #ruby
erlend has quit [Ping timeout: 264 seconds]
Isa_ has joined #ruby
cschnei__ has joined #ruby
<havenwood> roshanavand: Keep in mind that there're implicit transactions around your tests: https://relishapp.com/rspec/rspec-rails/docs/transactions
mjolnird has quit [Ping timeout: 276 seconds]
erlend has joined #ruby
<roshanavand> useful info, thanks
Azure has quit [Ping timeout: 265 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Isa_ has quit [Client Quit]
tomphp has joined #ruby
tomphp has quit [Client Quit]
tomphp has joined #ruby
tomphp has quit [Client Quit]
cschneid_ has quit [Ping timeout: 265 seconds]
tomphp has joined #ruby
tomphp has quit [Client Quit]
cschnei__ has quit [Ping timeout: 264 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cadillac_ has quit [Read error: Connection reset by peer]
eckhardt has joined #ruby
nowhere_man has joined #ruby
pastorin_ has quit [Remote host closed the connection]
cadillac_ has joined #ruby
n0m4d1c has quit [Ping timeout: 256 seconds]
ellcs has joined #ruby
venmx has quit [Ping timeout: 240 seconds]
gix- has quit [Ping timeout: 264 seconds]
jeffreylevesque has joined #ruby
netherwolfe_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
netherwolfe__ has joined #ruby
tcopeland has joined #ruby
orbyt_ has joined #ruby
netherwolfe has quit [Ping timeout: 265 seconds]
netherwolfe_ has quit [Ping timeout: 276 seconds]
ellcs has quit [Ping timeout: 268 seconds]
netherwolfe__ has quit [Ping timeout: 264 seconds]
ResidentBiscuit has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
ramfjord has joined #ruby
<jenrzzz_> roshanavand: here's an example of how you might test advisory locking with threads in rspec: https://gist.github.pie.apple.com/jenner/7dcd287f13739e63fd4379301cdb73e3
<jenrzzz_> roshanavand: i had to turn off transactional fixtures to get it work properly though... implicit top-level transactions confuse things greatly
jcarl43 has quit [Quit: WeeChat 2.1]
<roshanavand> jenrzzz_: this url is invalid
cschneid_ has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
<havenwood> roshanavand: Not if you're on Apple's VPN. ;-P
<roshanavand> :D
cschneid_ has quit [Ping timeout: 268 seconds]
ResidentBiscuit has quit []
jready has joined #ruby
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
skw has quit [Ping timeout: 256 seconds]
Yxhuvud has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
Azure|dc is now known as Azure
kies^ has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
<jenrzzz_> roshanavand: lol sorry, too many githubs
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
<jenrzzz_> I really wish enterprise gist would say "enterprise" in the navbar somewhere
kies has quit [Ping timeout: 240 seconds]
gix has joined #ruby
dr3w_ has joined #ruby
duderonomy has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
psychicist__ has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
workmad3 has joined #ruby
pwnd_nsfw` has joined #ruby
karapetyan has quit [Remote host closed the connection]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
memo1 has quit [Ping timeout: 264 seconds]
pwnd_nsfw has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
karapetyan has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
mikhael_k33hl has joined #ruby
marr has quit [Ping timeout: 255 seconds]
<mikhael_k33hl> What's the best gem for generating reports and sending it as an email?
ryzokuken has quit [Remote host closed the connection]
clemens3_ has quit [Ping timeout: 256 seconds]
gix has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby