state_pattern 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. data/.gitignore +2 -0
  2. data/README.rdoc +188 -6
  3. data/Rakefile +0 -58
  4. data/examples/rails_2_3_8_button_example/README +243 -0
  5. data/examples/rails_2_3_8_button_example/Rakefile +10 -0
  6. data/examples/rails_2_3_8_button_example/app/controllers/application_controller.rb +2 -0
  7. data/examples/rails_2_3_8_button_example/app/controllers/buttons_controller.rb +18 -0
  8. data/examples/rails_2_3_8_button_example/app/helpers/application_helper.rb +3 -0
  9. data/examples/rails_2_3_8_button_example/app/models/button.rb +4 -0
  10. data/examples/rails_2_3_8_button_example/app/models/button/off.rb +7 -0
  11. data/examples/rails_2_3_8_button_example/app/models/button/on.rb +8 -0
  12. data/examples/rails_2_3_8_button_example/app/views/buttons/show.html.erb +9 -0
  13. data/examples/rails_2_3_8_button_example/app/views/layouts/application.html.erb +12 -0
  14. data/examples/rails_2_3_8_button_example/config/boot.rb +110 -0
  15. data/examples/rails_2_3_8_button_example/config/database.yml +22 -0
  16. data/examples/rails_2_3_8_button_example/config/environment.rb +41 -0
  17. data/examples/rails_2_3_8_button_example/config/environments/development.rb +17 -0
  18. data/examples/rails_2_3_8_button_example/config/environments/production.rb +28 -0
  19. data/examples/rails_2_3_8_button_example/config/environments/test.rb +28 -0
  20. data/examples/rails_2_3_8_button_example/config/initializers/backtrace_silencers.rb +7 -0
  21. data/examples/rails_2_3_8_button_example/config/initializers/cookie_verification_secret.rb +7 -0
  22. data/examples/rails_2_3_8_button_example/config/initializers/inflections.rb +10 -0
  23. data/examples/rails_2_3_8_button_example/config/initializers/mime_types.rb +5 -0
  24. data/examples/rails_2_3_8_button_example/config/initializers/new_rails_defaults.rb +21 -0
  25. data/examples/rails_2_3_8_button_example/config/initializers/session_store.rb +15 -0
  26. data/examples/rails_2_3_8_button_example/config/locales/en.yml +5 -0
  27. data/examples/rails_2_3_8_button_example/config/routes.rb +4 -0
  28. data/examples/rails_2_3_8_button_example/db/development.sqlite3 +0 -0
  29. data/examples/rails_2_3_8_button_example/db/migrate/20101009073737_create_buttons.rb +13 -0
  30. data/examples/rails_2_3_8_button_example/db/schema.rb +20 -0
  31. data/examples/rails_2_3_8_button_example/db/seeds.rb +7 -0
  32. data/examples/rails_2_3_8_button_example/db/test.sqlite3 +0 -0
  33. data/examples/rails_2_3_8_button_example/doc/README_FOR_APP +2 -0
  34. data/examples/rails_2_3_8_button_example/public/images/rails.png +0 -0
  35. data/examples/rails_2_3_8_button_example/public/javascripts/application.js +2 -0
  36. data/examples/rails_2_3_8_button_example/public/javascripts/controls.js +963 -0
  37. data/examples/rails_2_3_8_button_example/public/javascripts/dragdrop.js +973 -0
  38. data/examples/rails_2_3_8_button_example/public/javascripts/effects.js +1128 -0
  39. data/examples/rails_2_3_8_button_example/public/javascripts/prototype.js +4320 -0
  40. data/examples/rails_2_3_8_button_example/public/javascripts/rails.js +175 -0
  41. data/examples/rails_2_3_8_button_example/script/about +4 -0
  42. data/examples/rails_2_3_8_button_example/script/console +3 -0
  43. data/examples/rails_2_3_8_button_example/script/dbconsole +3 -0
  44. data/examples/rails_2_3_8_button_example/script/destroy +3 -0
  45. data/examples/rails_2_3_8_button_example/script/generate +3 -0
  46. data/examples/rails_2_3_8_button_example/script/performance/benchmarker +3 -0
  47. data/examples/rails_2_3_8_button_example/script/performance/profiler +3 -0
  48. data/examples/rails_2_3_8_button_example/script/plugin +3 -0
  49. data/examples/rails_2_3_8_button_example/script/runner +3 -0
  50. data/examples/rails_2_3_8_button_example/script/server +3 -0
  51. data/examples/rails_3_button_example/Gemfile +31 -0
  52. data/examples/rails_3_button_example/Gemfile.lock +75 -0
  53. data/examples/rails_3_button_example/Rakefile +7 -0
  54. data/examples/rails_3_button_example/app/controllers/application_controller.rb +3 -0
  55. data/examples/rails_3_button_example/app/controllers/buttons_controller.rb +13 -0
  56. data/examples/rails_3_button_example/app/models/button.rb +4 -0
  57. data/examples/rails_3_button_example/app/models/button/off.rb +7 -0
  58. data/examples/rails_3_button_example/app/models/button/on.rb +8 -0
  59. data/examples/rails_3_button_example/app/views/buttons/show.html.erb +9 -0
  60. data/examples/rails_3_button_example/app/views/layouts/application.html.erb +13 -0
  61. data/examples/rails_3_button_example/config.ru +4 -0
  62. data/examples/rails_3_button_example/config/application.rb +42 -0
  63. data/examples/rails_3_button_example/config/boot.rb +13 -0
  64. data/examples/rails_3_button_example/config/database.yml +22 -0
  65. data/examples/rails_3_button_example/config/environment.rb +5 -0
  66. data/examples/rails_3_button_example/config/environments/development.rb +26 -0
  67. data/examples/rails_3_button_example/config/initializers/backtrace_silencers.rb +7 -0
  68. data/examples/rails_3_button_example/config/initializers/inflections.rb +10 -0
  69. data/examples/rails_3_button_example/config/initializers/mime_types.rb +5 -0
  70. data/examples/rails_3_button_example/config/initializers/secret_token.rb +7 -0
  71. data/examples/rails_3_button_example/config/initializers/session_store.rb +8 -0
  72. data/examples/rails_3_button_example/config/locales/en.yml +5 -0
  73. data/examples/rails_3_button_example/config/routes.rb +5 -0
  74. data/examples/rails_3_button_example/db/development.sqlite3 +0 -0
  75. data/examples/rails_3_button_example/db/migrate/20101009052900_create_buttons.rb +13 -0
  76. data/examples/rails_3_button_example/db/schema.rb +21 -0
  77. data/examples/rails_3_button_example/db/test.sqlite3 +0 -0
  78. data/examples/rails_3_button_example/public/javascripts/application.js +2 -0
  79. data/examples/rails_3_button_example/public/javascripts/prototype.js +6001 -0
  80. data/examples/rails_3_button_example/public/javascripts/rails.js +175 -0
  81. data/examples/rails_3_button_example/public/stylesheets/scaffold.css +56 -0
  82. data/examples/rails_3_button_example/script/rails +6 -0
  83. data/examples/semaphore.rb +58 -0
  84. data/lib/state_pattern.rb +3 -1
  85. data/lib/state_pattern/active_record.rb +44 -0
  86. data/rails/init.rb +3 -0
  87. data/test/state_pattern/active_record/active_record_test.rb +71 -0
  88. data/test/state_pattern/active_record/schema.rb +7 -0
  89. data/test/state_pattern/active_record/test_helper.rb +25 -0
  90. data/test/test_helper.rb +1 -0
  91. metadata +204 -24
  92. data/VERSION +0 -1
  93. data/state_pattern.gemspec +0 -59

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.