Created
April 25, 2012 00:58
-
-
Save mperham/2485051 to your computer and use it in GitHub Desktop.
YAML parsing bug in Ruby 1.9.3?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YAML.parse(BELOW) fails, I believe due to the shipCompany line below which contains a single backtick. | |
``` | |
--- !ruby/object:Delayed::PerformableMethod | |
args: [] | |
method_name: :push_to_wh | |
object: !ruby/ActiveRecord:Cart | |
attributes: | |
split_to: | |
split_from: | |
promotion_id: | |
ship_cost: 7.98 | |
merch_total: 39.82 | |
auth_type: authorize.net | |
combined_into_id: | |
fedex_callback: appserver4 | |
auth_code: "4298621621" | |
updated_at: 2012-04-09 16:29:55 Z | |
id: 173550 | |
confirmation_sent: false | |
discount: 0.0 | |
created_at: 2011-01-18 21:25:30 Z | |
gateway_callback: | |
:company: "" | |
:ccvResponse: M | |
:tranType: auth_capture | |
:responseReasonText: This transaction has been approved. | |
:shipCity: Spanish Fork | |
:country: US | |
:email: [email protected] | |
:tax: "" | |
:responseSubcode: 1 | |
:cavvResponse: "" | |
:customerId: "149958" | |
:shipZip: "84660" | |
:freight: "" | |
:responseReasonCode: 1 | |
:shipState: UT | |
:phone: 801-319-2093 | |
:fax: "" | |
:zip: "84660" | |
:taxExempt: "" | |
:authCode: "222735" | |
:method: CC | |
:shipFirstName: Foo | |
:duty: "" | |
:address: 123 Main St | |
:city: Spanish Fork | |
:transactionId: "4298621621" | |
:poNumber: "" | |
:avsResponse: Y | |
:responseCode: 1 | |
:firstName: Foo | |
:shipLastName: Bar | |
:shipCompany: ` | |
:lastName: Bar | |
:md5Hash: 9E4D266F12DAF400326680D1A53A9387 | |
:invoiceNumber: "173550" | |
:shipAddress: 123 Main St | |
:amount: "39.82" | |
:state: UT | |
:description: "" | |
:shipCountry: "" | |
payment_status: authorized | |
purchase_date: 2012-04-09 | |
order_status: "10" | |
state: ordered | |
gateway_processing_status: 2005 | |
gst: | |
tracking_number: | |
hst: | |
combined_from_id: | |
user_id: 149958 | |
duty: | |
pst: | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've had a similar issue and haven't been able to figure it out. I believe mine had to do with a single <.