« Back to channel list

#RubyOnRails - 08 July 2017

« Back 1 day Forward 1 day »
[00:14:51] bronson: has joined #RubyOnRails
[00:29:15] irishfromua: has joined #RubyOnRails
[00:32:08] jhfisc: has joined #RubyOnRails
[00:33:59] ascarter: has joined #RubyOnRails
[00:38:32] jhfisc: has joined #RubyOnRails
[00:40:02] hwdyki: hi....how can i set an explict cert authority in ldap.yaml for activeldap?
[00:41:48] jhfisc: has joined #RubyOnRails
[01:16:00] jhfisc: has joined #RubyOnRails
[01:17:05] knight33: has joined #RubyOnRails
[01:24:42] adavia: Is there any adapter for AMS like the normalizr library?
[01:30:10] aajjbb: has joined #RubyOnRails
[01:39:21] choke: has joined #RubyOnRails
[01:47:43] ascarter_: has joined #RubyOnRails
[01:51:21] duderonomy: has joined #RubyOnRails
[01:56:24] xall: has joined #RubyOnRails
[02:04:05] br0d1n: has joined #RubyOnRails
[02:04:47] adavia: Does anyone ever used this gem? active_model_normalizr
[02:04:49] wethu: has joined #RubyOnRails
[02:22:15] desnudopenguino: no idea, I'm sure someone is, but they may not be active here
[02:28:20] adavia: naked penguin?
[02:32:00] quirkycoders: has joined #RubyOnRails
[02:48:56] ascarter_: has joined #RubyOnRails
[02:59:53] knight33: has joined #RubyOnRails
[03:07:50] mokiwis: has joined #RubyOnRails
[03:10:30] brent__: has joined #RubyOnRails
[03:53:14] knight33: has joined #RubyOnRails
[04:08:34] brent__: has joined #RubyOnRails
[04:16:45] bronson: has joined #RubyOnRails
[04:17:12] nahtnam: has joined #RubyOnRails
[04:31:22] timdotrb: has joined #RubyOnRails
[04:35:33] quirkycoders: has joined #RubyOnRails
[04:36:51] brent__: has joined #RubyOnRails
[05:14:34] xall: has joined #RubyOnRails
[05:16:39] bronson: has joined #RubyOnRails
[05:18:04] epinto: has joined #RubyOnRails
[05:20:01] irishfromua: has joined #RubyOnRails
[05:27:27] timdotrb: has joined #RubyOnRails
[06:17:21] bronson: has joined #RubyOnRails
[06:47:20] timdotrb: has joined #RubyOnRails
[06:52:12] patarr: has joined #RubyOnRails
[06:52:15] ascarter: has joined #RubyOnRails
[07:07:33] harisamin: has joined #RubyOnRails
[07:18:09] bronson: has joined #RubyOnRails
[07:18:17] quazimodo: has joined #RubyOnRails
[07:53:03] ascarter: has joined #RubyOnRails
[08:01:18] dionysus69: has joined #RubyOnRails
[08:01:50] harisamin: has joined #RubyOnRails
[08:18:57] bronson: has joined #RubyOnRails
[08:23:00] marr: has joined #RubyOnRails
[08:23:17] ur5us: has joined #RubyOnRails
[08:46:44] roshanavand: has joined #RubyOnRails
[08:49:03] stamina: has joined #RubyOnRails
[08:50:34] quazimodo: has joined #RubyOnRails
[08:52:59] patarr: has joined #RubyOnRails
[08:55:57] harisamin: has joined #RubyOnRails
[08:59:24] kies: has joined #RubyOnRails
[09:07:48] dionysus69: has joined #RubyOnRails
[09:20:09] bronson: has joined #RubyOnRails
[09:41:19] sevenseacat: has joined #RubyOnRails
[09:50:07] harisamin: has joined #RubyOnRails
[09:53:56] dminuoso: adgtl: There is. It's called json:api
[09:54:12] dminuoso: adgtl: It's even better than what normalizr does.
[10:12:07] timdotrb: has joined #RubyOnRails
[10:20:50] pLaTo0n: has joined #RubyOnRails
[10:20:56] bronson: has joined #RubyOnRails
[10:43:04] lxsameer: has joined #RubyOnRails
[10:44:14] harisamin: has joined #RubyOnRails
[10:53:56] patarr: has joined #RubyOnRails
[10:56:01] ascarter: has joined #RubyOnRails
[10:56:38] davic: has joined #RubyOnRails
[10:57:32] dionysus69: has joined #RubyOnRails
[10:59:21] xall: has joined #RubyOnRails
[10:59:58] Aherin: has joined #RubyOnRails
[11:07:28] fl4sh_: has joined #RubyOnRails
[11:13:06] workmad3: has joined #RubyOnRails
[11:19:07] shilon: has joined #RubyOnRails
[11:21:47] bronson: has joined #RubyOnRails
[11:22:34] AzaToth: has joined #RubyOnRails
[11:35:43] armyriad: has joined #RubyOnRails
[11:49:07] wethu: has joined #RubyOnRails
[11:58:38] workmad3: has joined #RubyOnRails
[12:00:58] Chernobuk: has joined #RubyOnRails
[12:16:13] ur5us: has joined #RubyOnRails
[12:22:38] bronson: has joined #RubyOnRails
[12:25:27] stamina: has joined #RubyOnRails
[12:30:20] fl4sh_: has joined #RubyOnRails
[12:57:10] ascarter: has joined #RubyOnRails
[13:14:40] arBmind: has joined #RubyOnRails
[13:26:43] harisamin: has joined #RubyOnRails
[13:29:01] dionysus69: has joined #RubyOnRails
[13:54:34] shilon: has joined #RubyOnRails
[14:09:04] quazimodo: has joined #RubyOnRails
[14:17:26] br0d1n: has joined #RubyOnRails
[14:20:53] harisamin: has joined #RubyOnRails
[14:23:29] bronson: has joined #RubyOnRails
[14:32:59] Geschopf: has joined #RubyOnRails
[14:46:27] fgo: has joined #RubyOnRails
[14:46:56] jhfisc: has joined #RubyOnRails
[14:58:44] santasquid: has joined #RubyOnRails
[15:02:14] jhfisc: has joined #RubyOnRails
[15:09:52] santasquid: does anyone have any open source projects I can work on?
[15:15:00] adavia: has joined #RubyOnRails
[15:15:03] harisamin: has joined #RubyOnRails
[15:15:30] conta3: has joined #RubyOnRails
[15:17:55] jhfisc: has joined #RubyOnRails
[15:22:05] adavia: a bit useless how rails 5 decided to show json index errors
[15:22:58] havenwood: santasquid: You could untag and fix core or stdlib specs in TruffleRuby: https://github.com/graalvm/truffleruby/blob/master/doc/contributor/workflow.md
[15:24:25] jhfisc: has joined #RubyOnRails
[15:26:16] ascarter: has joined #RubyOnRails
[15:27:09] Moeh: has joined #RubyOnRails
[15:28:03] santasquid: sure havenwood
[15:29:43] roshanavand: has joined #RubyOnRails
[15:29:56] DLSteve: has joined #RubyOnRails
[15:30:58] jhfisc: has joined #RubyOnRails
[15:37:05] choke: has joined #RubyOnRails
[15:39:57] NoGodDamnIdea: has joined #RubyOnRails
[15:42:38] shilon: has joined #RubyOnRails
[15:42:50] jhfisc: has joined #RubyOnRails
[15:43:44] duderonomy: has joined #RubyOnRails
[15:54:52] cseder: has joined #RubyOnRails
[15:57:40] jhfisc: has joined #RubyOnRails
[15:57:54] sonOfRa: has joined #RubyOnRails
[16:01:48] knight33: has joined #RubyOnRails
[16:07:47] lexileo: has joined #RubyOnRails
[16:08:02] jhfisc: has joined #RubyOnRails
[16:09:15] harisamin: has joined #RubyOnRails
[16:09:52] shtirlic: has joined #RubyOnRails
[16:15:21] shtirlic: has joined #RubyOnRails
[16:16:40] shilon: has joined #RubyOnRails
[16:17:46] shtirlic: has joined #RubyOnRails
[16:18:25] xiljin: has joined #RubyOnRails
[16:20:26] shtirlic: has joined #RubyOnRails
[16:21:51] jhfisc: has joined #RubyOnRails
[16:23:28] adavia: any way i can change { "questions[0].title": "this is an error message" } to { questions: { 0: { title: "this is an error message" } } }
[16:24:44] bronson: has joined #RubyOnRails
[16:25:14] jhfisc: has joined #RubyOnRails
[16:25:57] FastJack: has joined #RubyOnRails
[16:31:19] jhfisc: has joined #RubyOnRails
[16:43:10] jhfisc: has joined #RubyOnRails
[16:51:55] jhfisc: has joined #RubyOnRails
[16:56:00] jhfisc: has joined #RubyOnRails
[17:01:25] jhfisc: has joined #RubyOnRails
[17:11:08] raunicolae: has joined #RubyOnRails
[17:13:33] cseder: has joined #RubyOnRails
[17:17:46] jhfisc: has joined #RubyOnRails
[17:20:48] stamina: has joined #RubyOnRails
[17:21:25] mtkd: has joined #RubyOnRails
[17:22:12] raunicolae: has left #RubyOnRails: ("Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is")
[17:22:31] FastJack: has joined #RubyOnRails
[17:23:46] jhfisc: has joined #RubyOnRails
[17:26:33] jhfisc: has joined #RubyOnRails
[17:38:24] jhfisc: has joined #RubyOnRails
[17:53:57] jhfisc: has joined #RubyOnRails
[17:57:16] jhfisc: has joined #RubyOnRails
[17:58:02] Aherin: has joined #RubyOnRails
[17:59:26] bronson: has joined #RubyOnRails
[18:00:10] jhfisc: has joined #RubyOnRails
[18:06:23] jhfisc: has joined #RubyOnRails
[18:12:51] alfiemax: has joined #RubyOnRails
[18:13:00] alfiemax: how do i detect rails auto load?
[18:13:28] matthewd: alfiemax: What do you want to detect, and why?
[18:13:43] alfiemax: hi matthewd
[18:13:55] alfiemax: had some updates in my issue i was facing with rails autoloading
[18:13:56] alfiemax: https://github.com/waiting-for-dev/devise-jwt/issues/22
[18:14:55] alfiemax: so, because the gem devise-jwt keeps a mapping to the class and when the code changes i would like to re-map it
[18:15:31] matthewd: The blessed way to do that is to store the class name (string), not the actual class reference
[18:15:48] matthewd: Then you resolve it each time you need it, and thus get the current value of the constant
[18:15:54] alfiemax: ah, that's a good advice :)
[18:16:18] matthewd: (that's how we handle all the associations etc internally)
[18:19:54] srinidhi: has joined #RubyOnRails
[18:30:23] bronson: has joined #RubyOnRails
[18:30:52] alfiemax: matthewd: can you point me to some code that i can look at and see how i can adapt?
[18:32:00] matthewd: Have you found the thing that's populating / using that mappings hash?
[18:32:25] alfiemax: https://github.com/waiting-for-dev/devise-jwt/blob/master/lib/devise/jwt/defaults_generator.rb#L45
[18:32:33] matthewd: When populating it, does the code start off with a string class name and then eagerly turn that into the class, or does it come in already as a class instance?
[18:32:46] alfiemax: already as a class instance
[18:32:53] alfiemax: that's how the mapping hash is made
[18:34:47] matthewd: Okay, so your two basic options are to either call .name there (and note add_revocation_strategy below, too), or to chase up the call stack and convince the caller they should be using a string instead
[18:35:27] jhfisc: has joined #RubyOnRails
[18:35:55] alfiemax: ok,let me see
[18:39:20] adavia: any way i can change { "questions[0].title": "this is an error message" } to { questions: { 0: { title: "this is an error message" } } }
[18:47:16] jhfisc: has joined #RubyOnRails
[18:47:59] cseder: has joined #RubyOnRails
[18:48:48] desnudopenguino: make questions a hash instead of an array?
[18:51:38] adavia: thats how rails 5 shows nested errors with index_errors: true which is extremely useless
[18:55:49] adavia: Trying something like https://gist.github.com/adavia/4208c0d71b28bc942f254c4e02ca6b63
[18:58:00] jhfisc: has joined #RubyOnRails
[19:02:21] ascarter_: has joined #RubyOnRails
[19:08:07] stamina: has joined #RubyOnRails
[19:12:07] jhfisc: has joined #RubyOnRails
[19:19:51] quazimodo: has joined #RubyOnRails
[19:24:06] quirkycoders: has joined #RubyOnRails
[19:28:08] jhfisc: has joined #RubyOnRails
[19:39:04] jhfisc: has joined #RubyOnRails
[19:47:59] quazimodo: has joined #RubyOnRails
[19:48:33] jhfisc: has joined #RubyOnRails
[19:53:38] jhfisc: has joined #RubyOnRails
[20:03:50] ur5us: has joined #RubyOnRails
[20:03:54] ascarter_: has joined #RubyOnRails
[20:06:23] NoGodDamnIdea: has joined #RubyOnRails
[20:07:37] alfiemax: has joined #RubyOnRails
[20:07:43] alfiemax: matthewd: still here?
[20:07:43] jhfisc: has joined #RubyOnRails
[20:10:53] alfiemax: a fix i found for that issue is to make a change here : https://github.com/waiting-for-dev/warden-jwt_auth/blob/master/lib/warden/jwt_auth/payload_user_helper.rb#L14
[20:11:12] alfiemax: changing `user_repo = config.mappings[scope]` to `user_repo = config.mappings[scope].name.constantize`
[20:11:18] alfiemax: what do you think?
[20:15:09] alfiemax: alternative to this would be to change storing of class to class name in devise-jwt and then calling just `constantize` here in `waiting-for-dev`
[20:15:28] alfiemax: *warden-jwt_auth
[20:16:08] matthewd: It really *should* be stored as the name, and just constantized here
[20:16:11] alfiemax: both gems are maintained by the same guy, so i think putting two PR's would also work
[20:16:29] alfiemax: ok, i'll put up 2 PR's as the fix for the issue
[20:16:38] matthewd: By storing the original, you're keeping it alive, and thus increasing the risk it'll turn up somewhere else, for example
[20:16:39] alfiemax: thanks for all the input :)
[20:17:51] matthewd: (also reminder about revocation strategy, because I recall we previously saw it was a documented pattern to set that to self / the model class too)
[20:18:33] tanuki4: has joined #RubyOnRails
[20:19:18] matthewd: No worries! Feel free to @mention me on the PR if you think I might be of help convincing people or anything :)
[20:23:15] bronson: has joined #RubyOnRails
[20:25:31] dviola: has joined #RubyOnRails
[20:25:41] alfiemax: i already did in the issue
[20:26:02] alfiemax: matthewd: https://github.com/waiting-for-dev/warden-jwt_auth#warden-scopes-configuration
[20:26:13] alfiemax: seems like it would be a breaking change for the gem
[20:28:12] matthewd: I guess it depends whether people are expected to read config.mappings directly after it's set
[20:28:30] alfiemax: i think the readme just needs to be updated for it, so that users when upgrading would be aware
[20:28:44] matthewd: e.g. mappings= could convert any supplied values to strings
[20:29:12] alfiemax: yes, but those who already set as the User class, their code could break
[20:29:24] matthewd: I mean at runtime
[20:29:39] matthewd: I'd still update the docs to change the official approach, but existing code can remain compatible
[20:29:57] alfiemax: i'm not sure how to reword this :
[20:29:57] alfiemax: You have to map the warden scopes that will be authenticatable through JWT, with the user repositories from where these scope user records can be fetched.
[20:30:29] dionysus69: has joined #RubyOnRails
[20:31:03] matthewd: + "If a string is supplied, it will first be looked up as a constant."
[20:31:28] matthewd: This non-devise gem may not want to change its default recommended path, because it's a relatively Rails-specific need
[20:32:00] matthewd: So it could just *support* strings, but still document itself as generally using constants directly
[20:35:25] jhfisc: has joined #RubyOnRails
[20:43:14] alfiemax: https://github.com/waiting-for-dev/warden-jwt_auth/pull/5
[20:45:16] matthewd: You probably want Object.const_get, to avoid it feeling too railsy... and if you're documenting behaviour, it likely deserves some tests too
[20:46:37] alfiemax: https://github.com/waiting-for-dev/devise-jwt/pull/24/files
[20:48:15] alfiemax: user_repo = Object.const_get(user_repo) if user_repo.is_a? String
[20:48:45] pLaTo0n: has joined #RubyOnRails
[20:55:35] mr-spoon: has joined #RubyOnRails
[21:05:55] pLaTo0n: has joined #RubyOnRails
[21:24:26] alfiemax: has joined #RubyOnRails
[21:27:27] workmad3: has joined #RubyOnRails
[21:28:02] jhfisc: has joined #RubyOnRails
[21:49:39] cseder: has joined #RubyOnRails
[21:55:14] jhfisc: has joined #RubyOnRails
[21:55:18] armyriad: has joined #RubyOnRails
[21:59:11] juddey: has joined #RubyOnRails
[22:06:54] jhfisc: has joined #RubyOnRails
[22:12:37] dviola: has joined #RubyOnRails
[22:15:10] jhfisc: has joined #RubyOnRails
[22:23:42] jhass: has joined #RubyOnRails
[22:29:58] jhfisc: has joined #RubyOnRails
[22:31:54] wethu: has joined #RubyOnRails
[22:36:49] jhfisc: has joined #RubyOnRails
[22:43:13] jhfisc: has joined #RubyOnRails
[22:48:52] ahrs: has joined #RubyOnRails
[22:51:08] jhfisc: has joined #RubyOnRails
[22:54:50] quazimodo: has joined #RubyOnRails
[22:56:26] gambl0re: has joined #RubyOnRails
[23:02:24] jhfisc: has joined #RubyOnRails
[23:12:57] brent__: has joined #RubyOnRails
[23:15:21] weathermaker: has joined #RubyOnRails
[23:22:35] nahtnam: has joined #RubyOnRails
[23:24:31] agent_white: has joined #RubyOnRails
[23:31:59] zacts: has joined #RubyOnRails
[23:34:45] shilon: has joined #RubyOnRails
[23:37:52] patarr: has joined #RubyOnRails
[23:45:15] cseder: has joined #RubyOnRails
[23:47:35] duderonomy: has joined #RubyOnRails
[23:50:50] jhfisc: has joined #RubyOnRails