state_objects 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e408c99327523847068670c2cb1aa93e1b85a94a
4
- data.tar.gz: 7fc4cce835c5aff4930d3e818578393b821472d3
3
+ metadata.gz: e44cb2199c32773f02d840fbeeb51ddc379419de
4
+ data.tar.gz: bbc333440089a4bcd8e4738fe6fc1fbd552bc810
5
5
  SHA512:
6
- metadata.gz: 8798549f3c6d183d9fb08fd11698ea83acfd6776a397bdf0ad41b9b6cd0ec06227d3ccbd13563f67cd7e812a76734cf66a738b4eb2855fa56c9662719b3c148e
7
- data.tar.gz: 79d9595fbcfac941afc651574fa32c9c3a308809f9db1944f83138cc9114aa438ca10767492bdfaeaf0f23ae44ca1304ddabd2a0718fb3e46122c2b3382915bd
6
+ metadata.gz: 2c58b74d0827f6a4a15ebff03a6b3e7210ccae65ce94ff1fa28e199be481fb43209f14e19ba2a068dbd2bb1ca7c9fdae7d0b4b72625082345f4d24ec1401e675
7
+ data.tar.gz: 59112ed15ebd555c6163c61d680e04195b68fc551dfdb2cf0fc87c0a5e362c6c134e263bd27f66174c12bf8a2904deacbc7b8d2400f8de1514c79c9b8974b1dc
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.9.1
2
+ * Fixed typos in the example code.
3
+
1
4
  ## 0.9.0
2
5
  * This code has been running in multiple applications for multiple years. So it's time to reflect by bumping up the version number.
3
6
 
data/DOTrvmrc CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- ruby_string="ruby-1.9.3-p194"
3
+ ruby_string="ruby-2.1.0"
4
4
  gemset_name="state-objects"
5
5
 
6
6
  if rvm list strings | grep -q "${ruby_string}" ; then
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 self.change
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(LightRedState.occurs )
62
- scope :green, where(LightGreenState.occurs )
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
@@ -1,3 +1,3 @@
1
1
  module StateObjects
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
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.0
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-02-27 00:00:00.000000000 Z
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.1
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"