statemachine 2.0.0 → 2.0.1

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/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm use ruby-1.9.2-p290@statemachine
data/Rakefile CHANGED
@@ -34,27 +34,6 @@ rd = Rake::RDocTask.new do |rdoc|
34
34
  end
35
35
  task :rdoc
36
36
 
37
- # spec = Gem::Specification.new do |s|
38
- # s.name = PKG_NAME
39
- # s.version = PKG_VERSION
40
- # s.summary = Statemachine::VERSION::DESCRIPTION
41
- # s.description = "Statemachine is a ruby library for building Finite State Machines (FSM), also known as Finite State Automata (FSA)."
42
- # s.files = PKG_FILES.to_a
43
- # s.require_path = 'lib'
44
- # s.test_files = Dir.glob('spec/*_spec.rb')
45
- # s.require_path = 'lib'
46
- # s.autorequire = 'statemachine'
47
- # s.author = "Micah Martin"
48
- # s.email = "statemachine-devel@rubyforge.org"
49
- # s.homepage = "http://statemachine.rubyforge.org"
50
- # s.rubyforge_project = "statemachine"
51
- # end
52
- #
53
- # Rake::GemPackageTask.new(spec) do |pkg|
54
- # pkg.need_zip = true
55
- # pkg.need_tar = true
56
- # end
57
-
58
37
  def egrep(pattern)
59
38
  Dir['**/*.rb'].each do |fn|
60
39
  count = 0
@@ -11,6 +11,7 @@ module Statemachine
11
11
  @superstate = superstate
12
12
  @statemachine = state_machine
13
13
  @transitions = {}
14
+ @exit_action = @entry_action = nil
14
15
  end
15
16
 
16
17
  def add(transition)
@@ -45,6 +45,7 @@ module Statemachine
45
45
  def initialize(root = Superstate.new(:root, nil, self))
46
46
  @root = root
47
47
  @states = {}
48
+ @tracer = nil
48
49
  end
49
50
 
50
51
  # Returns the id of the startstate of the statemachine.
@@ -9,6 +9,7 @@ module Statemachine
9
9
  super(id, superstate, statemachine)
10
10
  @startstate = nil
11
11
  @history_id = nil
12
+ @default_history_id = nil
12
13
  end
13
14
 
14
15
  def concrete?
@@ -3,7 +3,7 @@ module Statemachine
3
3
  unless defined? MAJOR
4
4
  MAJOR = 2
5
5
  MINOR = 0
6
- TINY = 0
6
+ TINY = 1
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].join('.')
9
9
  TAG = "REL_" + [MAJOR, MINOR, TINY].join('_')
@@ -14,4 +14,4 @@ module Statemachine
14
14
  DESCRIPTION = "#{NAME}-#{STRING} - Statemachine Library for Ruby\n#{URL}"
15
15
  end
16
16
  end
17
- end
17
+ end
@@ -0,0 +1,21 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "statemachine/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "statemachine"
7
+ s.version = Statemachine::VERSION::STRING
8
+ s.authors = ["'Micah Micah'"]
9
+ s.email = ["'micah@8thlight.com'"]
10
+ s.homepage = "http://statemachine.rubyforge.org"
11
+ s.summary = Statemachine::VERSION::DESCRIPTION
12
+ s.description = "Statemachine is a ruby library for building Finite State Machines (FSM), also known as Finite State Automata (FSA)."
13
+
14
+ s.rubyforge_project = "statemachine"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
20
+ s.autorequire = 'statemachine'
21
+ end
metadata CHANGED
@@ -1,25 +1,36 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: statemachine
3
- version: !ruby/object:Gem::Version
4
- version: 2.0.0
3
+ version: !ruby/object:Gem::Version
4
+ hash: 13
5
5
  prerelease:
6
+ segments:
7
+ - 2
8
+ - 0
9
+ - 1
10
+ version: 2.0.1
6
11
  platform: ruby
7
- authors:
8
- - ! '''Micah Micah'''
12
+ authors:
13
+ - "'Micah Micah'"
9
14
  autorequire: statemachine
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2011-11-02 00:00:00.000000000Z
17
+
18
+ date: 2012-01-02 00:00:00 +01:00
19
+ default_executable:
13
20
  dependencies: []
14
- description: Statemachine is a ruby library for building Finite State Machines (FSM),
15
- also known as Finite State Automata (FSA).
16
- email:
17
- - ! '''micah@8thlight.com'''
21
+
22
+ description: Statemachine is a ruby library for building Finite State Machines (FSM), also known as Finite State Automata (FSA).
23
+ email:
24
+ - "'micah@8thlight.com'"
18
25
  executables: []
26
+
19
27
  extensions: []
28
+
20
29
  extra_rdoc_files: []
21
- files:
30
+
31
+ files:
22
32
  - .gitignore
33
+ - .rvmrc
23
34
  - CHANGES
24
35
  - Gemfile
25
36
  - Gemfile.lock
@@ -180,31 +191,42 @@ files:
180
191
  - spec/sm_turnstile_spec.rb
181
192
  - spec/spec_helper.rb
182
193
  - spec/transition_spec.rb
194
+ - statemachine.gemspec
195
+ has_rdoc: true
183
196
  homepage: http://statemachine.rubyforge.org
184
197
  licenses: []
198
+
185
199
  post_install_message:
186
200
  rdoc_options: []
187
- require_paths:
201
+
202
+ require_paths:
188
203
  - lib
189
- required_ruby_version: !ruby/object:Gem::Requirement
204
+ required_ruby_version: !ruby/object:Gem::Requirement
190
205
  none: false
191
- requirements:
192
- - - ! '>='
193
- - !ruby/object:Gem::Version
194
- version: '0'
195
- required_rubygems_version: !ruby/object:Gem::Requirement
206
+ requirements:
207
+ - - ">="
208
+ - !ruby/object:Gem::Version
209
+ hash: 3
210
+ segments:
211
+ - 0
212
+ version: "0"
213
+ required_rubygems_version: !ruby/object:Gem::Requirement
196
214
  none: false
197
- requirements:
198
- - - ! '>='
199
- - !ruby/object:Gem::Version
200
- version: '0'
215
+ requirements:
216
+ - - ">="
217
+ - !ruby/object:Gem::Version
218
+ hash: 3
219
+ segments:
220
+ - 0
221
+ version: "0"
201
222
  requirements: []
223
+
202
224
  rubyforge_project: statemachine
203
- rubygems_version: 1.8.10
225
+ rubygems_version: 1.6.2
204
226
  signing_key:
205
227
  specification_version: 3
206
- summary: Statemachine-2.0.0 - Statemachine Library for Ruby http://slagyr.github.com/statemachine
207
- test_files:
228
+ summary: Statemachine-2.0.1 - Statemachine Library for Ruby http://slagyr.github.com/statemachine
229
+ test_files:
208
230
  - spec/action_invokation_spec.rb
209
231
  - spec/builder_spec.rb
210
232
  - spec/default_transition_spec.rb