« Back to channel list

#ruby - 09 July 2018

« Back 1 day Forward 1 day »
[00:09:06] willthechill: has joined #ruby
[00:10:28] apeiros: has joined #ruby
[00:12:29] tty: has joined #ruby
[00:15:07] tdy: has joined #ruby
[00:29:25] alfiemax: has joined #ruby
[00:30:30] BaroMeter: has joined #ruby
[00:35:35] nickjj_: has joined #ruby
[00:36:17] jasmith: has joined #ruby
[00:36:20] alfiemax_: has joined #ruby
[00:37:07] garyserj: has joined #ruby
[00:37:19] klaas: has joined #ruby
[00:37:33] Asher: has joined #ruby
[00:38:55] orbyt_: has joined #ruby
[00:39:02] NightMonkey: has joined #ruby
[00:42:27] AlHafoudh: has joined #ruby
[00:42:48] dinfuehr: has joined #ruby
[00:43:24] ren0v0: has joined #ruby
[00:49:01] eb0t: has joined #ruby
[00:57:38] ciscam: has joined #ruby
[01:07:41] apeiros: has joined #ruby
[01:15:22] orbyt_: has joined #ruby
[01:26:34] donofrio: has joined #ruby
[01:27:58] mniip: has joined #ruby
[01:38:29] stairmast0r: has joined #ruby
[01:51:12] NingaLeaf: has joined #ruby
[01:55:08] noobineer: has joined #ruby
[01:58:04] SuperLag: When you have a whitespace array are you supposed to keep everyting on the same line, or do you extend it across multiple lines for readability?
[01:58:57] elomatreb: You can break across lines and indent, if it helps readability go for it
[02:00:57] cosmopaladin: has joined #ruby
[02:09:01] tolerablyjake: has joined #ruby
[02:11:23] subroot: has joined #ruby
[02:17:33] MagePsycho: has joined #ruby
[02:20:50] noobineer: has joined #ruby
[02:33:32] akkiguru: has joined #ruby
[02:35:16] RougeR: has joined #ruby
[02:35:16] RougeR: has joined #ruby
[02:44:30] Mekkis: has joined #ruby
[02:44:51] jasmith: has joined #ruby
[02:45:29] ReMOT3KonTRoL: has joined #ruby
[02:46:42] ReMOT3KonTRoL: has left #ruby: ()
[02:56:09] white_lilies: has joined #ruby
[03:00:18] cadillac_: has joined #ruby
[03:09:05] braincrash: has joined #ruby
[03:11:09] samort7: has joined #ruby
[03:12:15] tolerablyjake: has joined #ruby
[03:25:13] tolerablyjake: has joined #ruby
[03:34:30] shinnya: has joined #ruby
[03:36:56] tdy: has joined #ruby
[03:38:15] ciscam: has joined #ruby
[03:44:43] raynold: has joined #ruby
[03:59:13] dbugger_: has joined #ruby
[04:01:45] dellavg: has joined #ruby
[04:08:02] alfiemax: has joined #ruby
[04:11:06] conta: has joined #ruby
[04:27:09] kryptoz: has joined #ruby
[04:28:48] duderonomy: has joined #ruby
[04:41:06] BloopMonster: has joined #ruby
[04:42:15] cadillac_: has joined #ruby
[04:52:57] anisha: has joined #ruby
[04:53:54] rippa: has joined #ruby
[04:58:24] kvda: has joined #ruby
[04:58:48] kvda: has left #ruby: ()
[04:59:14] kujira: has joined #ruby
[05:01:52] Robin: I'm having trouble deploying with capistrano. Here are the errors: 00:25 deploy:set_permissions:acl
[05:01:54] Robin: 01 setfacl -Rn -m u:www-data:rwX -m u::rwX /var/www/something/releases/20180709044904/bootstrap/cache /var/www/something/rel…
[05:01:56] Robin: 01 setfacl: Option -m: Invalid argument near character 3
[05:04:52] apeiros: has joined #ruby
[05:06:24] za1b1tsu: has joined #ruby
[05:09:17] demistify: has joined #ruby
[05:09:40] havenwood: robin: Does setfacl take multiple -m flags?
[05:10:16] havenwood: robin: Same error with comma-delimited ACL entries?
[05:10:28] havenwood: robin: setfacl -Rn -m "u:www-data:rwX,u::rwX
[05:10:44] Robin: havenwood: I think it is because of the empty -m u::rwX?
[05:11:25] Robin: havenwood: how can I determine what should be written there?
[05:12:23] Robin: havenwood: I check inside Gemfile.lock and there is this line: capistrano-file-permissions (~> 1.0)
[05:12:27] havenwood: robin: Have you already checked?: man setfacl
[05:12:33] havenwood: robin: Ah, you didn't write this code?
[05:13:20] Robin: havenwood: no, it is being imported? I don't know how this all work
[05:13:51] Robin: havenwood: so should I find that gem file and look for the variable?
[05:14:14] Robin: and see what I need to add to my capistrano file?
[05:15:02] havenwood: robin: https://github.com/capistrano/file-permissions/issues/12
[05:16:32] havenwood: robin: Guessing you also don't have a www-data user, so this fails: u:www-data
[05:20:51] tdy: has joined #ruby
[05:20:59] Robin: havenwood: what is weird is that capistrano already ran this script on instance startup automatically and it didn't produce an error but when I try to execute it manually it fails.
[05:21:32] Robin: havenwood: thanks for your help.
[05:21:52] havenwood: robin: you're welcome. good luck sorting it out!
[05:22:05] Robin: havenwood: thanks!
[05:33:51] Azure: has joined #ruby
[05:39:09] konsolebox: has joined #ruby
[05:40:04] akkiguru: has joined #ruby
[05:45:32] aupadhye: has joined #ruby
[05:51:55] ndrst: has joined #ruby
[05:52:30] mistergibson: has joined #ruby
[05:57:46] conta: has joined #ruby
[05:57:58] apeiros: has joined #ruby
[05:59:33] reber: has joined #ruby
[05:59:50] andersh: has joined #ruby
[06:00:21] Asher: has joined #ruby
[06:01:57] akkiguru: has joined #ruby
[06:03:53] TinkerT: has joined #ruby
[06:14:45] cttttt: has joined #ruby
[06:21:01] dhawan: has joined #ruby
[06:22:35] amar: has joined #ruby
[06:26:16] meinside: has joined #ruby
[06:31:04] arekushi: has joined #ruby
[06:31:39] pauliesaint: has joined #ruby
[06:32:05] akkiguru: has joined #ruby
[06:38:31] alem0lars: has joined #ruby
[06:38:31] dhawan: has left #ruby: ()
[06:39:59] aufi: has joined #ruby
[06:51:00] Deesl: has joined #ruby
[06:51:59] konsolebox: has joined #ruby
[06:53:57] andikr: has joined #ruby
[07:11:24] burgestrand: has joined #ruby
[07:18:28] claudiuinberlin: has joined #ruby
[07:25:15] troulouliou_dev: has joined #ruby
[07:26:05] lavamind: has joined #ruby
[07:26:14] Technato1: has joined #ruby
[07:26:19] mtkd: has joined #ruby
[07:28:58] schneider: has joined #ruby
[07:29:41] ^mtkd: has joined #ruby
[07:45:29] lxsameer: has joined #ruby
[07:50:43] schleppel: has joined #ruby
[08:00:26] Technato1: has joined #ruby
[08:02:50] clemens3: has joined #ruby
[08:03:50] amar: has joined #ruby
[08:11:25] cyberRodent: has joined #ruby
[08:24:28] ignujee[m]: has joined #ruby
[08:24:28] intheclouddan: has joined #ruby
[08:25:12] sidntrivedi012[m: has joined #ruby
[08:27:33] akkiguru: has joined #ruby
[08:28:19] jonjits[m]: has joined #ruby
[08:33:15] pauliesaint: has joined #ruby
[08:33:30] bastilian: has joined #ruby
[08:36:49] graphene: has joined #ruby
[08:39:38] conta: has joined #ruby
[08:42:09] pauliesaint: has joined #ruby
[08:42:39] mikecmpbll: has joined #ruby
[08:46:39] pauliesaint: has joined #ruby
[08:47:44] graphene: has joined #ruby
[08:50:22] guille-moe: has joined #ruby
[08:54:19] mikecmpbll: has joined #ruby
[08:56:23] conta: has joined #ruby
[08:58:43] graphene: has joined #ruby
[09:03:03] ohcibi: has joined #ruby
[09:09:35] conta: has joined #ruby
[09:11:51] amelliaa: has joined #ruby
[09:11:54] mikecmpbll: has joined #ruby
[09:13:15] RougeR: has joined #ruby
[09:13:15] RougeR: has joined #ruby
[09:20:15] nowhere_man: has joined #ruby
[09:21:01] teclator: has joined #ruby
[09:21:52] alem0lars: has joined #ruby
[09:22:35] jnollette: has joined #ruby
[09:29:07] zautomata: has joined #ruby
[09:29:46] zautomata: has joined #ruby
[09:30:15] zautomata: has left #ruby: ()
[09:30:22] XB23: has joined #ruby
[09:31:39] vondruch: has joined #ruby
[09:32:14] Technato1: has joined #ruby
[09:34:49] nowhere_man: has joined #ruby
[09:40:30] Zaab1t: has joined #ruby
[09:43:25] conta: has joined #ruby
[09:46:17] nowhereman_: has joined #ruby
[09:55:05] vonfry: has joined #ruby
[09:58:18] aufi: has joined #ruby
[10:03:27] sidx64: has joined #ruby
[10:05:28] ur5us: has joined #ruby
[10:05:52] suukim: has joined #ruby
[10:12:45] sidx64: has joined #ruby
[10:12:45] jraavis: has joined #ruby
[10:12:46] ellcs: has joined #ruby
[10:14:21] cyberg: has joined #ruby
[10:18:27] sidx64: has joined #ruby
[10:20:41] duper: has joined #ruby
[10:21:43] duper: Hi, I keep getting errors with open-uri, even with options={:ssl_verify_mode => 0} .. it says tlsv1 alert internal error.. any ideas?
[10:22:42] duper: if I use a plain HTTP URL, I get.. in `read_nonblock': end of file reached (EOFError)
[10:22:43] mtkd: has joined #ruby
[10:23:10] GodFather: has joined #ruby
[10:24:44] desperek: has joined #ruby
[10:25:26] jraavis: has joined #ruby
[10:28:03] faces: has joined #ruby
[10:29:28] apeiros: duper: yes, read_nonblock communicates end of file that way.
[10:30:45] duper: well, how do I fix the error? because I want the body of the HTTP response
[10:31:06] duper: i don't even mind if it's a synchronous socket read
[10:34:24] tvw: has joined #ruby
[10:40:53] apparition: has joined #ruby
[10:41:32] jrafanie: has joined #ruby
[10:43:35] apeiros: duper: I have no idea. you haven't given enough information.
[10:48:20] alfiemax: has joined #ruby
[10:51:25] apeiros: but if you use read_nonblock, you're supposed to handle the potential and expected exceptions
[10:52:10] rawste: has joined #ruby
[10:53:34] sidx64: has joined #ruby
[11:01:04] ciscam: has joined #ruby
[11:02:08] nowhere_man: has joined #ruby
[11:10:49] alex``: has joined #ruby
[11:15:12] zapata: has joined #ruby
[11:20:40] ur5us: has joined #ruby
[11:22:31] shinnya: has joined #ruby
[11:25:26] suukim: has joined #ruby
[11:25:47] vondruch: has joined #ruby
[11:26:59] akkiguru: has joined #ruby
[11:30:35] apeiros: eh, not that important a problem I guess.
[11:31:25] noobineer: has joined #ruby
[11:32:19] houhoulis: has joined #ruby
[11:34:49] Megamos: has joined #ruby
[11:36:33] sidx64: has joined #ruby
[11:39:55] ldnunes: has joined #ruby
[11:43:22] sidx64: has joined #ruby
[11:43:37] alex``: has joined #ruby
[11:45:10] fmcgeough: has joined #ruby
[11:46:28] Technato1: has joined #ruby
[11:50:04] TvL2386: apeiros: lol
[11:51:23] sidx64: has joined #ruby
[11:54:22] FernandoBasso: has joined #ruby
[11:56:38] toks: has joined #ruby
[11:58:18] toks: has joined #ruby
[11:58:33] alfiemax: has joined #ruby
[11:58:42] synthroid: has joined #ruby
[12:00:03] sidx64: has joined #ruby
[12:00:24] griffindy: has joined #ruby
[12:01:16] AJA4350: has joined #ruby
[12:02:30] sidx64: has joined #ruby
[12:03:09] andikr: has joined #ruby
[12:03:36] nowhere_man: has joined #ruby
[12:05:58] bak1an: has joined #ruby
[12:07:36] biberu: has joined #ruby
[12:11:11] apofis: has joined #ruby
[12:16:28] guille-moe: has joined #ruby
[12:17:06] conta: has joined #ruby
[12:23:51] kristofers: has joined #ruby
[12:25:38] kristofers: Hello, i am having an issue when working with nested classes. I have a class B nested in A using a build pattern. When i try to assign self.my_object = my_object that was passed in the initialiser i get a (undefined method) my_object error
[12:27:53] apeiros: kristofers: gist of minimal reproducible code please
[12:28:10] apeiros: (and it's almost certainly unrelated to the classes being nested)
[12:31:05] fmcgeough: has joined #ruby
[12:32:45] dbugger__: has joined #ruby
[12:34:53] sidx64: has joined #ruby
[12:37:25] kristofers: https://gist.github.com/kristofers91/f49ae670cbdf1fb81e779b565d8bdabd
[12:38:26] apeiros: ugh, you should not mix spaces and tabs
[12:38:34] kristofers: yes sorry just noticed it
[12:38:44] kristofers: might just be a bad design, been trying to refactor some code to do some tdd
[12:38:50] kristofers: so i'll take any advice
[12:38:56] apeiros: B < A # this is inheritance, *not* nesting.
[12:39:07] kristofers: i meant the C part as nested
[12:39:12] kristofers: C = Notification
[12:39:32] apeiros: I do not see you defining a slack_resource= method anywhere. why do you expect it to exist?
[12:39:53] apeiros: as for minimal reproducible: this code is not reproducible. I can't run this code.
[12:41:30] kristofers: I will work a new one then, but maybe a question before i do so
[12:41:55] kristofers: Maybe the design is just bad and there is another way, if not then i'll make it reproducible
[12:41:57] apeiros: or rather, I can run it, but it won't exhibit the problem you care about.
[12:42:54] apeiros: I can't comment on the design as I don't have sufficient information (and I probably lack the time atm to process it if you were to provide sufficient information regarding the design)
[12:45:49] rwb: has joined #ruby
[12:48:28] alfiemax_: has joined #ruby
[12:49:39] sidx64: has joined #ruby
[12:50:06] kristofers: can you check again the gist
[12:50:17] kristofers: should run now
[12:51:06] apeiros: ok. reproducible now.
[12:51:19] apeiros: the question stays the same, though: I do not see you defining a slack_resource= method anywhere. why do you expect it to exist?
[12:52:38] kristofers: think i see now what my issue is
[12:52:47] kristofers: i'm not trying to define a method
[12:53:01] kristofers: but trying to assign the object
[12:53:16] apeiros: what's that supposed to mean?
[12:53:37] kristofers: I'm trying to inject SlackResource into that class
[12:53:48] andikr: has joined #ruby
[12:53:49] apeiros: maybe you have a lack of understanding there. `self.slack_resource = slack_resource` invokes a method named "slack_resource="
[12:53:56] apeiros: it is not assignment. despite the = in it.
[12:55:51] kristofers: What is the difference then between self_slack= in Notification compared to self.notification= in ClassA
[12:56:10] apeiros: none with regards to both being methods.
[12:56:24] apeiros: and your example would break there too if it would pass that line of code.
[12:56:30] apeiros: since you don't define notification= either.
[12:57:10] apeiros: though it'd break earlier since ClassA::Notification would can't be looked up.
[12:57:57] jraavis: has joined #ruby
[12:59:41] kristofers: Would then switching self. with @ work in terms of dependency injection
[12:59:46] kristofers: or is this entirely wrong
[13:00:17] apeiros: it's entirely different. whether it's wrong or not depends on the rest of your code.
[13:00:46] apeiros: `@slack_resource =` is an assignment, it assigns the right hand side (RHS) to the instance variable @slack_resource.
[13:01:17] apeiros: you *can* have a method which does just that for self.slack_resource= too. ruby even provides convenience methods to create those methods.
[13:01:36] apeiros: `attr_accessor :slack_resource` will define both, a reader and a writer for @slack_resource.
[13:02:28] jcalla: has joined #ruby
[13:02:34] kristofers: I come from php and trying to get into tdd in ruby, the code i am working is not tested. so i'm trying to refactor it entirely. I was reading this article but it seems i either misundertood it or it's doing something different
[13:02:37] kristofers: https://hackernoon.com/going-further-with-service-objects-in-ruby-on-rails-b8aac13a7271
[13:02:48] Technato1: has joined #ruby
[13:03:31] nowhere_man: has joined #ruby
[13:04:30] mniip: has joined #ruby
[13:06:04] mniip: has joined #ruby
[13:06:58] RougeR: why does every goddamn company use php
[13:07:01] RougeR: seriously
[13:08:31] apeiros: kristofers: it does help understanding the basics before building the bigger things ;-)
[13:08:50] kristofers: Well at the time i got sick of php, laravel came out but now i wish i started sooner in ruby
[13:08:54] apeiros: it can be ok though to just stumble over the basics while building a bigger things.
[13:13:03] kristofers: Any book suggestions, i'm planning on getting one from Sandi Metz
[13:14:54] bmurt: has joined #ruby
[13:16:13] ruby[bot]: You can find a list of recommended books at http://ruby-community.com/pages/links
[13:16:40] apeiros: I think this one is more up to date: https://goo.gl/wpGhoQ (from topic)
[13:16:53] nowhere_man: has joined #ruby
[13:23:27] alfiemax: has joined #ruby
[13:23:55] YokoBR: has joined #ruby
[13:26:44] gnufied: has joined #ruby
[13:28:12] kristofers: RougeR since you were asking this question
[13:28:25] kristofers: What would you tell the company that asks you why switch to ruby ?
[13:38:23] Es0teric: has joined #ruby
[13:39:37] YokoBR: guys, please
[13:39:48] YokoBR: I'm having trouble running a passenger app
[13:40:02] YokoBR: The application encountered the following error: cannot load such file -- bundler/setup (LoadError)
[13:40:57] nowhere_man: has joined #ruby
[13:43:35] ^mtkd: has joined #ruby
[13:45:59] orbyt_: has joined #ruby
[13:51:41] mtkd: has joined #ruby
[13:52:22] Inline: has joined #ruby
[13:53:03] soniya29: has joined #ruby
[13:53:11] soniya29_: has joined #ruby
[13:53:14] canton7: YokoBR, you likely need to have bundler installed?
[13:53:35] YokoBR: yep, I have, I guess
[13:53:50] YokoBR: But I guess I got rid of this error
[13:53:59] YokoBR: now its a nokogiri something
[13:56:04] cyberg: has joined #ruby
[13:58:18] mtkd: has joined #ruby
[13:59:04] vondruch_: has joined #ruby
[14:01:25] guille-moe: has joined #ruby
[14:06:07] soniya29_: has joined #ruby
[14:06:07] soniya29: has joined #ruby
[14:07:19] YokoBR: now it's The application encountered the following error: Unknown key: :order. Valid keys are: :class_name, :anonymous_class, :foreign_key, :validate, :autosave, :dependent, :primary_key, :inverse_of, :required, :as, :foreign_type (ArgumentError)
[14:08:17] jrafanie: has joined #ruby
[14:14:21] vondruch: has joined #ruby
[14:15:06] Deesl: has joined #ruby
[14:16:08] samosaphile: has joined #ruby
[14:16:30] samosaphile: has left #ruby: ()
[14:16:35] samosaphile: has joined #ruby
[14:19:16] quobo: has joined #ruby
[14:19:45] mtkd: has joined #ruby
[14:22:46] codymj: has joined #ruby
[14:23:47] apeiros: YokoBR: you get a file and a line along with the exception
[14:24:00] apeiros: go there. figure what it might mean.
[14:24:28] Rapture: has joined #ruby
[14:28:02] chouhoulis: has joined #ruby
[14:31:43] psychicist__: has joined #ruby
[14:32:14] synthroid: has joined #ruby
[14:34:07] YokoBR: E 2018-07-09 14:05:22.0781 14179/Te age/Cor/App/Implementation.cpp:221 apeiros
[14:36:27] alex``: has joined #ruby
[14:38:37] Dbugger: has joined #ruby
[14:42:37] apeiros: eh, yeah… .cpp is rather unlikely 😂
[14:52:41] alem0lars: has joined #ruby
[14:56:26] apeiros: ACTION afk for ~40min
[15:01:57] Deesl: has joined #ruby
[15:02:34] kryptoz: has joined #ruby
[15:07:07] red: has joined #ruby
[15:07:30] red: how to get the browser timezone in haml file
[15:08:59] za1b1tsu: has joined #ruby
[15:11:53] apeiros: has joined #ruby
[15:15:37] kryptoz: has joined #ruby
[15:18:49] havenwood: re_: :javascript; Intl.DateTimeFormat().resolvedOptions().timeZone
[15:30:15] sticaz: has joined #ruby
[15:30:38] jraavis: has joined #ruby
[15:34:19] nowhere_man: has joined #ruby
[15:36:34] za1b1tsu: has joined #ruby
[15:37:14] jraavis: has joined #ruby
[15:44:45] nchambers: I'm reading the guide for writing ruby gems, and have gotten to a point where it mentions bundler and rake for generating dynamic gemspecs. I'm slightly familiar with both of these tools, but I'm not sure which to use for my project. is there a comparison guide somewhere?
[15:45:02] noobineer: has joined #ruby
[15:45:06] graphene: has joined #ruby
[15:46:05] cagomez: has joined #ruby
[15:52:15] jraavis: has joined #ruby
[15:52:21] havenwood: nchambers: I'd suggest just writing it from scratch.
[15:53:03] havenwood: nchambers: Here's a simple one, for example: https://github.com/havenwood/digest-sip_hash/blob/master/digest-sip_hash.gemspec
[15:53:28] nchambers: i've got no problems writing a gemspec
[15:53:32] nchambers: thanks though
[15:54:11] havenwood: nchambers: Yeah, if you're comfy writing a gemspec, I'd avoid the generators. They're probably more trouble than they're worth for you.
[15:54:52] nchambers: ok, thanks!
[15:55:05] \void: has joined #ruby
[15:55:29] alcroito: has joined #ruby
[15:56:12] alcroito: Hello, is anyone familiar with python's pudb cli / gui debugger, and knows if there is an equivalent for ruby? https://github.com/inducer/pudb
[15:57:04] jabowa: has joined #ruby
[15:57:04] tolerablyjake: has joined #ruby
[15:57:23] apeiros: has joined #ruby
[15:57:34] Mike11: has joined #ruby
[15:57:57] Zarthus: sounds like you want pry
[15:58:00] jabowa: Is there a way to log a string and variable side by side? For example, puts "age: ", age outputs this as age in one line and then the variable value in the next line. How to output it as, age: 33 (one line).
[15:58:11] Zarthus: not quite a 1:1 comparison, but it'll work
[15:58:44] havenwood: jabowa: puts "age: #{age}"
[15:59:13] havenwood: jabowa: print 'age: ', age, "\n"
[15:59:44] alcroito: Zarthus thank you, i will look into it, although it seems it doesn't have a graphical view
[15:59:59] havenwood: jabowa: sprintf "age: %s", 42
[16:00:19] Zarthus: alcroito: I don't know of standalone graphical debuggers, RubyMine might have something though
[16:00:26] dbugger_: has joined #ruby
[16:00:41] alcroito: Zarthus i suppose, although that's a bit heavy weight for my liking
[16:01:15] mikecmpbll: has joined #ruby
[16:02:37] jcarl43: has joined #ruby
[16:10:36] red: how to get the datetime format from a ruby object
[16:11:49] cthulchu: has joined #ruby
[16:12:55] burgestrand: has joined #ruby
[16:13:32] red: havenwood: how to get the datetime format from a ruby object?
[16:13:56] red: something like this %A %ORD %B, %Y
[16:15:06] chkhanch: has joined #ruby
[16:15:27] orbyt_: has joined #ruby
[16:15:27] jrafanie_: has joined #ruby
[16:15:42] havenwood: re_ http://strftimer.com/
[16:17:40] _aeris_: has joined #ruby
[16:18:54] red: havenwood: I need reverse of that
[16:19:29] red: like i give a datetime object and i need a format which i would pass to in_timezone()
[16:20:25] r29v: has joined #ruby
[16:20:50] havenwood: re_: Going from a DateTime to a specific format is what DateTime.strftime does.
[16:20:53] orbyt_: has joined #ruby
[16:20:54] akaiiro: has joined #ruby
[16:21:15] red: but I donno the format that i get from the server
[16:21:23] red: havenwood: ^^
[16:21:34] red: it may change upon user settings
[16:21:38] havenwood: What format of what?
[16:22:06] havenwood: I don't know what we're talking about. I don't have any context here.
[16:22:13] red: give me a min
[16:23:45] apeiros: they seem to ask the wrong way round
[16:24:01] apeiros: sounds like they want to parse a date formatted as a string
[16:24:10] red: havenwood: All i need is how can i get the date time format (i.e: something like this %A %ORD %B, %Y) for an object
[16:24:25] red: object is a datetime object
[16:24:28] apeiros: re_: ruby does not have a class for date formats
[16:24:42] apeiros: date formats are expressed as strings.
[16:25:01] red: yeah can i get that string somehow for a datetime object
[16:25:05] havenwood: re_: You have DateTimes and want Strings? Or you have Strings and want DateTimes?
[16:25:07] apeiros: and a datetime object itself does not have a format at all.
[16:25:11] kryptoz: has joined #ruby
[16:25:17] havenwood: re_: (Both Strings and DateTimes are Objects.)
[16:25:35] red: I have datetimes and want strings (such as this "%A %ORD %B, %Y")
[16:26:18] havenwood: re_: Did you try strftime? Docs are linked in my link above.
[16:26:43] apeiros: now it sounds like they have "2018-06-07" and want to get "%Y-%m-%d" from that?!?
[16:27:22] havenwood: ¯\_(ツ)_/¯
[16:27:39] havenwood: re_: Show us what you have, and what you want?
[16:28:17] red: DateTime.parse(view.datetime) i have this object and i need the format of that object
[16:28:32] apeiros: ok. I'll repeat then:
[16:28:35] havenwood: re_: Like: I have `#<DateTime: 2018-08-09...>` and I want `"%Y-%D-%M"`
[16:28:39] apeiros: DateTime objects do not have a format.
[16:28:42] red: exactly
[16:29:00] havenwood: exactly to who? hehe
[16:29:15] havenwood: I'm confused!
[16:29:23] apeiros: ACTION would assume exactly to havenwood
[16:29:48] red: lol i was too.. that exactly was exactly to havenwood
[16:29:49] darkhanb: has joined #ruby
[16:30:07] havenwood: re_: How would you know which is the month and which is the day? Those seem ambiguous?
[16:30:11] renzhi: has joined #ruby
[16:30:13] apeiros: or you mean the format view.datetime had?
[16:30:24] red: apeiros: yes
[16:30:35] apeiros: 18:26 apeiros: now it sounds like they have "2018-06-07" and want to get "%Y-%m-%d" from that?!?
[16:30:38] apeiros: so it was ^ :D
[16:30:53] red: apeiros: isn't that possible to get
[16:30:53] apeiros: I don't think core/stdlib exposes that.
[16:30:54] havenwood: apeiros: oh, wow - good intuition!
[16:31:21] apeiros: I'm not even sure whether Date::parse builds such an expression internally when processing input
[16:31:22] havenwood: re_: Show us all the formats you might get. Or do you now know all the options?
[16:31:36] apeiros: re_: what do you need it for?
[16:31:36] Deesl: has joined #ruby
[16:33:35] alcroito: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[16:33:54] red: So user would opt for a format out of a list.. so depending on what he selected I want to convert it to his local timezone and show him in the format which he selected
[16:34:06] red: this is what i was trying to achieve apeiros havenwood
[16:34:30] apeiros: I fail to see the need to extract the format from a date/time string then.
[16:34:42] apeiros: I mean… the user explicitly selects it
[16:34:46] claudiuinberlin: has joined #ruby
[16:34:53] red: i store everything in UTC in the server
[16:35:09] akaiiro: has joined #ruby
[16:35:58] red: how can I get the same format in JS as in ruby
[16:36:43] red: is it possible to change the timezone of a ruby object in JS ? could you let me know how
[16:36:44] apeiros: a) don't format it in js, but on the server instead, b) if instead you want to format it in JS, good luck
[16:37:04] apeiros: b) cont., there's a couple of js date/time libs. but still - good luck. js & date = hell.
[16:37:18] apeiros: re_: you can't have a ruby object in js.
[16:37:20] red: how can i get the timezone of browser in server side?
[16:37:29] apeiros: you tell the server.
[16:38:45] red: apeiros: so is there any other approach?
[16:39:11] mtkd: has joined #ruby
[16:39:20] apeiros: why do you need another approach? (maybe, wouldn't come to my mind right now, though)
[16:39:57] red: apeiros: okay thanks much. havenwood you too
[16:42:17] troys: has joined #ruby
[16:45:59] cadillac_: has joined #ruby
[16:47:40] eckhardt_: has joined #ruby
[16:49:24] lxsameer: has joined #ruby
[16:49:26] r29v: has joined #ruby
[16:49:36] kryptoz: has joined #ruby
[16:53:19] nchambers: I wrote a class that is working fine, but it opens a file in the initializer. does ruby have a method for classes so that I can close it when the object is destroyed?
[16:54:53] Nicmavr: has joined #ruby
[16:56:43] elomatreb: Generally finalizers are a very fragile way to deal with resources, Ruby prefers you use explicit management (e.g. blocks) where applicable
[16:56:43] apeiros: nchambers: there are no destructors, only finalizers. and the time when they are run is not determined.
[16:57:03] apeiros: ^ what elomatreb said. preferably use blocks.
[16:58:42] mikeyg1234: has joined #ruby
[16:59:02] mikeyg1234: hi, i have a question about this script https://github.com/pingdomserver/scout-plugins/blob/master/ssl_monitor/ssl_monitor.rb
[16:59:28] mikeyg1234: its not reporting correctly, the SSL expiary
[17:02:21] Deesl: has joined #ruby
[17:03:03] nchambers: alright, thanks guys
[17:05:45] havenwood: mikeyg1234: An alternative to shelling out to `which`: require 'mkmf'; find_executable 'openssl'
[17:07:41] sameerynho: has joined #ruby
[17:07:46] havenwood: mikeyg1234: When you say the ssl expiry isn't reporting correctly, you mean when this line is run or somewhere else?: https://github.com/pingdomserver/scout-plugins/blob/master/ssl_monitor/ssl_monitor.rb#L64
[17:10:36] gr33n7007h: has joined #ruby
[17:17:06] Inline_: has joined #ruby
[17:18:29] dviola: has joined #ruby
[17:18:41] mynameisdebian: has joined #ruby
[17:18:41] ErhardtMundt: has joined #ruby
[17:18:52] Evesy: has joined #ruby
[17:18:55] chkhanch: Hello everyone, I have 2 models with links has_many, belongs_to. The model that is connected as has_many in the second model, contains the enum. Can I link belongs_to only to a specific value of enum
[17:20:07] augcesar: has joined #ruby
[17:20:08] anisha: has joined #ruby
[17:20:56] apeiros: ?rails chkhanch
[17:20:56] ruby[bot]: chkhanch: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[17:21:38] NightMonkey: Are rbenv questions appropriate here?
[17:21:43] amar_: has joined #ruby
[17:22:03] apeiros: it might have its own channel too, though
[17:23:17] NightMonkey: apeiros: Thanks.
[17:25:13] alfiemax: has joined #ruby
[17:28:01] mikeyg1234: when i say the SSL expiry isnt reporting correctly i mean like if i used a tool such as https://www.sslshopper.com/ssl-checker.html#hostname=showroomhq.com
[17:28:05] pr0ton: has joined #ruby
[17:28:33] mikeyg1234: it reports correctly as 358 days left, whereas if i run that script on my pingdom server (uses scoutd) it reports 1023 days until expiry
[17:28:40] mikeyg1234: which is crazy off ...
[17:28:46] kapil___: has joined #ruby
[17:29:05] renzhi: has joined #ruby
[17:29:18] NightMonkey: I have vagrant installed in /usr/bin/vagrant. I want to use that vagrant in rbenv environments. However, I get "rbenv: vagrant: command not found".
[17:29:48] NightMonkey: Any suggestions on how to make rbenv play nice with system-level vagrant?
[17:31:10] erratic: has joined #ruby
[17:31:32] cjohnson: I have an array that I got from JSON.parse, how can I pluck one key from each item in the array if it exists as a new array?
[17:31:36] Eiam: has joined #ruby
[17:31:47] cjohnson: Like JSON.parse(body).map(&:key) only it's not a symbol
[17:31:56] GodFather: has joined #ruby
[17:34:18] havenwood: ?rbenv NightMonkey
[17:34:18] ruby[bot]: NightMonkey: Missing command under rbenv? Did you try `rbenv rehash`?
[17:34:40] NightMonkey: @havenwood: Yep. Same result, sadly.
[17:34:59] havenwood: NightMonkey: Check your PATH?
[17:35:01] cjohnson: JSON.parse(body).collect { |e| e['key'] } is the best I've found, but then I'm going to wrap that in an rspec expect so it's a bit cumbersome
[17:35:08] Lytol: has joined #ruby
[17:35:33] orbyt_: has joined #ruby
[17:35:42] Megamos: has joined #ruby
[17:35:51] havenwood: cjohnson: Yeah, that's what I'd do: JSON.parse(body).map { |h| h['key'] }.compact
[17:38:11] Cork: has joined #ruby
[17:38:34] havenwood: cjohnson: If you wanted to be a bit more particular about adding key's values, even if `nil`: JSON.parse(body).each_with_object([]) { |h, result| result << h[key] if h.key?(key) }
[17:40:14] havenwood: cjohnson: Or two iterations might read nicer: JSON.parse(body).select { |h| h.key? key }.map { |h| h[key] }
[17:40:21] whippythellama: has joined #ruby
[17:41:07] alfiemax: has joined #ruby
[17:41:09] akaiiro: has joined #ruby
[17:42:02] NightMonkey: havenwood: Sadly (for me), it is inside a test-kitchen run, so I'm having trouble figuring out what the PATH would be there. But I'll keep digging.
[17:42:09] cjohnson: Yeah it's all too long for what I wanted to do with it
[17:42:16] cjohnson: I defined a lambda instead
[17:42:20] cjohnson: get_options = ->(g) { g['options'] }
[17:42:21] cjohnson: expect(JSON.parse(subject.body).map(&get_options)).to all(be_present)
[17:42:58] havenwood: cjohnson: that reads nicely
[17:43:37] jraavis: has joined #ruby
[17:47:37] NightMonkey: Ah, argh. There's a gem 'vagrant-wrapper' that is required for this. Not obvious, and I keep forgetting it...
[17:49:02] jrafanie: has joined #ruby
[17:49:32] lxsameer: has joined #ruby
[17:50:17] netfrog: has joined #ruby
[17:51:18] whippythellama: has joined #ruby
[17:51:18] graphene: has joined #ruby
[17:53:09] tdy: has joined #ruby
[17:54:54] baweaver: cjohnson: Sounds like a job for Mf
[17:55:24] baweaver: JSON.parse(body).map(&Mf['key'])
[17:55:54] baweaver: https://github.com/baweaver/mf
[17:56:06] havenwood: baweaver: can you compose Mfs?
[17:57:26] baweaver: Essentially they're just giving you back something like this:
[17:57:50] havenwood: ah -> a { a[b] }
[17:58:21] baweaver: >> class Mf;def self.+(b)->a{a+b};end; (1..5).map(&Mf + 5)
[17:58:21] ruby[bot]: baweaver: # => /tmp/execpad-59a8cbf2e193/source-59a8cbf2e193:7: syntax error, unexpected end-of-input, expecting ke ...check link for more (https://eval.in/1033941)
[17:58:32] cjohnson: havenwood: If it's not stdlib I don't want it
[17:58:38] cjohnson: stdlib + rails std lib
[17:58:49] baweaver: >> class Mf;def self.+(b)->a{a+b};end;end;(1..5).map(&Mf + 5)
[17:58:50] ruby[bot]: baweaver: # => [6, 7, 8, 9, 10] (https://eval.in/1033942)
[17:58:51] cjohnson: Your monstrosity was not invented here and that is a problem
[17:59:20] baweaver: 'tis no monster good sir, merely misunderstood
[18:00:15] baweaver: Xf is more fun anyways, I agree
[18:00:21] cjohnson: Nah but really it's a one-off situation, not worth pulling a gem when a lambda solves it
[18:00:21] Asher: has joined #ruby
[18:00:35] whippythellama: has joined #ruby
[18:00:49] baweaver: https://github.com/baweaver/xf
[18:00:56] baweaver: True. Most of the time if I need something for heavy lifting it'll be Xf or Qo.
[18:01:17] baweaver: Xf is real dang handy when going through JSON logs.
[18:01:39] havenwood: interesting that Elixir deprecated Enum.filter_map: https://niallburkley.com/blog/elixir-filter-map/
[18:02:49] Mikasi: has joined #ruby
[18:03:00] Megamos: has joined #ruby
[18:09:29] mtkd: has joined #ruby
[18:09:47] alfiemax_: has joined #ruby
[18:10:59] Asher: has joined #ruby
[18:11:06] lxsameer: has joined #ruby
[18:12:33] cadillac_: has joined #ruby
[18:16:50] Deesl: has joined #ruby
[18:19:04] cadillac_: has joined #ruby
[18:19:51] Deesl: has joined #ruby
[18:21:34] alfiemax: has joined #ruby
[18:22:49] tenderlove: has joined #ruby
[18:27:54] dviola: has joined #ruby
[18:29:45] cadillac_: has joined #ruby
[18:31:23] lxsameer: has joined #ruby
[18:32:32] Deesl: has joined #ruby
[18:32:40] Rapture: has joined #ruby
[18:39:44] za1b1tsu: has joined #ruby
[18:40:51] jamesaxl: has joined #ruby
[18:43:13] cadillac_: has joined #ruby
[18:43:20] Deesl: has joined #ruby
[18:53:48] mtkd: has joined #ruby
[18:54:43] dviola: has joined #ruby
[18:58:42] Cork: has joined #ruby
[18:59:15] cthulchu: folks, I noticed that .search always keeps the order of things
[18:59:22] cthulchu: which is super comfortable
[18:59:29] cthulchu: but how reliable is it
[18:59:43] lxsameer: has joined #ruby
[18:59:50] LightStalker: has joined #ruby
[19:00:12] cthulchu: I meant .select
[19:02:02] mynameisdebian: has joined #ruby
[19:03:27] elomatreb: cthulchu: About the ordering part? Unless you have parallel code that is breaking assumptions the ordering guarantee is reliable
[19:03:46] cthulchu: very cool, thanks a lot!
[19:05:57] nowhere_man: has joined #ruby
[19:08:04] salasrod: has joined #ruby
[19:10:40] havenwood: cthulchu: Order is part of the ISO spec. It's not just an implementation detail. You can rely on the order.: "If this call results in a trueish object, append X to A."
[19:10:51] dviola: has joined #ruby
[19:11:38] havenwood: See the draft Ruby ISO: https://www.ipa.go.jp/files/000011432.pdf
[19:12:10] havenwood: (It's final and published, but just the final draft is free.)
[19:15:08] samosaphile: hey havenwood
[19:15:39] havenwood: samosaphile: hey
[19:21:42] alfiemax: has joined #ruby
[19:21:49] shinnya: has joined #ruby
[19:22:51] samosaphile: any idea how to build a web crawler/scraper in ruby? something that can for example, go through each directory and subdirectory, here: http://gentool.net/data/zh/ looking for .txt files such as http://gentool.net/data/zh/2018_07_July/09_Monday/-beginner-_EKDSILEHOIEI/17-53-11_2v2v2_wuestenf_MaSTeRAc_beginner_akagoisU_Goopher4_SolidSna.txt then like read or scrape certain info from these .txt files but not all?
[19:23:50] havenwood: samosaphile: You *could* build your own crawler. It's much easier to just use a crawler gem.
[19:24:18] weaksauce: has joined #ruby
[19:25:27] mtkd: has joined #ruby
[19:26:00] havenwood: samosaphile: Here's one: https://github.com/postmodern/spidr
[19:26:52] tdy: has joined #ruby
[19:27:19] havenwood: samosaphile: http://awesome-ruby.com/#-web-crawling
[19:27:39] havenwood: samosaphile: https://www.ruby-toolbox.com/categories/Web_Content_Scrapers
[19:27:59] jrich523: has joined #ruby
[19:29:53] nicht: has joined #ruby
[19:29:59] Asher: has joined #ruby
[19:31:25] samosaphile: is it really hard building your own? like what topics do you need to know or understand? i was thinking of using like library/framework but they all seem so bloated and like have hundreds of features but what im trying to crawl/scrape seems simple but idk
[19:31:52] lupine: not trivial, not particularly hard
[19:32:03] rawste: has joined #ruby
[19:32:05] lupine: it's just gluing net/http to nokogiri or whatever
[19:32:36] lupine: I'd just use wget --mirror
[19:34:17] dinfuehr: has joined #ruby
[19:34:43] claudiuinberlin: has joined #ruby
[19:36:45] samosaphile: wouldn't --mirror download everything?
[19:38:18] havenwood: has joined #ruby
[19:38:19] havenwood: has joined #ruby
[19:38:21] sphenxes: has joined #ruby
[19:39:28] samosaphile: well....i guess you've to download everything anyway to read/see... what is within it first and then filter / discard info you don't want...
[19:41:06] samosaphile: it's just so confusing when there's like a million frameworks to do same thing, which one to pick
[19:41:23] tycoon177: i am trying to contribute to an open source gem but am having troubles figuring out how to get an actual stack trace from minitest. The gem interfaces with activerecord and simply reports that there was an error and gives me the location of the original test in activerecord's test suite, but it doesn't give me any more code locations to check (like where the actual exception happened, for example)
[19:41:38] tycoon177: is there any way to have minitest output a full stack trace when there's an error that occurs?
[19:41:42] tycoon177: not a failure, but an error
[19:41:47] havenwood: has joined #ruby
[19:41:48] havenwood: has joined #ruby
[19:45:43] VeryBewitching: has joined #ruby
[19:49:39] fluxAeon: has joined #ruby
[19:51:04] burgestrand: has joined #ruby
[19:54:20] lxsameer: has joined #ruby
[19:55:15] samosaphile: lupine: yeah, you're right..they just downloading + html parsing... i don't need everything tho..just realized most of those folders are empty... so just need to write something like looks for folder of current month (july) and maybe previous month (june) .. then somehow like maybe do .scan/*.txt/ or some kind of regex scan for only .txt files in folder so it only download those instead of like everything else
[20:01:30] samosaphile: i just don't understand how .. like website has (A) directory with folders -> (B) sub directory with folders -> (C )the files (.rep, .jpeg, .txt) .. so like going from A -> B -> C ... do you need to download everything in B to get to C?
[20:01:50] zenspider: tycoon177: yo
[20:01:57] samosaphile: nvm, ..not trivial, just use a crawler gem
[20:02:23] tycoon177: hi zenspider o/
[20:03:11] zenspider: tycoon177: minitest always reports a backtrace on error. On failure it reports just the location of the _assertion_ in the backtrace. Can you show me an example of the problem output? (use gist or something)
[20:06:36] tycoon177: zenspider: here you go! I'm trying to help update a mssql adapter to rails 5.2 and this just isn't giving me the output that i need to track down these bugs :p https://gist.github.com/BenMcH/fb2bd18ccef112fc0320014966d494dc
[20:08:24] quobo: has joined #ruby
[20:09:28] tycoon177: sorry it's not the full test suite. there's a lot of them and one of the tests causes the whole suite to hang
[20:10:16] sidx64: has joined #ruby
[20:10:31] lxsameer: has joined #ruby
[20:11:37] planigan: has joined #ruby
[20:23:09] mtkd: has joined #ruby
[20:28:53] lxsameer: has joined #ruby
[20:29:50] mtkd: has joined #ruby
[20:36:23] tycoon177: zenspider: i was able to find that setting `BACKTRACE=yes` (anything not null, i think) in my environment, minitest is now outputting full stack traces for me :)
[20:37:03] tycoon177: so my full command is now `BACKTRACE=yes bundle exec rake test`
[20:37:30] mcritchlow: has joined #ruby
[20:40:22] hfp_work: has joined #ruby
[20:47:46] zenspider: tycoon177: sorry... catching up
[20:48:12] zenspider: tycoon177: and there isn't more output in the report below?
[20:48:55] zenspider: That's all rails obscuring minitest, tbh... Another way to do it is to run with `ruby -d` to turn off all of minitest's filtering.
[20:48:59] tycoon177: no worries! irc is async :p that's all that would be shown for each error unless i set the BACKTRACE env variable
[20:49:06] zenspider: But then you see EVERY exception as it is thrown
[20:49:25] zenspider: turn off the inline error reporting and I think you'll get better output
[20:49:32] zenspider: man I hate what they've done to minitest
[20:50:45] lxsameer: has joined #ruby
[20:50:53] zenspider: I usually run rails tests with `rake` instead of `rails test` to bypass a lot of the stuff they hook up
[20:51:18] zenspider: `rails` is basically just a messy front end for `rake` anyways. messy and slower
[20:56:18] dviola: has joined #ruby
[20:56:28] cthulchu: ok, so any number or string is truthy
[20:58:55] zenspider: every object is truthy except false and nil
[21:01:36] Mrgoose2: has joined #ruby
[21:03:44] zenspider: how "reliable" is select?!?
[21:03:52] zenspider: wtf does that even mean?
[21:04:05] apeiros: I never trusted it. it always seemed sketchy.
[21:04:19] apeiros: I mean… it selects. sounds so biased.
[21:04:21] zenspider: I'm going back to coding in C+-
[21:04:48] zenspider: (and OOOLD april fools joke for a language called "C, more or less")
[21:04:52] zenspider: I should dig that up
[21:05:20] Eiam: select sometimes fails to select, kappa.
[21:05:44] apeiros: I find elect much more trusty
[21:05:57] Eiam: the bug in which 90% of my code stops working immediately
[21:05:58] zenspider: Can't find it. There's a lot of papers now that use "C; (more or less)". Stupid google.
[21:06:10] zenspider: apeiros: you can't trust elect! Vote rigging!
[21:06:28] apeiros: you just have to pass the right block to gerrymander!
[21:07:05] Eiam: but it keeps re-writing my blocks every election
[21:07:14] zenspider: oh. apparently it was april, but not april 1.
[21:07:19] zenspider: https://www.gnu.org/fun/jokes/c+-.en.html
[21:08:43] lxsameer: has joined #ruby
[21:10:59] hfp_work: has joined #ruby
[21:13:18] rwb: has joined #ruby
[21:13:40] tycoon177: zenspider: it may seem silly, but that's the desired behavior in this case (seeing exceptions as they're thrown) because my test suite never finishes due to a weird test that uses 2 nested forks in the activerecord codebase
[21:15:04] alfiemax: has joined #ruby
[21:16:54] r29v: has joined #ruby
[21:19:04] FernandoBasso: has joined #ruby
[21:20:25] mynameisdebian: has joined #ruby
[21:22:06] zenspider: tycoon177: And you're trying to identify the tests causing that? There are better ways. Running `rake TESTOPTS=-v` will show all the tests AS they are running.
[21:22:15] zachk: has joined #ruby
[21:22:16] zachk: has joined #ruby
[21:23:15] zenspider: unfortunately, the "never finishing test suite" doesn't lend itself well to minitest-bisect... but maybe you could put in some sort of "if it takes longer than N seconds, exit non-zero" or some other construct to make minitest-bisect work properly
[21:23:23] tycoon177: zenspider: nah, i've identified the test, but not why it's failing on rails 5.2. right now, i'm just trying to update a gem to help out the maintainer since our company uses his gem in every single project
[21:23:29] hfp_work: has joined #ruby
[21:24:30] zenspider: gotcha. If you need some help, I do consult. Lemme know if I can help.
[21:24:49] tycoon177: ah no worries. thank you though!
[21:24:50] mikeyg1234: hey i have a problem... so im tryng to use this script to give me the days left until SSL certificate expires https://github.com/pingdomserver/scout-plugins/blob/master/ssl_monitor/ssl_monitor.rb
[21:25:03] mikeyg1234: but its spitting out 1023 days
[21:25:19] ur5us: has joined #ruby
[21:25:21] mikeyg1234: but i check with echo | openssl s_client -servername www.showroomhq.com -connect www.showroomhq.com:443 2>/dev/null | openssl x509 -noout -enddate
[21:25:30] mikeyg1234: and its definitely not 1023 days
[21:28:57] zenspider: your code is not really written in a way to make it usable here. I'd focus on line 48 and go backwards from there. Also not sure if you really need to do any of that shell stuff to get this info tho.
[21:29:24] mikeyg1234: its ruby isn tit?
[21:32:28] RougeR: has joined #ruby
[21:32:28] RougeR: has joined #ruby
[21:33:56] dinfuehr: has joined #ruby
[21:35:20] zenspider: mikeyg1234: and therefore always runs and always works? You provided a file in a library, not a reproducible problem.
[21:35:59] zenspider: so I pointed you at the problem location and you can work it backwards from there
[21:36:12] mikeyg1234: thanks ill take a look
[21:36:25] mikeyg1234: this is a scoutd script
[21:36:54] beefjoe: has joined #ruby
[21:38:22] zenspider: this is a cleaner way to run that program btw:
[21:38:30] zenspider: openssl s_client -servername www.showroomhq.com -connect www.showroomhq.com:443 < /dev/null 2> /dev/null | openssl x509 -noout -enddate
[21:41:50] griffindy: has joined #ruby
[21:48:55] lxsameer: has joined #ruby
[21:49:29] ^mtkd: has joined #ruby
[21:52:20] mikeyg1234: i figured out wghat the issue is
[21:52:23] mikeyg1234: gotta specify the SNI
[21:52:32] mikeyg1234: since it has multiple SSL certs on that one IP
[21:52:54] mikeyg1234: it grabbed the wrong one for me
[21:53:45] ur5us: has joined #ruby
[21:58:05] zenspider: so is 1023 the right answer?
[21:58:16] mikeyg1234: nope its 358
[21:58:51] nicesignal: has joined #ruby
[21:59:43] mikeyg1234: "SNI stands for Server Name Indication and is an extension of the TLS protocol. It indicates which hostname is being contacted by the browser at the beginning of the 'handshake' process. This technology allows a server to connect multiple SSL Certificates to one IP address and gate"
[22:00:02] mikeyg1234: it was a simple fix, i just had to specifiy the domain www.showroomhq.com in the SNI field of that script
[22:04:34] _aeris_: has joined #ruby
[22:04:51] zenspider: better: https://gist.github.com/02a682a4d47ac875f305aa29f80866ad
[22:04:54] zenspider: but you left... so whatever
[22:07:05] zenspider: (3.3x faster)
[22:08:03] darix: has joined #ruby
[22:11:32] miguel: has joined #ruby
[22:12:40] lxsameer: has joined #ruby
[22:16:23] blackmesa: has joined #ruby
[22:34:49] alfiemax: has joined #ruby
[22:36:55] jhack: has joined #ruby
[22:42:19] jhack: has joined #ruby
[22:45:23] mynameisdebian: has joined #ruby
[22:51:40] blackmesa: has joined #ruby
[22:54:20] ellcs: has joined #ruby
[22:57:39] jasmith: has joined #ruby
[23:00:15] lxsameer: has joined #ruby
[23:01:34] eckhardt_: has joined #ruby
[23:03:17] nicht: has joined #ruby
[23:03:23] pr0ton: has joined #ruby
[23:18:11] lxsameer: has joined #ruby
[23:21:36] donofrio_: has joined #ruby
[23:21:41] Pupeno_: has joined #ruby
[23:22:27] apeiros__: has joined #ruby
[23:22:46] jhack_: has joined #ruby
[23:22:47] Tempesta_: has joined #ruby
[23:22:51] mozzarel1: has joined #ruby
[23:23:39] SirFunk: has joined #ruby
[23:23:48] pelegreno: has joined #ruby
[23:25:01] fluxAeon_: has joined #ruby
[23:25:06] arooni: has joined #ruby
[23:25:09] rjungemann: has joined #ruby
[23:25:19] Azure: has joined #ruby
[23:25:36] jwheare: has joined #ruby
[23:25:40] IanMalcolm: has joined #ruby
[23:29:04] ren0v0: has joined #ruby
[23:29:35] kujira: has joined #ruby
[23:30:59] blackmesa: has joined #ruby
[23:34:32] orbyt_: has joined #ruby
[23:37:08] lxsameer: has joined #ruby
[23:38:48] Xiti: has joined #ruby
[23:39:34] dtzuzu: has joined #ruby
[23:46:35] shinnya: has joined #ruby
[23:51:05] mynameisdebian: has joined #ruby
[23:51:42] willthechill: has joined #ruby
[23:53:47] mikeiniowa: has joined #ruby