brianmario-yajl-ruby 0.3.4 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. data/.gitignore +4 -0
  2. data/CHANGELOG.rdoc +13 -0
  3. data/MIT-LICENSE +20 -0
  4. data/README.rdoc +39 -3
  5. data/Rakefile +4 -12
  6. data/VERSION.yml +2 -2
  7. data/benchmark/http.rb +28 -0
  8. data/benchmark/stream.rb +40 -0
  9. data/benchmark/subjects/contacts.json +1 -0
  10. data/benchmark/subjects/item.json +1 -0
  11. data/benchmark/subjects/ohai.json +1216 -0
  12. data/benchmark/subjects/twitter_search.json +1 -0
  13. data/benchmark/subjects/unicode.json +3315 -0
  14. data/benchmark/subjects/yelp.json +1 -0
  15. data/ext/extconf.rb +1 -0
  16. data/ext/yajl.c +86 -40
  17. data/ext/yajl.h +45 -0
  18. data/lib/yajl/http_stream.rb +67 -0
  19. data/lib/yajl.rb +32 -0
  20. data/specs/active_support_spec.rb +50 -0
  21. data/specs/fixtures/fail.15.json +1 -0
  22. data/specs/fixtures/fail.16.json +1 -0
  23. data/specs/fixtures/fail.17.json +1 -0
  24. data/specs/fixtures/fail.26.json +1 -0
  25. data/specs/fixtures/fail11.json +1 -0
  26. data/specs/fixtures/fail12.json +1 -0
  27. data/specs/fixtures/fail13.json +1 -0
  28. data/specs/fixtures/fail14.json +1 -0
  29. data/specs/fixtures/fail19.json +1 -0
  30. data/specs/fixtures/fail20.json +1 -0
  31. data/specs/fixtures/fail21.json +1 -0
  32. data/specs/fixtures/fail22.json +1 -0
  33. data/specs/fixtures/fail23.json +1 -0
  34. data/specs/fixtures/fail24.json +1 -0
  35. data/specs/fixtures/fail25.json +1 -0
  36. data/specs/fixtures/fail27.json +2 -0
  37. data/specs/fixtures/fail28.json +2 -0
  38. data/specs/fixtures/fail3.json +1 -0
  39. data/specs/fixtures/fail4.json +1 -0
  40. data/specs/fixtures/fail5.json +1 -0
  41. data/specs/fixtures/fail6.json +1 -0
  42. data/specs/fixtures/fail9.json +1 -0
  43. data/specs/fixtures/pass.array.json +6 -0
  44. data/specs/fixtures/pass.codepoints_from_unicode_org.json +1 -0
  45. data/specs/fixtures/pass.contacts.json +1 -0
  46. data/specs/fixtures/pass.db100.xml.json +1 -0
  47. data/specs/fixtures/pass.db1000.xml.json +1 -0
  48. data/specs/fixtures/pass.dc_simple_with_comments.json +11 -0
  49. data/specs/fixtures/pass.deep_arrays.json +1 -0
  50. data/specs/fixtures/pass.difficult_json_c_test_case.json +1 -0
  51. data/specs/fixtures/pass.difficult_json_c_test_case_with_comments.json +1 -0
  52. data/specs/fixtures/pass.doubles.json +1 -0
  53. data/specs/fixtures/pass.empty_array.json +1 -0
  54. data/specs/fixtures/pass.empty_string.json +1 -0
  55. data/specs/fixtures/pass.escaped_bulgarian.json +4 -0
  56. data/specs/fixtures/pass.escaped_foobar.json +1 -0
  57. data/specs/fixtures/pass.item.json +1 -0
  58. data/specs/fixtures/pass.json-org-sample1.json +23 -0
  59. data/specs/fixtures/pass.json-org-sample2.json +11 -0
  60. data/specs/fixtures/pass.json-org-sample3.json +26 -0
  61. data/specs/fixtures/pass.json-org-sample4-nows.json +88 -0
  62. data/specs/fixtures/pass.json-org-sample4.json +89 -0
  63. data/specs/fixtures/pass.json-org-sample5.json +27 -0
  64. data/specs/fixtures/pass.map-spain.xml.json +1 -0
  65. data/specs/fixtures/pass.ns-invoice100.xml.json +1 -0
  66. data/specs/fixtures/pass.ns-soap.xml.json +1 -0
  67. data/specs/fixtures/pass.numbers-fp-4k.json +6 -0
  68. data/specs/fixtures/pass.numbers-fp-64k.json +61 -0
  69. data/specs/fixtures/pass.numbers-int-4k.json +11 -0
  70. data/specs/fixtures/pass.numbers-int-64k.json +154 -0
  71. data/specs/fixtures/pass.twitter-search.json +1 -0
  72. data/specs/fixtures/pass.twitter-search2.json +1 -0
  73. data/specs/fixtures/pass.unicode.json +3315 -0
  74. data/specs/fixtures/pass.yelp.json +1 -0
  75. data/specs/fixtures/pass1.json +56 -0
  76. data/specs/fixtures/pass2.json +1 -0
  77. data/specs/fixtures/pass3.json +6 -0
  78. data/specs/fixtures_spec.rb +25 -0
  79. data/specs/one_off_spec.rb +11 -0
  80. data/specs/spec_helper.rb +4 -0
  81. data/yajl-ruby.gemspec +115 -0
  82. metadata +79 -2
