statemachine 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +5 -0
- data/LICENSE +15 -0
- data/Rakefile +7 -6
- data/lib/statemachine.rb +2 -1
- data/lib/{proc_calling.rb → statemachine/proc_calling.rb} +0 -0
- data/lib/{state.rb → statemachine/state.rb} +1 -1
- data/lib/{state_machine.rb → statemachine/state_machine.rb} +4 -4
- data/lib/{super_state.rb → statemachine/super_state.rb} +0 -0
- data/lib/{transition.rb → statemachine/transition.rb} +1 -1
- data/lib/statemachine/version.rb +17 -0
- data/spec/spec_helper.rb +2 -1
- data/spec/transition_spec.rb +1 -1
- metadata +10 -8
data/CHANGES
CHANGED
data/LICENSE
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
Copyright (C) 2006 Micah Martin
|
2
|
+
|
3
|
+
This library is free software; you can redistribute it and/or
|
4
|
+
modify it under the terms of the GNU Lesser General Public
|
5
|
+
License as published by the Free Software Foundation; either
|
6
|
+
version 2.1 of the License, or (at your option) any later version.
|
7
|
+
|
8
|
+
This library is distributed in the hope that it will be useful,
|
9
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
11
|
+
Lesser General Public License for more details.
|
12
|
+
|
13
|
+
You should have received a copy of the GNU Lesser General Public
|
14
|
+
License along with this library; if not, write to the Free Software
|
15
|
+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
data/Rakefile
CHANGED
@@ -5,6 +5,7 @@ require 'rake/contrib/rubyforgepublisher'
|
|
5
5
|
require 'rake/clean'
|
6
6
|
require 'rake/rdoctask'
|
7
7
|
require 'spec/rake/spectask'
|
8
|
+
require 'statemachine'
|
8
9
|
|
9
10
|
# Some of the tasks are in separate files since they are also part of the website documentation
|
10
11
|
"load File.dirname(__FILE__) + '/tasks/examples.rake'
|
@@ -14,8 +15,8 @@ load File.dirname(__FILE__) + '/tasks/failing_examples_with_html.rake'
|
|
14
15
|
load File.dirname(__FILE__) + '/tasks/verify_rcov.rake'"
|
15
16
|
|
16
17
|
PKG_NAME = "statemachine"
|
17
|
-
PKG_VERSION =
|
18
|
-
PKG_TAG =
|
18
|
+
PKG_VERSION = StateMachine::VERSION::STRING
|
19
|
+
PKG_TAG = StateMachine::VERSION::TAG
|
19
20
|
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
|
20
21
|
PKG_FILES = FileList[
|
21
22
|
'[A-Z]*',
|
@@ -29,7 +30,7 @@ task :default => :spec
|
|
29
30
|
desc "Run all specs"
|
30
31
|
Spec::Rake::SpecTask.new do |t|
|
31
32
|
t.spec_files = FileList['spec/**/*_spec.rb']
|
32
|
-
t.spec_opts = ['--diff','--color']
|
33
|
+
# t.spec_opts = ['--diff','--color']
|
33
34
|
# t.rcov = true
|
34
35
|
# t.rcov_dir = 'doc/output/coverage'
|
35
36
|
# t.rcov_opts = ['--exclude', 'spec\/spec,bin\/spec']"
|
@@ -57,7 +58,7 @@ end
|
|
57
58
|
spec = Gem::Specification.new do |s|
|
58
59
|
s.name = PKG_NAME
|
59
60
|
s.version = PKG_VERSION
|
60
|
-
s.summary =
|
61
|
+
s.summary = StateMachine::VERSION::DESCRIPTION
|
61
62
|
s.description = <<-EOF
|
62
63
|
StateMachine is a ruby library for building Finite State Machines (FSM), also known as Finite State Automata (FSA).
|
63
64
|
EOF
|
@@ -75,7 +76,7 @@ spec = Gem::Specification.new do |s|
|
|
75
76
|
# s.bindir = "bin"
|
76
77
|
# s.executables = ["spec"]
|
77
78
|
# s.default_executable = "spec"
|
78
|
-
s.author =
|
79
|
+
s.author = "Micah Martin"
|
79
80
|
s.email = "statemachine-devel@rubyforge.org"
|
80
81
|
s.homepage = "http://statemachine.rubyforge.org"
|
81
82
|
s.rubyforge_project = "statemachine"
|
@@ -165,6 +166,6 @@ task :publish_packages => [:verify_user, :verify_password, :package] do
|
|
165
166
|
xf.user_name = ENV['RUBYFORGE_USER']
|
166
167
|
xf.password = ENV['RUBYFORGE_PASSWORD']
|
167
168
|
xf.files = release_files.to_a
|
168
|
-
xf.release_name = "
|
169
|
+
xf.release_name = "statemachine #{PKG_VERSION}"
|
169
170
|
end
|
170
171
|
end
|
data/lib/statemachine.rb
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
require
|
1
|
+
require 'statemachine/state_machine'
|
2
|
+
require 'statemachine/version'
|
File without changes
|
@@ -1,7 +1,7 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
require
|
4
|
-
require
|
1
|
+
require 'statemachine/state'
|
2
|
+
require 'statemachine/super_state'
|
3
|
+
require 'statemachine/transition'
|
4
|
+
require 'statemachine/proc_calling'
|
5
5
|
|
6
6
|
module StateMachine
|
7
7
|
|
File without changes
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module StateMachine
|
2
|
+
module VERSION
|
3
|
+
unless defined? MAJOR
|
4
|
+
MAJOR = 0
|
5
|
+
MINOR = 0
|
6
|
+
TINY = 2
|
7
|
+
|
8
|
+
STRING = [MAJOR, MINOR, TINY].join('.')
|
9
|
+
TAG = "REL_" + [MAJOR, MINOR, TINY].join('_')
|
10
|
+
|
11
|
+
NAME = "StateMachine"
|
12
|
+
URL = "http://statemachine.rubyforge.org/"
|
13
|
+
|
14
|
+
DESCRIPTION = "#{NAME}-#{STRING} - State Machine Library for Ruby\n#{URL}"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/spec/spec_helper.rb
CHANGED
data/spec/transition_spec.rb
CHANGED
metadata
CHANGED
@@ -3,9 +3,9 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: statemachine
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
6
|
+
version: 0.0.2
|
7
7
|
date: 2006-10-25 00:00:00 -05:00
|
8
|
-
summary:
|
8
|
+
summary: StateMachine-0.0.2 - State Machine Library for Ruby http://statemachine.rubyforge.org/
|
9
9
|
require_paths:
|
10
10
|
- lib
|
11
11
|
email: statemachine-devel@rubyforge.org
|
@@ -26,16 +26,18 @@ platform: ruby
|
|
26
26
|
signing_key:
|
27
27
|
cert_chain:
|
28
28
|
authors:
|
29
|
-
-
|
29
|
+
- Micah Martin
|
30
30
|
files:
|
31
31
|
- CHANGES
|
32
|
+
- LICENSE
|
32
33
|
- Rakefile
|
33
|
-
- lib/proc_calling.rb
|
34
|
-
- lib/state.rb
|
35
|
-
- lib/state_machine.rb
|
36
34
|
- lib/statemachine.rb
|
37
|
-
- lib/
|
38
|
-
- lib/
|
35
|
+
- lib/statemachine/proc_calling.rb
|
36
|
+
- lib/statemachine/state.rb
|
37
|
+
- lib/statemachine/state_machine.rb
|
38
|
+
- lib/statemachine/super_state.rb
|
39
|
+
- lib/statemachine/transition.rb
|
40
|
+
- lib/statemachine/version.rb
|
39
41
|
- spec/sm_action_parameterization_spec.rb
|
40
42
|
- spec/sm_entry_exit_actions_spec.rb
|
41
43
|
- spec/sm_odds_n_ends_spec.rb
|