switcher 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.rspec +1 -0
- data/lib/switcher/adapters/object.rb +1 -1
- data/lib/switcher/statement.rb +4 -0
- data/lib/switcher/version.rb +1 -1
- metadata +7 -6
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/lib/switcher/statement.rb
CHANGED
@@ -47,6 +47,8 @@ module Switcher
|
|
47
47
|
end
|
48
48
|
end # each
|
49
49
|
end # unless
|
50
|
+
|
51
|
+
return @instance
|
50
52
|
end # def publish
|
51
53
|
|
52
54
|
def force_state(state)
|
@@ -54,6 +56,8 @@ module Switcher
|
|
54
56
|
|
55
57
|
@state_prev = state_current
|
56
58
|
@state_current = state.to_sym
|
59
|
+
|
60
|
+
return @instance
|
57
61
|
end
|
58
62
|
|
59
63
|
private
|
data/lib/switcher/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: switcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-04-
|
12
|
+
date: 2012-04-18 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement: &
|
16
|
+
requirement: &70157042618800 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70157042618800
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rspec
|
27
|
-
requirement: &
|
27
|
+
requirement: &70157042618380 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70157042618380
|
36
36
|
description: Switcher is simple, event-driven state machine
|
37
37
|
email:
|
38
38
|
- andrey@aejis.eu
|
@@ -41,6 +41,7 @@ extensions: []
|
|
41
41
|
extra_rdoc_files: []
|
42
42
|
files:
|
43
43
|
- .gitignore
|
44
|
+
- .rspec
|
44
45
|
- .travis.yml
|
45
46
|
- Gemfile
|
46
47
|
- Guardfile
|