statemachine 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,5 +1,10 @@
1
1
  = StateMachine Changelog
2
2
 
3
+ == Version 0.0.2
4
+
5
+ More conventional file structure
6
+ * nothing much to report in terms of changes.
7
+
3
8
  == Version 0.0.1
4
9
 
5
10
  0.0.0 didn't seem to work as a gem so maybe this one will.
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 = "0.0.1"
18
- PKG_TAG = "0_0_1"
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 = Spec::VERSION::DESCRIPTION
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 = ["Micah Martin"]
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 = "StateMachine #{PKG_VERSION}"
169
+ xf.release_name = "statemachine #{PKG_VERSION}"
169
170
  end
170
171
  end
data/lib/statemachine.rb CHANGED
@@ -1 +1,2 @@
1
- require File.dirname(__FILE__) + '/state_machine'
1
+ require 'statemachine/state_machine'
2
+ require 'statemachine/version'
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/proc_calling'
1
+ require 'statemachine/proc_calling'
2
2
 
3
3
  module StateMachine
4
4
 
@@ -1,7 +1,7 @@
1
- require File.dirname(__FILE__) + '/state'
2
- require File.dirname(__FILE__) + '/super_state'
3
- require File.dirname(__FILE__) + '/transition'
4
- require File.dirname(__FILE__) + '/proc_calling'
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
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/proc_calling'
1
+ require 'statemachine/proc_calling'
2
2
 
3
3
  module StateMachine
4
4
 
@@ -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
@@ -1,4 +1,5 @@
1
- require File.dirname(__FILE__) + '/../lib/state_machine'
1
+ $:.unshift('lib')
2
+ require 'statemachine'
2
3
 
3
4
  def check_transition(transition, origin_id, destination_id, event, action)
4
5
  transition.should_not_be nil
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../lib/state_machine'
1
+ require File.dirname(__FILE__) + '/spec_helper'
2
2
 
3
3
  context "Transition Calculating Exits and Entries" do
4
4
 
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.1
6
+ version: 0.0.2
7
7
  date: 2006-10-25 00:00:00 -05:00
8
- summary: RSpec-0.6.4 - BDD for Ruby http://rspec.rubyforge.org/
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
- - - Micah Martin
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/super_state.rb
38
- - lib/transition.rb
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