« Back to channel list

#ruby - 02 September 2017

« Back 1 day Forward 1 day »
[00:00:53] aribas: llike https://github.com/okkez/redmine_full_text_search/blob/master/Gemfile
[00:02:55] canteen4: has joined #ruby
[00:03:29] ramfjord: has joined #ruby
[00:05:30] canteen4: has joined #ruby
[00:05:55] pi1: has joined #ruby
[00:05:57] karstensrage: has joined #ruby
[00:06:02] karstensrage: has left #ruby: ("Leaving")
[00:06:11] hutch34: has joined #ruby
[00:06:58] mtkd: has joined #ruby
[00:09:45] canteen4: has joined #ruby
[00:10:49] ramfjord: has joined #ruby
[00:12:31] canteen4: has joined #ruby
[00:14:09] canteen4: has joined #ruby
[00:16:50] ramfjord: has joined #ruby
[00:16:54] enterprisey: has joined #ruby
[00:17:41] kobain: has joined #ruby
[00:20:43] bronson: has joined #ruby
[00:22:07] pi4: has joined #ruby
[00:22:11] orbyt_: has joined #ruby
[00:22:55] ramfjord: has joined #ruby
[00:23:03] govg: has joined #ruby
[00:24:44] canteen4: has joined #ruby
[00:25:06] konsolebox: has joined #ruby
[00:25:37] pi1: has joined #ruby
[00:25:39] dmtd: has joined #ruby
[00:26:45] orbyt_: has joined #ruby
[00:29:36] govg: has joined #ruby
[00:31:05] ramfjord: has joined #ruby
[00:31:17] canteen4: has joined #ruby
[00:31:43] _sfiguser: any good machine learning module for ruby ?
[00:33:21] canteen4: has joined #ruby
[00:34:22] balo: has joined #ruby
[00:37:05] ramfjord: has joined #ruby
[00:37:40] canteen4: has joined #ruby
[00:38:00] tenderlo_: has joined #ruby
[00:38:17] snapcase: has joined #ruby
[00:38:28] al2o3-cr: thewhattttttt?
[00:38:45] icedragon: has joined #ruby
[00:38:57] al2o3-cr: _sfiguser: explain moaaaar?
[00:39:49] KrzaQ: has joined #ruby
[00:39:54] timmow: has joined #ruby
[00:40:29] Scient: has joined #ruby
[00:41:12] _sfiguser: al2o3-cr, what should i explain ?
[00:43:06] ramfjord: has joined #ruby
[00:44:30] canteen4: has joined #ruby
[00:44:33] al2o3-cr: _sfiguser: nothing, ? :) : :(
[00:44:59] bkxd: has joined #ruby
[00:46:47] _sfiguser: al2o3-cr, is there any good machine learning library/module for ruby ?
[00:46:55] canteen4: has joined #ruby
[00:48:06] samlisl_: has joined #ruby
[00:48:16] al2o3-cr: _sfiguser: not that i'm aware of
[00:49:18] canteen4: has joined #ruby
[00:49:59] cdg: has joined #ruby
[00:50:31] ikbenhet: has joined #ruby
[00:51:20] ramfjord: has joined #ruby
[00:51:33] al2o3-cr: _sfiguser: why'd you need such a thing?
[00:51:40] canteen4: has joined #ruby
[00:52:06] hutch34: has joined #ruby
[00:53:38] _sfiguser: al2o3-cr, maybe because i'm doing machine learning...
[00:53:46] canteen4: has joined #ruby
[00:53:47] _sfiguser: like build neural networks and such things...
[00:54:55] al2o3-cr: _sfiguser: sweet.
[00:56:19] al2o3-cr: _sfiguser: matress topper
[00:57:20] ramfjord: has joined #ruby
[00:57:44] cdg: has joined #ruby
[00:59:56] canteen4: has joined #ruby
[01:03:22] ramfjord: has joined #ruby
[01:05:13] d^sh: has joined #ruby
[01:06:55] canteen4: has joined #ruby
[01:09:09] cdg: has joined #ruby
[01:09:27] canteen4: has joined #ruby
[01:10:55] raynold: has joined #ruby
[01:12:15] raynold: ahh it's a wonderful day :D
[01:13:53] canteen4: has joined #ruby
[01:14:27] Dark_Arc: has joined #ruby
[01:16:44] Dark_Arc: has joined #ruby
[01:18:23] canteen4: has joined #ruby
[01:18:49] al2o3-cr: raynold: for what?
[01:20:26] canteen4: has joined #ruby
[01:22:06] canteen4: has joined #ruby
[01:22:09] sneakerhax: has joined #ruby
[01:23:48] canteen4: has joined #ruby
[01:25:26] canteen4: has joined #ruby
[01:25:29] bkxd_: has joined #ruby
[01:26:58] al2o3-cr: raynold: i like your style
[01:29:41] canteen4: has joined #ruby
[01:30:29] bkxd: has joined #ruby
[01:31:12] nofxx: has joined #ruby
[01:33:22] svankmajer: has joined #ruby
[01:33:23] canteen4: has joined #ruby
[01:35:03] canteen4: has joined #ruby
[01:36:43] canteen4: has joined #ruby
[01:38:21] canteen4: has joined #ruby
[01:40:01] canteen4: has joined #ruby
[01:41:43] canteen4: has joined #ruby
[01:42:41] ozcanesen: has joined #ruby
[01:44:19] canteen4: has joined #ruby
[01:45:58] canteen4: has joined #ruby
[01:47:41] canteen4: has joined #ruby
[01:48:58] pi4: has joined #ruby
[01:51:27] canteen4: has joined #ruby
[01:53:31] cdg: has joined #ruby
[01:53:34] funkytwig: I have an arcitectural question, I posted to to ruby on rails talk (https://groups.google.com/forum/#!topic/rubyonrails-talk/MA8I-giPyR4)as its quite long. If anyone can have a lok that would be great.
[01:53:41] canteen4: has joined #ruby
[01:55:22] canteen4: has joined #ruby
[01:56:19] imode: shot in the dark here: anybody working with sinatra, how do get rid of pesky newlines and indentation issues with erb templates?
[01:56:48] gfvcastro: has joined #ruby
[01:59:11] nofxx: funkytwig, go sidekiq, put scrape in a worker, all rest is just CRUD
[01:59:16] gizmore|2: has joined #ruby
[02:00:00] nofxx: imode, you'll find on google, I always need to go there to remember that haha... btw, you can use haml or slim in sinatra easily
[02:00:08] elomatreb: imode: You'll probably need to be more specific
[02:00:22] imode: nofxx: honestly I think I'll just use haml.
[02:00:22] elomatreb: There's -%> that suppresses a single following newline, if that helps
[02:00:29] nofxx: elomatreb, there's some default in sinatra to <br> stuff
[02:00:41] nofxx: elomatreb, that...!
[02:00:47] imode: elomatreb: yeah, if I try that in sinatra I get a syntax error.
[02:01:09] imode: there was supposedly a setting you could set but for the life of me I can't find any documentation on it.
[02:01:23] mim1k: has joined #ruby
[02:02:01] nofxx: funkytwig, also, you could build a not so hardcoded scraper, eg move to bank where to go and what xpath to look for
[02:02:18] nofxx: or use some IA to read the page better heh
[02:02:27] svankmajer: has joined #ruby
[02:02:51] elomatreb: imode: There are some general options for Erb but I don't know how you'd pass them to the engine in sinatra, sorry. https://ruby-doc.org/stdlib-2.4.1/libdoc/erb/rdoc/ERB.html#method-c-new
[02:03:21] imode: 's all good. thanks though!
[02:03:48] d^sh: has joined #ruby
[02:05:56] ramfjord: has joined #ruby
[02:08:04] canteen4: has joined #ruby
[02:08:20] twillkens: has joined #ruby
[02:10:01] canteen4: has joined #ruby
[02:10:42] funkytwig: nofxx, so by go in CRUD you mean in the controller?
[02:12:21] canteen4: has joined #ruby
[02:12:23] ramfjord: has joined #ruby
[02:13:01] funkytwig: nofxx, Ime using Nokogiri, the scrape class is just a wrapper for it.
[02:14:06] funkytwig: nofxx, the scripts basicaly map the scraped data into the events table.
[02:15:29] cconstantine: has joined #ruby
[02:17:06] canteen4: has joined #ruby
[02:17:28] cconstantine: I'm thinking about building a gem with native extensions for a c++ library I'm writing. My library uses a slightly non-trivial cmake build system and I'm wondering how easy it is to make use of that when building the native extension. All my googling is just giving me people failing to install gems with native extensions :(
[02:18:22] ramfjord: has joined #ruby
[02:20:54] canteen4: has joined #ruby
[02:22:34] canteen4: has joined #ruby
[02:24:19] canteen4: has joined #ruby
[02:24:49] auv: hey folk!
[02:26:29] canteen4: has joined #ruby
[02:28:14] canteen4: has joined #ruby
[02:29:56] auv: How does it work when exceptions occur after another raise-rescue pair happens?
[02:29:56] canteen4: has joined #ruby
[02:31:39] canteen4: has joined #ruby
[02:33:20] canteen4: has joined #ruby
[02:33:56] ramfjord: has joined #ruby
[02:35:34] canteen4: has joined #ruby
[02:36:08] r_hector: has joined #ruby
[02:36:40] auv: nvm, i made some sample code and that doesn't seem to be the problem I'm facing
[02:37:24] r_hector: if I have the debian passenger package installed, I shouldn't need to "gem install passenger", right? Or does that do something else?
[02:37:37] r_hector: ACTION is new to ruby (trying to install redmine)
[02:40:04] canteen4: has joined #ruby
[02:43:44] canteen4: has joined #ruby
[02:45:18] funkytwig: has joined #ruby
[02:45:24] canteen4: has joined #ruby
[02:47:07] canteen4: has joined #ruby
[02:48:46] canteen4: has joined #ruby
[02:49:51] jokester: if you are using bundler to manage deps, it's likely to install a new version
[02:50:14] swills: has joined #ruby
[02:50:14] swills: has joined #ruby
[02:50:40] r_hector: jokester: that seems to be what's suggested in the howtos I've seen
[02:51:03] r_hector: so I should then avoid installing the debian package?
[02:51:45] r_hector: I'm now thinking it might be easier to not install debs for either passenger or redmine itself
[02:53:26] canteen4: has joined #ruby
[02:53:43] jokester: it's just debian's passenter wont be used anyway, so not installing would be simpler
[02:56:20] r_hector: would something else (thin?) be simpler than passenger? Most of the passenger info I can find talks about using the apache module, but I'll be running it behind a reverse proxy (nginx on a different host), so a standalone lightweight server is what I'm after
[02:57:26] bmurt: has joined #ruby
[02:59:43] canteen4: has joined #ruby
[03:00:09] cadillac_: has joined #ruby
[03:01:48] canteen4: has joined #ruby
[03:03:52] Jameser: has joined #ruby
[03:03:55] canteen4: has joined #ruby
[03:05:40] canteen4: has joined #ruby
[03:06:13] RedKingCrab: yeah, thin and all ruby web servers work well in that setup
[03:07:01] guardianx: has joined #ruby
[03:07:24] auv: Oh man waiting for CI sucks
[03:09:22] canteen4: has joined #ruby
[03:11:46] canteen4: has joined #ruby
[03:13:26] canteen4: has joined #ruby
[03:14:41] bmurt: has joined #ruby
[03:15:01] linda: has joined #ruby
[03:16:08] linda: has left #ruby: ("Saliendo")
[03:17:02] gothicsouth: has joined #ruby
[03:19:27] __Yiota: has joined #ruby
[03:19:34] canteen4: has joined #ruby
[03:19:41] phinxy: has joined #ruby
[03:19:47] imode: has haml been abandoned?
[03:20:44] imode: appears not, but the main site appears to be.
[03:22:37] nofxx: imode, check hamlit, also slim is more on the hype, let's say
[03:23:20] imode: nofxx: how mature is it?
[03:23:57] nofxx: slim or hamlit? both are
[03:24:46] imode: interesting. what's your personal preference?
[03:25:10] nofxx: slim looks lil cleaner, but imho the best feat is html props. eg: a[href='....'] vs a(href='')
[03:25:24] nofxx: let's callit ctrl+v friendly ;)
[03:26:03] nofxx: imode, if it's not html or erb I'm ok with heh... life is too short for html
[03:26:14] nofxx: for closing tags
[03:27:09] nofxx: imode, the haml example is wrong .. need => ... btw*
[03:29:41] imode: at this point rolling my own is looking like something advantageous.
[03:29:46] canteen4: has joined #ruby
[03:30:47] nofxx: imode, btw, there's converters for all, just put a 2 in google: html2slim, haml2slim....
[03:31:10] imode: nofxx: just looking to see what the most "ruby-like" way for spitting out markup would be.
[03:33:57] canteen4: has joined #ruby
[03:35:37] coderphive: has joined #ruby
[03:35:38] canteen4: has joined #ruby
[03:37:17] canteen4: has joined #ruby
[03:38:58] canteen4: has joined #ruby
[03:39:08] eckhardt: has joined #ruby
[03:40:01] brent__: has joined #ruby
[03:42:56] canteen4: has joined #ruby
[03:44:38] canteen4: has joined #ruby
[03:46:21] canteen4: has joined #ruby
[03:48:01] canteen4: has joined #ruby
[03:48:23] joelroa: has joined #ruby
[03:49:56] eightlimbed: has joined #ruby
[03:50:02] canteen4: has joined #ruby
[03:50:36] alex``: has joined #ruby
[03:54:13] canteen4: has joined #ruby
[03:54:20] apparition47: has joined #ruby
[03:56:01] canteen4: has joined #ruby
[03:57:47] canteen4: has joined #ruby
[03:59:28] canteen4: has joined #ruby
[04:00:14] Defenestrate: has joined #ruby
[04:00:14] Defenestrate: has joined #ruby
[04:01:37] nacsurte: has joined #ruby
[04:01:52] canteen4: has joined #ruby
[04:01:55] mim1k: has joined #ruby
[04:04:21] canteen4: has joined #ruby
[04:06:16] canteen4: has joined #ruby
[04:06:34] gix: has joined #ruby
[04:08:31] canteen4: has joined #ruby
[04:09:19] cdg: has joined #ruby
[04:11:01] canteen4: has joined #ruby
[04:11:14] cadillac_: has joined #ruby
[04:12:56] canteen4: has joined #ruby
[04:13:57] imode: so many ruby modules are abandoned.
[04:14:21] govg: has joined #ruby
[04:17:06] canteen4: has joined #ruby
[04:18:45] canteen4: has joined #ruby
[04:20:26] canteen4: has joined #ruby
[04:20:29] cdg: has joined #ruby
[04:22:10] canteen4: has joined #ruby
[04:23:52] canteen4: has joined #ruby
[04:25:21] coderphive: has joined #ruby
[04:27:53] canteen4: has joined #ruby
[04:29:50] canteen4: has joined #ruby
[04:31:06] phinxy: has joined #ruby
[04:32:37] aduabu: has joined #ruby
[04:34:45] goyox86: has joined #ruby
[04:38:32] naprimer2: has joined #ruby
[04:38:33] am55: has joined #ruby
[04:38:45] Toledo: has joined #ruby
[04:38:49] _aeris_: has joined #ruby
[04:38:52] uZiel: has joined #ruby
[04:39:40] agent_white: has joined #ruby
[04:40:10] aglorei1: has joined #ruby
[04:40:22] agent_white: Evenin' folks.
[04:42:07] paradisaeidae: has joined #ruby
[04:42:09] paradisaeidae_: has joined #ruby
[04:43:02] canteen4: has joined #ruby
[04:46:02] aduabu: has joined #ruby
[04:50:12] canteen4: has joined #ruby
[04:51:50] canteen4: has joined #ruby
[04:52:44] f32: has joined #ruby
[04:52:49] f32: hello everyone
[04:52:58] f32: what does payload = {:data => 'test'} actually mean?
[04:53:19] f32: it looks like its creating a object "payload" with 1 field/method "data"
[04:53:26] f32: but im not entirely clear
[04:53:57] ornerymoose: has joined #ruby
[04:54:13] f32: oh, its a hash
[04:54:20] DrCode: has joined #ruby
[04:55:57] canteen4: has joined #ruby
[04:55:58] f32: is there a particular reason for this syntax?
[04:56:18] f32: :data is unusual, and the => is even more unusual
[04:57:57] canteen4: has joined #ruby
[04:59:52] canteen4: has joined #ruby
[05:00:56] vondruch: has joined #ruby
[05:00:57] elomatreb: f32: The => syntax is the general-purpose hash syntax, you can have any type of object as the key on the left side
[05:01:30] elomatreb: The key: value syntax is just syntax sugar for { :key => value }, where `:key` is a Symbol
[05:01:31] f32: elomatreb: yeah, that's useful, i guess im using to seeing => in lambda terms
[05:01:37] elomatreb: -> is lambda
[05:01:45] llua: has joined #ruby
[05:03:37] phinxy: has joined #ruby
[05:03:40] canteen4: has joined #ruby
[05:04:12] gothicsouth: has joined #ruby
[05:04:28] eyda|mon: has joined #ruby
[05:05:01] eyda|mon: what ruby gem has functions for Fixnum minutes.ago etc ? and time_since_in_words ?
[05:05:23] elomatreb: That's from Rails, specifically the active_support/time part
[05:05:42] phinxy: has left #ruby: ()
[05:06:18] eyda|mon: thank you much
[05:06:21] vondruch: has joined #ruby
[05:08:02] canteen4: has joined #ruby
[05:09:30] eyda|mon: how do I access time_ago_in_words ?
[05:09:42] canteen4: has joined #ruby
[05:10:15] eyda|mon: or something similar
[05:10:54] vondruch: has joined #ruby
[05:11:21] eyda|mon: ooks like I will need action_view too
[05:11:57] elomatreb: If you want those in a non-Rails environment you'll need to install the active_support gem, and require the appropriate files for those methods
[05:12:24] elomatreb: http://guides.rubyonrails.org/active_support_core_extensions.html Lists where which extensions are defined, you should be able to just require the files
[05:13:57] mitt3ns: has joined #ruby
[05:14:05] canteen4: has joined #ruby
[05:15:45] canteen4: has joined #ruby
[05:16:21] vondruch: has joined #ruby
[05:19:42] canteen4: has joined #ruby
[05:20:05] eckhardt: has joined #ruby
[05:21:44] canteen4: has joined #ruby
[05:23:26] canteen4: has joined #ruby
[05:25:09] canteen4: has joined #ruby
[05:26:45] aglorei1: has joined #ruby
[05:29:44] Bock: has joined #ruby
[05:30:25] DrCode: has joined #ruby
[05:32:07] canteen4: has joined #ruby
[05:32:48] nate-: has joined #ruby
[05:36:00] canteen4: has joined #ruby
[05:37:41] canteen4: has joined #ruby
[05:38:04] uZiel: has joined #ruby
[05:38:07] nate-: has left #ruby: ()
[05:39:07] Guest17_: has joined #ruby
[05:42:02] canteen4: has joined #ruby
[05:43:02] joelroa: has joined #ruby
[05:45:38] bambanx: has joined #ruby
[05:48:21] canteen4: has joined #ruby
[05:49:23] uZiel: has joined #ruby
[05:50:49] cdg: has joined #ruby
[05:52:29] canteen4: has joined #ruby
[05:54:07] canteen4: has joined #ruby
[05:57:53] FahmeF: has joined #ruby
[05:57:55] canteen4: has joined #ruby
[06:01:39] canteen4: has joined #ruby
[06:01:51] nacsurte: has joined #ruby
[06:02:18] mim1k: has joined #ruby
[06:03:59] canteen4: has joined #ruby
[06:05:37] canteen4: has joined #ruby
[06:09:24] canteen4: has joined #ruby
[06:11:02] canteen4: has joined #ruby
[06:12:42] canteen4: has joined #ruby
[06:14:22] canteen4: has joined #ruby
[06:17:50] gothicsouth: has joined #ruby
[06:20:22] canteen4: has joined #ruby
[06:21:54] mkali: has joined #ruby
[06:22:04] canteen4: has joined #ruby
[06:22:09] r_hector: is there any documentation for thin beyond the readme file?
[06:23:49] canteen4: has joined #ruby
[06:24:58] MrSparkle: has joined #ruby
[06:25:29] ramfjord: has joined #ruby
[06:25:30] ramfjord_: has joined #ruby
[06:27:40] canteen4: has joined #ruby
[06:29:19] canteen4: has joined #ruby
[06:29:47] jinie: has joined #ruby
[06:33:09] canteen4: has joined #ruby
[06:34:12] deduped: has joined #ruby
[06:36:59] canteen4: has joined #ruby
[06:38:38] canteen4: has joined #ruby
[06:40:18] canteen4: has joined #ruby
[06:41:58] canteen4: has joined #ruby
[06:45:27] jamesaxl: has joined #ruby
[06:46:08] harai: has joined #ruby
[06:48:06] canteen4: has joined #ruby
[06:49:53] phaul: has joined #ruby
[06:52:04] canteen4: has joined #ruby
[06:53:44] canteen4: has joined #ruby
[06:57:28] canteen4: has joined #ruby
[07:00:14] aduabu: has joined #ruby
[07:01:55] canteen4: has joined #ruby
[07:03:34] canteen4: has joined #ruby
[07:04:09] kluge: has joined #ruby
[07:06:00] jamesaxl: has joined #ruby
[07:09:09] harfangk: has joined #ruby
[07:10:48] canteen4: has joined #ruby
[07:11:58] MrSparkle: has joined #ruby
[07:14:23] jamesaxl: has joined #ruby
[07:14:36] burgestrand: has joined #ruby
[07:15:15] conta: has joined #ruby
[07:16:03] kreantos: has joined #ruby
[07:16:35] phinxy: has joined #ruby
[07:16:59] cdg: has joined #ruby
[07:17:11] raul782: has joined #ruby
[07:18:43] jamesaxl: has joined #ruby
[07:18:48] dionysus69: has joined #ruby
[07:23:14] canteen4: has joined #ruby
[07:24:53] canteen4: has joined #ruby
[07:26:15] ams__: has joined #ruby
[07:26:34] canteen4: has joined #ruby
[07:28:13] canteen4: has joined #ruby
[07:29:51] canteen4: has joined #ruby
[07:31:31] canteen4: has joined #ruby
[07:33:09] canteen4: has joined #ruby
[07:34:51] canteen4: has joined #ruby
[07:36:20] ikbenhet: has joined #ruby
[07:36:33] canteen4: has joined #ruby
[07:38:12] canteen4: has joined #ruby
[07:39:45] Ishido: has joined #ruby
[07:40:31] brent__: has joined #ruby
[07:42:14] canteen4: has joined #ruby
[07:43:57] canteen4: has joined #ruby
[07:44:07] bkxd_: has joined #ruby
[07:46:57] phinxy: has joined #ruby
[07:48:34] canteen4: has joined #ruby
[07:48:39] claudiuinberlin: has joined #ruby
[07:49:14] bkxd: has joined #ruby
[07:49:15] mikecmpbll: has joined #ruby
[07:49:25] cdg: has joined #ruby
[07:50:02] jamesaxl: has joined #ruby
[07:50:19] harfangk: has joined #ruby
[07:52:34] canteen4: has joined #ruby
[07:54:17] canteen4: has joined #ruby
[07:56:47] canteen4: has joined #ruby
[07:57:09] Mon_Ouie: has joined #ruby
[07:58:49] canteen4: has joined #ruby
[08:00:29] canteen4: has joined #ruby
[08:02:03] nacsurte: has joined #ruby
[08:02:19] canteen4: has joined #ruby
[08:02:47] mim1k: has joined #ruby
[08:03:26] phinxy: has joined #ruby
[08:06:00] canteen4: has joined #ruby
[08:09:46] phinxy: has joined #ruby
[08:12:21] canteen4: has joined #ruby
[08:12:21] ramfjord: has joined #ruby
[08:12:22] ramfjord_: has joined #ruby
[08:14:00] canteen4: has joined #ruby
[08:14:50] cdg: has joined #ruby
[08:16:35] canteen4: has joined #ruby
[08:20:33] aduabu: has joined #ruby
[08:22:26] canteen4: has joined #ruby
[08:24:44] canteen4: has joined #ruby
[08:26:49] ozcanesen: has joined #ruby
[08:27:56] ramfjord: has joined #ruby
[08:29:34] canteen4: has joined #ruby
[08:31:12] canteen4: has joined #ruby
[08:31:49] raul782: has joined #ruby
[08:34:46] raul782: has joined #ruby
[08:36:06] lxsameer: has joined #ruby
[08:37:41] MarkBilk: has joined #ruby
[08:37:47] canteen4: has joined #ruby
[08:40:35] chromis: has joined #ruby
[08:41:51] Mon_Ouie: has joined #ruby
[08:42:11] nofxx: has joined #ruby
[08:43:50] canteen4: has joined #ruby
[08:44:12] bkxd: has joined #ruby
[08:45:39] naitian: has joined #ruby
[08:45:53] canteen4: has joined #ruby
[08:47:35] canteen4: has joined #ruby
[08:48:44] ramfjord: has joined #ruby
[08:48:45] ramfjord_: has joined #ruby
[08:49:49] xall: has joined #ruby
[08:51:00] marr: has joined #ruby
[08:52:43] canteen4: has joined #ruby
[08:55:11] canteen4: has joined #ruby
[08:59:00] canteen4: has joined #ruby
[09:00:25] nofxxx: has joined #ruby
[09:01:45] mim1k: has joined #ruby
[09:03:23] canteen4: has joined #ruby
[09:04:24] funkycrunchy: has joined #ruby
[09:06:05] yqt: has joined #ruby
[09:06:40] uZiel: has joined #ruby
[09:09:21] canteen4: has joined #ruby
[09:11:00] canteen4: has joined #ruby
[09:12:40] canteen4: has joined #ruby
[09:14:19] canteen4: has joined #ruby
[09:16:34] canteen4: has joined #ruby
[09:18:17] canteen4: has joined #ruby
[09:19:59] canteen4: has joined #ruby
[09:21:37] canteen4: has joined #ruby
[09:21:38] burgestrand: has joined #ruby
[09:22:16] kreantos: has joined #ruby
[09:23:57] canteen4: has joined #ruby
[09:25:39] canteen4: has joined #ruby
[09:27:44] konsolebox: has joined #ruby
[09:29:25] canteen4: has joined #ruby
[09:31:04] canteen4: has joined #ruby
[09:32:42] canteen4: has joined #ruby
[09:34:25] canteen4: has joined #ruby
[09:36:02] funkycrunchy: has joined #ruby
[09:36:38] chaugiang: has joined #ruby
[09:36:46] chaugiang: has left #ruby: ()
[09:38:25] canteen4: has joined #ruby
[09:40:19] canteen4: has joined #ruby
[09:41:30] mtkd: has joined #ruby
[09:42:45] ramfjord: has joined #ruby
[09:42:46] ramfjord_: has joined #ruby
[09:44:27] canteen4: has joined #ruby
[09:46:05] canteen4: has joined #ruby
[09:47:13] pandaant: has joined #ruby
[09:49:45] canteen4: has joined #ruby
[09:51:26] maryo: has joined #ruby
[09:51:27] canteen4: has joined #ruby
[09:53:06] canteen4: has joined #ruby
[09:53:47] bronson: has joined #ruby
[09:56:34] apparition47: has joined #ruby
[09:56:48] canteen4: has joined #ruby
[09:59:24] mim1k: has joined #ruby
[10:00:29] uZiel: has joined #ruby
[10:02:17] nacsurte: has joined #ruby
[10:03:57] canteen4: has joined #ruby
[10:04:36] mim1k_: has joined #ruby
[10:06:18] canteen4: has joined #ruby
[10:08:13] canteen4: has joined #ruby
[10:09:07] ikbenhet: has joined #ruby
[10:09:52] konsolebox: has joined #ruby
[10:12:00] amosbird: has joined #ruby
[10:14:29] canteen4: has joined #ruby
[10:16:08] canteen4: has joined #ruby
[10:17:36] jackjackdripper: has joined #ruby
[10:17:48] canteen4: has joined #ruby
[10:17:53] Guest40: has joined #ruby
[10:19:33] canteen4: has joined #ruby
[10:21:19] canteen4: has joined #ruby
[10:21:43] burgestrand: has joined #ruby
[10:23:24] canteen4: has joined #ruby
[10:23:42] leah2: has joined #ruby
[10:24:55] al2o3-cr: has joined #ruby
[10:26:28] jamesaxl: has joined #ruby
[10:27:47] ShalokShalom_: has joined #ruby
[10:29:27] canteen4: has joined #ruby
[10:31:30] canteen4: has joined #ruby
[10:32:55] jamesaxl: has joined #ruby
[10:35:23] canteen4: has joined #ruby
[10:37:02] dionysus69: has joined #ruby
[10:37:04] canteen4: has joined #ruby
[10:38:24] kotk: has joined #ruby
[10:39:46] pandaant: has joined #ruby
[10:40:14] brent__: has joined #ruby
[10:40:29] tAn: has joined #ruby
[10:41:37] WebDawg: has joined #ruby
[10:43:15] canteen4: has joined #ruby
[10:47:01] canteen4: has joined #ruby
[10:48:41] canteen4: has joined #ruby
[10:50:21] canteen4: has joined #ruby
[10:52:00] canteen4: has joined #ruby
[10:53:41] canteen4: has joined #ruby
[10:53:47] bronson: has joined #ruby
[10:55:57] canteen4: has joined #ruby
[10:57:43] canteen4: has joined #ruby
[10:59:46] canteen4: has joined #ruby
[11:01:29] canteen4: has joined #ruby
[11:01:47] nacsurte: has joined #ruby
[11:03:28] canteen4: has joined #ruby
[11:04:08] _whitelogger: has joined #ruby
[11:05:53] canteen4: has joined #ruby
[11:07:46] canteen4: has joined #ruby
[11:10:08] canteen4: has joined #ruby
[11:12:38] canteen4: has joined #ruby
[11:13:17] ensyde: has joined #ruby
[11:14:58] canteen4: has joined #ruby
[11:16:40] canteen4: has joined #ruby
[11:18:20] canteen4: has joined #ruby
[11:20:20] canteen4: has joined #ruby
[11:22:01] canteen4: has joined #ruby
[11:23:43] canteen4: has joined #ruby
[11:24:30] tAn: has joined #ruby
[11:26:14] canteen4: has joined #ruby
[11:27:55] canteen4: has joined #ruby
[11:29:04] bkxd: has joined #ruby
[11:31:42] canteen4: has joined #ruby
[11:33:20] canteen4: has joined #ruby
[11:33:23] ltem: has joined #ruby
[11:35:29] canteen4: has joined #ruby
[11:35:52] eb0t_: has joined #ruby
[11:35:57] def_jam: has joined #ruby
[11:39:13] canteen4: has joined #ruby
[11:39:54] oleo: has joined #ruby
[11:42:51] darix: r_hector: what kind of documentation do you need?
[11:46:30] canteen4: has joined #ruby
[11:46:48] cats: has joined #ruby
[11:47:48] ikbenhet: has joined #ruby
[11:50:30] canteen4: has joined #ruby
[11:52:08] canteen4: has joined #ruby
[11:56:07] canteen4: has joined #ruby
[11:56:35] WeiJunLi: has joined #ruby
[11:58:55] bkxd_: has joined #ruby
[12:02:13] canteen4: has joined #ruby
[12:03:52] canteen4: has joined #ruby
[12:05:32] canteen4: has joined #ruby
[12:05:56] vondruch: has joined #ruby
[12:07:38] canteen4: has joined #ruby
[12:09:17] canteen4: has joined #ruby
[12:09:18] Miron: has joined #ruby
[12:09:33] cats: has joined #ruby
[12:11:05] mikecmpbll: has joined #ruby
[12:11:13] canteen4: has joined #ruby
[12:11:22] vondruch: has joined #ruby
[12:13:00] canteen4: has joined #ruby
[12:14:40] canteen4: has joined #ruby
[12:16:20] canteen4: has joined #ruby
[12:18:29] canteen4: has joined #ruby
[12:20:11] canteen4: has joined #ruby
[12:21:50] canteen4: has joined #ruby
[12:22:48] lucas: has joined #ruby
[12:25:40] canteen4: has joined #ruby
[12:26:32] admwrd: has joined #ruby
[12:29:10] phinxy: has joined #ruby
[12:30:51] t-recx: has joined #ruby
[12:32:30] canteen4: has joined #ruby
[12:34:12] canteen4: has joined #ruby
[12:35:52] canteen4: has joined #ruby
[12:37:36] canteen4: has joined #ruby
[12:39:15] canteen4: has joined #ruby
[12:40:56] canteen4: has joined #ruby
[12:42:37] canteen4: has joined #ruby
[12:44:17] canteen4: has joined #ruby
[12:44:28] dviola: has joined #ruby
[12:46:07] canteen4: has joined #ruby
[12:47:47] canteen4: has joined #ruby
[12:49:28] canteen4: has joined #ruby
[12:51:22] canteen4: has joined #ruby
[12:53:02] canteen4: has joined #ruby
[12:54:41] canteen4: has joined #ruby
[12:54:49] bronson: has joined #ruby
[12:56:29] canteen4: has joined #ruby
[12:58:12] canteen4: has joined #ruby
[12:59:26] __Yiota: has joined #ruby
[13:00:56] lxsameer: has joined #ruby
[13:02:35] canteen4: has joined #ruby
[13:04:14] canteen4: has joined #ruby
[13:05:54] canteen4: has joined #ruby
[13:07:35] canteen4: has joined #ruby
[13:09:14] canteen4: has joined #ruby
[13:10:56] canteen4: has joined #ruby
[13:11:10] fumk: has joined #ruby
[13:12:20] ikbenhet: has joined #ruby
[13:14:48] canteen4: has joined #ruby
[13:16:29] canteen4: has joined #ruby
[13:18:07] canteen4: has joined #ruby
[13:18:31] maryo: has joined #ruby
[13:19:46] ahrs: has joined #ruby
[13:20:19] jamesaxl: has joined #ruby
[13:21:58] canteen4: has joined #ruby
[13:23:40] canteen4: has joined #ruby
[13:25:21] canteen4: has joined #ruby
[13:27:34] canteen4: has joined #ruby
[13:29:15] canteen4: has joined #ruby
[13:30:54] canteen4: has joined #ruby
[13:34:43] canteen4: has joined #ruby
[13:36:24] canteen4: has joined #ruby
[13:38:06] canteen4: has joined #ruby
[13:39:32] mkali: has joined #ruby
[13:42:24] canteen4: has joined #ruby
[13:42:27] mtkd: has joined #ruby
[13:44:40] jamesaxl: has joined #ruby
[13:46:41] guille-moe: has joined #ruby
[13:46:42] canteen4: has joined #ruby
[13:48:22] canteen4: has joined #ruby
[13:49:14] DrCode: has joined #ruby
[13:49:47] hutch34: has joined #ruby
[13:52:24] canteen4: has joined #ruby
[13:54:08] canteen4: has joined #ruby
[13:55:38] phinxy: has joined #ruby
[13:57:12] phinxy: has left #ruby: ()
[13:59:58] mkali: has joined #ruby
[14:00:09] canteen4: has joined #ruby
[14:01:49] canteen4: has joined #ruby
[14:02:53] jashmatthews: has joined #ruby
[14:05:43] canteen4: has joined #ruby
[14:06:36] conta: has joined #ruby
[14:09:34] canteen4: has joined #ruby
[14:11:17] canteen4: has joined #ruby
[14:11:40] kreantos: has joined #ruby
[14:13:21] canteen4: has joined #ruby
[14:14:59] _aeris_: hello here !
[14:15:01] canteen4: has joined #ruby
[14:15:08] dionysus69: has joined #ruby
[14:15:23] _aeris_: i have question about bundler and "system" ruby binaries
[14:15:58] _aeris_: i use a custom SSH client, developed in ruby, and installed as a gem on a rbenv
[14:16:23] _aeris_: no problem to run my client in standalone way
[14:16:56] _aeris_: but when i dev on another ruby project, i'm no more able to use this custom client, because not added on the gemfile of the other project
[14:17:37] _aeris_: for exemple unable to use SSH on a rakefile to do deployment without adding my custom ssh client gem inside the gemfile…
[14:18:01] matthewd: _aeris_: I think that should only be true if you're using `bundle exec`
[14:18:44] _aeris_: and rakefile too
[14:19:11] _aeris_: (hum, no, i call bundle on the rakefile in fact…)
[14:19:26] ornerymoose: has joined #ruby
[14:19:51] matthewd: You could wrap the line in the rakefile in Bundler.with_clean_env or whatever it's called
[14:20:26] _aeris_: and is there any way to do this transparently ?
[14:20:36] matthewd: Not very pure, as it means a change to the rakefile for something that isn't really the app's fault
[14:20:40] _aeris_: it's very intrusive for the upstream project :'(
[14:20:58] matthewd: The problem is that this is basically bundler's contract: to override the ruby environment for the current process and subprocesses
[14:21:42] matthewd: Possibly replacing the standalone executable with a script that un-bundles, then runs the real one, could work
[14:21:46] _aeris_: could it be possible to use 2 rbenv, and to force the "system" binary to use another ruby stack ?
[14:22:08] _aeris_: un-bundles ?
[14:22:24] matthewd: with_clean_env again, I think
[14:23:33] matthewd: I have a horrible hack to do something along these lines on my machine, but it's nasty, and I haven't been using it long enough to claim it's reliable
[14:25:11] canteen4: has joined #ruby
[14:27:49] canteen4: has joined #ruby
[14:29:39] canteen4: has joined #ruby
[14:30:15] pi2: has joined #ruby
[14:31:56] canteen4: has joined #ruby
[14:32:51] WeiJunLi: has joined #ruby
[14:35:39] canteen4: has joined #ruby
[14:37:21] canteen4: has joined #ruby
[14:38:27] DrCode: has joined #ruby
[14:39:27] matthewd: !connection canteen4
[14:39:28] ruby[bot]: +bbb canteen4!*@*$#ruby-fix-your-connection aduabu!*@*$#ruby-fix-your-connection *!*@c-24-6-102-219.hsd1.ca.comcast.net$#ruby-fix-your-connection
[14:39:28] ruby[bot]: ruby[bot] kicked canteen4: join/part detected
[14:40:04] ocn: has joined #ruby
[14:40:11] ocn: has left #ruby: ()
[14:43:04] jamesaxl: has joined #ruby
[14:44:24] kreantos: has joined #ruby
[14:44:33] Asher: has joined #ruby
[14:46:34] m27frogy: has joined #ruby
[14:47:29] minimalism: has joined #ruby
[14:48:18] mwlang: has joined #ruby
[14:50:06] mwlang: I’m trying to use Time.at(1504227567) to get back the right value in UTC timezone. The problem is, I’m getting back that time interpreted to my local timezone. How do I cast the local time to correct UTC time?
[14:51:48] Zarthus: I think `.utc` should do the trick
[14:51:56] matthewd: mwlang: What have you tried, and how does its behaviour differ from what you're expecting?
[14:52:00] konsolebox: has joined #ruby
[14:52:38] mwlang: actually, I just realized the fallacy of my reasoning…casting the local time to UTC with #utc appears to be the number I expected.
[14:53:12] mwlang: I was thinking initially that the integral value was in UTC terms to begin with.
[14:53:30] mwlang: so getting a local time out of that initially would be an incorrect result.
[14:54:03] Zarthus: unix time generally works off of utc time to begin with, it's just ruby converting it to your systems timezone
[14:55:49] bronson: has joined #ruby
[15:01:00] hutch34: has joined #ruby
[15:05:07] goyox86: has joined #ruby
[15:05:32] ShalokShalom: there are gazillions of tutorials out there, who show the diffferent tools of a language
[15:05:48] houhoulis: has joined #ruby
[15:05:52] ShalokShalom: can anybody point me to free ressources, who guide me to the first application?
[15:05:57] segy: has joined #ruby
[15:06:14] ShalokShalom: i mean, i got all those basic things like how to deal with strings and so on
[15:06:19] ShalokShalom: how to succeed?
[15:11:42] konsolebox: has joined #ruby
[15:13:05] ikopico: ShalokShalom exercism.io is fun, learning a new language
[15:13:23] ikopico: (if that's what you meant)
[15:15:23] _aeris_: matthewd > i try to clean env with a bash script, but i don't understand something :s
[15:15:44] _aeris_: https://paste.imirhil.fr/?cc30dc6959240949#J7SbUDfWSh4+azE8nEJOx7AVI409/6z4mcloLUfqgIo=
[15:15:48] _aeris_: this is my runner script
[15:15:56] _aeris_: running from naked shell, no problem
[15:16:02] ShalokShalom: i dont know any language in practice
[15:16:10] ShalokShalom: i know them in theory
[15:16:23] _aeris_: but when run with bundle : /home/aeris/.rbenv/gems/2.4.0/gems/ssh-ident-1.0.0/bin/ssh-ident:2:in `require': cannot load such file -- ssh-ident (LoadError)
[15:16:46] ShalokShalom: and as an exmple, when i like to start a GUI for a package manager or a website, i have less clue how to start
[15:16:59] ShalokShalom: i hold the tools in my hand and have no idea how to build a house
[15:17:23] _aeris_: i don't understand why it can't find my lib :s
[15:18:42] matthewd: _aeris_: Is it getting run with the ruby you're expecting?
[15:19:09] ikopico: ShalokShalom https://rubymonk.com/ is also pretty nice
[15:19:39] twillkens: has joined #ruby
[15:19:44] _aeris_: https://paste.imirhil.fr/?be5c37d640a27614#cSjptKzDqZnfIaXX03NQRZZYyXoQJTBysHaga8fpcR4=
[15:20:43] _aeris_: it doesn't look for each installed gems, but only for the ones on the Gemfile… :'(
[15:20:53] ^mtkd: has joined #ruby
[15:23:20] matthewd: Hmm. So either you're not managing to clean up bundler completely, or something is causing it to get started again :/
[15:23:28] segy: has joined #ruby
[15:24:42] _aeris_: matthewd > ok, clean RUBYOPT too and ok with a bundler on the same rbenv
[15:24:50] matthewd: _aeris_: You could try my horrible thing if you like
[15:24:52] _aeris_: but not ok on another ruby version rbenv
[15:25:32] matthewd: So for that, you'll probably have to have the shell script load rbenv and choose the right one
[15:25:46] _aeris_: ok, forcing the rbenv version, and it's ok \o/
[15:30:25] bruno-: has joined #ruby
[15:30:31] hinbody: has joined #ruby
[15:34:27] DTZUZO: has joined #ruby
[15:35:27] bruno-: has joined #ruby
[15:39:55] jinie: has joined #ruby
[15:40:26] eroux: has joined #ruby
[15:40:28] bruno-: has joined #ruby
[15:41:30] jackjackdripper: has joined #ruby
[15:43:23] AxelAlex: has joined #ruby
[15:45:00] cconstantine: has joined #ruby
[15:45:26] bruno-: has joined #ruby
[15:47:11] djbkd: has joined #ruby
[15:50:24] bruno-: has joined #ruby
[15:51:03] hutch34: has joined #ruby
[15:53:51] banisterfiend: has joined #ruby
[15:54:21] goyox86: has joined #ruby
[15:55:28] bruno-: has joined #ruby
[15:57:57] alex``: has joined #ruby
[15:57:57] apparition47: has joined #ruby
[15:59:53] cyberRodent: has joined #ruby
[16:00:13] selim: has joined #ruby
[16:04:14] hutch34: has joined #ruby
[16:12:59] cadillac_: has joined #ruby
[16:16:31] mikecmpbll: has joined #ruby
[16:18:15] jackjackdripper: has joined #ruby
[16:22:01] therealGent: has joined #ruby
[16:22:39] halt: has joined #ruby
[16:26:23] jamesaxl: has joined #ruby
[16:28:09] gigetoo: has joined #ruby
[16:28:39] halt: has joined #ruby
[16:29:17] belmoussaoui: has joined #ruby
[16:32:18] skweek: has joined #ruby
[16:36:28] bruno-: has joined #ruby
[16:41:29] pi4: has joined #ruby
[16:41:43] runescape07rsps: has joined #ruby
[16:42:11] freeze: has joined #ruby
[16:42:20] bruno-_: has joined #ruby
[16:43:41] raynold: has joined #ruby
[16:44:44] mim1k: has joined #ruby
[16:45:11] goyox86: has left #ruby: ()
[16:45:33] goyox86: has joined #ruby
[16:46:04] guille-moe: has joined #ruby
[16:48:18] orbyt_: has joined #ruby
[16:53:21] milardovich: has joined #ruby
[16:53:47] goyox86: has left #ruby: ()
[16:54:10] goyox86: has joined #ruby
[16:55:18] goyox86_: has joined #ruby
[16:56:46] bronson: has joined #ruby
[17:03:01] gr33n7007h: has joined #ruby
[17:05:45] jackjackdripper: has joined #ruby
[17:12:27] Cohedrin_: has joined #ruby
[17:14:29] kapil___: has joined #ruby
[17:16:02] Qommand0r: has joined #ruby
[17:20:17] guille-moe: has joined #ruby
[17:20:25] hutch34: has joined #ruby
[17:24:23] cconstantine: has joined #ruby
[17:25:23] DrCode: has joined #ruby
[17:26:47] lxsameer: has joined #ruby
[17:28:31] ozcanesen: has joined #ruby
[17:31:45] imode: has joined #ruby
[17:31:46] eckhardt: has joined #ruby
[17:34:56] milardov_: has joined #ruby
[17:39:18] Bock: has joined #ruby
[17:39:47] dtzuzu: has joined #ruby
[17:52:34] eckhardt: has joined #ruby
[17:52:35] dionysus69: has joined #ruby
[17:53:26] eckhardt: has joined #ruby
[17:54:17] eckhardt: has joined #ruby
[17:54:59] eckhardt: has joined #ruby
[17:55:13] bruno-: has joined #ruby
[17:55:36] ledestin: has joined #ruby
[17:55:53] eckhardt: has joined #ruby
[17:57:07] eightlimbed: has joined #ruby
[18:00:51] kies: has joined #ruby
[18:09:06] belmoussaoui_: has joined #ruby
[18:12:13] svankmajer: has joined #ruby
[18:16:22] milardovich: has joined #ruby
[18:19:55] dcluna: has joined #ruby
[18:23:06] coderphive: has joined #ruby
[18:32:45] pi2: has joined #ruby
[18:38:34] oleo: has joined #ruby
[18:40:33] mtkd: has joined #ruby
[18:48:38] ozcanesen: has joined #ruby
[18:48:51] DTZUZO: has joined #ruby
[18:57:39] milardov_: has joined #ruby
[18:57:42] bronson: has joined #ruby
[18:59:51] jackjackdripper: has joined #ruby
[19:13:28] Cohedrin_: has joined #ruby
[19:20:22] imode: bah. haml is dead, slim's builds are failing, erb + sinatra is a PITA..
[19:21:28] armyriad: has joined #ruby
[19:21:43] zapata: has joined #ruby
[19:22:31] dstrunk: has joined #ruby
[19:24:26] opekktar: has joined #ruby
[19:24:44] nofxxx: imode, not haml, hamlit
[19:25:02] nofxxx: slim works nice here, check the error, maybe it's your env
[19:25:21] belmoussaoui_: has joined #ruby
[19:25:21] imode: nofxxx: http://www.rubydoc.info/gems/slim/frames
[19:25:39] imode: I'm always wary of projects with failing builds.
[19:25:56] vondruch: has joined #ruby
[19:27:11] PacificSalmon: imode: at least look at the implementations being tested. most of the time it's some bizarre rubbish to do with jruby or rbx.
[19:27:30] dstrunk: has joined #ruby
[19:27:34] nofxxx: yup, or master/fork, which is ok... prob the gem release is fine
[19:28:54] imode: a good majority of them are ruby 2.3.x
[19:29:06] imode: some with jruby and rbx.
[19:29:41] PacificSalmon: https://travis-ci.org/slim-template/slim
[19:29:55] belmoussaoui_: has joined #ruby
[19:30:04] imode: yes, we're looking at the same page.
[19:30:15] PacificSalmon: i see only rbx, and allowed failures only target ruby-head.
[19:30:37] PacificSalmon: so looks fine to me
[19:30:52] KeyJoo: has joined #ruby
[19:31:03] dstrunk: has joined #ruby
[19:31:22] vondruch: has joined #ruby
[19:31:42] imode: ruby 2.3.3 is under allowed failures.
[19:32:04] imode: same for 2.2.6, 2.1.10, 2.0.0.
[19:32:28] halt: has joined #ruby
[19:32:31] PacificSalmon: true, missed those
[19:33:03] imode: probably testing for errors on edge cases or severely mangled files.
[19:33:53] naprimer: has joined #ruby
[19:34:01] PacificSalmon: dunno.. but 2.3.3 is also passing other configs. so i wouldn't worry about it too much. at least i'd confirm the failures impact you at all
[19:34:32] imode: meh, what the hell.
[19:34:40] PacificSalmon: i don't try to keep my branches green. in fact jruby has been failing for months.
[19:34:50] PacificSalmon: becos they're dev branches
[19:34:55] PacificSalmon: i'll fix at release
[19:35:47] oleo: has joined #ruby
[19:39:09] milardovich: has joined #ruby
[19:46:15] Joufflu: has joined #ruby
[19:47:49] elliottcable: has joined #ruby
[19:57:04] goyox86_: has joined #ruby
[20:05:47] ornerymoose: has joined #ruby
[20:06:13] zachk: has joined #ruby
[20:08:51] t-recx: has joined #ruby
[20:16:17] enterprisey: has joined #ruby
[20:20:23] milardov_: has joined #ruby
[20:21:42] PacificSalmon: has joined #ruby
[20:21:42] PacificSalmon: has joined #ruby
[20:29:47] ozcanesen: has joined #ruby
[20:40:24] hinbody: has joined #ruby
[20:42:37] arup_r: has joined #ruby
[20:42:49] arup_r: How can I refactor this small method https://gist.github.com/aruprakshit/bf8e4073ca828da394032e83be619251 ? :)
[20:43:08] milardovich: has joined #ruby
[20:44:13] milardovich: has joined #ruby
[20:44:28] PacificSalmon: why would `current_user` be anything but `nil` if it is not there?
[20:44:39] PacificSalmon: i would drop `blank?' as first step
[20:45:33] arup_r: What do you mean?
[20:45:52] arup_r: if a user is logged in, current_user is an user object, otherwise it is nil
[20:46:10] arup_r: the nil check needed, otherwise it will cause other exceptions
[20:46:21] PacificSalmon: https://gist.github.com/anonymous/f63cc250b95abf07839eec664b83a2e7
[20:46:25] matthewd: Can @evaluation.user be nil?
[20:46:46] arup_r: hm matthewd it can be
[20:46:49] matthewd: Mostly, I'd say this logic is in the wrong place
[20:47:10] PacificSalmon: i mean that blank? is unneccessary and slow
[20:47:11] matthewd: "Does user X have access to object Y" is a question the model should know how to answer, not the controller
[20:47:21] PacificSalmon: blank? is most appropiate with strings, and best avoided if you can
[20:48:04] matthewd: (or a dedicated access control object, a la pundit/cancancan/etc, which is essentially model-level anyway)
[20:48:35] arup_r: matthewd: got your point. thanks
[20:49:17] NightMonkey: has joined #ruby
[20:49:44] PacificSalmon: other option: https://gist.github.com/anonymous/8494b4a7af6671d7f520bda80420cc97
[20:50:28] PacificSalmon: eh `not current_user.admin?`. i'm sure you can adjust if you want to change it.
[20:54:16] eightlimbed: has joined #ruby
[20:54:55] hutch34: has joined #ruby
[20:56:54] maxvaillancourt1: has joined #ruby
[20:59:06] bronson: has joined #ruby
[21:00:44] belmoussaoui: has joined #ruby
[21:02:14] enterprisey: has joined #ruby
[21:04:52] Rodya_: has joined #ruby
[21:07:57] hutch34: has joined #ruby
[21:11:19] eblip: has joined #ruby
[21:11:32] def_jam: has joined #ruby
[21:12:21] milardovich: has joined #ruby
[21:16:14] mim1k: has joined #ruby
[21:17:38] eb0t: has joined #ruby
[21:18:00] eb0t_: has joined #ruby
[21:19:46] milardovich: has joined #ruby
[21:25:45] hutch34: has joined #ruby
[21:28:35] runescape07rsps: has joined #ruby
[21:29:28] quobo: has joined #ruby
[21:30:02] gfvcastro: has joined #ruby
[21:30:53] Rodya_: has joined #ruby
[21:31:09] NightMonkey: has joined #ruby
[21:37:27] claudiuinberlin: has joined #ruby
[21:41:10] bruno-: has joined #ruby
[21:42:08] milardovich: has joined #ruby
[21:42:55] snips: has joined #ruby
[21:43:41] snips: has left #ruby: ()
[21:43:51] romankapitonov: has joined #ruby
[21:44:03] ramortegui: has joined #ruby
[21:44:18] romankapitonov: has joined #ruby
[21:45:38] twillkens: has joined #ruby
[21:45:42] romankapitonov: has joined #ruby
[21:46:54] ramortegui: Hi guys, I'm creating a class that is going to consume data from a json API, any suggestion to create tests for it? (any gem suggestion?)
[21:48:16] AlexRussia: has joined #ruby
[21:48:49] apeiros: minitest, rspec, webmock (not sure about the name of the last)
[21:50:21] ramortegui: thanks apeiros,
[21:53:32] __Yiota: has joined #ruby
[22:00:43] Guest40: has joined #ruby
[22:01:10] joelroa: has joined #ruby
[22:01:21] milardov_: has joined #ruby
[22:01:34] Guest40: has joined #ruby
[22:07:53] Guest40: has joined #ruby
[22:12:37] orbyt_: has joined #ruby
[22:15:17] gr33n7007h: has joined #ruby
[22:15:38] baroquebobcat: has joined #ruby
[22:15:42] hutch34: has joined #ruby
[22:30:36] dstrunk: has joined #ruby
[22:30:49] hutch34: has joined #ruby
[22:33:29] Asher: has joined #ruby
[22:34:13] Guest40: has joined #ruby
[22:42:41] milardovich: has joined #ruby
[22:51:19] guille-moe: has joined #ruby
[22:57:18] gfvcastro: has joined #ruby
[22:58:58] charliesome: has joined #ruby
[23:00:06] bronson: has joined #ruby
[23:10:38] hutch34: has joined #ruby
[23:16:44] mim1k: has joined #ruby
[23:21:16] orbyt_: has joined #ruby
[23:23:04] charliesome: has joined #ruby
[23:24:12] milardov_: has joined #ruby
[23:42:55] charliesome: has joined #ruby
[23:47:40] Lyfe: has joined #ruby
[23:50:15] uZiel: has joined #ruby
[23:53:54] enterprisey: has joined #ruby
[23:57:42] AlexRussia: has joined #ruby