Permalink
Browse files

Packaging up as a gem

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

0 comments on commit 355b9fb

Please sign in to comment.