statemachine 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +1 -0
- data/Rakefile +0 -21
- data/lib/statemachine/state.rb +1 -0
- data/lib/statemachine/statemachine.rb +1 -0
- data/lib/statemachine/superstate.rb +1 -0
- data/lib/statemachine/version.rb +2 -2
- data/statemachine.gemspec +21 -0
- metadata +47 -25
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
|
data/lib/statemachine/state.rb
CHANGED
data/lib/statemachine/version.rb
CHANGED
@@ -3,7 +3,7 @@ module Statemachine
|
|
3
3
|
unless defined? MAJOR
|
4
4
|
MAJOR = 2
|
5
5
|
MINOR = 0
|
6
|
-
TINY =
|
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
|
-
|
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
|
-
-
|
12
|
+
authors:
|
13
|
+
- "'Micah Micah'"
|
9
14
|
autorequire: statemachine
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
17
|
+
|
18
|
+
date: 2012-01-02 00:00:00 +01:00
|
19
|
+
default_executable:
|
13
20
|
dependencies: []
|
14
|
-
|
15
|
-
|
16
|
-
email:
|
17
|
-
-
|
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
|
-
|
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
|
-
|
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
|
-
|
195
|
-
|
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
|
-
|
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.
|
225
|
+
rubygems_version: 1.6.2
|
204
226
|
signing_key:
|
205
227
|
specification_version: 3
|
206
|
-
summary: Statemachine-2.0.
|
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
|