Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove puts.

  • Loading branch information...
commit 5492fe77a5474df0a1088442888a11568d219830 1 parent 4184069
John Nunemaker authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/crack/json.rb
6 lib/crack/json.rb
View
@@ -18,7 +18,7 @@ def self.parse(json)
def self.unescape(str)
str.gsub(/\\u0000/, "").gsub(/\\u([0-9a-f]{4})/) { [$1.hex].pack("U") }
end
-
+
# matches YAML-formatted dates
DATE_REGEX = /^\d{4}-\d{2}-\d{2}$|^\d{4}-\d{1,2}-\d{1,2}[T \t]+\d{1,2}:\d{2}:\d{2}(\.[0-9]*)?(([ \t]*)Z|[-+]\d{2}?(:\d{2})?)?$/
@@ -52,9 +52,7 @@ def self.convert_json_to_yaml(json) #:nodoc:
marks << scanner.pos - 1 unless quoting
when "\\"
scanner.skip(/\\/)
- else
- puts char
- end
+ end
end
if marks.empty?
Please sign in to comment.
Something went wrong with that request. Please try again.