workflow 0.8.6 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +20 -0
- data/Gemfile +1 -5
- data/README.markdown +4 -0
- data/Rakefile +1 -24
- data/lib/workflow/version.rb +3 -0
- data/workflow.gemspec +22 -53
- metadata +47 -25
data/.gitignore
ADDED
data/Gemfile
CHANGED
data/README.markdown
CHANGED
@@ -501,6 +501,10 @@ when using both a block and a callback method for an event, the block executes p
|
|
501
501
|
Changelog
|
502
502
|
---------
|
503
503
|
|
504
|
+
### New in the version 0.8.7
|
505
|
+
|
506
|
+
* switch from [jeweler][] to pure bundler for building gems
|
507
|
+
|
504
508
|
### New in the version 0.8.0
|
505
509
|
|
506
510
|
* check if a certain transition possible from the current state with
|
data/Rakefile
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
require
|
3
|
-
require 'rubygems/package_task'
|
2
|
+
require "bundler/gem_tasks"
|
4
3
|
require 'rake/testtask'
|
5
4
|
require 'rdoc/task'
|
6
5
|
|
@@ -26,25 +25,3 @@ Rake::RDocTask.new do |rdoc|
|
|
26
25
|
rdoc.options << "-S"
|
27
26
|
end
|
28
27
|
|
29
|
-
require 'jeweler'
|
30
|
-
|
31
|
-
Jeweler::Tasks.new do |gemspec|
|
32
|
-
gemspec.name = "workflow"
|
33
|
-
gemspec.rubyforge_project = 'workflow'
|
34
|
-
gemspec.email = "vladimir@geekq.net"
|
35
|
-
gemspec.homepage = "http://www.geekq.net/workflow/"
|
36
|
-
gemspec.authors = ["Vladimir Dobriakov"]
|
37
|
-
gemspec.summary = "A replacement for acts_as_state_machine."
|
38
|
-
gemspec.description = <<-EOS
|
39
|
-
Workflow is a finite-state-machine-inspired API for modeling and interacting
|
40
|
-
with what we tend to refer to as 'workflow'.
|
41
|
-
|
42
|
-
* nice DSL to describe your states, events and transitions
|
43
|
-
* robust integration with ActiveRecord and non relational data stores
|
44
|
-
* various hooks for single transitions, entering state etc.
|
45
|
-
* convenient access to the workflow specification: list states, possible events
|
46
|
-
for particular state
|
47
|
-
EOS
|
48
|
-
|
49
|
-
Jeweler::RubygemsDotOrgTasks.new
|
50
|
-
end
|
data/workflow.gemspec
CHANGED
@@ -1,61 +1,30 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'workflow/version'
|
5
5
|
|
6
|
-
Gem::Specification.new do |
|
7
|
-
|
8
|
-
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = "workflow"
|
8
|
+
gem.version = Workflow::VERSION
|
9
|
+
gem.authors = ["Vladimir Dobriakov"]
|
10
|
+
gem.email = ["vladimir@geekq.net"]
|
11
|
+
gem.description = " Workflow is a finite-state-machine-inspired API for modeling and interacting\n with what we tend to refer to as 'workflow'.\n\n * nice DSL to describe your states, events and transitions\n * robust integration with ActiveRecord and non relational data stores\n * various hooks for single transitions, entering state etc.\n * convenient access to the workflow specification: list states, possible events\n for particular state\n"
|
12
|
+
gem.summary = %q{A replacement for acts_as_state_machine.}
|
13
|
+
gem.homepage = "http://www.geekq.net/workflow/"
|
9
14
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
15
|
+
gem.files = `git ls-files`.split($/)
|
16
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
|
+
gem.require_paths = ["lib"]
|
19
|
+
|
20
|
+
gem.extra_rdoc_files = [
|
16
21
|
"README.markdown"
|
17
22
|
]
|
18
|
-
s.files = [
|
19
|
-
"Gemfile",
|
20
|
-
"MIT-LICENSE",
|
21
|
-
"README.markdown",
|
22
|
-
"Rakefile",
|
23
|
-
"VERSION",
|
24
|
-
"lib/workflow.rb",
|
25
|
-
"test/advanced_hooks_and_validation_test.rb",
|
26
|
-
"test/before_transition_test.rb",
|
27
|
-
"test/couchtiny_example.rb",
|
28
|
-
"test/main_test.rb",
|
29
|
-
"test/multiple_workflows_test.rb",
|
30
|
-
"test/on_error_test.rb",
|
31
|
-
"test/readme_example.rb",
|
32
|
-
"test/test_helper.rb",
|
33
|
-
"test/without_active_record_test.rb",
|
34
|
-
"workflow.gemspec",
|
35
|
-
"workflow.rb"
|
36
|
-
]
|
37
|
-
s.homepage = "http://www.geekq.net/workflow/"
|
38
|
-
s.require_paths = ["lib"]
|
39
|
-
s.rubyforge_project = "workflow"
|
40
|
-
s.rubygems_version = "1.8.24"
|
41
|
-
s.summary = "A replacement for acts_as_state_machine."
|
42
|
-
|
43
|
-
if s.respond_to? :specification_version then
|
44
|
-
s.specification_version = 3
|
45
23
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
52
|
-
s.add_dependency(%q<bundler>, [">= 1.0.0"])
|
53
|
-
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
54
|
-
end
|
55
|
-
else
|
56
|
-
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
57
|
-
s.add_dependency(%q<bundler>, [">= 1.0.0"])
|
58
|
-
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
59
|
-
end
|
24
|
+
gem.add_development_dependency 'rdoc', [">= 3.12"]
|
25
|
+
gem.add_development_dependency 'bundler', [">= 1.0.0"]
|
26
|
+
gem.add_development_dependency 'activerecord'
|
27
|
+
gem.add_development_dependency 'sqlite3'
|
28
|
+
gem.add_development_dependency 'mocha'
|
60
29
|
end
|
61
30
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,27 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdoc
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirement: &9601480 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: '3.12'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '3.12'
|
24
|
+
version_requirements: *9601480
|
30
25
|
- !ruby/object:Gem::Dependency
|
31
26
|
name: bundler
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
27
|
+
requirement: &9600720 !ruby/object:Gem::Requirement
|
33
28
|
none: false
|
34
29
|
requirements:
|
35
30
|
- - ! '>='
|
@@ -37,46 +32,61 @@ dependencies:
|
|
37
32
|
version: 1.0.0
|
38
33
|
type: :development
|
39
34
|
prerelease: false
|
40
|
-
version_requirements:
|
35
|
+
version_requirements: *9600720
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: activerecord
|
38
|
+
requirement: &9599800 !ruby/object:Gem::Requirement
|
41
39
|
none: false
|
42
40
|
requirements:
|
43
41
|
- - ! '>='
|
44
42
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
43
|
+
version: '0'
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *9599800
|
46
47
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
48
|
+
name: sqlite3
|
49
|
+
requirement: &9598500 !ruby/object:Gem::Requirement
|
49
50
|
none: false
|
50
51
|
requirements:
|
51
|
-
- -
|
52
|
+
- - ! '>='
|
52
53
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
54
|
+
version: '0'
|
54
55
|
type: :development
|
55
56
|
prerelease: false
|
56
|
-
version_requirements:
|
57
|
+
version_requirements: *9598500
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: mocha
|
60
|
+
requirement: &9597840 !ruby/object:Gem::Requirement
|
57
61
|
none: false
|
58
62
|
requirements:
|
59
|
-
- -
|
63
|
+
- - ! '>='
|
60
64
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
65
|
+
version: '0'
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *9597840
|
62
69
|
description: ! " Workflow is a finite-state-machine-inspired API for modeling and
|
63
70
|
interacting\n with what we tend to refer to as 'workflow'.\n\n * nice DSL
|
64
71
|
to describe your states, events and transitions\n * robust integration with ActiveRecord
|
65
72
|
and non relational data stores\n * various hooks for single transitions, entering
|
66
73
|
state etc.\n * convenient access to the workflow specification: list states,
|
67
74
|
possible events\n for particular state\n"
|
68
|
-
email:
|
75
|
+
email:
|
76
|
+
- vladimir@geekq.net
|
69
77
|
executables: []
|
70
78
|
extensions: []
|
71
79
|
extra_rdoc_files:
|
72
80
|
- README.markdown
|
73
81
|
files:
|
82
|
+
- .gitignore
|
74
83
|
- Gemfile
|
75
84
|
- MIT-LICENSE
|
76
85
|
- README.markdown
|
77
86
|
- Rakefile
|
78
87
|
- VERSION
|
79
88
|
- lib/workflow.rb
|
89
|
+
- lib/workflow/version.rb
|
80
90
|
- test/advanced_hooks_and_validation_test.rb
|
81
91
|
- test/before_transition_test.rb
|
82
92
|
- test/couchtiny_example.rb
|
@@ -102,17 +112,29 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
102
112
|
version: '0'
|
103
113
|
segments:
|
104
114
|
- 0
|
105
|
-
hash:
|
115
|
+
hash: 2208733943504161358
|
106
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
117
|
none: false
|
108
118
|
requirements:
|
109
119
|
- - ! '>='
|
110
120
|
- !ruby/object:Gem::Version
|
111
121
|
version: '0'
|
122
|
+
segments:
|
123
|
+
- 0
|
124
|
+
hash: 2208733943504161358
|
112
125
|
requirements: []
|
113
|
-
rubyforge_project:
|
114
|
-
rubygems_version: 1.8.
|
126
|
+
rubyforge_project:
|
127
|
+
rubygems_version: 1.8.10
|
115
128
|
signing_key:
|
116
129
|
specification_version: 3
|
117
130
|
summary: A replacement for acts_as_state_machine.
|
118
|
-
test_files:
|
131
|
+
test_files:
|
132
|
+
- test/advanced_hooks_and_validation_test.rb
|
133
|
+
- test/before_transition_test.rb
|
134
|
+
- test/couchtiny_example.rb
|
135
|
+
- test/main_test.rb
|
136
|
+
- test/multiple_workflows_test.rb
|
137
|
+
- test/on_error_test.rb
|
138
|
+
- test/readme_example.rb
|
139
|
+
- test/test_helper.rb
|
140
|
+
- test/without_active_record_test.rb
|