@@ -0,0 +1 @@
1
+ {"results":[{"text":"RT @tmornini: Engine Yard Express = perfect way to test merb or rails deployment - http:\/\/express.engineyard.com\/","to_user_id":null,"from_user":"seanhealy","id":1429979943,"from_user_id":4485910,"iso_language_code":"en","source":"<a href="http:\/\/iconfactory.com\/software\/twitterrific">twitterrific<\/a>","profile_image_url":"https:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/62254150\/irish_noir_normal.jpg","created_at":"Wed, 01 Apr 2009 07:06:16 +0000"},{"text":"RT: Engine Yard Express = perfect way to test merb or rails deployment - http:\/\/express.engineyard.com\/ (via @digsby)","to_user_id":null,"from_user":"tmornini","id":1429966620,"from_user_id":168963,"iso_language_code":"en","source":"<a href="http:\/\/twitter.com\/">web<\/a>","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/49018042\/Tom_Icon_64x64_normal.png","created_at":"Wed, 01 Apr 2009 07:02:00 +0000"},{"text":"Engine Yard Express = perfect way to test merb or rails deployment - http:\/\/express.engineyard.com\/","to_user_id":null,"from_user":"richardholland","id":1428644441,"from_user_id":1608628,"iso_language_code":"en","source":"<a href="http:\/\/www.digsby.com\/">digsby<\/a>","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/63723025\/mesarah_normal.jpg","created_at":"Wed, 01 Apr 2009 02:07:30 +0000"},{"text":"RT @wycats: How to survive monster attacks. Some tips from your friends at EngineYard http:\/\/twitpic.com\/2nl7x","to_user_id":null,"from_user":"AmandaMorin","id":1427373261,"from_user_id":1756964,"iso_language_code":"en","source":"<a href="http:\/\/www.tweetdeck.com\/">TweetDeck<\/a>","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/67971839\/avatar_normal.jpg","created_at":"Tue, 31 Mar 2009 22:19:29 +0000"},{"text":"engineyard added jarnold to mongrel: \n\n \n \n \n mongrel is at engineyard\/mongrel http:\/\/tinyurl.com\/dm7ldz","to_user_id":null,"from_user":"_snax","id":1427357028,"from_user_id":118386,"iso_language_code":"en","source":"<a href="http:\/\/twitterfeed.com">twitterfeed<\/a>","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/19934062\/logo_large_normal.gif","created_at":"Tue, 31 Mar 2009 22:16:38 +0000"},{"text":"RT: LOL! RT @wycats:How to survive monster attacks. Some tips from your friends at EngineYard http:\/\/twitpic... http:\/\/tinyurl.com\/cgs2hj","to_user_id":null,"from_user":"howtotweets","id":1427228937,"from_user_id":3437258,"iso_language_code":"en","source":"<a href="http:\/\/twitterfeed.com">twitterfeed<\/a>","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/81039760\/images_normal.jpg","created_at":"Tue, 31 Mar 2009 21:54:32 +0000"},{"text":"LOL! RT @wycats:How to survive monster attacks. Some tips from your friends at EngineYard http:\/\/twitpic.com\/2nl7x","to_user_id":null,"from_user":"tsykoduk","id":1427225099,"from_user_id":71236,"iso_language_code":"en","source":"<a href="http:\/\/www.nambu.com">Nambu<\/a>","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/63278451\/Photo_33_normal.jpg","created_at":"Tue, 31 Mar 2009 21:53:52 +0000"},{"text":"RT @wycats: How to survive monster attacks. Some tips from your friends at EngineYard http:\/\/twitpic.com\/2nl7x","to_user_id":null,"from_user":"bratta","id":1427177698,"from_user_id":8376,"iso_language_code":"en","source":"<a href="http:\/\/thecosmicmachine.com\/eventbox\/">EventBox<\/a>","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/80333638\/photo_normal.jpg","created_at":"Tue, 31 Mar 2009 21:45:46 +0000"},{"text":"additional infos on the engineyard outage: http:\/\/tinyurl.com\/cbhbkn","to_user_id":null,"from_user":"aentos","id":1427149457,"from_user_id":6459508,"iso_language_code":"en","source":"<a href="http:\/\/twitterfox.net\/">TwitterFox<\/a>","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/66789130\/aentos_a_normal.png","created_at":"Tue, 31 Mar 2009 21:40:47 +0000"},{"text":"http:\/\/twitpic.com\/2nl9z - Surviving monster attacks. A PSA from your friends @engineyard","to_user_id":null,"from_user":"carllerche","id":1427108503,"from_user_id":880629,"iso_language_code":"en","source":"<a href="http:\/\/twitpic.com\/">TwitPic<\/a>","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/56520194\/fry_coffee2_normal.jpg","created_at":"Tue, 31 Mar 2009 21:33:38 +0000"},{"text":"How to survive monster attacks. Some tips from your friends at EngineYard http:\/\/twitpic.com\/2nl7x","to_user_id":null,"from_user":"wycats","id":1427099726,"from_user_id":18414,"iso_language_code":"en","source":"<a href="http:\/\/twitterfon.net\/">TwitterFon<\/a>","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/51747258\/Yehuda_-_Looking_at_Sky_normal.jpg","created_at":"Tue, 31 Mar 2009 21:32:07 +0000"},{"text":"RT @engineyard: Our CEO posted an update on yesterday's outage: http:\/\/bit.ly\/yA4p5 Good job keeping people in the loop!","to_user_id":null,"from_user":"fatnutz","id":1426857591,"from_user_id":706358,"iso_language_code":"en","source":"<a href="http:\/\/www.tweetdeck.com\/">TweetDeck<\/a>","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/55573179\/snipe_normal.jpg","created_at":"Tue, 31 Mar 2009 20:50:21 +0000"},{"text":"loving our @entryway @engineyard solo instance, we built an integrity server in mins flat with @atmos lovely chef scripts: http:\/\/is.gd\/pVXw","to_user_id":null,"from_user":"gustin","id":1426653742,"from_user_id":3736601,"iso_language_code":"en","source":"<a href="http:\/\/83degrees.com\/to\/powertwitter">Power Twitter<\/a>","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/116498033\/face_normal.png","created_at":"Tue, 31 Mar 2009 20:16:36 +0000"},{"text":"RT: Our CEO posted an update on yesterday's outage: http:\/\/bit.ly\/yA4p5 (via @engineyard)","to_user_id":null,"from_user":"tmornini","id":1426483075,"from_user_id":168963,"iso_language_code":"en","source":"<a href="http:\/\/twitter.com\/">web<\/a>","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/49018042\/Tom_Icon_64x64_normal.png","created_at":"Tue, 31 Mar 2009 19:47:00 +0000"},{"text":"#engineyard #github very impressive - both the reason and the response - I must have missed the blog sorry","to_user_id":null,"from_user":"rickwindham","id":1426328592,"from_user_id":1819414,"iso_language_code":"en","source":"<a href="http:\/\/www.tweetdeck.com\/">TweetDeck<\/a>","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/73617189\/me_new_normal.jpg","created_at":"Tue, 31 Mar 2009 19:16:30 +0000"}],"since_id":1386843259,"max_id":1429979943,"refresh_url":"?since_id=1429979943&q=engineyard","results_per_page":15,"next_page":"?page=2&max_id=1429979943&since_id=1386843259&q=engineyard","warning":"adjusted since_id, it was older than allowed","completed_in":0.037275,"page":1,"query":"engineyard"}