micromachine 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/micromachine.rb +4 -0
  2. data/micromachine.gemspec +1 -1
  3. metadata +28 -32
data/lib/micromachine.rb CHANGED
@@ -28,4 +28,8 @@ class MicroMachine
28
28
  rescue NoMethodError
29
29
  raise InvalidEvent
30
30
  end
31
+
32
+ def ==(some_state)
33
+ state == some_state
34
+ end
31
35
  end
data/micromachine.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'micromachine'
3
- s.version = '0.0.10'
3
+ s.version = '0.0.11'
4
4
  s.summary = %{Minimal Finite State Machine.}
5
5
  s.description = %Q{There are many finite state machine implementations for Ruby, and they all provide a nice DSL for declaring events, exceptions, callbacks, and all kinds of niceties in general.\n\nBut if all you want is a finite state machine, look no further: this is only 22 lines of code and provides everything a finite state machine must have, and nothing more.}
6
6
  s.author = "Michel Martens"
metadata CHANGED
@@ -1,30 +1,30 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: micromachine
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.10
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.11
5
+ prerelease:
5
6
  platform: ruby
6
- authors:
7
+ authors:
7
8
  - Michel Martens
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
-
12
- date: 2010-03-01 00:00:00 -03:00
12
+ date: 2011-07-17 00:00:00.000000000 -03:00
13
13
  default_executable:
14
14
  dependencies: []
15
+ description: ! 'There are many finite state machine implementations for Ruby, and
16
+ they all provide a nice DSL for declaring events, exceptions, callbacks, and all
17
+ kinds of niceties in general.
18
+
15
19
 
16
- description: |-
17
- There are many finite state machine implementations for Ruby, and they all provide a nice DSL for declaring events, exceptions, callbacks, and all kinds of niceties in general.
18
-
19
- But if all you want is a finite state machine, look no further: this is only 22 lines of code and provides everything a finite state machine must have, and nothing more.
20
+ But if all you want is a finite state machine, look no further: this is only 22
21
+ lines of code and provides everything a finite state machine must have, and nothing
22
+ more.'
20
23
  email: michel@soveran.com
21
24
  executables: []
22
-
23
25
  extensions: []
24
-
25
26
  extra_rdoc_files: []
26
-
27
- files:
27
+ files:
28
28
  - lib/micromachine.rb
29
29
  - README.markdown
30
30
  - LICENSE
@@ -35,30 +35,26 @@ files:
35
35
  has_rdoc: true
36
36
  homepage: http://github.com/soveran/micromachine
37
37
  licenses: []
38
-
39
38
  post_install_message:
40
39
  rdoc_options: []
41
-
42
- require_paths:
40
+ require_paths:
43
41
  - lib
44
- required_ruby_version: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - ">="
47
- - !ruby/object:Gem::Version
48
- version: "0"
49
- version:
50
- required_rubygems_version: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: "0"
55
- version:
42
+ required_ruby_version: !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ required_rubygems_version: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
56
54
  requirements: []
57
-
58
55
  rubyforge_project:
59
- rubygems_version: 1.3.5
56
+ rubygems_version: 1.6.2
60
57
  signing_key:
61
58
  specification_version: 3
62
59
  summary: Minimal Finite State Machine.
63
60
  test_files: []
64
-