state_objects 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/DOTrvmrc +1 -1
- data/README.md +3 -3
- data/lib/state_objects/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e44cb2199c32773f02d840fbeeb51ddc379419de
|
4
|
+
data.tar.gz: bbc333440089a4bcd8e4738fe6fc1fbd552bc810
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c58b74d0827f6a4a15ebff03a6b3e7210ccae65ce94ff1fa28e199be481fb43209f14e19ba2a068dbd2bb1ca7c9fdae7d0b4b72625082345f4d24ec1401e675
|
7
|
+
data.tar.gz: 59112ed15ebd555c6163c61d680e04195b68fc551dfdb2cf0fc87c0a5e362c6c134e263bd27f66174c12bf8a2904deacbc7b8d2400f8de1514c79c9b8974b1dc
|
data/CHANGELOG.md
CHANGED
data/DOTrvmrc
CHANGED
data/README.md
CHANGED
@@ -29,7 +29,7 @@ Or install it yourself as:
|
|
29
29
|
## Usage
|
30
30
|
|
31
31
|
class WalkLights < ActiveRecord::Migration
|
32
|
-
def
|
32
|
+
def change
|
33
33
|
create_table :walk_lights do |t|
|
34
34
|
t.string :color_state, :default => LightRedState.db_value
|
35
35
|
end
|
@@ -58,8 +58,8 @@ Or install it yourself as:
|
|
58
58
|
LightRedState
|
59
59
|
state_object_events :color_state, :change
|
60
60
|
|
61
|
-
scope :red, where(
|
62
|
-
scope :green, where(
|
61
|
+
scope :red, where(WalkLight.color_state_red_occurs )
|
62
|
+
scope :green, where(WalkLight.color_state_green_occurs )
|
63
63
|
end
|
64
64
|
|
65
65
|
# now lets use it
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: state_objects
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Windholtz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: supermodel
|
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
97
|
version: '0'
|
98
98
|
requirements: []
|
99
99
|
rubyforge_project:
|
100
|
-
rubygems_version: 2.2.
|
100
|
+
rubygems_version: 2.2.2
|
101
101
|
signing_key:
|
102
102
|
specification_version: 4
|
103
103
|
summary: "'State' Design Pattern from the Gang of Four book"
|