Trevor Wennblom

Results 21 comments of Trevor Wennblom

quickfix ``` diff --- bin/rocco | 1 + rocco.gemspec | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/rocco b/bin/rocco index f630978..e4fac90 100755 --- a/bin/rocco +++ b/bin/rocco...

not a comprehensive patch; just to get it working

the patch is a hotfix to the executable only, and the tests only call rdiscount. that aside - testing by modifying `test/helper.rb`: ``` ruby # require 'rdiscount' require 'redcarpet' Markdown...

@fhd I have no opinion on the license.

(Addresses @jsl's https://gist.github.com/jsl/4699323)

This is fixed with: ``` clj (doto (DumperOptions.) (.setAllowReadOnlyProperties true) ``` example (with modified fn's): ``` clj => (println (yaml-dump {:x :y/z :a 'b/c/d})) --- x: z a: !!clojure.lang.Symbol name:...

(note that setAllowReadOnlyProperties isn't available in snakeyaml 1.5, but is in 1.12)

This allows for Sets that contain numbers only, or strings only: ``` clj clojure.lang.PersistentHashSet (encode [data] (java.util.HashSet. data)) clojure.lang.PersistentTreeSet (encode [data] (java.util.TreeSet. data)) ```

… but this is better: ``` clj clojure.lang.IPersistentSet (encode [data] (into #{} (map encode data))) ``` example (with modified fn's): ``` clj => (println (yaml-dump ["y" #{"d" 'b/c :a 2...