simpler_state_machine 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- module SimpleStateMachine
1
+ module SimplerStateMachine
2
2
  class Base
3
3
 
4
4
  attr_reader :states, # Holds the state enum
@@ -1,4 +1,4 @@
1
- module SimpleStateMachine
1
+ module SimplerStateMachine
2
2
 
3
3
  module Exceptions
4
4
  class InvalidTransition < RuntimeError; end
@@ -0,0 +1,5 @@
1
+ # FFU
2
+ module SimplerStateMachine
3
+ class Event
4
+ end
5
+ end
@@ -4,7 +4,7 @@ SimpleStateMachine
4
4
 
5
5
  This module should be mixed in to a class that needs a state machine implementation. refer to the readme.
6
6
  =end
7
- module SimpleStateMachine
7
+ module SimplerStateMachine
8
8
 
9
9
  def self.included(base) #:nodoc:
10
10
  base.class_eval do
@@ -1,5 +1,5 @@
1
1
  # FFU
2
- module SimpleStateMachine #:nodoc
2
+ module SimplerStateMachine #:nodoc
3
3
  class Transition
4
4
 
5
5
  attr_accessor :to, :from
@@ -0,0 +1,3 @@
1
+ module SimplerStateMachine
2
+ VERSION = "0.0.2"
3
+ end
@@ -0,0 +1,9 @@
1
+ # Require all the files
2
+ require File.join(File.dirname(__FILE__), 'simpler_state_machine', 'version')
3
+ require File.join(File.dirname(__FILE__), 'simpler_state_machine', 'simple_state_machine')
4
+ require File.join(File.dirname(__FILE__), 'simpler_state_machine', 'base')
5
+ require File.join(File.dirname(__FILE__), 'simpler_state_machine', 'event')
6
+ require File.join(File.dirname(__FILE__), 'simpler_state_machine', 'enum')
7
+ require File.join(File.dirname(__FILE__), 'simpler_state_machine', 'errors')
8
+ require File.join(File.dirname(__FILE__), 'simpler_state_machine', 'transition')
9
+
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
- require File.expand_path('../lib/simple_state_machine/version', __FILE__)
2
+ require File.expand_path('../lib/simpler_state_machine/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
5
  gem.authors = ["Elad Meidar"]
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
13
13
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
14
14
  gem.name = "simpler_state_machine"
15
15
  gem.require_paths = ["lib"]
16
- gem.version = SimpleStateMachine::VERSION
16
+ gem.version = SimplerStateMachine::VERSION
17
17
 
18
18
  gem.add_development_dependency 'activerecord'
19
19
  gem.add_development_dependency 'rake'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simpler_state_machine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-05 00:00:00.000000000 Z
12
+ date: 2013-02-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -184,14 +184,14 @@ files:
184
184
  - LICENSE
185
185
  - README.md
186
186
  - Rakefile
187
- - lib/simple_state_machine.rb
188
- - lib/simple_state_machine/base.rb
189
- - lib/simple_state_machine/enum.rb
190
- - lib/simple_state_machine/errors.rb
191
- - lib/simple_state_machine/event.rb
192
- - lib/simple_state_machine/simple_state_machine.rb
193
- - lib/simple_state_machine/transition.rb
194
- - lib/simple_state_machine/version.rb
187
+ - lib/simpler_state_machine.rb
188
+ - lib/simpler_state_machine/base.rb
189
+ - lib/simpler_state_machine/enum.rb
190
+ - lib/simpler_state_machine/errors.rb
191
+ - lib/simpler_state_machine/event.rb
192
+ - lib/simpler_state_machine/simple_state_machine.rb
193
+ - lib/simpler_state_machine/transition.rb
194
+ - lib/simpler_state_machine/version.rb
195
195
  - simpler_state_machine.gemspec
196
196
  - spec/database.yml
197
197
  - spec/models/express_gate.rb
@@ -1,5 +0,0 @@
1
- # FFU
2
- module SimpleStateMachine
3
- class Event
4
- end
5
- end
@@ -1,3 +0,0 @@
1
- module SimpleStateMachine
2
- VERSION = "0.0.1"
3
- end
@@ -1,9 +0,0 @@
1
- # Require all the files
2
- require File.join(File.dirname(__FILE__), 'simple_state_machine', 'version')
3
- require File.join(File.dirname(__FILE__), 'simple_state_machine', 'simple_state_machine')
4
- require File.join(File.dirname(__FILE__), 'simple_state_machine', 'base')
5
- require File.join(File.dirname(__FILE__), 'simple_state_machine', 'event')
6
- require File.join(File.dirname(__FILE__), 'simple_state_machine', 'enum')
7
- require File.join(File.dirname(__FILE__), 'simple_state_machine', 'errors')
8
- require File.join(File.dirname(__FILE__), 'simple_state_machine', 'transition')
9
-