state_objects 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## v0.0.4
2
+ * Changed Gem description to focus state that Many other state machines focus on events and state transitions.
3
+ This state machine focuses on behavior.
4
+ * Cleared up documentation to explain that tests have been added to the gem. This code has automated tests.
5
+
1
6
  ## v0.0.3
2
7
  * Ported tests from gem selection_options_for
3
8
 
data/README.md CHANGED
@@ -6,10 +6,9 @@ Each state is a separate class.
6
6
  You can add methods to the state classes, but each state class must have implement the same list of methods.
7
7
  State transitions are the responsibility of the state classes.
8
8
 
9
- Since this was extracted from an application, the specs are currently still in the main application. I will move the specs to this gem as soon as possible.
10
-
11
9
  ## Focus
12
- Many state machines focus on events and state transitions.
10
+ Many other state machines focus on events and state transitions.
11
+ This state machine focuses on behavior.
13
12
  The main benefit of this gem is to reduce conditional logic by removing #if checks in the model and moving the logic into the state objects. Using Composition in this way can go a long way to simplify Rails models.
14
13
 
15
14
 
@@ -1,3 +1,3 @@
1
1
  module StateObjects
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -10,7 +10,8 @@ Gem::Specification.new do |gem|
10
10
  gem.email = ["windholtz@gmail.com"]
11
11
  gem.homepage = "https://github.com/mwindholtz/state_objects"
12
12
  gem.summary = %q{ 'State' Design Pattern from the Gang of Four book }
13
- gem.description = %q{ 'State' Design Pattern from the Gang of Four book }
13
+ gem.description = %q{ 'State' Design Pattern from the Gang of Four book. Many other state machines focus on events and transitions. This state machine focuses on behavior and reducing conditional logic.
14
+ }
14
15
 
15
16
  gem.files = `git ls-files`.split($/)
16
17
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: state_objects
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
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: 2012-10-30 00:00:00.000000000 Z
12
+ date: 2012-11-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: supermodel
@@ -59,7 +59,9 @@ dependencies:
59
59
  - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
- description: ! ' ''State'' Design Pattern from the Gang of Four book '
62
+ description: ! " 'State' Design Pattern from the Gang of Four book. Many other state
63
+ machines focus on events and transitions. This state machine focuses on behavior
64
+ and reducing conditional logic.\n "
63
65
  email:
64
66
  - windholtz@gmail.com
65
67
  executables: []