[03:34:53]
Stanl3yStan3rson:
I'm trying to parse some data where each item has multiple attributes. Something like [X = 1,2,3,4; Y = 5,6,7,8; Z = 9,10,11,12] what's the best attack for this in ruby? Any suggestions?

[07:14:53]
MACscr:
i dont know anything about ruby or rails. Can i ask rails questions here or is there a better channel? im trying to resolve "Your Gemfile lists the gem nokogiri (~> 1.6.0) more than once." that i get when i run foreman-rake and I am not sure where to start looking.

[07:18:14]
dminuoso:
MACscr: A "Gemfile" is a file describing of all the external libraries, we call them "gems", a project uses.

[07:18:48]
matthewd:
dminuoso: You were complaining about the non-existence of a perfectly cromulent operator a couple of hours ago, so.. ;)

[07:18:49]
dminuoso:
MACscr: It's the mechanism for the program called `bundler`. `bundler` takes your `Gemfile` and ensures all those packages listed with the versions listed inside are made available to your project. And very often `bundler` is used transparently behind the scenes

[07:21:18]
dminuoso:
MACscr: So some part is looking at your `Gemfile` and seeing the package `nokogiri` listed twice.

[07:21:24]
matthewd:
MACscr: There is a file literally named `Gemfile` in the root directory of the project. Per the error, it apparently has the nokogiri gem listed twice. But that seems like an odd thing to be already wrong on a project you're trying to pick up. :/

[07:23:30]
matthewd:
Oh, but this might be a user support issue with Foreman, if you're just trying to use user-facing features of that application. While it's written in Ruby, we're going to be of limited help in tracking down a root cause for any problems.

[10:40:01]
noob_on_rails:
hey, im trying to replicate a nested json response for multihey! im trying to replicate an API with sinatra and ruby , can this be done better? https://gist.github.com/frcake/2cedcd1f2ea1b61b632d2f885d329334

[12:19:29]
frozengeek:
hey all, I have 2 hashes I am comparing, one is internal data, the other one is loaded from json, this works fine as long as there are no newlines in strings, since the internal representation of that string will already have newlines escaped, and the one loaded from json gets them unescaped, hence they don't match. Any way I can tell the json parser to not un-escape newlines? or maybe another way somebody sees around this issue?

[12:24:31]
frozengeek:
matthewd: well, they aren't really different and I don't have control over the internal representation, the only thing I have is that I generate that json file from that hash (in another program run) and when I load it again from json it doesn't match the internal hash anymore.

[20:41:36]
Zarthus:
ocpysh: there are 300 people in there, surely someone in there can help you far better than we can

[20:42:03]
Zarthus:
we typically redirect people to the rails channel, although if you could ask your question as a generic ruby question it might be worth a shot

[20:47:18]
konsolebox:
anyone knows how to configure a .gemspec file so Gem::RDoc would also generate ri documents from directories with lower level than ext? e.g. ext/sub/module. because it doesn't seem to.

[23:18:27]
linduxed:
so there's this language called moonscript which is something like a coffeescript for lua. there's one language feature of it that i've been wondering if one could port over to ruby: