CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Wed, 27 Aug 2025 14:17:28 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20080920011102
location: https://web.archive.org/web/20080920011102/https://github.com/rubyist/aasm/tree/master
server-timing: captures_list;dur=0.812191, exclusion.robots;dur=0.037442, exclusion.robots.policy;dur=0.022368, esindex;dur=0.020445, cdx.remote;dur=29.464684, LoadShardBlock;dur=579.841247, PetaboxLoader3.datanode;dur=191.810756, PetaboxLoader3.resolve;dur=227.440516
x-app-server: wwwb-app202
x-ts: 302
x-tr: 668
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: wb-p-SERVER=wwwb-app202; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Wed, 27 Aug 2025 14:17:31 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.26
x-archive-orig-date: Sat, 20 Sep 2008 01:11:02 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 0.77822
x-archive-orig-etag: "40fb9d0f1c54b296bfc9668df9810113"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 18751
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sat, 20 Sep 2008 01:11:02 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sun, 02 Mar 2008 15:01:49 GMT", ; rel="prev memento"; datetime="Sat, 06 Sep 2008 14:38:47 GMT", ; rel="memento"; datetime="Sat, 20 Sep 2008 01:11:02 GMT", ; rel="next memento"; datetime="Sun, 26 Oct 2008 09:30:10 GMT", ; rel="last memento"; datetime="Fri, 04 Jul 2025 02:00:04 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_5_20080919192256_crawl109-c/52_5_20080920010400_crawl103.arc.gz
server-timing: captures_list;dur=0.860491, exclusion.robots;dur=0.049049, exclusion.robots.policy;dur=0.027982, esindex;dur=0.019496, cdx.remote;dur=55.207570, LoadShardBlock;dur=1337.011352, PetaboxLoader3.datanode;dur=215.924391, PetaboxLoader3.resolve;dur=1632.100219, load_resource;dur=760.546543
x-app-server: wwwb-app202
x-ts: 200
x-tr: 2222
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
rubyist's aasm at master — GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (

This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (

Run the following if you haven't already:
gem sources -a https://gems.github.com
Install the gem(s):
sudo gem install rubyist-aasm
Description: | AASM - State machines for Ruby classes |
Homepage: | https://rubyi.st/aasm |
Clone URL: |
git://github.com/rubyist/aasm.git
Give this clone URL to anyone.
git clone git://github.com/rubyist/aasm.git
|
Search Repo: |
aasm /
name | age | message | |
---|---|---|---|
![]() |
.gitignore | Wed Jul 09 16:42:04 -0700 2008 | Fixing version number in README.rdoc. [eric] |
![]() |
CHANGELOG | Mon Jun 23 06:02:21 -0700 2008 | update changelog [rubyist] |
![]() |
MIT-LICENSE | Thu Feb 21 09:54:42 -0800 2008 | Add .aasm_states method to get a list of all st... [rubyist] |
![]() |
README.rdoc | Wed Jul 09 16:42:04 -0700 2008 | Fixing version number in README.rdoc. [eric] |
![]() |
Rakefile | Thu May 29 13:27:44 -0700 2008 | That doesn't work [rubyist] |
![]() |
TODO | Sat May 31 15:08:12 -0700 2008 | Support enter and exit actions on states [rubyist] |
![]() |
aasm.gemspec | Tue Jul 22 05:12:11 -0700 2008 | Sync up version numbers - bumping minor rev so ... [rubyist] |
![]() |
aasm.rb | Mon Jan 07 11:11:38 -0800 2008 | Import into git [rubyist] |
![]() |
doc/ | Thu Feb 21 08:41:56 -0800 2008 | Prepare rakefile and rake tasks for gem packagi... [rubyist] |
![]() |
lib/ | Wed Aug 13 14:56:43 -0700 2008 | InvalidTransition should inherit from RuntimErr... [rubyist] |
![]() |
spec/ | Wed Aug 13 14:56:16 -0700 2008 | This spec wasn't really working right. [rubyist] |
README.rdoc
AASM - Ruby state machines
This package contains AASM, a library for adding finite state machines to Ruby classes.
AASM started as the acts_as_state_machine plugin but has evolved into a more generic library that no longer targets only ActiveRecord models.
AASM has the following features:
- States
- Machines
- Events
- Transitions
Download
The latest AASM can currently be pulled from the git repository on github.
- https://github.com/rubyist/aasm/tree/master
A release and a gem are forthcoming.
Installation
From GitHub hosted gems
% sudo gem sources -a https://gems.github.com # (you only need to do this once) % sudo gem install rubyist-aasm
Building your own gems
% rake gem % sudo gem install pkg/aasm-2.0.1.gem
Simple Example
Here’s a quick example highlighting some of the features.
class Conversation include AASM aasm_initial_state :new aasm_state :new aasm_state :read aasm_state :closed aasm_event :view do transitions :to => :read, :from => [:new] end aasm_event :close do transitions :to => :closed, :from => [:read, :new] end end
Other Stuff
Author:Scott Barron <scott at elitists dot net> License:Copyright 2006, 2007, 2008 by Scott Barron. Released under an MIT-style license. See the LICENSE file included in the distribution. Bugs:https://rubyist.lighthouseapp.com/projects/13207-aasm/ GitHub:https://github.com/rubyist/aasm/tree/masterWarranty
This software is provided "as is" and without any express or implied warranties, including, without limitation, the implied warranties of merchantibility and fitness for a particular purpose.
This feature is coming soon. Sit tight!