« Back to channel list

#ruby - 18 April 2017

« Back 1 day Forward 1 day »
[00:02:06] Guest96: has joined #ruby
[00:12:16] Channel6: has joined #ruby
[00:16:40] GodFather: has joined #ruby
[00:17:33] mooser: has joined #ruby
[00:20:44] DLSteve: has joined #ruby
[00:20:52] petruff: has joined #ruby
[00:21:18] petruff: has joined #ruby
[00:23:10] bmurt: has joined #ruby
[00:25:28] houhoulis: has joined #ruby
[00:27:42] charliesome: has joined #ruby
[00:29:01] millerti: has joined #ruby
[00:34:02] HoierM: has joined #ruby
[00:34:59] Cohedrin: has joined #ruby
[00:35:20] hinbody: has joined #ruby
[00:35:52] duderonomy: has joined #ruby
[00:37:21] Cohedrin_: has joined #ruby
[00:41:03] solocshaw: has joined #ruby
[00:43:17] Vile`: has joined #ruby
[00:47:14] jgt1: has joined #ruby
[00:50:29] MrBusiness3: has joined #ruby
[00:51:03] charliesome: has joined #ruby
[00:52:39] HoierM_: has joined #ruby
[00:54:09] jdawgaz: has joined #ruby
[00:55:57] __Yiota: has joined #ruby
[01:03:24] GodFather: has joined #ruby
[01:04:31] ElDoggo: has joined #ruby
[01:05:14] _bet0n: has left #ruby: ()
[01:06:17] rakm: has joined #ruby
[01:07:07] rakm: has joined #ruby
[01:07:21] GodFather: has joined #ruby
[01:07:52] rakm: has joined #ruby
[01:08:50] rakm: has joined #ruby
[01:09:30] rakm: has joined #ruby
[01:09:58] pwnd_nsfw`: has joined #ruby
[01:10:17] rakm: has joined #ruby
[01:10:39] Cohedrin: has joined #ruby
[01:11:19] rakm: has joined #ruby
[01:11:56] rakm: has joined #ruby
[01:11:59] jrafanie: has joined #ruby
[01:12:54] GodFather: has joined #ruby
[01:13:23] mim1k: has joined #ruby
[01:13:33] jdawgaz: has joined #ruby
[01:16:23] rgtk: has joined #ruby
[01:20:33] boombox_: has joined #ruby
[01:21:17] sumobob: has joined #ruby
[01:26:23] Cohedrin: has joined #ruby
[01:31:49] negatifze: has joined #ruby
[01:32:42] Liothen: has joined #ruby
[01:35:48] nerglish: has joined #ruby
[01:36:26] marcdel: has joined #ruby
[01:36:39] rakm: has joined #ruby
[01:37:29] rakm: has joined #ruby
[01:38:18] rakm: has joined #ruby
[01:39:12] rakm: has joined #ruby
[01:39:32] esObe: has joined #ruby
[01:40:02] rakm: has joined #ruby
[01:40:08] nerglish: hi, I'm new to ruby but have done a bunch of python and java. I'm a little confused how modules work. If you have a module whose contents are split across multiple files, then how does ruby know about all the files?
[01:40:11] cyphase: has joined #ruby
[01:40:44] rakm: has joined #ruby
[01:41:27] rakm: has joined #ruby
[01:42:37] GodFather: has joined #ruby
[01:44:40] LastWhisper____: has joined #ruby
[01:46:22] elomatreb: nerglish: Ruby only knows about the files you explicitely required, there is (usually) not auto loading or file discovery
[01:49:46] Radar: nerglish: any particular context for that? modules within which project?
[01:55:18] nerglish: I have some company code that I'm trying to do some refactoring on, and there's a bunch of files that define classes in a shared module and submodule, and one of them is giving me a NameError: uninitialized constant, and I'm not sure why. Just trying to understand how Ruby handles modules and namespaces.
[01:55:50] Radar: nerglish: is it a rails project?
[01:57:29] nerglish: it might be. I think part of it has a rails front end. It has gem 'rails' in the Gemfile.
[01:59:16] Rodya_: has joined #ruby
[01:59:27] GodFather: has joined #ruby
[02:00:07] sumobob: has joined #ruby
[02:00:45] Radar: nerglish: Ok. Rails has some autoloading which might be being depended on here. What's the name of this uninitialized constant and the file it's defined in?
[02:04:16] Fasort: has joined #ruby
[02:04:25] nerglish: There's a file lib/agent/request.rb with module Agent class Request. Then there's a file lib/agent/api/extractor.rb with module Agent module Api class Extractor. And the Extractor creates an instance of Request, but is failing to find the Request class
[02:05:35] libastral: has joined #ruby
[02:06:08] negatifze: has joined #ruby
[02:06:13] nerglish: extractor.rb doesn't explicitly require or require_relative the request.rb, so I'm not sure how it's supposed to figure out about the request.rb file.
[02:08:30] GodFather: has joined #ruby
[02:08:35] Radar: nerglish: Ah. In that case then it should be required. You can stick a `require 'agent/request'` at the top of the extractor file and it should work OK.
[02:09:05] vivekananda: has joined #ruby
[02:12:49] shady0wl: has joined #ruby
[02:12:50] pytuger: has joined #ruby
[02:12:50] pytuger: has joined #ruby
[02:14:18] wkoszek: I'm looking for a nice Ruby framework for DNS configuration. Something like this: https://github.com/AnalogJ/lexicon but in Ruby
[02:14:21] wkoszek: Any hints?
[02:17:16] Jameser: has joined #ruby
[02:20:25] genpaku: has joined #ruby
[02:20:49] dar123: has joined #ruby
[02:23:34] outreachdan: has joined #ruby
[02:24:04] jdawgaz: has joined #ruby
[02:25:08] Rodya_: has joined #ruby
[02:26:14] aurelien`: has joined #ruby
[02:27:51] mooser: has joined #ruby
[02:30:47] swills: has joined #ruby
[02:31:32] zack6849: has joined #ruby
[02:31:32] zack6849: has joined #ruby
[02:32:39] oz: has joined #ruby
[02:33:14] boombox_: has joined #ruby
[02:35:46] GGMethos: has joined #ruby
[02:36:07] Lord_of_Life: has joined #ruby
[02:40:59] esObe: has joined #ruby
[02:41:02] daveyboi[m]: has joined #ruby
[02:41:24] travisr: has joined #ruby
[02:49:00] PorcoRex: has joined #ruby
[02:49:15] PorcoRex: Hello Ruby!
[02:52:42] volty: has joined #ruby
[02:55:14] domgetter: has joined #ruby
[02:55:32] PorcoRex: I've just released a gem for implementing the multiton pattern in Ruby. I would love any and all feedback on it if you feel like reviewing some code here: https://github.com/gdeoliveira/ruby_multiton
[02:56:54] wnd: has joined #ruby
[03:01:17] rhyselsmore: has joined #ruby
[03:01:43] swills: has joined #ruby
[03:05:25] jamesaxl: has joined #ruby
[03:09:36] username1: has joined #ruby
[03:13:44] marcdel: has joined #ruby
[03:13:52] mim1k: has joined #ruby
[03:14:48] Blacink: has joined #ruby
[03:16:08] elifoster: has joined #ruby
[03:16:17] lmc: has joined #ruby
[03:17:16] volty: isn't a simple hash sufficient for the purpose of having unique-by-name instances ?
[03:17:39] cerulean: do you guys prefer easy programming or uneasy programming
[03:18:18] volty: easy for working, uneasy for playing
[03:21:11] cerulean: #uniq! might do what you want
[03:21:26] cerulean: actually yes because the keys are unique
[03:22:41] PorcoRex: volty, hashes doesn't offer semantics on the objects they contain. Granted singleton/multiton objects aren't best suited for most problems, but they may come in handy for some.
[03:23:53] volty: PorcoRex: I didn't read your code. How do you access your instances?
[03:24:04] volty: myself would do something like
[03:24:47] volty: >> class MyObj;end; h = {}; h ||= MyObj.new
[03:24:48] ruby[bot]: volty: # => {} (https://eval.in/778086)
[03:25:24] volty: >> class MyObj;end; h = {}; h[:ref_A] ||= MyObj.new
[03:25:25] ruby[bot]: volty: # => #<MyObj:0x40905a34> (https://eval.in/778087)
[03:26:06] Rodya_: has joined #ruby
[03:26:30] volty: and if that is enough, we can hide the hash inside a class or module
[03:26:37] PorcoRex: That's one way of going about it, sure. But that's not a multiton, that's just an instance inside a hash.
[03:27:25] jdawgaz: has joined #ruby
[03:27:47] volty: What is the difference if the instance is inside a hash or elsewhere ?
[03:28:18] PorcoRex: That you have to define the hash as part of your class.
[03:28:26] volty: anyway those instances will be somewhere
[03:28:36] PorcoRex: Plus your implementation isn't thread safe.
[03:29:22] volty: I think it can be made thread safe too.
[03:29:36] __Yiota: has joined #ruby
[03:30:24] PorcoRex: Of course it could. I'm not following though.
[03:32:18] hndk: has joined #ruby
[03:33:59] username1: has joined #ruby
[03:35:26] volty: PorcoRex: imho you are polluting classes' initializers with the key
[03:35:42] volty: far from clean and transparent
[03:36:55] Trynemjoel: has joined #ruby
[03:36:59] volty: One has to (re)implement his classes to take into account the 'key'. No way - for me.
[03:39:00] PorcoRex: volty, I'm not sure I follow. You mean one would have to re-implement their already multiton-like classes to take into account the `initialize` method?
[03:39:32] volty: no, let's say I have already a class that I want to use with multiton
[03:40:00] volty: or let's say I have something complex classes and I don't want to bother thining about 'arg' in my initializers
[03:40:26] volty: the idea could be good, but should be implemented by other means - imho
[03:40:59] PorcoRex: volty, could you elaborate on an example?
[03:41:11] volty: for example hiding out 'new' and creating instances by means of module method
[03:42:32] volty: take mine just as hints: e.g. class Mine; extend Multiton; end; end; mine_1 = Mine[:first] // or something like that
[03:42:55] Jameser`: has joined #ruby
[03:42:58] volty: the name should be given as arg in initialize
[03:43:05] volty: ops, shouldn't
[03:43:54] negatifze: has joined #ruby
[03:44:41] PorcoRex: In that case I think you would implement the key as Mine[:first], etc.
[03:44:49] PorcoRex: If I understand correctly.
[03:45:00] volty: I mean define [] on module (if possibile, can't remember now), or something similar, alias new, hide it, and call it from the module method that takes arg as name
[03:45:43] volty: imho it is going to be more clean
[03:46:44] PorcoRex: Well, it's definitely an option, but I still think the approach of keying directly through #instance is the cleanest approach. There aren't many modules in Ruby that respond to :[] as far as I know.
[03:47:02] volty: you can then implement it as hash or use the (almost) very same code of yours
[03:47:51] volty: nop, named instances are special case, and should be obtained by special means, without polluting initializers
[03:48:45] volty: you'll realize that as soon as you'll need real class cases
[03:49:39] PorcoRex: volty, but don't forget, we're talking about the initializer of a multiton object. Take the Singleton module from the standard lib. for instance: it can't receive any parameters. Ergo, a singleton object can not receive parameters in its initialize method.
[03:50:29] PorcoRex: This is the same, except a multiton object can receive parameters in its initialize method. It can either use them, store them or discard them.
[03:50:42] Radar: oh neat you invented genservers in Ruby
[03:51:31] Radar: I kid, I kid.
[03:52:05] PorcoRex: I'm pretty sure that's a knuckle in my head. But no worries, it's good to talk about approach. Definitely open to make a better implementation.
[03:53:39] CloCkWeRX: has joined #ruby
[03:56:33] jdawgaz: has joined #ruby
[03:56:53] parantapVikram: has joined #ruby
[03:57:26] volty: sorry, forgot the limits of default singletons, but anyway for myself I do not care whether ruby's default singletons have params or not. If I was to implement this, I would go for singletons with params. and with whatever else possible
[03:57:39] username1: has joined #ruby
[04:00:17] gix: has joined #ruby
[04:00:31] s2013: has joined #ruby
[04:02:53] PorcoRex: volty, singletons with parameters would be a bit of a mess because, what would happen when you call an instance with different parameters?
[04:03:10] skweek: has joined #ruby
[04:04:05] astrobunny: has joined #ruby
[04:04:28] volty: just one instance -- the 'different parameters' get ignored if already initialized (with initial parameters)
[04:05:12] enterprisey: has joined #ruby
[04:05:25] PorcoRex: volty, seems a bit arbitrary and error prone for a singleton. It should, in that case, better raise an error.
[04:05:43] PorcoRex: Or, alternatively, create a different instance.
[04:06:05] pickle_: has joined #ruby
[04:06:22] volty: it all depends on what you need
[04:07:22] PorcoRex: I can agree on that.
[04:08:45] volty: can't we reimplement Singleton.instance, aka SingletonParam < Singleton; and there allow params to be passed to aliased new ? why not
[04:09:41] PorcoRex: volty, that's basically what my gem does.
[04:10:47] PorcoRex: volty, it allows the user to define the construction parameters and create unique instances if the parameters are the same. However I think you mean something a bit different.
[04:11:25] volty: Yes. I like it simple outside and complicated inside (the libs).
[04:14:23] PorcoRex: I do have a use case for this gem. I want to implement something that targets a remote system. I thought about using Singleton, but this external system is not unique (can exist at different URLs). Basically I needed a way to (possibly) leave an open connection to them. I'm not sure, but multiton may help there.
[04:14:24] volty: PorcoRex: I see the multiton as a factory. So I prefer to create those objects calling a class method (as factory)
[04:14:45] mooser: has joined #ruby
[04:15:19] PorcoRex: volty, it's definitely an alternative, and not a bad one. In case you use a factory you need to keep track of the product, and pass it where you need it.
[04:15:51] volty: But I do not understand your 'remote system' case.
[04:16:50] PorcoRex: In case of a multiton you just ask for it at the "multiton factory". From a programmatic point of view, the factory pattern is definitely cleaner, but I think there are places where something like multiton is better.
[04:18:22] PorcoRex: volty, so I want (I think, I need to re-check) to open a connection to a remote system with a particular protocol. I'm not sure, but I might want to keep an open connection with it, hence I need a single instance of the connection object throughout my app.
[04:18:29] volty: writing good libraries is an art, writing abstract libraries is an abstract art :)
[04:18:31] PorcoRex: In any case, it's an approach.
[04:18:44] PorcoRex: Hehe, definitely.
[04:19:22] volty: you can use class variables and constants
[04:19:27] volty: for that purpose
[04:19:32] PorcoRex: So, the story is, I get distracted thinking about multiton, and then I start working on that instead.
[04:19:56] PorcoRex: volty, class variables in Ruby are the enemy. Just say no. :/
[04:21:14] volty: better streamlined than singletons
[04:21:30] Cohedrin: has joined #ruby
[04:21:51] boombox_: has joined #ruby
[04:21:55] username1: has joined #ruby
[04:22:06] volty: you have hashes, structs and openstructs
[04:22:34] volty: more than enough. leave the patterners pattern about their patterns
[04:23:04] arquebus: has joined #ruby
[04:25:17] PorcoRex: I still think it's a neat way of modularizing behavior. Of course it's not something hard to implement ad-hoc if you need it, but it's pretty transparent to use the gem instead I think.
[04:26:05] PorcoRex: You can just forget about the hashes and the instances and define your multiton class like any other class.
[04:26:33] volty: I do not question your code. The code is nice. What I question is the purpose.
[04:27:33] PorcoRex: volty, that's fair. I think I did it to use myself, on that other thing I was working on. Hopefully I'll end up using it. :)
[04:27:47] Davey: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[04:27:48] volty: Think about a concrete case. When are you going to need multiple parameter-less instances of a class ?
[04:28:04] Rodya_: has joined #ruby
[04:28:20] volty: No, you are not going to use it, ever ! :)
[04:28:29] PorcoRex: volty, they aren't necessarily parameterless. I mean, you can pass an URL for instance, and use that.
[04:29:00] volty: that doesn't make sense. We have arrays and hashes for that purpose
[04:30:35] volty: you were talking about classes shutting an 'arg'. Are you going to subclass URL for the sole purpose of extending it with a multiton? Take a sleep, dream about it for a while, and you'll realize it's a nightmare
[04:30:56] pickle__: has joined #ruby
[04:31:40] PorcoRex: No, I wasn't talking about URL, or HTTP, I was talking about a different protocol.
[04:32:46] PorcoRex: Now, as I've said earlier singleton/multiton patterns aren't the best fit for all problems, just for some. I still don't know if it's the best fit for mine.
[04:32:49] volty: Whatever. Whatever they are, they have to be different, and to be different, you have to initialize them differently (by means of parameters of course, otherwise it gets too messy)
[04:34:12] PorcoRex: In any case, the multiton pattern exists, and I implemented a solution in Ruby. For what it's worth, I think it's a pretty solid implementation.
[04:34:15] volty: Sorry PorcoRex, but the question isn't if it is best for you. The question imho is if there's a case in the whole universe
[04:35:44] renchan: has joined #ruby
[04:35:53] LastWhisper____: has joined #ruby
[04:36:32] volty: Look. Apart my innate allergy to 'patterns', if left free to pattern, the patterners will pattern the 'spiting behind' too.
[04:36:32] PorcoRex: volty, well, certainly there is. Not to be mean, but solving everything with hashes seems a bit sloppy. The multiton pattern exists, and it has been used. It's not just a theoretical construct.
[04:36:46] volty: Used where?
[04:36:59] anisha: has joined #ruby
[04:37:22] pwnd_nsfw: has joined #ruby
[04:39:20] volty: It says: Implementations - In Java, the multiton pattern can be implemented using an enumerated type.
[04:39:27] volty: I say: What a pattern! : )
[04:39:58] mzo: has joined #ruby
[04:40:04] PorcoRex: volty, haha. Alright, you win.
[04:40:30] PorcoRex: It's probably never useful, but pretty interesting though.
[04:41:48] volty: I used code similar to yours to fake new & initialize on modules. But there it was interesting and useful - for the qt gui
[04:43:01] PorcoRex: I never loved qt.
[04:43:19] volty: qt with ruby is wonderful
[04:44:02] volty: ruby's risking to fall behind python in that respect
[04:45:01] PorcoRex: And qt gui is risking to fall behing web ui nowadays. Far few people use native apps anymore.
[04:45:45] volty: yap, that must be true, but when googling I see pythoners quite active on qt
[04:46:16] mooser: has joined #ruby
[04:46:16] username1: has joined #ruby
[04:46:40] volty: anyway I am studying scala
[04:46:56] PorcoRex: I've heard good things about Scala.
[04:47:16] volty: oood vs worth vs complexity etc etc
[04:47:19] Arpanet69: has joined #ruby
[04:47:26] volty: s/oood/good/
[04:47:49] volty: how's ruby on android ?
[04:48:39] PorcoRex: Beats me. No idea really... Maybe once webassembly becomes a thing it can become a think there?
[04:48:44] pwnd_nsfw`: has joined #ruby
[04:50:12] volty: was nice talking, going to take a rest, bye
[04:58:23] mooser: has joined #ruby
[05:00:28] bronson: has joined #ruby
[05:08:49] Cohedrin: has joined #ruby
[05:10:39] username1: has joined #ruby
[05:14:22] mim1k: has joined #ruby
[05:16:06] pickle__: has joined #ruby
[05:16:50] lmc: has joined #ruby
[05:19:41] Bock: has joined #ruby
[05:22:24] nerglish: has joined #ruby
[05:24:26] patarr: has joined #ruby
[05:27:39] SuperLag: has joined #ruby
[05:28:44] hekz: has joined #ruby
[05:28:45] Rodya_: has joined #ruby
[05:29:42] pickle__: has joined #ruby
[05:34:57] username1: has joined #ruby
[05:39:31] ElDoggo: has joined #ruby
[05:42:18] Guest96: has joined #ruby
[05:48:20] jusa: has joined #ruby
[05:49:03] anisha_: has joined #ruby
[05:55:01] Cohedrin: has joined #ruby
[05:55:40] cfec0b8d: has joined #ruby
[05:58:04] Cohedrin: has joined #ruby
[05:59:18] username1: has joined #ruby
[06:05:28] cfec0b8d: has joined #ruby
[06:18:24] alazred: has joined #ruby
[06:18:24] alazred: has joined #ruby
[06:23:36] username1: has joined #ruby
[06:24:11] bronson: has joined #ruby
[06:25:30] CloCkWeRX: has joined #ruby
[06:27:13] cfec0b8d: has joined #ruby
[06:28:37] burgestrand: has joined #ruby
[06:29:27] Rodya_: has joined #ruby
[06:32:26] Mortomes|Work: has joined #ruby
[06:33:04] Guest96: has joined #ruby
[06:33:44] pwnd_nsfw: has joined #ruby
[06:36:43] Cohedrin: has joined #ruby
[06:36:59] bronson: has joined #ruby
[06:38:10] burgestrand: has joined #ruby
[06:38:20] shady0wl: has joined #ruby
[06:38:20] pytuger: has joined #ruby
[06:38:21] pytuger: has joined #ruby
[06:38:39] default: has joined #ruby
[06:39:09] nerglish: has joined #ruby
[06:41:19] default: has left #ruby: ()
[06:42:27] yeticry: has joined #ruby
[06:47:56] username1: has joined #ruby
[06:51:28] Cohedrin: has joined #ruby
[06:52:42] vali: has joined #ruby
[06:53:24] binaryplease: has joined #ruby
[07:00:15] antgel: has joined #ruby
[07:02:26] meinside: has joined #ruby
[07:06:08] aurelien: has joined #ruby
[07:07:35] hutch34_: has joined #ruby
[07:07:59] alazred: has joined #ruby
[07:07:59] alazred: has joined #ruby
[07:10:51] jgnagy: has joined #ruby
[07:12:25] charliesome: has joined #ruby
[07:12:27] sxm: has joined #ruby
[07:13:12] sxm: ruby ruby ruby
[07:14:48] sxm: alibaba
[07:14:49] dasher^0_o: has joined #ruby
[07:14:56] mim1k: has joined #ruby
[07:14:57] sxm: alibaba
[07:15:19] mark_66: has joined #ruby
[07:15:26] flying: has joined #ruby
[07:18:03] lmc: has joined #ruby
[07:18:56] sxm: where is here!
[07:22:42] cerulean: SHOUTS OF ALIBABA
[07:22:46] cerulean: I ALSO BOY YOUR SHOT
[07:23:01] cerulean: has left #ruby: ()
[07:23:42] harfangk: has joined #ruby
[07:24:25] username1: has joined #ruby
[07:24:55] aufi: has joined #ruby
[07:25:21] patarr: has joined #ruby
[07:30:05] haraoka: has joined #ruby
[07:30:20] Rodya_: has joined #ruby
[07:31:31] snickers: has joined #ruby
[07:33:47] ElDoggo: has joined #ruby
[07:34:02] rafadc: has joined #ruby
[07:34:11] esObe: has joined #ruby
[07:40:48] jgt1: has joined #ruby
[07:41:02] mim1k: has joined #ruby
[07:42:11] andikr: has joined #ruby
[07:47:33] DARPA: has joined #ruby
[07:48:47] username1: has joined #ruby
[07:50:08] Silthias: has joined #ruby
[07:50:36] mooser: has joined #ruby
[07:53:38] Silthias1: has joined #ruby
[07:56:17] Tohuw_: has joined #ruby
[07:57:03] jcao219: has joined #ruby
[07:57:33] yqt: has joined #ruby
[07:57:43] pwnd_nsfw: has joined #ruby
[08:01:04] mikecmpbll: has joined #ruby
[08:01:41] muelleme_: has joined #ruby
[08:02:07] jamesaxl: has joined #ruby
[08:07:14] Paraxial: has joined #ruby
[08:13:07] username1: has joined #ruby
[08:15:39] mim1k: has joined #ruby
[08:17:42] nhhc: has joined #ruby
[08:19:16] rafadc: has joined #ruby
[08:23:49] nofxxxx: has joined #ruby
[08:25:52] Qchmqs: has joined #ruby
[08:28:37] tvw: has joined #ruby
[08:28:49] ElDoggo: has joined #ruby
[08:30:59] Rodya_: has joined #ruby
[08:31:22] NL3limin4t0r: has joined #ruby
[08:35:53] Qchmqs: has joined #ruby
[08:36:06] unshadow: has joined #ruby
[08:37:24] username1: has joined #ruby
[08:37:58] pppktz: has joined #ruby
[08:38:00] mikecmpbll: has joined #ruby
[08:39:14] jsrn_: has joined #ruby
[08:40:15] bronson: has joined #ruby
[08:41:03] cyphase: has joined #ruby
[08:42:17] arne_: can i do something clever
[08:42:45] arne_: to have time/datetime/dates converted automagicially to iso8601 when using to_json/to_s
[08:45:25] ddrmanxbxfr: has joined #ruby
[08:48:03] thebigj: has left #ruby: ()
[08:48:43] mikecmpbll: has joined #ruby
[08:50:55] burgestrand: >> require "time"; require "json"; DateTime.now.to_json
[08:50:56] ruby[bot]: Burgestrand: # => "\"2017-04-18T08:50:54+00:00\"" (https://eval.in/778296)
[08:51:14] burgestrand: Ah, but Time is not so friendly.
[08:52:39] arne_: Burgestrand: the web framework i use has a serializing function for json
[08:52:43] arne_: so i will just do it by hand
[08:53:07] arne_: why is there datetime and time at all?
[08:54:22] dminuoso: arne_: Historical reasons.
[08:54:33] dminuoso: arne_: They are mostly the same but they have some subtle difference in their behavior.
[08:54:50] dminuoso: arne_: Basically two separate groups of people ended up implementing the same stuff under different names.
[08:55:06] Beams: has joined #ruby
[08:55:41] dminuoso: arne_: And because Ruby rarely introduces breaking changes they couldn't just remove one because both ended up being used by folks.
[08:55:53] dminuoso: So now we end up with this strange scenario of having both around.
[08:56:33] lxsameer: has joined #ruby
[08:56:54] arne_: dminuoso: makes sense, thanks
[08:57:17] dminuoso: arne_: Overall "Time" should be the preferred choice because they are a little more correct in a few spots (they use leap seconds, implemented in C so slightly faster)
[08:57:34] arne_: im doing that, because the name is better
[08:57:55] arne_: "2017-04-13 13:09:01 +0200"
[08:58:03] arne_: getting this in my json api though :(
[08:58:03] marr: has joined #ruby
[08:58:48] dminuoso: arne_: And this is bad because?
[08:59:00] dminuoso: It's ISO 8601. Be happy.
[08:59:32] arne_: well firefox doesn't like to parse it this way
[08:59:32] arne_: 2017-04-18T10:40:41+02:00 <= isn't this iso8601?
[08:59:55] rafadc: has joined #ruby
[09:01:04] dminuoso: arne_: You are right. You can use Time#iso8601
[09:01:37] xall: has joined #ruby
[09:02:23] pwnd_nsfw`: has joined #ruby
[09:04:19] Beams: has joined #ruby
[09:06:38] arne_: dminuoso: yeah will do that
[09:06:58] arne_: dminuoso: NoMethodError: undefined method `iso8601' for 2017-04-18 11:06:51 +0200:Time
[09:07:11] arne_: oh i need require 'time' sorry
[09:11:16] Guest96: has joined #ruby
[09:13:16] rhyselsmore: has joined #ruby
[09:13:51] username1: has joined #ruby
[09:17:30] jcao219: has joined #ruby
[09:19:03] lmc: has joined #ruby
[09:19:49] xall_: has joined #ruby
[09:22:11] hutch34_: has joined #ruby
[09:26:14] patarr: has joined #ruby
[09:30:52] Robtop__: has joined #ruby
[09:30:59] minimalism: has joined #ruby
[09:31:40] Rodya_: has joined #ruby
[09:31:46] SHyx0rmZ: has joined #ruby
[09:32:24] rickenharp: has joined #ruby
[09:38:14] username1: has joined #ruby
[09:40:39] bruce_lee: has joined #ruby
[09:40:54] glcx: has joined #ruby
[09:40:58] bruce_lee: has joined #ruby
[09:40:59] glcx: has joined #ruby
[09:42:28] sepp2k: has joined #ruby
[09:42:35] workmad3: has joined #ruby
[09:42:59] kiltzman: has joined #ruby
[09:43:54] kiltzman: has joined #ruby
[09:44:59] glcx: has joined #ruby
[09:45:00] glcx: has joined #ruby
[09:45:00] kiltzman: has joined #ruby
[09:45:29] glcx_: has joined #ruby
[09:45:55] workmad3: has joined #ruby
[09:47:01] kiltzman: has joined #ruby
[09:48:28] kiltzman: has joined #ruby
[09:49:23] rgtk: has joined #ruby
[09:49:33] kiltzman: has joined #ruby
[09:57:31] rafadc: has joined #ruby
[10:01:06] Beams: has joined #ruby
[10:01:19] gregf_: has joined #ruby
[10:02:30] username1: has joined #ruby
[10:02:38] universa1: has joined #ruby
[10:13:09] govg: has joined #ruby
[10:14:49] postmodern: has joined #ruby
[10:20:15] rgtk: has joined #ruby
[10:22:59] pulkit4tech: has joined #ruby
[10:23:00] Beams: has joined #ruby
[10:25:01] Guest8804: has joined #ruby
[10:26:53] username1: has joined #ruby
[10:27:47] xenops: has joined #ruby
[10:28:14] GodFather: has joined #ruby
[10:31:51] Silthias: has joined #ruby
[10:32:18] Silthias1: has joined #ruby
[10:32:41] Rodya_: has joined #ruby
[10:41:36] nadir: has joined #ruby
[10:43:38] pandaant: has joined #ruby
[10:44:16] etehtsea: has joined #ruby
[10:45:16] t-recx: has joined #ruby
[10:45:37] mikecmpb_: has joined #ruby
[10:45:38] millerti: has joined #ruby
[10:45:46] jusa: has joined #ruby
[10:45:55] rafadc: has joined #ruby
[10:49:59] Arpanet69: has joined #ruby
[10:50:13] NL3limin4t0r: has joined #ruby
[10:50:47] rafadc: has joined #ruby
[10:51:10] username1: has joined #ruby
[10:52:33] ghornet: has joined #ruby
[10:55:19] ghornet: has left #ruby: ()
[10:56:17] bmurt: has joined #ruby
[10:56:21] Fasort: has joined #ruby
[11:13:09] skweek: has joined #ruby
[11:15:01] txdv: has joined #ruby
[11:15:06] txdv: hello younglings
[11:15:27] username1: has joined #ruby
[11:15:44] arne_: txdv: how you dare
[11:16:54] jusa: has joined #ruby
[11:18:50] txdv: arne_: hey grandpa
[11:21:06] DARPA: has joined #ruby
[11:23:51] Jameser: has joined #ruby
[11:25:17] d10n-work: has joined #ruby
[11:26:20] pwnd_nsfw`: has joined #ruby
[11:26:23] kiltzman: has joined #ruby
[11:27:06] patarr: has joined #ruby
[11:30:31] fmartingr: has joined #ruby
[11:30:50] TinkerTyper: has joined #ruby
[11:31:04] petruff: has joined #ruby
[11:31:20] jrafanie: has joined #ruby
[11:31:21] anisha_: has joined #ruby
[11:33:12] Rodya_: has joined #ruby
[11:35:28] Arpanet69: has joined #ruby
[11:37:27] Guest96: has joined #ruby
[11:39:51] username1: has joined #ruby
[11:42:14] siovene: has joined #ruby
[11:42:34] pytuger: has joined #ruby
[11:48:07] tlaxkit: has joined #ruby
[11:49:51] ldnunes: has joined #ruby
[11:51:47] Guest96: has joined #ruby
[11:51:57] TreyG: has joined #ruby
[11:54:07] petruff: has joined #ruby
[11:58:17] anisha_: has joined #ruby
[12:00:16] jdawgaz: has joined #ruby
[12:01:34] synthroid: has joined #ruby
[12:03:24] jrafanie: has joined #ruby
[12:03:55] aep: has joined #ruby
[12:03:55] lmc: has joined #ruby
[12:04:05] Guest96: has joined #ruby
[12:04:12] username1: has joined #ruby
[12:07:28] biberu: has joined #ruby
[12:07:52] pppktz: has left #ruby: ()
[12:09:42] j2k: has joined #ruby
[12:13:04] quoboo: has joined #ruby
[12:14:51] hinbody_: has joined #ruby
[12:15:28] hinbody: has joined #ruby
[12:16:44] houhoulis: has joined #ruby
[12:20:21] Guest96: has joined #ruby
[12:20:37] CloCkWeRX: has joined #ruby
[12:20:41] nerglish: has joined #ruby
[12:25:00] patarr: has joined #ruby
[12:28:23] nerglish: has joined #ruby
[12:28:28] username1: has joined #ruby
[12:28:28] jdawgaz: has joined #ruby
[12:28:37] negatifze: has joined #ruby
[12:30:57] anisha_: has joined #ruby
[12:31:23] mim1k: has joined #ruby
[12:34:04] Rodya_: has joined #ruby
[12:36:32] rgtk: has joined #ruby
[12:37:53] bkxd: has joined #ruby
[12:42:33] rgr: has joined #ruby
[12:43:30] Jameser: has joined #ruby
[12:47:07] arne_: how would i make a deep-map?
[12:47:19] arne_: create a proc and give it as a proc over and over?
[12:47:19] pupsicle: has joined #ruby
[12:48:00] arne_: i have objects like {:time=>Time.now,...,:something_else=>{:time=>Time.now}}
[12:48:07] arne_: and i want all the times mapped to iso8601
[12:48:48] arne_: .map { |k,v| [k,v.is_a?(Time)?v.iso8601:v] }.to_h does the trick but isn't deep
[12:49:03] toretore: you need recursion
[12:49:19] arne_: i guess so.. and as i need recursion i need a name for my recursion, right
[12:51:36] ccooke_: There is almost certainly a way to make it work without recursion, but it would require the sort of code that would be shared around the internet as an example to others
[12:52:14] ccooke: (Well, no. You can always implement it without recursion as a simple loop. I meant without a named function. Bah.)
[12:54:36] petruff: has joined #ruby
[12:55:06] rafadc: has joined #ruby
[12:56:51] enterprisey: has joined #ruby
[12:57:17] vizay: has joined #ruby
[12:58:30] etehtsea: has joined #ruby
[12:59:23] esObe: has joined #ruby
[13:00:18] harfangk: has joined #ruby
[13:01:36] ramortegui: has joined #ruby
[13:02:04] esObe: has joined #ruby
[13:02:40] esObe: has joined #ruby
[13:07:29] cbrad: has joined #ruby
[13:08:21] lmc: has joined #ruby
[13:11:09] millerti: has joined #ruby
[13:11:45] petruff: has joined #ruby
[13:16:02] burgestrand: has joined #ruby
[13:16:43] bkxd_: has joined #ruby
[13:17:56] Jameser: has joined #ruby
[13:24:37] Rodya_: has joined #ruby
[13:27:24] NL3limin4t0r: @arne_ Here's a simple example of a deep_map that only yields the value (key cannot be changed)
[13:27:30] NL3limin4t0r: def deep_map(h, &blk); h.map { |k, v| [k, v.is_a?(Hash) ? deep_map(v, &blk) : yield(v)] }.to_h; end
[13:28:04] [74]HELLth: has joined #ruby
[13:28:06] xenops: has joined #ruby
[13:29:54] charliesome: has joined #ruby
[13:30:41] NL3limin4t0r: example usage: deep_map({a: 2, b: {c: 4}}) { |v| v * 2 } #=> {:a => 4, :b => {:c => 8}}
[13:30:52] jakub_: has joined #ruby
[13:31:08] jakub_: has joined #ruby
[13:31:45] DLSteve: has joined #ruby
[13:31:55] 5EXAAUTGL: has joined #ruby
[13:31:59] anisha_: has joined #ruby
[13:32:25] gnufied: has joined #ruby
[13:36:00] Guest32442: Hi, is it good place to ask some beginners questions?
[13:36:54] jusa: has joined #ruby
[13:36:55] NL3limin4t0r: I don't see why not. ;-)
[13:37:14] Guest14: has joined #ruby
[13:38:18] domgetter: has joined #ruby
[13:39:48] millerti: has joined #ruby
[13:40:53] Guest32442: Sorry, first time here :). I was wondering - I want to process somewhat big json file in Ruby, and I'm worried about memory. If I'm assigning some thing like `foo = File.read`, I'm saving the file into the memory. Right?
[13:42:00] NL3limin4t0r: Yes, when you read the whole json file to a variable it will get loaded in memory
[13:46:48] Guest32442: OK, so another question if you don't mind. I have two scripts. In first script I want to append multiple json objects to single file (maybe using array?), then read them from that file and parse them one by one in another script. How I can achieve that? Because I have many objects, I can't really generate whole file from array (memory issues)
[13:47:45] toretore: maybe try https://github.com/thisismydesign/json-streamer
[13:48:50] negatifze: has joined #ruby
[13:49:19] LastWhisper____: has joined #ruby
[13:50:12] nowhere_man: has joined #ruby
[13:50:15] alazred: has joined #ruby
[13:50:45] houhoulis: has joined #ruby
[13:51:07] toretore: seems to be only for reading, you could try using https://github.com/dgraham/json-stream directly for writing. or you could just do `File.open(filename){|f| f.write '['; objects.each{|o| f.write JSON.generate(o) }; f.write ']' }`
[13:51:11] pabloh: has joined #ruby
[13:51:16] pablohn: has joined #ruby
[13:51:25] andikr: has joined #ruby
[13:51:27] toretore: maybe add some commas
[13:52:48] ytti: how is Class Foo < Bar; something; end differnt to self.class.const_set :Foo, Class.new(Bar) { something; }
[13:53:14] ytti: if i subclass Sequel::Model in 1st way, DB table is mapped to the class
[13:53:16] patarr: has joined #ruby
[13:53:23] ytti: if i do the 1nd way, DB table is not mapped to the class
[13:53:43] Guest32442: Thanks toretore, will check that
[13:54:31] ytti: i.e. how to make this work - http://p.ip.fi/uymh
[13:55:42] mooser: has joined #ruby
[13:59:37] bronson: has joined #ruby
[14:01:28] jdawgaz: has joined #ruby
[14:01:29] ElDoggo: has joined #ruby
[14:02:18] jdawgaz: has joined #ruby
[14:02:52] Sirecote: has joined #ruby
[14:03:03] jdawgaz: has joined #ruby
[14:03:37] ElDoggo: has joined #ruby
[14:04:52] etehtsea: has joined #ruby
[14:05:37] GodFather: has joined #ruby
[14:07:38] Guest14: has joined #ruby
[14:08:07] millerti: has joined #ruby
[14:08:28] ljarvis: ytti: what do you mean make it work? Why are you trying to redefine the constant?
[14:09:56] esObe: has joined #ruby
[14:09:56] ResidentBiscuit: has joined #ruby
[14:10:30] mikecmpbll: has joined #ruby
[14:11:44] __Yiota: has joined #ruby
[14:12:39] polishdub: has joined #ruby
[14:13:46] jusa: has joined #ruby
[14:17:09] agent_white: has joined #ruby
[14:17:17] Pumukel: has joined #ruby
[14:18:40] guardian: has joined #ruby
[14:18:41] ytti: ljarvis, i'm not redefining it, i'm defining it
[14:18:49] bronson: has joined #ruby
[14:18:59] ljarvis: ytti: it's defined on line 8, you're redefining it on line 17
[14:19:15] ytti: ljarvis, i mean whene i do that normally, sequel will pick it up as existing in DB, and the class will have DBs data
[14:19:31] ljarvis: when you do it normally? so this code isn't relevant?
[14:19:38] ytti: ljarvis, sorry, poor paste, that's actually from two different attempts
[14:19:44] ytti: ljarvis, ignore line 8
[14:19:56] jrafanie: has joined #ruby
[14:20:06] ytti: ljarvis, well i'd like to define the the class only after making sure DB exists
[14:20:18] ytti: ljarvis, i usually in the method require the file with the class defintion
[14:20:26] ytti: ljarvis, but i'd like to do it somehow in-place
[14:21:13] ytti: ljarvis, sequel has magic pixie dust, if the db is loaded, and there is is table for your class in plural, then it assumes your class refers to it (if it's subclassed from Sequel::Model)
[14:21:29] ytti: ljarvis, but it seems like that magic doesn't work, when i do const_set
[14:21:35] jdawgaz: has joined #ruby
[14:22:21] ljarvis: ytti: I guess I don't understand why you want to try and define the constant dynamically instead of predefing it
[14:23:14] ljarvis: also, if you code is this simple, just nuke the Hei model and run queries directly against @db[:hei]
[14:23:40] ytti: ljarvis, like this example works: http://p.ip.fi/yD50
[14:23:56] ytti: ljarvis, if i define it, before making the DB, the class won't be populated with the DB stuff
[14:24:03] ytti: ljarvis, so i must make the DB first
[14:24:20] ytti: ljarvis, no this code is just for example
[14:24:52] ltem: has joined #ruby
[14:25:06] __Yiota: has joined #ruby
[14:25:09] ytti: ljarvis, i'm surprised the const_set does not work, i assumed it to be analogous to the line in require
[14:25:26] ytti: ljarvis, i don't know what is the idiomatic way to do this, build DB, then model
[14:25:54] ytti: there used to be 'set_schame' you could use inside the class to define the DB, but that has been deprecated
[14:26:46] ljarvis: ytti: right, ok. Yeah I don't really think that was a good design decision personally, but I'm sure there's good reason for it. TBH I don't really see why you want to define @db. Just do `Sequel.connect` at the entrypoint of your program
[14:27:42] ytti: ljarvis, i need >1 DB connection
[14:27:45] s2013: has joined #ruby
[14:27:55] jgnagy: has joined #ruby
[14:28:15] ytti: need to connect to >1 databases
[14:28:30] ytti: becase i need data from >1 databases
[14:28:40] mim1k: has joined #ruby
[14:29:18] vuoto: has joined #ruby
[14:29:58] ljarvis: after const_get, can you just do `Hei.db = @db`?
[14:30:03] ljarvis: const_set*
[14:30:05] hutch34_: has joined #ruby
[14:30:51] ljarvis: try #sequel then
[14:30:57] ytti: http://p.ip.fi/8SYd
[14:31:19] ytti: (content= does nto exist, i.e. it didn't inspect into the DB)
[14:31:33] mooser: has joined #ruby
[14:31:54] bronson: has joined #ruby
[14:32:20] eclm: has joined #ruby
[14:34:21] etehtsea: has joined #ruby
[14:34:31] mikecmpb_: has joined #ruby
[14:34:51] moei: has joined #ruby
[14:35:31] cdg: has joined #ruby
[14:35:42] narval: has joined #ruby
[14:35:59] Guest82161: has joined #ruby
[14:36:51] negatifze: has joined #ruby
[14:39:11] rafadc: has joined #ruby
[14:40:33] stupidsenpai: has joined #ruby
[14:42:47] Arpanet69: has joined #ruby
[14:42:59] rgtk: has joined #ruby
[14:43:02] upen15: has joined #ruby
[14:43:29] upen15: what kind of address is that?
[14:43:36] ytti: ljarvis, i got it working, i don't know why - http://p.ip.fi/6sep
[14:43:48] ytti: ljarvis, line 17 is the key, but i don't know why
[14:44:32] ljarvis: right, that makes sense
[14:44:44] ljarvis: set_dataset will obviously sync the model and schema
[14:49:49] Kyle__: has joined #ruby
[14:50:56] Kyle__: is there a better/cleaner way of loading a library in a one liner? Rather than ruby -e "require 'yaml';blah.blah.bitty.blah()"
[14:51:13] ljarvis: kyle__: ruby -ryaml -e "blah"
[14:51:50] Kyle__: ljarvis: Thank you! I so rarely do one liners, Id idn't know that flag.
[14:52:35] alan_w_: has joined #ruby
[14:52:40] snickers: has joined #ruby
[14:54:14] bronson: has joined #ruby
[14:54:53] mikecmpbll: has joined #ruby
[14:57:18] mooser: has joined #ruby
[15:00:19] mooser: has joined #ruby
[15:00:25] chouhoulis: has joined #ruby
[15:08:38] skweek: has joined #ruby
[15:09:09] ResidentBiscuit: has joined #ruby
[15:09:50] antoniobeyah: has joined #ruby
[15:09:55] gottcha: has joined #ruby
[15:11:20] Rodya_: has joined #ruby
[15:11:27] rippa: has joined #ruby
[15:13:06] Nahra: has joined #ruby
[15:13:12] Silthias: has joined #ruby
[15:14:00] ElDoggo: has joined #ruby
[15:22:52] Nahra: has joined #ruby
[15:23:25] haylon: has joined #ruby
[15:25:07] haylon: Hello everyone! I just generated a file using aws ec2 run-instances > artifactory.json and I'm trying to read that JSON to get a value out of it. However, when Ruby attempt to read it, I get a parse error, and two <?><?> looking symbols. When ran through a Linter, it says that the JSON is valid, but Ruby does'nt seem to like it.
[15:25:29] haylon: JSON::ParserError: 743: unexpected token at '��{'
[15:28:26] balo: haylon: you can check the file with the `od` unix command if there is some weirdness with it
[15:28:43] balo: are you trying to read the file from a local file system?
[15:29:07] balo: maybe it's worth checking your environment's encoding too
[15:29:43] haylon: let me check the file with that od command balo
[15:30:10] balo: just ideas, never saw this issue. maybe once when i was trying to read from a host with SSL with net/http but with plain connection :D
[15:30:20] hays: has joined #ruby
[15:30:58] nerglish: has joined #ruby
[15:30:59] bronson: has joined #ruby
[15:31:10] Nahra: has joined #ruby
[15:31:13] petruff: has joined #ruby
[15:31:26] haylon: when I ran `od artifactory.json` it looked like a bunch of binary, or ascii codes
[15:32:04] haylon: with a bunch of *'s inbetween each block
[15:32:09] balo: trye the -c option
[15:32:50] balo: you should see if there is any weirdness but yeah maybe there is a more friendlier tool for this
[15:33:23] balo: i would bet for the environment where you are running the script, would check the file's encoding and making sure it's UTF-8
[15:33:59] balo: and also maybe you can paste it somewhere how you are trying to read and parse the file. maybe the problem lies in the code
[15:38:03] haylon: I can't share the JSON since its got sensative data about my aws tenant
[15:38:10] haylon: but give me a sec
[15:38:47] synthroid: has joined #ruby
[15:40:18] burgestrand: I wonder if there's a BOM in it…
[15:40:29] haylon: This is teh code that we're using so far, haven't got much further
[15:40:30] haylon: https://gist.github.com/predatorian3/a3308e95f492c2216a2d01a68a15e909
[15:40:51] haylon: Burgestrand, I'm not sure what a BOM is
[15:41:04] haylon: but it probably has something to do with the use of >
[15:41:07] herwin: byte order mark
[15:41:19] burgestrand: haylon essentially a few bytes that are sometimes prepended to UTF-8 files, which can cause havoc sometimes
[15:41:34] herwin: `file blah.json` should show it
[15:41:54] vuoto: has joined #ruby
[15:42:04] haylon: Ah, yes, for some reason the `aws ec2 run-instances > artifactory.json` command prepended two ?'s to the front of the file
[15:42:34] burgestrand: haylon you could check by printing the result of `json_file.bytes.take(5)` and looking at the numbers
[15:42:57] mark_66: has left #ruby: ("PART #elixir-lang :PART #crystal-lang :PONG :cherryh.freenode.net")
[15:43:53] haylon: [255, 254, 123, 0, 13]
[15:44:18] cdg: has joined #ruby
[15:44:59] burgestrand: hehe, yes, looks like a BOM
[15:45:26] burgestrand: hm, then again, it's in the wrong order
[15:45:43] burgestrand: It ought to have been FEFF but it's FFFE
[15:46:57] burgestrand: I wonder if it could be UTF-16LE and not UTF-8
[15:47:41] burgestrand: Ah yes, it looks like it, given the 123,0 pair there.
[15:47:45] haylon: yes, UTF-16LE did show up in a file of hte file
[15:48:06] haylon: artifactory.json: Little-endian UTF-16 Unicode text, with CRLF, CR line terminators
[15:49:05] amclain: has joined #ruby
[15:49:34] burgestrand: haylon I think you can do `File.read("…", encoding: Encoding::UTF_16LE)` for for your read operation
[15:49:57] haylon: woof. Is this because I did htis on OSX and redirected the output?
[15:50:09] haylon: because other JSON files I have are just plain UTF-8
[15:50:31] burgestrand: haylon I can't tell you why, but whatever bytes you received were encoded as UTF-16LE and not UTF-8
[15:50:43] haylon: Interesting
[15:51:01] burgestrand: haylon supported by 1) the 0xFFFE in the start of the file and 2) the encoding of 0x7B00 for your {
[15:51:11] millerti: has joined #ruby
[15:51:27] burgestrand: >> "{".encode("UTF-16LE").bytes
[15:51:29] ruby[bot]: Burgestrand: # => [123, 0] (https://eval.in/778635)
[15:52:34] username1: has joined #ruby
[15:52:54] burgestrand: haylon It's not *entirely* strange given that AFAIK JavaScript uses that encoding internally for strings
[15:53:09] burgestrand: … I think, it's some kind of double-length encoding anyway :)
[15:53:49] cseder: has joined #ruby
[15:57:09] juggler: has joined #ruby
[15:57:29] etehtsea: has joined #ruby
[15:58:16] shinnya: has joined #ruby
[15:58:20] haylon: I get this error when trying to load the file
[15:58:21] haylon: ASCII incompatible encoding needs binmode (ArgumentError)
[15:58:25] haylon: using the suggested method
[15:58:36] electrostat: has joined #ruby
[15:59:50] burgestrand: haylon Ah, sorry, you probably need `File.read("…", mode: "rb", encoding: Encoding::UTF_16LE)` (mode-parameter)
[16:01:21] acalycine: has joined #ruby
[16:01:52] mooser: has joined #ruby
[16:02:15] loy_aqua: has joined #ruby
[16:02:19] burgestrand: … then again, that nasty BOM is still going to trip you up.
[16:02:34] vuoto: has joined #ruby
[16:02:59] haylon: I'm going to try a different method
[16:03:12] jaruga: has joined #ruby
[16:03:17] haylon: Instead of reading a file, I'm going to see if I can have my ruby script execute the aws command, and take that output
[16:06:17] govg: has joined #ruby
[16:08:30] vuoto: has joined #ruby
[16:08:38] ledestin: has joined #ruby
[16:08:52] vuoto: has joined #ruby
[16:10:35] cseder: Guess it's Ruby Tuesday
[16:11:17] baweaver: does that mean free appetizers ?
[16:11:29] cseder: Bring 'em on!
[16:12:38] vuoto: has joined #ruby
[16:12:54] burgestrand: haylon if that doesn't work, it's possible you'll have to conditionally clean off the BOM by yourself when reading the file
[16:14:07] cagmz: has joined #ruby
[16:14:16] haylon: Ok, i'll play with that. We're attempting the shell execution right now. teaching someone else how to do it at the same time
[16:14:27] haylon: Thank you Burgestrand, and balo
[16:20:00] vuoto: has joined #ruby
[16:22:28] vuoto: has joined #ruby
[16:23:56] burgestrand: haylon It's not pretty, but it ought to work: https://eval.in/778660
[16:24:15] gusrub: has joined #ruby
[16:24:41] haylon: LOL, I'll give it a whirl, but executing the command using %x[ #{cmd} ] allowed us to ge the STDOUT, and use that, which worked.
[16:24:50] haylon: then we wrote it to a file using plain utf-8
[16:25:37] jusa: has joined #ruby
[16:25:45] brent__: has joined #ruby
[16:25:54] burgestrand: haylon strange, maybe there's something in your environment that changed the output, I would've expected running the command in Ruby to not change the bytes being spit out by the AWS CLI
[16:26:16] haylon: I'm thinking its the environment as well
[16:26:27] haylon: somethign to do with the Shell on OSX and some OSX setting
[16:26:34] haylon: I'll have to dig around
[16:27:44] SeepingN: has joined #ruby
[16:31:30] nitric: has joined #ruby
[16:33:36] muelleme_: has joined #ruby
[16:35:50] jamesaxl: has joined #ruby
[16:36:02] vuoto: has joined #ruby
[16:36:46] Cohedrin: has joined #ruby
[16:37:14] mzo: has joined #ruby
[16:39:49] outreachdan: has joined #ruby
[16:42:09] bronson: has joined #ruby
[16:46:29] bbramos: has joined #ruby
[16:53:54] sumobob: has joined #ruby
[16:54:02] loy_aqua: has joined #ruby
[16:54:31] bbramos: boa tarde pessoal
[16:54:55] helpa: has joined #ruby
[16:58:45] loy_aqua: has joined #ruby
[16:59:53] enterprisey: has joined #ruby
[17:02:21] mooser: has joined #ruby
[17:14:07] hahuang65: has joined #ruby
[17:14:40] hays: has joined #ruby
[17:14:41] hays: has joined #ruby
[17:16:02] hahuang65: has joined #ruby
[17:23:01] Cohedrin: has joined #ruby
[17:30:13] tvw: has joined #ruby
[17:34:56] enterprisey: has joined #ruby
[17:37:04] LastWhisper____: has joined #ruby
[17:37:48] jaruga: has joined #ruby
[17:38:14] bronson: has joined #ruby
[17:39:52] chouhoul_: has joined #ruby
[17:45:35] chouhoulis: has joined #ruby
[17:46:45] jcao219: has joined #ruby
[17:52:50] mostlybadfly: has joined #ruby
[17:53:11] Benshiro: has joined #ruby
[17:54:14] Lucky_ABA: has joined #ruby
[17:55:33] naprimer_3: has joined #ruby
[17:55:42] enterprisey: has joined #ruby
[17:56:40] chouhoul_: has joined #ruby
[17:57:39] cfec0b8d: has joined #ruby
[18:02:24] j`ey: has joined #ruby
[18:02:53] j`ey: is webrick reasonably secure?
[18:03:47] mzo: about as secure as it gets
[18:04:01] dminuoso: j`ey: Webrick is just brittle, unstable and shitty.
[18:04:17] j`ey: I just need someting very simple
[18:04:27] j`ey: want to accept request, log something and then redirect
[18:04:48] dminuoso: j`ey: use sinatra powered with puma.
[18:04:52] jusa: has joined #ruby
[18:04:58] havenwood: j`ey: Or Roda with Puma.
[18:05:03] j`ey: I just wanted webrick cos it's already there :P
[18:05:16] j`ey: it's like super low traffic
[18:05:50] havenwood: j`ey: it does work for simple stuff!
[18:06:31] havenwood: j`ey: for that matter, you could use CGI.
[18:06:51] j`ey: hm true, I'll try that
[18:06:54] havenwood: j`ey: http://www.mikeperham.com/2015/01/05/cgi-rubys-bare-metal/
[18:08:56] j`ey: havenwood: thanks
[18:09:41] chouhoulis: has joined #ruby
[18:10:58] negatifze: has joined #ruby
[18:11:25] cdg_: has joined #ruby
[18:12:28] j`ey: ah, but with just cgi you also need a server
[18:13:19] ddffg: has joined #ruby
[18:13:49] dminuoso: j`ey: I think something like Sinatra/Roda/Ramaze/YourPoison with unicorn is about as compact but solid as it can get.
[18:14:05] j`ey: what about Camping? :P
[18:14:19] dminuoso: j`ey: Sure. Whatever floats your boat.
[18:14:51] j`ey: damn, there are still people committing to that
[18:17:26] j`ey: one of my first open source contributions: https://github.com/camping/camping/commit/2471b5cd1da078fc12349b8715815cc8ca0b45bb
[18:17:36] govg: has joined #ruby
[18:20:59] stoopidmunkey: has joined #ruby
[18:22:08] sepp2k: has joined #ruby
[18:24:29] havenwood: j`ey: Use mgx_mruby: https://github.com/matsumotory/ngx_mruby
[18:24:43] havenwood: j`ey: Nothing else will be as fast in Ruby land.
[18:25:21] havenwood: j`ey: https://www.techempower.com/benchmarks/#section=data-r13&hw=ph&test=json
[18:26:06] havenwood: 377,344 JSON responses from ngx_mruby versus 4,140 from Rails
[18:26:18] j`ey: I dont need really high performance
[18:26:38] havenwood: j`ey: It's also not much code. Embedding Ruby in Nginx is fun too. I promise
[18:27:09] havenwood: j`ey: But yeah, if you really want something simple from your end, use a Rack app backed by Puma.
[18:28:06] havenwood: j`ey: Pure Rack is pretty easy, and you may end up needing middleware, nice to have available. Rack is a good path.
[18:28:25] havenwood: j`ey: There's gotta be a server somehow.
[18:28:56] j`ey: oh sure, but webrick has that built in!
[18:30:52] havenwood: j`ey: you could have webrick handle your cgi script, if you really wanna use webrick ;-P
[18:31:02] jrafanie: has joined #ruby
[18:34:23] jdawgaz: has joined #ruby
[18:34:28] stoopidmunkey: has joined #ruby
[18:35:10] cfec0b8d: has joined #ruby
[18:35:10] Guest55: has joined #ruby
[18:35:13] jdawgaz: has joined #ruby
[18:37:48] tvw: has joined #ruby
[18:38:55] Guest55: has joined #ruby
[18:41:49] jdawgaz: has joined #ruby
[18:46:05] muelleme_: has joined #ruby
[18:46:30] pupsicle: has joined #ruby
[18:47:52] NL3limin4t0r_afk: has joined #ruby
[18:48:45] negatifze: has joined #ruby
[18:59:54] postmodern: has joined #ruby
[19:01:13] mim1k: has joined #ruby
[19:02:32] mooser: has joined #ruby
[19:02:52] mooser: has joined #ruby
[19:04:25] ramfjord: has joined #ruby
[19:12:34] nerglish: has joined #ruby
[19:13:11] ericmath1son: has joined #ruby
[19:17:19] jdawgaz: has joined #ruby
[19:21:01] railswebdev: has joined #ruby
[19:21:17] dasher^0_o: has joined #ruby
[19:21:24] mooser: has joined #ruby
[19:22:33] jrafanie: has joined #ruby
[19:29:10] ramortegui: has joined #ruby
[19:29:59] s2013: has joined #ruby
[19:36:42] gusrub: has joined #ruby
[19:39:30] mooser: has joined #ruby
[19:43:17] gusrub: has joined #ruby
[19:45:53] duderonomy: has joined #ruby
[19:48:32] catbusters: has joined #ruby
[19:49:31] haylon: has joined #ruby
[19:55:06] cdg: has joined #ruby
[19:56:43] lxsameer: has joined #ruby
[19:57:00] Silthias: has joined #ruby
[20:01:21] sumobob: has joined #ruby
[20:03:31] hxegon: has joined #ruby
[20:06:19] Eiam: has joined #ruby
[20:09:23] Nahra: has joined #ruby
[20:10:28] Cohedrin: has joined #ruby
[20:11:21] hahuang65: has joined #ruby
[20:14:31] benlieb: has joined #ruby
[20:15:04] olivier__: has joined #ruby
[20:15:10] mfb2: has joined #ruby
[20:16:41] synthroid: has joined #ruby
[20:18:17] benlieb: isn't bundle update my_gem supposed to update the Gemfile.lock file?
[20:18:32] negatifze: has joined #ruby
[20:19:11] dminuoso: benlieb: That depends on whether there's something to updarte.
[20:19:35] rhyselsmore: has joined #ruby
[20:21:15] benlieb: dminuoso: the gem is definitely out of date, the bundle update installs the new gem but doesn't update the gemfile
[20:21:20] benlieb: Gemfile.lock
[20:21:46] dminuoso: benlieb: Show me your Gemfile
[20:27:47] mikecmpbll: has joined #ruby
[20:28:09] gix: has joined #ruby
[20:31:19] preyalone: has joined #ruby
[20:32:01] SeepingN: has joined #ruby
[20:32:09] workmad3: has joined #ruby
[20:36:07] nofxx: has joined #ruby
[20:42:12] rgr_: has joined #ruby
[20:45:16] rakm: has joined #ruby
[20:46:02] lemoi: has joined #ruby
[20:46:02] segy: has joined #ruby
[20:46:09] mooser: has joined #ruby
[20:46:39] lemoi: I'm using Pathname.new(foo).split.to_s to remove the last dir in a unix path. Is there any way of spliting the next dir as well? ie /usr/local/bin => /usr
[20:46:56] chrisgeorge: has joined #ruby
[20:47:58] chrisgeorge: Hey Ruby community, is there a way to use Hash.dig with an array of strings to check for a key? e.g. a = 'a', b = 'b', q = [a, b], Hash.dig(q)?
[20:49:54] cdg: has joined #ruby
[20:50:17] dminuoso: chrisgeorge: Yes. [a, b].reduce ... :-)
[20:50:57] dminuoso: Or [a, b].find
[20:51:19] dminuoso: chrisgeorge: Ohh wait I misunderstood.
[20:51:21] ytti: Pathname.new(foo).ascend.to_a[-2]
[20:51:24] dminuoso: chrisgeorge: Use the splat operator.
[20:51:29] olivier__: has joined #ruby
[20:51:29] dminuoso: chrisgeorge: Hash.dig(*q)
[20:51:35] cdg: has joined #ruby
[20:52:21] ytti: or #descend.to_a[1]
[20:52:22] lemoi: thanks bud
[20:52:28] chrisgeorge: dminuoso: I think I tried that and it didn't work. e.g. a = {b: { c: 'test'}} a.dig(*['b', 'c'])
[20:52:41] dminuoso: chrisgeorge: To no surprise.
[20:52:47] dminuoso: chrisgeorge: Symbols are not strings.
[20:53:01] Verity: has joined #ruby
[20:53:11] dminuoso: >> {b: { c: 'test'}}.dig(*[:b, :c])
[20:53:12] ruby[bot]: dminuoso: # => "test" (https://eval.in/778721)
[20:53:13] dminuoso: chrisgeorge: ^-
[20:53:16] GodFather: has joined #ruby
[20:53:31] cdg: has joined #ruby
[20:53:38] chrisgeorge: dminuoso: Yeah I was hoping to just use strings. But it's no big deal :)
[20:53:43] dminuoso: chrisgeorge: Despite the fact that in some places you can use them synonymously, don't expect them to. :)
[20:56:31] tAn: has joined #ruby
[20:57:55] mooser: has joined #ruby
[20:59:00] jdawgaz: has joined #ruby
[21:00:40] railswebdev: has joined #ruby
[21:00:54] cdg_: has joined #ruby
[21:05:40] sumobob: has joined #ruby
[21:09:02] outreachdan: has joined #ruby
[21:09:11] mim1k: has joined #ruby
[21:09:30] cdg: has joined #ruby
[21:12:10] ineb: has joined #ruby
[21:14:20] jusa: has joined #ruby
[21:15:13] olivier__: has joined #ruby
[21:19:10] hxegon: Verity: How's your ruby journey going so far?
[21:21:27] Verity: excellent
[21:21:32] Verity: working with TCP is a breeze
[21:21:52] DLSteve: has joined #ruby
[21:22:54] Phrogz: has joined #ruby
[21:23:30] baweaver: working challenge UDP with a is
[21:23:49] Phrogz: has joined #ruby
[21:24:36] Phrogz: I have a Ruby script run as a Scheduled Task (Windows speak for cron job) that was previously downloading files via FTP. Now the files are only going to be available via SMB.
[21:25:03] hxegon: My favorite: "Take me down to concurrency city the girls grass pretty is where the are green and"
[21:25:05] Phrogz: Anyone know how to mount a remote share and copy files from it using Ruby from a Scheduled Task running as a service account?
[21:25:54] baweaver: I'd assume get a Samba client for Ruby and go from there
[21:26:05] Phrogz: Brilliant!
[21:26:09] Phrogz: ACTION goes a-googling
[21:26:12] hxegon: Verity: nice!
[21:27:08] baweaver: hxegon: Bob had a problem. Bob decided to use threads. Now problems two has Bob.
[21:27:30] Phrogz: baweaver: lol
[21:28:11] apeiros: but bobs two problems where now processed twice as fast!
[21:28:16] skweek: has joined #ruby
[21:29:03] Phrogz: Speed matters, yo.
[21:29:09] Phrogz: Fail quickly, they say.
[21:29:13] hxegon: UPD: hear can me now you?
[21:29:26] Phrogz: I'd tell you a UDP joke, but you might not get it.
[21:29:47] Phrogz: Nice to see you, apeiros.
[21:29:55] apeiros: Phrogz: lol. I got it, but I won't acknowledge it.
[21:29:56] hxegon: Phrogz: I forgot that one
[21:30:02] baweaver: TCP is just SYNACKtic sugar
[21:30:18] hxegon: LET THE PUNS FLOW THROUGH YOU
[21:30:20] Phrogz: I'd follow up with the "I have a TCP joke for you" repeated until someone says "I got it", but I don't want to be kicked.
[21:30:43] apeiros: kick is the nagle of irc
[21:31:00] baweaver: I can still kick you if it'd make you feel better
[21:32:21] vivekananda: has joined #ruby
[21:32:23] robert_reilly: has joined #ruby
[21:35:11] brent__: has joined #ruby
[21:37:06] Phrogz: Swing and a miss #1: https://github.com/johnae/sambal/issues/30
[21:37:55] snickers: has joined #ruby
[21:37:59] robert_reilly: Hi, I am debugging a gem issue should I see the same paths in gem env and ruby -e ‘puts $:’ ? here is the output of those two commands: http://bit.ly/2o13iYT
[21:38:14] j`ey: has left #ruby: ()
[21:40:35] dar123: has joined #ruby
[21:41:17] negatifze: has joined #ruby
[21:43:43] Phrogz: robert_reilly: Pretty sure no. The `$:` variable is the load path for load or require. That's not the same as the gem path.
[21:43:50] baweaver: https://github.com/ThrowTheSwitch/Ceedling/issues/76
[21:43:54] millerti: has joined #ruby
[21:44:04] olivier__: has joined #ruby
[21:44:12] Phrogz: baweaver: Ooh, nice find, thanks.
[21:44:29] baweaver: was looking to see why pty wasn't working for Windows.
[21:45:17] Phrogz: Mmm, I see that that workaround is for a specific library that falls back to popen4 instead of pty.
[21:45:29] Phrogz: I wonder if this is fixed in a newer Ruby for Windows installer.
[21:46:18] Phrogz: There's this 4-year-old comment: http://stackoverflow.com/a/16467445/405017
[21:46:55] outreachdan: has joined #ruby
[21:48:00] ecksit: has joined #ruby
[21:48:40] Phrogz: Switching directions. Going to figure out some non-portable way to mount a Windows share as a drive and just reference that.
[21:50:14] patarr: has joined #ruby
[21:51:58] bronson: has joined #ruby
[21:53:19] olivier__: has joined #ruby
[21:56:05] Phrogz: OT rant: I have had an application in place that's been downloading and processing log files using the company's FTP server going on about 8 years now. IT decided to switch our CDN from Akamai to Verizon.
[21:56:43] Phrogz: They know about my app. And yet they gave me "1-2 days" notice to get everything fixed up for a new log file delivery mechanism, new log file format. Bah.
[21:57:29] segy: has joined #ruby
[22:00:56] maattdd_: has joined #ruby
[22:02:31] chichou: has joined #ruby
[22:02:48] patarr: has joined #ruby
[22:04:22] esObe: has joined #ruby
[22:05:37] enterprisey: has joined #ruby
[22:05:50] hxegon: Phrogz: wow that's shitty
[22:06:09] upen15: we can cuss in this channel?
[22:06:16] maattdd: has joined #ruby
[22:06:56] hxegon: Yeah, just keep it within the limits of good taste :)
[22:07:28] baweaver: Generally frowned upon, but a few words doesn't really get anyone riled.
[22:08:07] baweaver: Now if you were to make some form of racially charged remark, that'd be lights out on the spot.
[22:08:12] ahrs: has joined #ruby
[22:08:18] hutch34_: has joined #ruby
[22:08:27] Phrogz: BTW, when did #ruby-lang finally go away?
[22:08:40] pmden: has joined #ruby
[22:08:41] upen15: baweaver: unless those racially charged sentiments are against whites right?
[22:08:42] baweaver: ~1.5-2 years back iirc
[22:08:51] baweaver: upen15 pushing it
[22:09:03] upen15: just stating observations that is all
[22:09:12] hxegon: what have I done
[22:09:24] baweaver: short version: be a decent human being and I won't say a word
[22:09:35] baweaver: be mean and....
[22:09:45] Phrogz: ACTION waits for the power up
[22:10:14] baweaver: Not really. No need to.
[22:10:25] Phrogz: ACTION is disappoint.
[22:10:35] baweaver: I just don't like typing out all the rest of that
[22:12:11] upen15: but you technically can't say anything racially charged against white people because they hold all the power so you can only hold prejudices against them and it's normal to hold a prejudice but it's not normal to be racist
[22:12:33] ruby[bot]: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
[22:15:09] jcao219: has joined #ruby
[22:16:29] jdawgaz: has joined #ruby
[22:17:38] patarr: has joined #ruby
[22:18:26] chichou: has joined #ruby
[22:18:35] coatezy: has joined #ruby
[22:20:32] chichou: has left #ruby: ()
[22:20:58] Phrogz: Surprisingly, I found useful information on ruby-forum! ;) https://www.ruby-forum.com/topic/178817#783108
[22:21:17] Phrogz: Apparently I can just `Dir['//servername/share/folder/path/*'
[22:21:43] Phrogz: And (if I had not accidentally pressed Enter and left that code incomplete) it auto-mounts the share and Just Works. Yay.
[22:23:13] pilne: has joined #ruby
[22:25:32] dn`: has joined #ruby
[22:25:59] Trynemjoel: has joined #ruby
[22:26:54] icarus: has joined #ruby
[22:27:04] dmtd: has joined #ruby
[22:29:23] icarus: hey all, ive got a Gemfile with a :git source denoted, bundle will install it but i dont see it with i grep it with "gem list"
[22:30:09] icarus: bundle doesnt seem to assign the custom source gem to a list that i can require in a script
[22:30:29] icarus: bundle list shows it, but gem list does not
[22:31:52] icarus: i guess bundle isnt installing to a system wide recognizable location, just wondering what the best way to resolve it is
[22:36:03] Lucky_ABA: has joined #ruby
[22:36:37] Phrogz: icarus: Why do you care? Is it important that it show up in `gem list`?
[22:36:41] havenwood: icarus: Bundler "remembers" settings like --path
[22:36:48] havenwood: icarus: Check: bundle config
[22:37:11] havenwood: icarus: and your .bundle/config file
[22:39:41] patarr: has joined #ruby
[22:40:22] icarus: Phrogz: the custom source :git gem isnt showing up when required in the header of a script
[22:40:39] icarus: if i manually copy from the bundler location to where global gems are stored, the script runs fine
[22:42:10] Phrogz: Ah, I see.
[22:42:42] Phrogz: ACTION knows almost nothing about bundler, except that I feel guilty about not using it.
[22:43:06] icarus: Phrogz: what method do you use to track your gems?
[22:43:34] atom3_: has joined #ruby
[22:43:42] Phrogz: System gems, everywhere I go. (Or rvm, but not in packages per library or project.)
[22:44:38] icarus: its convenient to drop a Gemfile in a repo and feel likes its dependencies can be tracked
[22:46:05] Phrogz: My gem projects have gem dependencies in their gemfile. I just don't use bundler for...whatever awesome local per-project gem management it does.
[22:47:36] Phrogz: e.g. https://github.com/Phrogz/RUIC/blob/master/ruic.gemspec
[22:49:05] patarr: has joined #ruby
[22:51:39] Phrogz: Just about all my other non-gem projects are web apps that use the exact same stack of gems, I guess.
[22:53:24] havenwood: icarus: Bundler installs to the system gem location by default, but if you've set it to install elsewhere it will keep doing so.
[22:54:02] icarus: ive always though bundler was a neat way to track dependencies, i guess one could use .gemspec alone too
[22:54:18] icarus: havenwood: yeah, im debugging through it, i appreciate yalls input
[22:54:19] havenwood: icarus: What are you trying to do?
[22:54:27] havenwood: icarus: bundle show
[22:54:45] havenwood: icarus: tell me more specifically what you're trying to get at, and i'd be happy to help
[22:55:39] havenwood: icarus: gem install ruby-graphviz && bundle viz && open gem_graph.png
[22:57:37] icarus: havenwood: im just trying to get a gem i cloned on github with a few changes to install properly to a global path via bundler install: https://github.com/jjdevbiz/poloniex
[22:58:21] icarus: Gemfile entry: gem "poloniex", :git => 'https://github.com/jjdevbiz/poloniex.git', :branch => 'master'
[22:58:37] icarus: it installs correctly, bundle show has it listed
[22:58:48] havenwood: icarus: bundle show poloniex
[22:58:54] Verity: can perl offer me anything that ruby cant"
[22:59:11] havenwood: What's the path?
[22:59:12] negatifze: has joined #ruby
[22:59:12] havenwood: Verity: version 6
[22:59:29] havenwood: Verity: Ruby won't have a version that high for some time.
[22:59:37] icarus: /root/.chefdk/gem/ruby/2.1.0/bundler/gems/poloniex-4facb54c1045
[22:59:38] Verity: thats a good point
[23:00:21] icarus: i should mention, i am using chef's development kit
[23:00:26] patarr: has joined #ruby
[23:00:36] enterprisey: has joined #ruby
[23:01:04] BSaboia: has joined #ruby
[23:03:18] havenwood: icarus: So yeah, that gem isn't installing to the system location since it's not a RubyGems-delivered gem.
[23:03:22] havenwood: icarus: https://bundler.io/git.html
[23:03:34] havenwood: icarus: "any gems installed from a git repository will not show up in gem list"
[23:03:59] petruff: has joined #ruby
[23:04:26] petruff: has joined #ruby
[23:05:58] esObe: has joined #ruby
[23:06:37] icarus: havenwood: bingo
[23:07:43] icarus: > Bundler.setup
[23:09:29] dyjakan: has joined #ruby
[23:11:58] icarus: havenwood: Phrogz: thanks for the help
[23:14:05] jusa: has joined #ruby
[23:14:06] Verity: why use c++ at all for this... I could just call the C library from ruby?
[23:14:47] havenwood: Verity: Perl 6 is very nice and took some inspirations from Ruby. (Ruby of course previously took some inspiration from Perl.)
[23:16:13] boombox_: has joined #ruby
[23:18:48] s2013: has joined #ruby
[23:19:08] olivier__: has joined #ruby
[23:22:45] DLSteve: has joined #ruby
[23:24:46] bronson: has joined #ruby
[23:29:14] youmu_: has joined #ruby
[23:31:27] cajone: has joined #ruby
[23:32:15] Cohedrin: has joined #ruby
[23:35:49] justinmcp: has joined #ruby
[23:36:43] jdawgaz: has joined #ruby
[23:37:33] jdawgaz: has joined #ruby
[23:41:16] Vile`: has joined #ruby
[23:42:26] lmc: has joined #ruby
[23:43:53] outreach_: has joined #ruby
[23:52:17] olivier__: has joined #ruby