Max Lincoln
Max Lincoln
This is a possible answer for https://github.com/rtomayko/rocco/issues/104. Even if it's not the best solution, it should give you an idea of what I had in mind for #104. This mostly...
## Overview The trickiest part of Docco/Rocco is parsing source from any language and splitting it into segments of documentation and code. The majority of the code and tests are...
I wanted to refactor (specifically, extract a class) but when I cloned the project and ran tests locally I found: > 47 tests, 63 assertions, 5 failures, 1 errors, 0...
mime-types was "built to conform to the MIME types of RFCs 2045 and 2231". RFC 2045 is itself composed of many other RFCs, some of which have been obsoleted or...
I didn't see #185 until just now, so this might be a duplicate of that, although this takes a fairly different approach (extension vs class). But that's why I'm opening...
I just noticed `Hashie::Extensions::IgnoreUndeclared` and thought that a similar mixin could be useful to implement a more maintainable `Hashie::Bash` like I proposed in https://github.com/intridea/hashie/issues/229. This PR implements `Hashie::Extensions::IgnoreRequired` which is...
I had been using a dash with a `:required` property. It worked fine in Hashie v3.3.2. It stopped working in v3.4.0. The issue seems to be that Hashie is trying...
When I wrote the support for coercing primitive types, I wrote: > Hashie does not have built-in support for coercion boolean values, since Ruby does not have a built-in boolean...
Currently Hashie is coercing to core types with conversion methods: | type | method | | --- | --- | | Integer | `#to_i` | | Float | `#to_f` |...
I'm working on a [Swagger](http://swagger.io/) library for ruby. I wanted a Swagger::Builder so projects like [grape-swagger](https://github.com/tim-vandecasteele/grape-swagger) could walk the grape DSL and build a swagger object. I'd already described the...