hegemon 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hegemon.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5e3f1d23ff6bcbacd4605ba75d1ed7ec624ae16
|
4
|
+
data.tar.gz: b1992936d83a6961ce69cf7754f923d2ace4d23c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30677e721a5110330b962e28212c150be2572963f3b4598249f7c68164405ac1ff43a80e32f7e91020932c0048a8f999f5fc6fb2433d46610d4343b4ca96f1ff
|
7
|
+
data.tar.gz: 34c19e7f7c499d3fcf93b1d839a19874f5d715b3e1d8cbeeef326902c61d296ef5b5a9e5fef97ff784d9834004ee791ee4e254d32ebcf0c28f1dbf8c957fd859
|
data/lib/hegemon.rb
CHANGED
@@ -141,6 +141,7 @@ module Hegemon
|
|
141
141
|
# so rule blocks with code that has "side effects" are discouraged.
|
142
142
|
#
|
143
143
|
def request_state(s, *flags) # :args: state, *flags
|
144
|
+
return true if @_hegemon_state==s
|
144
145
|
return false unless @_hegemon_states[@_hegemon_state].transitions[s]
|
145
146
|
@_hegemon_states[@_hegemon_state].transitions[s].try(*flags)
|
146
147
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hegemon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe McIlvain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: threadlock
|