alter-ego-activerecord 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest CHANGED
@@ -2,6 +2,7 @@ Manifest
2
2
  README.rdoc
3
3
  Rakefile
4
4
  alter-ego-activerecord.gemspec
5
+ init.rb
5
6
  lib/alter_ego/active_record_adapter.rb
6
7
  test/adapter_test.rb
7
8
  test/create_traffic_signals.rb
data/README.rdoc CHANGED
@@ -15,14 +15,23 @@ to be properly persisted to a database, as well as serialized/unserialized as
15
15
  json, yml, and xml.
16
16
 
17
17
  == Installation
18
+ === As a Ruby Gem
18
19
  gem install alter-ego-activerecord
20
+ === OR as a Rails plugin
21
+ script/plugin install git://github.com/pavlos/alter-ego-activerecord.git
19
22
 
20
23
  == Usage
21
- Make sure the table your class maps to has a <tt>state</tt> column.
22
-
24
+ Make sure the table your class maps to has a <tt>state</tt> column of type
25
+ varchar, string, etc.
26
+
27
+ # you'll only need the following two lines if you're NOT using
28
+ # alter-ego-activerecord as a plugin
29
+ gem 'alter-ego-activerecord'
30
+ require 'alter_ego/active_record_adapter'
31
+
23
32
  class Example < ActiveRecord::Base
24
33
  include AlterEgo # include this first
25
34
  include AlterEgo::ActiveRecordAdapter
26
-
35
+
27
36
  # Your code here
28
37
  end
data/Rakefile CHANGED
@@ -2,11 +2,11 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('alter-ego-activerecord', '0.1.0') do |p|
5
+ Echoe.new('alter-ego-activerecord', '0.1.1') do |p|
6
6
  p.description = "Adapter to allow ActiveRecord to persist and restore state of objects using the AlterEgo state machine"
7
7
  p.author = "Paul Hieromnimon"
8
8
  p.email = "paul.hieromnimon@gmail.com"
9
- p.url = "http://github.com/pavlos/alter-ego-active-record"
9
+ p.url = "http://github.com/pavlos/alter-ego-activerecord"
10
10
  p.runtime_dependencies = ["activerecord >=2.3.5", "alter-ego >=1.0.1" ]
11
11
  p.ignore_pattern = ["*.sqlite"]
12
12
  end
@@ -2,16 +2,16 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{alter-ego-activerecord}
5
- s.version = "0.1.0"
5
+ s.version = "0.1.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Paul Hieromnimon"]
9
- s.date = %q{2010-08-13}
9
+ s.date = %q{2010-08-14}
10
10
  s.description = %q{Adapter to allow ActiveRecord to persist and restore state of objects using the AlterEgo state machine}
11
11
  s.email = %q{paul.hieromnimon@gmail.com}
12
12
  s.extra_rdoc_files = ["README.rdoc", "lib/alter_ego/active_record_adapter.rb"]
13
- s.files = ["Manifest", "README.rdoc", "Rakefile", "alter-ego-activerecord.gemspec", "lib/alter_ego/active_record_adapter.rb", "test/adapter_test.rb", "test/create_traffic_signals.rb", "test/helper.rb", "test/traffic_signal.rb"]
14
- s.homepage = %q{http://github.com/pavlos/alter-ego-active-record}
13
+ s.files = ["Manifest", "README.rdoc", "Rakefile", "alter-ego-activerecord.gemspec", "init.rb", "lib/alter_ego/active_record_adapter.rb", "test/adapter_test.rb", "test/create_traffic_signals.rb", "test/helper.rb", "test/traffic_signal.rb"]
14
+ s.homepage = %q{http://github.com/pavlos/alter-ego-activerecord}
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Alter-ego-activerecord", "--main", "README.rdoc"]
16
16
  s.require_paths = ["lib"]
17
17
  s.rubyforge_project = %q{alter-ego-activerecord}
data/init.rb ADDED
@@ -0,0 +1 @@
1
+ require 'alter_ego/active_record_adapter'
@@ -8,7 +8,7 @@ module AlterEgo
8
8
  end
9
9
 
10
10
  # rails needs this method to be defined for the
11
- # class method after_find to be able to take a block
11
+ # class method after_initialize to be able to take a block
12
12
  # this is because of some performance optimization
13
13
  def after_initialize; end
14
14
 
@@ -27,4 +27,4 @@ module AlterEgo
27
27
  end
28
28
 
29
29
  end
30
- end
30
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alter-ego-activerecord
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Paul Hieromnimon
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-13 00:00:00 -07:00
18
+ date: 2010-08-14 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -64,13 +64,14 @@ files:
64
64
  - README.rdoc
65
65
  - Rakefile
66
66
  - alter-ego-activerecord.gemspec
67
+ - init.rb
67
68
  - lib/alter_ego/active_record_adapter.rb
68
69
  - test/adapter_test.rb
69
70
  - test/create_traffic_signals.rb
70
71
  - test/helper.rb
71
72
  - test/traffic_signal.rb
72
73
  has_rdoc: true
73
- homepage: http://github.com/pavlos/alter-ego-active-record
74
+ homepage: http://github.com/pavlos/alter-ego-activerecord
74
75
  licenses: []
75
76
 
76
77
  post_install_message: