hegemon 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hegemon.rb +1 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c86bd9b37d2df2008cac937d1ab4e7bfd5d5276
4
- data.tar.gz: 6c8876f0111431d8d89bd15ef7761b69a1717186
3
+ metadata.gz: a5e3f1d23ff6bcbacd4605ba75d1ed7ec624ae16
4
+ data.tar.gz: b1992936d83a6961ce69cf7754f923d2ace4d23c
5
5
  SHA512:
6
- metadata.gz: c1d76a913eb1d7a6dfa6de164164b421a7ceb2e7a2dbc973541414e30920eb83b43066785b42c6428c63f9ec32aea9c50deb25dac02271947fbec66c9f0ae00d
7
- data.tar.gz: 1a04f028f986810d9b63edbd07812c2f80822cd0b116e1d5543ad35fd9ad8fc4a9686fa961c2f937bbd1765a77612360bf093212eedcd830d04da3374ed5a2d8
6
+ metadata.gz: 30677e721a5110330b962e28212c150be2572963f3b4598249f7c68164405ac1ff43a80e32f7e91020932c0048a8f999f5fc6fb2433d46610d4343b4ca96f1ff
7
+ data.tar.gz: 34c19e7f7c499d3fcf93b1d839a19874f5d715b3e1d8cbeeef326902c61d296ef5b5a9e5fef97ff784d9834004ee791ee4e254d32ebcf0c28f1dbf8c957fd859
@@ -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.7
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-09 00:00:00.000000000 Z
11
+ date: 2013-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: threadlock