Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Packaging up as a gem

  • Loading branch information...
commit 355b9fb5ae423692c2178d4b16a785c7859e4711 1 parent ee5b41f
Jacques Crocker authored July 04, 2008
1  .gitignore
@@ -2,3 +2,4 @@
2 2
 *.log
3 3
 .DS_Store
4 4
 *.db
  5
+*.gem
3  CHANGELOG
... ...
@@ -1,3 +1,6 @@
  1
+* 2.1.1
  2
+  packaged it up as a gem [Jacques Crocker]
  3
+
1 4
 * trunk *
2 5
   break with true value [Kaspar Schiess]
3 6
 
32  acts_as_state_machine.gemspec
... ...
@@ -0,0 +1,32 @@
  1
+Gem::Specification.new do |s|
  2
+  s.name = 'acts_as_state_machine'
  3
+  s.version = '2.1.20080704'
  4
+  s.date = '2008-07-04'
  5
+  
  6
+  s.summary = "Allows ActiveRecord models to define states and transition actions between them"
  7
+  s.description = "This act gives an Active Record model the ability to act as a finite state machine (FSM)."
  8
+  
  9
+  s.authors = ['Jacques Crocker', 'Scott Barron']
  10
+  s.email = 'railsjedi@gmail.com'
  11
+  s.homepage = 'http://github.com/jcnetdev/acts_as_state_machine'
  12
+  
  13
+  s.has_rdoc = false
  14
+  # s.rdoc_options = ["--main", "README"]
  15
+  #s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
  16
+
  17
+  s.add_dependency 'activerecord', ['>= 2.0']
  18
+  
  19
+  s.files = ["CHANGELOG",
  20
+             "MIT-LICENSE",
  21
+             "README",
  22
+             "Rakefile",
  23
+             "TODO",
  24
+             "acts_as_state_machine.gemspec",
  25
+             "init.rb",
  26
+             "lib/acts_as_state_machine.rb",
  27
+             "rails/init.rb"]
  28
+
  29
+  s.test_files = ["test/fixtures",
  30
+                  "test/fixtures/conversations.yml",
  31
+                  "test/test_acts_as_state_machine.rb"]
  32
+end
6  init.rb
... ...
@@ -1,5 +1 @@
1  
-require 'acts_as_state_machine'
2  
-
3  
-ActiveRecord::Base.class_eval do
4  
-  include ScottBarron::Acts::StateMachine
5  
-end
  1
+require File.dirname(__FILE__) + "/rails/init"
5  rails/init.rb
... ...
@@ -0,0 +1,5 @@
  1
+require 'acts_as_state_machine'
  2
+
  3
+ActiveRecord::Base.class_eval do
  4
+  include ScottBarron::Acts::StateMachine
  5
+end

0 notes on commit 355b9fb

Please sign in to comment.
Something went wrong with that request. Please try again.