« Back to channel list

#RubyOnRails - 22 July 2017

« Back 1 day Forward 1 day »
[00:10:37] bronson: has joined #RubyOnRails
[00:12:51] jhfisc: has joined #RubyOnRails
[00:18:00] jhfisc: has joined #RubyOnRails
[00:18:30] S1kx: has joined #RubyOnRails
[00:18:47] bpmedley: has joined #RubyOnRails
[00:19:04] bpmedley: has left #RubyOnRails: ()
[00:25:43] compostbrain: has joined #RubyOnRails
[00:27:47] jhfisc: has joined #RubyOnRails
[00:39:22] jhfisc: has joined #RubyOnRails
[00:46:42] nahtnam: has joined #RubyOnRails
[00:50:18] cagomez: has joined #RubyOnRails
[00:55:47] jhfisc: has joined #RubyOnRails
[00:58:20] Jameser: has joined #RubyOnRails
[00:59:18] codelahoma: has joined #RubyOnRails
[01:06:40] quazimodo: has joined #RubyOnRails
[01:11:28] bronson: has joined #RubyOnRails
[01:13:29] ariedler: has joined #RubyOnRails
[01:16:36] SteenJobs_: has joined #RubyOnRails
[01:17:31] SteenJobs_: has joined #RubyOnRails
[01:18:45] guardianx: has joined #RubyOnRails
[01:18:55] SteenJobs_: has joined #RubyOnRails
[01:38:37] Rodya_: has joined #RubyOnRails
[01:45:15] jhfisc: has joined #RubyOnRails
[01:48:40] minichiello: has joined #RubyOnRails
[01:51:15] jhfisc: has joined #RubyOnRails
[01:57:20] jhfisc: has joined #RubyOnRails
[02:02:43] jhfisc: has joined #RubyOnRails
[02:12:17] bronson: has joined #RubyOnRails
[02:16:00] jhfisc: has joined #RubyOnRails
[02:17:33] duderonomy: has joined #RubyOnRails
[02:22:37] Jameser: has joined #RubyOnRails
[02:29:57] jhfisc: has joined #RubyOnRails
[02:34:18] Rodya_: has joined #RubyOnRails
[02:36:03] jhfisc: has joined #RubyOnRails
[02:39:16] jhfisc: has joined #RubyOnRails
[02:42:48] dviola: has joined #RubyOnRails
[02:45:15] jhfisc: has joined #RubyOnRails
[02:47:38] codelahoma: has joined #RubyOnRails
[02:50:09] quazimodo: has joined #RubyOnRails
[02:51:23] irishfromua: has joined #RubyOnRails
[02:55:22] jphase: has joined #RubyOnRails
[02:57:15] jhfisc: has joined #RubyOnRails
[03:04:39] jhfisc: has joined #RubyOnRails
[03:14:14] bronson: has joined #RubyOnRails
[03:14:19] jhfisc: has joined #RubyOnRails
[03:15:26] ariedler: has joined #RubyOnRails
[03:15:55] waseem_: has joined #RubyOnRails
[03:20:01] jhfisc: has joined #RubyOnRails
[03:24:03] SteenJobs_: has joined #RubyOnRails
[03:29:36] sevenseacat: has joined #RubyOnRails
[03:35:00] kies: has joined #RubyOnRails
[03:35:36] jhfisc: has joined #RubyOnRails
[03:40:37] jhfisc: has joined #RubyOnRails
[03:42:08] cagomez: has joined #RubyOnRails
[03:54:29] jhfisc: has joined #RubyOnRails
[03:59:16] jhfisc: has joined #RubyOnRails
[04:01:22] Jameser: has joined #RubyOnRails
[04:05:26] jhfisc: has joined #RubyOnRails
[04:09:02] jhfisc: has joined #RubyOnRails
[04:15:03] bronson: has joined #RubyOnRails
[04:34:50] RahulT: has joined #RubyOnRails
[04:35:28] codelahoma: has joined #RubyOnRails
[05:04:52] nahtnam: has joined #RubyOnRails
[05:15:53] bronson: has joined #RubyOnRails
[05:17:05] ariedler: has joined #RubyOnRails
[05:24:26] RahulT: has joined #RubyOnRails
[05:27:00] guardianxx: has joined #RubyOnRails
[05:38:34] waseem_: has joined #RubyOnRails
[05:48:58] cam27: has joined #RubyOnRails
[05:50:58] cagomez: has joined #RubyOnRails
[05:59:25] jhfisc: has joined #RubyOnRails
[06:03:12] AzaToth: has joined #RubyOnRails
[06:05:20] jhfisc: has joined #RubyOnRails
[06:11:15] jhfisc: has joined #RubyOnRails
[06:16:43] bronson: has joined #RubyOnRails
[06:18:05] jhfisc: has joined #RubyOnRails
[06:23:53] codelahoma: has joined #RubyOnRails
[06:37:41] jhfisc: has joined #RubyOnRails
[06:39:26] shortCircuit__: has joined #RubyOnRails
[06:39:27] waseem_: has joined #RubyOnRails
[06:39:32] shortCircuit__: https://github.com/argentum47/rdspec
[06:41:45] normie1: has joined #RubyOnRails
[06:43:43] shortCircuit__: can someone tell me how zeus works?
[06:48:12] jhfisc: has joined #RubyOnRails
[07:05:39] jhfisc: has joined #RubyOnRails
[07:17:35] bronson: has joined #RubyOnRails
[07:23:01] jhfisc: has joined #RubyOnRails
[07:29:00] hahuang61: has joined #RubyOnRails
[07:35:11] jhfisc: has joined #RubyOnRails
[07:42:57] jhfisc: has joined #RubyOnRails
[07:47:03] KeyJoo: has joined #RubyOnRails
[07:47:46] jhfisc: has joined #RubyOnRails
[07:53:40] jhfisc: has joined #RubyOnRails
[07:56:32] jhfisc: has joined #RubyOnRails
[08:02:46] jhfisc: has joined #RubyOnRails
[08:07:32] jhfisc: has joined #RubyOnRails
[08:12:38] codelahoma: has joined #RubyOnRails
[08:15:28] jhfisc: has joined #RubyOnRails
[08:18:22] bronson: has joined #RubyOnRails
[08:33:21] srinidhi: has joined #RubyOnRails
[08:40:49] srinidhi: has joined #RubyOnRails
[08:42:09] srinidhi: has joined #RubyOnRails
[08:47:14] jhfisc: has joined #RubyOnRails
[08:47:33] marr: has joined #RubyOnRails
[08:53:16] jhfisc: has joined #RubyOnRails
[08:56:11] jhfisc: has joined #RubyOnRails
[09:01:09] ar1a: has joined #RubyOnRails
[09:07:44] jhfisc: has joined #RubyOnRails
[09:15:17] srinidhi: has joined #RubyOnRails
[09:16:44] high_fiver: has joined #RubyOnRails
[09:19:38] bronson: has joined #RubyOnRails
[09:28:58] pwnd_nsfw: has joined #RubyOnRails
[09:29:13] jhfisc: has joined #RubyOnRails
[09:29:29] Terens: has joined #RubyOnRails
[09:36:47] ferr: has joined #RubyOnRails
[09:39:20] cgfbee: has joined #RubyOnRails
[09:44:05] srinidhi: has joined #RubyOnRails
[09:45:55] jhfisc: has joined #RubyOnRails
[10:00:56] codelahoma: has joined #RubyOnRails
[10:09:54] rysiek|pl: has joined #RubyOnRails
[10:10:55] rysiek|pl: I am trying to deploy a piece of software that does not have a very good deploy/install documentation
[10:11:02] rysiek|pl: also, I am not very familiar with Rails
[10:12:03] rysiek|pl: I have an older version of this software running, but can't for the life of me figure out why the newer version fails at bundle exec rake assets:precompile
[10:12:21] rysiek|pl: the error is:
[10:12:22] rysiek|pl: NoMethodError: undefined method `email_regex' for ActiveModel::Validations::EmailValidator:Class
[10:12:32] rysiek|pl: now, Emailvalidator class is defined in two files:
[10:13:12] rysiek|pl: correction, 4 files:
[10:13:14] rysiek|pl: lib/validators/email_validator.rb:3:class EmailValidator < ActiveModel::EachValidator
[10:13:14] rysiek|pl: vendor/bundle/ruby/2.3.0/gems/activemodel-4.2.7.1/lib/active_model/validations/validates.rb:26: # class EmailValidator < ActiveModel::EachValidator
[10:13:14] rysiek|pl: vendor/bundle/ruby/2.3.0/gems/rails-4.2.7.1/guides/source/active_record_validations.md:927:class EmailValidator < ActiveModel::EachValidator
[10:13:15] rysiek|pl: vendor/bundle/ruby/2.3.0/gems/validate_email-0.1.6/lib/validate_email.rb:8: class EmailValidator < ActiveModel::EachValidator
[10:14:34] sevenseacat: looks like you have a gem conflicting with an in built validator
[10:15:11] rysiek|pl: actually, it's defined in the first and last file, mentioned in comments in the others (misgrepped things, pardon me)
[10:15:24] rysiek|pl: sevenseacat: fun fact, it's the same as in the previous, working version
[10:15:51] rysiek|pl: and also, this version of the software in question is a stable release, meaning that apparently there's a way to make this work
[10:16:17] rysiek|pl: sevenseacat: finally, the breaking change, whatever it was, occured between version 1.7.0.beta11 and 1.7.0 (stable)
[10:16:49] sevenseacat: errr, 1.7 of what?
[10:17:04] rysiek|pl: the software I am trying to deploy
[10:17:59] sevenseacat: I think youll be best suited getting help from them directly
[10:18:39] rysiek|pl: thing is they only support their own docker image that has postgres, sshd, redis, haproxy, and who knows what else bundled inside
[10:19:02] sevenseacat: guessing thats all pretty important stuff if they bundle it
[10:19:15] rysiek|pl: yes, but Ihave those running in our infra separately
[10:19:38] rysiek|pl: tl;dr I am writing a dockerfile for a standalone discourse
[10:19:42] rysiek|pl: thought this is a general ruby/rails thing
[10:20:02] sevenseacat: i wouldnt call discourse a general ruby/rails app
[10:20:15] rysiek|pl: it's not a general anything, I'll give you that
[10:20:25] rysiek|pl: but I was referring to problems with library loading
[10:20:33] bronson: has joined #RubyOnRails
[10:20:47] rysiek|pl: I can verify both files that define EmailValidator class are loaded, the "wrong" one firts, the "correct one" afterwards, before the error occurs
[10:22:47] lxsameer: has joined #RubyOnRails
[10:24:30] rysiek|pl: well, in case anyone fancy looking at it: http://wklej.to/9DR7R
[10:24:47] sevenseacat: discourse doesnt seem to have an issue tracker, so
[10:25:06] rysiek|pl: yeah, I scoured the Net looking for this bugger
[10:25:58] rysiek|pl: but it seems like first, *something* loads the wront EmailValidator class; then the class in question loads the correct EmailValidator class; then it tries to load it again and fails
[10:30:34] rysiek|pl: if I manually replace the "bad" file with the "good" one, it works
[10:31:08] rysiek|pl: is there a way to tell Rails how to treat situations where a class is defined in two files?
[10:32:03] workmad3: has joined #RubyOnRails
[10:40:29] high_fiver: has joined #RubyOnRails
[10:49:17] NoGodDamnIdea: has joined #RubyOnRails
[10:53:48] rysiek|pl: huh, changing EmailValidator.email_regex to ::EmailValidator.email_regex in the relevant file seems to fix it
[11:14:05] roshanavand: has joined #RubyOnRails
[11:21:16] bronson: has joined #RubyOnRails
[11:26:32] zhjwpku[m]: has joined #RubyOnRails
[11:27:18] zhjwpku[m]: Hello guys, new comer
[11:42:14] tbuehlmann_: zhjwpku[m]: welcome!
[11:42:36] zhjwpku[m]: tbuehlmann_: thanks :)
[11:46:04] Trynemjoel: has joined #RubyOnRails
[11:48:47] codelahoma: has joined #RubyOnRails
[11:51:37] cagomez: has joined #RubyOnRails
[11:58:47] RahulT: has joined #RubyOnRails
[12:03:05] Trynemjoel: has joined #RubyOnRails
[12:04:02] apparition47: has joined #RubyOnRails
[12:06:54] maodun: has joined #RubyOnRails
[12:09:00] maodun: With Rails 5.1.2 and webpack, should new files in app/javascript/packs/ be automatically detected when I'm running webpack-dev-server and the default options. This is a new, from-scratch app.
[12:09:33] maodun: The code automatically picks up changes to existing packs fine, it just won't recognize a new pack unless I kill the server and restart it
[12:11:42] srinidhi: has joined #RubyOnRails
[12:15:34] rysiek|pl: has left #RubyOnRails: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[12:21:37] srinidhi: has joined #RubyOnRails
[12:22:06] bronson: has joined #RubyOnRails
[12:23:55] ariedler: has joined #RubyOnRails
[12:24:10] pLaTo0n: has joined #RubyOnRails
[12:25:22] Tempesta: has joined #RubyOnRails
[12:45:36] arcaos: has joined #RubyOnRails
[12:49:51] Defenestrate: has joined #RubyOnRails
[12:52:49] Jakaria: has joined #RubyOnRails
[12:52:58] RahulT: has joined #RubyOnRails
[12:53:27] Jakaria: anyone here?
[12:54:02] waseem_: has joined #RubyOnRails
[12:54:27] Jakaria: I want to use Angular 4 in a Rails app.... how would I do it?
[12:59:10] Trynemjoel: has joined #RubyOnRails
[13:05:12] Terens: Do you force using the same bundler version across team?
[13:14:11] Trynemjoel: has joined #RubyOnRails
[13:19:15] banisterfiend: has joined #RubyOnRails
[13:22:55] bronson: has joined #RubyOnRails
[13:37:06] codelahoma: has joined #RubyOnRails
[13:40:34] jhfisc: has joined #RubyOnRails
[13:57:08] jhfisc: has joined #RubyOnRails
[13:59:54] Jakaria: has joined #RubyOnRails
[14:12:58] jhfisc: has joined #RubyOnRails
[14:18:51] Jakaria: has left #RubyOnRails: ("WeeChat 1.4")
[14:23:45] bronson: has joined #RubyOnRails
[14:25:32] jhfisc: has joined #RubyOnRails
[14:25:45] ariedler: has joined #RubyOnRails
[14:29:57] Terens: Do you force using the same bundler version across team?
[14:32:29] jhfisc: has joined #RubyOnRails
[14:37:20] andywww: has joined #RubyOnRails
[14:38:42] andywww: if you were going to put a decent amount of effort into learning a JS front end framework to consume your rails api, which would you choose?
[14:39:25] andywww: i’m tempted with ember because of its similarities with rails and with yehuda heading it up but angular seems an order of magnitude more popular
[14:39:51] havenwood: andywww: vue and react are quite popular as well
[14:40:11] havenwood: andywww: and don't forget about Elm! it'd quite nice, though seems to depend on one person
[14:42:15] havenwood: andywww: Vue seems to be somewhat similar to both React and Angular
[14:42:40] havenwood: Elm is a different breed altogether, but quite good at catching errors at compile time!
[14:42:57] jhfisc: has joined #RubyOnRails
[14:43:41] andywww: yeah there are plenty of options thats for sure
[14:43:58] havenwood: andywww: We don't use a JS framework, but I'd be tempted to learn Elm.
[14:44:24] andywww: i was attracted to ember because of ember data but its not turning out to be quite what i hoped
[14:45:01] andywww: i think its the old case of pick one and stick with it though
[14:46:42] cam27: has joined #RubyOnRails
[14:53:05] jhfisc: has joined #RubyOnRails
[14:58:19] jhfisc: has joined #RubyOnRails
[15:01:16] Terens: Do you force using the same bundler version across team?
[15:01:18] jhfisc: has joined #RubyOnRails
[15:03:28] andywww: has left #RubyOnRails: ()
[15:04:38] weathermaker: has joined #RubyOnRails
[15:14:39] jhfisc: has joined #RubyOnRails
[15:20:19] cagomez: has joined #RubyOnRails
[15:22:59] jhfisc: has joined #RubyOnRails
[15:24:58] bronson: has joined #RubyOnRails
[15:25:57] codelahoma: has joined #RubyOnRails
[15:28:03] jhfisc: has joined #RubyOnRails
[15:48:19] rollinDyno: has joined #RubyOnRails
[15:49:34] rollinDyno: Hi! I've an app currently running on production and I need to query the database to get some data stats. I ssh into the host and then run rails c, when I try to use ActiveRecord to query the models it times out. Is there a way I can disable this per query basis?
[15:53:47] havenwood: rollinDyno: It's a bit hacky, but: ActiveRecord::Base.connection.raw_connection.instance_variable_set :@read_timeout, 10_000
[15:54:43] havenwood: rollinDyno: Give that ^ a try?
[15:55:23] fryguy: rollinDyno: is it timing out because it's a long query, or is it timing out and not even connecting to the database in the first place?
[15:55:39] havenwood: ActiveRecord::Base.connection.raw_connection.methods.grep /time/ #=> []
[15:57:50] Terens: So isn't a problem?
[15:58:08] Terens: I did update bundler and other dev got pissed off
[15:58:11] havenwood: terens: and the version tends to be a bit behind in prod pipeline as well
[15:58:47] havenwood: terens: we've never run into a problem, and bundler doesn't have a mechanism to enforce the bundler version - so we trust their semantic versions will be such
[15:58:57] havenwood: and ignore the warning
[15:59:24] havenwood: I use latest stable and so do most our devs. Those a few teeny versions behind seem fine.
[16:00:58] havenwood: terens: How would you even orchestrate exact bundler versions? That seems annoying to try to enforce.
[16:01:16] havenwood: I'd be interested to talk with someone who does that.
[16:01:43] rollinDyno: fryguy it's a long query (there's loads to be fetched)
[16:01:52] rollinDyno: we're talking about hundreds of thousands
[16:02:07] rollinDyno: havenwood I'm afraid of doing that in our production env
[16:02:11] Terens: We have a vm machine and some scripts install bundler.
[16:02:21] havenwood: rollinDyno: understandably, but i think it'd work
[16:02:30] havenwood: clone prod! \o/
[16:02:37] fryguy: rollinDyno: you should run this query a different way. Using activerecord to do something that returns that many results is going to be problematic
[16:03:03] Terens: He says that we must have exactly the same configuration. and that since I locked to a newer version he couldnt do bundle install.
[16:03:12] jackhum: has joined #RubyOnRails
[16:03:25] havenwood: terens: You can still bundle install if your bundler is behind. But more to the point, update bundler.
[16:03:35] Terens: I told him that it doesnt lock but said that it does and that he wasted 30 minutes
[16:03:53] Terens: I did downgrade it though
[16:04:11] havenwood: why in the world can't he update his bundler?
[16:04:13] jackhum: hello, i want to know what are some beginner use cases of Redis. I am reading about it here and there in lots of articles
[16:04:15] havenwood: you said he
[16:04:16] Terens: Because updating it was out of the scope of my task he said
[16:04:31] Terens: Because it is out of scope tha tis why
[16:05:02] havenwood: jackhum: Redis is nice for storing things you want quick access to from memory but also a copy on disk to survive restarts.
[16:05:31] jackhum: havenwood, okay, so what is the most simple use case
[16:05:34] havenwood: terens: Maybe didn't have a billing macro for it. ;-P
[16:06:04] jackhum: havenwood, is redis used while running query on db or something , one time i saw one developer doing that
[16:06:11] havenwood: jackhum: we use it for job queues and rails cache
[16:06:16] rollinDyno: fryguy: I'm trying to look at how many rows in a table have a specific property so I can get a %
[16:06:24] rollinDyno: what's a good way to do this?
[16:06:27] Terens: I have numerous conflicts
[16:06:41] Terens: with him lol
[16:06:44] jackhum: havenwood, yeah, this job queue thing, so can we put the job queue in redis
[16:06:48] fryguy: rollinDyno: what is the query you are doing
[16:07:10] rollinDyno: Orders.where("created_at < ?", 1.day.ago)
[16:08:24] fryguy: rollinDyno: is there an index on `created_at`?
[16:08:59] havenwood: jackhum: you can do them in memory with something like SuckerPunch but Redis has the option for saving to disk as well so you lose less if you restart
[16:09:02] rollinDyno: fryguy: nope
[16:09:25] havenwood: rollinDyno: indexes are your friends!
[16:09:47] rollinDyno: guess I'll bring that in on Monday
[16:09:57] rollinDyno: I'm giving up for today :shrug:
[16:10:01] rollinDyno: thanks guys, byw
[16:10:11] havenwood: makes a huge difference
[16:10:44] havenwood: Well, I'm too late, but great RailsConf talk: https://www.youtube.com/watch?v=BuDWWadCqIw
[16:14:27] codelahoma: has joined #RubyOnRails
[16:16:25] Andr3as: has joined #RubyOnRails
[16:25:47] bronson: has joined #RubyOnRails
[16:28:00] ariedler: has joined #RubyOnRails
[16:29:09] RahulT: has joined #RubyOnRails
[16:31:36] roshanavand: has joined #RubyOnRails
[16:40:47] waseem_: has joined #RubyOnRails
[16:42:47] armyriad: has joined #RubyOnRails
[16:50:46] SteenJobs_: has joined #RubyOnRails
[16:52:20] googleplex: has joined #RubyOnRails
[16:55:05] codelahoma: has joined #RubyOnRails
[17:12:39] SteenJobs_: has joined #RubyOnRails
[17:21:16] jhfisc: has joined #RubyOnRails
[17:23:19] SteenJobs_: has joined #RubyOnRails
[17:25:12] nahtnam: has joined #RubyOnRails
[17:26:36] bronson: has joined #RubyOnRails
[17:27:15] jhfisc: has joined #RubyOnRails
[17:33:09] raz: has joined #RubyOnRails
[17:35:30] dviola: has joined #RubyOnRails
[17:44:13] cam27: has joined #RubyOnRails
[17:45:16] jhfisc: has joined #RubyOnRails
[17:50:10] Aherin: has joined #RubyOnRails
[17:57:10] jhfisc: has joined #RubyOnRails
[18:20:28] veex: has joined #RubyOnRails
[18:21:31] creaked: has joined #RubyOnRails
[18:22:06] SteenJobs_: has joined #RubyOnRails
[18:27:26] bronson: has joined #RubyOnRails
[18:31:48] kristofferR: has joined #RubyOnRails
[18:35:02] jhfisc: has joined #RubyOnRails
[18:35:50] arup_r: has joined #RubyOnRails
[18:36:27] creaked: has joined #RubyOnRails
[18:43:08] jhfisc: has joined #RubyOnRails
[18:43:24] codelahoma: has joined #RubyOnRails
[18:43:52] cam27: has joined #RubyOnRails
[18:45:39] cam27: Ok, this is driving me nuts.my standalone rails migrations aren’t pushing up to heroku. itkeeps saying no foreign key, even though it is there. I’ve tried migrating that version as well
[18:57:09] jhfisc: has joined #RubyOnRails
[19:02:19] jhfisc: has joined #RubyOnRails
[19:03:03] Rodya_: has joined #RubyOnRails
[19:08:21] jhfisc: has joined #RubyOnRails
[19:10:14] futilegames: has joined #RubyOnRails
[19:10:58] futilegames: has left #RubyOnRails: ()
[19:14:20] jhfisc: has joined #RubyOnRails
[19:17:43] KeyJoo: has joined #RubyOnRails
[19:22:02] jhfisc: has joined #RubyOnRails
[19:25:40] S1kx: has joined #RubyOnRails
[19:28:16] bronson: has joined #RubyOnRails
[19:28:50] codelahoma: has joined #RubyOnRails
[19:34:46] jhfisc: has joined #RubyOnRails
[19:40:50] Terens: has joined #RubyOnRails
[19:41:43] emers2n: has joined #RubyOnRails
[19:41:49] Terens: I want to implement something like a callback. Lets say I have class Monkey and I want to be notified when it is hungry..
[19:42:18] emers2n: Just launched my second rails project: A simple anagram finder/tool: www.autoanagram.com
[19:42:20] Terens: mango = Monkey.new ... mango.on_hugry { eat_banana }
[19:42:34] Terens: is there an easy/clean way to do it in plain ruby?
[19:42:54] emers2n: Oops its actually https://autoanagram.com Thanks for this channels help
[19:42:54] Terens: or on(:hungry) for example
[19:46:39] jhfisc: has joined #RubyOnRails
[19:47:03] havenwood: emers2n: congrats on your first rails app!
[19:48:29] emers2n: Thanks havenwood. You helped me with the permutation function for a string in order to identify anagrams if you remember
[19:48:42] havenwood: &ri Kernel#set_trace_func
[19:49:31] havenwood: &ri TracePoint
[19:49:43] havenwood: terens: https://ruby-doc.org/core/TracePoint.html
[19:50:57] Terens: how does this relate?
[19:51:02] havenwood: terens: Or there are multiple delegator options. See Forwardable, SingleForwardable, Delegator, SimpleDelegator.
[19:51:10] havenwood: terens: Say more about what you're doing and why?
[19:52:52] havenwood: terens: Ah, you want to like intermittently check if the monkey is hungry and do a thing? Mm.
[19:54:29] havenwood: terens: Maybe look at Puma's ThreadPool or Rinda::TupleSpace's reapers.
[19:54:37] havenwood: terens: https://github.com/puma/puma/blob/master/lib/puma/thread_pool.rb#L231-L305
[19:55:00] havenwood: (If you don't care about time drift, sleeping is intermittent.)
[19:56:18] havenwood: terens: https://github.com/ruby/ruby/blob/202bbda2bf5f25343e286099140fb9282880ecba/lib/rinda/tuplespace.rb#L613-L627
[19:56:47] havenwood: terens: Is that more along the lines of what you're looking for? Or can you say more?
[19:57:02] jhfisc: has joined #RubyOnRails
[20:01:04] Terens: ok thanks I will look
[20:02:57] jhfisc: has joined #RubyOnRails
[20:05:29] RahulT: has joined #RubyOnRails
[20:05:56] havenwood: emers2n: very nice!
[20:29:20] emers2n: has joined #RubyOnRails
[20:29:59] emers2n: What do y'all use for scheduling reoccuring tasks?
[20:33:09] Ergo: has joined #RubyOnRails
[20:35:59] TheBloke: has joined #RubyOnRails
[20:36:09] havenwood: emers2n: http://api.rubyonrails.org/v5.1.2/classes/ActiveJob/QueueAdapters.html
[20:37:00] havenwood: emers2n: There are a bunch of options. Here are a few: Sidekiq or Resque if you do want to use Redis. Sucker Punch if you don't want to use Redis.
[20:37:39] havenwood: emers2n: Take a look at the Backend Features in the link above and see what you need.
[20:41:09] dblessing: has joined #RubyOnRails
[20:42:57] srinidhi: has joined #RubyOnRails
[20:45:52] dionysus69: has joined #RubyOnRails
[21:01:57] high_fiver: has joined #RubyOnRails
[21:08:40] Rodya_: has joined #RubyOnRails
[21:17:10] codelahoma: has joined #RubyOnRails
[21:29:10] bronson: has joined #RubyOnRails
[21:33:58] SteenJobs_: has joined #RubyOnRails
[21:38:50] SteenJobs_: has joined #RubyOnRails
[21:55:18] jhfisc: has joined #RubyOnRails
[22:01:15] jhfisc: has joined #RubyOnRails
[22:07:15] jhfisc: has joined #RubyOnRails
[22:12:56] jhfisc: has joined #RubyOnRails
[22:19:14] jhfisc: has joined #RubyOnRails
[22:19:41] netzfisch: has joined #RubyOnRails
[22:25:15] jhfisc: has joined #RubyOnRails
[22:30:22] bronson: has joined #RubyOnRails
[22:32:19] high_fiver_: has joined #RubyOnRails
[22:33:18] jhfisc: has joined #RubyOnRails
[22:33:22] ariedler: has joined #RubyOnRails
[22:34:52] dcope: has joined #RubyOnRails
[22:35:31] dcope: is there a built in way to run something on a background thread and continue execution to fulfill a request?
[22:35:48] ResidentBiscuit: has joined #RubyOnRails
[22:36:07] dcope: looking for something other than delayed job, resque, etc.
[22:42:57] jhfisc: has joined #RubyOnRails
[22:43:27] mr-spoon: has joined #RubyOnRails
[22:53:17] jhfisc: has joined #RubyOnRails
[23:02:29] jhfisc: has joined #RubyOnRails
[23:05:29] codelahoma: has joined #RubyOnRails
[23:08:05] havenwood: dcope: ActiveJob also has a queue adapter for Sucker Punch, which itself uses concurrent-ruby.
[23:08:19] havenwood: dcope: It uses a thread pool.
[23:08:25] havenwood: dcope: No Redis.
[23:09:50] SteenJobs_: has joined #RubyOnRails
[23:22:39] armyriad: has joined #RubyOnRails
[23:25:03] jhfisc: has joined #RubyOnRails
[23:31:13] quazimodo: has joined #RubyOnRails
[23:31:14] bronson: has joined #RubyOnRails
[23:34:04] jhfisc: has joined #RubyOnRails
[23:36:19] armyriad: has joined #RubyOnRails
[23:39:10] jhfisc: has joined #RubyOnRails
[23:41:54] RahulT: has joined #RubyOnRails
[23:42:34] jhfisc: has joined #RubyOnRails
[23:54:53] jhfisc: has joined #RubyOnRails
[23:57:50] jhfisc: has joined #RubyOnRails