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.
- data/.gitignore +2 -0
- data/README.rdoc +188 -6
- data/Rakefile +0 -58
- data/examples/rails_2_3_8_button_example/README +243 -0
- data/examples/rails_2_3_8_button_example/Rakefile +10 -0
- data/examples/rails_2_3_8_button_example/app/controllers/application_controller.rb +2 -0
- data/examples/rails_2_3_8_button_example/app/controllers/buttons_controller.rb +18 -0
- data/examples/rails_2_3_8_button_example/app/helpers/application_helper.rb +3 -0
- data/examples/rails_2_3_8_button_example/app/models/button.rb +4 -0
- data/examples/rails_2_3_8_button_example/app/models/button/off.rb +7 -0
- data/examples/rails_2_3_8_button_example/app/models/button/on.rb +8 -0
- data/examples/rails_2_3_8_button_example/app/views/buttons/show.html.erb +9 -0
- data/examples/rails_2_3_8_button_example/app/views/layouts/application.html.erb +12 -0
- data/examples/rails_2_3_8_button_example/config/boot.rb +110 -0
- data/examples/rails_2_3_8_button_example/config/database.yml +22 -0
- data/examples/rails_2_3_8_button_example/config/environment.rb +41 -0
- data/examples/rails_2_3_8_button_example/config/environments/development.rb +17 -0
- data/examples/rails_2_3_8_button_example/config/environments/production.rb +28 -0
- data/examples/rails_2_3_8_button_example/config/environments/test.rb +28 -0
- data/examples/rails_2_3_8_button_example/config/initializers/backtrace_silencers.rb +7 -0
- data/examples/rails_2_3_8_button_example/config/initializers/cookie_verification_secret.rb +7 -0
- data/examples/rails_2_3_8_button_example/config/initializers/inflections.rb +10 -0
- data/examples/rails_2_3_8_button_example/config/initializers/mime_types.rb +5 -0
- data/examples/rails_2_3_8_button_example/config/initializers/new_rails_defaults.rb +21 -0
- data/examples/rails_2_3_8_button_example/config/initializers/session_store.rb +15 -0
- data/examples/rails_2_3_8_button_example/config/locales/en.yml +5 -0
- data/examples/rails_2_3_8_button_example/config/routes.rb +4 -0
- data/examples/rails_2_3_8_button_example/db/development.sqlite3 +0 -0
- data/examples/rails_2_3_8_button_example/db/migrate/20101009073737_create_buttons.rb +13 -0
- data/examples/rails_2_3_8_button_example/db/schema.rb +20 -0
- data/examples/rails_2_3_8_button_example/db/seeds.rb +7 -0
- data/examples/rails_2_3_8_button_example/db/test.sqlite3 +0 -0
- data/examples/rails_2_3_8_button_example/doc/README_FOR_APP +2 -0
- data/examples/rails_2_3_8_button_example/public/images/rails.png +0 -0
- data/examples/rails_2_3_8_button_example/public/javascripts/application.js +2 -0
- data/examples/rails_2_3_8_button_example/public/javascripts/controls.js +963 -0
- data/examples/rails_2_3_8_button_example/public/javascripts/dragdrop.js +973 -0
- data/examples/rails_2_3_8_button_example/public/javascripts/effects.js +1128 -0
- data/examples/rails_2_3_8_button_example/public/javascripts/prototype.js +4320 -0
- data/examples/rails_2_3_8_button_example/public/javascripts/rails.js +175 -0
- data/examples/rails_2_3_8_button_example/script/about +4 -0
- data/examples/rails_2_3_8_button_example/script/console +3 -0
- data/examples/rails_2_3_8_button_example/script/dbconsole +3 -0
- data/examples/rails_2_3_8_button_example/script/destroy +3 -0
- data/examples/rails_2_3_8_button_example/script/generate +3 -0
- data/examples/rails_2_3_8_button_example/script/performance/benchmarker +3 -0
- data/examples/rails_2_3_8_button_example/script/performance/profiler +3 -0
- data/examples/rails_2_3_8_button_example/script/plugin +3 -0
- data/examples/rails_2_3_8_button_example/script/runner +3 -0
- data/examples/rails_2_3_8_button_example/script/server +3 -0
- data/examples/rails_3_button_example/Gemfile +31 -0
- data/examples/rails_3_button_example/Gemfile.lock +75 -0
- data/examples/rails_3_button_example/Rakefile +7 -0
- data/examples/rails_3_button_example/app/controllers/application_controller.rb +3 -0
- data/examples/rails_3_button_example/app/controllers/buttons_controller.rb +13 -0
- data/examples/rails_3_button_example/app/models/button.rb +4 -0
- data/examples/rails_3_button_example/app/models/button/off.rb +7 -0
- data/examples/rails_3_button_example/app/models/button/on.rb +8 -0
- data/examples/rails_3_button_example/app/views/buttons/show.html.erb +9 -0
- data/examples/rails_3_button_example/app/views/layouts/application.html.erb +13 -0
- data/examples/rails_3_button_example/config.ru +4 -0
- data/examples/rails_3_button_example/config/application.rb +42 -0
- data/examples/rails_3_button_example/config/boot.rb +13 -0
- data/examples/rails_3_button_example/config/database.yml +22 -0
- data/examples/rails_3_button_example/config/environment.rb +5 -0
- data/examples/rails_3_button_example/config/environments/development.rb +26 -0
- data/examples/rails_3_button_example/config/initializers/backtrace_silencers.rb +7 -0
- data/examples/rails_3_button_example/config/initializers/inflections.rb +10 -0
- data/examples/rails_3_button_example/config/initializers/mime_types.rb +5 -0
- data/examples/rails_3_button_example/config/initializers/secret_token.rb +7 -0
- data/examples/rails_3_button_example/config/initializers/session_store.rb +8 -0
- data/examples/rails_3_button_example/config/locales/en.yml +5 -0
- data/examples/rails_3_button_example/config/routes.rb +5 -0
- data/examples/rails_3_button_example/db/development.sqlite3 +0 -0
- data/examples/rails_3_button_example/db/migrate/20101009052900_create_buttons.rb +13 -0
- data/examples/rails_3_button_example/db/schema.rb +21 -0
- data/examples/rails_3_button_example/db/test.sqlite3 +0 -0
- data/examples/rails_3_button_example/public/javascripts/application.js +2 -0
- data/examples/rails_3_button_example/public/javascripts/prototype.js +6001 -0
- data/examples/rails_3_button_example/public/javascripts/rails.js +175 -0
- data/examples/rails_3_button_example/public/stylesheets/scaffold.css +56 -0
- data/examples/rails_3_button_example/script/rails +6 -0
- data/examples/semaphore.rb +58 -0
- data/lib/state_pattern.rb +3 -1
- data/lib/state_pattern/active_record.rb +44 -0
- data/rails/init.rb +3 -0
- data/test/state_pattern/active_record/active_record_test.rb +71 -0
- data/test/state_pattern/active_record/schema.rb +7 -0
- data/test/state_pattern/active_record/test_helper.rb +25 -0
- data/test/test_helper.rb +1 -0
- metadata +204 -24
- data/VERSION +0 -1
- 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.