« Back to channel list

#ruby - 20 August 2019

« Back 1 day Forward 1 day »
[00:10:19] queip: has joined #ruby
[00:20:26] fphilipe: has joined #ruby
[00:29:38] idkdudelol: has joined #ruby
[00:41:30] DaRock: has joined #ruby
[00:45:43] banisterfiend: has joined #ruby
[00:48:40] Exuma: has joined #ruby
[00:49:58] poontangmessiah: has joined #ruby
[01:04:52] nowhereman: has joined #ruby
[01:07:15] havenwood: I was looking at a Ruby issue and decided to do a quick spike on a Method#curry that works with keyword arguments. A yak shave later: https://gist.github.com/havenwood/db041566abeac894602c188c77374040
[01:07:54] havenwood: Unsure how much of ruby/spec this is passing.
[01:18:31] d^sh: has joined #ruby
[01:20:39] havenwood: using KeywordCurry
[01:21:16] havenwood: fetch(urls).map &JSON.:parse.curry.(symbolize_names: true)
[01:21:38] havenwood: That ^ does work. :)
[01:25:05] fphilipe: has joined #ruby
[01:49:07] bitwinery: has joined #ruby
[01:59:45] bmurt: has joined #ruby
[02:09:11] _whitelogger: has joined #ruby
[02:16:02] Xiti: has joined #ruby
[02:18:06] mynameisdebian: has joined #ruby
[02:18:52] shiggins: has joined #ruby
[02:22:35] shiggins: has joined #ruby
[02:28:06] grilix: has joined #ruby
[02:31:27] fphilipe: has joined #ruby
[02:42:28] greengriminal: has joined #ruby
[02:45:24] yxhuvud: has joined #ruby
[02:49:11] chalkmon1: has joined #ruby
[03:05:52] Guest5383: has joined #ruby
[03:06:05] skryking: has joined #ruby
[03:12:11] _whitelogger: has joined #ruby
[03:19:12] skryking: has joined #ruby
[03:24:11] _whitelogger: has joined #ruby
[03:25:28] cthu|: has joined #ruby
[03:26:21] dtzuzu: has joined #ruby
[03:51:09] fphilipe: has joined #ruby
[04:08:51] teardown: has joined #ruby
[04:09:11] nowhereman: has joined #ruby
[04:34:40] mynameisdebian: has joined #ruby
[04:42:20] Ricky: has joined #ruby
[04:46:51] Tempesta: has joined #ruby
[04:51:31] ur5us: has joined #ruby
[04:52:55] fphilipe: has joined #ruby
[05:02:08] chalkmonster: has joined #ruby
[05:13:22] damonh: has joined #ruby
[05:15:47] ramfjord: has joined #ruby
[05:17:27] sauvin: has joined #ruby
[05:23:23] x86sk: has joined #ruby
[05:32:30] dionysus69: has joined #ruby
[05:34:08] uplime: has joined #ruby
[05:42:36] chalkmonster: has joined #ruby
[05:49:52] montanonic: has joined #ruby
[06:07:35] nowhereman: has joined #ruby
[06:07:41] Freshnuts: has joined #ruby
[06:13:16] baweaver: Part Three on Decorating Ruby is out: https://dev.to/baweaver/decorating-ruby-part-three-prepending-decoration-1ehc
[06:13:16] baweaver: This one covers using prepend for decoration.
[06:16:21] schneider: has joined #ruby
[06:25:43] suukim: has joined #ruby
[06:44:53] lxsameer: has joined #ruby
[06:46:36] xco: has joined #ruby
[06:52:00] ur5us: has joined #ruby
[06:57:41] TomyWork: has joined #ruby
[07:01:21] fphilipe: has joined #ruby
[07:16:41] deepreds1: has joined #ruby
[07:19:05] drnerdius: has joined #ruby
[07:21:48] dionysus69: has joined #ruby
[07:28:03] aupadhye: has joined #ruby
[07:31:32] ineb: "I frequently end up switching between the two (include and extend) until my code works some times." haha, me too. Although i should know the details
[07:34:40] ineb: In "The Classy Metaprogramming Extraordinaire" you introduced the eigenclass conecept. Maybe you want to mention its name somewhere.
[07:36:57] Bounga`: has joined #ruby
[07:40:47] ineb: baweaver: however, nice article
[07:40:47] ged_: has joined #ruby
[07:40:52] giraffe: has joined #ruby
[07:42:22] meinside: has joined #ruby
[07:43:52] gbristol: has joined #ruby
[07:43:56] deepreds1: has joined #ruby
[07:47:59] ineb: Last chapter, 'But What About Method Added?' are you referring to pt2 of the series? maybe put a link to it. Also a typo in "We could, we certainly could at that." (/s/at/add)
[07:48:36] schneider: has joined #ruby
[08:02:17] queip: has joined #ruby
[08:05:44] deepreds1: has joined #ruby
[08:15:18] uid9164: has joined #ruby
[08:16:57] DaRock: has joined #ruby
[08:29:56] deepreds1: has joined #ruby
[08:43:48] deepreds1: has joined #ruby
[08:48:49] amateur_rubyist: has joined #ruby
[08:49:13] TvL2386: has joined #ruby
[08:59:41] drale2k_: has joined #ruby
[09:02:10] luminousnine: has joined #ruby
[09:02:10] luminousnine: has joined #ruby
[09:04:12] xfbs: has joined #ruby
[09:09:32] amateur_rubyist: has joined #ruby
[09:10:06] GodFather: has joined #ruby
[09:10:29] GodFather__: has joined #ruby
[09:14:09] drale2k_: has joined #ruby
[09:19:14] drnerdius: has joined #ruby
[09:26:26] suukim: has joined #ruby
[09:28:07] luminousnine: has joined #ruby
[09:28:07] luminousnine: has joined #ruby
[09:30:26] drnerdius: has joined #ruby
[09:32:12] xfbs: has joined #ruby
[09:40:54] queip: has joined #ruby
[09:43:39] jmcgnh_: has joined #ruby
[09:55:10] yann-kaelig: has joined #ruby
[09:56:37] ravenous_: has joined #ruby
[10:02:13] hiroaki: has joined #ruby
[10:15:58] Nicmavr: has joined #ruby
[10:33:57] queip: has joined #ruby
[10:34:06] shansen: has joined #ruby
[10:51:52] drnerdius: has joined #ruby
[10:53:03] Ricky: has joined #ruby
[10:56:42] queip: has joined #ruby
[11:09:55] akem-hp: has joined #ruby
[11:10:05] AJA4350: has joined #ruby
[11:16:24] ramfjord: has joined #ruby
[11:18:30] luminousnine: has joined #ruby
[11:18:51] luminousnine: has joined #ruby
[11:21:18] xfbs: has joined #ruby
[11:21:40] vondruch: has joined #ruby
[11:32:19] banisterfiend: has joined #ruby
[11:37:17] grilix: has joined #ruby
[11:44:06] queip: has joined #ruby
[11:45:20] DTZUZO: has joined #ruby
[11:48:18] luminousnine: has joined #ruby
[11:48:18] luminousnine: has joined #ruby
[11:50:40] sh7d: has joined #ruby
[11:52:44] tpanarch1st: has joined #ruby
[11:53:25] poontangmessiah: has joined #ruby
[11:54:50] xfbs: has joined #ruby
[11:58:36] Fischmiep: has joined #ruby
[12:01:25] damonhill: has joined #ruby
[12:22:31] DTZUZO: has joined #ruby
[12:28:19] queip: has joined #ruby
[12:35:31] dionysus69: has joined #ruby
[12:47:58] snickers: has joined #ruby
[12:49:32] greengriminal: has joined #ruby
[12:49:53] KeyJoo: has joined #ruby
[13:00:53] donofrio: has joined #ruby
[13:01:35] lucasb: has joined #ruby
[13:04:44] dionysus69: last time I isntalled rvm it installed as system multi-user mode
[13:04:52] dionysus69: that is a change from default right?
[13:05:03] dionysus69: and how do I install it as before, in ~/.rvm
[13:05:13] dionysus69: without rvm sudo and voodoo of that sort
[13:09:25] bmurt: has joined #ruby
[13:12:59] ryouba: has left #ruby: ("WeeChat 2.3")
[13:16:24] havenwood: dionysus69: Remove RVM with `rvm implode --force` then close your terminal, restart it, and re-run the installation script without sudo and as a non-root user.
[13:17:14] dionysus69: I did that last time, but it complained about failed steps and told to rerun with sudo
[13:17:31] dionysus69: also I could potentially install the ubuntu ppa version, is that advised?
[13:17:39] dionysus69: never did until now though
[13:18:00] havenwood: dionysus69: If there are permissions errors, you can use the `rvm fix-permissions` script.
[13:18:36] havenwood: dionysus69: I'd suggest just installing locally as a non-root user. What are the errors?
[13:19:07] dionysus69: ok I need to implode plus remove any traces of it
[13:19:10] havenwood: dionysus69: Be sure to restart your terminal to drop environment variables before reinstalling.
[13:23:27] sh7d: has joined #ruby
[13:25:37] dionysus69: has joined #ruby
[13:27:15] dionysus69: havenwood: so weird, I did and everything went smoothly now
[13:27:52] dionysus69: but I did exactly the same last time, the only potential difference could have been the stable flag \curl -sSL https://get.rvm.io | bash -s stable
[13:35:43] troulouliou_div2: has joined #ruby
[13:52:45] sh7d_: has joined #ruby
[13:58:04] grilix: has joined #ruby
[13:59:16] Intelo: has joined #ruby
[13:59:17] Intelo: Which lirary to use for oauth in react? my backend is in rails
[14:05:56] havenwood: Intelo: Wouldn't that be more a React question?
[14:06:28] havenwood: Intelo: Or are you trying to find a Ruby OAuth library?
[14:10:03] Rapture: has joined #ruby
[14:10:06] agent_white: has joined #ruby
[14:10:39] Intelo: havenwood, hi. How are you
[14:10:47] havenwood: Intelo: g'mornin'!
[14:11:11] Intelo: havenwood, at rails, the company is using Doorkeeper
[14:11:22] Intelo: I have no idea what to do at frontend side
[14:11:51] Intelo: I think token, automatic retries / refresh tokens will be required
[14:11:53] havenwood: Intelo: Can you just use the Rails Doorkeeper from the React side?
[14:12:04] Intelo: Should I use a javascript lib or do it manually
[14:12:28] Intelo: havenwood, I don't know but after looking at code, looks like doorkeeper is used
[14:16:31] havenwood: Intelo: What are you trying to do from React that can't just use Doorkeeper on the backend?
[14:17:37] Intelo: I don't know how to use oauth2 at frontend
[14:17:51] Intelo: All I used to do was put token in header
[14:17:56] Intelo: of request
[14:18:01] havenwood: Intelo: I'd just do my logic on the backend where there's an OAuth client, and send whatever the frontend needs to the frontend from the backend.
[14:18:22] havenwood: Intelo: If you want to do the work on the frontend side, it'd be JavaScript not Ruby.
[14:18:40] Intelo: for js, i am just here for strategy
[14:18:49] Intelo: e.g refresh token poll
[14:19:33] havenwood: That seems like something I'd just do from the backend, rather than having a parallel frontend. ¯\_(ツ)_/¯
[14:20:20] havenwood: Then again, I tend to have as little JavaScript as possible. Someone who uses React and JS might have a good idea about an OAuth client.
[14:21:23] havenwood: Intelo: That's the sort of thing I'd do from the backend. You could alternatively do it from the frontend. It seems you're proposing doing it from both, which you can also do.
[14:22:51] havenwood: It seems odd to me to need an OAuth client on your frontend, but I don't know the "why" part!
[14:23:29] havenwood: Some people just use Rails backend like it's Express and have all logic on the frontend. TIMTOWTDI.
[14:27:29] brool: has joined #ruby
[14:32:01] englishm: has joined #ruby
[14:33:52] Fischmiep: has joined #ruby
[14:35:05] Intelo: havenwood, not talking about parallel frontend. I have to deal with auth for ajax calls. Thats all
[14:38:17] banisterfiend: has joined #ruby
[14:41:43] Intelo: havenwood, how to disable backend security for development for now? so no auth or session
[14:53:37] DTZUZO: has joined #ruby
[14:54:12] sh7d: has joined #ruby
[15:13:37] robotcars: has joined #ruby
[15:16:29] Ricky: has joined #ruby
[15:19:43] robotcars: setting up a new workstation, osx mojave, pulled my code, brew install 2.6.3, and now in the code directory trying to update bundler
[15:19:46] robotcars: bundler's executable "bundle" conflicts with /usr/local/lib/ruby/gems/2.6.0/bin/bundle
[15:20:22] robotcars: which is referenced in Gemfile.lock… do I just update, how do I determine if it's a problem?
[15:25:23] sauvin: has joined #ruby
[15:28:06] havenwood: robotcars: Just --force install bundler: https://github.com/rubygems/rubygems/issues/2058
[15:29:41] havenwood: I think the current behavior should be changed to not require a --force by default.
[15:30:02] havenwood: You're welcome.
[15:31:15] wildtrees: has joined #ruby
[15:36:51] baojg: has joined #ruby
[15:37:23] baojg: has joined #ruby
[15:38:07] baojg: has joined #ruby
[15:38:52] baojg: has joined #ruby
[15:39:52] baojg: has joined #ruby
[15:45:45] ElFerna: has joined #ruby
[15:50:52] oncall-pokemon: has joined #ruby
[15:58:27] queip: has joined #ruby
[16:01:03] iffraff: has joined #ruby
[16:08:11] tdy: has joined #ruby
[16:09:20] cthulchu: has joined #ruby
[16:13:00] gix: has joined #ruby
[16:17:07] orbyt_: has joined #ruby
[16:27:57] sh7d_: has joined #ruby
[16:29:55] sh7d: has joined #ruby
[16:30:04] Icenova: has joined #ruby
[16:30:10] icenovatx: has joined #ruby
[16:32:44] howdoi: has joined #ruby
[16:32:51] AJA4351: has joined #ruby
[16:33:44] za1b1tsu: has joined #ruby
[16:35:47] troulouliou_div2: has joined #ruby
[16:37:49] CalimeroTeknik: has joined #ruby
[16:39:54] Icenova: has joined #ruby
[16:40:00] icenovatx: has joined #ruby
[16:45:06] amateur_rubyist: has joined #ruby
[16:52:25] duderonomy: has joined #ruby
[17:02:53] sameerynho: has joined #ruby
[17:05:25] suukim: has joined #ruby
[17:06:57] d^sh: has joined #ruby
[17:14:59] wildtrees: has joined #ruby
[17:23:12] poontangmessiah: has joined #ruby
[17:24:20] poontangmessiah: has joined #ruby
[17:26:33] ravenousmoose: has joined #ruby
[17:32:18] poontangmessiah_: has joined #ruby
[17:34:39] KeyJoo: has joined #ruby
[17:36:30] KeyJoo: has joined #ruby
[17:44:03] code_zombie: has joined #ruby
[17:49:55] queip: has joined #ruby
[17:57:36] amateur_rubyist: has joined #ruby
[17:59:38] grilix: has joined #ruby
[18:03:18] ramfjord: has joined #ruby
[18:05:01] rapha: has joined #ruby
[18:05:22] rapha: and i thought i was living in this lovely, small-enough niche of programming languages
[18:05:26] rapha: https://github.com/rest-client/rest-client/issues/713
[18:05:36] havenwood: rapha: Use HTTP.rb. :P
[18:06:28] havenwood: rapha: RubyGems, PyPI, NPM, NuGet and others all have 2FA now. None enforce its use.
[18:07:06] havenwood: https://guides.rubygems.org/setting-up-multifactor-authentication
[18:07:23] queip: has joined #ruby
[18:08:24] rapha: it's not about "use something else"
[18:08:34] rapha: it's about trust being gone
[18:09:14] havenwood: rapha: Everyone with the commit bit for the HTTP gem uses MFA. ¯\_(ツ)_/¯
[18:09:59] rapha: good to know about the 2FA thing though ... i never wrote a Gem, so i can only hope it becomes widespread among Gem authors now
[18:10:09] havenwood: rapha: I wonder about writing a tool to check with RubyGems API if everyone with credentials has MFA enabled.
[18:10:13] amateur__: has joined #ruby
[18:10:23] rapha: oh that'd be cool!
[18:10:37] havenwood: rapha: Yeah, we must. Losing credentials shouldn't result in burning the world down...
[18:10:41] rapha: at least it would be something proactive and would help to limit that loss of trust
[18:11:06] havenwood: rapha: I think enforcing MFA as a default would be reasonable.
[18:11:50] rapha: it happened to other languages' package manages before, so yes,
[18:12:17] catbusters: has joined #ruby
[18:12:17] havenwood: rapha: Many, but not all, have 2FA these days. None that I know of enforce its use.
[18:12:25] havenwood: It's probably time for a secure default.
[18:12:33] havenwood: It's already best practice.
[18:12:43] rapha: ruby world domination in security ftw!
[18:12:53] paraxial28: has joined #ruby
[18:20:53] paraxial28: has joined #ruby
[18:24:21] ravenousmoose: has joined #ruby
[18:30:35] sh7d_: has joined #ruby
[18:33:40] chalkmonster: has joined #ruby
[18:44:32] xco: has joined #ruby
[18:44:58] amateur_rubyist: has joined #ruby
[19:03:40] fphilipe: has joined #ruby
[19:17:38] bvdw: has joined #ruby
[19:19:10] x86sk: has joined #ruby
[19:20:47] schneider: has joined #ruby
[19:24:26] sh7d: has joined #ruby
[19:36:22] cd: has joined #ruby
[19:43:35] queip: has joined #ruby
[19:44:45] Ven``: has joined #ruby
[19:46:48] adam12: How have I missed minitest-sprint this entire time
[19:54:15] havenwood: adam12: I love minitest-proveit and minitest-pride too!
[19:54:50] troulouliou_div2: has joined #ruby
[19:55:06] havenwood: https://github.com/seattlerb/minitest-sprint
[19:55:13] havenwood: https://github.com/seattlerb/minitest-proveit
[19:56:14] havenwood: adam12: Now I want to use minitest-bisect... https://github.com/seattlerb/minitest-bisect
[19:56:53] adam12: havenwood: I've been using minitest-focus quite a bit lately, but not having a CLI for minitest has been kinda meh. Waiting patiently for MT6 but minitest-sprint kinda gets me half-way.
[19:57:13] havenwood: ooh, I don't know minitest-focus
[19:58:15] amateur_rubyist: has joined #ruby
[19:58:17] greengriminal: has joined #ruby
[19:58:27] yann-kaelig: has joined #ruby
[20:00:22] havenwood: https://github.com/seattlerb?utf8=%E2%9C%93&q=minitest-&type=&language=
[20:01:21] havenwood: adam12: this is my usual lineup: https://github.com/square/square-ruby-sdk/blob/master/test/api/api_test_base.rb#L7-L10
[20:01:31] havenwood: autorun, hell, pride and proveit
[20:01:52] havenwood: parallelize_me! ftw
[20:02:59] MrCrackPot: has joined #ruby
[20:07:40] yann-kaelig: has joined #ruby
[20:08:26] Hanma[m]: has joined #ruby
[20:12:44] SeepingN: has joined #ruby
[20:18:01] leitz: has joined #ruby
[20:21:34] Ven``: has joined #ruby
[20:23:04] klaas: has joined #ruby
[20:34:04] NoCTurNal_PuLSe: has joined #ruby
[20:35:35] montanonic: has joined #ruby
[20:45:20] al2o3-cr: this seems interesting https://github.com/jellymann/mittsu
[21:04:03] fphilipe: has joined #ruby
[21:05:46] poontangmessiah: has joined #ruby
[21:14:59] reber: has joined #ruby
[21:15:53] amateur_rubyist: has joined #ruby
[21:20:25] ur5us: has joined #ruby
[21:34:28] Exuma: has joined #ruby
[21:35:53] lord4163: has joined #ruby
[21:45:14] greengriminal: has joined #ruby
[21:52:11] yasumi2136: has joined #ruby
[22:03:21] SeepingN: has joined #ruby
[22:23:10] tpanarch1st: has joined #ruby
[22:29:08] chalkmonster: has joined #ruby
[22:31:24] _whitelogger: has joined #ruby
[22:31:26] _whitelogger_: has joined #ruby
[22:31:27] _whitelogger__: has joined #ruby
[22:31:31] _whitelogger___: has joined #ruby
[22:35:42] bambanx: has joined #ruby
[22:36:51] _whitelogger: has joined #ruby
[22:40:50] ZAJDAN: has joined #ruby
[22:44:21] davor: has joined #ruby
[22:47:40] grilix: has joined #ruby
[22:55:13] brool: has joined #ruby
[23:01:08] wildtrees_: has joined #ruby
[23:04:07] wildtrees_: has joined #ruby
[23:04:25] fphilipe: has joined #ruby
[23:19:11] oetjenj: has joined #ruby
[23:20:55] rafadc: has joined #ruby
[23:34:38] xco: has joined #ruby
[23:36:49] _whitelogger: has joined #ruby
[23:41:27] donofrio: has joined #ruby
[23:43:26] openstruct: has joined #ruby
[23:55:57] openstruct: I was reading through the code in the hijacked rest-client code and was curious if someone could explain why the attacker would go through the trouble of using a signed key? https://github.com/rest-client/rest-client/issues/713