Permalink
Browse files

+ JSOn written differently, slightly less performat, but with less tr…

…ouble
  • Loading branch information...
1 parent f049d8e commit 7bd986753369cffea576c623e917094ce4670d2c @floere committed Jul 2, 2012
Showing with 10 additions and 2 deletions.
  1. +4 −0 history.textile
  2. +5 −1 server/lib/picky/backends/memory/json.rb
  3. +1 −1 version.rb
View
@@ -1,5 +1,9 @@
h2. Upcoming Version
+h2. Version 4.5.1 "JSON, a nightmare"
+
+* hanke: (server) Fix for @multi_json@ gem usage.
+
h2. Version 4.5.0 "JSON, a nightmare on Elm street"
* hanke: (server) Picky now uses the @multi_json@ gem.
@@ -27,11 +27,15 @@ def dump internal
dump_json internal
end
+ # Dump JSON into the cache file.
#
+ # TODO Ask MultiJson people to add IO option:
+ # MultiJson.encode(object, out_file)
#
def dump_json internal
::File.open(cache_path, 'w') do |out_file|
- MultiJson.encode internal, out_file
+ # MultiJson.encode internal, out_file
+ out_file.write MultiJson.encode internal
end
end
View
@@ -1,3 +1,3 @@
module Picky
- VERSION = '4.5.0'
+ VERSION = '4.5.1'
end

0 comments on commit 7bd9867

Please sign in to comment.