« Back to channel list

#ruby - 12 April 2017

« Back 1 day Forward 1 day »
[00:01:53] bonhoeffer: has joined #ruby
[00:01:56] StoneCypher: volty: ... what?
[00:02:16] nobitanobi: has joined #ruby
[00:02:31] StoneCypher: volty: can you give me an example of the thing that you just said
[00:04:51] charliesome: has joined #ruby
[00:06:35] volty: no, I did it in old style, then, after having resolved the problems, to keep up with being "sexy" ,rewrote it in recursive manner , and threw away the "old good donky way code"
[00:07:17] volty: Or, in other words: I do not keep archives for that purpose
[00:07:33] cseder: Just found a free Udacity course on Sinatra. Learning time! :)
[00:08:26] volty: Verity: balance between coding and learning. Keep as much more coding than learning as you can.
[00:08:59] volty: Going to grasp scale constructors inheritance. Bye
[00:09:39] StoneCypher: ACTION has no idea what that guy meant
[00:16:34] bkxd: has joined #ruby
[00:17:20] rakm: has joined #ruby
[00:24:20] br0d1n: has joined #ruby
[00:24:28] Lord_of_Life: has joined #ruby
[00:26:44] Rodya_: has joined #ruby
[00:28:52] rexb0t: has joined #ruby
[00:31:40] rakm: has joined #ruby
[00:32:37] chouhoulis: has joined #ruby
[00:33:09] nankyokusei: has joined #ruby
[00:36:11] blackwind_123: has joined #ruby
[00:37:53] __Yiota: has joined #ruby
[00:39:11] rakm: has joined #ruby
[00:41:16] Nuck: has joined #ruby
[00:41:17] brent__: has joined #ruby
[00:44:06] Channel6: has joined #ruby
[00:44:41] PorcoRex: has joined #ruby
[00:44:46] PorcoRex: Good evening.
[00:45:02] jgt3: has joined #ruby
[00:47:02] duderono_: has joined #ruby
[00:48:50] BabyMario: has joined #ruby
[00:50:00] jenrzzz: has joined #ruby
[00:53:38] solocshaw: has joined #ruby
[00:54:50] cam27: has joined #ruby
[01:00:59] __Yiota: has joined #ruby
[01:07:29] impermanence: I notice in the StdLib docs that fileutils is required as: require 'fileutils', but then its functions are called like FileUtils.some_method. Why is that?
[01:07:33] havenwood: PorcoRex: g'eve'
[01:08:37] PorcoRex: havenwood, night!
[01:08:39] havenwood: impermanence: Because the file is fileutils.rb not file_utils.rb since it was created before the uniform naming standards.
[01:14:04] erlend: has joined #ruby
[01:15:27] bdonnahue: has joined #ruby
[01:15:50] bdonnahue: hello... im trying to figure out how to add a source to gem using a script... how can i do this without needing to type yes
[01:17:04] PorcoRex: bdonnahue, what does "source to gem" means?
[01:17:22] bdonnahue: sorry gem sources -a "https://foobar"
[01:17:23] bkxd: has joined #ruby
[01:17:37] hutch34: has joined #ruby
[01:17:50] mooser: has joined #ruby
[01:18:22] Robtop__: has joined #ruby
[01:24:19] jenrzzz: has joined #ruby
[01:24:19] jenrzzz: has joined #ruby
[01:24:23] spicerack: has joined #ruby
[01:24:38] s2013: has joined #ruby
[01:26:15] marcdel: has joined #ruby
[01:26:34] bdonnahue: im getting this error when trying to gem install bundler
[01:26:36] bdonnahue: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)
[01:26:42] PorcoRex: bdonnahue, what version of rubygems are you using? I started a local gem server with "gem server" and then added the source with "gem sources -a http://localhost:8808" and it didn't ask for confirmation.
[01:26:51] bdonnahue: can anyone help me out? changing the source to no https did not help
[01:28:58] PorcoRex: I didn't have a problem adding it:
[01:29:06] PorcoRex: # gem sources -a https://api.rubygems.org
[01:29:07] PorcoRex: https://api.rubygems.org added to sources
[01:29:20] PorcoRex: You probably need to update your certificates?
[01:29:54] bdonnahue: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)
[01:30:18] bdonnahue: ar the certificates a ruby thing or an OS level thing?
[01:30:20] Karunamon: has joined #ruby
[01:30:29] PorcoRex: OS, as far as I understand.
[01:31:56] bdonnahue: hmm ok im asking in #centos bc i have no idea
[01:32:19] PorcoRex: Sure. Try updating your packages first.
[01:35:06] mim1k: has joined #ruby
[01:38:28] brent__: has joined #ruby
[01:46:53] bdonnahue: im trying to follow this guide: http://guides.rubygems.org/ssl-certificate-update/#manual-solution-to-ssl-issue
[01:47:04] bdonnahue: i added the ca cert but it still fails with the same ssl error
[01:47:33] BabyMario: on windows?
[01:48:05] bdonnahue: <PorcoRex> updating which packages?
[01:48:14] BabyMario: I've only had that issue on windows, which that guide is for
[01:48:34] Jameser: has joined #ruby
[01:48:55] PorcoRex: bdonnahue, the CentOS packages. Something like yum update or something. I don't remember exactly how those are updated. Maybe you need to install the certs?
[01:49:11] BabyMario: you could try: yum install ca-certificates
[01:49:26] BabyMario: or yum upgrade ca-certificates
[01:56:07] rexb0t: has joined #ruby
[01:59:52] __Yiota: has joined #ruby
[02:01:48] impermanence: so there's no ARGV.second ?
[02:04:11] PorcoRex: impermanence, `second` is a Rails extension.
[02:04:39] libastral: has joined #ruby
[02:05:17] impermanence: PorcoRex: okay. I was only asking because there is an ARGV.first...so I was just wondering maybe if there was kind of Ruby syntax for ARGV.n but it seems no.
[02:05:18] hutch34: has joined #ruby
[02:05:35] impermanence: or at least I think there is an ARGV.first :)
[02:05:42] impermanence: it works in my script
[02:07:41] patarr: has joined #ruby
[02:07:59] PorcoRex: impermanence, there is a `first` and `last` method for arrays in Ruby. Rails adds `second`, `third`, `fourth`, `fifth` and `forty_two`.
[02:08:32] impermanence: PorcoRex: okay, thanks.
[02:08:41] PorcoRex: You're welcome.
[02:12:08] BTRE: has joined #ruby
[02:13:33] SCHAPiE: has joined #ruby
[02:13:43] Qommand0r: has joined #ruby
[02:15:13] __Yiota: has joined #ruby
[02:17:59] sumobob: has joined #ruby
[02:18:45] jeyraof^mbpr: has joined #ruby
[02:25:22] jdm: has joined #ruby
[02:26:54] workmad3: has joined #ruby
[02:27:17] pwnd_nsfw`: has joined #ruby
[02:28:43] Guest61929: has joined #ruby
[02:29:21] Rodya_: has joined #ruby
[02:31:39] nw: has joined #ruby
[02:34:01] nankyokusei: has joined #ruby
[02:38:59] claudevandort: has joined #ruby
[02:42:30] jdm: has joined #ruby
[02:47:18] hndk: has joined #ruby
[02:53:23] AndBobsYourUncle: has joined #ruby
[02:54:26] allisio: lel: https://eval.in/774068
[02:54:59] tolerablyjake: has joined #ruby
[02:55:03] raspado: has joined #ruby
[02:55:59] sumobob: has joined #ruby
[02:57:47] jdm: has joined #ruby
[03:00:20] elsevero: has joined #ruby
[03:08:00] duderonomy: has joined #ruby
[03:08:22] xenops: has joined #ruby
[03:09:19] jgt3: has joined #ruby
[03:09:41] gix: has joined #ruby
[03:13:41] __Yiota: has joined #ruby
[03:13:55] Guest96: has joined #ruby
[03:15:01] mostlybadfly: has joined #ruby
[03:15:12] impermanence: has joined #ruby
[03:15:55] Cohedrin: has joined #ruby
[03:15:57] jusa: has joined #ruby
[03:16:43] harfangk: has joined #ruby
[03:17:08] war_pigs: has joined #ruby
[03:18:11] bkxd: has joined #ruby
[03:18:37] impermanence: has joined #ruby
[03:18:38] jgt3: has joined #ruby
[03:18:52] jdm: has joined #ruby
[03:24:53] enterprisey: has joined #ruby
[03:25:24] anisha: has joined #ruby
[03:27:03] __Yiota: has joined #ruby
[03:29:23] jgt3: has joined #ruby
[03:30:35] Rodya_: has joined #ruby
[03:32:14] railswebdev: has joined #ruby
[03:33:21] hfp_work: has joined #ruby
[03:34:55] chichou: has joined #ruby
[03:35:24] war_pigs: has joined #ruby
[03:35:41] mim1k: has joined #ruby
[03:37:39] aryaching: has joined #ruby
[03:41:11] cagomez: has joined #ruby
[03:41:16] Bock: has joined #ruby
[03:41:37] Pumukel: has joined #ruby
[03:41:49] Bock: has joined #ruby
[03:44:03] s2013: has joined #ruby
[03:44:58] marcdel: has joined #ruby
[03:45:31] Bock: has joined #ruby
[03:45:33] xall: has joined #ruby
[03:46:03] ryan_notabot: has joined #ruby
[03:46:25] impermanence: has joined #ruby
[03:47:50] rakm: has joined #ruby
[03:51:54] jdm: has joined #ruby
[03:54:51] Gadgetoid: has joined #ruby
[03:56:21] chouhoulis: has joined #ruby
[03:58:07] Cohedrin: has joined #ruby
[03:59:27] cschneid_: has joined #ruby
[04:03:46] nobitanobi: has joined #ruby
[04:04:30] bronson: has joined #ruby
[04:05:37] cagomez: has joined #ruby
[04:07:12] jenrzzz: has joined #ruby
[04:07:14] gix: has joined #ruby
[04:10:00] StoneCypher: has joined #ruby
[04:16:34] sumobob: has joined #ruby
[04:20:05] war_pigs: has joined #ruby
[04:20:10] duderonomy: has joined #ruby
[04:23:52] _djbkd: has joined #ruby
[04:26:42] cagomez: has joined #ruby
[04:27:36] Guest96: has joined #ruby
[04:28:24] Yzguy: has joined #ruby
[04:31:14] mazeinmaze_: has joined #ruby
[04:31:16] Rodya_: has joined #ruby
[04:31:35] StoneCypher: has joined #ruby
[04:33:58] bkxd: has joined #ruby
[04:34:42] mim1k: has joined #ruby
[04:34:54] nankyokusei: has joined #ruby
[04:35:51] renchan: has joined #ruby
[04:43:23] dhollinger: has joined #ruby
[04:43:46] ledestin: has joined #ruby
[04:43:52] Cohedrin: has joined #ruby
[04:46:58] nofxxxx: has joined #ruby
[04:49:34] Guest96: has joined #ruby
[04:50:07] xall: has joined #ruby
[04:56:26] mooser: has joined #ruby
[05:02:04] bronson: has joined #ruby
[05:06:19] Suslov: has joined #ruby
[05:07:38] jenrzzz: has joined #ruby
[05:09:02] xenops: has joined #ruby
[05:11:46] patarr: has joined #ruby
[05:14:41] jgt3: has joined #ruby
[05:17:27] cseder: has joined #ruby
[05:21:49] xall: has joined #ruby
[05:21:58] jgt3: has joined #ruby
[05:22:51] JoshS: has joined #ruby
[05:23:29] womble: has joined #ruby
[05:27:16] johnzorn: has joined #ruby
[05:28:20] MrBusiness: has joined #ruby
[05:30:56] johnzorn: has joined #ruby
[05:39:10] _whitelogger: has joined #ruby
[05:39:49] govg: has joined #ruby
[05:41:52] brent__: has joined #ruby
[05:43:36] djbkd_: has joined #ruby
[05:43:41] rafadc: has joined #ruby
[05:44:32] bjpenn: has joined #ruby
[05:44:58] bjpenn: whats the terminology or programming keyword for '#{blah}' where blah is a variable name
[05:46:04] rafadc: has joined #ruby
[05:46:52] rafadc: has joined #ruby
[05:47:40] impermanence: has joined #ruby
[05:47:42] rafadc: has joined #ruby
[05:48:30] rafadc: has joined #ruby
[05:48:31] elomatreb: bjpenn: String interpolation
[05:48:35] enterprisey: has joined #ruby
[05:48:47] cagomez: has joined #ruby
[05:49:07] johnlinvc_: has joined #ruby
[05:49:10] rafadc: has joined #ruby
[05:49:13] bjpenn: elomatreb: nice
[05:49:33] bjpenn: elomatreb: i was thinking if theres a way to do something like '#{foo} || bar'
[05:49:39] bjpenn: so if foo doesn't exist, it defaults to 'bar'
[05:49:59] elomatreb: You can put any expression in there, so "#{foo || bar}" works
[05:50:11] elomatreb: Keep in mind that #{} doesn't work in single-quoted strings
[05:50:50] bjpenn: i wonder why that is
[05:51:40] elomatreb: Single-quoted strings have less features enabled, but require less escaping of special characters
[05:51:49] elomatreb: >> 'test \ test'
[05:51:51] ruby[bot]: elomatreb: # => "test \\ test" (https://eval.in/774104)
[05:55:06] StoneCypher: has joined #ruby
[05:57:16] astrobunny: has joined #ruby
[05:57:31] bjpenn: elomatreb: got it
[06:02:33] dminuoso: bjpenn: Be sure to keep any non-trivial expressions out of string interpolation though.
[06:02:36] dminuoso: Variables are cheap. :-)
[06:04:10] astrobunny: has joined #ruby
[06:05:25] bjpenn: dminuoso: will do :)
[06:06:04] astrobunny: has joined #ruby
[06:09:53] cagomez: has joined #ruby
[06:17:05] aufi: has joined #ruby
[06:18:42] etehtsea: has joined #ruby
[06:19:46] bkxd: has joined #ruby
[06:20:22] rafadc_: has joined #ruby
[06:23:04] mooser: has joined #ruby
[06:26:30] stomar: has joined #ruby
[06:27:56] astrobunny: has joined #ruby
[06:28:43] Pumukel: has joined #ruby
[06:29:32] Pumukel: has joined #ruby
[06:30:18] Pumukel: has joined #ruby
[06:31:07] Pumukel: has joined #ruby
[06:31:54] Pumukel: has joined #ruby
[06:33:38] pifon: has joined #ruby
[06:34:08] Rodya_: has joined #ruby
[06:35:45] nankyokusei: has joined #ruby
[06:37:05] conta: has joined #ruby
[06:37:17] jenrzzz: has joined #ruby
[06:39:59] mark_66: has joined #ruby
[06:42:17] cpt_yossarian: has joined #ruby
[06:42:36] woodruffw: has joined #ruby
[06:42:36] woodruffw: has joined #ruby
[06:45:52] jamesaxl: has joined #ruby
[06:49:10] impermanence: has joined #ruby
[06:49:51] Lyubo1: has joined #ruby
[06:52:24] bjpenn: has joined #ruby
[06:52:32] Doow_: has joined #ruby
[06:53:19] matled-: has joined #ruby
[06:53:54] Jameser: has joined #ruby
[06:55:27] pleiosaur: has joined #ruby
[06:55:34] statelesscode_: has joined #ruby
[06:55:58] mgorbach: has joined #ruby
[06:56:05] ensyde: has joined #ruby
[06:56:07] ironcamel: has joined #ruby
[06:56:27] pabs: has joined #ruby
[06:56:34] yorickpeterse: has joined #ruby
[06:56:36] pskosinski: has joined #ruby
[06:56:38] bayed: has joined #ruby
[06:56:43] Fraeon: has joined #ruby
[06:56:49] devn: has joined #ruby
[06:56:54] Sirecote: has joined #ruby
[06:56:54] avrelaun_: has joined #ruby
[06:57:02] mlehrer: has joined #ruby
[06:57:06] phreakocious: has joined #ruby
[06:57:07] phansch: has joined #ruby
[06:57:10] angseus: has joined #ruby
[06:57:16] Garo_: has joined #ruby
[06:57:17] gigetoo: has joined #ruby
[06:57:21] Muz: has joined #ruby
[06:57:22] gsingh93: has joined #ruby
[06:57:23] drale2k: has joined #ruby
[06:57:31] nikivi: has joined #ruby
[06:57:31] nobitanobi: has joined #ruby
[06:57:41] esObe: has joined #ruby
[06:57:46] alphor: has joined #ruby
[06:57:54] justinmrkva: has joined #ruby
[06:58:02] C0deMaver1ck: has joined #ruby
[06:58:09] esObe_: has joined #ruby
[06:58:52] veloutin: has joined #ruby
[06:59:06] Zarthus: has joined #ruby
[06:59:40] Psy-Q: has joined #ruby
[06:59:45] Davey: has joined #ruby
[06:59:45] Davey: has joined #ruby
[07:00:20] bigkevmcd: has joined #ruby
[07:00:50] atom3: has joined #ruby
[07:02:12] destructure: has joined #ruby
[07:02:39] Guest2400: has joined #ruby
[07:03:08] roshanavand: has joined #ruby
[07:10:53] jgnagy: has joined #ruby
[07:12:36] patarr: has joined #ruby
[07:13:35] qvqidv: has joined #ruby
[07:16:34] grh: has joined #ruby
[07:16:34] MrBusiness3: has joined #ruby
[07:19:40] rikai: has joined #ruby
[07:20:33] valkyr2e: has joined #ruby
[07:21:12] cpt_yossarian: has joined #ruby
[07:22:41] shortdudey123: has joined #ruby
[07:22:45] antgel: has joined #ruby
[07:23:39] charliesome: has joined #ruby
[07:24:04] woodruffw: has joined #ruby
[07:24:04] woodruffw: has joined #ruby
[07:24:19] rgtk: has joined #ruby
[07:24:32] mooser: has joined #ruby
[07:24:46] esObe: has joined #ruby
[07:24:53] tvw: has joined #ruby
[07:27:09] burgestrand: has joined #ruby
[07:28:02] griff: has joined #ruby
[07:29:33] anisha: has joined #ruby
[07:31:59] DARPA: has joined #ruby
[07:34:52] Rodya_: has joined #ruby
[07:35:15] minimalism: has joined #ruby
[07:36:15] jamesaxl: has joined #ruby
[07:36:29] chichou: has joined #ruby
[07:39:29] Arpanet69: has joined #ruby
[07:44:00] woodruffw: has joined #ruby
[07:44:44] jamesaxl: has joined #ruby
[07:45:43] Silthias: has joined #ruby
[07:47:44] P1ro: has joined #ruby
[07:49:18] jamesaxl: has joined #ruby
[07:49:19] nemesit|znc: has joined #ruby
[07:51:20] woodruffw: has joined #ruby
[07:51:44] mim1k: has joined #ruby
[07:52:38] Silthias: has joined #ruby
[07:54:32] toretore: has joined #ruby
[07:55:26] sleetdrop: has joined #ruby
[07:59:41] domgetter: has joined #ruby
[08:00:27] cschneid_: has joined #ruby
[08:00:41] flying: has joined #ruby
[08:01:28] kke: how can i get already initialized constant warnings in a file that is only loaded using require? (the usual class Foo; BAR = "foo"; end kind of thing)
[08:02:07] kke: is require somehow scoped?
[08:02:20] woodruffw: has joined #ruby
[08:02:20] woodruffw: has joined #ruby
[08:06:25] womble: has left #ruby: ("Oooh! Shiny!")
[08:07:05] armyriad: has joined #ruby
[08:09:05] elsevero: has joined #ruby
[08:10:29] burgestrand: kke ruby typically says where the previous definition was, is the redefined constant defined from the same place?
[08:11:08] mikecmpbll: has joined #ruby
[08:11:30] bjpenn: has joined #ruby
[08:11:37] burgestrand: kke you can debug it by `p caller` in your source file, it'll get printed every time the file is required, and the stacktrace will show you who's requiring the file using which kind of call
[08:11:54] kke: yep the same file. "already initialized constant FOO in client.rb:4" + "previous definition of FOO was in client:rb:4"
[08:12:21] burgestrand: kke typically ruby prevents you from loading the same file when you use `require` though (not if you use `load` however)
[08:12:48] jamesaxl: has joined #ruby
[08:13:06] Robtop__: has joined #ruby
[08:13:12] herwin: or if you put "require 'client.rb'" in client.rb
[08:13:15] jsrn_: has joined #ruby
[08:13:40] kke: yep it should put all loaded absolute paths in $LOADED_PATHS or $" or whatever and never load it twice
[08:13:58] kke: $LOADED_FEATURES
[08:15:01] burgestrand: herwin cool, didn't know about that
[08:16:15] mim1k: has joined #ruby
[08:16:37] Beams: has joined #ruby
[08:16:49] herwin: only after a file has been fully required, require will not require it again
[08:18:14] woodruffw: has joined #ruby
[08:18:14] woodruffw: has joined #ruby
[08:18:51] kke: i think it's a case of require + require_relative
[08:19:53] kke: and possibly symlinks
[08:20:33] bkxd: has joined #ruby
[08:21:01] Qchmqs: has joined #ruby
[08:21:16] burgestrand: kke symlinks would make sense, I do however think `require` and `require_relative` both follow the same anti-double-require rules
[08:21:26] kke: but differently
[08:21:27] kke: https://bugs.ruby-lang.org/issues/10222
[08:22:00] haxrbyte: has joined #ruby
[08:22:27] xall: has joined #ruby
[08:23:10] Jameser`: has joined #ruby
[08:25:08] kke: perhaps i must add $".push(Pathname.new(__FILE__).realpath) to all files :)
[08:25:11] dionysus69: has joined #ruby
[08:25:25] kke: (no, i just use FOO ||= "foo")
[08:25:49] kke: which i think is cleaner than FOO = "foo" unless const_defined?(:FOO)
[08:26:00] mooser: has joined #ruby
[08:27:39] domgetter: has joined #ruby
[08:27:40] chouhoulis: has joined #ruby
[08:28:30] esObe: has joined #ruby
[08:31:45] bweston92: has joined #ruby
[08:32:04] qba73: has joined #ruby
[08:32:30] esObe: has joined #ruby
[08:34:39] woodruffw: has joined #ruby
[08:34:56] Jameser: has joined #ruby
[08:35:33] Rodya_: has joined #ruby
[08:36:37] nankyokusei: has joined #ruby
[08:37:49] marr: has joined #ruby
[08:37:53] woodruffw: has joined #ruby
[08:39:19] Godd2: has joined #ruby
[08:43:53] Guest32730: has joined #ruby
[08:43:53] Guest32730: has joined #ruby
[08:46:28] cschneid_: has joined #ruby
[08:46:35] yxadyx: has joined #ruby
[08:47:13] woodruffw: has joined #ruby
[08:47:13] woodruffw: has joined #ruby
[08:50:01] impermanence: has joined #ruby
[08:50:08] domgetter: has joined #ruby
[08:51:57] haraoka: has joined #ruby
[08:53:41] jamesaxl: has joined #ruby
[08:54:06] latemus: has joined #ruby
[08:54:31] latemus: am i the only one finding it much easier to work with object relaitonal mapping in ruby than in php?
[08:55:39] lxsameer: has joined #ruby
[08:55:41] woodruffw: has joined #ruby
[08:55:57] woodruffw: has joined #ruby
[08:57:11] herwin: unlikely, but the answer in #php might be different
[08:58:05] burgestrand: kke doesn't solve the problem that your file happens to be required multiple times though, but perhaps it's a sufficient band-aid for now
[08:58:27] ketan: has joined #ruby
[09:01:22] dhollin3: has joined #ruby
[09:01:40] woodruffw: has joined #ruby
[09:01:40] woodruffw: has joined #ruby
[09:02:30] jamesaxl: has joined #ruby
[09:04:16] roshanavand: has joined #ruby
[09:06:55] dminuoso: latemus: Yes for quite a few reasons. The Smalltalk influence in Ruby makes this really easy to implement.
[09:09:14] dminuoso: latemus: Though technically PHP has the same functionality in __call
[09:09:32] dminuoso: So I guess it's actually a moot point.
[09:10:35] elsevero: has joined #ruby
[09:10:40] nicoulaj: has joined #ruby
[09:11:13] woodruffw: has joined #ruby
[09:11:16] woodruffw: has joined #ruby
[09:11:35] nicoulaj: has joined #ruby
[09:12:15] bjpenn: has joined #ruby
[09:13:32] patarr: has joined #ruby
[09:15:20] bascht1: has joined #ruby
[09:15:59] astrobunny: has joined #ruby
[09:16:25] moei: has joined #ruby
[09:17:11] Terens: has joined #ruby
[09:21:35] woodruffw: has joined #ruby
[09:21:35] woodruffw: has joined #ruby
[09:21:45] xall: has joined #ruby
[09:22:16] jenrzzz: has joined #ruby
[09:26:11] daveyboi[m]: has joined #ruby
[09:26:11] M107262[m]: has joined #ruby
[09:26:11] KevinMGranger: has joined #ruby
[09:26:11] Tagami[m]: has joined #ruby
[09:26:11] Giphy[m]: has joined #ruby
[09:26:11] heftig: has joined #ruby
[09:26:11] jzigmund: has joined #ruby
[09:26:11] MicaFox[m]: has joined #ruby
[09:26:12] travisr: has joined #ruby
[09:26:12] dman[m]: has joined #ruby
[09:26:12] zenspider[m]: has joined #ruby
[09:26:12] jakebriggs[m]: has joined #ruby
[09:26:12] thulsa_legume[m]: has joined #ruby
[09:26:12] aviraldg: has joined #ruby
[09:26:18] el_ocho[m]: has joined #ruby
[09:26:19] velu_aon[m]: has joined #ruby
[09:26:19] testnick[m]: has joined #ruby
[09:30:30] p0p0pr37_: has joined #ruby
[09:30:30] p0p0pr37_: has joined #ruby
[09:30:32] Asher1: has joined #ruby
[09:32:34] User458764: has joined #ruby
[09:33:55] ryan_notabot: has joined #ruby
[09:36:18] Rodya_: has joined #ruby
[09:38:57] ferr1: has joined #ruby
[09:39:55] stomar: has joined #ruby
[09:39:57] woodruffw: has joined #ruby
[09:39:57] woodruffw: has joined #ruby
[09:42:18] brent__: has joined #ruby
[09:43:47] lenwood: has joined #ruby
[09:46:17] mim1k: has joined #ruby
[09:46:23] bkxd: has joined #ruby
[09:46:32] elsevero: has joined #ruby
[09:48:15] snickers: has joined #ruby
[09:49:38] Sammichmaker: has joined #ruby
[09:49:38] Sammichmaker: has joined #ruby
[09:49:46] jusa: has joined #ruby
[09:50:37] MrBusiness: has joined #ruby
[09:51:16] impermanence: has joined #ruby
[09:51:38] binaryplease: has joined #ruby
[09:51:42] tvw: has joined #ruby
[09:55:42] latemus: dminuoso: interesting none the les
[10:02:10] circ-user-Y335P: has joined #ruby
[10:02:29] circ-user-Y335P: has left #ruby: ()
[10:06:10] arne_: has joined #ruby
[10:06:25] arne_: https://gist.github.com/bananarne/8994f671b72ad3b3a0c513bc4880f12c
[10:06:31] arne_: suggestions to make this code cooler?
[10:06:56] dminuoso: ACTION just got triggered
[10:07:00] dminuoso: arne_: Yes.
[10:07:22] dminuoso: arne_: Use this moment to configure your editor for 2-space indentions.
[10:07:27] arne_: so help me please, i never worked with inheritance
[10:07:34] arne_: dminuoso: opinion
[10:07:59] dminuoso: arne_: I will share my thoughts when you have fixed a) your editor and b) your gist.
[10:08:06] dminuoso: Because that thing gives me eye cancer.
[10:08:26] arne_: thats just immature
[10:08:34] dminuoso: I am immature from time to time.
[10:08:35] arne_: if it was 100 lines, okay, but these 3, nope
[10:09:08] dminuoso: arne_: It does not matter whether its 3 or 100 lines. If you can't be bothered to even fix 3 lines by hand, it shows how much you care about presenting your problem.
[10:09:17] dminuoso: Try to think about it from that perspective.
[10:09:17] arne_: okay just dont respond then please
[10:09:21] charliesome: has joined #ruby
[10:09:32] jusa: has joined #ruby
[10:09:54] arne_: you can have a screenshot how it looks all the same as it was spaces, if you want
[10:12:35] patarr: has joined #ruby
[10:13:00] bjpenn: has joined #ruby
[10:18:37] dminuoso: arne_: So that's your style of identing code?
[10:18:54] latemus: vim's default indentation on my os has been driving be mad
[10:19:20] dminuoso: latemus: Are you perhaps missing a syntax plugin?
[10:19:24] latemus: id rather do it manually than fight with it
[10:19:35] latemus: dminuoso: i believe so
[10:19:42] arne_: dminuoso: i am using tabs..yes and that is fine
[10:19:44] latemus: and i need to write up a vimrc file
[10:19:52] arne_: ruby doesn't care. so this is kinda offtopic, there is nothing to "fix"
[10:20:36] dminuoso: arne_: Im sorry, if you don't think there's anything wrong with how that code looks then I can't help you.
[10:21:27] latemus: OMG that gist really is atrocious though
[10:21:36] bronson: has joined #ruby
[10:22:02] dminuoso: latemus: "syntax on" and "filetype plugin indent on" is likely all you need to get started.
[10:22:04] arne_: it looks wrong in the gist, i admit, but fixing this is not neccessary with these 3 lines, you refusing to help is just an ego issue
[10:22:25] dminuoso: latemus: And possibly settings for ts/sw/et if you want to customize that.
[10:22:50] dminuoso: arne_: By refusing to make your gist even half way readable, you demonstrate a complete disregard of how your problem appears.
[10:22:59] dminuoso: It has nothing to do with ego.
[10:23:07] dminuoso: I dont want to have to format your code just to read it.
[10:23:12] dminuoso: That's your job
[10:23:54] Qchmqs: has joined #ruby
[10:24:07] dminuoso: Unless you expect everybody in this channel that wants to participate to first fork your gist and re-indent with consitent tabs to just get an idea of what this does.
[10:24:15] Beams: has joined #ruby
[10:24:28] dminuoso: Which I guess makes sense if you consider your time far more valuable than ours.
[10:24:35] latemus: https://gist.github.com/anonymous/866e883f573d2372516154f5e6d9a66c
[10:24:38] arne_: thats alot of assumptions
[10:24:51] arne_: latemus: well, thanks alot
[10:25:07] latemus: arne_: it's good etiquette
[10:25:32] arne_: i wasn't expecting everyone to edit the code.. i was just expecting an answer like "use === instead of <.." or something
[10:25:49] dminuoso: arne_: Right, which is why you should make sure that whatever you are showing to us is readable at least.
[10:25:58] arne_: it's readable
[10:26:03] latemus: li mean, irc ettiquete has remained unchanged for > 20 years bro
[10:26:07] arne_: it's 3 freaking lines of codes
[10:27:10] arne_: it's weird though, why does the html textarea insert tabs as spaces or it is it a github "feature"
[10:27:23] arne_: or has it always been this way?
[10:27:45] howdoi: has joined #ruby
[10:27:48] dminuoso: arne_: It uses whatever you paste to it, though tabs/spaces is really a minor thing, since you can actually use url params to have github convert those on the fly.
[10:28:25] dminuoso: 12:26 < arne_> it's 3 freaking lines of codes < this actually proves my point. 3 lines means it would have taken you less than 5 seconds to fix this.
[10:28:27] arne_: yeah but i am copying tabs, and it will be spaces in the textarea, always wondered about that
[10:28:36] arne_: dminuoso: imho there is nothing to fix, as i said
[10:28:37] dminuoso: arne_: May be your editor.
[10:28:46] arne_: dminuoso: no, i tested that
[10:29:00] dminuoso: arne_: so 1 tab for if, 7 tabs for the code, then 6 tabs for the else. Thats normal indention on your code?
[10:29:33] mooser: has joined #ruby
[10:29:38] arne_: well, the code is nested in some modules classes, so yeah
[10:29:56] dminuoso: arne_: https://ibb.co/gxdBgQ
[10:30:10] dminuoso: arne_: look at that image and tell me if it looks healthy.
[10:30:19] dminuoso: arne_: I mean you likely tripped up the indentation on the first line.
[10:30:51] arne_: this discussion ends up in a circle... imho you can read that in ~5 seconds, and tell me what operators i should use instead
[10:30:54] dminuoso: arne_: Actually this has turned into something productive now. 6/7 levels of indentation is a real code smell.
[10:31:07] dminuoso: arne_: It indicates that you probably should decompose into separate modules and use include.
[10:31:09] arne_: this discussion did cost more than evrything we could've done differently
[10:31:18] dminuoso: 12:30 < arne_> this discussion ends up in a circle... imho you can read that in ~5 seconds, and tell me what operators i should use instead
[10:31:41] arne_: yes instead you chose to lecture me ~20 mins about tabs and spaces, while it doesn'T matter
[10:31:43] dminuoso: arne_: fine, have it your way. I will not bother with your problems anymore becuase you cant be bothered *at all* to use even minimal efforts to provide something readable.
[10:31:46] arne_: does not sound very rational
[10:32:08] dminuoso: arne_: Same could be said to you. Instead of just editing your gist, you refuse to make your gist look readable at first glance.
[10:32:15] dminuoso: Instead arguing for 20 minutes.
[10:32:29] dminuoso: It's not about tabs vs spaces.
[10:32:34] dminuoso: Its about 1/7/6/7/6 tabs
[10:32:58] arne_: matter of principle, i do not even know if you were to help me later, and i am not the one who started the discussion
[10:33:57] arne_: let's just stop
[10:34:07] dminuoso: arne_: https://gist.github.com/dminuoso/d513b8c0da29af803349ac87abb27d15
[10:34:10] dminuoso: two of these are readable
[10:34:14] dminuoso: one is not.
[10:34:24] Pumukel: has joined #ruby
[10:34:36] arne_: yeah i agree, so what, you could've just read it man
[10:34:42] arne_: lets just stop, this isn't going anywhere
[10:34:57] arne_: thanks for trying to help in your way.. though
[10:35:24] dminuoso: arne_: use model = case(self) when SomeModel then self when Sequel::DataSet then self.respond_to?(:model) ? self.model : nil else nil end
[10:35:41] arne_: thanks alot
[10:36:16] arne_: will case when work? because in that case self is a class
[10:36:17] dminuoso: arne_: Just spend a minute before you paste a gist next time.
[10:36:20] aspiers: has joined #ruby
[10:36:23] dminuoso: And look if you can modify it to make it more presentable.
[10:36:33] arne_: dminuoso: if it was bigger i would've, really
[10:36:44] dminuoso: arne_: If its small it means its even less work.
[10:36:49] dminuoso: Your argument is completely moot.
[10:37:04] Rodya_: has joined #ruby
[10:37:10] dminuoso: Boy I cant be arsed to deal with anymore.
[10:37:25] nankyokusei: has joined #ruby
[10:37:34] arne_: i am sorry ^^
[10:37:41] xall: has joined #ruby
[10:37:57] Silthias: has joined #ruby
[10:38:50] arne_: and i am afraid that code doesn't work that way
[10:42:06] GodFather: has joined #ruby
[10:42:55] rgr: has joined #ruby
[10:43:48] StoneCypher: has joined #ruby
[10:47:10] bkxd: has joined #ruby
[10:52:57] Silthias1: has joined #ruby
[10:58:07] lenwood: has joined #ruby
[10:58:08] centrx: has joined #ruby
[10:58:08] centrx: has joined #ruby
[10:58:20] aspiers: has joined #ruby
[11:00:18] cschneid_: has joined #ruby
[11:01:49] cagomez: has joined #ruby
[11:02:07] Ziarkaen: has joined #ruby
[11:02:35] __Yiota: has joined #ruby
[11:03:25] impermanence: has joined #ruby
[11:04:51] StoneCypher: has joined #ruby
[11:08:44] ltem: has joined #ruby
[11:10:03] al2o3-cr: has joined #ruby
[11:13:48] bjpenn: has joined #ruby
[11:15:00] stomar: has joined #ruby
[11:15:33] artek_: has joined #ruby
[11:18:48] chichou: has joined #ruby
[11:20:43] yokel: has joined #ruby
[11:21:28] ketan: has joined #ruby
[11:26:42] jaruga: has joined #ruby
[11:30:18] workmad3: has joined #ruby
[11:32:50] cagomez: has joined #ruby
[11:37:48] Rodya_: has joined #ruby
[11:42:56] hamedtalebpoorb: has joined #ruby
[11:43:17] hamedtalebpoorb: i have a problem with rails
[11:43:24] hamedtalebpoorb: the prolem is :
[11:43:29] Psy-Q: is there a more recommended JSON-RPC 2.0 library than jimson?
[11:43:37] harfangk: has joined #ruby
[11:43:48] matthewd: ?rails hamedtalebpoorb
[11:43:48] ruby[bot]: hamedtalebpoorb: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[11:44:16] hamedtalebpoorb: Bundler::GemNotFound: Could not find rake-12.0.0 in any of the sources
[11:44:33] hamedtalebpoorb: can not help me?
[11:49:12] CloCkWeRX: has joined #ruby
[11:55:42] User458764: has joined #ruby
[11:58:00] mooser: has joined #ruby
[11:58:13] nobitanobi: has joined #ruby
[11:59:34] ketan: has joined #ruby
[12:02:52] bkxd: has joined #ruby
[12:03:29] DarthGandalf: has joined #ruby
[12:04:28] synthroid: has joined #ruby
[12:09:01] hutch34: has joined #ruby
[12:13:46] Pumukel: has joined #ruby
[12:14:21] DWSR: has joined #ruby
[12:14:21] Pumukel: has joined #ruby
[12:14:32] bjpenn: has joined #ruby
[12:18:44] shinnya: has joined #ruby
[12:19:51] cagomez: has joined #ruby
[12:23:21] hutch34_: has joined #ruby
[12:25:04] nadir: has joined #ruby
[12:25:14] mim1k: has joined #ruby
[12:27:00] DWSR: *Disclaimer: I am an ops person in a dev world.* Hey all, I'm trying to install gems into a specific directory as part of setting up a build environment. Specifically, I'm setting up sass, compass, susy, and breakpoint on Ubuntu 16.04. I have ruby and ruby-dev installed from apt and I have the gems installed globally. However, when I try to use gems to install to the specific folder, I get error messages like so: https://gist.github.com/
[12:27:25] Rodya_: has joined #ruby
[12:27:46] DWSR: Obviously, gem doesn't detect the ruby headers. How can I tell gem that the headers for ruby are located in a different location, while still installing to a specific directory?
[12:28:07] herwin: your link to gist.github is missing something
[12:28:25] jamesaxl: has joined #ruby
[12:28:33] DWSR: herwin: Thanks.
[12:28:34] DWSR: https://gist.github.com/DWSR/a842c0428a9bf9cd55c136f20241bb11
[12:28:43] DWSR: Ran into the character limit for messages, I think
[12:30:30] matthewd: DWSR: Commands you're running too please
[12:31:44] matthewd: Why are you installing to "a specific directory"?
[12:32:06] DWSR: matthewd: gist is updated.
[12:32:11] chouhoulis: has joined #ruby
[12:32:37] DWSR: matthewd: I'm building under Atlassian Bamboo. I have defined Ruby as a build system capability, but want to allow the devs to be able to define which libraries that they use and include without having to install them globally
[12:33:00] DWSR: matthewd: That way they can just write a gem file and have everything stuffed into the build env.
[12:33:25] chichou: DWSR: could you run the gcc command manually?
[12:33:29] matthewd: Okay, next: why aren't you using bundler?
[12:33:32] herwin: so you're trying to reinvent bundler?
[12:33:42] DWSR: matthewd: What is a bundler? :P
[12:33:57] DWSR: matthewd: I'm not a developer, I just got shoved into a devops role, so trial by fire.
[12:34:03] matthewd: Have you spoken to your (presumably ruby) devs about your plan?
[12:34:10] DWSR: matthewd: They're not ruby devs.
[12:34:16] DWSR: And, yes.
[12:35:23] cagomez: has joined #ruby
[12:37:05] jamesaxl: has joined #ruby
[12:38:20] nankyokusei: has joined #ruby
[12:38:45] DWSR: So the problem (at the moment) is that the developers don't have a gem file, just an imperative build script that installs everything globally. It's fine when they're only building the one project, but this build system will have several, and I don't want to trample gems that are specific versions
[12:39:34] herwin: DWSR: https://bundler.io/
[12:42:03] brent__: has joined #ruby
[12:42:06] Puffball: has joined #ruby
[12:42:56] DWSR: herwin: So something like https://gist.github.com/DWSR/3bcfa78d98acc35b980dedda26f4bb15 ?
[12:45:12] zapata: has joined #ruby
[12:45:17] DWSR: And the problem is still the fact that the ffi gem needs compilation
[12:46:49] chouhoulis: has joined #ruby
[12:49:28] Lord_of_Life: has joined #ruby
[12:49:55] swills: has joined #ruby
[12:50:19] aupadhye: has joined #ruby
[12:51:21] cfec0b8d: has joined #ruby
[12:51:55] herwin: is the debian-package libffi-dev installed on the machine where you're trying to compile?
[12:52:28] DWSR: herwin: Yes. If I run the same command but go a global install, it completes successfully.
[12:52:34] DWSR: s/go/do/
[12:54:00] DWSR: herwin: Also, ruby-ffi is installed from apt as well.
[12:54:32] matthewd: Oh, so the global install probably isn't actually trying to do anything
[12:54:41] GodFather: has joined #ruby
[12:54:53] DWSR: matthewd: I can remove the deb package and see.
[12:55:51] DWSR: matthewd: Good call, global install fails.
[12:56:06] jamesaxl: has joined #ruby
[12:56:13] yokel: has joined #ruby
[12:56:56] matthewd: Which would imply some general issue with your ruby-dev setup
[12:57:27] DWSR: So just reinstall all of ruby?
[12:57:45] mim1k: has joined #ruby
[12:57:57] matthewd: Work out why the ruby headers aren't where they should be
[12:58:20] Puffball: has joined #ruby
[12:58:44] DWSR: Going to start with a reinstall.
[13:00:31] mooser: has joined #ruby
[13:02:11] ramortegui: has joined #ruby
[13:03:42] bkxd: has joined #ruby
[13:03:51] DWSR: So it looks like compass is installing ffi, which can't find the development headers for libffi
[13:04:05] mooser: has joined #ruby
[13:04:57] Lord_of_Life: has joined #ruby
[13:05:33] StoneCypher: has joined #ruby
[13:08:07] george2seven: has joined #ruby
[13:09:39] PaulCapestany: has joined #ruby
[13:12:01] CloCkWeRX: has joined #ruby
[13:15:18] bjpenn: has joined #ruby
[13:18:01] stomar: has joined #ruby
[13:19:29] __Yiota: has joined #ruby
[13:20:04] mzo: has joined #ruby
[13:22:21] jusa: has joined #ruby
[13:22:24] conall: has joined #ruby
[13:22:34] conall: Hi, I am trying to mock a method in a utility class and Im not sure how I can go about that. The class I am testing is "LogStash::Filters::myClass", and at the top of that file there is a require_relative to a file with the method I wish to mock.
[13:22:47] conall: The method I wish to mock is not in a "describe" block, it is not associated with any class (so I believe anyways)
[13:22:56] conall: Any and all help is greatly appreciated. Thanks
[13:24:39] claudevandort: has joined #ruby
[13:26:13] Papierkorb: conall: Expect that call to be made against Kernel: `expect(Kernel).to receive(:the_method).with("foo").and_return 5`, if that didn't work, try Object as receiver instead
[13:27:24] Papierkorb: conall: And/Or require the library in a pry session and then try finding it through `method(:the_method)`, the resulting readable output should also tell you who owns it
[13:29:30] Beams: has joined #ruby
[13:30:20] teddysmoker: has joined #ruby
[13:30:23] kke: IO.console_size is documented but does not actually exist (with or without require 'io/console') http://ruby-doc.org/stdlib-2.4.1/libdoc/io/console/rdoc/IO.html haven't changed since at least 2.0.0
[13:30:32] kke: or am i doing something wrong?
[13:31:18] aupadhye: has joined #ruby
[13:31:53] kke: require 'io/console'; IO.console_size --> undefined method `console_size' for IO:Class (NoMethodError)
[13:32:04] qba73: has joined #ruby
[13:32:13] kke: IO.console.winsize works fine
[13:32:40] kke: oh but is that an instance method
[13:33:36] burgestrand: kke it looks to be defined in `io/console/size` which is not pulled in by `io/console`
[13:33:45] burgestrand: >> require "io/console/size"; IO.console_size
[13:33:46] ruby[bot]: Burgestrand: # => (https://eval.in/774732)
[13:34:41] kke: i guess it's a documentation bug then
[13:36:12] allisio: Just dumb structuring, honestly.
[13:36:24] allisio: It's a separate require because the rest of io/console is implemented in C.
[13:36:47] DLSteve: has joined #ruby
[13:37:34] kke: all of the other methods say "you must require 'io/console' to use this method"
[13:38:01] kke: so that one should say "you must require io/console/size etc"
[13:38:05] allisio: Fair enough.
[13:38:13] kke: well of course it could very well be in io/console
[13:46:11] safetypin: has joined #ruby
[13:46:33] Yzguy: has joined #ruby
[13:47:33] impermanence: has joined #ruby
[13:51:20] Pumukel: has joined #ruby
[13:53:54] Pumukel: has joined #ruby
[13:56:54] jonjitsu: has joined #ruby
[13:58:40] woodruffw: has joined #ruby
[13:58:40] woodruffw: has joined #ruby
[13:58:59] Fin1te: has joined #ruby
[13:59:30] war_pigs: has joined #ruby
[13:59:35] seggy: has joined #ruby
[14:00:08] rammanoj_: has joined #ruby
[14:02:14] rammanoj_: i have installed ruby in my system by command sudo apt-get install ruby-full but when I try to install the bundler by typing gem install bundler I am getting an error reporting Fetching: bundler-1.14.6.gem (100%)
[14:02:15] rammanoj_: ERROR: While executing gem ... (Gem::FilePermissionError)
[14:02:15] rammanoj_: You don't have write permissions for the /var/lib/gems/2.3.0 directory.
[14:02:15] rammanoj_: can anyone help me in solving this issue?
[14:02:28] conall: Papierkorb: not working. The method(:my_method) returns #<Method: LogStash::Filters::MyClass(Object)#my_method>. What should I put in the allow() in this case?
[14:02:49] DWSR: rammanoj_: You need to be root to install gems into /var/lib
[14:03:48] swills: has joined #ruby
[14:03:58] rammanoj_: @DWSR thanks I have installed it
[14:04:16] DWSR: rammanoj_: I understand that you have gem installed.
[14:06:30] jrafanie: has joined #ruby
[14:06:44] brogrammer: has joined #ruby
[14:06:58] brogrammer: I am not able to log onto #rails
[14:06:59] war_pigs: has joined #ruby
[14:08:37] GodFather: has joined #ruby
[14:08:40] woodruffw: has joined #ruby
[14:08:41] woodruffw: has joined #ruby
[14:09:05] teddysmoker: brogrammer: I am pretty sure that it's #RubyOnRails
[14:09:17] teddysmoker: brogrammer: But there's not much activity there : (
[14:09:31] teddysmoker: If nobody minds, can I ask a rails-related question here?
[14:10:03] railswebdev: has joined #ruby
[14:10:14] latemus: i want to store objects in a mysql database from my ruby script, not rails. do you guys recommend dbi or mysql
[14:10:35] matthewd: TeddySmoker: There are people there. But it's possible noone knows the answer to your question.
[14:10:38] Jameser: has joined #ruby
[14:10:55] StoneCypher: has joined #ruby
[14:11:27] teddysmoker: matthewd: Indeed, it is possible.
[14:11:31] User458764: has joined #ruby
[14:11:35] patarr: has joined #ruby
[14:12:26] ResidentBiscuit: has joined #ruby
[14:12:56] sumobob: has joined #ruby
[14:14:51] droidburgundy: has joined #ruby
[14:15:46] anisha: has joined #ruby
[14:16:20] bjpenn: has joined #ruby
[14:16:24] bronson: has joined #ruby
[14:16:32] snickers: has joined #ruby
[14:17:11] impermanence: has joined #ruby
[14:19:25] ldnunes: has joined #ruby
[14:19:29] war_pigs: has joined #ruby
[14:24:41] workmad3: has joined #ruby
[14:27:37] jrafanie_: has joined #ruby
[14:30:14] Puffball: has joined #ruby
[14:32:36] jrafanie: has joined #ruby
[14:33:33] ljarvis: latemus: mysql2
[14:34:04] Arpanet69: has joined #ruby
[14:37:25] matthewd: latemus: I'd still recommend Active Record.. but if you only want to talk raw SQL, then yeah, mysql2
[14:38:55] dminuoso: But then again matthewd might be biased. :-)
[14:39:11] nankyokusei: has joined #ruby
[14:39:15] ljarvis: also, I would recommend avoiding ActiveRecord unless you think you need it
[14:39:22] ljarvis: so, there are your options :)
[14:39:35] ljarvis: (i might also be biased)
[14:40:35] matthewd: dminuoso: Okay, I'd recommend using an ORM, because... objects. (And would then secondarily note that AR is perfectly usable without the rest of Rails.)
[14:41:17] dminuoso: matthewd: I was not critisizing you at all. :)
[14:42:14] havenwood: latemus: Another popular, very-nice option is the Sequel gem: http://sequel.jeremyevans.net/
[14:43:07] ljarvis: or just don't use an orm </outrageous comment>
[14:44:39] havenwood: I often use Sequel without ORM. ;-P
[14:44:44] havenwood: The ORM part is optional.
[14:44:58] dminuoso: I often use Sequel without a database.
[14:45:19] dminuoso: But then again Im not always entirely mature.
[14:45:55] havenwood: DBM forever! \o/
[14:46:22] Puffball: has joined #ruby
[14:46:36] insane_tesla: has joined #ruby
[14:46:38] havenwood: YAML::DBM really is handy to have in the stdlib.
[14:46:43] havenwood: insane_tesla: hi
[14:47:19] insane_tesla: I'm trying to implement a login in my app with a microsoft account
[14:47:26] insane_tesla: Do you guys have any experience with that?
[14:48:46] havenwood: insane_tesla: Is that OAuth then?
[14:51:13] havenwood: insane_tesla: http://awesome-ruby.com/#awesome-ruby-authentication-and-oauth
[14:51:35] havenwood: insane_tesla: https://github.com/oauth-xx/oauth-ruby
[14:54:09] insane_tesla: yes, is Oauth
[14:54:19] insane_tesla: the problem is where I have to register my app on microsoft structure?
[14:54:38] havenwood: insane_tesla: What does that mean?
[14:54:38] insane_tesla: because I've tried on Azure, apps.dev.microsoft
[14:54:50] insane_tesla: and is not working well
[14:56:04] rippa: has joined #ruby
[14:58:00] patarr1: has joined #ruby
[14:58:13] mooser: has joined #ruby
[14:59:13] bjpenn: has joined #ruby
[14:59:23] mooser: has joined #ruby
[14:59:36] rgtk: has joined #ruby
[15:04:22] bkxd: has joined #ruby
[15:04:47] mzo: has joined #ruby
[15:05:43] workmad3: has joined #ruby
[15:06:48] jgnagy: has joined #ruby
[15:09:04] VeryBewitching: has joined #ruby
[15:12:25] cagomez: has joined #ruby
[15:13:40] StoneCypher: has joined #ruby
[15:15:35] oded: has joined #ruby
[15:15:39] chouhoulis: has joined #ruby
[15:16:15] chouhoulis: has joined #ruby
[15:16:16] anisha: has joined #ruby
[15:16:20] elsevero: has joined #ruby
[15:17:50] Fin1te: has joined #ruby
[15:18:50] conall: has left #ruby: ()
[15:18:51] jrafanie: has joined #ruby
[15:21:45] mooser: has joined #ruby
[15:23:48] gdonald: has joined #ruby
[15:24:21] cschneid_: has joined #ruby
[15:24:26] mooser_: has joined #ruby
[15:26:20] BackEndCoder: has joined #ruby
[15:27:13] mooser: has joined #ruby
[15:31:01] cdg: has joined #ruby
[15:31:08] plantfood: has joined #ruby
[15:34:32] haylon: has joined #ruby
[15:37:50] brent__: has joined #ruby
[15:38:05] brent__: has joined #ruby
[15:40:51] aupadhye: has joined #ruby
[15:42:28] jdbrowne: has joined #ruby
[15:46:15] bkxd: has joined #ruby
[15:47:07] [Butch]: has joined #ruby
[15:48:34] sumobob: has joined #ruby
[15:48:46] sleetdrop: has joined #ruby
[15:53:02] enterprisey: has joined #ruby
[15:53:10] polishdub: has joined #ruby
[15:54:19] luckyruby: has joined #ruby
[15:55:45] rakm: has joined #ruby
[15:55:46] vdl: has joined #ruby
[15:56:40] amclain: has joined #ruby
[15:57:37] synthroid: has joined #ruby
[15:58:59] synthroid: has joined #ruby
[16:04:01] hutch34_: has joined #ruby
[16:04:24] nowhere_man: has joined #ruby
[16:09:08] war_pigs: has joined #ruby
[16:11:17] mooser: has joined #ruby
[16:11:46] MrBismuth: has joined #ruby
[16:13:36] theRoUS: has joined #ruby
[16:13:36] bkxd: has joined #ruby
[16:16:33] nitric: has joined #ruby
[16:18:41] gusrub: has joined #ruby
[16:18:52] Jameser`: has joined #ruby
[16:19:28] Lord_of_Life: has joined #ruby
[16:20:20] theRoUS: has joined #ruby
[16:20:26] Rodya_: has joined #ruby
[16:24:04] outreachdan: has joined #ruby
[16:26:03] workmad3: has joined #ruby
[16:26:28] dionysus69: has joined #ruby
[16:28:43] nankyokusei: has joined #ruby
[16:32:56] gk_1wm_su: has joined #ruby
[16:33:07] cagomez: has joined #ruby
[16:33:19] gk_1wm_su: has left #ruby: ()
[16:33:50] jaequery: has joined #ruby
[16:34:12] Xiti: has joined #ruby
[16:35:44] gk_1wm_su: has joined #ruby
[16:37:39] gk_1wm_su: has left #ruby: ()
[16:38:13] workmad3: has joined #ruby
[16:38:47] muelleme_: has joined #ruby
[16:40:12] plantfood: has joined #ruby
[16:40:31] cfec0b8d: has joined #ruby
[16:45:38] cagomez: has joined #ruby
[16:46:07] tuxmachine__: has joined #ruby
[16:47:22] SeepingN: has joined #ruby
[16:47:47] tuxmachine__: has joined #ruby
[16:49:51] luckyrub_: has joined #ruby
[16:50:16] aupadhye: has joined #ruby
[16:52:15] bronson: has joined #ruby
[16:52:52] tuxmachine__: has joined #ruby
[16:54:34] jusa: has joined #ruby
[16:55:42] lenwood: has joined #ruby
[16:55:42] tuxmachine__: has joined #ruby
[16:57:04] __Yiota: has joined #ruby
[17:02:55] skweek: has joined #ruby
[17:03:17] tuxmachine__: has joined #ruby
[17:04:35] dhollinger: has joined #ruby
[17:06:20] droidburgundy: has joined #ruby
[17:07:09] lenwood: has joined #ruby
[17:07:55] _djbkd: has joined #ruby
[17:08:19] AndBobsYourUncle: has joined #ruby
[17:11:04] lenwood: has joined #ruby
[17:11:45] hfp: has joined #ruby
[17:12:16] hfp_work: has joined #ruby
[17:12:33] jenrzzz: has joined #ruby
[17:12:33] jenrzzz: has joined #ruby
[17:13:24] jrafanie: has joined #ruby
[17:14:30] ketan: has joined #ruby
[17:16:53] rakm: has joined #ruby
[17:21:59] cagomez: has joined #ruby
[17:22:08] tlaxkit: has joined #ruby
[17:22:44] govg: has joined #ruby
[17:23:10] insane_tesla: has left #ruby: ()
[17:23:54] whathappens: has joined #ruby
[17:30:08] gk_1wm_su: has joined #ruby
[17:31:57] gk_1wm_su: has left #ruby: ()
[17:33:19] brout: has joined #ruby
[17:33:22] manjaro-kde5: has joined #ruby
[17:34:19] cagomez: has joined #ruby
[17:34:29] knight33: has joined #ruby
[17:36:46] gusrub: has joined #ruby
[17:38:26] gusrub: has joined #ruby
[17:39:04] claudevandort: has joined #ruby
[17:40:09] gk_1wm_su: has joined #ruby
[17:42:05] gk_1wm_su: has left #ruby: ()
[17:46:45] millerti: has joined #ruby
[17:47:26] vuoto: has joined #ruby
[17:48:56] psychicist__: has joined #ruby
[17:52:49] jamesaxl: has joined #ruby
[17:55:56] yokel: has joined #ruby
[17:55:58] yokel: has joined #ruby
[17:57:43] kristofferR: has joined #ruby
[17:59:17] Cohedrin: has joined #ruby
[17:59:29] naprimer_2: has joined #ruby
[18:00:44] Epigene: has joined #ruby
[18:00:48] fnodeuser: has joined #ruby
[18:01:00] kristofferR: has joined #ruby
[18:02:41] skweek: has joined #ruby
[18:03:07] fnodeuser: has left #ruby: ()
[18:04:26] mikecmpbll: has joined #ruby
[18:07:31] bonhoeffer_: has joined #ruby
[18:08:16] jamesaxl: has joined #ruby
[18:08:27] s2013: has joined #ruby
[18:10:41] cagomez: has joined #ruby
[18:15:00] TomyLobo: has joined #ruby
[18:15:24] Fin1te: has joined #ruby
[18:16:51] LyndsySimon: I'm bending Ruby again, and I've run into an issue with variable scope. Can anyone tell me why `x` in this gist is not accessible in the scope where I'm trying to use it? https://gist.github.com/lyndsysimon/2289c70a9cf6ff2496b6217373f97273
[18:17:13] LyndsySimon: I guess more importantly, I'm looking for a way of passing a value from the outermost scope to the innermost.
[18:17:45] govg_: has joined #ruby
[18:20:41] baweaver: the things between do and end are blocks
[18:20:48] baweaver: and you're passing the blocks to module_eval
[18:20:56] baweaver: which will strip their native context
[18:21:13] baweaver: ie they have no idea what's outside, they were just told that module _is_ their outside
[18:21:15] LyndsySimon: Hmmm. There's a lot of misinformation out there then.
[18:21:32] bkxd: has joined #ruby
[18:21:36] LyndsySimon: Yeah, one sec. I'll link you what I was reading.
[18:21:37] matthewd: e.g. that ^ ;)
[18:21:59] matthewd: Only the def will break the scope
[18:22:01] SeepingN: has joined #ruby
[18:22:10] matthewd: You could use define_method instead
[18:22:21] baweaver: ah. Shenanigans
[18:22:22] LyndsySimon: baweaver: http://stackoverflow.com/questions/11685965/block-scope-in-ruby#11686015
[18:22:32] LyndsySimon: baweaver: "The block inherits the scope from the context it is defined in"
[18:22:39] war_pigs: has joined #ruby
[18:22:51] rgtk: has joined #ruby
[18:22:53] LyndsySimon: baweaver: I'm not arguing - your explanation matches my observed behavior - just showing why I was confused.
[18:22:56] baweaver: Would have thought module_eval redefined the immediate scope
[18:23:04] cagomez: has joined #ruby
[18:23:11] baweaver: I just never mess with those areas so I may not be a good source
[18:23:23] matthewd: It does in the sense that it changes self, but blocks can always see locals from outer scopes
[18:23:44] LyndsySimon: matthewd: Interesting. Let me tinker with define_method, one sec.
[18:24:31] LyndsySimon: matthewd: It works in my contrived example. So far so good :)
[18:25:33] matthewd: LyndsySimon: It has different results, as you might expect -- it retains a closure, so other things can be kept alive because they're still in scope
[18:25:40] bonhoeffer: has joined #ruby
[18:26:20] LyndsySimon: matthewd: Yep, that's *exactly* what I wanted. I expected my block to create a closure. The use of `def` was preventing inner closures from accessing the locals outside the def.
[18:26:30] LyndsySimon: Yay! Want to see my actual use case?
[18:27:31] futilegames: has joined #ruby
[18:28:10] nofxx: has joined #ruby
[18:28:45] nowhere_man: has joined #ruby
[18:29:52] millerti: has joined #ruby
[18:30:29] jamesaxl: has joined #ruby
[18:31:02] J3RN: has joined #ruby
[18:36:41] gk_1wm_su: has joined #ruby
[18:37:19] J3RN: has left #ruby: ("WeeChat 1.7")
[18:37:43] manjaro-kde5: has joined #ruby
[18:38:35] gk_1wm_su: has left #ruby: ()
[18:40:29] toretore: has joined #ruby
[18:40:31] jamesaxl: has joined #ruby
[18:41:13] enterprisey: has joined #ruby
[18:45:45] aryaching: has joined #ruby
[18:46:02] ashinde_1: has joined #ruby
[18:47:34] patarr: has joined #ruby
[18:47:55] war_pigs: has joined #ruby
[18:48:10] User458764: has joined #ruby
[18:48:44] nankyokusei: has joined #ruby
[18:49:47] _djbkd: has joined #ruby
[18:50:07] roshanavand: has joined #ruby
[18:52:39] knight33: has joined #ruby
[18:52:44] war_pigs: has joined #ruby
[18:53:27] pilne: has joined #ruby
[18:54:22] jusa: has joined #ruby
[18:55:02] ozcanesen: has joined #ruby
[18:57:55] dagelf: has joined #ruby
[18:58:02] Guest96_: has joined #ruby
[18:58:37] aknagi: has joined #ruby
[18:59:15] jamesaxl: has joined #ruby
[18:59:20] cagomez: has joined #ruby
[19:00:39] outreachdan: has joined #ruby
[19:01:30] govg: has joined #ruby
[19:01:52] gk_1wm_su: has joined #ruby
[19:03:12] manjaro-kde5: has joined #ruby
[19:03:23] mndr: has joined #ruby
[19:03:29] jamesaxl: has joined #ruby
[19:03:47] gk_1wm_su: has left #ruby: ()
[19:06:38] bronson: has joined #ruby
[19:07:43] patarr: has joined #ruby
[19:09:23] allisio: LyndsySimon: Show me.
[19:11:12] jenrzzz: has joined #ruby
[19:11:12] jenrzzz: has joined #ruby
[19:11:42] cagomez: has joined #ruby
[19:15:53] jamesaxl: has joined #ruby
[19:18:13] rikkipitt: has joined #ruby
[19:20:44] mooser: has joined #ruby
[19:22:21] bkxd: has joined #ruby
[19:26:01] jamesaxl: has joined #ruby
[19:26:45] blackwind_123: has joined #ruby
[19:27:46] patarr: has joined #ruby
[19:31:16] ResidentBiscuit: has joined #ruby
[19:31:25] jamesaxl: has joined #ruby
[19:31:54] gdonald: has left #ruby: ("Leaving")
[19:33:23] patarr1: has joined #ruby
[19:37:06] _sfiguser: has joined #ruby
[19:37:39] jamesaxl: has joined #ruby
[19:41:49] jgt3: has joined #ruby
[19:42:38] hahuang65: has joined #ruby
[19:43:45] Guest96: has joined #ruby
[19:43:52] deepworld: has joined #ruby
[19:45:42] bronson: has joined #ruby
[19:47:01] pupsicle: has joined #ruby
[19:47:40] jamesaxl: has joined #ruby
[19:50:12] yqt: has joined #ruby
[19:50:54] GodFather: has joined #ruby
[19:51:15] Hanmac: ACTION is now a locomotion because he is steam powered ;p 
[19:55:27] djbkd: has joined #ruby
[19:58:02] jamesaxl: has joined #ruby
[19:58:37] Verity: Ruby paid off! The next lab involved changing the Serial port file transfer utility to use TCP instead
[19:58:45] Verity: total time to complete this task in ruby: 15 minutes :)
[20:02:01] Verity: It would have gone faster but I forgot to wrap some of the calls to getbyte so I had to change that over. I'll be more careful next time
[20:02:04] dhollinger: has joined #ruby
[20:02:39] jamesaxl: has joined #ruby
[20:04:33] brout: has joined #ruby
[20:08:30] sumobob: has joined #ruby
[20:08:45] ResidentBiscuit: has joined #ruby
[20:10:28] stomar: has joined #ruby
[20:10:29] pwnd_nsfw`: has joined #ruby
[20:11:54] yokel: has joined #ruby
[20:14:04] cdg: has joined #ruby
[20:14:32] nowhere_man: has joined #ruby
[20:18:48] apeiros: Verity: great :)
[20:19:04] impermanence: has joined #ruby
[20:22:15] rgr: has joined #ruby
[20:22:18] skweek: has joined #ruby
[20:23:07] bkxd: has joined #ruby
[20:24:36] Eksiker: has joined #ruby
[20:28:38] sumobob: has joined #ruby
[20:28:42] outreachdan: has joined #ruby
[20:31:26] Antiarc: has joined #ruby
[20:32:09] kristofferR: has joined #ruby
[20:35:12] rikkipitt: has joined #ruby
[20:37:47] lxsameer: has joined #ruby
[20:37:48] User458764: has joined #ruby
[20:39:18] mooser: has joined #ruby
[20:41:43] ledestin: has joined #ruby
[20:42:32] jgt3: has joined #ruby
[20:43:29] guacamole: has joined #ruby
[20:46:23] workmad3: has joined #ruby
[20:48:52] ozcanesen: has joined #ruby
[20:48:56] LyndsySimon: allisio: Can you remind me tomorrow? I'm about to head out now, and I've got all kinds of business logic woven into the classes now.
[20:49:27] nankyokusei: has joined #ruby
[20:50:58] aryaching_: has joined #ruby
[20:51:22] jenrzzz: has joined #ruby
[20:51:22] jenrzzz: has joined #ruby
[20:51:27] jrafanie: has joined #ruby
[20:55:13] patarr: has joined #ruby
[20:56:16] rgr_: has joined #ruby
[20:57:36] govg: has joined #ruby
[20:58:29] jdm: has joined #ruby
[21:00:23] duderonomy: has joined #ruby
[21:02:16] outreachdan: has joined #ruby
[21:03:10] mahlon: has joined #ruby
[21:03:39] cagomez: has joined #ruby
[21:03:54] tvw: has joined #ruby
[21:05:42] s2013: has joined #ruby
[21:08:43] snickers: has joined #ruby
[21:09:32] jgt3: has joined #ruby
[21:11:18] al2o3-cr: has joined #ruby
[21:12:13] jenrzzz: has joined #ruby
[21:12:57] maattdd: has joined #ruby
[21:13:42] helpa: has joined #ruby
[21:13:44] cardboard64: has joined #ruby
[21:15:15] b3l914n_: has joined #ruby
[21:16:32] JeanCarloMachado: has joined #ruby
[21:17:47] Violex: has joined #ruby
[21:18:09] Rodya_: has joined #ruby
[21:18:21] cagomez: has joined #ruby
[21:19:22] ged: has joined #ruby
[21:20:08] mim1k: has joined #ruby
[21:23:09] Antiarc: has joined #ruby
[21:23:52] bkxd: has joined #ruby
[21:24:53] Arpanet69: has joined #ruby
[21:26:17] war_pigs: has joined #ruby
[21:30:41] outreachdan: has joined #ruby
[21:31:35] mikecmpbll: anyone familiar with state machine libraries and can recommend one?
[21:32:07] guacamole: has joined #ruby
[21:32:13] baweaver: state_machine seemed straightforward, never used it though
[21:32:54] mikecmpbll: yeah. they all look kind of bewildering to me.
[21:33:19] mikecmpbll: i assume state_machine monkey patches Class or something
[21:37:10] rikkipitt: has joined #ruby
[21:38:20] mephistophocles: has joined #ruby
[21:40:18] pupsicle: has joined #ruby
[21:41:18] griff: has joined #ruby
[21:45:23] cardboard128: has joined #ruby
[21:45:52] mooser: has joined #ruby
[21:52:52] skweek: has joined #ruby
[21:53:35] GodFather: has joined #ruby
[21:55:13] domgetter: has joined #ruby
[21:58:00] bronson: has joined #ruby
[21:58:23] elsevero: has joined #ruby
[21:58:58] Azure: has joined #ruby
[22:00:01] chrisgopher: has joined #ruby
[22:00:22] olivier__: has joined #ruby
[22:05:58] nchambers: has joined #ruby
[22:06:35] nchambers: Hello! I'm building a command line app, and I'm wondering what is the recommended package format/layout, if that makes sense
[22:07:55] Rodya_: has joined #ruby
[22:14:03] war_pigs: has joined #ruby
[22:14:18] roshanavand: has joined #ruby
[22:15:40] Toledo: has joined #ruby
[22:16:38] Robtop__: has joined #ruby
[22:17:04] baweaver: nchambers: generate a new gem basically
[22:17:08] SeepingN: a .rb file which load Trollop
[22:17:17] Verity: has joined #ruby
[22:17:26] cardboard128: has left #ruby: ()
[22:17:30] SeepingN: trollop has been a godsend for my ruby scripts
[22:17:36] nchambers: baweaver: so something like this: http://robdodson.me/how-to-write-a-command-line-ruby-gem/ ?
[22:17:37] baweaver: then the actual app will be in the exe folder
[22:17:45] baweaver: probably, need to read it first
[22:18:02] nchambers: it sounds pretty similar to what you're saying
[22:18:22] baweaver: looks like it
[22:18:24] SeepingN: did you want a gem?
[22:18:27] baweaver: but bin was changed to exe
[22:18:28] SeepingN: I thought you said app
[22:18:37] nchambers: SeepingN: sure
[22:18:40] baweaver: there's a difference?
[22:18:49] baweaver: a gem is an app in some cases
[22:19:07] baweaver: that's standardly how you package anything in Ruby
[22:19:23] SeepingN: to be included into somehting
[22:19:31] SeepingN: this IS the thing, to include gems into
[22:19:38] nchambers: I mean, gem install bundler # this installs the bundle program
[22:19:43] Violex: has joined #ruby
[22:20:00] SeepingN: cp myrubyscriptfromhell /usr/local/bin/
[22:20:22] baweaver: The idea behind a CLI gem is to have an executable for running straight and the libs for building other utils off of
[22:20:47] impermanence: has joined #ruby
[22:21:04] wrkrcoop: has joined #ruby
[22:21:11] wrkrcoop: do i need to close a file in ruby if i use open?
[22:21:35] elomatreb: If you use the block form it is closed for you, if not you need to do it yourself
[22:21:39] wrkrcoop: seems like there’s a memory leak … wondering if that is the problem
[22:22:31] wrkrcoop: elomatreb: u mean we use { } or do end
[22:23:02] elomatreb: File.open(path) { do stuff with it } vs handle = File.open(path)
[22:23:18] wrkrcoop: ok yeah we are using the { do stuff } approach
[22:23:27] SeepingN: it's "implied"
[22:28:19] rakm: has joined #ruby
[22:30:03] patarr: has joined #ruby
[22:33:01] war_pigs: has joined #ruby
[22:36:16] deepworld: has left #ruby: ()
[22:38:04] SeepingN: has joined #ruby
[22:45:04] rgr_: has joined #ruby
[22:46:42] jhack: has joined #ruby
[22:50:27] nankyokusei: has joined #ruby
[22:53:28] ramfjord: has joined #ruby
[22:54:36] jdm: has joined #ruby
[23:04:29] outreachdan: has joined #ruby
[23:07:18] dionysus69: has joined #ruby
[23:08:19] rakm: has joined #ruby
[23:09:01] patarr: has joined #ruby
[23:11:09] outreachdan: has joined #ruby
[23:14:38] ztkz: has joined #ruby
[23:14:44] war_pigs: has joined #ruby
[23:17:34] impermanence: Am I write in thinking that regarding the IO class read and open can be called without dot notatioin (i.e. read(my_file), open(my_file)) but write must use dot notation (i.e. IO.write(my_file, "my_test"))?
[23:17:43] impermanence: right, that is, lol.
[23:19:11] impermanence: https://gist.github.com/jonassteinberg1/7507c399be0f8d81643830fe808f36e4
[23:19:43] impermanence: I couldn't get write to function without calling it as IO.write(my_file, "my test")
[23:20:14] SeepingN: perhaps the "read" you're calling isn't IO.read
[23:20:31] mim1k: has joined #ruby
[23:20:40] impermanence: and I was assuming it was so that could be.
[23:22:48] Radar: I can't call `read/1`... impermanence: where did this question come from?
[23:23:03] patarr: has joined #ruby
[23:23:13] Radar: https://gist.github.com/jonassteinberg1/7507c399be0f8d81643830fe808f36e4#file-gistfile1-txt-L6
[23:23:16] Radar: What is `open` in this context?
[23:23:23] Radar: Oh I am being an idiot never mind.
[23:23:32] Radar: I thought this was #elixir-lang :( Radar needs to wake up.
[23:23:36] impermanence: I wrote my code expression wrong above as well.
[23:23:44] impermanence: I meant my_file.read
[23:24:11] Radar: impermanence: The clue of where .read is defined can be found by doing open(file).class
[23:24:17] impermanence: I guess what I was really asking is why: open(my_file) but not possible: write(my_file, "my text")
[23:24:33] impermanence: Radar: ah. k.
[23:24:36] bkxd: has joined #ruby
[23:25:10] Radar: I don't know why Kernel#open is a thing but Kernel#write isn't.
[23:26:07] impermanence: Radar: yeah...
[23:26:21] dviola: has joined #ruby
[23:26:23] impermanence: anyway: File.
[23:27:27] impermanence: Radar: well...I see that open is in File...but I don't think read is in File...?
[23:27:44] Radar: Welcome to the wonderful world of superclasses in Ruby.
[23:27:58] Radar: File.ancestors will give you places to look.
[23:28:32] wrkrcoop: has joined #ruby
[23:30:21] impermanence: has joined #ruby
[23:30:22] bdonnahue: has joined #ruby
[23:30:26] impermanence: Sorry I dropped for a second.
[23:30:52] impermanence: Radar: I don't know if you had a chance to respond, but .read isn't present in the doc I have for File...
[23:31:03] Radar: [09:27:44] <Radar> Welcome to the wonderful world of superclasses in Ruby.
[23:31:03] Radar: [09:27:58] <Radar> File.ancestors will give you places to look.
[23:31:20] impermanence: Radar: also: what is the significance of .read vs something like .read()?
[23:31:43] impermanence: silly emoji. that was supposed to acknowledge your above comment.
[23:33:02] impermanence: so do the ancestors proceed in hierarchy then from left to right? i.e. [File ... BasicObject]?
[23:34:40] marxarelli: has joined #ruby
[23:35:07] alan_w: has joined #ruby
[23:36:19] enterprisey: has joined #ruby
[23:39:06] esObe: has joined #ruby
[23:43:17] badeball: has joined #ruby
[23:45:25] zeroDivisible: has joined #ruby
[23:45:33] ElderFain: has joined #ruby
[23:46:36] dagelf: has joined #ruby
[23:47:00] sysanthrope: has joined #ruby
[23:52:08] claudevandort: has joined #ruby
[23:54:22] zeroDivisible: has joined #ruby
[23:54:35] esObe: has joined #ruby
[23:55:10] sysanthrope: has joined #ruby
[23:57:02] impermanence: has joined #ruby
[23:57:22] hahuang65: has joined #ruby
[23:58:11] Radar: impermanence: yes that's right