state_machine 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/README +9 -5
- data/Rakefile +5 -4
- data/test/test_helper.rb +1 -1
- metadata +20 -19
data/CHANGELOG
CHANGED
data/README
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
== state_machine
|
2
2
|
|
3
|
-
+state_machine+ support for creating state machines for attributes within a model.
|
3
|
+
+state_machine+ adds support for creating state machines for attributes within a model.
|
4
4
|
|
5
5
|
== Resources
|
6
6
|
|
@@ -83,15 +83,19 @@ This is a great tool for "simulating, visualizing and transforming finite state
|
|
83
83
|
automata and Turing Machines". This tool can help in the creation of states and
|
84
84
|
events for your models. It is cross-platform, written in Java.
|
85
85
|
|
86
|
-
== Dependencies
|
87
|
-
|
88
|
-
None.
|
89
|
-
|
90
86
|
== Testing
|
91
87
|
|
92
88
|
Before you can run any tests, the following gem must be installed:
|
93
89
|
* plugin_test_helper[http://wiki.pluginaweek.org/Plugin_test_helper]
|
94
90
|
|
91
|
+
To run against a specific version of Rails:
|
92
|
+
|
93
|
+
rake test RAILS_FRAMEWORK_ROOT=/path/to/rails
|
94
|
+
|
95
|
+
== Dependencies
|
96
|
+
|
97
|
+
* Rails 2.1 or later
|
98
|
+
|
95
99
|
== References
|
96
100
|
|
97
101
|
* Scott Barron - acts_as_state_machine[http://elitists.textdriven.com/svn/plugins/acts_as_state_machine]
|
data/Rakefile
CHANGED
@@ -4,7 +4,7 @@ require 'rake/gempackagetask'
|
|
4
4
|
require 'rake/contrib/sshpublisher'
|
5
5
|
|
6
6
|
PKG_NAME = 'state_machine'
|
7
|
-
PKG_VERSION = '0.1.
|
7
|
+
PKG_VERSION = '0.1.1'
|
8
8
|
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
|
9
9
|
RUBY_FORGE_PROJECT = 'pluginaweek'
|
10
10
|
|
@@ -22,6 +22,7 @@ desc 'Generate documentation for the state_machine plugin.'
|
|
22
22
|
Rake::RDocTask.new(:rdoc) do |rdoc|
|
23
23
|
rdoc.rdoc_dir = 'rdoc'
|
24
24
|
rdoc.title = 'StateMachine'
|
25
|
+
rdoc.template = '../rdoc_template.rb'
|
25
26
|
rdoc.options << '--line-numbers' << '--inline-source'
|
26
27
|
rdoc.rdoc_files.include('README')
|
27
28
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
@@ -33,7 +34,7 @@ spec = Gem::Specification.new do |s|
|
|
33
34
|
s.platform = Gem::Platform::RUBY
|
34
35
|
s.summary = 'Adds support for creating state machines for attributes within a model'
|
35
36
|
|
36
|
-
s.files = FileList['{lib,test}/**/*'].to_a + %w(CHANGELOG init.rb MIT-LICENSE Rakefile README)
|
37
|
+
s.files = FileList['{lib,test}/**/*'].to_a - FileList['test/app_root/log/*'].to_a + %w(CHANGELOG init.rb MIT-LICENSE Rakefile README)
|
37
38
|
s.require_path = 'lib'
|
38
39
|
s.autorequire = 'state_machine'
|
39
40
|
s.has_rdoc = true
|
@@ -61,13 +62,13 @@ task :pdoc => [:rdoc] do
|
|
61
62
|
end
|
62
63
|
|
63
64
|
desc 'Publish the API docs and gem'
|
64
|
-
task :publish => [:pdoc, :release]
|
65
|
+
task :publish => [:pgem, :pdoc, :release]
|
65
66
|
|
66
67
|
desc 'Publish the release files to RubyForge.'
|
67
68
|
task :release => [:gem, :package] do
|
68
69
|
require 'rubyforge'
|
69
70
|
|
70
|
-
ruby_forge = RubyForge.new
|
71
|
+
ruby_forge = RubyForge.new.configure
|
71
72
|
ruby_forge.login
|
72
73
|
|
73
74
|
%w( gem tgz zip ).each do |ext|
|
data/test/test_helper.rb
CHANGED
@@ -4,7 +4,7 @@ require 'rubygems'
|
|
4
4
|
require 'plugin_test_helper'
|
5
5
|
|
6
6
|
# Run the migrations
|
7
|
-
ActiveRecord::Migrator.migrate("#{
|
7
|
+
ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate")
|
8
8
|
|
9
9
|
# Mixin the factory helper
|
10
10
|
require File.expand_path("#{File.dirname(__FILE__)}/factory")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: state_machine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Pfeifer
|
@@ -9,7 +9,7 @@ autorequire: state_machine
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-06-22 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -22,35 +22,36 @@ extensions: []
|
|
22
22
|
extra_rdoc_files: []
|
23
23
|
|
24
24
|
files:
|
25
|
-
- lib/state_machine.rb
|
26
25
|
- lib/state_machine
|
27
|
-
- lib/state_machine/machine.rb
|
28
26
|
- lib/state_machine/event.rb
|
29
27
|
- lib/state_machine/transition.rb
|
30
|
-
-
|
28
|
+
- lib/state_machine/machine.rb
|
29
|
+
- lib/state_machine.rb
|
31
30
|
- test/app_root
|
32
|
-
- test/app_root/db
|
33
|
-
- test/app_root/db/migrate
|
34
|
-
- test/app_root/db/migrate/004_create_vehicles.rb
|
35
|
-
- test/app_root/db/migrate/003_create_highways.rb
|
36
|
-
- test/app_root/db/migrate/002_create_auto_shops.rb
|
37
|
-
- test/app_root/db/migrate/001_create_switches.rb
|
38
31
|
- test/app_root/app
|
39
32
|
- test/app_root/app/models
|
40
|
-
- test/app_root/app/models/
|
33
|
+
- test/app_root/app/models/highway.rb
|
41
34
|
- test/app_root/app/models/switch.rb
|
42
|
-
- test/app_root/app/models/vehicle.rb
|
43
35
|
- test/app_root/app/models/motorcycle.rb
|
44
36
|
- test/app_root/app/models/toggle_switch.rb
|
37
|
+
- test/app_root/app/models/vehicle.rb
|
45
38
|
- test/app_root/app/models/car.rb
|
46
|
-
- test/app_root/app/models/
|
39
|
+
- test/app_root/app/models/auto_shop.rb
|
40
|
+
- test/app_root/db
|
41
|
+
- test/app_root/db/migrate
|
42
|
+
- test/app_root/db/migrate/002_create_auto_shops.rb
|
43
|
+
- test/app_root/db/migrate/003_create_highways.rb
|
44
|
+
- test/app_root/db/migrate/004_create_vehicles.rb
|
45
|
+
- test/app_root/db/migrate/001_create_switches.rb
|
46
|
+
- test/app_root/log
|
47
47
|
- test/functional
|
48
48
|
- test/functional/state_machine_test.rb
|
49
49
|
- test/test_helper.rb
|
50
|
+
- test/factory.rb
|
50
51
|
- test/unit
|
51
|
-
- test/unit/event_test.rb
|
52
|
-
- test/unit/machine_test.rb
|
53
52
|
- test/unit/transition_test.rb
|
53
|
+
- test/unit/machine_test.rb
|
54
|
+
- test/unit/event_test.rb
|
54
55
|
- test/unit/state_machine_test.rb
|
55
56
|
- CHANGELOG
|
56
57
|
- init.rb
|
@@ -79,13 +80,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
80
|
requirements: []
|
80
81
|
|
81
82
|
rubyforge_project:
|
82
|
-
rubygems_version: 1.1.
|
83
|
+
rubygems_version: 1.1.1
|
83
84
|
signing_key:
|
84
85
|
specification_version: 2
|
85
86
|
summary: Adds support for creating state machines for attributes within a model
|
86
87
|
test_files:
|
87
88
|
- test/functional/state_machine_test.rb
|
88
|
-
- test/unit/event_test.rb
|
89
|
-
- test/unit/machine_test.rb
|
90
89
|
- test/unit/transition_test.rb
|
90
|
+
- test/unit/machine_test.rb
|
91
|
+
- test/unit/event_test.rb
|
91
92
|
- test/unit/state_machine_test.rb
|