adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.2, 3.0.4, 2.7.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ | Logs: https://libera.irclog.whitequark.org/ruby/
markong has quit [Ping timeout: 252 seconds]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
smp has quit [Ping timeout: 240 seconds]
markong has joined #ruby
smp has joined #ruby
cognemo has quit [Read error: Software caused connection abort]
cognemo has joined #ruby
grokify has joined #ruby
finsternis has joined #ruby
Rounin has quit [Ping timeout: 272 seconds]
markong has quit [Ping timeout: 252 seconds]
grokify has quit [Ping timeout: 252 seconds]
bougyman has quit [Read error: Software caused connection abort]
bougyman has joined #ruby
agent_white has joined #ruby
victori has joined #ruby
vigumnov has quit [Ping timeout: 252 seconds]
Vonter has quit [Ping timeout: 252 seconds]
Vonter has joined #ruby
stirl has joined #ruby
favadi has joined #ruby
NightMonkey has quit [Ping timeout: 252 seconds]
NightMonkey has joined #ruby
Al2O3 has quit [Ping timeout: 255 seconds]
gr33n7007h has quit [Ping timeout: 255 seconds]
gr33n7007h has joined #ruby
thomas25 has quit [Read error: Software caused connection abort]
thomas25 has joined #ruby
favadi has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
favadi has joined #ruby
jpn_ has joined #ruby
grokify has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
grokify has quit [Remote host closed the connection]
cocalero_ has joined #ruby
grokify has joined #ruby
Sankalp has quit [Ping timeout: 248 seconds]
Sankalp has joined #ruby
cocalero_ has quit [Quit: Going offline, see ya! (www.adiirc.com)]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
stirl has quit [Quit: stirl]
cartdrige has joined #ruby
grokify has quit [Remote host closed the connection]
gr33n7007h has quit [Ping timeout: 255 seconds]
gr33n7007h has joined #ruby
grokify has joined #ruby
cognemo has quit [Ping timeout: 252 seconds]
cognemo has joined #ruby
grokify has quit [Ping timeout: 246 seconds]
favadi has quit [Quit: Textual IRC Client: www.textualapp.com]
phryk has joined #ruby
NightMonkey has quit [Ping timeout: 252 seconds]
NightMonkey has joined #ruby
rvalue has quit [Ping timeout: 272 seconds]
Petruchio has quit [Remote host closed the connection]
Petruchio has joined #ruby
crax23 has joined #ruby
ur5us has quit [Ping timeout: 255 seconds]
cartdrige has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
cartdrige has joined #ruby
Y05hito__ has joined #ruby
crax23 has quit [Ping timeout: 272 seconds]
rvalue has joined #ruby
jpn_ has quit [Ping timeout: 272 seconds]
cartdrige has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
ur5us has quit [Ping timeout: 255 seconds]
D_A_N has quit [Quit: leaving]
grokify has joined #ruby
FetidToot8 has joined #ruby
FetidToot has quit [Ping timeout: 272 seconds]
FetidToot8 is now known as FetidToot
jpn has quit [Ping timeout: 248 seconds]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
jpn has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
rvalue has quit [Ping timeout: 255 seconds]
ur5us has joined #ruby
rvalue has joined #ruby
RetroPunk has quit [Quit: ZNC 1.8.2+deb2build5 - https://znc.in]
jpn has quit [Ping timeout: 252 seconds]
grokify has quit [Remote host closed the connection]
RetroPunk has joined #ruby
grokify has joined #ruby
jpn has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
ur5us has quit [Ping timeout: 255 seconds]
grokify has quit [Ping timeout: 276 seconds]
kerunaru has joined #ruby
teclator has joined #ruby
havenwood has quit [Quit: Ping timeout (120 seconds)]
havenwood has joined #ruby
ur5us has joined #ruby
crax23 has joined #ruby
Y05hito__ has quit [Ping timeout: 248 seconds]
otisolsen70 has joined #ruby
otisolsen70 has quit [Remote host closed the connection]
otisolsen70 has joined #ruby
ur5us has quit [Ping timeout: 246 seconds]
reset has quit [Quit: reset]
szkl has quit [Quit: Connection closed for inactivity]
Rounin has joined #ruby
Rounin has quit [Changing host]
Rounin has joined #ruby
ur5us has joined #ruby
jpn has quit [Ping timeout: 248 seconds]
agent_white has quit [Quit: night]
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
or2b has joined #ruby
<cxl> Hi all, I'm trying to generate images for each PDF file's pages. I'm attempting it with a new Previewer that inherits from PopplerPDFPreviewer and monkeypatching the #preview method to call my own private method with the page number. But how do I tell Rails to use that previewer instead of the default PopplerPDFPreviewer? Or is a previewer the wrong way to go about it? I thought it would be nice since it would
<cxl> give me all the ActiveStorage machinery, caching, etc for free
<cxl> This is what I have: https://dpaste.org/1j1Ji
<cxl> well monkeypatching is the wrong word, I meant implement my own #preview method but keep the rest of PopplerPDFPreviewer
JayDoubleu__ has quit [Ping timeout: 268 seconds]
JayDoubleu__ has joined #ruby
otisolsen70_ has joined #ruby
otisolsen70 has quit [Ping timeout: 272 seconds]
gr33n7007h has quit [Ping timeout: 246 seconds]
gr33n7007h has joined #ruby
aeris has quit [Remote host closed the connection]
vito has quit [Ping timeout: 268 seconds]
vito has joined #ruby
zoknert has joined #ruby
ur5us has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
zoknert has quit [Read error: Connection reset by peer]
wand has quit [Ping timeout: 255 seconds]
Aminda has quit [Ping timeout: 255 seconds]
Aminda has joined #ruby
wand has joined #ruby
kerunaru has quit [Ping timeout: 255 seconds]
kerunaru has joined #ruby
aeris has joined #ruby
Rounin has quit [Ping timeout: 252 seconds]
some14u has joined #ruby
fandre1986 has joined #ruby
jpn has joined #ruby
Rounin has joined #ruby
Rounin has quit [Changing host]
Rounin has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jpn has quit [Ping timeout: 272 seconds]
jpn has joined #ruby
<cxl> I also don't understand how to express a method that takes an argument and a block, which then passes that block within the method to File.open(myfile, &myblock)
kerunaru has quit [Remote host closed the connection]
kerunaru has joined #ruby
grokify has joined #ruby
grokify has quit [Ping timeout: 255 seconds]
markong has joined #ruby
<cxl> This is what I have: https://dpaste.org/nifO6 and I can't understand why isn't the block forwarded to File.open
teclator has quit [Ping timeout: 255 seconds]
kerunaru has quit [Quit: leaving]
teclator has joined #ruby
kerunaru has joined #ruby
Y05hito__ has joined #ruby
crax23 has quit [Ping timeout: 246 seconds]
kerunaru has quit [Quit: leaving]
kerunaru has joined #ruby
royo25 has joined #ruby
teclator has quit [Remote host closed the connection]
ua_ has quit [Ping timeout: 240 seconds]
teclator has joined #ruby
fandre1986 has quit [Quit: Connection closed]
kaivai has quit [Quit: ZNC - https://znc.in]
<supay> hi, how do we change what branch capistrano is deploying to? is there any way to see if it's using the deploy.rb? like a log from within deploy.rb?
ua_ has joined #ruby
jpn has quit [Ping timeout: 255 seconds]
<kinduff> supay: you can either use an env variable when calling cap, or set a setting in deploy.rb with a proc calling git to check the current branch
<supay> kinduff: but it weirdly doesn't change the branch. and i've tried everything i can think of.
<supay> when i look at the commit hash it prints out, that commit has belongs to 'master', but i want it to deploy 'staging'
<kinduff> is your remote pointing to staging instead of master?
<kinduff> cap with pull and clone the main (https://www.boxuk.com/insight/deploy-any-branch-with-capistrano/)
<supay> kinduff: remote might be pointing to master.. let me check boxuk
<supay> it's the same link! :D
<supay> kinduff: even hardcoding inside deploy.rb as: `set :branch, "staging"` and then running `cap staging deploy` doesn't seem to help
<supay> also, it says `-S` is not a recognized flag
Y05hito__ has quit [Quit: Leaving]
D_A_N has joined #ruby
FetidToot has quit [Read error: Connection reset by peer]
FetidToot has joined #ruby
aeris has quit [Ping timeout: 255 seconds]
aeris has joined #ruby
FetidToot4 has joined #ruby
FetidToot has quit [Ping timeout: 246 seconds]
FetidToot4 is now known as FetidToot
markong has quit [Ping timeout: 252 seconds]
grokify has joined #ruby
agent_white has joined #ruby
mahlon has quit [*.net *.split]
legahc has quit [*.net *.split]
hololeap has quit [*.net *.split]
markong has joined #ruby
<kinduff> do you have a "config/deploy/staging.rb"?
grokify has quit [Remote host closed the connection]
kaivai has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
teclator has joined #ruby
dionysus70 has joined #ruby
kerunaru has quit [Ping timeout: 252 seconds]
kerunaru has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
dionysus70 is now known as dionysus69
otisolsen70_ has quit [Quit: Leaving]
dionysus70 has joined #ruby
hololeap has joined #ruby
legahc has joined #ruby
mahlon has joined #ruby
hololeap has quit [Max SendQ exceeded]
dionysus69 has quit [Ping timeout: 248 seconds]
dionysus70 is now known as dionysus69
hololeap has joined #ruby
royo25 has quit [Ping timeout: 252 seconds]
royo25 has joined #ruby
jpn has joined #ruby
grokify has joined #ruby
teclator has quit [Remote host closed the connection]
grokify has quit [Ping timeout: 255 seconds]
eddof13 has joined #ruby
teclator has joined #ruby
gr33n7007h has quit [Ping timeout: 255 seconds]
gr33n7007h has joined #ruby
eddof13 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
teclator has quit [Remote host closed the connection]
teclator has joined #ruby
kerunaru has quit [Quit: leaving]
grokify has joined #ruby
kerunaru has joined #ruby
grokify has quit [Ping timeout: 246 seconds]
wand has quit [Ping timeout: 255 seconds]
D_A_N has quit [Ping timeout: 252 seconds]
Aminda has quit [Ping timeout: 255 seconds]
D_A_N has joined #ruby
wand has joined #ruby
Aminda has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
jpn_ has joined #ruby
grokify_ has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
scottgy has joined #ruby
kerunaru has quit [Quit: leaving]
jpn_ has quit [Ping timeout: 255 seconds]
scottg489 has quit [Ping timeout: 246 seconds]
grokify_ has quit [Ping timeout: 252 seconds]
kerunaru has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
<supay> kinduff: i do, yes
dionysus69 has joined #ruby
josephl has joined #ruby
otisolsen70 has joined #ruby
jpn has joined #ruby
kerunaru has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
markong has quit [Ping timeout: 252 seconds]
zoknert has joined #ruby
zoknert has quit [Ping timeout: 272 seconds]
markong has joined #ruby
___nick___ has joined #ruby
yxhuvud has quit [Remote host closed the connection]
wand has quit [Remote host closed the connection]
yxhuvud has joined #ruby
wand has joined #ruby
hololeap has quit [Ping timeout: 252 seconds]
hololeap has joined #ruby
cartdrige has joined #ruby
wand_ has joined #ruby
c10l has quit [Quit: Ping timeout (120 seconds)]
wand has quit [Ping timeout: 255 seconds]
c10l has joined #ruby
gr33n7007h has quit [Ping timeout: 268 seconds]
royo25 has quit [Quit: Bye]
teclator has quit [Ping timeout: 252 seconds]
teclator has joined #ruby
gr33n7007h has joined #ruby
grokify has joined #ruby
grokify has quit [Ping timeout: 248 seconds]
jpn has quit [Ping timeout: 268 seconds]
reset has joined #ruby
TomyWork has joined #ruby
crax23 has joined #ruby
cartdrige has quit [Ping timeout: 255 seconds]
ccapndave has joined #ruby
otisolsen70_ has joined #ruby
ccapndave has quit [Client Quit]
otisolsen70 has quit [Ping timeout: 252 seconds]
grokify has joined #ruby
<adam12> Morning
grokify has quit [Ping timeout: 272 seconds]
<BeverlyBot> Mornin'
<adam12> BeverlyBot: how goes
___nick___ has quit [Ping timeout: 252 seconds]
___nick___ has joined #ruby
<BeverlyBot> Pretty good, pretty good
<BeverlyBot> About to launch, I'll show in a sec
<BeverlyBot> What's good over there?
<adam12> BeverlyBot: Nice.
Y05hito__ has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
crax23 has quit [Ping timeout: 268 seconds]
grokify has quit [Ping timeout: 246 seconds]
Sankalp has quit [Ping timeout: 268 seconds]
markong has quit [Ping timeout: 248 seconds]
Sankalp has joined #ruby
teclator has quit [Ping timeout: 252 seconds]
teclator has joined #ruby
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
finsternis has quit [Ping timeout: 248 seconds]
finsternis has joined #ruby
reset has quit [Ping timeout: 252 seconds]
josephl has quit [Quit: Connection closed for inactivity]
reset has joined #ruby
Awoobis is now known as A_Dragon
_ht has joined #ruby
or2b has quit [Ping timeout: 255 seconds]
or2b has joined #ruby
___nick___ has quit [Ping timeout: 252 seconds]
___nick___ has joined #ruby
crax23 has joined #ruby
Y05hito__ has quit [Ping timeout: 272 seconds]
cocalero has joined #ruby
ur5us has joined #ruby
polishdub has quit [Ping timeout: 272 seconds]
polishdub has joined #ruby
teclator has quit [Remote host closed the connection]
jpn has joined #ruby
jpn has quit [Ping timeout: 272 seconds]
dionysus69 has quit [Ping timeout: 272 seconds]
grokify has joined #ruby
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
kinduff has quit [Remote host closed the connection]
___nick___ has quit [Ping timeout: 252 seconds]
grokify has quit [Ping timeout: 252 seconds]
kinduff has joined #ruby
dionysus69 has joined #ruby
dionysus69 has quit [Client Quit]
dionysus69 has joined #ruby
_ht has quit [Remote host closed the connection]
cartdrige has joined #ruby
crax23 has quit [Ping timeout: 252 seconds]
crax23 has joined #ruby
gschanuel has quit [Quit: The Lounge - https://thelounge.chat]
cartdrige has quit [Ping timeout: 248 seconds]
some14u has joined #ruby
or2b has quit [Quit: Leaving]
dionysus69 has quit [Ping timeout: 272 seconds]
otisolsen70_ has quit [Quit: Leaving]
Y05hito__ has joined #ruby
cartdrige has joined #ruby
crax23 has quit [Ping timeout: 252 seconds]
Y05hito__ has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
crax23 has joined #ruby
<leftylink> no problem with two kw splats, right?
markong has joined #ruby
jpn has joined #ruby
<leftylink> pandabot: rb ->**a { a }[**{k1: 1, k2: 2}. **{k3: 3}]
<pandabot> stderr: playpen: timeout triggered! - exit 1 - https://carc.in/#/r/e04y
<leftylink> pandabot: rb ->**a { a }[**{k1: 1, k2: 2}. **{k3: 3}]
cartdrige has quit [Ping timeout: 248 seconds]
<pandabot> stderr: -e:2: syntax error, unexpected ':', expecting '}' - exit 1 - https://carc.in/#/r/e04z
<leftylink> pandabot: rb ->**a { a }[**{k1: 1, k2: 2}, **{k3: 3}]
<pandabot> {:k1=>1, :k2=>2, :k3=>3} - https://carc.in/#/r/e050
<leftylink> great
<leftylink> this will be useful for my project
dionysus69 has quit [Ping timeout: 252 seconds]
Y05hito__ has joined #ruby
jpn has quit [Ping timeout: 248 seconds]
<leftylink> what other capabilities will be necessary for my project?
<leftylink> honestly though even if it wouldn't work, you'd just do a merge
<leftylink> ... hold on though
<leftylink> pandabot: rb ->**a { a }[**{k1: 1, k2: 2}, **{k2: :conf, k3: 3}]
<pandabot> {:k1=>1, :k2=>:conf, :k3=>3} - https://carc.in/#/r/e051
<leftylink> okay, so second takes it
crax23 has quit [Ping timeout: 272 seconds]
<havenwood> leftylink: splat limitlessly!
<havenwood> I mean, double splat limitlessly!
<havenwood> Both.
crax23 has joined #ruby
Y05hito__ has quit [Ping timeout: 272 seconds]
leftylink has quit [Quit: [TLS] Client upgrade]
leftylink has joined #ruby
leftylink has quit [Client Quit]
gonix has joined #ruby
howdoi has joined #ruby
leftylink has joined #ruby
leftylink has quit [Remote host closed the connection]
pandabot has quit [Remote host closed the connection]
gonix has quit [Ping timeout: 252 seconds]
pandabot has joined #ruby
leftylink has joined #ruby
<leftylink> let's also have some custom **
<leftylink> pandabot: rb ->**a { a }[**Struct.new(:a) { def to_hash; {foo: :bar, a: a} end }.new(5)]
<pandabot> {:foo=>:bar, :a=>5} - https://carc.in/#/r/e053
pyrex is now known as coolbat666
coolbat666 is now known as pyrex
some14u- has joined #ruby
some14u has quit [Ping timeout: 252 seconds]