« Back to channel list

#ruby - 26 November 2017

« Back 1 day Forward 1 day »
[00:02:15] jrabe: has joined #ruby
[00:02:40] alveric2: has joined #ruby
[00:09:39] dstrunk: has joined #ruby
[00:10:42] bkxd: has joined #ruby
[00:10:43] lupine: has joined #ruby
[00:11:13] aspiers: has joined #ruby
[00:13:33] oetjenj: has joined #ruby
[00:17:01] guacamole: has joined #ruby
[00:21:40] jenrzzz: has joined #ruby
[00:21:41] jenrzzz: has joined #ruby
[00:22:27] milardovich: has joined #ruby
[00:24:38] bkxd_: has joined #ruby
[00:28:52] bkxd: has joined #ruby
[00:31:49] ahurst: has joined #ruby
[00:31:53] ahurst: has left #ruby: ()
[00:34:52] hndk: has joined #ruby
[00:36:22] x77686d: has joined #ruby
[00:38:37] bambanx: has joined #ruby
[00:39:10] havenwood: al2o3-cr: it looks like christopheraue has a few gems: https://github.com/christopheraue
[00:39:31] bambanx: hello ladies and gentlemen
[00:40:05] havenwood: bambanx: hi
[00:40:28] al2o3-cr: havenwood: thanks, i'll take a look now
[00:40:37] oetjenj: has joined #ruby
[00:40:59] bambanx: havenwood, hey howdy :)
[00:41:23] oetjenj: has joined #ruby
[00:42:09] oetjenj: has joined #ruby
[00:43:36] al2o3-cr: cheers havenwood he has :)
[00:45:03] therealGent: has joined #ruby
[00:47:24] al2o3-cr: ...just what i was looking for
[00:52:29] armando: has joined #ruby
[00:54:15] dshimy: has joined #ruby
[00:54:45] guacamole: has joined #ruby
[01:00:00] alveric3: has joined #ruby
[01:04:50] mjolnird: has joined #ruby
[01:06:11] jenrzzz: has joined #ruby
[01:06:11] jenrzzz: has joined #ruby
[01:08:28] Technodrome: has joined #ruby
[01:13:58] bkxd_: has joined #ruby
[01:29:46] milardovich: has joined #ruby
[01:32:36] bkxd: has joined #ruby
[01:32:44] milardovich: has joined #ruby
[01:38:55] konsolebox: has joined #ruby
[01:39:31] TinkerTyper: has joined #ruby
[01:43:02] bkxd: has joined #ruby
[01:43:25] Azure: has joined #ruby
[01:44:49] milardovich: has joined #ruby
[01:44:58] nofxx: has joined #ruby
[01:47:49] iceden: has joined #ruby
[01:53:46] lexruee: has joined #ruby
[01:59:12] bkxd: has joined #ruby
[02:09:06] Azure: has joined #ruby
[02:15:00] kitsunenokenja: has joined #ruby
[02:16:29] devchild: has joined #ruby
[02:16:42] baweaver: apeiros / jhass / darix : https://baweaver.gitbooks.io/an-illustrated-guide-to-ruby/content/
[02:16:56] baweaver: To be fair I have a good deal of content already written
[02:17:11] baweaver: that said, Well Grounded Rubyist is getting a new version next year it sounds like
[02:18:22] baweaver: that, and I've only been writing for ~3 weeks now :P
[02:20:39] PixeLInc: has joined #ruby
[02:25:13] oleo: has joined #ruby
[02:26:15] enterprisey: has joined #ruby
[02:35:23] x77686d: has joined #ruby
[02:41:39] guacamole: has joined #ruby
[02:44:20] astronavt: has joined #ruby
[02:47:27] iceden: has joined #ruby
[02:57:57] Exhiled: has joined #ruby
[03:00:18] cadillac_: has joined #ruby
[03:03:08] d^sh: has joined #ruby
[03:03:42] apeiros_: has joined #ruby
[03:04:17] armando: has joined #ruby
[03:06:49] jeffreylevesque: has joined #ruby
[03:07:11] jeffreylevesque: what's the minimum needed to be installed to run the `gem` command
[03:07:41] psychicist__: has joined #ruby
[03:07:49] jeffreylevesque: install `rubygems`?
[03:10:09] elomatreb: Depends on the way you installed Ruby. Normally the ruby package of your distribution includes gem, or there is a separate one
[03:12:06] jeffreylevesque: is it possible to install just the ruby package manager on ubuntu 14
[03:12:19] jeffreylevesque: trying to keep things light, when isntalling various linters
[03:12:36] jeffreylevesque: gem allows me to install a bunch of linters apparently
[03:12:52] elomatreb: Gem is written in Ruby and only installs ruby scripts, so you need a ruby interpreter to use it
[03:12:57] jeffreylevesque: or do i have to install the entire ruby?
[03:16:07] devchild: has joined #ruby
[03:17:49] ResidentBiscuit: has joined #ruby
[03:18:21] hutch34: has joined #ruby
[03:20:26] harfangk: has joined #ruby
[03:22:24] s3nd1v0g1us: has joined #ruby
[03:25:36] hyperreal: has left #ruby: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[03:26:41] bkxd: has joined #ruby
[03:27:29] _whitelogger: has joined #ruby
[03:28:31] hutch34: has joined #ruby
[03:30:35] psychicist__: has joined #ruby
[03:32:37] Liothen: has joined #ruby
[03:35:28] milardovich: has joined #ruby
[03:35:38] darix: jeffreylevesque: the gems you want to install probably want the stdlib and stuff. so yes. you need one ruby package
[03:37:09] bkxd_: has joined #ruby
[03:38:35] Dimik: has joined #ruby
[03:38:40] hutch34: has joined #ruby
[03:38:40] charliesome: has joined #ruby
[03:41:56] kozy: has joined #ruby
[03:42:44] kozy: I'm trying to install this gem: https://rubygems.org/gems/asciidoctor-pdf. However, 'gem install asciidoctor-pdf' says that it couldn't find any valid gem called 'asciidoctor-pdf' in any repository. What did I miss?
[03:43:29] pokmo: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[03:44:42] elomatreb: koz_: There is no stable version published, use --pre to get it to also consider non-stable versions
[03:48:52] hutch34: has joined #ruby
[03:51:41] knight33: has joined #ruby
[03:53:16] bkxd: has joined #ruby
[03:57:36] konsolebox: has joined #ruby
[03:59:02] hutch34: has joined #ruby
[04:03:16] milardovich: has joined #ruby
[04:03:36] konsolebox: has joined #ruby
[04:05:54] guacamole: has joined #ruby
[04:09:13] hutch34: has joined #ruby
[04:13:32] mfb2: has joined #ruby
[04:14:52] kinbiko: has joined #ruby
[04:16:55] uZiel: has joined #ruby
[04:17:08] mfb2_: has joined #ruby
[04:18:27] bkxd_: has joined #ruby
[04:19:23] hutch34: has joined #ruby
[04:23:48] kinbiko: has joined #ruby
[04:26:34] cdg: has joined #ruby
[04:29:30] bkxd: has joined #ruby
[04:29:33] hutch34: has joined #ruby
[04:35:45] Azure: has joined #ruby
[04:36:10] cdg: has joined #ruby
[04:37:13] knight33: has joined #ruby
[04:39:02] houhoulis: has joined #ruby
[04:39:44] hutch34: has joined #ruby
[04:39:55] kinbiko: has joined #ruby
[04:41:24] shinnya: has joined #ruby
[04:44:51] kozy: elomatreb: Thank you!
[04:46:58] kinbiko: has joined #ruby
[04:48:40] gix: has joined #ruby
[04:49:03] eckhardt: has joined #ruby
[04:49:07] kozy: has left #ruby: ("WeeChat 1.9.1")
[04:49:53] hutch34: has joined #ruby
[04:50:14] x77686d: has joined #ruby
[04:50:52] eightlimbed: has joined #ruby
[04:57:27] knight33: has joined #ruby
[05:00:05] hutch34: has joined #ruby
[05:02:12] milardovich: has joined #ruby
[05:02:24] milardovich: has joined #ruby
[05:03:07] kinbiko: has joined #ruby
[05:03:19] milardovich: has joined #ruby
[05:04:12] milardovich: has joined #ruby
[05:05:08] milardovich: has joined #ruby
[05:05:42] govg: has joined #ruby
[05:06:33] christiandsg: has joined #ruby
[05:10:14] hutch34: has joined #ruby
[05:11:59] kinbiko: has joined #ruby
[05:15:21] bkxd: has joined #ruby
[05:17:53] christiandsg: has joined #ruby
[05:20:24] hutch34: has joined #ruby
[05:20:27] Technodrome: has joined #ruby
[05:25:40] ahurst: has joined #ruby
[05:28:07] kinbiko: has joined #ruby
[05:30:34] hutch34: has joined #ruby
[05:36:49] kinbiko: has joined #ruby
[05:40:46] hutch34: has joined #ruby
[05:42:27] bkxd: has joined #ruby
[05:44:55] ahurst: has joined #ruby
[05:46:43] konsolebox: has joined #ruby
[05:50:58] hutch34: has joined #ruby
[05:52:57] kinbiko: has joined #ruby
[05:53:42] bkxd: has joined #ruby
[05:58:24] eckhardt: has joined #ruby
[05:59:16] devchild: has joined #ruby
[06:00:27] nowhere_man: has joined #ruby
[06:01:05] hutch34: has joined #ruby
[06:01:22] dineshitr: has joined #ruby
[06:01:29] dineshitr: has left #ruby: ()
[06:01:58] kinbiko: has joined #ruby
[06:06:25] lexruee: has joined #ruby
[06:07:31] silvermine: has joined #ruby
[06:07:47] konsolebox: has joined #ruby
[06:10:13] bkxd: has joined #ruby
[06:11:14] hutch34: has joined #ruby
[06:15:26] mfb2: has joined #ruby
[06:18:01] kinbiko: has joined #ruby
[06:21:28] hutch34: has joined #ruby
[06:31:41] hutch34: has joined #ruby
[06:34:12] kinbiko: has joined #ruby
[06:41:51] hutch34: has joined #ruby
[06:42:09] kinbiko: has joined #ruby
[06:44:31] nchambers: has left #ruby: ()
[06:45:28] mfb2_: has joined #ruby
[06:46:35] bkxd: has joined #ruby
[06:47:10] nchambers: has joined #ruby
[06:51:34] cdg: has joined #ruby
[06:51:55] kinbiko: has joined #ruby
[06:51:56] hutch34: has joined #ruby
[06:53:06] yabbes: has joined #ruby
[07:00:53] kinbiko: has joined #ruby
[07:02:17] hutch34: has joined #ruby
[07:06:23] rippa: has joined #ruby
[07:07:35] Cra2yZer0: has joined #ruby
[07:08:47] aiguuu: has joined #ruby
[07:11:44] minimalism: has joined #ruby
[07:12:24] hutch34: has joined #ruby
[07:17:01] kinbiko: has joined #ruby
[07:22:37] hutch34: has joined #ruby
[07:30:10] kinbiko: has joined #ruby
[07:32:48] hutch34: has joined #ruby
[07:37:01] Exhiled: has joined #ruby
[07:40:48] bkxd: has joined #ruby
[07:43:00] hutch34: has joined #ruby
[07:46:16] kinbiko: has joined #ruby
[07:53:08] hutch34: has joined #ruby
[08:01:21] mjolnird: has joined #ruby
[08:02:06] uZiel: has joined #ruby
[08:02:31] kinbiko: has joined #ruby
[08:03:19] hutch34: has joined #ruby
[08:08:07] marr: has joined #ruby
[08:10:37] kapil___: has joined #ruby
[08:12:53] kinbiko: has joined #ruby
[08:13:30] hutch34: has joined #ruby
[08:15:27] bkxd_: has joined #ruby
[08:15:31] alex``: has joined #ruby
[08:20:51] mtkd: has joined #ruby
[08:22:57] apparition: has joined #ruby
[08:23:40] hutch34: has joined #ruby
[08:31:22] oetjenj: has joined #ruby
[08:32:41] kinbiko: has joined #ruby
[08:33:55] hutch34: has joined #ruby
[08:41:04] claudiuinberlin: has joined #ruby
[08:43:45] InfinityFye: has joined #ruby
[08:44:01] konsolebox: has joined #ruby
[08:44:02] hutch34: has joined #ruby
[08:51:30] zautomata: has joined #ruby
[08:52:37] miskatonic: has joined #ruby
[08:54:13] hutch34: has joined #ruby
[08:56:51] conta: has joined #ruby
[09:00:38] bkxd: has joined #ruby
[09:03:06] kinbiko: has joined #ruby
[09:04:20] Cra2yZer0: has joined #ruby
[09:04:25] hutch34: has joined #ruby
[09:06:07] milardovich: has joined #ruby
[09:07:19] yabbes: has joined #ruby
[09:12:47] mochiyoda: has joined #ruby
[09:14:35] hutch34: has joined #ruby
[09:24:45] hutch34: has joined #ruby
[09:34:58] hutch34: has joined #ruby
[09:35:44] devchild: has joined #ruby
[09:38:33] mikecmpbll: has joined #ruby
[09:42:00] bkxd_: has joined #ruby
[09:43:49] tAn: has joined #ruby
[09:45:04] hutch34: has joined #ruby
[09:46:54] TomyLobo: has joined #ruby
[09:47:02] bkxd: has joined #ruby
[09:48:06] InfinityFye: has joined #ruby
[09:55:21] hutch34: has joined #ruby
[09:58:34] pwnd_nsfw: has joined #ruby
[09:59:49] yqt: has joined #ruby
[10:01:07] ltem: has joined #ruby
[10:05:27] hutch34: has joined #ruby
[10:06:02] ur5us: has joined #ruby
[10:13:38] ShekharReddy: has joined #ruby
[10:14:34] raatiniemi: has joined #ruby
[10:15:41] hutch34: has joined #ruby
[10:19:13] lexruee: has joined #ruby
[10:25:52] hutch34: has joined #ruby
[10:34:21] tomphp: has joined #ruby
[10:36:03] hutch34: has joined #ruby
[10:36:32] quobo: has joined #ruby
[10:40:09] troulouliou_div2: has joined #ruby
[10:41:19] cdg: has joined #ruby
[10:43:48] troulouliou_div2: has joined #ruby
[10:46:10] dinfuehr: has joined #ruby
[10:46:16] hutch34: has joined #ruby
[10:49:25] raul782: has joined #ruby
[10:50:42] konsolebox: has joined #ruby
[10:53:16] MrBusiness: has joined #ruby
[10:56:26] hutch34: has joined #ruby
[11:00:13] konsolebox: has joined #ruby
[11:04:14] yeticry_: has joined #ruby
[11:06:39] hutch34: has joined #ruby
[11:08:34] tomphp: has joined #ruby
[11:10:17] raatiniemi: has joined #ruby
[11:16:47] hutch34: has joined #ruby
[11:17:13] konsolebox: has joined #ruby
[11:24:11] tomphp: has joined #ruby
[11:26:59] hutch34: has joined #ruby
[11:28:45] konsolebox: has joined #ruby
[11:29:08] leitz: has joined #ruby
[11:30:33] uZiel: has joined #ruby
[11:30:46] d^sh: has joined #ruby
[11:34:07] tomphp: has joined #ruby
[11:34:33] c0ncealed: has joined #ruby
[11:37:06] psychicist__: has joined #ruby
[11:37:10] hutch34: has joined #ruby
[11:37:45] raul782: has joined #ruby
[11:40:38] muelleme: has joined #ruby
[11:40:45] konsolebox: has joined #ruby
[11:41:35] despai: has joined #ruby
[11:43:46] zautomata: has joined #ruby
[11:46:17] PhoenixMage: has left #ruby: ()
[11:47:18] hutch34: has joined #ruby
[11:49:22] raul782: has joined #ruby
[11:49:45] konsolebox: has joined #ruby
[11:50:09] goyox86: has joined #ruby
[11:55:17] konsolebox: has joined #ruby
[11:56:09] uZiel: has joined #ruby
[11:57:32] hutch34: has joined #ruby
[11:59:52] Emmanuel_Chanel: has joined #ruby
[11:59:53] marr: has joined #ruby
[12:01:14] konsolebox: has joined #ruby
[12:01:17] uZiel: has joined #ruby
[12:07:39] hutch34: has joined #ruby
[12:09:14] konsolebox: has joined #ruby
[12:12:45] janko_s_: has joined #ruby
[12:15:20] konsolebox: has joined #ruby
[12:16:02] David_H_Smith: has joined #ruby
[12:17:54] hutch34: has joined #ruby
[12:19:52] silvermine: has joined #ruby
[12:22:44] nowhereman_: has joined #ruby
[12:25:49] konsolebox: has joined #ruby
[12:27:22] muelleme: has joined #ruby
[12:28:00] hutch34: has joined #ruby
[12:30:16] dionysus69: has joined #ruby
[12:34:55] miskaton`: has joined #ruby
[12:38:12] hutch34: has joined #ruby
[12:46:21] kitsunenokenja: has joined #ruby
[12:48:20] hutch34: has joined #ruby
[12:58:36] hutch34: has joined #ruby
[13:00:30] cadillac_: has joined #ruby
[13:02:24] jeffreylevesque: is there a recommended way to install ruby 2.x on ubuntu 14.04?
[13:05:56] ltem: has joined #ruby
[13:07:36] eb0t: has joined #ruby
[13:08:05] eb0t_: has joined #ruby
[13:08:46] hutch34: has joined #ruby
[13:10:51] gheegh: has joined #ruby
[13:11:04] nopolitica: has joined #ruby
[13:12:55] agent_white: has joined #ruby
[13:17:40] pwnd_nsfw: has joined #ruby
[13:17:44] silvermine: has joined #ruby
[13:18:51] dionysus69: has joined #ruby
[13:18:56] hutch34: has joined #ruby
[13:19:14] gizmore: has joined #ruby
[13:20:29] janko_s_: Install rvm first and ruby then
[13:21:04] janko_s_: https://rvm.io
[13:26:18] x77686d: has joined #ruby
[13:28:22] miskatonic: has joined #ruby
[13:29:05] tomphp: has joined #ruby
[13:29:08] hutch34: has joined #ruby
[13:32:46] raul782: has joined #ruby
[13:35:03] raul782: has joined #ruby
[13:36:22] sepp2k: has joined #ruby
[13:39:15] hutch34: has joined #ruby
[13:39:24] astronavt: has joined #ruby
[13:41:52] hays: has joined #ruby
[13:41:53] hays: has joined #ruby
[13:44:17] profetes: has joined #ruby
[13:44:24] x77686d: has joined #ruby
[13:44:37] nopoliti1: has joined #ruby
[13:49:44] hutch34: has joined #ruby
[13:50:26] TomyLobo: there is chruby, too
[13:51:09] jhass: too bad it doesn't actually install ruby
[13:54:58] oetjenj: has joined #ruby
[13:55:41] TomyLobo: hmm, then that's probably not what i use at work ^^
[13:55:45] oetjenj: has joined #ruby
[13:55:52] TomyLobo: cant look it up right now
[13:56:30] oetjenj: has joined #ruby
[13:56:52] jhass: chruby is for switching between ruby installations you obtained via other means, for example your package manager, RVM, ruby-build or ruby-install
[13:57:18] oetjenj: has joined #ruby
[13:58:03] oetjenj: has joined #ruby
[13:58:13] TomyLobo: btw, I'm looking for a parser that takes up less memory than parslet. Reason being that I'm trying to parse a large text file (stellaris save game, 38 MB) with parslet and it aborts with "[FATAL] failed to allocate memory"
[13:59:13] TomyLobo: I'm on babun, which is a cygwin installer for, i think, the 32 bit variant. I have plenty of RAM, but I think it hits the memory limit for 32 bit processes
[13:59:39] hutch34: has joined #ruby
[14:02:42] john__: has joined #ruby
[14:04:49] TomyLobo: i might just be doing it wrong, but the design goals for parslet dont really look like they care a lot about resource usage but more about simplicity
[14:09:09] GodFather_: has joined #ruby
[14:09:52] hutch34: has joined #ruby
[14:10:53] Jicemo: has joined #ruby
[14:12:35] ShalokShalom: has joined #ruby
[14:13:23] safetypin: has joined #ruby
[14:14:26] char_var[buffer]: has joined #ruby
[14:20:00] hutch34: has joined #ruby
[14:30:12] hutch34: has joined #ruby
[14:30:37] dionysus69: has joined #ruby
[14:31:38] oetjenj: has joined #ruby
[14:33:56] TomyLobo: https://ideone.com/zyOChb here's the grammar with some representative example input, all contained in one file
[14:34:01] my123: has joined #ruby
[14:34:01] my123: has joined #ruby
[14:34:03] conta1: has joined #ruby
[14:36:05] gheegh: has joined #ruby
[14:36:42] TomyLobo: the actual input is 38 MB
[14:38:09] psychicist__: has joined #ruby
[14:39:50] jhass: well, 38M of that in simple ruby hashes already probably takes up half a gig
[14:40:23] hutch34: has joined #ruby
[14:40:31] jhass: personally I probably would just hack up a hand written pull parser
[14:45:04] TomyLobo: i can cut it down to 24 MB
[14:45:25] TomyLobo: and i can probably filter down the attributes even more, since i only need a fraction of them
[14:46:11] jhass: fraction as in like a dozen? unique names? if both yes I'd just go for .scan(//) tbh
[14:46:33] TomyLobo: well i'd still need the overarching structure
[14:48:44] miskatonic: has joined #ruby
[14:48:51] TomyLobo: and no, not a dozen, but like 1/5 to 1/3 of each larger structure's attributes
[14:49:40] TomyLobo: but having the entire save in memory to do fancy mappings and such on it would be nice too
[14:50:31] hutch34: has joined #ruby
[14:51:06] yabbes: has joined #ruby
[14:51:21] nopoliti1: has joined #ruby
[14:51:41] TomyLobo: jhass, btw scanning is what i did before, basically :)
[14:51:42] TomyLobo: https://gist.github.com/TomyLobo/379ada74f6f218933eb11a296afd260d
[14:52:10] TomyLobo: but now i want to fill a google spreadsheet with the pop counts per species for each planet of my empire
[14:52:33] TomyLobo: so i need to go through the planets and cross-reference the species list and the country list
[14:53:07] konsolebox: has joined #ruby
[14:54:10] agent_white: has joined #ruby
[14:54:46] hays: has joined #ruby
[14:54:46] hays: has joined #ruby
[14:55:59] DLSteve: has joined #ruby
[15:00:07] konsolebox: has joined #ruby
[15:00:44] hutch34: has joined #ruby
[15:00:59] despai: has joined #ruby
[15:04:25] Vile`: has joined #ruby
[15:06:05] ahurst: has joined #ruby
[15:07:32] oetjenj: has joined #ruby
[15:08:34] mim1k: has joined #ruby
[15:10:56] hutch34: has joined #ruby
[15:21:02] hutch34: has joined #ruby
[15:24:07] dionysus69: has joined #ruby
[15:25:13] apeiros_: has joined #ruby
[15:31:15] hutch34: has joined #ruby
[15:36:16] dviola: has joined #ruby
[15:41:29] hutch34: has joined #ruby
[15:42:04] malice`: has joined #ruby
[15:42:13] flori: has joined #ruby
[15:43:31] malice`: Hi! I want to make it available for user(of the interface) to provide a class to instantiate, and I
[15:43:36] malice`: damn it, my enter
[15:43:39] xlegoman: has joined #ruby
[15:43:44] malice`: and I'd like it to implement some interface
[15:43:57] ahurst: has joined #ruby
[15:44:41] malice`: Can I somehow do that in Ruby?
[15:44:54] malice`: I know I could pass class by its name, so I could do something like my_fun(Hash)
[15:45:09] malice`: should I make if with kind_of? in there?
[15:45:22] Papierkorb: You can also just pass in a Class as object
[15:45:29] Papierkorb: no string magic required
[15:45:37] TomyLobo: malice`, user interface or interface for a user of your library? :D
[15:45:54] jhass: define interfaces through .respond_to? or just calling some methods, not through inheritance
[15:46:12] malice`: Papierkorb: I wasn't talking about strings anywhere
[15:46:22] malice`: TomyLobo: the second choice :p
[15:46:24] Papierkorb: > I know I could pass class by its name,
[15:46:35] astronavt: has joined #ruby
[15:46:56] malice`: Papierkorb: well, what I meant is that when you've got class, its bound to some name, i.e. class Hash
[15:47:17] malice`: jhass: why?
[15:47:27] TomyLobo: malice`, but yeahm as jhass said, before you determine that, you need to figure out which strategy you want: inheritance or duck typing
[15:47:36] darkod: has joined #ruby
[15:48:02] jhass: because that gives your users a lot more flexibility (and also because it's the more common approach in the ruby community)
[15:48:04] Papierkorb: I usually have a module the user includes, which then has the to-be implemented methods as stubs raising NotImplementedError
[15:48:19] Papierkorb: So the user can simply read a module, and doesn't have to guess what's expected
[15:48:43] jhass: Papierkorb: do you enforce they include it though?
[15:49:10] Papierkorb: jhass: Sometimes. Ruby doesn't offer these facilities that would be very much appreciated
[15:49:14] darkod: I read about GIL in Ruby. Does that mean running infinite loop blocks other web requests from doing job in my RoR app?
[15:49:14] malice`: jhass: What kind of flexibility? I don't see anything wrong with the inheritance approach. I know it couples tightly, but also makes it easy to know what you're working with
[15:49:38] jhass: darkod: quite likely, if the loop body never does IO or similar
[15:50:24] darkod: jhass: interesting, that sounds like node.js
[15:50:35] jhass: malice`: well, first you would need to accept that you can't possibly anticipate all usecases :P But think about mock generation for example
[15:51:10] malice`: jhass: couldn't just mock inherit from the same interface?
[15:51:20] jhass: darkod: similar problem yeah, I think node.js solves it with coroutines rather than threads though?
[15:51:31] hndk: has joined #ruby
[15:51:43] malice`: all I want to do is specify an interface. I know it's kind of futile in Ruby, but I don't want to try to enforce it, but rather show what you need to do.
[15:51:45] hutch34: has joined #ruby
[15:51:55] jhass: malice`: that's not always convenient or even possible if you use some library to generate your mock
[15:51:55] malice`: and with mock, you'd just inherit from the same interface and create SomeMockClass
[15:52:14] jhass: so write good documentation and examples
[15:52:22] jhass: that gets you far further IMO
[15:52:28] Papierkorb: malice`: That's why I use the documenting-module
[15:52:52] Papierkorb: People know how to read code. They can do that quite fast. Reading custom docs is simply slower
[15:52:56] Papierkorb: and more error prone
[15:53:18] jhass: hence the examples :P
[15:53:21] Papierkorb: Also lets you add docs to the expected methods/behaviour
[15:54:44] TomyLobo: jhass, i'll take your advice and hand-code the parser. I've written parsers before... what is a pull parser (google only points me to some java api called XML pull parser) and why should i use that, over, say, recursive-descent?
[15:56:12] jhass: it's mainly about the way the parser is used, it allows for parsing a stream and not keeping the entire parsed structure in memory
[15:56:43] jhass: my favorite example is https://github.com/crystal-lang/crystal/blob/master/src/json/pull_parser.cr :P
[15:57:53] jhass: also it keeps the flow control on the caller's side
[15:58:12] duderonomy: has joined #ruby
[15:58:53] bmurt: has joined #ruby
[15:59:58] TomyLobo: well i want basically a tree in the end, so...
[16:00:23] TomyLobo: it cant be that bad :)
[16:00:40] TomyLobo: and if it is, i'll devise a structured filtering mechanism
[16:00:46] kitsunenokenja: has joined #ruby
[16:01:05] jhass: sure, let's hope the saves never get 1G big :D
[16:01:19] TomyLobo: probably not
[16:01:26] TomyLobo: this one is already pretty excessive
[16:01:49] hutch34: has joined #ruby
[16:02:14] jhass: yet the memory usage with a streaming parser (and writer I guess) still probably would be way below a tenth :D
[16:02:32] jhass: but I agree that's just optimizing for the fun of it
[16:04:51] Barrt: has joined #ruby
[16:12:00] hutch34: has joined #ruby
[16:15:10] chmurifree: has joined #ruby
[16:16:56] TomyLobo: streaming... maybe
[16:17:04] TomyLobo: but that'll only save me 38M at most :)
[16:20:05] AKPWD: has joined #ruby
[16:20:11] Olipro: has joined #ruby
[16:20:30] perry: has joined #ruby
[16:20:31] perry: has joined #ruby
[16:21:02] Utkarsh: has joined #ruby
[16:22:10] hutch34: has joined #ruby
[16:22:16] goyox86: has joined #ruby
[16:23:04] bokayio: has joined #ruby
[16:24:37] z3uS: has joined #ruby
[16:24:42] selim: has joined #ruby
[16:25:02] Xeago: has joined #ruby
[16:25:29] mtkd: has joined #ruby
[16:25:40] spectra: has joined #ruby
[16:26:26] bmurt: has joined #ruby
[16:28:11] apeiros_: has joined #ruby
[16:29:52] jhass: well, you quickly end up with 3-4 copies of that in regular approaches, plus more housekeeping and organization structures (more hashes and arrays)
[16:30:42] rainbowz: has joined #ruby
[16:31:02] christiandsg: has joined #ruby
[16:31:57] mim1k: has joined #ruby
[16:32:16] hutch34: has joined #ruby
[16:39:06] drowze: has joined #ruby
[16:39:44] marr: has joined #ruby
[16:40:32] eightlimbed: has joined #ruby
[16:42:33] hutch34: has joined #ruby
[16:42:50] zautomata1: has joined #ruby
[16:43:18] selim: has joined #ruby
[16:45:34] dionysus69: has joined #ruby
[16:45:53] TomyLobo: well i'll make sure to only scan on the original string
[16:46:18] foxxx0: has joined #ruby
[16:46:46] TomyLobo: problem is, the format isn't quite context-free
[16:46:46] apeiros_: has joined #ruby
[16:46:52] TomyLobo: array and dictionary overlap slightly
[16:48:38] ahrs: has joined #ruby
[16:50:08] TomyLobo: i can probably disambiguate that by checking if the first token is an identifier or something else
[16:52:45] hutch34: has joined #ruby
[16:59:51] tomphp: has joined #ruby
[17:01:42] ramfjord: has joined #ruby
[17:02:55] hutch34: has joined #ruby
[17:09:21] tomphp: has joined #ruby
[17:09:50] TomyLobo: for some reason, the "multimap" gem needs ffi and for some reason that doesnt work on babun.
[17:10:14] TomyLobo: is anyone aware of another gem that implements a multimap (hash with duplicate keys, basically)
[17:10:37] TomyLobo: https://github.com/doxavore/multimap basically this, but without C parts ^^
[17:13:01] TomyLobo: h = Hash.new { |h,k| h[k] = [] } # or i'll just do that. thanks, michael kohl from stackoverflow :)
[17:13:06] hutch34: has joined #ruby
[17:18:03] guacamole: has joined #ruby
[17:20:40] alex``: has joined #ruby
[17:22:39] Barrt: has joined #ruby
[17:22:49] xlegoman: has joined #ruby
[17:23:15] hutch34: has joined #ruby
[17:23:44] roshanavand: has joined #ruby
[17:25:06] Technodrome: has joined #ruby
[17:29:00] miskaton`: has joined #ruby
[17:29:29] jamesaxl: has joined #ruby
[17:33:22] quobo: has joined #ruby
[17:33:46] daemonwrangler: has joined #ruby
[17:37:49] daemonwrangler: has joined #ruby
[17:39:28] ramfjord: has joined #ruby
[17:41:51] safetypin: has joined #ruby
[17:42:26] janko_s: has joined #ruby
[17:44:04] daemonwrangler: has joined #ruby
[17:48:17] ledestin: has joined #ruby
[17:49:52] mn3m: has joined #ruby
[17:53:39] gheegh: has joined #ruby
[17:55:23] Exhiled: has joined #ruby
[17:57:57] Barrt: has joined #ruby
[17:58:14] daemonwrangler: has joined #ruby
[17:58:54] bmurt: has joined #ruby
[18:02:50] Exhiled: has joined #ruby
[18:03:16] Barrt: has joined #ruby
[18:05:41] miskaton`: has joined #ruby
[18:09:45] miskatonic: has joined #ruby
[18:13:05] ur5us: has joined #ruby
[18:14:19] devchild: has joined #ruby
[18:15:44] devchild_: has joined #ruby
[18:17:22] zanoni: has joined #ruby
[18:20:55] eckhardt: has joined #ruby
[18:25:03] im0nde: has joined #ruby
[18:25:32] Barrt: has joined #ruby
[18:30:56] milardovich: has joined #ruby
[18:31:20] uZiel: has joined #ruby
[18:32:54] hfp_work: has joined #ruby
[18:35:25] astronavt: has joined #ruby
[18:45:04] silverdust: has joined #ruby
[18:48:56] Dimik: has joined #ruby
[18:52:56] ur5us: has joined #ruby
[18:54:29] tAn: has joined #ruby
[18:59:39] Barrt: has joined #ruby
[19:01:03] Alchemical: has joined #ruby
[19:03:04] moei: has joined #ruby
[19:05:52] hutch34: has joined #ruby
[19:06:39] gheegh: has joined #ruby
[19:07:46] jackjackdripper: has joined #ruby
[19:10:20] Barrt: has joined #ruby
[19:10:36] hays: has joined #ruby
[19:10:36] hays: has joined #ruby
[19:13:02] mjolnird: has joined #ruby
[19:17:02] mim1k: has joined #ruby
[19:27:57] milardovich: has joined #ruby
[19:28:34] tomphp: has joined #ruby
[19:30:18] Barrt: has joined #ruby
[19:30:21] guacamole: has joined #ruby
[19:31:24] dionysus69: has joined #ruby
[19:36:18] JaccoP: has joined #ruby
[19:36:54] kapil___: has joined #ruby
[19:37:58] christiandsg: has joined #ruby
[19:42:17] marens: has joined #ruby
[19:42:17] marens: has joined #ruby
[19:46:29] plexigras: has joined #ruby
[19:46:43] JaccoP: is this really all that goes on here
[19:46:45] ferr: has joined #ruby
[19:47:05] JaccoP: well apparently
[19:47:20] ferr: how do I get the path where my gem is executed? For e.g. if I run gem run in my /home/ferr I need that path in the ruby code, how do I get it?
[19:49:09] bmurt: has joined #ruby
[19:56:40] bmurt: has joined #ruby
[19:59:24] guille-moe: has joined #ruby
[19:59:28] marens: has joined #ruby
[19:59:28] marens: has joined #ruby
[20:01:35] hays: has joined #ruby
[20:01:35] hays: has joined #ruby
[20:02:44] TomyLobo: jhass, ok my parser is done. it freezes.
[20:04:20] vondruch: has joined #ruby
[20:18:14] mson: has joined #ruby
[20:18:16] flori: has joined #ruby
[20:20:49] AlexRussia: has joined #ruby
[20:25:53] guille-moe: has joined #ruby
[20:28:43] iceden: has joined #ruby
[20:28:58] jokester: has joined #ruby
[20:34:42] Senecea: has joined #ruby
[20:36:04] SCHAPiE: has joined #ruby
[20:36:44] elcontrastador: has joined #ruby
[20:42:49] totigno82: has joined #ruby
[20:43:27] totigno82: has left #ruby: ()
[20:43:39] solocshaw1: has joined #ruby
[20:44:25] lexruee: has joined #ruby
[20:45:08] JaccoP: has joined #ruby
[20:47:09] JaccoP: has joined #ruby
[20:47:36] JaccoP: has joined #ruby
[20:54:26] JaccoP: has joined #ruby
[20:55:11] JaccoP: has joined #ruby
[21:03:09] muelleme: has joined #ruby
[21:03:10] bmurt: has joined #ruby
[21:04:29] flori: has joined #ruby
[21:07:03] daemonwrangler: has joined #ruby
[21:09:10] daemonwrangler: has joined #ruby
[21:09:40] Technodrome: has joined #ruby
[21:11:46] iceden: has joined #ruby
[21:17:32] daemonwrangler: has joined #ruby
[21:23:40] Guest90: has joined #ruby
[21:25:19] sepp2k1: has joined #ruby
[21:26:24] quobo: has joined #ruby
[21:27:16] despai: has joined #ruby
[21:31:47] yosafbridge: has joined #ruby
[21:32:12] ap4y: has joined #ruby
[21:37:34] flori: has joined #ruby
[21:38:13] yosafbridge: has joined #ruby
[21:38:37] d^sh: has joined #ruby
[21:38:58] leitz: Okay, need some help clearing up my confusion. Class Character requires and includes Module CharacterTools. https://github.com/LeamHall/CT_Character_Generator/blob/upp_to_struct/lib/character.rb
[21:39:16] leitz: https://github.com/LeamHall/CT_Character_Generator/blob/upp_to_struct/lib/character_tools.rb
[21:39:56] leitz: There's a method to return a character's title if the person is noble. The method needs the character UPP and gender.
[21:40:30] leitz: https://github.com/LeamHall/CT_Character_Generator/blob/upp_to_struct/lib/character_tools.rb#L154-L162
[21:41:29] leitz: PresenterDefault calls character.title and should print a title if the character has one.
[21:41:30] leitz: https://github.com/LeamHall/CT_Character_Generator/blob/upp_to_struct/lib/presenter_default.rb#L6
[21:42:17] leitz: However, putting in some "puts" statements shows presenter_default#L6 isn't called at all. Tests fail as well.
[21:42:42] leitz: Besides a brain, a clue, and a life, what am I missing?
[21:50:28] claudiuinberlin: has joined #ruby
[21:52:12] daemonwrangler: has joined #ruby
[21:53:14] zanoni: If I insert the the same string into an array as a hash, the hash seems to be adding in backslashes, while the strings in the array remain as inserted. This make sense?
[21:53:50] bmurt: has joined #ruby
[21:57:45] miskatonic: has joined #ruby
[21:59:35] Cohedrin: has joined #ruby
[21:59:36] JaccoP: has joined #ruby
[21:59:50] daemonwrangler: has joined #ruby
[22:01:21] _sfiguser: has joined #ruby
[22:02:59] zanoni: maybe my question doesn't make sense
[22:03:33] leitz: zanoni, sometimes showing the code in a gist helps. I'm not an expert, so not sure I can help.
[22:06:37] miskatonic: zanoni has been brought to you by Eddy Bulwer-Lytton
[22:06:53] leitz: miskatonic?
[22:07:13] miskatonic: There is a novel named Zanoni
[22:07:31] leitz: Ah. There's a college named Miskatonic. :)
[22:08:28] mn3m_: has joined #ruby
[22:08:29] guacamole: has joined #ruby
[22:08:35] miskatonic: that college hads been brought to you by Howard Philip Lovecraft
[22:08:51] leitz: Reminds me of my first marraige...
[22:09:10] baweaver: zanoni: Mind throwing up an example? gist.github.com/
[22:10:01] miskatonic: what is this gist thing? Something like pastebin?
[22:10:03] baweaver: leitz: Seen keyword arguments yet?
[22:10:08] baweaver: Pretty much
[22:10:14] baweaver: except on github, no ads, and a lot faster.
[22:10:44] leitz: baweaver, not yet. URL to read?
[22:11:01] baweaver: >> def add(a: 1, b: 1) a + b end; [add(a: 2), add(b: 2), add, add(a: 2, b: 3)]
[22:11:03] ruby[bot]: baweaver: # => [3, 3, 2, 5] (https://eval.in/907921)
[22:11:03] leitz: Actually, seeing something and understanding it are totally different things. :)
[22:11:11] jackjackdripper: has joined #ruby
[22:11:28] baweaver: It'd help on the first class
[22:11:43] leitz: Character?
[22:11:51] baweaver: Yeah, just started reading
[22:11:58] moei: has joined #ruby
[22:12:26] leitz: Part of it may be using "title" in an included module. This is one of the places I tend to get lost.
[22:12:33] baweaver: I explain some of keyword args in here: https://baweaver.gitbooks.io/an-illustrated-guide-to-ruby/content/a-method-to-the-madness.html
[22:12:38] baweaver: though I need to expand on it
[22:12:41] leitz: Let me know if my explination needs explination.
[22:12:56] leitz: ACTION goes to read.
[22:14:09] zanoni: miskatonic, yep, name taken from same, but it's been years since I read it
[22:14:13] baweaver: Hrm. Some of what I've written so far may be of use overall
[22:14:39] baweaver: notably around the use of english `and` which behaves very differently from `&&` in certain annoying cases.
[22:14:54] zanoni: I think I"m going to play around with the code some more and if nothing resolves i'll do a gist, thanks
[22:15:46] baweaver: I haven't written a lick on modules or class inheritance yet
[22:15:52] baweaver: so I still need to get to those sections
[22:16:15] iceden: has joined #ruby
[22:17:28] leitz: baweaver, part of the use case for Character is that it is an empty shell. Can't use named argumets as they may not be included in the character creation step.
[22:17:32] baweaver: leitz: There's also a few methods to look into: `foo.is_a?(Class)`, `foo.nil?`
[22:17:46] baweaver: If it has a value it's optional
[22:17:50] baweaver: if not it's required
[22:18:16] baweaver: so `def foo(a:, b: 1)` means that `a` is required and `b` is not
[22:18:25] leitz: Yeah, character.class should be nil if the character doesn't have a title. However, even runs where the character does have a title, character.title doesn't get called.
[22:18:30] baweaver: Think of it as having a more explicit contract with the outside world
[22:18:57] leitz: Yup, except that none of it is required. That's why it defaults to an empty hash.
[22:19:17] baweaver: Except you have a generate method afterwards as well
[22:19:36] leitz: The UPP struct does use named arguments. RickHull gave me some code that explained that.
[22:19:52] leitz: Yup, generate is used to "fill in" where a character is missing stuff.
[22:20:16] baweaver: Implied rescue is another thing you may like
[22:20:39] leitz: I'm trying to figure out the title stuff, why it isn't being called at all, and if character or title should be the reciever.
[22:20:45] baweaver: >> def imp_rescue; raise 'nope'; rescue 'return value' end; imp_rescue
[22:20:46] ruby[bot]: baweaver: # => /tmp/execpad-c1c3ac6672bf/source-c1c3ac6672bf:2: syntax error, unexpected keyword_end, expecting key ...check link for more (https://eval.in/907922)
[22:20:54] baweaver: >> def imp_rescue; raise 'nope'; rescue 'return value' ;end; imp_rescue
[22:20:56] ruby[bot]: baweaver: # => class or module required for rescue clause (TypeError) ...check link for more (https://eval.in/907923)
[22:21:11] baweaver: ok ok, so it doesn't like that in inline
[22:22:38] baweaver: leitz: https://eval.in/907925
[22:23:09] baweaver: Also as everything in Ruby is an expression you can get away with some fun things
[22:23:34] baweaver: >> var = if true then 1 else 2 end; var # I know, ternary, but not the point
[22:23:36] ruby[bot]: baweaver: # => 1 (https://eval.in/907926)
[22:23:40] Barrt: has joined #ruby
[22:25:56] ShekharReddy: has joined #ruby
[22:26:15] banisterfiend: has joined #ruby
[22:28:30] agent_white: has joined #ruby
[22:31:27] leitz: Okay, sort of works. These two lines: https://github.com/LeamHall/CT_Character_Generator/blob/upp_to_struct/lib/presenter_default.rb#L6-L7
[22:32:10] Barrt: has joined #ruby
[22:32:13] baweaver: define sort of works
[22:32:17] leitz: Call title, finally. https://github.com/LeamHall/CT_Character_Generator/blob/upp_to_struct/lib/character_tools.rb#L104-L112
[22:32:39] leitz: However, I'm still confused on Class, module, and self interactions. :(
[22:35:31] mn3m__: has joined #ruby
[22:35:41] leitz: Character requires and includes CharacterTools. A character instance is passed to PresenterDefault. So why doesn't character.title return a title?
[22:35:46] jackjackdripper: has joined #ruby
[22:35:57] leitz: A character is an instance of Character.
[22:37:39] leitz: When I ran it as "self.title" it didn't work.
[22:38:13] baweaver: Ever used pry?
[22:38:29] baweaver: Might be useful to stick a few breakpoints in and look at the values as they come in
[22:38:47] baweaver: https://www.youtube.com/watch?v=jDXsEzOHb2M
[22:39:55] leitz: I'm old school: puts "You are here." :)
[22:40:13] leitz: That's how I knew character.title was never being called at all.
[22:40:22] x77686d: has joined #ruby
[22:41:12] christiandsg: has joined #ruby
[22:41:13] baweaver: Yeah, it'd take me a bit to understand what all this code is doing
[22:41:34] baweaver: Honestly the PresenterDefault should be a `to_s` method on character
[22:41:42] leitz: No worries. I figure it will take me a while too. :)
[22:42:14] baweaver: and I think CharacterTools conflated a lot of concepts which are solely relevant to a character.
[22:42:14] leitz: PresenterDefault was a to_s method. Pulled it out when I realized there were a lot of non-default needs.
[22:42:42] baweaver: Also, avoid side effects where possible
[22:42:59] leitz: In general, Character should store data. CharacterTools adds methods with checks to change data.
[22:43:12] baweaver: The unintuitive bit of that is that means using puts in utility functions
[22:43:13] baweaver: not for debugging, but for implied returns
[22:43:15] baweaver: like line 24 of presenter there
[22:43:26] baweaver: If you returned a string it'd be a lot more flexible later.
[22:43:34] baweaver: That said I still think it should be a to_s method
[22:44:28] daemonwrangler: has joined #ruby
[22:44:33] leitz: So, on to_s. There's a version that's just the name, upp, age, gender, stuff, and skills.
[22:45:00] leitz: There will be a json and sql output, as well as an extending presentation with mental traits and backstory.
[22:45:12] baweaver: Hrm. Ah. One sec, let me find a tutorial for this one
[22:45:13] baweaver: they'd explain it better than me
[22:45:14] baweaver: to_json, to_sql
[22:45:44] leitz: Presenter's role was to call the right presenter. Remember, I'm still learning OOP. :)
[22:46:01] baweaver: https://blog.metova.com/ruby-modules-include-vs-extend/
[22:46:04] baweaver: That's a decent one
[22:46:26] leitz: Not seeing a "puts" in line 24 of presenter. Are you looking at the "upp_to_struct" branch?
[22:46:33] baweaver: remember though include / extend should be called inside a class: class Foo; include Barable; end
[22:46:45] baweaver: that was the one you'd linked to, so yeah
[22:46:46] EdwardIII: has joined #ruby
[22:46:46] EdwardIII: has joined #ruby
[22:47:19] leitz: Ah, still working on that. In the first version all the methods of CharacterTools was in Character. Made for a long and complex class.
[22:47:30] baweaver: Keep them there for now
[22:47:41] baweaver: The one thing I would highly advise is to avoid abstractions for now
[22:47:50] leitz: They are already pulled out.
[22:48:05] baweaver: A lot of people will say you need to have the code be DRY (Don't repeat yourself) but that's a very bad idea early on
[22:48:12] TomyLobo: jhass, ok so this just takes 300 MB of RAM now
[22:48:29] baweaver: Too Dry and the code becomes BRITTLE (Badly Refactored into Tiny Things Lacking Expressiveness)
[22:48:36] TomyLobo: which is a slight improvement over the gigabytes it took before :)
[22:48:56] leitz: So, line 34 or presenter_default puts each constructed line out. Isn't that what you meant, baweaver?
[22:49:12] baweaver: So instead we leave early code WET (Will extract tentatively) until we can think of a good way to DRY it
[22:49:13] baweaver: so many acronyms :D
[22:50:31] TomyLobo: i had to pre-process the whole thing a bit since there was a constructs in there i wasnt aware of earlier. strings as dictionary keys.
[22:50:40] charliesome: has joined #ruby
[22:51:17] tAn: has joined #ruby
[22:51:36] TomyLobo: you try to tell '{"foo=bar"}' from {"foo"="bar" efficiently without a lexer :)
[22:51:59] TomyLobo: you try to tell '{"foo=bar"}' from '{"foo"="bar"}' efficiently without a lexer :)
[22:52:13] leitz: Here's the short version. An instance of Character is created. The Character class includes CharacterTools, the methods to modify character data. Just moved the "include CharacterTools" into class Character and it blew up more stuff. Cool.
[22:55:23] leitz: baweaver, if "include CharacterTools" is under the "class Character" line, the CharacterTools methods use "def self.XXX", right?
[22:55:48] baweaver: https://blog.metova.com/ruby-modules-include-vs-extend/
[22:56:19] baweaver: https://stackoverflow.com/questions/156362/what-is-the-difference-between-include-and-extend-in-ruby
[22:57:59] Senecea: has joined #ruby
[22:58:26] leitz: ACTION is still reading. 
[22:58:40] Emmanuel_Chanel: has joined #ruby
[22:59:15] nowhereman_: has joined #ruby
[22:59:18] daemonwrangler: has joined #ruby
[23:05:21] zanoni: here is what I"m doing, array.each_slice(10).with_index do |x| hash[key]=value ,yet when I do hash.class it says string? To me it looks like a hash of arrays, but it says string, first time I've run into this.
[23:05:54] leitz: baweaver, so I should use "include CharacterTools" after class Character. That makes them instance methods. In this use case they don't need to be Class methods, they are operating on an instance.
[23:06:04] bmurt: has joined #ruby
[23:08:29] thinkpad: has joined #ruby
[23:09:44] leitz: ACTION notes tests do better if you can spell...
[23:10:12] TomyLobo: zanoni, what is "hash"?
[23:10:22] TomyLobo: it isnt mentioned in your code
[23:10:55] zanoni: oh sorry, hash is a hash ;). I have it defined prior to the call with a variable name
[23:11:37] QualityAddict: has joined #ruby
[23:12:57] zanoni: i think the hash insertion has some kind of conflict with slice
[23:14:17] baweaver: zanoni: It won't. You should gist all of your code on that one
[23:14:39] baweaver: leitz: give it a try
[23:14:53] daemonwrangler: has joined #ruby
[23:16:15] leitz: baweaver, next sprint. I've spent 3 days working on converting upp to a struct.. Brain needs a break. Will note an issue and do that next refactoring.
[23:17:18] kapil___: has joined #ruby
[23:20:00] zanoni: https://gist.github.com/stuartambient/9208a2c16963bb382c6c31a328cfe7c1
[23:20:47] zanoni: and I probably will clean up my code, as well as find better places for it, but just trying to get it to work at this point
[23:22:31] leitz: baweaver, moving "include CharacterTools" is Issue #51. About to blow away upp_to_struct branch as it has been merged.
[23:23:24] guacamole: has joined #ruby
[23:27:52] jnyw: has joined #ruby
[23:32:09] bmurt: has joined #ruby
[23:32:12] jnyw: has joined #ruby
[23:33:05] zanoni: think i fixed it, it now says its a hash
[23:39:04] zanoni: so what is going on , is i said it was a hash of arrays,, the key and then multiple values to each key. if I print it to the console the values are wrapped in brackets, but it says it's a string. I thought i'd be able to iterate through each key for it's values, but no :)
[23:39:56] banisterfiend: has joined #ruby
[23:40:42] TomyLobo: zanoni, could you change the extension to .rb in that gist maybe? :)
[23:41:20] TomyLobo: so it gets highlighted properly
[23:41:53] al2o3-cr: >> "#{[1,2,3]}"
[23:41:54] ruby[bot]: al2o3-cr: # => "[1, 2, 3]" (https://eval.in/907960)
[23:42:30] al2o3-cr: "#{x}" in @pages.store("page #{i+1 }", "#{x}") is making this a string.
[23:42:39] TomyLobo: >> "#{[{}]}"
[23:42:40] ruby[bot]: TomyLobo: # => "[{}]" (https://eval.in/907962)
[23:43:07] Barrt: has joined #ruby
[23:43:27] zanoni: there's more backslashes in these strings then in all the freddy kruger movies put together ;)
[23:43:35] TomyLobo: al2o3-cr, might as well use to_s, no?
[23:44:09] al2o3-cr: if they want to iterate
[23:44:23] TomyLobo: well i have no context. you didnt highlight anyone :)
[23:44:40] leitz: Night all! Enjoy.
[23:44:49] al2o3-cr: was meant for zanoni :(
[23:44:59] al2o3-cr: leitz: nite o/
[23:46:17] al2o3-cr: zanoni: with_index also takes an optional starting index
[23:46:47] nowhereman_: has joined #ruby
[23:47:03] al2o3-cr: well offset anyway.
[23:47:37] TomyLobo: zanoni, btw, if you keep your code in order, you'll find your mistakes more quickly
[23:47:55] TomyLobo: at a very basic level, always keep your indentation accurate
[23:48:05] TomyLobo: otherwise you're going to confuse yourself
[23:48:58] TomyLobo: anyway, i'm out too
[23:49:56] zanoni: ty!, yeah i am trying with the indents, but need to review the guide
[23:55:12] devchild: has joined #ruby