stateflow 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +2 -0
- data/Manifest +2 -1
- data/README.rdoc +2 -0
- data/Rakefile +1 -1
- data/lib/stateflow/persistence/mongoid.rb +1 -1
- data/stateflow.gemspec +7 -7
- metadata +15 -6
data/CHANGELOG.rdoc
ADDED
data/Manifest
CHANGED
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('stateflow', '0.1.
|
5
|
+
Echoe.new('stateflow', '0.1.2') do |p|
|
6
6
|
p.description = "State machine that allows dynamic transitions for business workflows"
|
7
7
|
p.url = "http://github.com/ryanza/stateflow"
|
8
8
|
p.author = "Ryan Oberholzer"
|
@@ -2,7 +2,7 @@ module Stateflow
|
|
2
2
|
module Persistence
|
3
3
|
module Mongoid
|
4
4
|
def self.install(base)
|
5
|
-
base.respond_to?(:
|
5
|
+
base.respond_to?(:before_validation_on_create) ? base.before_validation_on_create(:ensure_initial_state) : base.before_validation(:ensure_initial_state, :on => :create)
|
6
6
|
base.send :include, InstanceMethods
|
7
7
|
end
|
8
8
|
|
data/stateflow.gemspec
CHANGED
@@ -2,27 +2,27 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{stateflow}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.2"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Ryan Oberholzer"]
|
9
|
-
s.date = %q{2010-
|
9
|
+
s.date = %q{2010-08-31}
|
10
10
|
s.description = %q{State machine that allows dynamic transitions for business workflows}
|
11
11
|
s.email = %q{ryan@platform45.com}
|
12
|
-
s.extra_rdoc_files = ["README.rdoc", "lib/stateflow.rb", "lib/stateflow/event.rb", "lib/stateflow/exception.rb", "lib/stateflow/machine.rb", "lib/stateflow/persistence.rb", "lib/stateflow/persistence/active_record.rb", "lib/stateflow/persistence/mongo_mapper.rb", "lib/stateflow/persistence/mongoid.rb", "lib/stateflow/persistence/none.rb", "lib/stateflow/state.rb", "lib/stateflow/transition.rb"]
|
13
|
-
s.files = ["
|
14
|
-
s.homepage = %q{http://github.com/
|
12
|
+
s.extra_rdoc_files = ["CHANGELOG.rdoc", "README.rdoc", "lib/stateflow.rb", "lib/stateflow/event.rb", "lib/stateflow/exception.rb", "lib/stateflow/machine.rb", "lib/stateflow/persistence.rb", "lib/stateflow/persistence/active_record.rb", "lib/stateflow/persistence/mongo_mapper.rb", "lib/stateflow/persistence/mongoid.rb", "lib/stateflow/persistence/none.rb", "lib/stateflow/state.rb", "lib/stateflow/transition.rb"]
|
13
|
+
s.files = ["CHANGELOG.rdoc", "LICENCE", "README.rdoc", "Rakefile", "examples/robot.rb", "examples/test.rb", "init.rb", "lib/stateflow.rb", "lib/stateflow/event.rb", "lib/stateflow/exception.rb", "lib/stateflow/machine.rb", "lib/stateflow/persistence.rb", "lib/stateflow/persistence/active_record.rb", "lib/stateflow/persistence/mongo_mapper.rb", "lib/stateflow/persistence/mongoid.rb", "lib/stateflow/persistence/none.rb", "lib/stateflow/state.rb", "lib/stateflow/transition.rb", "spec/spec_helper.rb", "spec/stateflow_spec.rb", "stateflow.gemspec", "Manifest"]
|
14
|
+
s.homepage = %q{http://github.com/ryanza/stateflow}
|
15
15
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Stateflow", "--main", "README.rdoc"]
|
16
16
|
s.require_paths = ["lib"]
|
17
17
|
s.rubyforge_project = %q{stateflow}
|
18
|
-
s.rubygems_version = %q{1.3.
|
18
|
+
s.rubygems_version = %q{1.3.7}
|
19
19
|
s.summary = %q{State machine that allows dynamic transitions for business workflows}
|
20
20
|
|
21
21
|
if s.respond_to? :specification_version then
|
22
22
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
23
23
|
s.specification_version = 3
|
24
24
|
|
25
|
-
if Gem::Version.new(Gem::
|
25
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
26
26
|
s.add_development_dependency(%q<rspec>, [">= 0"])
|
27
27
|
else
|
28
28
|
s.add_dependency(%q<rspec>, [">= 0"])
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stateflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 31
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Ryan Oberholzer
|
@@ -14,16 +15,18 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-08-31 00:00:00 +02:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: rspec
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
27
30
|
segments:
|
28
31
|
- 0
|
29
32
|
version: "0"
|
@@ -36,6 +39,7 @@ executables: []
|
|
36
39
|
extensions: []
|
37
40
|
|
38
41
|
extra_rdoc_files:
|
42
|
+
- CHANGELOG.rdoc
|
39
43
|
- README.rdoc
|
40
44
|
- lib/stateflow.rb
|
41
45
|
- lib/stateflow/event.rb
|
@@ -49,8 +53,8 @@ extra_rdoc_files:
|
|
49
53
|
- lib/stateflow/state.rb
|
50
54
|
- lib/stateflow/transition.rb
|
51
55
|
files:
|
56
|
+
- CHANGELOG.rdoc
|
52
57
|
- LICENCE
|
53
|
-
- Manifest
|
54
58
|
- README.rdoc
|
55
59
|
- Rakefile
|
56
60
|
- examples/robot.rb
|
@@ -70,8 +74,9 @@ files:
|
|
70
74
|
- spec/spec_helper.rb
|
71
75
|
- spec/stateflow_spec.rb
|
72
76
|
- stateflow.gemspec
|
77
|
+
- Manifest
|
73
78
|
has_rdoc: true
|
74
|
-
homepage: http://github.com/
|
79
|
+
homepage: http://github.com/ryanza/stateflow
|
75
80
|
licenses: []
|
76
81
|
|
77
82
|
post_install_message:
|
@@ -85,16 +90,20 @@ rdoc_options:
|
|
85
90
|
require_paths:
|
86
91
|
- lib
|
87
92
|
required_ruby_version: !ruby/object:Gem::Requirement
|
93
|
+
none: false
|
88
94
|
requirements:
|
89
95
|
- - ">="
|
90
96
|
- !ruby/object:Gem::Version
|
97
|
+
hash: 3
|
91
98
|
segments:
|
92
99
|
- 0
|
93
100
|
version: "0"
|
94
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
|
+
none: false
|
95
103
|
requirements:
|
96
104
|
- - ">="
|
97
105
|
- !ruby/object:Gem::Version
|
106
|
+
hash: 11
|
98
107
|
segments:
|
99
108
|
- 1
|
100
109
|
- 2
|
@@ -102,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
111
|
requirements: []
|
103
112
|
|
104
113
|
rubyforge_project: stateflow
|
105
|
-
rubygems_version: 1.3.
|
114
|
+
rubygems_version: 1.3.7
|
106
115
|
signing_key:
|
107
116
|
specification_version: 3
|
108
117
|
summary: State machine that allows dynamic transitions for business workflows
|