state_manager 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/state_manager/dsl.rb +0 -12
- data/state_manager.gemspec +2 -2
- metadata +3 -3
data/Rakefile
CHANGED
@@ -15,7 +15,7 @@ require 'jeweler'
|
|
15
15
|
Jeweler::Tasks.new do |gem|
|
16
16
|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
17
|
gem.name = "state_manager"
|
18
|
-
gem.homepage = "http://github.com/ghempton/
|
18
|
+
gem.homepage = "http://github.com/ghempton/state_manager"
|
19
19
|
gem.license = "MIT"
|
20
20
|
gem.summary = "%Q{Finite state machine implementation.}"
|
21
21
|
gem.description = %Q{Finite state machine implementation that keeps logic separate from model classes and supports sub-states.}
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.4
|
data/lib/state_manager/dsl.rb
CHANGED
@@ -31,18 +31,6 @@ module StateManager
|
|
31
31
|
define_method name, &block if block_given?
|
32
32
|
end
|
33
33
|
|
34
|
-
# Helper to simplify creating dsl reader methods for specification
|
35
|
-
# properties
|
36
|
-
module_eval do
|
37
|
-
def self.spec_property(name)
|
38
|
-
class_eval do
|
39
|
-
define_method name do |value|
|
40
|
-
specification.send "#{name}=", value
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
34
|
# The initial state
|
47
35
|
def initial_state(value)
|
48
36
|
specification.initial_state = value
|
data/state_manager.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "state_manager"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Gordon Hempton"]
|
@@ -45,7 +45,7 @@ Gem::Specification.new do |s|
|
|
45
45
|
"test/plugins/delayed_job_test.rb",
|
46
46
|
"test/transitions_test.rb"
|
47
47
|
]
|
48
|
-
s.homepage = "http://github.com/ghempton/
|
48
|
+
s.homepage = "http://github.com/ghempton/state_manager"
|
49
49
|
s.licenses = ["MIT"]
|
50
50
|
s.require_paths = ["lib"]
|
51
51
|
s.rubygems_version = "1.8.15"
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: state_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.2.
|
5
|
+
version: 0.2.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Gordon Hempton
|
@@ -192,7 +192,7 @@ files:
|
|
192
192
|
- test/helpers_test.rb
|
193
193
|
- test/plugins/delayed_job_test.rb
|
194
194
|
- test/transitions_test.rb
|
195
|
-
homepage: http://github.com/ghempton/
|
195
|
+
homepage: http://github.com/ghempton/state_manager
|
196
196
|
licenses:
|
197
197
|
- MIT
|
198
198
|
post_install_message:
|
@@ -205,7 +205,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
205
205
|
requirements:
|
206
206
|
- - ">="
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
hash: -
|
208
|
+
hash: -1076366777807304127
|
209
209
|
segments:
|
210
210
|
- 0
|
211
211
|
version: "0"
|