havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.1, 2.6.6, 2.5.8: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
<havenwood> #!> ArgumentError (wrong number of arguments (given 0, expected 2..3))
<havenwood> &>> method(:test).owner
yokel has joined #ruby
<rubydoc> stderr: playpen: timeout triggered! (https://carc.in/#/r/9q09)
* havenwood pokes ruby[bot]
`Alison has joined #ruby
cuerbot has joined #ruby
<graial> Good morning, within the facebook-messenger gem, I'm getting the following LoadError on a fresh rails install:
<graial> '/home/al/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require': No such file to load -- facebook/messenger.rb (LoadError)
elcuervo has quit [Ping timeout: 256 seconds]
drincruz has joined #ruby
dualfade has quit [Ping timeout: 260 seconds]
dualfade has joined #ruby
ev` has joined #ruby
cuerbot has quit [Quit: ZNC 1.7.5 - https://znc.in]
elcuervo has joined #ruby
drincruz has quit [Ping timeout: 260 seconds]
drincruz has joined #ruby
<adam12> graial: That's a weird one
<adam12> graial: Maybe try clearing cache? Looks like a bootnap issue? `rake tmp:cache:clear`
yokel has quit [Ping timeout: 272 seconds]
yokel has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
yokel has quit [Ping timeout: 272 seconds]
yokel has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
drincruz has quit [Ping timeout: 260 seconds]
yokel has quit [Ping timeout: 260 seconds]
neshpion has quit [Quit: WeeChat 2.9]
elxbarbosa has quit [Remote host closed the connection]
yokel has joined #ruby
wallace_mu has quit [Read error: Connection reset by peer]
wallace_mu has joined #ruby
yokel has quit [Ping timeout: 260 seconds]
yokel has joined #ruby
yokel has quit [Ping timeout: 272 seconds]
alexherbo2 has quit [Remote host closed the connection]
yokel has joined #ruby
bmurt has joined #ruby
cthu| has quit [Ping timeout: 272 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
drincruz has joined #ruby
yokel has quit [Ping timeout: 272 seconds]
BTRE has joined #ruby
yokel has joined #ruby
cthu| has joined #ruby
skape has left #ruby [#ruby]
yokel has quit [Ping timeout: 272 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
yokel has joined #ruby
yokel has quit [Ping timeout: 272 seconds]
gix has quit [Ping timeout: 246 seconds]
cthu| has quit [Ping timeout: 272 seconds]
yokel has joined #ruby
postmodern has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Vingador has joined #ruby
yokel has quit [Ping timeout: 272 seconds]
robotmay has quit [Quit: No Ping reply in 180 seconds.]
meinside has joined #ruby
robotmay has joined #ruby
prion_ has quit [Read error: Connection reset by peer]
ev` has quit [Ping timeout: 240 seconds]
yokel has joined #ruby
yokel has quit [Ping timeout: 264 seconds]
ChmEarl has quit [Quit: Leaving]
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
sagax has quit [Ping timeout: 260 seconds]
yokel has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CommunistWolf has quit [Ping timeout: 260 seconds]
CommunistWolf has joined #ruby
powerhouse has quit [Read error: Connection reset by peer]
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
CommunistWolf has quit [Excess Flood]
wallace_mu has quit [Remote host closed the connection]
CommunistWolf has joined #ruby
wallace_mu has joined #ruby
wallace_mu has quit [Ping timeout: 260 seconds]
Mia has quit [Write error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
yokel has quit [Ping timeout: 260 seconds]
drincruz has quit [Ping timeout: 272 seconds]
reyfi9e has quit [Ping timeout: 244 seconds]
reyfi9e has joined #ruby
donofrio has quit [Remote host closed the connection]
yokel has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
yokel has quit [Ping timeout: 272 seconds]
yokel has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
yokel has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
yokel has quit [Ping timeout: 265 seconds]
bocaneri has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
greypack has quit [Ping timeout: 264 seconds]
dfucci has joined #ruby
dfucci has quit [Ping timeout: 272 seconds]
BSaboia has joined #ruby
dfucci has joined #ruby
greypack has joined #ruby
teclator has quit [Remote host closed the connection]
schne1der has joined #ruby
teclator has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
vondruch has joined #ruby
MrCrackPot has joined #ruby
ur5us has joined #ruby
cd has quit [Quit: cd]
roadkith is now known as exkith
schne1der has quit [Ping timeout: 260 seconds]
Atro has quit [Changing host]
Atro has joined #ruby
Atro has joined #ruby
bocaneri has quit [Remote host closed the connection]
Mrgoose has quit [Ping timeout: 272 seconds]
schne1der has joined #ruby
bocaneri has joined #ruby
exkith has joined #ruby
exkith has quit [Changing host]
wallace_mu has joined #ruby
SuperLag has quit [Ping timeout: 258 seconds]
SuperLag has joined #ruby
SuperLag has quit [Client Quit]
wallace_mu has quit [Ping timeout: 272 seconds]
mikecmpbll has joined #ruby
supercoven has joined #ruby
sarna has joined #ruby
Mrgoose has joined #ruby
yokel has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
TCZ has joined #ruby
schne1der has quit [Ping timeout: 256 seconds]
MrCrackPot has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 244 seconds]
coniptor has quit [Ping timeout: 240 seconds]
Furai has quit [Quit: WeeChat 2.9]
Secret-Fire has quit [Remote host closed the connection]
Secret-Fire has joined #ruby
<graial> the full stack trace is here: https://dpaste.org/pF5O
Furai has joined #ruby
<graial> adam12: rake tmp:cache:clear did not resolve the error
<graial> This is the repo I'm using. Ruby 2.7.1 is in use via rbenv: https://github.com/jgorset/facebook-messenger
<graial> If I use this code, suggested in the readme:
<graial> include Facebook::Messenger
<graial> Bot.on :message do |message|
<graial> end
<graial> message.reply(text: 'Hello, human!')
<graial> I get a NameError. The I get the LoadError in the paste above if add `require 'facebook/messenger'`
BSaboia has joined #ruby
dfucci has quit [Ping timeout: 272 seconds]
dfucci has joined #ruby
sagax has joined #ruby
maxzor has joined #ruby
GodFather has quit [Ping timeout: 246 seconds]
<maxzor> Hello, first time in a ruby interpreter, I am following this https://git-scm.com/book/en/v2/Git-Internals-Git-Objects and try to zlib.inflate a git blob in a packfile
<maxzor> How could I extract the compressed buffer from the offset and the compressed size?
<maxzor> s/extract/get/
<maxzor> is there a method such as readbytes(start, length)?
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 264 seconds]
weaksauce has quit [Ping timeout: 246 seconds]
BSaboia has quit [Quit: This computer has gone to sleep]
BSaboia has joined #ruby
BSaboia has quit [Read error: Connection reset by peer]
alexherbo2 has joined #ruby
BSaboia has joined #ruby
xco has joined #ruby
xco has quit [Client Quit]
BSaboia has quit [Quit: This computer has gone to sleep]
fowlduck has quit [Quit: Connection closed for inactivity]
fercell has joined #ruby
elcuervo has quit [Read error: Connection reset by peer]
elcuervo has joined #ruby
imode has quit [Ping timeout: 272 seconds]
coniptor has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
schne1der has joined #ruby
drincruz has joined #ruby
BSaboia has joined #ruby
alfiemax has joined #ruby
fercell has quit [Quit: WeeChat 2.8]
<jhass> mmh, API doesn't look too promising https://www.rubydoc.info/gems/zlib/1.1.0/Zlib/Inflate
<jhass> well, actuall inflate just returns you the inflated buffer?
<jhass> not sure I get what you want
<jhass> maxzor: btw ^:D
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
braincrash has joined #ruby
Rudd0 has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
<adam12> graial: And the facebook-messenger gem is in your Gemfile?
wallace_mu has joined #ruby
ruurd has quit [Quit: bye folks]
alexherbo22 has joined #ruby
drincruz has quit [Ping timeout: 264 seconds]
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo22 is now known as alexherbo2
drincruz has joined #ruby
maxzor has quit [Remote host closed the connection]
braincrash has quit [Ping timeout: 260 seconds]
donofrio has joined #ruby
postmodern has quit [Quit: Leaving]
halfer has joined #ruby
alexherbo27 has joined #ruby
alexherbo2 has quit [Ping timeout: 272 seconds]
alexherbo27 is now known as alexherbo2
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
jinie has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
MrCrackPot has joined #ruby
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
alexherbo2 has quit [Ping timeout: 272 seconds]
jinie has joined #ruby
factormystic0 has joined #ruby
impermanence has joined #ruby
halfer has left #ruby [#ruby]
jinie has quit [Client Quit]
<graial> adam12: wow, that is embarassing, no it wasn't. I guess i was just typing 'gem install facebook-messenger' and assuming it would get added to my gemfile. I feel really silly now. Thanks a lot
factormystic has quit [Ping timeout: 244 seconds]
factormystic0 is now known as factormystic
ruurd has joined #ruby
<adam12> graial: Bundler manipulates $LOAD_PATH so while your assumption would of been correct, Bundler throws it out the window :)
alexherbo2 has joined #ruby
<apotheon> s/would of/would have/
<graial> adam12: fair enough, in javascript there is `npm install <name> --save` which will add the package to package.json. does `gem install` have a similar switch?
<adam12> graial: bundle add <name>
<adam12> graial: This might change in the future since Rubygems and Bundler are merging, but at this point they are partly separate. `gem` existed for like 10 years before `bundle`.
marens has quit [Ping timeout: 256 seconds]
sarna has quit [Quit: Connection closed]
powerhouse has joined #ruby
braincrash has joined #ruby
chouhoulis has joined #ruby
Vingador has quit [Ping timeout: 272 seconds]
alfiemax has joined #ruby
houhoulis has joined #ruby
<graial> adam12: ok, thanks a lot for the clarification
joast has quit [Ping timeout: 240 seconds]
bmurt has quit [Ping timeout: 272 seconds]
marens has joined #ruby
marens has joined #ruby
marens has quit [Changing host]
leitz has joined #ruby
houhoulis has quit [Remote host closed the connection]
marens has quit [Ping timeout: 264 seconds]
cthu| has joined #ruby
alfiemax has quit [Remote host closed the connection]
marens has joined #ruby
marens has quit [Changing host]
marens has joined #ruby
Rudd0 has joined #ruby
ChmEarl has joined #ruby
graial has quit [Quit: Leaving]
alfiemax has joined #ruby
marens has quit [Ping timeout: 265 seconds]
ramfjord has joined #ruby
akem has joined #ruby
cd has joined #ruby
marens has joined #ruby
thisirs has joined #ruby
weaksauce has joined #ruby
TCZ has quit [Quit: Leaving]
fercell has joined #ruby
thisirs has quit [Ping timeout: 272 seconds]
howdoi has joined #ruby
FetidToot has quit [Quit: The Lounge - https://thelounge.chat]
FetidToot has joined #ruby
r29v has joined #ruby
FetidToot has quit [Quit: The Lounge - https://thelounge.chat]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FetidToot has joined #ruby
cow[moo] has joined #ruby
dfucci has quit [Quit: Lost terminal]
gix has joined #ruby
alfiemax has quit [Remote host closed the connection]
bocaneri has quit [Remote host closed the connection]
bmurt has joined #ruby
chouhoulis has quit [Remote host closed the connection]
supercoven has quit [Ping timeout: 256 seconds]
cognemo has joined #ruby
Mrgoose has quit [Quit: The Lounge - https://thelounge.chat]
rippa has joined #ruby
zapata has quit [Ping timeout: 244 seconds]
zapata has joined #ruby
impermanence has quit [Ping timeout: 272 seconds]
r29v has quit [Quit: r29v]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iNs has quit [Remote host closed the connection]
iNs has joined #ruby
Rudd0 has quit [Ping timeout: 260 seconds]
cnsvc has joined #ruby
chouhoulis has joined #ruby
bmurt has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
elxbarbosa has joined #ruby
fercell has quit [Quit: WeeChat 2.8]
fercell has joined #ruby
TCZ has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
fercell has quit [Ping timeout: 264 seconds]
fercell has joined #ruby
Mrgoose has joined #ruby
SeepingN has joined #ruby
alexherbo2 has quit [Quit: Ping timeout (120 seconds)]
<leitz> Recommended platform (Amazon, Google App Engine, Digital Ocean, etc) for a small Ruby/Roda/SQLite app?
alexherbo2 has joined #ruby
ricer2 has quit [Quit: Caught SystemExit exception.]
ricer2 has joined #ruby
<havenwood> leitz: Any of the above should work great.
<havenwood> leitz: You might have problems with App Engine and sqlite.
<havenwood> leitz: On second thought ^
<havenwood> leitz: Yeah, App Engine would have the similar issues to Heroku with sqlite.
<havenwood> leitz: So AWS versus DO remaining from your question.
<havenwood> leitz: DO is a bit more intuitive but has a smaller garden of features. DO works well for my personal servers. My only gripe is that you have to pay for ones that are spun down, unlike AWS.
<havenwood> leitz: Switch from sqlite to Postgres and use Heroku. :P
ramfjord has joined #ruby
<havenwood> leitz: TL;DR: DO
jinie has joined #ruby
<havenwood> Or EC2. Really a quite similar experience from my vantage.
<havenwood> Using sqlite gets rid of fancy options, so you need to worry about firewalls and that sort of thing yourself.
<havenwood> Google App Engine and Heroku stay ahead of the game for you.
<leitz> havenwood, I've looked at PostGreSQL and MySQL, but really like the light-weight nature of SQLite. Since nothing besides this web-app will connect to the DB, that should take care of the security.
<leitz> havenwood, at least from a minimal view. No sensitive data involved, at least with this iteration.
<havenwood> leitz: I mean security like keeping dependencies updated, a firewall, owasp, that sort of thing.
<havenwood> leitz: Yeah, light is nice. Postgres just works too though, especially with a managed service like Heroku or App Engine.
<leitz> havenwood, you know my penchant for small footprint.
<havenwood> leitz: They give you a bunch of niceties.
<havenwood> leitz: DO or EC2 certainly work well if you curate them yourself.
<havenwood> leitz: You might try a quick switch to Postgres with Heroku and see how you like that.
<leitz> havenwood, I tried poking at Postgees and just didn't care for it. Not too sure why. I can probably manage a DO droplet via Ansible, too.
<havenwood> leitz: Otherwise, DO or EC2 both give you a nice box to fiddle with yourself.
<leitz> havenwood, AWS wanted to charge $5/mo for Route 53 naming to a static bucket. Didn't much care for that.
<havenwood> leitz: DO is simple. Spin up a droplet, apply a firewall and IP, and on to configuration.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<leitz> havenwood, I need to read up on DO. In this case, smaller is better.
<havenwood> DO is pretty easy to navigate. Create your "Droplet," then click on "Networking" and "Firewalls" then "Create Firewall." You can then see the Droplet you just created and put your Firewall in front of it.
<havenwood> leitz: Then "Floating IPs" is free IIR, also under "Networking" tab.
<havenwood> leitz: From there it's just ssh or mosh onto it and g2g for setting up Puma/Falcon for Roda.
schne1der has quit [Ping timeout: 260 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
SuperLag has joined #ruby
dualfade has quit [Ping timeout: 272 seconds]
dualfade has joined #ruby
<leitz> havenwood, does Puma/Falcon replace Thin?
<havenwood> leitz: Yes.
<leitz> havenwood, or whatever sits on top of Rack.
<havenwood> leitz: Puma and Falcon are alternatives to Thin.
<leitz> havenwood, ah, gotcha. Any real difference I would care about?
<leitz> havenwood, other than Puma having a lot fewer dependencies. And at least in theory working on Ruby 3.x
akem has quit [Quit: Leaving]
<havenwood> leitz: Yes, Puma is generally a battle tested, more modern choice than Thin.
<havenwood> leitz: Falcon is more modern yet and takes advantage of Ruby 3.0 features.
<havenwood> Specifically, the Scheduler.
ur5us has joined #ruby
postmodern has joined #ruby
<havenwood> leitz: Falcon has a lot of things to love.
<havenwood> leitz: One of them is simplicity—removing other tools entirely while supporting HTTP/2 natively.
<havenwood> leitz: You'd have to pester ioquatix for an async sqlite adapter, which he may very well be willing to create.
<ramfjord> leitz: you should give postgres another shot man, it's great! The native support for jsonb columns works very nicely with ruby ORMs, lateral joins can *vastly* speed up queries that would otherwise require window functions, the table inheritance and rule structures let you easily configure and manage partitions for tables > 100 million rows
<ramfjord> And SQLite for a production DB? It can't even have multiple web servers connecting to it at once?
<leitz> havenwood, Falcon fails to install as a gem, since async-io requires Ruby ~> 2.5.
<leitz> ramfjord, I'm doing a very small project, and there will be just one webserver instance connecting.
<leitz> And my "small" tends to be pretty small. If I could figure out how to do with with just core Ruby and the STDLIB, I would. :)
<havenwood> leitz: I definitely have Falcon running in prod on Ruby 2.7 for a small project.
<havenwood> leitz: Maybe dependency resolution is forcing an old version somehow?
fercell has quit [Quit: WeeChat 2.9]
<havenwood> leitz: Jumping into a meeting, but @ioquatix usually answers: https://gitter.im/socketry/falcon
<havenwood> leitz: Check deps and make sure you're getting latest Falcon, since 2.5 shouldn't be required at all.
<havenwood> Strange!
dionysus69 has quit [Ping timeout: 256 seconds]
<ramfjord> leitz: I could install falcon 0.36 on the base ruby:2.7 docker image just now. Check if you've got another library in your gemfile that has a dependency in common with falcon maybe
<ramfjord> that could be preventing it from installing 0.36
<ramfjord> 0.36.5
Nahra has joined #ruby
<leitz> ramfjord, the issue is that async-io isn't okay with Ruby 3.x. Just a gem file dependency that hasn't been updated.
TCZ has quit [Quit: Leaving]
<leitz> Opened an issue with async-io on GitHub. My guess is that it'll work on 3.x, but I don't know that much.
elxbarbosa has quit [Remote host closed the connection]
r29v has joined #ruby
bmo has joined #ruby
Rudd0 has joined #ruby
adu has joined #ruby
TCZ has joined #ruby
<leitz> Hah! ioquantix replied to the issue that it was by design, new release coming soon. :)
<havenwood> Nice!
Tempesta_ has joined #ruby
donofrio_ has joined #ruby
johndotpub has quit [Read error: Connection reset by peer]
johndotpub has joined #ruby
lxsameer has quit [Quit: WeeChat 2.9]
lxsameer has joined #ruby
Tempesta has quit [Ping timeout: 260 seconds]
donofrio has quit [Ping timeout: 260 seconds]
Tempesta_ has left #ruby ["Closing Channel, bye."]
Tempesta has joined #ruby
r29v has quit [Quit: r29v]
Nahra has quit [Quit: leaving]
bmo has quit [Quit: Textual IRC Client: www.textualapp.com]
rafadc_ has joined #ruby
rafadc has quit [Ping timeout: 258 seconds]
braincrash has quit [Ping timeout: 272 seconds]
drincruz has quit [Ping timeout: 246 seconds]
leitz has quit [Quit: Leaving]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
elxbarbosa has joined #ruby
imode has joined #ruby
cognemo has quit [Remote host closed the connection]
reyfi9e has quit [Read error: Connection reset by peer]
cognemo has joined #ruby
<elxbarbosa> hey, what is the meaning of .map(&:to_sym) ... &:
Secret-Fire has quit [Ping timeout: 260 seconds]
BSaboia has quit [Quit: This computer has gone to sleep]
<elxbarbosa> oh, to_proc
SeepingN has quit [Ping timeout: 260 seconds]
<havenwood> elxbarbosa: Yeah, Symbol#to_proc and then passing that proc as the block.
<havenwood> elxbarbosa: You could do `foo = :to_sym.to_proc` then `.map(&foo)`.