« Back to channel list

#ruby - 15 September 2017

« Back 1 day Forward 1 day »
[00:03:07] SteenJobs_: has joined #ruby
[00:04:30] havenwood: quuxman: You're not expecting the values, you're expecting the whole hash, right?
[00:05:43] havenwood: If you're passing the method the whole Hash: with(EXAMPLE_DICT)
[00:06:36] havenwood: quuxman: Show a bit more code or further explain why you're expecting multiple arguments for each value in the Hash, like the test you pasted shows?
[00:08:18] bruce_lee: has joined #ruby
[00:08:19] bruce_lee: has joined #ruby
[00:19:28] safe: has joined #ruby
[00:20:31] ascarter: has joined #ruby
[00:21:50] A124: has joined #ruby
[00:21:57] twillkens: has joined #ruby
[00:22:43] brent__: has joined #ruby
[00:28:46] Alina-malina: has joined #ruby
[00:30:09] mkroman: has joined #ruby
[00:33:25] coderphive: has joined #ruby
[00:33:32] mkroman: can anyone recommend a still maintained RPC library for Ruby?
[00:35:17] twillkens: has joined #ruby
[00:35:33] kn-928: has joined #ruby
[00:42:14] ascarter: has joined #ruby
[00:42:46] kn-928: has joined #ruby
[00:44:13] havenwood: mkroman: https://grpc.io/docs/quickstart/ruby.html
[00:44:14] kculpis: has joined #ruby
[00:45:31] mkroman: havenwood: that's the format google uses to describe its APIs, right?
[00:46:20] havenwood: mkroman: yeah, it's Google
[00:46:48] mkroman: it's not exactly lightweight, but I'll check it out. Thanks.
[00:47:22] nobitanobi: has joined #ruby
[00:47:42] havenwood: mkroman: Whatcha making?
[00:48:16] bronson: has joined #ruby
[00:49:59] twillkens: has joined #ruby
[00:50:50] mkroman: I'm running a server that manages data across JBODs from an application, right now I'm using redis to do most of the work, but it's not easy to verify that it's doing what it's supposed to
[00:51:29] mkroman: another solution would be a HTTP API, but I think I'll try with RPC instead
[00:53:15] havenwood: mkroman: I do love Roda for HTTP APIs.
[00:54:20] ascarter: has joined #ruby
[00:54:31] havenwood: mkroman: There's a very nice HTTP-2 gem ftiw: https://github.com/igrigorik/http-2#readme
[00:54:45] __Yiota: has joined #ruby
[00:55:17] mkroman: Roda looks easy, might try that for another project
[00:55:51] mkroman: on the HTTP2 note, does the Rack model work well for HTTP2?
[00:56:07] Slinky_Pete: has joined #ruby
[00:58:29] ahrs: has joined #ruby
[00:58:31] havenwood: mkroman: you can always proxy H2 in front of Rack for multiplexing and push, but Rack is oriented around request/response
[00:59:04] astrobunny: has joined #ruby
[00:59:05] havenwood: mkroman: https://github.com/tenderlove/the_metal/issues/5
[00:59:25] astrobunny: has joined #ruby
[00:59:36] mkroman: yeah, that's what I figured
[00:59:55] mkroman: was wondering what Sinatra and Rails might do to fix that
[01:00:09] havenwood: nothing anytime soon
[01:00:39] havenwood: HTTP2 from CDN proxy for multiplexing is already very nice.
[01:03:48] silverdust: has joined #ruby
[01:04:10] silverdust: Is there a way to run ruby inline like `ruby -i "puts 'hello'"` ?
[01:04:16] havenwood: silverdust: ruby -e
[01:04:24] silverdust: Great! Thanks
[01:05:05] ascarter: has joined #ruby
[01:05:56] havenwood: silverdust: In case you're not aware, Ruby also ships with a REPL called irb and there's a popular gem alternative called pry.
[01:06:10] ruby[bot]: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
[01:06:57] havenwood: The irb command ships with Ruby so just: irb
[01:13:47] wbnns: has left #ruby: ()
[01:15:36] griffindy: has joined #ruby
[01:16:16] ascarter: has joined #ruby
[01:16:31] juggler: has joined #ruby
[01:18:07] silverdust: Oh I'm aware of all that havenwood . Thanks
[01:18:28] pilne: has joined #ruby
[01:18:31] silverdust: I just needed the inline version
[01:19:23] gizmore|2: has joined #ruby
[01:23:16] marcux: has joined #ruby
[01:27:07] Silthias1: has joined #ruby
[01:27:08] ascarter: has joined #ruby
[01:28:44] nofxxx: has joined #ruby
[01:29:29] brent__: has joined #ruby
[01:29:35] jokester: has joined #ruby
[01:34:57] swankier: has joined #ruby
[01:36:47] cschneid_: has joined #ruby
[01:36:56] blackpajamas: has joined #ruby
[01:37:00] swankier: Hi! Iā€™m writing some ruby code for metasploit. In the module I have a loop that tries to be resistent to timeouts. The end result, though, is that the next iteration of the loop exits prematurely. https://pastebin.com/UiNm9XMn
[01:37:02] ruby[bot]: swankier: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/54503056a7238b97e9b4ec5728fec476
[01:37:02] ruby[bot]: swankier: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[01:37:08] swankier: any advice?
[01:37:48] ascarter: has joined #ruby
[01:38:18] ozcanesen: has joined #ruby
[01:39:25] shakes: has joined #ruby
[01:40:02] elbuki: has joined #ruby
[01:41:14] d^sh: has joined #ruby
[01:41:43] mim1k: has joined #ruby
[01:45:20] elbuki_: has joined #ruby
[01:45:24] swankier: has joined #ruby
[01:45:54] elbuki_: has left #ruby: ()
[01:46:15] elbuki_: has joined #ruby
[01:47:11] jackjackdripper: has joined #ruby
[01:47:20] catbrownie: how would you test a web scraper?
[01:47:51] brent__: has joined #ruby
[01:48:59] ascarter: has joined #ruby
[01:50:24] marcux: has joined #ruby
[01:51:21] Slinky_Pete: has joined #ruby
[01:54:44] guardianx: has joined #ruby
[01:56:34] jinie: has joined #ruby
[01:56:59] michael4: has joined #ruby
[01:59:45] ascarter: has joined #ruby
[02:05:34] Jameser: has joined #ruby
[02:08:27] agent_white: has joined #ruby
[02:10:26] ascarter: has joined #ruby
[02:10:45] arescorpio: has joined #ruby
[02:12:04] enterprisey: has joined #ruby
[02:13:40] Bhootrk_: has joined #ruby
[02:15:16] uneeb: has joined #ruby
[02:17:23] r3QuiEm_cL: has joined #ruby
[02:17:57] Slinky_Pete: has joined #ruby
[02:18:27] Slinky_Pete: has joined #ruby
[02:20:26] orbyt_: has joined #ruby
[02:21:41] ascarter: has joined #ruby
[02:24:55] catbrownie: has joined #ruby
[02:26:04] jenrzzz: has joined #ruby
[02:26:04] jenrzzz: has joined #ruby
[02:26:31] TheMoonMaster: has joined #ruby
[02:28:55] brent__: has joined #ruby
[02:30:09] r3QuiEm_cL: has joined #ruby
[02:32:23] ascarter: has joined #ruby
[02:33:30] Puffball: has joined #ruby
[02:35:44] catbrownie: has joined #ruby
[02:43:05] ascarter: has joined #ruby
[02:46:08] zacts: has joined #ruby
[02:47:16] dviola: has joined #ruby
[02:49:11] bronson: has joined #ruby
[02:54:15] ascarter: has joined #ruby
[03:00:09] cadillac_: has joined #ruby
[03:03:32] govg: has joined #ruby
[03:05:03] ascarter: has joined #ruby
[03:05:44] uneeb: has joined #ruby
[03:11:58] frozengeek_: has joined #ruby
[03:14:06] herbmillerjr: has joined #ruby
[03:15:47] ascarter: has joined #ruby
[03:16:43] veex: has joined #ruby
[03:18:45] veex: has joined #ruby
[03:19:05] silverdust: Is there a place to see libraries I can require without installing a gem
[03:19:27] silverdust: Like libraries that ship with ruby
[03:20:00] cahoots_: has joined #ruby
[03:20:17] jenrzzz: has joined #ruby
[03:20:18] cahoots_: hi, i want to do a scan but also get all of the line numbers. is there an easy way to do this?
[03:20:26] cahoots_: line numbers for each result
[03:23:05] nobitanobi: has joined #ruby
[03:25:38] phate408: has joined #ruby
[03:26:59] ascarter: has joined #ruby
[03:27:40] ozcanesen: has joined #ruby
[03:29:30] dviola: has joined #ruby
[03:31:15] gix: has joined #ruby
[03:32:38] baroquebobcat: has joined #ruby
[03:33:10] __Yiota: has joined #ruby
[03:34:54] harai_: has joined #ruby
[03:36:48] _aeris_: has joined #ruby
[03:37:52] ascarter: has joined #ruby
[03:39:41] kapil___: has joined #ruby
[03:42:05] mim1k: has joined #ruby
[03:43:42] spt0: has joined #ruby
[03:43:46] DanielI: has joined #ruby
[03:46:10] veex: silerdust: you can get list of load path with $:
[03:47:12] DanielI: has joined #ruby
[03:47:57] veex: silverdust: you can get list of load path with $:
[03:48:14] _aeris_: has joined #ruby
[03:49:09] veex: silverdust: ruby -e 'puts $:'
[03:51:37] nertzy: has joined #ruby
[03:51:56] sarbs: has joined #ruby
[03:54:29] Alina-malina: has joined #ruby
[03:55:34] ruby[bot]: -bb $a:tehgoldsnitch$#ruby-banned tehgoldsnitch!*@*$#ruby-banned
[03:59:48] r3QuiEm_cL: has joined #ruby
[04:00:16] Trynemjoel: has joined #ruby
[04:02:29] CrazyEddy: has joined #ruby
[04:03:58] benlieb: has joined #ruby
[04:06:28] nobitanobi: has joined #ruby
[04:07:42] bl4ckpajamas: has joined #ruby
[04:11:14] enterprisey: has joined #ruby
[04:15:20] guns: has joined #ruby
[04:17:27] uZiel: has joined #ruby
[04:18:42] nofxxx: has joined #ruby
[04:20:11] baroquebobcat: has joined #ruby
[04:20:15] mkali: has joined #ruby
[04:20:58] nobitanobi: has joined #ruby
[04:25:02] Silthias: has joined #ruby
[04:26:56] guns: I may be misremembering, but is there syntactic sugar for guarding against dispatching methods on nil values? Like x.?foo
[04:30:02] havenwood: guns: x?.foo
[04:30:44] benlieb: has joined #ruby
[04:30:54] guns: havenwood: oh! thank you
[04:32:27] guns: havenwood: that doesn't seem to work. Maybe I'm misunderstanding?
[04:32:58] havenwood: guns: oh, sorry - mental lapse on my part: x&.foo
[04:33:08] havenwood: >> nil&.foo
[04:33:09] ruby[bot]: havenwood: # => nil (https://eval.in/862238)
[04:33:25] guns: havenwood: ahhh, okay that's right
[04:35:58] guns: has left #ruby: ()
[04:36:50] milardovich: has joined #ruby
[04:40:32] mim1k: has joined #ruby
[04:41:00] MrSparkle: has joined #ruby
[04:44:59] jamesaxl: has joined #ruby
[04:51:01] bronson: has joined #ruby
[04:51:56] Ishido: has joined #ruby
[04:52:26] Slinky_Pete: has joined #ruby
[04:57:36] jenrzzz: has joined #ruby
[04:58:47] tcopeland: has joined #ruby
[05:02:25] BTRE: has joined #ruby
[05:08:12] astrobunny: has joined #ruby
[05:21:07] Bock: has joined #ruby
[05:26:15] Dimik: has joined #ruby
[05:33:30] sagax: has joined #ruby
[05:33:52] mkali: has joined #ruby
[05:35:41] anisha: has joined #ruby
[05:40:50] DrCode: has joined #ruby
[05:40:59] kn-928: has joined #ruby
[05:42:41] nofxx: has joined #ruby
[05:44:19] anisha_: has joined #ruby
[05:44:25] alex``: has joined #ruby
[05:46:35] Slinky_Pete: has joined #ruby
[05:50:35] rabajaj: has joined #ruby
[05:57:12] anas: has joined #ruby
[05:59:40] mkali: has joined #ruby
[05:59:43] sekmo: has joined #ruby
[05:59:46] milardovich: has joined #ruby
[06:03:02] DK2: has joined #ruby
[06:04:24] anas: has joined #ruby
[06:07:00] ndrst: has joined #ruby
[06:14:42] ams__: has joined #ruby
[06:20:57] harfangk: has joined #ruby
[06:27:12] dionysus69: has joined #ruby
[06:35:42] conta: has joined #ruby
[06:38:15] gusrub: has joined #ruby
[06:38:32] MrBismuth: has joined #ruby
[06:45:27] nobitanobi: has joined #ruby
[06:46:44] mark_66: has joined #ruby
[06:51:51] bronson: has joined #ruby
[06:57:37] DrCode: has joined #ruby
[07:03:20] cabotto: has joined #ruby
[07:06:11] r7c: has joined #ruby
[07:06:25] cadillac_: has joined #ruby
[07:07:10] high_fiver: has joined #ruby
[07:09:27] _joes_: has joined #ruby
[07:09:52] Jameser`: has joined #ruby
[07:10:27] _joes_: has joined #ruby
[07:11:15] _joes_: has joined #ruby
[07:12:03] _joes_: has joined #ruby
[07:12:29] TomyWork: has joined #ruby
[07:12:53] _joes_: has joined #ruby
[07:13:42] _joes_: has joined #ruby
[07:13:45] tAn: has joined #ruby
[07:14:45] kn-928: has joined #ruby
[07:16:08] guille-moe: has joined #ruby
[07:18:47] selim: has joined #ruby
[07:19:30] DrCode: has joined #ruby
[07:20:49] cahoots_: has joined #ruby
[07:24:19] frozengeek_: has joined #ruby
[07:24:24] astrobunny: has joined #ruby
[07:26:46] tvw: has joined #ruby
[07:30:26] DrCode: has joined #ruby
[07:34:49] quobo: has joined #ruby
[07:35:31] kies: has joined #ruby
[07:38:45] yeticry_: has joined #ruby
[07:43:03] devil_tux: has joined #ruby
[07:43:52] Bhootrk_: has joined #ruby
[07:45:14] phaul: has joined #ruby
[07:47:44] milardovich: has joined #ruby
[07:52:16] depesz: has left #ruby: ("WeeChat 1.9")
[07:54:01] sleetdrop: has joined #ruby
[07:55:41] kies: has joined #ruby
[07:57:50] harai_: has joined #ruby
[08:00:28] ShalokShalom: has joined #ruby
[08:02:26] Jameser: has joined #ruby
[08:03:10] mostlybadfly: has joined #ruby
[08:12:06] justthisguy: has joined #ruby
[08:12:23] mim1k: has joined #ruby
[08:12:52] Silthias: has joined #ruby
[08:14:05] fivmo: has joined #ruby
[08:14:10] biberu: has joined #ruby
[08:15:39] cdg: has joined #ruby
[08:16:16] Silthias1: has joined #ruby
[08:16:27] nofxx: has joined #ruby
[08:17:03] cdg_: has joined #ruby
[08:20:09] maum: has joined #ruby
[08:20:20] frozengeek_: has joined #ruby
[08:22:02] alex``: has joined #ruby
[08:24:00] cdg: has joined #ruby
[08:25:49] enterprisey: has joined #ruby
[08:28:06] burgestrand: has joined #ruby
[08:28:12] frozengeek: has joined #ruby
[08:28:50] nobitanobi: has joined #ruby
[08:29:04] Slinky_Pete: has joined #ruby
[08:30:02] mim1k: has joined #ruby
[08:32:53] cdg: has joined #ruby
[08:33:55] kn-928: has joined #ruby
[08:34:48] jenrzzz: has joined #ruby
[08:34:48] jenrzzz: has joined #ruby
[08:35:00] jgjorgji: has left #ruby: ("WeeChat 1.9")
[08:35:14] lxsameer: has joined #ruby
[08:36:47] nobitanobi: has joined #ruby
[08:37:23] marr: has joined #ruby
[08:38:54] tvw: has joined #ruby
[08:42:27] roadt: has joined #ruby
[08:43:56] roadt: has joined #ruby
[08:44:52] fivmo: has joined #ruby
[08:46:04] cabotto: has joined #ruby
[08:47:37] cdg: has joined #ruby
[08:48:20] mjolnird: has joined #ruby
[08:48:26] elsevero: has joined #ruby
[08:52:44] bronson: has joined #ruby
[08:57:32] sekmo: has joined #ruby
[08:59:28] CrazyEddy: has joined #ruby
[08:59:35] Beams: has joined #ruby
[09:00:16] jaruga: has joined #ruby
[09:04:06] cdg: has joined #ruby
[09:04:41] abrcdbr: has joined #ruby
[09:06:36] Slinky_Pete: has joined #ruby
[09:09:47] devil_tux: has joined #ruby
[09:14:20] frozengeek: has joined #ruby
[09:17:02] cdg: has joined #ruby
[09:21:37] Ishido: has joined #ruby
[09:23:07] Slinky_Pete: has joined #ruby
[09:23:56] cdg: has joined #ruby
[09:30:07] cdg: has joined #ruby
[09:34:42] cdg_: has joined #ruby
[09:35:59] cdg: has joined #ruby
[09:36:00] milardovich: has joined #ruby
[09:37:24] figuresofstick: has joined #ruby
[09:42:31] ledestin: has joined #ruby
[09:46:03] brent__: has joined #ruby
[09:47:58] nemesit|znc: has joined #ruby
[09:52:47] Serpent7776: has joined #ruby
[10:01:13] cabotto: has joined #ruby
[10:01:58] dminuoso: havenwood: You mean applying MaybeT right?
[10:02:29] yokel: has joined #ruby
[10:02:50] Slinky_Pete: has joined #ruby
[10:05:59] cdg: has joined #ruby
[10:09:05] roonsauce: has joined #ruby
[10:09:17] bruno-: has joined #ruby
[10:12:22] mim1k: has joined #ruby
[10:17:54] dionysus69: has joined #ruby
[10:28:29] harfangk: has joined #ruby
[10:29:17] belmoussaoui: has joined #ruby
[10:29:28] frozengeek: has joined #ruby
[10:33:08] belmoussaoui: has joined #ruby
[10:36:12] anisha_: has joined #ruby
[10:36:44] jenrzzz: has joined #ruby
[10:36:44] jenrzzz: has joined #ruby
[10:44:33] ShalokShalom: has joined #ruby
[10:44:47] mim1k: has joined #ruby
[10:45:43] mkali: has joined #ruby
[10:50:05] mim1k_: has joined #ruby
[10:54:09] bronson: has joined #ruby
[10:54:23] rawste: has joined #ruby
[10:55:12] charliesome: has joined #ruby
[10:57:00] Slinky_Pete: has joined #ruby
[10:57:18] govg: has joined #ruby
[10:57:57] millerti: has joined #ruby
[10:59:21] DrCode: has joined #ruby
[11:02:56] bhator3: has joined #ruby
[11:03:13] bhator3: Please fill this survey for my research project. It will only take 2 minutes.
[11:03:46] bhator3: https://goo.gl/forms/fLhIglFWTC1O89642
[11:04:32] bhator3: has left #ruby: ()
[11:11:16] al2o3-cr: has joined #ruby
[11:21:37] dionysus69: has joined #ruby
[11:21:42] hsiktas: has joined #ruby
[11:21:49] justache: has joined #ruby
[11:21:52] t-recx: has joined #ruby
[11:23:31] charliesome: has joined #ruby
[11:24:14] milardovich: has joined #ruby
[11:34:16] belmoussaoui_: has joined #ruby
[11:34:16] roshanavand: has joined #ruby
[11:34:50] tcopeland: has joined #ruby
[11:36:02] dionysus69: has joined #ruby
[11:37:57] kn-928: has joined #ruby
[11:38:08] belmoussaoui: has joined #ruby
[11:42:13] devil_tux: has joined #ruby
[11:43:47] ldnunes: has joined #ruby
[11:51:07] Slinky_Pete: has joined #ruby
[11:51:21] Siyfion: has joined #ruby
[11:51:48] ShalokShalom_: has joined #ruby
[12:03:57] nobitanobi: has joined #ruby
[12:08:04] roshanavand: has joined #ruby
[12:09:13] marcux: has joined #ruby
[12:09:50] snickers: has joined #ruby
[12:10:32] __Yiota: has joined #ruby
[12:12:12] mson: has joined #ruby
[12:13:14] synthroid: has joined #ruby
[12:14:16] smp_dup: has joined #ruby
[12:14:22] sajinmp: has joined #ruby
[12:17:36] sajinmp: Hi, Is there a way to reverse symbolization of json hash? I was trying to pass it to an api, but it doesn't accept symbolized hash, ruby hash or json string
[12:19:15] dminuoso: "reverse symbolization" ?
[12:19:32] michael_mbp: sounds like JSON.parse?
[12:20:39] michael_mbp: sajinmp: are you using Hash#to_json doesn't work?
[12:20:57] sajinmp: michael_mbp, Doesn't happen. JSON.parse converts it to ruby hash which the third-party api doesn't accept
[12:22:10] bmurt: has joined #ruby
[12:22:19] InfinityFye: has joined #ruby
[12:22:21] dminuoso: sajinmp: What is your input and your desired output?
[12:22:59] sajinmp: michael_mbp, dminuoso : Let me first write a fiddle. I will give the info there
[12:23:00] michael_mbp: sounds like a 3rd party API issue. You should be able to send Hash#to_json to that API without any issues.
[12:25:21] jinie: has joined #ruby
[12:26:28] Jameser: has joined #ruby
[12:27:29] sajinmp: michael_mbp, dminuoso : http://rubyfiddle.com/riddles/95a8d
[12:27:59] sajinmp: I also thought that its the api issue, but when I tried the same thing in postman, it worked
[12:28:27] dminuoso: sajinmp: And what does the API expect?
[12:28:38] sajinmp: It expects a json hash
[12:28:56] dminuoso: What is a "json hash" ?
[12:29:01] sajinmp: Thats why I speculated that the reason might be because what ruby sends is a ruby hash and not json hash
[12:29:03] dminuoso: And what shape does it expect?
[12:29:12] michael_mbp: sajinmp: LOL no
[12:29:14] sajinmp: { "user": 1, "name": "superman"} - this
[12:29:19] dminuoso: JSON.parse("{\"user\":1,\"name\":\"superman\"}")
[12:29:22] dminuoso: {user: 1, name: "superman"}
[12:29:26] michael_mbp: Ruby/Rails sends JSON.
[12:29:54] sajinmp: JSON.parse("{\"user\":1,\"name\":\"superman\"}") - {"user"=>1, "name"=>"superman"}
[12:30:07] dminuoso: Yup, same thing.
[12:30:11] dminuoso: sajinmp: Mine was in JavaScript
[12:30:16] michael_mbp: sajinmp: there's nothing wrong with that
[12:30:21] dminuoso: sajinmp: So as you can see, it parses properly.
[12:30:30] michael_mbp: You're using Ruby, so it parses to Ruby.
[12:31:02] dminuoso: sajinmp: If we ignore the escaping characters, this is what it looks in the raw json form:
[12:31:07] dminuoso: { "user": 1, "name": "superman"}
[12:31:23] dminuoso: >> puts { user: 1, name: "superman" }.to_json
[12:31:24] ruby[bot]: dminuoso: # => /tmp/execpad-eb94b0143683/source-eb94b0143683:2: syntax error, unexpected ':', expecting '}' ...check link for more (https://eval.in/862548)
[12:31:31] dminuoso: >> puts({ user: 1, name: "superman" }.to_json)
[12:31:32] ruby[bot]: dminuoso: # => undefined method `to_json' for {:user=>1, :name=>"superman"}:Hash ...check link for more (https://eval.in/862549)
[12:31:37] dminuoso: >> require 'json'; puts({ user: 1, name: "superman" }.to_json)
[12:31:38] ruby[bot]: dminuoso: # => {"user":1,"name":"superman"} ...check link for more (https://eval.in/862550)
[12:31:42] dminuoso: sajinmp: ^-
[12:31:44] sajinmp: dminuoso: I understand that, but its not working
[12:31:59] dminuoso: sajinmp: Then you are passing invalid data, the shape is wrong or something else.
[12:32:01] sajinmp: This is the first time, I am finding this issue
[12:32:02] dminuoso: We cant help you.
[12:32:15] sajinmp: ok. Thank you for your help
[12:32:19] Jameser: has joined #ruby
[12:32:31] sajinmp: I'll find some way
[12:32:39] sajinmp: Thanks dminuoso, michael_mbp
[12:33:09] michael_mbp: work backwards from Postman
[12:33:25] michael_mbp: at least you have that as a base line.
[12:33:41] sajinmp: Yes. Thank again
[12:33:54] michael_mbp: how are you 'sending' it in Ruby?
[12:34:22] faces: has joined #ruby
[12:35:48] Jameser`: has joined #ruby
[12:37:22] bmurt: has joined #ruby
[12:38:29] jenrzzz: has joined #ruby
[12:38:29] jenrzzz: has joined #ruby
[12:40:12] sija: has joined #ruby
[12:41:17] devil_tux: has joined #ruby
[12:42:26] MarkBilk: has joined #ruby
[12:45:15] Slinky_Pete: has joined #ruby
[12:47:05] bmurt: has joined #ruby
[12:50:04] milardovich: has joined #ruby
[12:52:42] cabotto: has joined #ruby
[12:52:57] iMadper: has joined #ruby
[12:52:58] __Yiota: has joined #ruby
[12:53:54] apparition: has joined #ruby
[12:55:08] bronson: has joined #ruby
[12:57:57] InfinityFye: has joined #ruby
[12:58:35] dviola: has joined #ruby
[13:00:48] bovis: has joined #ruby
[13:01:58] cdg: has joined #ruby
[13:03:41] spt0: has joined #ruby
[13:06:28] mim1k: has joined #ruby
[13:07:51] sajinmp: I am using httparty to post it. I generated the code from postman and tried, still the same issue. I have asked the third party if the could check the log and find what the issue is. This is a payment gateway api
[13:09:59] oleo: has joined #ruby
[13:12:34] FrostCandy: has joined #ruby
[13:17:50] AlexRussia: has joined #ruby
[13:20:58] rippa: has joined #ruby
[13:23:58] GodFather: has joined #ruby
[13:24:09] kn-928: has joined #ruby
[13:25:03] nobitanobi: has joined #ruby
[13:25:05] chouhoulis: has joined #ruby
[13:25:27] GodFather_: has joined #ruby
[13:27:50] DLSteve: has joined #ruby
[13:28:29] ldnunes: has joined #ruby
[13:29:19] GodFather: has joined #ruby
[13:29:48] oleo: has joined #ruby
[13:30:52] Slinky_Pete: has joined #ruby
[13:33:32] devil_tux: has joined #ruby
[13:33:36] bruno-_: has joined #ruby
[13:34:17] phaul: has joined #ruby
[13:34:47] duckpuppy: has joined #ruby
[13:35:43] VladGh: has joined #ruby
[13:36:26] t-recx: has joined #ruby
[13:37:12] guille-moe: has joined #ruby
[13:39:25] jrm: has joined #ruby
[13:41:47] rawste: has joined #ruby
[13:46:29] brent__: has joined #ruby
[13:51:59] LastWhisper____: has joined #ruby
[13:54:27] chouhoulis: has joined #ruby
[13:59:11] chouhoulis: has joined #ruby
[13:59:46] jackjackdripper: has joined #ruby
[14:03:06] kn-928: has joined #ruby
[14:03:52] GrimGrim: has joined #ruby
[14:04:46] ResidentBiscuit: has joined #ruby
[14:07:07] ur5us: has joined #ruby
[14:10:19] Rapture: has joined #ruby
[14:12:03] chouhoul_: has joined #ruby
[14:14:00] eputnam: has joined #ruby
[14:15:57] millerti: has joined #ruby
[14:16:17] frozengeek: has joined #ruby
[14:23:32] mark_66: has joined #ruby
[14:25:01] Slinky_Pete: has joined #ruby
[14:29:25] phinxy: has joined #ruby
[14:30:12] bmurt: has joined #ruby
[14:31:04] tvw: has joined #ruby
[14:33:59] arup_r: has joined #ruby
[14:34:39] phinxy: has left #ruby: ("Leaving")
[14:35:11] arup_r: I want to review one of my regex code as I am noob in Regex. s = 'https://www.google.co.in/search?q=123'; s[/\?q=(\d+)/, 1] # 123 which is what I want. Does my regex matcher is correct has no bug?
[14:36:49] darix: has joined #ruby
[14:40:12] dionysus69: has joined #ruby
[14:40:22] jenrzzz: has joined #ruby
[14:43:29] __Yiota: has joined #ruby
[14:43:53] phaul: arup_r: are you aware of rubular.com?
[14:44:15] arup_r: phaul: yes tested there http://rubular.com/r/6Uf8Fa72b2
[14:45:08] phaul: ok, just checking :)
[14:46:29] montyboy: has joined #ruby
[14:46:55] bruno-: has joined #ruby
[14:47:07] bruno-_: has joined #ruby
[14:50:35] marcux: has joined #ruby
[14:52:06] millerti: has joined #ruby
[14:55:09] cschneid: has joined #ruby
[14:56:07] bronson: has joined #ruby
[14:56:55] dextrey: has joined #ruby
[14:58:09] oleo: has joined #ruby
[14:59:52] nobitanobi: has joined #ruby
[15:03:28] baroquebobcat: has joined #ruby
[15:03:50] bmurt: has joined #ruby
[15:04:17] sepp2k: has joined #ruby
[15:07:10] baroquebobcat_: has joined #ruby
[15:08:42] vivus: has joined #ruby
[15:08:44] vivus: Hello all
[15:09:02] vivus: I was told yesterday that in order to build this project: https://github.com/veganstraightedge/h-card-as-a-service
[15:09:11] vivus: I need to run: bundle exec puma -C config/puma.rb
[15:09:15] vivus: but this command fails
[15:09:24] vivus: bundler: command not found: puma
[15:12:48] bmurt: has joined #ruby
[15:14:11] millerti: has joined #ruby
[15:15:20] kculpis: has joined #ruby
[15:16:14] adaedra: Did you `bundle install`?
[15:16:16] roonsauce: has joined #ruby
[15:24:40] TomyLobo: has joined #ruby
[15:26:56] jackjackdripper: has joined #ruby
[15:32:18] RedNifre: has joined #ruby
[15:35:07] polishdub: has joined #ruby
[15:38:07] ashZ_: has joined #ruby
[15:39:53] [Butch]: has joined #ruby
[15:40:04] brent__: has joined #ruby
[15:40:12] cahoots_: has joined #ruby
[15:40:52] vivus: adaedra: I first need to run bundle install?
[15:41:19] adaedra: Yes, you need to install dependencies
[15:41:43] PaulCapestany: has joined #ruby
[15:42:03] vivus: oh I understand now. bundle is the package manager
[15:44:19] Slinky_Pete: has joined #ruby
[15:44:35] jamesaxl: has joined #ruby
[15:44:52] bmurt: has joined #ruby
[15:44:54] millerti: has joined #ruby
[15:46:10] dionysus69: has joined #ruby
[15:48:23] RedNifre: JSON.parse returns arrays and hashes which I can access like["this"]. Is it also possible to parse it to arrays and structs so I can access it like.this ? The keys in the json already look like_this.
[15:51:19] im0nde: has joined #ruby
[15:52:25] Serpent: has joined #ruby
[15:54:05] drale2k_: has joined #ruby
[15:54:16] scootaloo: has joined #ruby
[15:54:23] t-recx_: has joined #ruby
[15:55:23] bmurt: has joined #ruby
[15:55:28] kn-928: has joined #ruby
[15:55:30] MrBusiness3: has joined #ruby
[15:55:34] ghormoon_: has joined #ruby
[15:55:36] mkaito_: has joined #ruby
[15:55:39] mkaito: has joined #ruby
[15:56:07] swills: has joined #ruby
[15:56:07] swills: has joined #ruby
[15:56:14] ule: I asked there on RubyOnRails, so I'm gonna ask here as well just in case someone can help. I have an ActiveRecord result object. How can I simple pick one element having it's id? Something like: users[1234]. Currently, I'm doing a users.select { |u| u.id == 1234 }.first It works but it's very slow... do you guys know whats the fastest way to do this?
[15:56:33] daveomcd: has joined #ruby
[15:56:34] adam12: Why not just select it the first time
[15:56:37] adam12: User.find(1234)
[15:56:48] bogdanteleaga: has joined #ruby
[15:56:59] SirFunk: has joined #ruby
[15:57:38] ule: long story.. but basically Im working on an optimiation... if I do what you're suggesting I need to make 6k calls to pick some info for each user.. the way I'm doing here, Im grabbing groups "chunks" of users and then filtering via ruby..
[15:57:52] ule: It's complicated because I'm dealing with different data sources.. I can't just do what you suggested
[15:57:53] gf3: has joined #ruby
[15:57:59] adam12: Well, instead of using `select`, maybe you can use `find` or `detect` which returns first element that matches
[15:58:09] adam12: instead of iterating over the entire group just to return the first one found.
[15:58:34] adam12: users.find { |u| u.id == 1234 }
[15:58:36] ule: adam12: because that .find will trigger another call do my db, and I'm truing to avoid that since I already have the result object in memory. I just need to pick based on the id
[15:58:50] adam12: Then convert it to an array first
[15:58:55] Papierkorb: isn't there a `#to_a`?
[15:59:00] adam12: users.to_a.find { |u| u.id == 1234 }
[15:59:20] ule: adam12: what might work.. let me try here
[15:59:42] ule: so since its an array I can't I just do users[1234] then ?
[16:00:12] bokayio: has joined #ruby
[16:01:08] adam12: ule: That would return the user at array position 1234, and not with the id of 1234, so no
[16:01:22] Papierkorb: ule, if it's such a common use, convert it to an hash first for quick&easy lookup
[16:01:39] adam12: That would work aswell.
[16:01:42] ule: I'd love to see the index with the same user id, then it would perform super fast BigO(1)
[16:01:54] Papierkorb: users.map{|u| [u.id, u]}.to_h and done
[16:02:07] ule: Papierkorb: then how can I find having a hash?
[16:02:19] Papierkorb: Like you do with a hash?
[16:02:19] ule: ohh I see..
[16:02:48] ule: cool, let me try here
[16:02:55] __Yiota: has joined #ruby
[16:03:18] Papierkorb: And if you need to iterate over the whole thing still, either store the array too, or #each_value over it.
[16:04:04] bmurt: has joined #ruby
[16:06:57] ule: Boom worked like a charm
[16:07:07] ule: amosbird: Papierkorb thanks guys
[16:07:20] ule: ops adam12
[16:09:15] AlexRussia_: has joined #ruby
[16:10:50] charliesome: has joined #ruby
[16:13:57] roonsauce: has joined #ruby
[16:14:31] duckpuppy: has joined #ruby
[16:15:29] uZiel: has joined #ruby
[16:15:39] redondos: has joined #ruby
[16:15:39] redondos: has joined #ruby
[16:15:57] ule: its flying now.. from 15seconds to 300ms
[16:15:58] vivus: in the following Gemfile: https://github.com/veganstraightedge/h-card-as-a-service/blob/master/Gemfile . is it okay to disable uglifier ?
[16:16:21] vivus: if yes, how?
[16:20:55] baroquebobcat: has joined #ruby
[16:20:59] marcux: has joined #ruby
[16:21:22] roonsauce: has joined #ruby
[16:21:42] synthroid: has joined #ruby
[16:22:09] TchanZ: has joined #ruby
[16:26:40] guardian: has joined #ruby
[16:27:19] havenwood: vivus: Remove the line in the Gemfile and: bundle
[16:27:35] havenwood: vivus: Or better yet, just install Node.js.
[16:27:41] havenwood: And leave it.
[16:27:57] vivus: things are getting so bloated though. this is just for a local install.
[16:28:22] havenwood: vivus: PS - You don't need rails_12factor in your production group for Rails 5, it ships 12factor support.
[16:28:57] vivus: havenwood: can you clarify what I need to remove from the gemfile? just this line: gem 'uglifier', '>= 1.3.0' ?
[16:28:57] jenrzzz: has joined #ruby
[16:28:57] jenrzzz: has joined #ruby
[16:29:20] havenwood: That'd remove uglifier, yep.
[16:29:30] ruby[bot]: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[16:30:09] ResidentBiscuit: has joined #ruby
[16:31:50] twillkens: has joined #ruby
[16:33:45] Slinky_Pete: has joined #ruby
[16:35:36] quobo: has joined #ruby
[16:36:11] TchanZ: has left #ruby: ()
[16:36:53] Slinky_Pete: has joined #ruby
[16:37:35] marcux: has joined #ruby
[16:37:59] dviola: has joined #ruby
[16:38:39] orbyt_: has joined #ruby
[16:39:12] mkali: has joined #ruby
[16:43:52] bruno-__: has joined #ruby
[16:44:04] bruno-___: has joined #ruby
[16:46:55] uZiel: has joined #ruby
[16:47:46] cagomez: has joined #ruby
[16:48:19] Dimik: has joined #ruby
[16:49:44] tor-browser: has joined #ruby
[16:49:46] marcux: has joined #ruby
[16:53:29] tor-browser_: has joined #ruby
[16:54:04] marcux: has joined #ruby
[16:55:07] mtkd: has joined #ruby
[16:57:14] bronson: has joined #ruby
[16:59:35] nofxx: has joined #ruby
[17:00:20] marcux: has joined #ruby
[17:02:57] millerti: has joined #ruby
[17:03:27] jenrzzz: has joined #ruby
[17:09:52] guardian: has joined #ruby
[17:12:19] SeepingN: has joined #ruby
[17:15:36] _sfiguser: has joined #ruby
[17:20:24] Mon_Ouie: has joined #ruby
[17:24:03] fChanX: has joined #ruby
[17:24:21] tor-browser_: has left #ruby: ("Konversation terminated!")
[17:28:35] bmurt: has joined #ruby
[17:30:22] tor-browser_: has joined #ruby
[17:30:56] abrcdbr: has joined #ruby
[17:31:07] abhi56rai: has joined #ruby
[17:31:44] BSaboia: has joined #ruby
[17:32:02] nobitanobi: has joined #ruby
[17:35:48] bmurt: has joined #ruby
[17:37:17] fChanX: has left #ruby: ("Leaving")
[17:37:26] kn-928: has joined #ruby
[17:39:48] nofxx: has joined #ruby
[17:40:49] armin: has joined #ruby
[17:40:49] millerti: has joined #ruby
[17:42:42] chouhoulis: has joined #ruby
[17:43:51] milardovich: has joined #ruby
[17:43:59] claudiuinberlin: has joined #ruby
[17:44:32] cagomez: has joined #ruby
[17:44:34] jenrzzz: has joined #ruby
[17:49:45] raynold: has joined #ruby
[17:54:55] orbyt_: has joined #ruby
[17:54:59] kies: has joined #ruby
[17:56:31] cahoots: has joined #ruby
[17:58:22] oleo: has joined #ruby
[18:00:21] im0nde: has joined #ruby
[18:00:50] roonsauce: has joined #ruby
[18:02:57] vivus: has left #ruby: ("Leaving")
[18:07:23] AlexRussia: has joined #ruby
[18:07:25] ltem: has joined #ruby
[18:09:56] __Yiota: has joined #ruby
[18:10:11] RedNifre: has joined #ruby
[18:11:16] roonsauce: has joined #ruby
[18:11:40] cschneid: has joined #ruby
[18:12:37] tcopeland: has joined #ruby
[18:12:44] maryo: has joined #ruby
[18:14:27] mim1k: has joined #ruby
[18:14:30] AndBobsYourUncle: has joined #ruby
[18:15:02] Dimik: has joined #ruby
[18:15:57] oleo: has joined #ruby
[18:16:11] conta: has joined #ruby
[18:16:13] Ashoshi: has joined #ruby
[18:16:17] Ashoshi: has left #ruby: ()
[18:22:14] milardovich: has joined #ruby
[18:23:38] ONDIE: has joined #ruby
[18:26:43] ONDIE: has left #ruby: ()
[18:27:47] imode: has joined #ruby
[18:27:57] nofxx: has joined #ruby
[18:30:31] twillkens: has joined #ruby
[18:32:06] Guest39719: has joined #ruby
[18:34:53] mim1k: has joined #ruby
[18:38:13] bmurt: has joined #ruby
[18:38:21] lxsameer: has joined #ruby
[18:39:43] rippa: has joined #ruby
[18:42:33] jenrzzz: has joined #ruby
[18:42:33] jenrzzz: has joined #ruby
[18:43:43] millerti: has joined #ruby
[18:53:32] frozengeek: has joined #ruby
[18:56:59] cschneid_: has joined #ruby
[18:58:12] bronson: has joined #ruby
[18:58:55] skweek: has joined #ruby
[19:01:55] jdbrowne: has joined #ruby
[19:02:09] al2o3-cr: has joined #ruby
[19:08:40] cadillac_: has joined #ruby
[19:08:56] __Yiota: has joined #ruby
[19:09:26] amitchellbullard: has joined #ruby
[19:09:45] Alina-malina: has joined #ruby
[19:09:45] Alina-malina: has joined #ruby
[19:10:12] ONDIE: has joined #ruby
[19:10:40] zachk: has joined #ruby
[19:11:28] ONDIE: has left #ruby: ()
[19:12:16] zachk: has joined #ruby
[19:12:28] tAn: has joined #ruby
[19:15:58] phaul: has joined #ruby
[19:16:28] bmurt: has joined #ruby
[19:18:02] cagomez: has joined #ruby
[19:18:54] preyalone: has joined #ruby
[19:20:53] bronson: has joined #ruby
[19:22:52] ldnunes: has joined #ruby
[19:24:34] _sfiguser: has joined #ruby
[19:26:16] chouhoul_: has joined #ruby
[19:26:25] milardovich: has joined #ruby
[19:26:42] mostlybadfly: has joined #ruby
[19:29:25] tAn: has joined #ruby
[19:30:07] synthroid: has joined #ruby
[19:32:27] belmoussaoui_: has joined #ruby
[19:35:24] hfp_work: has joined #ruby
[19:38:09] Alina-malina: has joined #ruby
[19:40:25] Alina-malina: has joined #ruby
[19:41:49] kn-928: has joined #ruby
[19:42:13] twillkens: has joined #ruby
[19:47:00] ycyclist: has joined #ruby
[19:47:15] ycyclist: Say, anybody know what this is about??? cannot load such file -- minitest/spec (LoadError)
[19:47:46] griffindy: has joined #ruby
[19:47:51] ycyclist: Usually, on Ubuntu, I get no problem with minitest just being there. I thought that it was the default test framework for almost 10 years now for Ruby.
[19:48:27] ycyclist: But now it appears I need to install it as a gem? That is a bit of a kick in the teeth for a devotee who just told his boss it comes default.
[19:49:01] michael4: has joined #ruby
[19:49:19] cagomez: has joined #ruby
[19:49:58] bmurt: has joined #ruby
[19:50:40] duckpupp1: has joined #ruby
[19:51:01] ycyclist: Wow. I didn't realize this place was so dead.
[19:51:18] SeepingN: it's Friday
[19:51:24] SeepingN: programmers' day off
[19:53:32] Guest39719: has joined #ruby
[20:01:32] ycyclist: I'm a programmer.
[20:02:00] Papierkorb: Friday evening. people may be doing something else for a change
[20:02:53] ycyclist: Say, I seem to be getting yum install of ruby on centos7 just fine, but no require 'minitest/spec' require 'minitest/autorun'.
[20:03:29] ycyclist: I wonder if centos has some known brokenness where I can just yum or gem install that. It should just be there I think.
[20:04:57] bmurt: has joined #ruby
[20:07:31] mson: has joined #ruby
[20:08:30] tsia: has joined #ruby
[20:12:17] milardovich: has joined #ruby
[20:13:42] __Yiota: has joined #ruby
[20:19:30] orbyt_: has joined #ruby
[20:26:17] Slinky_Pete: has joined #ruby
[20:26:53] jenrzzz: has joined #ruby
[20:28:53] cdg: has joined #ruby
[20:29:00] kn-928: has joined #ruby
[20:29:19] benlieb: has joined #ruby
[20:30:22] cdg: has joined #ruby
[20:30:34] cagomez: has joined #ruby
[20:31:12] ozcanesen: has joined #ruby
[20:31:57] cdg: has joined #ruby
[20:32:40] BSAlb: has joined #ruby
[20:33:04] havenwood: ycyclist: What Ruby are you on?
[20:34:27] havenwood: ycyclist: You can, and should update minitest independently from Ruby.
[20:37:33] ycyclist: This centos 7 has 2.0
[20:37:40] tsia: has joined #ruby
[20:37:43] havenwood: ycyclist: gem update minitest
[20:38:04] ycyclist: Exactly which ruby 2.0: [xeno@xcclouderac7v1 shop]$ ruby --version ruby 2.0.0p648 (2015-12-16) [x86_64-linux]
[20:38:52] ycyclist: I have a better but less easy question though. This application installs it's own version of ruby in some /opt/something/.../ruby/bin area.
[20:38:57] havenwood: https://stdgems.org/
[20:39:06] Slinky_Pete: has joined #ruby
[20:39:10] sami: has joined #ruby
[20:39:13] sami: I'm having some trouble with the ruby version of elasticsearch-dsl, would this be the right channel to ask?
[20:39:14] ycyclist: However, when I try to use minitest/autorun and minitest/spec it similarly does not see them.
[20:39:16] sami: For some reason this is what my query looks like, client doesn't extract the hash: curl -X GET 'http://localhost:9200/_search?pretty' -d '"#<Elasticsearch::DSL::Search::Search:0x007fdb6086ff40>"'
[20:39:49] ycyclist: I would like to use the minitest I can see down in this ruby 2.3 install, but it does not see it.
[20:39:55] havenwood: sami: need a #to_s or something on that Elasticsearch::DSL::Search::Search instance?
[20:40:05] ycyclist: Is there some kind of include qualifier I can give in ruby to make it see it?
[20:40:28] havenwood: ycyclist: Usually Ruby version switchers get you the Ruby and Gem to match the Ruby you've selected.
[20:40:29] sami: havenwood: Let me gist the example code. Just a sec
[20:40:34] matthewd: ycyclist: Run it with that ruby
[20:40:37] havenwood: ycyclist: Maybe on CentOS you could use update-alternatives to select it.
[20:41:22] sami: https://gist.github.com/samimb/13671df5c76aa489e26cb5b49a2272f8
[20:41:57] ycyclist: Yes, I ran it with that ruby with explicit path, and it did not see minitest/autorun nor minitest/spec.
[20:42:23] ycyclist: Yes, I want to use the 2.3 as it is always installed independent of the OS.
[20:42:36] havenwood: ycyclist: Run: /path/to/ruby -rminitest/spec -e "0"
[20:42:45] havenwood: ycyclist: Does that work?
[20:42:46] ycyclist: Everything else works this way in the framework, so I think I just need the simple qualifier to pick up autorun and spec.
[20:43:06] ycyclist: Ok. I will try that.
[20:45:44] Dimik: has joined #ruby
[20:46:41] ycyclist: Failed: https://gist.github.com/v-xecamp/48d429647ecfd84cc287635407cf14a4
[20:47:00] ycyclist: There is probably something obvious I am doing. Don't worry about laughing out loud if there is.
[20:49:43] lagweezle: has joined #ruby
[20:50:36] cdg_: has joined #ruby
[20:51:49] milardovich: has joined #ruby
[20:52:43] ycyclist: A desert again I fear.
[20:54:04] al2o3-cr: has joined #ruby
[20:54:34] Guest39719: has joined #ruby
[20:56:41] sami: has left #ruby: ()
[21:09:32] mim1k: has joined #ruby
[21:15:01] eckhardt: has joined #ruby
[21:15:07] Guest39719: has joined #ruby
[21:19:12] s3nd1v0g1us: has joined #ruby
[21:20:16] s3nd1v0g1us: has joined #ruby
[21:21:09] s3nd1v0g1us: has joined #ruby
[21:21:52] milardovich: has joined #ruby
[21:22:58] MrBusiness: has joined #ruby
[21:24:28] tsia: has joined #ruby
[21:25:28] s3nd1v0g1us: has joined #ruby
[21:26:14] milardovich: has joined #ruby
[21:28:48] jenrzzz: has joined #ruby
[21:28:49] jenrzzz: has joined #ruby
[21:28:56] s3nd1v0g1us: has joined #ruby
[21:29:42] s3nd1v0g1us: has joined #ruby
[21:31:07] bovis: has joined #ruby
[21:34:10] ycyclist: havenwood: You around?
[21:35:22] elsevero: has joined #ruby
[21:36:07] havenwood: ycyclist: hi
[21:40:29] cahoots: has joined #ruby
[21:42:24] havenwood: ycyclist: before requiring you could try: gem 'minitest'
[21:42:51] wilbert: has joined #ruby
[21:43:01] havenwood: ycyclist: does that line 6 succeed? (omit the ./service part)
[21:43:18] havenwood: ycyclist: The only reason to try that is to just confirm you can require minitest/spec with that Ruby.
[21:43:35] Slinky_Pete: has joined #ruby
[21:43:45] havenwood: ycyclist: Gist the content of shwrapin.sh?
[21:44:10] havenwood: ycyclist: Can you require minitest/spec when using the relevant Ruby directly?
[21:44:52] ycyclist: Okay, one thing at a time.
[21:45:25] ycyclist: I did try the minitest. It appears btw that thought I thought minitest was in there, it is only under an area called rr-1.1.2
[21:46:01] ycyclist: Here is a path:
[21:46:02] ycyclist: ./lib/ruby/gems/2.3.0/gems/rr-1.1.2/lib/rr/integrations/minitest.rb
[21:46:32] ycyclist: But according to a doc that went around, it is always part of bundle level gems, so it always comes with install.
[21:46:51] havenwood: ycyclist: Err, what happens when you run just this:
[21:47:02] havenwood: /path/to/ruby -rminitest/spec -e "puts 'it worked...'"
[21:47:04] milardovich: has joined #ruby
[21:47:28] zacts: has joined #ruby
[21:48:28] ycyclist: Same thing:
[21:48:29] ycyclist: xeno@xcalatestvm1h:~/shop$ ./shwrapin.sh /opt/microsoft/omsagent/ruby/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- minitest/spec (LoadError) from /opt/microsoft/omsagent/ruby/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
[21:48:48] havenwood: ycyclist: Doesn't seem you're running what I wrote.
[21:49:01] havenwood: /opt/microsoft/omsagent/ruby/lib/ruby/2.3.0/bin/ruby -e "puts 'it worked...'"
[21:49:30] havenwood: ycyclist: Does that work? ^
[21:49:42] zacts: has joined #ruby
[21:49:48] havenwood: if so, does this work?:
[21:49:55] havenwood: /opt/microsoft/omsagent/ruby/lib/ruby/2.3.0/bin/ruby -rminitest/spec -e "puts 'it worked...'"
[21:51:14] ycyclist: xeno@xcalatestvm1h:~/shop$ /opt/microsoft/omsagent/ruby/bin/ruby -e "puts 'it worked...'" it worked...
[21:51:19] ycyclist: So that works.
[21:51:27] zacts_: has joined #ruby
[21:51:39] havenwood: How about with the -rminitest/spec
[21:51:41] havenwood: still good?
[21:51:48] milardovich: has joined #ruby
[21:52:20] ycyclist: This fails:
[21:52:21] ycyclist: xeno@xcalatestvm1h:~/shop$ /opt/microsoft/omsagent/ruby/bin/ruby -rminitest/spec -e "puts 'it worked...'" /opt/microsoft/omsagent/ruby/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- minitest/spec (LoadError) from /opt/microsoft/omsagent/ruby/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
[21:52:49] havenwood: ycyclist: Are they shipping some stripped-down form or Ruby?
[21:52:51] ycyclist: So it is not seeing a minitest nor minitest/spec
[21:53:04] ycyclist: I am wanting to conclude the same thing.
[21:53:25] havenwood: ycyclist: Try: /opt/microsoft/omsagent/ruby/bin/gem install minitest
[21:54:13] havenwood: ycyclist: It's quite possible to remove bundled gems like minitest (default gems on the other hand can't be removed).
[21:54:26] ycyclist: That works:
[21:54:27] ycyclist: xeno@xcalatestvm1h:~/shop$ /opt/microsoft/omsagent/ruby/bin/ruby -rminitest -e "puts 'it worked...'" it worked...
[21:54:48] havenwood: Okay, then you're good.
[21:54:49] havenwood: Somehow you uninstalled the minitest gem, which you can do.
[21:54:50] havenwood: Or they did.
[21:54:51] havenwood: Someone did.
[21:54:54] ycyclist: Is there some way to include the gem from the net just for the script execution rather than gem installing it?
[21:55:03] havenwood: ycyclist: It's described here why it can be uninstalled: https://stdgems.org/
[21:55:30] havenwood: ycyclist: It's presumed to be there, since it's a bundled gem. Almost nobody uninstalls it.
[21:55:46] ycyclist: Okay, well it is sure simple to re-install, but it stinks as it changes the install area.
[21:55:55] havenwood: ycyclist: You can always have a Gemfile and add the line: gem 'minitest'
[21:56:05] havenwood: Then when people `bundle` it will get installed.
[21:56:08] ycyclist: yes, well, I'd say it won't hurt too bad to install it for testing. Better than using the OS ruby.
[21:56:21] havenwood: Or for a gem, include the dep in the gemspec.
[21:56:39] milardovich: has joined #ruby
[21:56:48] Slinky_Pete: has joined #ruby
[21:56:53] ycyclist: Best for me to just install for now, then bring it up in meetings that it is the recommended standard and that their use of test unit is strongly deprecated legacy.
[21:57:21] ycyclist: I have already done that partly, but the fact that they have chopped it out makes it a little more ticklish.
[21:57:48] ycyclist: Seems to me a sane engineer would have chopped out test unit and forced use of minitest, but well...
[21:57:49] marcux: has joined #ruby
[21:57:50] havenwood: ycyclist: Maybe they `gem uninstall --all` in their setup or something. Dunno.
[21:58:06] havenwood: It's not normal to uninstall bundled gems.
[21:58:43] ycyclist: Well, we are living in a day and age of expansive fatuousness. Ahem.
[21:59:00] ycyclist: Anyway, this is very helpful havenwood. Thank you.
[21:59:09] havenwood: ycyclist: You're welcome.
[22:01:09] milardovich: has joined #ruby
[22:01:21] Xeago: has joined #ruby
[22:05:17] milardovich: has joined #ruby
[22:07:20] al2o3-cr: has joined #ruby
[22:11:46] coderphive: has joined #ruby
[22:12:37] Slinky_Pete: has joined #ruby
[22:16:07] Guest39719: has joined #ruby
[22:19:35] eyeris: has joined #ruby
[22:20:16] eyeris: Is there any way to make a method yield to a block that yields back to the function, which yields to the block once again?
[22:20:42] cahoots: has joined #ruby
[22:20:57] Papierkorb: You could pass a Proc to the block. Though, why?
[22:21:02] Papierkorb: Sounds kinda scary
[22:21:25] eyeris: I'd want that proc to be the remainder of the method though.
[22:21:27] eyeris: def f; puts 1; yield; puts 2; yield; puts 3; end; f{ puts 100; yield; puts 200 }
[22:21:49] eyeris: that doesn't work because the yield from the block fails w/ a LocalJumpError
[22:22:53] Papierkorb: blocks ain't JS generators or coroutines
[22:23:38] jinie: has joined #ruby
[22:23:40] Papierkorb: I mean you could simulate that using an array of procs.
[22:23:42] iszak: has joined #ruby
[22:23:45] cagomez: has joined #ruby
[22:25:20] cagomez: has joined #ruby
[22:25:27] matthewd: Maybe you want a Fiber?
[22:25:27] eyeris: I suppose that is the closest.
[22:26:00] eyeris: naw, it's not worth the allocation a Fiber brings along w/ it
[22:26:15] eyeris: I'll just find a different way :)
[22:26:27] eyeris: It was more of a curiosity, really.
[22:27:11] theunraveler: has joined #ruby
[22:27:35] ur5us: has joined #ruby
[22:31:10] iszak: has joined #ruby
[22:31:10] iszak: has joined #ruby
[22:32:06] bronson: has joined #ruby
[22:32:36] griffindy: has joined #ruby
[22:33:22] jenrzzz: has joined #ruby
[22:33:22] jenrzzz: has joined #ruby
[22:36:17] milardovich: has joined #ruby
[22:36:42] Guest39719: has joined #ruby
[22:39:57] _aeris_: has joined #ruby
[22:40:49] millerti: has joined #ruby
[22:41:08] Slinky_Pete: has joined #ruby
[22:48:13] coderphive: has joined #ruby
[22:50:11] __Yiota: has joined #ruby
[22:50:32] orbyt_: has joined #ruby
[22:50:33] milardovich: has joined #ruby
[22:52:42] Slinky_Pete: has joined #ruby
[22:54:54] goyox86_: has joined #ruby
[22:58:40] Paraxial: has joined #ruby
[22:59:10] tcopeland: has joined #ruby
[23:06:22] goyox86__: has joined #ruby
[23:10:03] mim1k: has joined #ruby
[23:16:47] conta2: has joined #ruby
[23:20:02] wilbert: has joined #ruby
[23:22:09] marcux: has joined #ruby
[23:26:58] goyox86_: has joined #ruby
[23:28:29] marcux: has joined #ruby
[23:34:07] cdg: has joined #ruby
[23:34:42] abrcdbr: has joined #ruby
[23:34:43] skweek: has joined #ruby
[23:36:10] kn-928: has joined #ruby
[23:38:33] goyox86_: has joined #ruby
[23:39:28] jackjackdripper: has joined #ruby
[23:40:54] enterprisey: has joined #ruby
[23:43:51] Guest25403: has joined #ruby
[23:44:03] Guest25403: Looking for some resources about compiling ruby C extensions on windows
[23:51:32] havenwood: Algebr: You might want to look into the Windows Subsystem for Linux (WSL) that's available as a developer option with the latest Windows 10.
[23:51:58] havenwood: Algebr: Or if you really want to stay on the Windows kernel, there's DevKit.
[23:52:25] havenwood: Algebr: https://msdn.microsoft.com/en-us/commandline/wsl/install_guide
[23:53:07] havenwood: Algebr: TL;DR: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
[23:53:39] goyox86: has joined #ruby
[23:55:01] Algebr: WSL isn't available to me
[23:57:59] Guest39719: has joined #ruby
[23:59:10] havenwood: Algebr: Are you using RubyInstaller or Chocolatey?