json_builder 2.0.6 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. data/.gitignore +4 -0
  2. data/Gemfile +13 -0
  3. data/Gemfile.lock +122 -0
  4. data/README.md +221 -59
  5. data/Rakefile +26 -0
  6. data/lib/json_builder.rb +1 -1
  7. data/lib/json_builder/compiler.rb +63 -0
  8. data/lib/json_builder/elements.rb +17 -0
  9. data/lib/json_builder/member.rb +24 -0
  10. data/lib/json_builder/template.rb +40 -14
  11. data/lib/json_builder/value.rb +30 -0
  12. data/lib/json_builder/version.rb +1 -1
  13. data/spec/benchmarks/builder.rb +60 -0
  14. data/spec/dummy/Rakefile +7 -0
  15. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  16. data/spec/dummy/app/controllers/users_controller.rb +5 -0
  17. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  18. data/spec/dummy/app/helpers/users_helper.rb +2 -0
  19. data/spec/dummy/app/models/user.rb +9 -0
  20. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  21. data/spec/dummy/app/views/users/index.json_builder +3 -0
  22. data/spec/dummy/config.ru +4 -0
  23. data/spec/dummy/config/application.rb +45 -0
  24. data/spec/dummy/config/boot.rb +10 -0
  25. data/spec/dummy/config/database.yml +22 -0
  26. data/spec/dummy/config/environment.rb +5 -0
  27. data/spec/dummy/config/environments/development.rb +26 -0
  28. data/spec/dummy/config/environments/production.rb +49 -0
  29. data/spec/dummy/config/environments/test.rb +35 -0
  30. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  31. data/spec/dummy/config/initializers/inflections.rb +10 -0
  32. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  33. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  34. data/spec/dummy/config/initializers/session_store.rb +8 -0
  35. data/spec/dummy/config/locales/en.yml +5 -0
  36. data/spec/dummy/config/routes.rb +5 -0
  37. data/spec/dummy/db/development.sqlite3 +0 -0
  38. data/spec/dummy/db/migrate/20111127061428_create_users.rb +14 -0
  39. data/spec/dummy/db/schema.rb +23 -0
  40. data/spec/dummy/db/test.sqlite3 +0 -0
  41. data/spec/dummy/public/404.html +26 -0
  42. data/spec/dummy/public/422.html +26 -0
  43. data/spec/dummy/public/500.html +26 -0
  44. data/spec/dummy/public/favicon.ico +0 -0
  45. data/spec/dummy/public/javascripts/application.js +2 -0
  46. data/spec/dummy/public/javascripts/controls.js +965 -0
  47. data/spec/dummy/public/javascripts/dragdrop.js +974 -0
  48. data/spec/dummy/public/javascripts/effects.js +1123 -0
  49. data/spec/dummy/public/javascripts/prototype.js +6001 -0
  50. data/spec/dummy/public/javascripts/rails.js +191 -0
  51. data/spec/dummy/public/stylesheets/.gitkeep +0 -0
  52. data/spec/dummy/script/rails +6 -0
  53. data/spec/dummy/spec/controllers/users_controller_spec.rb +14 -0
  54. data/spec/integration/navigation_spec.rb +9 -0
  55. data/spec/json_builder_spec.rb +7 -0
  56. data/spec/spec_helper.rb +34 -0
  57. data/spec/support/json_builder.rb +7 -0
  58. data/spec/unit/json_builder_spec.rb +76 -0
  59. metadata +158 -93
  60. data/lib/json_builder/generator.rb +0 -127
  61. data/test/benchmarks/speed.rb +0 -85
  62. data/test/fixtures/simple.rb +0 -27
  63. data/test/test_helper.rb +0 -4

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the gem file manually.